rs cheata
2010-09-25 20:33:49
ok so i need someone to fix this…
the error is..
program Killer;
{.Include srl/srl.scar}
const
MonsterColor = 660604; // Use Simba or SCAR to pick the color from screen
FightTime = 10000; // Milliseconds to wait after attacking
UpTextColor = 320482;
var
Failed: Integer;
function AttackMonster: Boolean;
var
X, Y: integer;
begin
if FindColorSpiralTolerance(X, Y, MonsterColor, 0, 0, 200, 200, 10); // Main-screen cordinates to (0, 0, 200, 200)
begin
MoveMouse(X, Y);
Wait(100);
if (CountColorTolerance(UpTextColor, 0, 0, 100, 20, 15) > 20) then
begin
ClickMouse(X, Y, True);
Wait(FightTime);
Result := True;
end;
end else Wait(500);
end;
begin
repeat
if (not AttackMonster) then
Inc(Failed);
until(Failed > 99);
end.
the error is..
Line 15: [Error] (21106:68): 'THEN' expected in script