johnbrown8976
2012-03-31 21:51:44
Hi,
This is my first script which is supposed to walk from Varrock Loadstone to Bank, but it does not do anything i.e does not walk at all.
I made sure that the correct map tile is loaded 11_7, but still cannot move. I tried in different places, but looks like I am missing something, Please help
This is my first script which is supposed to walk from Varrock Loadstone to Bank, but it does not do anything i.e does not walk at all.
I made sure that the correct map tile is loaded 11_7, but still cannot move. I tried in different places, but looks like I am missing something, Please help
program myFirstScript;
{$DEFINE SMART} // This is how we include SMART; it HAS to be called BEFORE SRL!
{$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 := ''; // Leave blank if the player doesn't have a bank pin
end;
Var
myPath:TPointArray;
function VarrockLoadstoneToBank : TPointArray;
begin
SetLength(Result, 6);
Result := [
Point(4050, 2725), Point(4050, 2685), Point(4225, 2630),
Point(4450, 2705), Point(4380, 2680), Point(4055, 2675)
];
end;
begin
// These 4 lines HAVE to be set BEFORE you call SetupSRL;
Smart_Server := 5;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
ClearDebug;
SetupSRL;
DeclarePlayers; // Calls the procedure, you can't forget this!
LoginPlayer; // You want your player to login, right?
SPS_Setup(RUNESCAPE_SURFACE,['11_7']);//SPS Areas
MakeCompass('N');
SetAngle(SRL_ANGLE_HIGH);
SPS_WalkPath(VarrockLoadstoneToBank);
end.