Ann_arbor
2012-12-09 03:30:23
I just got done following the tutorial on how to make a simple woodcutter script. I am now attempting to add walking and banking to the procedure but every time I add the walking function, it either gets ignored, or walking is the only thing the script will do. I used the path creator program to get my walking coordinates.
Any help is greatly appreciated!
Any help is greatly appreciated!
program new;
{$DEFINE SMART}
{$i srl/srl.simba}
{$i sps/sps.simba}
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
Players[0].Pin :=''
end;
procedure AntiBan;
begin
if(not(LoggedIn))then
Exit;
case Random(8) of
0:
begin
HoverSkill('woodcutting', false);
wait(2453+Random(432));
end;
1: PickUpMouse;
2:
begin
MakeCompass('N');
wait(100+random(133));
MakeCompass('S');
wait(50+random(133));
MakeCompass('N');
end;
end;
end;
Procedure ChopTree;
var x, y: integer;
begin
repeat
if FindObj(x,y,'hop',1384479, 05) then
begin
Mouse(x, y, 2, 2, false);
ChooseOption('hop');
end;
repeat
Wait(400+random(250));
AntiBan;
Until not IsUpText('ew') or (InvFull);
until(invFull);
end;
Procedure Walk;
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['11_7']);
myPath :=[Point(4497, 3032), Point(4500, 3029), Point(4503, 3026), Point(4509, 3008), Point(4509, 3008), Point(4509, 3003), Point(4509, 2998), Point(4510, 2992), Point(4512, 2981), Point(4516, 2970), Point(4516, 2964), Point(4522, 2949), Point(4522, 2949), Point(4525, 2948), Point(4528, 2945), Point(4531, 2943), Point(4535, 2942), Point(4542, 2939), Point(4548, 2939), Point(4553, 2938), Point(4560, 2935), Point(4564, 2933), Point(4571, 2929), Point(4576, 2923), Point(4581, 2915), Point(4582, 2911), Point(4588, 2908), Point(4593, 2908)];//Path
SPS_WalkPath(myPath);
end;
begin
SetUpSRL;
ActivateClient;
DeclarePlayers;
LoginPlayer;
ChopTree;
end.