Results 1 to 11 of 11

Thread: WalkToTile

  1. #1
    Join Date
    Feb 2011
    Location
    London
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default WalkToTile

    I can't seem to get this to walk to where i want it to go, I'm trying to walk from the bank to the mine but I'm not sure if I need to create a full path to walk there or not.

    It compiles so I know that is not a problem but meh
    Simba Code:
    Procedure Walk2;
    begin
      if (not(LoggedIn)) then Exit;
      WalkToTile(Point (3082,3400), 1, 1);
      writeln('Walked');
    end;

  2. #2
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That will walk to that tile if it is on the minimap.
    If you are say 60 tiles away then you are going to need to make a path of tile then use WalkPath(Tiles);

    -Boom

  3. #3
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    You have to make the complete path, or use an function that does this for you. WalkToTile() walks to the tile only if the tile is viewable on the minimap

  4. #4
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Function r_WebWalk(T: TTile): Boolean;

    WILL NOT CIRCUMVENT OBSTACLES!!!!!!!!!!!!!!!!!!!

  5. #5
    Join Date
    Feb 2011
    Location
    London
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the replies, I was using WalkPath but I didn't like how it waited for the flag to disappear before moving on to the next point again, but guess it will have to make do for now.

  6. #6
    Join Date
    Oct 2008
    Posts
    500
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Set the points that you would for WalkPath and then use

    R_WebWalk(Tile) using those tiles.

  7. #7
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by kitchenrange View Post
    Set the points that you would for WalkPath and then use

    R_WebWalk(Tile) using those tiles.
    wat.
    Why make a Path then use R_WebWalk?
    WebWalk walks to the tile wherever it is but as mormon said, it doesn't count for obstacles.

  8. #8
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by Dynamite View Post
    wat.
    Why make a Path then use R_WebWalk?
    WebWalk walks to the tile wherever it is but as mormon said, it doesn't count for obstacles.
    You can dodge obstacles with your path.
    Simba Code:
    for i :=  0 to high(path) do
      r_WebWalk(path[i]);

    Something like that.

  9. #9
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    But then why not just use WalkPath?

    -Boom

  10. #10
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by Dynamite View Post
    But then why not just use WalkPath?

    -Boom
    Less tiles.

  11. #11
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mormonman View Post
    Less tiles.
    Ah, fair enough.

    -Boom

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
  •