Results 1 to 5 of 5

Thread: If something then ->

  1. #1
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    433
    Mentioned
    1 Post(s)
    Quoted
    8 Post(s)

    Default If something then ->

    How could I add something like
    if 10000+random(3000) passed then begin Gametabs; etc.

    I'd definedly need to learn this to make my scripts antiban effective.

    So please, if someone could bother to help me up ?

  2. #2
    Join Date
    Mar 2006
    Posts
    67
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, I assume this is to easy to be what you ned but, couldn;t you just use

    Code:
    wait(10000+random(3000));
    gametabs;

  3. #3
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think he means more about the count times, where its 10000+random 3000, from the time a function started? where other things are happening in the time that the 13000 time happened. i dont know how to use that systemcount/start/marktime features, so you will have to wait for some1 else to post about it or maybe there is a tutorial on it.

  4. #4
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    To set up a timer you need 3 things. An integer to use as the counter and two functions.
    Code:
    Program new;
    {.include SRL/SRL.scar}
    var TabTimer:integer;
    begin
      SetupSRL;
      MarkTime(TabTimer);
      repeat
        if TimeFromMark(TabTimer) > 10000 then
        begin
          GameTab(2);
          Wait(500);
          GameTab(3);
          MarkTime(TabTimer);
        end else Wait(500);
      until false;
    end.
    MarkTime resets the timer. TimeFromMark checks the time without resetting it. And you need a unique integer variable to use for each timer you want to set up.

  5. #5
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    433
    Mentioned
    1 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by tarajunky View Post
    To set up a timer you need 3 things. An integer to use as the counter and two functions.
    Code:
    Program new;
    {.include SRL/SRL.scar}
    var TabTimer:integer;
    begin
      SetupSRL;
      MarkTime(TabTimer);
      repeat
        if TimeFromMark(TabTimer) > 10000 then
        begin
          GameTab(2);
          Wait(500);
          GameTab(3);
          MarkTime(TabTimer);
        end else Wait(500);
      until false;
    end.
    MarkTime resets the timer. TimeFromMark checks the time without resetting it. And you need a unique integer variable to use for each timer you want to set up.
    Thats the thing I needed, thanks alot.

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
  •