Jump to content

onLoop return value Antiban


Recommended Posts

Posted (edited)

I have thought about doing a more complicated version of this that involves more behavior than just sleep times. Thoughts on this? I would especially like to see what a dev thinks of it.

   public int onLoop() throws InterruptedException{
        long timeRunning = System.currentTimeMillis() - scriptStartTime;
        double hours = (double)timeRunning/1000/60/60;
        log("Hours passed: " + hours);
        double returnValue = ((Math.sin(hours) +1) * 1000);
        log("Returning value: " + (int)returnValue + "millis");
        return (int)returnValue;
    }
Edited by AresScripts
Posted (edited)

This is somewhat similar idea of what I'm doing

 

I have an enum with a bunch of actions we do irl (toilet, smoking, grab drink, check website, get lost in a read, ...)

They have an frequenty rate as well as a min-max duration.

Also got this for pseudo's.

Then based on that I pass the duration as return for the onloop.

Edited by lisabe96
  • 2 weeks later...
Posted

Im still not 100% sure if it would impact ban rates in any way sad.png

 

The concept is indeed good, I cover something similar in a thread back eons ago.

The execution is a bit off, however, as you can still perfectly model to a sine curve. If you add some randomness, noise etc (as well as distributional statistics!) it will look a lot more realistic as you can have a "curve of best fit" as it were just like a human.

  • Like 1
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...