Results 1 to 8 of 8

Thread: Walking help

  1. #1
    Join Date
    Apr 2012
    Location
    Land of the Rising Sun
    Posts
    207
    Mentioned
    0 Post(s)
    Quoted
    77 Post(s)

    Default Walking help

    Hey, so I'm clicking in an unwalkable area and using
    Code:
    flag;
    to wait until it reaches the bank before it searches for the bankers. It works ok, but the trouble is, it's sort of slow. It walks to the bank, waits for like 5 seconds before actually banking (because the flag remains on the mini map).

    Could i use something like
    Code:
    Wait (until is not moving);
    ^^ not sure what it actually is, but have seen something similar used in another script somewhere. Thanks

  2. #2
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Simba Code:
    while IsMoving do Wait(100);

    or

    Simba Code:
    WaitNotMoving(False);

    Same thing

    Creds to DannyRS for this wonderful sig!

  3. #3
    Join Date
    Apr 2012
    Location
    Land of the Rising Sun
    Posts
    207
    Mentioned
    0 Post(s)
    Quoted
    77 Post(s)

    Default

    Awesome, thanks! Will try this out

    Edit:
    Code:
     WaitNotMoving(False);
    Didn't work for some reason but

    Code:
          while IsMoving do Wait(100);
    works perferctly. Thanks.
    Last edited by Thief; 04-29-2013 at 02:34 PM.

  4. #4
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by pure_thief View Post
    Awesome, thanks! Will try this out

    Edit:
    Code:
     WaitNotMoving(False);
    Didn't work for some reason but

    Code:
          while IsMoving do Wait(100);
    works perferctly. Thanks.
    You can also use
    Simba Code:
    Procedure WaitWhileWalking;
    var
      X: integer;
    Begin
     while ismoving do
    Begin
    Marktime(x);
    Repeat
    Wait(randomrange(25,75));
    Until(FFlag(1)or (Timefrommark(x)>= 25000));
    End;
    End;

    That will repeatedly wait between 25,75 milk seconds before checking the distance from the flag. It will repeat that until you reach the flag distance of 1 or you hit 25 seconds. You can change the distance from the flag by changing E number in FFlag();

    Sorry for any stupid errors, I'm on my ipad
    Last edited by King; 04-29-2013 at 02:46 PM.

  5. #5
    Join Date
    Mar 2007
    Posts
    393
    Mentioned
    1 Post(s)
    Quoted
    98 Post(s)

    Default

    You can use just
    Simba Code:
    Fflag(2);
    It waits until your distance from red flag on minimap is 2..

  6. #6
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Yeah just use FFlag(1); or FFlag(2); and add a Wait(550 + Random(100)); or something after it

    but most of the time I use while Ismoving Do Wait(100);

    Creds to DannyRS for this wonderful sig!

  7. #7
    Join Date
    Apr 2012
    Location
    Land of the Rising Sun
    Posts
    207
    Mentioned
    0 Post(s)
    Quoted
    77 Post(s)

    Default

    Sweet thanks for all the different ideas! I'll try them all out and see which works best

  8. #8
    Join Date
    Sep 2012
    Location
    Australia.
    Posts
    839
    Mentioned
    16 Post(s)
    Quoted
    225 Post(s)

    Default

    FFlag(); is a great option for less waiting when walking, definitely! I find it works better when running longish distances because it won't wait for my character to reach the point it clicked and will keep going.

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
  •