SRL Archive - OSR Help

complete noob needs help with walking codes


tombow

2012-04-16 16:57:14

ok so i wana add banking to my miner,iv used wolyygon path creater to make from mine to varock bank can anyone help with what i should type? like procedure and can anyone help with how i can get it to click the bank and desposit all when its there
heres my path

SPS_Areas := ['12_7','];

myPath := [Point(4986, 3199), Point(4997, 3157), Point(5010, 3133), Point(5010, 3108), Point(5007, 3058), Point(4997, 3022), Point(4982, 2987), Point(4971, 2949), Point(4945, 2937), Point(4904, 2937), Point(4874, 2935), Point(4852, 2941), Point(4855, 2974)];

Total

2012-04-16 17:20:39


procedure PathToBankSPS;
var
PathToBank : TPointArray;
begin
if(not(LoggedIn))then Exit;
if(not(FindNormalRandoms))then
SPS_Setup(RUNESCAPE_SURFACE, ['12_7']); //Put SPS_Areas in here when using walking tool
PathToBank := //Put your path here
SPS_WalkPath(PathToBank);
end;

nickrules

2012-04-16 17:30:18

and to open the bank:
Procedure DoBanking;
begin
openbank('vwb');
depositall;
end;

You could get more complicated, but I don't think you want to at this point.

tombow

2012-04-16 17:38:31

do i need to write a new code out for it to go from bank back to mine or is there a way to reverse the one to walk to bank?
thanks alot btw guyys

Echo_

2012-04-16 17:47:46

SPS_WalkPath(InvertTPA(PathToBank));

tombow

2012-04-16 18:13:54

SPS_Setup(RUNESCAPE_SURFACE, ['12_7']); //Put SPS_Areas in here when using walking tool

its erroring this
Unknown identifier 'SPS_Setup' at line 229

Kyle Undefined

2012-04-16 18:22:16

Are you calling {$i sps/sps.simba} at the top of your script?

tombow

2012-04-16 18:25:24

yea im calling it now but getting error
openbank('vwb');
[Error] (238:16): Invalid number of parameters at line 237

also why am i getting this error when playying a diff script im making
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.