Hi i'm working on an autofighter for the game voyagecenturyonline
but i just started and my first test was BAD.
I think it's because it has good grafics, it doesn't find a monster at all.
Is there a way to get this working better ?
O yea here is the script but its still unfinished.
SCAR Code:
program VCOautofighter;
{.include SRL/SRL.scar}
const
Monstercolor = 3155474;
var
kills : Integer;
procedure findmonster;
var
x, y, a: Integer;
begin
repeat
If FindColorTolerance(x,y,Monstercolor,0,0,0,0,0)then
begin
a := 1;
Mouse(x,y,150,150,True);
end;
until(a = 1);
a := 0;
end;
procedure attkmonster;
var
x, y: Integer;
begin
x := 495;
y := 20;
wait(50);
Mouse(x,y,25,25,True);
wait(20000);
kills := kills + 1;
end;
procedure activate;
var
x, y: integer;
begin
x := 0;
y := 0;
Mouse(x,y,10,10,true)
end;
begin
SetupSRL;
activate;
repeat
findmonster;
attkmonster;
until(kills = 10);
end.