Results 1 to 4 of 4

Thread: wait until?

  1. #1
    Join Date
    May 2008
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default wait until?

    is there any more effecient code than the one i have, such as a WaitUntil procedure to use for the script to just wait until something happens? i need this to be put in a fishing script, where it just waits [after antiban, of course] until either the fishing spot moves or the inventory fills up.

    SCAR Code:
    Repeat
      Begin
        Wait(1)
      end;
    Until(Condition)
    Also, feel free to correct me on my standards if they arent perfect, i tend not to do so good on standards

  2. #2
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    example:
    SCAR Code:
    while not InvFull do Wait(50);

  3. #3
    Join Date
    May 2009
    Posts
    799
    Mentioned
    2 Post(s)
    Quoted
    16 Post(s)

    Default

    yeah. Use while .
    And 1 ms wait time is not a good idea, it might generate lag.

    Also repeat until; doesnt require begin and end

    Good Luck

    ~caused

  4. #4
    Join Date
    May 2008
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

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
  •