Umm this is my script..
It logs in and starts trying to find maples, (I start in bank.) Then if I move to maples it will cut them but when inv is full is does not go to the bank. It seems like something is wrong with radial walk but i'm not sure. So if anyone can help me (even though Town is the only person that helps around here.) I would be very thankful!!
Code:
program ZetasMapleChop;
{.include SRL\SRL.scar}
{.include SRL\SRL\Skill\Woodcutting.SCAR}
const
Maple = 19058; //the color of the maple
Maple2 = 16760;
Maple3 = 9548;
Tol = 12;
RunDirection = 'S'; //the direction to run if in fight
LogsToChop = 50; //how many logs to chop)
procedure DeclarePlayers;
begin
HowManyPlayers := 1; //Number of players to use
NumberOfPlayers(HowManyPlayers); //Don't Touch
CurrentPlayer := 0; //Player to start with
Players[0].Name := 'shampoo'; //Players username
Players[0].Pass := ''; //Players password
Players[0].Nick := 'hamp'; //3-4 characters from players username(Lowercase and no spaces)
Players[0].Active := True; //Are you using this player?
end;
procedure WalkToMaples;
begin
MakeCompass('N');
RadialWalk( 2264447 , 10, 52, 40, 0, 0);
wait(1000+random(687));
end;
procedure ChopMaples;
var
ChopMark: Integer;
begin
repeat
if FindObjMulti('aple tree', Maple, Maple2, Maple3, Tol) then
begin
GetMousePos(X, Y);
Wait(500 + Random(102));
Mouse(X, Y, 1, 1, True);
MarkTime(ChopMark);
repeat
Wait(500 + Random(250));
FindNormalRandoms;
until(TimeFromMark(ChopMark) >= (10000 + Random(5000)));
end;
until(InvFull);
end;
procedure WalkToBank;
begin
if (InvFull) then
begin
MakeCompass('N');
RadialWalk( 9606557 , 218, 195, 50, 0, 0);
end;
end;
begin
ActivateClient;
SetUpSRL;
DeclarePlayers;
repeat
if not LoggedIn then LogInPlayer;
WalkToMaples;
ChopMaples;
WalkToBank;
until(false)
end.
It logs in and starts trying to find maples, (I start in bank.) Then if I move to maples it will cut them but when inv is full is does not go to the bank. It seems like something is wrong with radial walk but i'm not sure. So if anyone can help me (even though Town is the only person that helps around here.) I would be very thankful!!


