Hey
SPS, stands for SRL POSITIONING SYSTEM.
SPS is a way of making a script walk.(... Yea).
Lets Start.
The Includes This has to be located at the Top of the Script.
Simba Code:
{$i srl/srl.simba}
{$i sps/sps.simba}
To set SPS up. You always have to do this before you start SPS.
Simba Code:
SPS_Setup(RUNESCAPE_SURFACE,['3_1']);
You can see RUNESCAP_SURFACE. This is saying that you want to walk on the Main Map of RS. If you want to Walk in Different area's you can find them by going: C:\Simba\Includes\SPS\img\
You should see a list of folders like this:
These are the different RS Area.
Next you can see this:
There are two ways to get these the '3_1' (There are loads not just that).
To get these and make the Path I use a Program Called "Path Creator" you can download this Here:http://villavu.com/forum/showthread....t=path+creator
Once you have Downloaded it Open it up.
Should Look like this.
Next you Click on New Image and it should Show Something like this:
Find The File Runescape_Surface.PNG and Open it.
It should load and it looks like it hasn't becuase all you can see is blue, but it is there :P to find Locations you can either scroll along the map or use the pre made locations I'm going to use that to go to Varrock for this Tutorial.
Then you should be able to see Varrock, if you Click on the Map You'll Be able to see a Blue square with a Blue Ring Around it like in the image below.
This is a TPoint (Spot where the Bot will Walk to). The blue ring is the MiniMap (So its what the MiniMap can See).
To make your Path
Click in the blue ring in the direction you want to go to, Like this:
Once made your Path if you look to the bottom of the Program you should be able to see this:
Click Generate path in the larger Box, and then it will look like this:
This is your Path.
Copy that and Paste it in to Simba: (Also Included SRL and Put SetupSRL; Before everything (My Bad :P))
If you Notice I have nothing in the this is because I haven't copied it(the SPS Area) from the Path Creator.
Before that I always do this before I copy it, I click in a huge square around my path as you can see in the image below (The red shaped things to show you my extra points):
I do this because a lot of the time it fails to walk even though the Path is Correct and the Areas are what the Path Creators says.
Before More Points:
Simba Code:
SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6']);
After More Points:
Simba Code:
SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6','10_6','10_7','12_7','12_6']);
I found adding more works better but if you don't want to it may work with out.
Ow I almost Forgot, The Vars.
The Path Name can be Anything you want it doesn't matter, but thr Var has to be the same.
If its only one point it will be:
This will be if you only have to walk to one point say at CW Bank, after you've teleported there.
Making it Walk
Once you Have everything made the Path and the Area, Now you can make it walk.
There are Two Commands One for a path walking and one for a single position walking.
Path Walking
Walking to a Position.
All In
With every thing in your Script should look similar to this:
Simba Code:
program SPSTut;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6','10_6','10_7','12_7','12_6']);//SPS Areas
myPath := [Point(4684, 2963), Point(4675, 2957), Point(4667, 2947),
Point(4662, 2936), Point(4644, 2936), Point(4638, 2927), Point(4628, 2918),
Point(4628, 2905), Point(4622, 2891), Point(4619, 2872), Point(4619, 2863),
Point(4597, 2851), Point(4580, 2840), Point(4557, 2841), Point(4534, 2837),
Point(4517, 2831), Point(4510, 2816), Point(4503, 2804), Point(4502, 2792),
Point(4500, 2778), Point(4509, 2773), Point(4526, 2776), Point(4543, 2774),
Point(4550, 2766), Point(4553, 2756), Point(4564, 2748)];//Path
SPS_WalkPath(myPath);
end.
SUCCESS! If you have Followed my Tutorial your Script should be able to walk to any Location.
There are Some things you may want to know SPS isn't the Best in the Deserts or Snowy area, but Hopefully SPS 2 should improve this!
Hope this Has Helped Some People
Mat