Results 1 to 12 of 12

Thread: Am I running or stopped?

  1. #1
    Join Date
    Dec 2009
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Am I running or stopped?

    Is there a way to tell if I have reached my destination and stopped?

    Oftentimes lag will make the running process longer than normal, so I need a way to make sure I've come to a complete stop before I start trying to find things.

    How is the best way to do this?

    Thanks!

    JIM

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    isn't there an "isMoving" function in animation.scar?

    Also can't most things be avoided by using Flag or something haha? Tell me the exact scenario and I can help out more
    “Ignorance, the root and the stem of every evil.”

  3. #3
    Join Date
    Dec 2009
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Blumblebee View Post
    isn't there an "isMoving" function in animation.scar?

    Also can't most things be avoided by using Flag or something haha? Tell me the exact scenario and I can help out more
    While running through the dungeoon to the ZMI altar, I'm blind clicking to reach my destination. So, when lag occurs it totally throws off my timing and therefore when I try to find the altar at the end of the run, it is getting messed up, as it often will find the altar when still running, which makes the coordinates of the altar wrong.

    My two options to compensate are put in a huge wait time (which is not good), or refind the altar several times to make sure it is correct (which also wastes time).

  4. #4
    Join Date
    Nov 2007
    Location
    Nowhereville
    Posts
    1,155
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    FFlag(0);

    That is a failsafe to wait until the flag is gone.

    Or you can use

    SCAR Code:
    isMoving

    to determine if you are still moving.
    Formerly known as Cut em2 it

  5. #5
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Doesnt Flag; wait for flag to disappera...and FFLag(Distance: Integer); for a specific distance. So, best to use just Flag;
    There used to be something meaningful here.

  6. #6
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    Doesnt Flag; wait for flag to disappera...and FFLag(Distance: Integer); for a specific distance. So, best to use just Flag;
    FFlag(); adds a sort of Anti-Ban though. I know sometimes when I used to play I would walk again before I had fully stopped walking.

  7. #7
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by NCDS View Post
    FFlag(); adds a sort of Anti-Ban though. I know sometimes when I used to play I would walk again before I had fully stopped walking.
    Yeah i know...
    There used to be something meaningful here.

  8. #8
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Flag() = FFlag(0); look in the include...
    “Ignorance, the root and the stem of every evil.”

  9. #9
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Yes, Flag; = less code then Flag(0);
    There used to be something meaningful here.

  10. #10
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no like Flag literally is FFlag(0);

    SCAR Code:
    {*******************************************************************************
    function FFlag(Dist: Integer): Boolean;
    By: Wizzup? / WT-Fakawi / ZephyrsFury
    Description: Waits until Flag is within "Distance" distance.
    *******************************************************************************}

    function FFlag(Dist: Integer): Boolean;
    begin
      Result := FlagEx(Dist, False);
    end;

    {*******************************************************************************
    function Flag: Boolean;
    By: Nava2
    Description: Waits while flag exists.
    *******************************************************************************}

    function Flag: Boolean;
    begin
      Result := FlagEx(0, False);
    end;
    “Ignorance, the root and the stem of every evil.”

  11. #11
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by Blumblebee View Post
    no like Flag literally is FFlag(0);

    SCAR Code:
    {*******************************************************************************
    function FFlag(Dist: Integer): Boolean;
    By: Wizzup? / WT-Fakawi / ZephyrsFury
    Description: Waits until Flag is within "Distance" distance.
    *******************************************************************************}

    function FFlag(Dist: Integer): Boolean;
    begin
      Result := FlagEx(Dist, False);
    end;

    {*******************************************************************************
    function Flag: Boolean;
    By: Nava2
    Description: Waits while flag exists.
    *******************************************************************************}

    function Flag: Boolean;
    begin
      Result := FlagEx(0, False);
    end;
    Ohh, has it changed in 3 years lol? Or has it allways been like that? :O
    There used to be something meaningful here.

  12. #12
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it changed like 6 months ago or longer, I can't remember. Whenever the flag system in RS changed, flag.scar was changed to this.
    “Ignorance, the root and the stem of every evil.”

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •