Sweet, got my script to walk. Admittedly only to just outside the bank but that's all I need anyway.
Is there any randomness in this? Say I say walk to this point, will it always go to the same tile?
Sweet, got my script to walk. Admittedly only to just outside the bank but that's all I need anyway.
Is there any randomness in this? Say I say walk to this point, will it always go to the same tile?
Thanks, this helped me loads! With this, I'll hopefully have my first script finished quickly![]()
Current goal: Make my first script
Clay miner: 70% Completed
Got the same question as theneonfishy, how can I randomise it (if at all)?
E: just made a simple path from varrock center to GE! It Works! Woot!, but misses a bit too much to use for sth that is entirely based on walking (like RC).
Last edited by l6bustank; 11-09-2012 at 09:48 PM.

Great tutorial. Helped a lot. Didn't know it was so easy to do. The name always made it sound more complex.
Thanks
Does this script work for runescape classic private servers as well? such as project rsc?
I'm trying to use this code to walk on a private server but it isn't working. I get the error:
Simba Code:Error: Exception: The bitmap[0] does not exist at line 579
My full code is:
Simba Code:program Flax;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
i:Integer;
procedure Click;
begin
movemouse(648,245)
wait(200)
ClickMouse(648, 245, 1)
end;
function FlaxColor: Integer;
var
arP: TPointArray;
arC: TIntegerArray;
tmpCTS, i, arL: Integer;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.06, 0.16);
if not (FindColorsTolerance(arP, 12301909, MSX1, MSY1, MSX2, MSY2, 3)) then
begin
Writeln('Failed to find the color, no result.');
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
Exit;
end;
arC := GetColors(arP);
ClearSameIntegers(arC);
arL := High(arC);
for i := 0 to arL do
begin
Result := arC[i];
// Writeln('AutoColor = ' + IntToStr(arC[i]));
Break;
end;
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
end;
procedure PickFlax;
var x, y, w, h: integer;
begin
GetClientDimensions(w,h);
repeat
if FindColor(x,y,FlaxColor,0,0,w-1,h-1) then
begin
MoveMouse(x,y)
wait(200)
ClickMouse(x,y,1)
wait(3000)
end;
until(isKeyDown(116))
end;
begin
SPS_SETUP(RUNESCAPE_SURFACE, ['6_7','6_6','7_6','7_7']);
myPath := [Point(2780, 2875), Point(2777, 2872), Point(2775, 2868),
Point(2775, 2862), Point(2773, 2856), Point(2769, 2851),
Point(2762, 2847), Point(2757, 2841), Point(2754, 2834),
Point(2752, 2829), Point(2749, 2820), Point(2743, 2814),
Point(2743, 2807), Point(2745, 2800), Point(2747, 2792),
Point(2750, 2787), Point(2750, 2780), Point(2748, 2771),
Point(2744, 2762), Point(2744, 2754), Point(2744, 2745),
Point(2743, 2736), Point(2740, 2727), Point(2742, 2719),
Point(2747, 2710), Point(2741, 2705), Point(2739, 2688),
Point(2738, 2678), Point(2738, 2674)];
Click;
wait(1000);
SPS_WalkPath(myPath);
end.
Can anyone help? I'm thinking maybe I simply can't use SPS to walk on a private server.
Last edited by ewan; 12-03-2012 at 10:44 PM. Reason: I need to learn to click 'preview' rather than 'post'
First of all, nice tutorial^^
but i got a prbolem. everything is working fine but when i only use my function WalkToBank it works great but when i try to use it IN my script it wont do anything. so heres my script, i hope u can help me :P
Edit: Still not fixed >_>
Last edited by schnubbel15; 12-05-2012 at 08:37 PM.
Would if put this at the bottom of my script after it gets full inv then would I need to add a code to bank and walk back to willows?
Thank's for the time put into this tutorial. Really helped me!
Awesome guide. Just made my 1st walking script. I was going to use all DTMs but got discouraged.
Your guide saved my script.
Listen and Silent are spelled with the same letters for a reason.
will this work in private servers like prox? im wondering because somet hing like uptext dont
I have a problem with SPS: when trying to walk from edgeville telespot to SW portal, it seems to amplify the points i get from the path generator by x times so instead it tries to walk to somewhere in barbarian village. How can i fix this?
E: got it working again but the odd thing is that so far, I have been using this path flawlessly:
Simba Code:RoadToPortal := [Point(4114, 2650), Point(4118, 2670),
Point(4129, 2683), Point(4150, 2706), Point(4149, 2723),
Point(4156, 2740), Point(4155, 2751)];
After the current one failed, i made a new one that makes me end up in the SAME LOCATION but with completely different coordinates:
Simba Code:RoadToPortal := [Point(4109, 2633), Point(4109+(1/5), 2646), Point(4109, 2702)];
fuck logic 0_o
Last edited by l6bustank; 01-28-2013 at 01:27 PM.
Edgeville has been a tad off with the shading on the minimap now, remember SPS is a math algorithm that tries to calculate your position via small boxes, it can have deadspots/false positives, if you make a perfect (near inpossible) custom map, it should work alot better, my SPS map i made for my Edge furnace script seems to be working almost flawlessly, try that if you want, think you would have to increase the size a little tho
What do you mean amplify the points?
Its most likely calculating your position and thinks you are lower/higher than you actually are on the map, so it clicks further away, then can find itself again mid path, also if it can't find your position, it is returned as -1, -1, meaning if your point is positive, many sps functions will just click down because they are trying to move from -1-1 to the x,y, you are giving them,
It sounds like the map you are using is not accurate enough for edge now, if you make a map, anything that is on your minimap all the time, bankers or other non moving NPC dots, should be included, the closer you can get it to the way the minimap will look, the better the walking functions will work in sps
Last edited by DannyRS; 01-28-2013 at 02:05 PM.
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
Check this out, by @Google
http://villavu.com/forum/showthread.php?t=84360
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
I'm trying to run around in the flax field at catherby but my char doesnt move:
Code:program SPSTut; {$i srl/srl.simba} {$i sps/sps.simba} Var myPath:TPointArray; begin SetupSRL; SPS_Setup(RUNESCAPE_SURFACE,['6_7','7_6','6_6','];//SPS Areas myPath := [Point(2764, 2814), Point(2750, 2803), Point(2744, 2809), Point(2744, 2817), Point(2746, 2821), Point(2755, 2825), Point(2815, 2744), Point(2740, 2738), Point(2691, 2777), Point(2697, 2823), Point(2769, 2870)]; SPS_WalkPath(myPath); end.
Hey.
Long time since I posted here :P Before I carry on I'd like to thanks all the people for helping everyone
Right, I'm not to sure why its not walking but for a start you have syntax problems on the SPS_Setup.
you've got
It should be:Simba Code:SPS_Setup(RUNESCAPE_SURFACE,['6_7','7_6','6_6','];//SPS Areas
Your Path seems to be okay, for that area.Simba Code:SPS_Setup(RUNESCAPE_SURFACE,['6_7','7_6','6_6']);//SPS Areas
I'm not to sure maybe the maps need updating.
Try the SPS_Setup Fix first.
Mat
^^
Thank you for the guide, very helpful.
Code:program SpsWalktest; {$i srl-osr/srl.simba} {$i sps/sps.simba} Var OrePath:TPointArray; begin SetupSRL; SPS_Setup (RUNESCAPE SURFACE, ['5_10','4_9','4_10','6_10','6_9' ]); OrePath := [Point(2239, 4233), Point(2223, 4229), Point(2223, 4225), Point(2223, 4211), Point(2238, 4197), Point(2253, 4188), Point(2262, 4175), Point(2278, 4154), Point(2279, 4145), Point(2285, 4119), Point(2290, 4105), Point(2294, 4087), Point(2294, 4081), Point(2297, 4067), Point(2302, 4058), Point(2302, 4052), Point(2303, 4042), Point(1762, 3948), Point(1755, 4362), Point(2512, 4286), Point(2414, 3967)]; SPS_WalkPath(OrePath); end.
Exception in Script: Plugin(sps32) has not been found
Makes the walk path not work, any ideas? - I realize its for 07scape, since i cant find another tut showing how to sps on 07.. using a browser to test it, thats why theres no smart or anything.
There are currently 1 users browsing this thread. (0 members and 1 guests)