SRL Archive - OSR Help

Is SPSBlindWalk Bad?


Element17

2012-05-10 01:22:04

Is it bad to use? Is it looked down upon?



Edit** As I am using this
Function ToBankSPS: Boolean;
Var BankPath:TPointArray;
cx, cy: Integer;
Begin
SPS_Setup(RUNESCAPE_SURFACE,['0_0']);
BankPath := [Point(246, 170), Point(237, 170), Point(221, 170), Point(200, 170), Point(190, 162), Point(179, 165)];
If SPS_WalkPath(BankPath) Then
Begin
Writeln('Walking path 2 is fine');
Result := True;
Exit;
End Else
Writeln('Walking 2 failed, using other method!');
If ObjDTM_Find('21:84:2:10:7:35:86:10:7:14:73:4:6:71:22:70:22:85:7:87', cx, cy, True) Then
Begin
Writeln('Using Method 2 and found it');
ObjDTM_Walk('21:84:2:10:7:35:86:10:7:14:73:4:6:71:22:70:22:85:7:87', 2, 100, 5, True);
Wait(500);
Writeln('Using Method 2 and found it');
Result := True;
FFlag(0)
Exit;
End Else
FailSafe('Walking 2 Failed');
Logout;
End;


Procedure ToDock;
Var cx, cy: Integer;
Begin
If(Not(LoggedIn))Then Exit;
If ObjDTM_Find('140:83:5:1:7:65:42:1:7:36:67:1:7:41:105:10:7:69:74:10:7:98:87:4:131:76:146:77:144:96:132:92', cx, cy, True) Then
Begin
Writeln('Using Method 2 and found it');
ObjDTM_Walk('140:83:5:1:7:65:42:1:7:36:67:1:7:41:105:10:7:69:74:10:7:98:87:4:131:76:146:77:144:96:132:92', 2, 100, 5, True);
FFlag(0)
End;
End;

It doesn't even try sps, so if it fails shouldn't it move on to my objdtm? Would it be easier to use blindwalk?

J J

2012-05-10 04:00:47

SPS_Blindwalk is pretty accurate when using SPS 2. I'm personally using it a lot in my Great Orb Project script, which requires a lot of walking. It works extremely well for me and it has actually been the only SPS walking option that I could use at some points.

But yeah, if you can walk the path by using a preset path, it's probably better. You can use GetMyPos and make a couple TBoxes to define if SPS_Blindwalk has gotten you to your desired location. That's what I'm using as a failsafe. If MyPos isn't in the TBox I have a failsafe of RadialWalk/DTM and some other stuff to get there :P

Element17

2012-05-10 10:46:45

Alright, thank sounds good! Ha thanks man. Also good luck on your project.

Abu

2012-05-11 11:47:40

There is a very simple reason it doesn't move on to the ObjectDTM's and that's because you forgot to add a begin after end..else. If you are doing more than one thing you always have to put a begin. Currently, all it is executing is this:
Writeln('Walking 2 failed, using other method!');

If you however put a begin before that then it will execute everything after that until you put the aligning end;

So it should be:
 End Else
begin // extra begin
Writeln('Walking 2 failed, using other method!');
If ObjDTM_Find('21:84:2:10:7:35:86:10:7:14:73:4:6:71:22:70:22:85:7:87', cx, cy, True) Then
Begin
Writeln('Using Method 2 and found it');
ObjDTM_Walk('21:84:2:10:7:35:86:10:7:14:73:4:6:71:22:70:22:85:7:87', 2, 100, 5, True);
Wait(500);
Writeln('Using Method 2 and found it');
Result := True;
FFlag(0)
Exit;
End Else
FailSafe('Walking 2 Failed');
Logout;
end; // the aligning end
End;

Element17

2012-05-11 13:41:08

Sweet Thanks man!!