Why does this work? This one moves the other doesn't.
I call them like this.
Simba Code:
setupsrl;
paths;
sps_setup(runescape_other,['DuelAR']);
writeln(sps_getmypos);
LetsGo;
That works but this doesn't
Simba Code:
setupsrl;
path;
sps_setup(runescape_other['DuelAr']);
writeln(sps_getmypos);
Walking('Area');
Simba Code:
Procedure LetsGo;
begin
if sps_walkpath(toarea) then
writeln('moving')
else
writeln('not moving');
end;
and this doesn't:
Simba Code:
Function Walking(Which: String): Boolean;
begin
If(Not(LoggedIn)) Then Exit;
Result := False;
case Lowercase(Which) of
'Area':
begin
if SPS_WalkPath(ToArea) then
status := 'walking to the portal'
else begin
status := 'failed walking to the portal';
writeln(status + ' time running:' +timerunning);
end;
writeln(status + 'time running:' +timerunning);
end;
'Portal':
begin
if SPS_WalkPath(ToPort) then
status := 'walking to the portal'
else begin
status := 'failed walking to portal';
Writeln(status + 'time running:' +timerunning);
end;
Writeln(status + 'time running:' +timerunning);
begin
Writeln('Walking to '+Which);
FFlag(0);
end;
end;
end;
end;