Results 1 to 5 of 5

Thread: SPS Walking Issues

  1. #1
    Join Date
    Feb 2009
    Location
    Denmark.
    Posts
    359
    Mentioned
    12 Post(s)
    Quoted
    64 Post(s)

    Default SPS Walking Issues

    Hello everyone
    I'm finally learning how to script and i'm using The Mayor's AIO tutorial.

    It's going great, although i'm at the SPS walking part and something happens which i have no clue why.

    First here is my SPS map:


    Secondly here is the path i've created:


    Now the problem.
    I'm stand next to the bank icon and i'm testing the following procedure:
    Simba Code:
    procedure runToMine();

    var
       pathToMine: TPointArray;
    begin
      if not isLoggedIn() then
        exit;

      pathToMine := [Point(140, 42), Point(148, 57), Point(160, 75), Point(175, 97), Point(182, 117), Point(182, 137), Point(181, 164), Point(182, 186), Point(188, 209), Point(192, 236), Point(193, 254), Point(201, 272), Point(207, 295), Point(210, 311)]

      if SPS.walkPath(pathToMine) then
        minimap.waitPlayerMoving()
      else
        writeLn('We failed to walk to the mine');
     end;

    The first place it clicks is the following:


    Can someone explain why it's clicking all the way over there when it's supposed to click towards rimmington mines?

    Your help would be appreciated very much

    Regards Semtex

  2. #2
    Join Date
    Apr 2015
    Location
    FireFox
    Posts
    528
    Mentioned
    10 Post(s)
    Quoted
    227 Post(s)

    Default

    Your map isn't wide enough, it needs to be everything you will see on the in-game minimap plus small extra.
    Scripting with ogLib

  3. #3
    Join Date
    Feb 2009
    Location
    Denmark.
    Posts
    359
    Mentioned
    12 Post(s)
    Quoted
    64 Post(s)

    Default

    Ah thank you @srlMW;

    One question though, when i'm taking a screenshot of the minimap, it's rotated a few degress, even though the camera direction is set for north

    EDIT: here is an example of what i mean
    Last edited by Semtex; 08-15-2015 at 01:09 PM.

  4. #4
    Join Date
    Apr 2015
    Location
    FireFox
    Posts
    528
    Mentioned
    10 Post(s)
    Quoted
    227 Post(s)

    Default

    @Semtex; I recommend using this system when it comes to SPS, it makes sourcing the map 10x easier.
    Scripting with ogLib

  5. #5
    Join Date
    Feb 2009
    Location
    Denmark.
    Posts
    359
    Mentioned
    12 Post(s)
    Quoted
    64 Post(s)

    Default

    Quote Originally Posted by srlMW View Post
    @Semtex; I recommend using this system when it comes to SPS, it makes sourcing the map 10x easier.
    Cheers i will try it!

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
  •