Mikkoz99
2013-04-04 11:12:34
Hello. I am trying to create a script, but I can't run it.
Here's the code:
I get the error:
[Error] C:\Users\Mikkoz\Desktop\VarrockIronMiner.simba(22:3): Identifier expected at line 21
Compiling failed.
Here's the code:
Program VarrockIronMiner;
{$DEFINE SMART}
{$I SRL-OSR/SRL.simba}
{$I SPS/sps-osr.simba}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := ''; //Your Runescape username goes right here.
Players[0].Pass := ''; //Your Runescape password goes right here.
Players[0].Active := True;
Players[0].Pin := ''; //Bank PIN
Players[0].Nick := ''; //In-Game-Name
end;
begin
SetupSRL();
procedure MineIron;
var x, y: integer;
begin
if FindObj(x, y, 'in', 2964321, 10) then
begin
Mouse(x, y, 0, begin
SetupSRL();0, true);
ChooseOption('ine');
wait(1500+random(1000));
end;
end;
procedure WalkToBank;
begin
if (InvFull) then
begin
MakeCompass(180);
SPS_AnyAngle := True;
SPS_Setup(runescape_surface, ['12_7']);
SetRun(True)
SPS_WalkPath([Point(187, 386), Point(195, 322),Point(194, 257), Point(176, 193),Point(161, 166), Point(118, 167),Point(61, 166), Point(43, 166),Point(44, 194), Point(44, 200)]);
end;
end;
procedure BankIron;
begin
WriteLn('Looking for bank.');
if FindBank('veb') then
begin
WriteLn('We have found the bank.');
if OpenBank('veb', False, True) then
begin
WriteLn('Banking…');
DepositAll;
CloseBank;
end;
end;
end;
procedure WalkToMine;
begin
MakeCompass(180);
SPS_AnyAngle := True;
SPS_Setup(runescape_surface, ['12_7']);
SetRun(True)
SPS_WalkPath([Point(43, 165), Point(109, 165),Point(165, 165), Point(182, 204),Point(196, 259), Point(196, 323),Point(198, 385), Point(173, 400),Point(173, 408)]);
end;
procedure AntiBan;
begin
if (not(LoggedIn))then
Exit;
case Random(8) of
0:
end;
begin
HoverSkill('Mining', false);
wait(1500+Random(150));
end;
begin
MakeCompass('N');
wait(25+random(100));
MakeCompass('S');
wait(30+random(110));
MakeCompass('N');
end.
I get the error:
[Error] C:\Users\Mikkoz\Desktop\VarrockIronMiner.simba(22:3): Identifier expected at line 21
Compiling failed.