SRL Archive - RS3 Help

Best method for walking a short distance?


Incurable

2014-09-09 04:39:43

Hi,

I'm creating a script that repeats a task in a very small area. The code is something like this:


repeat
DoStuffA();
WalkPosB();
DoStuffB();
WalkPosA();
until (conditionMet);

I'm currently using SPS.walkPath(path) walk between the two locations, but it seems a little overkill to use SPS for what is literally one click on the mini-map. I've only ever used SPS, but I'm more than willing to learn a new method. So, is SPS the best method for what I'm trying to do, or is there a more efficient way to do it? Note that I'd also like to be able to rotate the compass in directions other than North for anti-ban, but I have no idea what other walk methods can handle that.

Cheers.

The Mayor

2014-09-09 05:28:04

Post a screen shot/map of where you are trying to walk, I may have a method :p

riwu

2014-09-09 05:41:32

symbols/atpa/dtm/bitmap? They could all work with different compass direction with some simple math, though the latter could be slower as rotating and checking entire bmp could be slow.

Incurable

2014-09-09 05:44:31

From: The Mayor
Post a screen shot/map of where you are trying to walk, I may have a method :p


Map:


Walk path:


EDIT:

From: riwu
symbols/atpa/dtm/bitmap? They could all work with different compass direction with some simple math, though the latter could be slower as rotating and checking entire bmp could be slow.


I've never used anything but SPS, and I wouldn't even know what else is available (haven't heard of using any of those to walk). :p Pending Mayor's response, do you have a link to any tutorials based on any of those? Old or new, I will figure it out.

riwu

2014-09-09 06:18:28

From: Incurable
Map:
I've never used anything but SPS, and I wouldn't even know what else is available (haven't heard of using any of those to walk). :p Pending Mayor's response, do you have a link to any tutorials based on any of those? Old or new, I will figure it out.

this appears to be quite a comprehensive one https://villavu.com/forum/showthread.php?t=19162
it's simply using FindSymbol(), then adjust the the point returned, using RotatePoint() if u want it to be independent of compass dir.

The Mayor

2014-09-09 06:42:45

TBH, you could use blindWalk() or walkToPos() with spsAnyAngle set to true. That will be the easiest way; basically a 30 second mod to your current script. I did create a function that can walk to the offset of a known point at any compass angle, but I don't think that is necessary here.

sipfer3

2014-09-09 07:44:06

i gues u want to go to the bank? u could also use a dtm to find it and then clin on it :)

Incurable

2014-09-09 08:29:36

From: riwu
this appears to be quite a comprehensive one https://villavu.com/forum/showthread.php?t=19162
it's simply using FindSymbol(), then adjust the the point returned, using RotatePoint() if u want it to be independent of compass dir.


I've bookmarked that for future use, thank you. :)

From: The Mayor
TBH, you could use blindWalk() or walkToPos() with spsAnyAngle set to true. That will be the easiest way; basically a 30 second mod to your current script. I did create a function that can walk to the offset of a known point at any compass angle, but I don't think that is necessary here.


Is there any noticeable difference in speed between blindWalk(), walkToPos(), and walkPath()?

From: sipfer3
i gues u want to go to the bank? u could also use a dtm to find it and then clin on it :)


Between the bank and fountain, but yes.

3Garrett3

2014-09-09 10:14:14

From: riwu
this appears to be quite a comprehensive one https://villavu.com/forum/showthread.php?t=19162
it's simply using FindSymbol(), then adjust the the point returned, using RotatePoint() if u want it to be independent of compass dir.


I remember RadialWalk being a beast before, does SRL still have something like that? It could be used with a bit of math to make a simple one step thing, and then walking back to the bank can be as simple as finding the symbol.

riwu

2014-09-09 10:31:56

From: 3Garrett3
I remember RadialWalk being a beast before, does SRL still have something like that? It could be used with a bit of math to make a simple one step thing, and then walking back to the bank can be as simple as finding the symbol.

Yeah there still is, although i dont think u can use it for this case. Radial walk is generally used for walking along a path (like a road etc)

3Garrett3

2014-09-09 11:27:32

From: riwu
Yeah there still is, although i dont think u can use it for this case. Radial walk is generally used for walking along a path (like a road etc)


Could you use it to walk to a fountain on the minimap? I have no idea what it looks like but I figured that was a unique colour maybe.

riwu

2014-09-10 05:36:55

From: 3Garrett3
Could you use it to walk to a fountain on the minimap? I have no idea what it looks like but I figured that was a unique colour maybe.

Possibly but using FindSymbol() or atpa will be more direct.