
Originally Posted by
footballjds
rjj no need to double post. but try using ACA (:
I give up. No point.
What am i doing wrong here?
Simba Code:
procedure ClickNPC;
var
X, Y,cx,cy: Integer;
begin // kill npc
WriteLn('Attacking skeleton...');
if FindColorTolerance(X, Y, NPC, tleft, tright, bleft, bright, tolerence) then
begin
GetMousePos(cx,cy);
MouseSpeed:=40;
mmouse(x, y,1,1);
Wait(20 + Random(50));
ClickMouse(X, Y, Mouse_Left);
if FindColorTolerance(x,y,65535,cx-10,cy+10,cx+10,cy-10,5) then
begin
ClickNPC;
end;
WriteLn('Attacked skeleton!');
CheckCombat;
end;
end;
Code:
Error: Exception: You passed wrong values to a finder function: ys > ye (116,96). at line 67
The following bitmaps were not freed: [0]