Results 1 to 4 of 4

Thread: FTWait problem

  1. #1
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default FTWait problem

    My script was doing things too fast so I looked whats wrong and found this:
    SCAR Code:
    procedure FTWait(Time: Integer);
    By: WT-Fakawi
    Description: Performs Wait and FindTalk. Time is multiple of 250 msec, so FTWait(4)
    waits approx 1 sec and performs 4 FindTalks;


    function FTWait(Time: Integer): Boolean;
    var
      t: Integer;
    begin
      for T := 1 to Time do
      begin
        Wait(200 + Random(50));
        if FindTalk then
          Result := True;
      end;
    end;
    Isn't this just waiting approx 0.25 seks not 1 sek?
    Should it be:
    SCAR Code:
    for T := 4 to Time do

  2. #2
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    One Second Is

    FTWait(4);

    and No, Set It To How Mnay Seconds You Want * 4...
    Your 'Correction' Would Skip 1 Second If Someone Did FTWait(4); or FTWait(200); etc.

  3. #3
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Quote Originally Posted by Timer View Post
    One Second Is

    FTWait(4);
    Ohh sry I did not read well enough...
    But wasn't it before for T := 4 to Time do?

  4. #4
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That Would Skip Over 4 Wait (1 second) of the FTWaiting and FindTalking

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. New Problem
    By lilpaintballer in forum OSR Help
    Replies: 1
    Last Post: 09-24-2008, 12:48 AM
  2. hi help with my ftwait procedure
    By macromacro123 in forum OSR Help
    Replies: 6
    Last Post: 10-29-2007, 11:55 PM

Posting Permissions

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