Log in

View Full Version : a noob mistake please help



junkaholic
12-18-2011, 04:19 AM
program ivy_bot;


procedure move_to_ivy;
begin
Movemouse(694, 90);
clickmouse(694, 90, 1);
wait(6000);
movemouse(627, 157);
clickmouse(627, 157, 1);
wait(4000);
movemouse(561, 114);
clickmouse(561, 114, 1);
wait(6000);
movemouse(560, 106);
clickmouse(560, 106, 1);
end
procedure chop;

var
x, y:integer;
begin
if findcolorspiraltolerance(x, y, 2641467, 223, 76, 419, 172, 20) or
findcolorspiraltolerance(x, y, 3893842, 223, 76, 419, 172, 20) or
findcolorspiraltolerance(x, y, 5543796, 223, 76, 419, 172, 20) or
findcolorspiraltolerance(x, y, 4224089, 223, 76, 419, 172, 20) then
begin
movemouse(x, y);
clickmouse(x, y, 1);
wait(120000);

end
procedure start;
begin
move_to_ivy;
repeat
chop;
until(12000)
end



well i get the error that says.


[Error] (19:1): Semicolon (';') expected at line 18

but there is a semicolon there please help im kinda a noob and this is my first RS script.

if there is another problem please tell me.

PS:this script isn't finished i need to improve it.

i would very much appreciate it if you help me.

YoHoJo
12-18-2011, 04:32 AM
Is this script for real runescape or a private server?
If it's for runescape it's going to get you banned.
You must use Mouse/MMouse not MOVEMouse,CLICKMouse etc, they are EXTREMELY robotic and will get you caught instantly!


Standardized and fixed. You had missing ;s after some ends, and some missing ends, also your repeat until was wrong too.

program ivy_bot;

var
I:Integer;

procedure move_to_ivy;
begin
Movemouse(694, 90);
clickmouse(694, 90, 1);
wait(6000);
movemouse(627, 157);
clickmouse(627, 157, 1);
wait(4000);
movemouse(561, 114);
clickmouse(561, 114, 1);
wait(6000);
movemouse(560, 106);
clickmouse(560, 106, 1);
end;


procedure chop;

var
x, y:integer;
begin
if findcolorspiraltolerance(x, y, 2641467, 223, 76, 419, 172, 20) or
findcolorspiraltolerance(x, y, 3893842, 223, 76, 419, 172, 20) or
findcolorspiraltolerance(x, y, 5543796, 223, 76, 419, 172, 20) or
findcolorspiraltolerance(x, y, 4224089, 223, 76, 419, 172, 20) then
begin
movemouse(x, y);
clickmouse(x, y, 1);
wait(120000);
end;
end;


begin
move_to_ivy;
For I:=0 To 120000 Do
Begin
chop;
End;
end.

Once again DO NOT use this on runescape you will get banned, you need to use SRLs Mouse/MMouse

junkaholic
12-18-2011, 04:46 AM
thank you so much, im just testing it on my friend private server... for now. until i get it perfect. also thanks for the warning about the bot looking robotic i don't want to get banned. im going to try to just get comfortable with scripting then i will get more advanced with it.

YoHoJo
12-18-2011, 04:48 AM
Check out my tutorials:
http://www.youtube.com/user/YoHoJoSRL
And the tutorials at SRL
http://villavu.com/forum/forumdisplay.php?f=28
Good luck!