Results 1 to 9 of 9

Thread: SPS Walking

  1. #1
    Join Date
    Sep 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default SPS Walking

    I don't think I am doing it right. Using SPS 2.

    Code:
    Procedure Walking;
    var
      myPath: TPointArray;
    begin
      SPS_Setup(RUNESCAPE_SURFACE, ['10_8'])
      myPath := [Point(207, 483), Point(231, 457), Point(253, 436), Point(251, 401), Point(254, 355), Point(267, 322), Point(276, 288), Point(301, 264), Point(324, 236), Point(347, 218), Point(369, 201), Point(395, 188)];
      SPS_WalkPath(myPath);
    end;
    I get this error:

    Progress Report:
    SPS_GetArea ERROR: Exception: Error while reading stream: Unable to open file "C:\Simba\Includes\SPS\img\runescape_surface\10_8.png"


    I am looking at the file the path indicates, so what could be the problem?

    I guess this should be in scripting help. Move if it would be better please
    Last edited by blother; 05-27-2012 at 12:26 AM.

  2. #2
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    10_8 isn't a file?

    Try re installing SPS, and checking you're using the correct map.

  3. #3
    Join Date
    Sep 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    I got the walking to work and I was wondering how to use this to do something while I am walking:

    Code:
      SRL_Procs[SRL_Antiban] := @antiban;
    I don't really understand what i need to put in the brackets or after the ":="

    Also, I was wondering if I could use this as a check to locate if I am in a certain area, and to stop the walking if I have reached the area. That might sound like a dumb need, but SPS hasn't been completely reliable.

  4. #4
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    I have a function that does exactly what you want but I can't get at it on my phone, if a member sees this they can go to my EnlightenedLawRunner and paste SPS_WalkPathEx out of it

  5. #5
    Join Date
    Sep 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by putonajonny View Post
    I have a function that does exactly what you want but I can't get at it on my phone, if a member sees this they can go to my EnlightenedLawRunner and paste SPS_WalkPathEx out of it
    Thanks I appreciate that. What I am trying to do is make a fix for the draynor walking. I want to see if using a DTM or DDTM to check for the mine would be able to stop the path walking, so it won't go into the cow pen.

    This is somewhat unrelated, but I was wondering what peoples' thoughts are on looking at other scripts to learn from. I feel if I look at other mining scripts to get ideas for mine I would be stealing their work. Maybe it is because I don't have enough knowledge to take their ideas and change them to make it better. So far, I have been trying to use tutorials and come up with my own methods of writing scripts. The conflict is that I feel limited by this way of learning and the only way to change that is to do what I don't think I should do, if that makes sense lol. Can some people spread some light on how to go about this?

  6. #6
    Join Date
    Sep 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Bump. Anyone got anything?

  7. #7
    Join Date
    Nov 2011
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    You can use others functions with credit to them.

  8. #8
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    From the looks of it your using path maker from the map image 10_8 you need to use the whole rs map not just one of the small once.



    ^^

  9. #9
    Join Date
    Sep 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Mat View Post
    From the looks of it your using path maker from the map image 10_8 you need to use the whole rs map not just one of the small once.
    I already got that part too work. Should I just start trying to use ODTM walking or radial walking?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •