Results 1 to 13 of 13

Thread: DivWait

  1. #1
    Join Date
    Feb 2006
    Location
    Australia, NSW.
    Posts
    1,461
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default DivWait

    Procedure DivWait(Time, Divamount, Erand: Integer); - By XxKanexX

    A more random wait type thing. Will divide the total time by a number and wait it's divided number the amount of times needed to complete the total wait Time.

    The lower the Divamount, the closer to the wait time it will be. The higher, the further away.

    Erand is an extra random time to add each wait. If it's high, the wait time has a possible chance to increase by some seconds.
    Example: Erand: 100, Time: 2000, can wait up to 4 seconds.

    I wrote this to lower the random detection. I can't add it to SRL because it's locked for some reason? And i wanted to see what everyone thought.

    Code:
    
    Procedure DivWait(Time, Divamount, Erand: Integer);
    var
      i: Integer;
    begin
     for i:= 1 to Divamount do
       Wait(Time/Divamount + random(Erand));
    end;
    Example:
    Code:
    var
      a: Integer;
    begin
     a:= getsystemtime;
      DivWait(1000 + random(2000), random(100), random(100));
      Writeln(floattostr(getsystemtime-a));
    end.
    Possible Wait Outcomes: (From the Example script above)
    Code:
    3065
    2743
    2223
    2023
    4256
    2994
    3515
    Using random choices (Like in the Example above) for Parametres is a good wayto decrease detectability.

    You may say that you'd rather use:
    Code:
    Wait(1000 + Random(2000));


    But, though that is random, dividing it gives it more random chance. Just try this and take a look at this and what it creates:

    Code:
    Procedure DivWait(Time, Divamount, Erand: Integer);
    var
      i: Integer;
    begin
      for i:= 1 to Divamount do
     begin
       Wait(Time/Divamount + random(Erand));
       
       Writeln('Wait: '+IntToStr(Time/Divamount + random(Erand)));
     end;
    end;
    
    var
      a: Integer;
    begin
     a:= getsystemtime;
      DivWait(1000 + random(2000), random(100), random(100));
      Writeln('Total: '+floattostr(getsystemtime-a));
    end.


    Run it a few times and see.
    Short, but effective.

    <3 XxKanexX

  2. #2
    Join Date
    Feb 2006
    Location
    California-Foster City
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    umm good job?
    The Welcoming Party
    Don't be a Fakawi! Get 25 hours of sleep a day!

  3. #3
    Join Date
    Feb 2006
    Location
    Australia, NSW.
    Posts
    1,461
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sdcit
    umm good job?
    Did you read it? Why a question mark?

  4. #4
    Join Date
    Feb 2006
    Location
    Australia
    Posts
    628
    Mentioned
    15 Post(s)
    Quoted
    105 Post(s)

    Default

    Good work kane
    I especially like how you made it random(Errand) to produce a random number each time <3
    Word to the wise: Don't made Divamount or Errand too big

    Kane, you should probably make Divamout and Errand random numbers anyway (chosen by the procedure). What you did is fine

  5. #5
    Join Date
    Feb 2006
    Location
    Australia, NSW.
    Posts
    1,461
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Krazy_Meerkat
    Good work kane
    I especially like how you made it random(Errand) to produce a random number each time <3
    Word to the wise: Don't made Divamount or Errand too big

    Kane, you should probably make Divamout and Errand random numbers anyway (selected by the procedure). What you did is fine
    For now ill just leave it so the user can alter it.

  6. #6
    Join Date
    Feb 2006
    Location
    California-Foster City
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    lolz i read it, but it was short . Great job i mean
    The Welcoming Party
    Don't be a Fakawi! Get 25 hours of sleep a day!

  7. #7
    Join Date
    Mar 2006
    Location
    Igloo #201702,Canada
    Posts
    188
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't get what this does....is this basicly a code for Krazy_Meerkat's High-Low system? Because I don't really understand what this code is supposed to do.


    ^ My next tutorial will teach you how to make this ^

  8. #8
    Join Date
    Feb 2006
    Location
    Australia, NSW.
    Posts
    1,461
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by timmyboy
    I don't get what this does....is this basicly a code for Krazy_Meerkat's High-Low system? Because I don't really understand what this code is supposed to do.
    I'll explain a little easier.

    Say we want the script to wait 3 seconds:
    Code:
    3000
    This procedure will divide that 3000 milliseconds (3 seconds) by however much you want it to be divided by. We'll divide it by 4:
    Code:
    3000 / 4 = 750.
    Now the script repeats itself for 4 times the wait "750":
    Code:
    750 * 4 = 3000
    In the end that's 3 seconds. BUT this will also add random. So, if we made Erand 50 every time it would wait 1 quadrant of the total wait time it would also add a random of 50.

    Code:
    750 + random(50) = 750 - 800
    The higher the dividing number, the more random it will wait each time as it has to repeat itself more times.

    Get it?

    RESULTING in a very random wait

  9. #9
    Join Date
    Mar 2006
    Location
    Igloo #201702,Canada
    Posts
    188
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Heh, ok I get it....I think Thanks for the explaination, i'm going to be using this in my scripts


    ^ My next tutorial will teach you how to make this ^

  10. #10
    Join Date
    Feb 2006
    Location
    New Zealand
    Posts
    485
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ooo so the waits are the problem.
    Good job Kane.

  11. #11
    Join Date
    Feb 2006
    Location
    Australia, NSW.
    Posts
    1,461
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Well Krazy brought up a very good concept. Since the waits are almost always in the same range every time, Jagex could moniter that and compare the difference. This alows a good space between waits.

  12. #12
    Join Date
    Feb 2006
    Location
    Australia
    Posts
    628
    Mentioned
    15 Post(s)
    Quoted
    105 Post(s)

    Default

    Well the waits are a vulnerability, and I'm assuming jagex would have to use anything they could to stop cheaters. Great work again kane

  13. #13
    Join Date
    Feb 2006
    Posts
    582
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You seriously have to much time on your hands.

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
  •