Results 1 to 6 of 6

Thread: Walking Path Problem

  1. #1
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Walking Path Problem

    I'm working on a script, and the walking path is not working... the character doesn't walk to the bank OR the trees.
    If you want to test it start your guy in the falador east bank and you will get the "out of bounds" message...

    My theory is that the runescape surface.png file is wrong, but my file wont work and I can't get a new one for some reason.

    Simba Code:
    Procedure WalkToTrees; // Gets you to the trees from the bank
          Var
          myPath:TPointArray;

          begin
            SetupSRL;
            SPS_Setup(RUNESCAPE_SURFACE, [ '9_7' ]);
            myPath:= [Point(265, 410), Point(266, 397), Point(250, 396), Point(223, 403)];
            SPS_WalkPath(myPath) ;
          end;

          Procedure WalkToBank; // Gets you to the bank from the trees
        Var
          myPath:TPointArray;

        begin
          SetupSRL;
          SPS_Setup(RUNESCAPE_SURFACE, [ '9_7' ]);
          myPath := [Point(225, 405), Point(239, 401), Point(254, 396), Point(267, 395), Point(267, 416)];
          SPS_WalkPath(myPath);
          end;

    If you can fix it please post the solution. PLEASE.

    ~Joe

  2. #2
    Join Date
    Feb 2011
    Location
    Earth
    Posts
    1,784
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I can say from experience that those points are nowhere close to what the SPS points in Falador are.

    How did you acquire them? They are not the correct points.

    Currently: Working on Defending&Attacking in my Castle-Wars Script
    Project Rebuild: 90M/170M

  3. #3
    Join Date
    Nov 2011
    Location
    MA
    Posts
    545
    Mentioned
    3 Post(s)
    Quoted
    10 Post(s)

    Default

    ^ This. A point in Falador would have coordinates such as (3917, 3214). Also, why are you setting up SRL in both paths?

  4. #4
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    joebot probably got the coordinates by opening 9_7 in paint.

  5. #5
    Join Date
    Oct 2011
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    As pointed out above, the SPS Points are incorrect. For a detailed tutorial you can look at Mat's SPS Walking Guide here.
    <3

  6. #6
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can somebody send me a map link? I've tried making them with "map maker tools" and stuff... Thats the only problem in my script

    Thanks for all the suggestions and help

    ~Joe

    EDIT: NEWS!!!
    By some stroke of luck I found the SPS files in Simba... I used Wolygon's path creator and found all the points ETC.
    NOW, when I try to run the script for testing I get an error saying:

    [Error] (88:25): Closing square bracket (']') expected at line 87

    Simba Code:
    Procedure WalkToTrees; // Gets you to the trees from the bank
           Var
            myPath:TPointArray;
            t: integer;
          begin
            SPS_Setup(RUNESCAPE_SURFACE, [ '9_8' ]);
            myPath:= [myPath:= [Point(3887, 3229), Point(3886, 3214), Point(3870, 3212), Point(3844, 3222)];
            SPS_WalkPath(myPath) ;

             repeat
      if (WalkToBank) then
        if (WalkToTrees) then
          break;
    until(getSystemTime > t);
          end;

          Procedure WalkToBank; // Gets you to the bank from the trees
           var
            myPath:TPointArray;
            t: integer;
            begin
              SetupSRL;
              SPS_Setup(RUNESCAPE_SURFACE, [ '9_8' ]);
              myPath := [myPath:= [Point(3844, 3222), Point(3861, 3213), Point(3884, 3211), Point(3887, 3230)];
              SPS_WalkPath(myPath);

               repeat
      if (WalkToTrees) then
        if (WalkToBank) then
          break;
    until(getSystemTime > t);
          end;

    What am I doing wrong???
    Last edited by Joe; 03-12-2012 at 02:18 PM.

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
  •