Results 1 to 9 of 9

Thread: what did this function do

  1. #1
    Join Date
    Jul 2008
    Posts
    179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default what did this function do

    ftwait what did that do cause i see it in alot of outdated scripts. is there a more updated version of that function and the named changed ect thanks for who ever knows this

    << did you know that chuck noris's tears can cure cancer.. to bad he never crys

  2. #2
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    No need for it anymore. FTWait was FindTalkWait. It was a wait function that also searched for the "talking" randoms.

  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    What he said.
    FTWait=Find Talk Wait
    It waits for specified time, and during the wait it looks for 'talking randoms'. It can just be replaced with wait. (Not sure why its gone, i liked it)

  4. #4
    Join Date
    Jul 2008
    Posts
    179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok thank you

  5. #5
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    What he said.
    FTWait=Find Talk Wait
    It waits for specified time, and during the wait it looks for 'talking randoms'. It can just be replaced with wait. (Not sure why its gone, i liked it)
    It's gone because talking randoms don't exist anymore. They're all teleport randoms, as far as I'm aware.

  6. #6
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    pretty sure FTWait(1); was a 250ms wait, in other words, whatever number is in the parenthesis's you just need to multiply it by 250, so FTWait(4) would be a second wait (1000ms), so where ever you see FTWait(x); you just need to take out FT and then multiply x by 250 and add a little randomness to it.

  7. #7
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Easy fix:

    SCAR Code:
    procedure FTWait(x: Integer);
    var
      t: Integer
    begin
      t := GetTimeRunning;
      while (GetTimeRunning - t) =< (x * 250) do
      begin
        FindNormalRandoms; //FindNonInventoryRandoms;
        Wait(RandomRange(50, 80));
      end;
    end;

    Put that at the top of scripts which include FTWait.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  8. #8
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    Easy fix:

    SCAR Code:
    procedure FTWait(x: Integer);
    var
      t: Integer
    begin
      t := GetTimeRunning;
      while (GetTimeRunning - t) =< (x * 250) do
      begin
        FindNormalRandoms; //FindNonInventoryRandoms;
        Wait(RandomRange(50, 80));
      end;
    end;

    Put that at the top of scripts which include FTWait.
    Kinda useless to check FNR that often. You can just take it away and check FNR after the wait...

  9. #9
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    probably faster to check once after the wait too.

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
  •