Just a minor suggestion to allow the user to have axe equiped, since if it is, your script logs out
EDIT: It would actually probably be better in another procedure, because it checks both everytime, and can get a little annoying, ill try and look at it again but scar is fighting with win32 for some reason...
SCAR Code:
begin
if not LoggedIn then Exit;
if not TabExists(4) then FindNormalRandomsTime;
GameTab(4);
Wait(200 + random(100));
if not (FindDtm(dtmAxe, Ix, Iy, MIX1, MIY1, MIX2, MIY2))then
Gametab(5); // ADDED THESE
Wait(200 + random(100)); //LINES TO CHECK
if not (FindDtm(dtmAxe, Ix, Iy, MIX1, MIY1, MIX2, MIY2))then //IF EQUIPED
begin
Result := False;
Writeln('No axe was found.');
Exit;
end else
begin
if First then
begin
AxeColor := GetColor(ix, iy);
Writeln('Axe Color '+inttostr(axecolor)+' at '+inttostr(ix)+', '+inttostr(iy));
First := false;
end;
Result := True;
end;
end;