account99
2012-11-15 10:20:53
I am making a script for a game called Endless Online and i have multiple scripts for it but i decided i want to make my own so ive been learning about scar (im using 3.36 newest) and im making my own scripts. I came to a stop when i was trying to make a little script that will press f2 then releas f2 after about half a second then click on a color that it finds. my error says: Type Mismatch but no idea what to do, somone help (if possible also fix it for proper indenting and such)? :)
This is my script:
Program Mage;
var
x, y, z, monster1: Integer;
begin
monster1:= 1638350;
z:=0;
repeat
if(FindColor(x, y, monster1,324,171,955,651))then
begin
keydown(113);
wait(550)
KeyUp(113);
clickmouse(x, y, true)
wait(850)
end
until(x = 5000000)
end.
This is my script:
Program Mage;
var
x, y, z, monster1: Integer;
begin
monster1:= 1638350;
z:=0;
repeat
if(FindColor(x, y, monster1,324,171,955,651))then
begin
keydown(113);
wait(550)
KeyUp(113);
clickmouse(x, y, true)
wait(850)
end
until(x = 5000000)
end.