Great guide, Helped me out with a few things!
Great guide, Helped me out with a few things!
Edit: never mind saw error by looking at older posts multiple times. got it running perfectly!!! thank you so much!!!
Last edited by blazingrobin; 03-03-2012 at 11:26 AM.
Is it possible/wise to include multiple paths from A-B in a script using this method? i would assume that using the exact same path over a period of time would become quite noticable, or is this not an issue?
I like the simplicity of this method and until i get a few hours to wrap my head around DTMs and RadialWalk i wouldnt mind messing about with it. cheers in advance!
Also, SPS has a built in x+y randomness of 1. So the point will be automatically be randomized a bit, then randomized even more by the accurateness.
awesome, tyvm!
Thanks a lot! I had no idea the SPS map files were IN simba... I was stressing out trying to find links to map surfaces.
*LIFESAVER*
How to put that code in an other script ?
hey mat im just starting scripting and im trying to get banking working on living rock caverns though when i extract the dungeons file all the folders are empty without the picture of the map. What is rong? to i need to update/re dl simba?
i got a map from somebody but which was (if u can see that)
i keep getting this error this is my script so far:
SetupSRL;
SPS_Setup(living_rock_caverns),['0_1','0_0','];//SPS Areas
myPath := myPath := [Point(310,413),Point(306,402),Point(303,391),
Point(300,380),Point(292,374),Point(282,364),Point (271,353),
Point(269,339),Point(268,324),Point(267,314),Point (267,296),
Point(267,283),Point(267,273),Point(266,263),Point (259,255),
Point(245,250)];//Path
SPS_WalkPath(myPath);
end.
error is [Error] (10:11): Unknown identifier 'living_rock_caverns' at line 9
Compiling fail. Please help
My scripts:
Advanced Barb Agility Course(outdated), MonkeyThieverV0.11, MahoganyTableV0.4(outdated)
Questions? I bet that for 98% of those, you'll find answer HERE
yeh i put the map in there if that what you mean.
Ok i got this to run and compile but it dosnt typ my user name and password i dont know whats going on anyone help =((( ????
program falador wine;
{$DEFINE SMART} /////
{$I SRL/SRL.SIMBA} /////
{$I SI/MAIN.SIMBA} /////
{$DEFINE SRL/SRL/MISC/PAINTSMART.SIMBA}
{$i sps/sps.simba}
const
////////////////////////////////////////////////////////////////////////////////
////////// Global Settings ///////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///// http://stats.villavu.com /////
SRLStats_Username = ''; ///// SRL Stats Username /////
SRLStats_Password = ''; ///// SRL Stats Password /////
////////////////////////////////////////////////////////////////////////////////
////////// Player Settings ///////////////////////////////
////////////////////////////////////////////////////////////////////////////////
Procedure DeclarePlayers; /////
Var /////
HowManyPlayers: Integer; /////
Begin /////
HowManyPlayers := 1; /////
NumberOfPlayers(HowManyPlayers); /////
CurrentPlayer := 0; /////
With Players[0] Do ////////////////////////////////////////////////
Begin ///// /////
Name := ''; ///// Runescape Login /////
Pass := ''; ///// Runescape Password /////
Pin := ''; ///// Runescape Bank Pin /////
Active := True; ///// Use this Player /////
End; ///// /////
End; ///// /////
////////////////////////////////////////////////////////////////////////////////
////////// End of Settings ////////////////////////////
////////////////////////////////////////////////////////////////////////////////
var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE,['20_11']);//SPS Areas
myPath := [Point(137, 343), Point(171, 294), Point(136, 189),
Point(127, 135), Point(124, 90), Point(122, 55), Point(110, 55)];//Path
SPS_WalkPath(myPath);
end.
You have to put "LoginPlayer;" in the mainloop.
go look at my separate tutorial for map making explains about making new areas.
^^
Simba Code:SPS_Setup(RUNESCAPE_SURFACE,['6_6','7_6','6_5','6_4','5_4','5_5','5_7','6_7','7_7','8_7','8_6','7_5','7_4']);
Path_ToBank := [Point(2530, 1789), Point(2533, 1837), Point(2528, 1881), Point(2512, 1924), Point(2507, 1969), Point(2493, 2011), Point(2482, 2029), Point(2486, 2065), Point(2491, 2103), Point(2489, 2128), Point(2488, 2177), Point(2456, 2208), Point(2452, 2243), Point(2450, 2296), Point(2449, 2333), Point(2460, 2351), Point(2477, 2375), Point(2477, 2410), Point(2528, 2418), Point(2538, 2447), Point(2559, 2461), Point(2586, 2455), Point(2614, 2466), Point(2636, 2472), Point(2659, 2467), Point(2713, 2469), Point(2745, 2473), Point(2766, 2479), Point(2787, 2488), Point(2801, 2506), Point(2803, 2563), Point(2801, 2613), Point(2801, 2660), Point(2776, 2692), Point(2754, 2702), Point(2740, 2705), Point(2737, 2681)];
if SPS_WalkPath(Path_ToBank) then
begin
SPS_WalkPath(Path_ToBank);
writeln('We are at the bank!');
Can you see anything wrong with that? It's meant to walk from rockcrabs to bank. It DID work a day or so ago, but now it walks to a certain point and gets stuck. I've tried redoing the points, redoing the SPS_Areas. All no luck. Gets stuck same place.
Not sure how to fix it..
Cheers,
Luke
try changing the tolerance on SPS.
^^
thanks, it's helpful for beginners
I already whacked it up to 0.5. I'll try it on 1.5 and see how it goes.. Not sure how sensitive it is.
Luke
EDIT:
Changed tolerance to 0.7 1.0 and 1.5. Anything above 0.6 for me lags the SMART client out.
0.6 didn't help - made it worse. 0.1 doesn't work. ARGH.. It walks halfway and just stops! there's this one gap in the map it just doesn't want to walk across. It'll get to it from either direction(To crabs or To bank) and just stop.
Hmm
miniEDIT(PS - I no longer lagout when tol is above 0.9)
EDIT2:
I give up. SPS is broken for that area. Pretty sure it's the runescape_surface_map. No idea where to get the new one. I tried other map walking methods but they're all too unreliable to walk all the way from crabs to bank. Toooo many windy roads/bridges/trees
/defeated
Last edited by Zota; 03-22-2012 at 11:37 AM.
Seers to Rockcrabs.
I've got it working now. ALMOST. It's still very buggy.
Spent AGES adding about a bajillion failsafe checks to the walking.
I find that these failsafes help if your SPS path is not working: going from most effective to least.
1. Logout and in.
2. Use mainscreen and move a couple points.
3. Teleport to a nearby lodestone/location(walk from lodestone to desired spot)
4. Rotate camera(not sure if this works at all but it doesn't hurt) (reset to north/high)
DEPENDANT ON LOCATION:
1. Combination of DTMs etc.
2. Symbol Finding/sps
Cheers,
Luke
Last edited by Zota; 03-24-2012 at 03:28 PM.
Edit: Never mind, fixed that problem.
But uh, do I have to declare the path and then use WalkPath in the same procedure/function?
Kept saying it couldn't find it.
Last edited by NKN; 03-25-2012 at 08:49 PM.
Hey i keep getting a compiling error even though i have done everything in your guide i wanted to know if you could help me please
ErrorCode:program LRCwalker; {$i SRL/SRL.simba} {$i SPS/SPS.simba} Var myPath:TPointArray; begin SetupSRL; SPS_Setup(LIVING_ROCK_CAVERNS,['0_1','0_0']);//SPS Areas myPath := [Point(307, 412), Point(300, 389), Point(294, 377), Point(286, 362), Point(281, 343), Point(276, 325), Point(273, 310), Point(269, 288), Point(267, 273), Point(260, 257), Point(241, 262)];//Path SPS_WalkPath(myPath); end
I don't know it's giving me a Hint, but i went to mapwalk.simba and looked at line 1352's procedure and didn't find the BOX Variable, so i don't know what is wrong if you could please help me i'm trying to do my first script but it's hard as hellCode:[Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352 [Error] (1:1): period ('.') expected at line 0 Compiling failed.
There are currently 1 users browsing this thread. (0 members and 1 guests)