Results 1 to 4 of 4

Thread: Walking to a point if stuck - how to add this?

  1. #1
    Join Date
    Feb 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Walking to a point if stuck - how to add this?

    Hey, villavu!

    When 'playing' the fight caves mini-game, occasionally the bot will get stuck behind one of the rocks, as the lvl 90's lure the character there and none of the monsters on the next wave will attack you. I was wondering how I would go about adding a procedure that checks if you have been out of combat for ~1 min and are behind the rocks on the mini-map then walks to the centre, but I'm not sure how to do this, and was hoping someone could help.


    Thanks.

  2. #2
    Join Date
    Mar 2013
    Posts
    167
    Mentioned
    7 Post(s)
    Quoted
    62 Post(s)

    Default

    You could try something like this:

    Code:
    procedure GetUnstuckInCave
    begin
      if (not IsMoving) then
      begin
        MakeCompass('N');
        radialWalkTolerance(7369593, 80, 100, 55, 1, 1, 23);
      end;
    end;
    Change the radialwalk values to fit your needs, though. There are tons of tutorials here for that
    "To sleep, perchance to dream"

  3. #3
    Join Date
    Feb 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you, Vusn!

  4. #4
    Join Date
    Mar 2013
    Posts
    167
    Mentioned
    7 Post(s)
    Quoted
    62 Post(s)

    Default

    No problem
    "To sleep, perchance to dream"

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
  •