Sin
2012-03-06 10:07:02
For my Giant Spider Killer, i'm currently relying on the very unefficient way of finding a spider on screen.
I'm adding a failsafe, and here it is currently -
can someone help me with how GetMiniMapDots work?
I'm adding a failsafe, and here it is currently -
procedure Attacking;
var
x,y,t:Integer;
NPC:TPoint;
begin
if FindSpider(x,y) then
begin
ClickMouse2(false);
WaitOption('ttack',1250);
if DidRedClick then
begin
repeat
wait(2000);
If TimeFrommark(t) > 6000 then
exit;
until(InFight);
if InFight then
writeln('In fight');
end;
end else
begin
if FindColorSpiralTolerance(NPC.x,NPC.y,65536,MMX1,MMy1,MMX2,MMY2,4) then
begin
Mouse(NPC.x,npc.y,1,1,True);
FFlag(1);
exit;
end;
end;
end; It'll basically just find the yellow color on the minimap and go to it,can someone help me with how GetMiniMapDots work?