Results 1 to 6 of 6

Thread: A little Help with walking to the bank.

  1. #1
    Join Date
    Oct 2015
    Location
    Texas
    Posts
    37
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default A little Help with walking to the bank.

    So This is my first script and I am trying to get my character to walk to the bank. the path is fine but once he gets to the final point and the bank is next to him the script keeps having him go north. I am curious where I am going wrong. Below is the code for the path to the bank and attached is the map I am using as I think the issue might be with the map and the script not recognizing where the player is at.

    Simba Code:
    procedure walkToBank;
    var
    pathToBank : TPointArray
    begin
    if (not isLoggedIn()) then
    exit;

    pathToBank := [Point(101, 301), Point(86, 280), Point(76, 253), Point(70, 224), Point(67, 189), Point(73, 165), Point(86, 147), Point(97, 119), Point(95, 92), Point(90, 67), Point(80, 50), Point(69, 45), Point(52, 48)];

    if SPS.walkPath(pathToBank) then
    minimap.waitPlayerMoving()
    else
    begin
    writeLn('Failed to walk to bank.');
    terminatescript;
    end;
    end;

    fishmap.png

  2. #2
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Your map is too small. Resize the RS-minimap to the max, then build a new (much) larger map, once you got the pieces you need resize the minimap it back to default.. SPS needs more a somewhat big map to work properly.

    A good rule of thumb is that the points you walk to is always supposed to be at minimum 100ish pixels away from the edges of you map.
    Last edited by slacky; 10-17-2015 at 06:29 PM.
    !No priv. messages please

  3. #3
    Join Date
    Oct 2015
    Location
    Texas
    Posts
    37
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Gotcha that is what I was thinking was the case. And ok I'll keep that in mind. I am currently away from my computer but will fix it when I get back.

  4. #4
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Quote Originally Posted by Corruptedx View Post
    Gotcha that is what I was thinking was the case. And ok I'll keep that in mind. I am currently away from my computer but will fix it when I get back.
    I think something alà this would do fine:
    !No priv. messages please

  5. #5
    Join Date
    Oct 2015
    Location
    Texas
    Posts
    37
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by slacky View Post
    I think something alà this would do fine:
    Awesome! Thanks. I'll update my path points and hoping to have the script done by end of day.

  6. #6
    Join Date
    May 2013
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    24 Post(s)

    Default

    could someone shed some light on this point making and how it works because i have been trying to find ways to travel to and from places

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
  •