JNCR
2007-09-17 01:07:47
Hey its JNCR and I am just learning scripting. I decided to make a camelot teleporting script and i am getting the following error message:
Failed when compiling
Line 30: [Error] (12983:1): Identifier expected in script G:\JUSTIN\SCAR 3.11\Scripts\[SRL4] JNCR CammyTelly 1.0.scar
This is my first script so if I am making a stupid noob error please don't hit me too hard :p.
its really simple and lacks antirandoms and yes i will put them in later but first i just need to solve this dumb error. also any other feedback would be greatly appreciated. thanks.
Here's the script:
Thanks for future feedback,
~JNCR
Failed when compiling
Line 30: [Error] (12983:1): Identifier expected in script G:\JUSTIN\SCAR 3.11\Scripts\[SRL4] JNCR CammyTelly 1.0.scar
This is my first script so if I am making a stupid noob error please don't hit me too hard :p.
its really simple and lacks antirandoms and yes i will put them in later but first i just need to solve this dumb error. also any other feedback would be greatly appreciated. thanks.
Here's the script:
program CammyTelly;
{.include SRL/SRL.scar}
{.include SRL/SRL/skill/Magic.scar}
Procedure Telly;
var
I : Integer;
begin
I := 0
repeat
wait(2000 + random(2000));
cast('Camelot Teleport');
I := I + 1;
until(I = 10)
Writeln('Completed Teleporting');
Logout;
end;
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :='user';
Players[0].Pass :='pass';
Players[0].Integers[2] := 50; //Loads To Do
Procedure Login;
begin
if not Loggedin then LoginPlayer;
end;
begin
SetupSRL;
DeclarePlayers;
GetSelf.WindowState := wsMinimized;
MouseSpeed := 15 + random(3);
Login;
Telly;
end.Thanks for future feedback,
~JNCR