cradlefatal
2013-02-25 14:56:59
I am following a tutorial vid for scripting I am making a Ardougne coal miner and I keep getting this error at line 69
[Error] C:\Simba\Scripts\newminer.simba(70:1): Identifier expected at line 69
Compiling failed.
this is what I have written so far
program new;
//{$DEFINE SMART8}
{$i SRL\SRL.simba}
{$i SRL\SRL\Misc\Debug.simba}
Const
SRLStats_Username = '';// Your SRL Stats Username
SRLStats_Password = ''; // Your SRL Stats Password
LoadsTotal = 9999; //
PaintEvery = 5; //Update leve paint every this many seconds
Version = '1.00'; //
procedure DeclarePlayers;
var i:integer;
begin
NumberOfPlayers(1);
CurrentPlayer := 0;
for i := 0 to 1-1 do
Players.BoxRewards := ['Mining'];
with Players[0] do
begin
Name := ''; //Player username.
Pass := ''; //Player password.
Active := True;
Integers[1] := 4; //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
Integers[2] := 4; //Seconds to try mining rock before clicking another.
End;
End;
Procedure StatsGuise(wat:String);
Begin
Status(wat);
Disguise(wat);
End;
Procedure Antiban;
Begin
Case Random(100) Of
1: HoverSkill('mining', False); //replace 'magic' with 'skill'
2: HoverSkill('mining', False);
3: Boredhuman;
4: Wait(2500 + random(4500));
5: HoverSkill('mining', False); // replace 'smithing' with 'skill', or delete.
6: PickUpMouse;
7: RandomMovement;
8: RandomRClick;
End;
End;
Procedure FailSafe(Reason:String);
Begin
Players [CurrentPlayer].Loc:=Reason;
Logout;
Stats_Commit;
//ProgressReport;
TerminateScript;
End;
Function CheckAndClick(UpText:String; X,Y:Integer; RClick:String):Boolean;
Begin
MMouse(x, y, 5, 5);
If WaitUptext(UpText, 5) Then
Begin
Result:=True;
GetMousePos(x, y);
End;
Procedure Failsafe Mine:Boolean;
Var
x,y: Integer;
Begin
If FindObjCustom(x, y, ['Mine', 'Coal', 'rocks', 'e l s',], [2039840,7437940,2961199,2763820,789773,2237219,1776925,2039840,], 15);
WriteLn('We Found The Rock')
end;
Begin
SetupSRL;
DeclarePlayers'
//Repeat
Mine;
//Until(False);
end;
[Error] C:\Simba\Scripts\newminer.simba(70:1): Identifier expected at line 69
Compiling failed.
this is what I have written so far
program new;
//{$DEFINE SMART8}
{$i SRL\SRL.simba}
{$i SRL\SRL\Misc\Debug.simba}
Const
SRLStats_Username = '';// Your SRL Stats Username
SRLStats_Password = ''; // Your SRL Stats Password
LoadsTotal = 9999; //
PaintEvery = 5; //Update leve paint every this many seconds
Version = '1.00'; //
procedure DeclarePlayers;
var i:integer;
begin
NumberOfPlayers(1);
CurrentPlayer := 0;
for i := 0 to 1-1 do
Players.BoxRewards := ['Mining'];
with Players[0] do
begin
Name := ''; //Player username.
Pass := ''; //Player password.
Active := True;
Integers[1] := 4; //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
Integers[2] := 4; //Seconds to try mining rock before clicking another.
End;
End;
Procedure StatsGuise(wat:String);
Begin
Status(wat);
Disguise(wat);
End;
Procedure Antiban;
Begin
Case Random(100) Of
1: HoverSkill('mining', False); //replace 'magic' with 'skill'
2: HoverSkill('mining', False);
3: Boredhuman;
4: Wait(2500 + random(4500));
5: HoverSkill('mining', False); // replace 'smithing' with 'skill', or delete.
6: PickUpMouse;
7: RandomMovement;
8: RandomRClick;
End;
End;
Procedure FailSafe(Reason:String);
Begin
Players [CurrentPlayer].Loc:=Reason;
Logout;
Stats_Commit;
//ProgressReport;
TerminateScript;
End;
Function CheckAndClick(UpText:String; X,Y:Integer; RClick:String):Boolean;
Begin
MMouse(x, y, 5, 5);
If WaitUptext(UpText, 5) Then
Begin
Result:=True;
GetMousePos(x, y);
End;
Procedure Failsafe Mine:Boolean;
Var
x,y: Integer;
Begin
If FindObjCustom(x, y, ['Mine', 'Coal', 'rocks', 'e l s',], [2039840,7437940,2961199,2763820,789773,2237219,1776925,2039840,], 15);
WriteLn('We Found The Rock')
end;
Begin
SetupSRL;
DeclarePlayers'
//Repeat
Mine;
//Until(False);
end;