Results 1 to 6 of 6

Thread: Elapsed time? plz help

  1. #1
    Join Date
    Feb 2012
    Posts
    224
    Mentioned
    1 Post(s)
    Quoted
    8 Post(s)

    Default Elapsed time? plz help

    is there a way to do something like this? and if yes, how you do it in codes?
    need help to code time
    example :

    repeat
    killmonster
    until ( 50000 elapsed) <- 5 mins
    drinkpotion;

  2. #2
    Join Date
    Dec 2009
    Location
    R_GetPlayerLoc;
    Posts
    2,235
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    you can

    Simba Code:
    MarkTimer(Timer);
    repeat
      killmonster
    until TimeFromMark(Timer) <= (5 * 60000);
    "Logic never changes, just the syntax" - Kyle Undefined?

    Remember, The Edit Button Is There For A Reason!!!

  3. #3
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Simba Code:
    program new;
    var
      TS: integer;
    begin
      TS := GetSystemTime;
      repeat
        Writeln(ToStr(GetSystemTime-TS));
      until (TS+5000)<GetSystemTime;
    end.

  4. #4
    Join Date
    Feb 2012
    Posts
    224
    Mentioned
    1 Post(s)
    Quoted
    8 Post(s)

    Default

    kk, ill try those. thanks

  5. #5
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Yago View Post
    you can

    Simba Code:
    MarkTimer(Timer);
    repeat
      killmonster
    until TimeFromMark(Timer) <= (5 * 60000);
    Small typo, MarkTimer -> MarkTime .
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  6. #6
    Join Date
    Dec 2009
    Location
    R_GetPlayerLoc;
    Posts
    2,235
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by Sex View Post
    Small typo, MarkTimer -> MarkTime .
    Lol u suck.
    "Logic never changes, just the syntax" - Kyle Undefined?

    Remember, The Edit Button Is There For A Reason!!!

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
  •