Originally Posted by
Cypher
Rofl. Nice.
How is it implemented? I would probably register a LUA function to hook events like an addon would and whenever a minimap ping is fired forward it to the bot with the coordinates to move to.
Are you doing something like that? Or are you reading the minimap ping coords from memory somewhere?
Well that was just a passive app. But could easily be written into LUA.
Since when i do something like this in LUA
Code:
local x, y = GetCursorPosition();
x = x / self:GetEffectiveScale();
y = y / self:GetEffectiveScale();
local cx, cy = self:GetCenter();
x = x - cx;
y = y - cy;
if ( sqrt(x * x + y * y) < (self:GetWidth() / 2) ) then
Minimap:PingLocation(x, y);
end
and then
Code:
Minimap_SetPing(self:GetPingPosition());
it returns the relative position of the ping.
That can then be converted into "real" offset (not sure what that function is called)