Log in

View Full Version : I keep on geting an error in my script someone help!



Ilikepie1995
04-03-2007, 09:21 PM
I keep on getting this stupid error in my script, iam a begginer (just started the script),Well can someone help me out.. :confused:

Failed when compiling
[Error] (18071:4) : Semicolon (';') expected in script

program DraynorOakCutterAndBanker;
{.Include SRL/SRL.Scar}
{.Include SRL/SRL/Skill/Woodcutting.Scar}
{Dis was made by BlackFire}
{Instructions:Stand in the draynor bank with bronze axe in first inv spot
and other BRONZE ONLY in first bank spot,also,low detail,v-bright,LOGDOUT,
face west,the bank booth thats closed}
{I will try adding more players able next version,well ya know iam still
new at this lol =L}
var
i: Integer;
Procedure Login;
begin
ClearDebug;
WriteLn('Going to log in lmfao');
MoveMouseSmooth(460,292);
Wait(1000);
HoldMouse(460,292,true);
Wait(500);
ReleaseMouse(460,292,true);
SendKeys(''+chr(13)); //Username
Wait(1000);
SendKeys(''+chr(13)); //Password
MoveMouseSmooth(298,321);
Wait(1000);
HoldMouse(298,321,true);
Wait(100);
ReleaseMouse(298,321,true);
Wait(10000);
end.

Jason2gs
04-03-2007, 09:31 PM
Hi! I'm Jason2gs, have you met my friends? The SCAR tags?

I also have a few more friends called Mouse, MMouse, TypeSend, and one very special friend called "Main Loop" :p

You have a procedure, but you don't call it in the main loop. Actually, you don't even have a main loop.

WT-Fakawi
04-03-2007, 10:55 PM
This should work. Good start :)


program DraynorOakCutterAndBanker;
{.Include SRL/SRL.Scar}
{.Include SRL/SRL/Skill/Woodcutting.Scar}
{Dis was made by BlackFire}
{Instructions:Stand in the draynor bank with bronze axe in first inv spot
and other BRONZE ONLY in first bank spot,also,low detail,v-bright,LOGDOUT,
face west,the bank booth thats closed}
{I will try adding more players able next version,well ya know iam still
new at this lol =L}
var
i: Integer;
Procedure Login;
begin
ClearDebug;
WriteLn('Going to log in lmfao');
MoveMouseSmooth(460,292);
Wait(1000);
HoldMouse(460,292,true);
Wait(500);
ReleaseMouse(460,292,true);
SendKeys(''+chr(13)); //Username
Wait(1000);
SendKeys(''+chr(13)); //Password
MoveMouseSmooth(298,321);
Wait(1000);
HoldMouse(298,321,true);
Wait(100);
ReleaseMouse(298,321,true);
Wait(10000);
end;

begin
Login;
end.

~alex~
04-04-2007, 07:15 AM
Dont use sendkeys or movemousesmooth, use mouse(x,y,ranx,rany,click) and typesend(''). Also add abit of randomness to your waits, ie wait(100+random(100))