Jump to content

onLoop return value Antiban


AresScripts

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 2 weeks later...

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
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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