anuparockz
06-22-2012, 04:31 PM
Guys I'm trying to make my first script. It will cast make hunter kit spell. But Ik eep getting identifier expected error. What am I doing wrong? Here's the script. Please help.
Program HunterKitMaker;
{$DEFINE SMART}
{$i srl/srl.simba}
const
{==========Smart Setup==========}
World = 0;
MEMBERS = True;
SIGNED = True;
{===============================}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Active := True;
Players[0].Pin := '';
end;
procedure AntiBan;
begin
repeat
if(not(LoggedIn))then
Exit;
case Random(8) of
0:
begin
HoverSkill('Magic', false);
wait(1500+Random(250));
end;
1: PickUpMouse;
2:
begin
MakeCompass('N');
wait(25+random(150));
MakeCompass('S');
wait(75+Random(150));
MakeCompass('N');
end;
end;
procedure CastHunterKit;
var x, y: integer;
begin
if FindObj(x, y, 'in', 2965080, 10) then
begin
repeat
ClickMouse2(1);
ChooseOption('ast');
wait(1500+random(1000));
until(InvFull);
end;
end;
Program HunterKitMaker;
{$DEFINE SMART}
{$i srl/srl.simba}
const
{==========Smart Setup==========}
World = 0;
MEMBERS = True;
SIGNED = True;
{===============================}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Active := True;
Players[0].Pin := '';
end;
procedure AntiBan;
begin
repeat
if(not(LoggedIn))then
Exit;
case Random(8) of
0:
begin
HoverSkill('Magic', false);
wait(1500+Random(250));
end;
1: PickUpMouse;
2:
begin
MakeCompass('N');
wait(25+random(150));
MakeCompass('S');
wait(75+Random(150));
MakeCompass('N');
end;
end;
procedure CastHunterKit;
var x, y: integer;
begin
if FindObj(x, y, 'in', 2965080, 10) then
begin
repeat
ClickMouse2(1);
ChooseOption('ast');
wait(1500+random(1000));
until(InvFull);
end;
end;