Jump to content

Optimal pattern to repetitively click the same spell


Recommended Posts

Posted (edited)

Hello,

Imagine I am making a script where I just have to repetitively click the same magic spell every 3 seconds 10 times in a row (before doing a different action like banking or walking or whatever).

What is the best way to make the clicking human-like? I also want to make sure I am casting the spell every 3s to maximize exp/hr as well.
Currently I just do this:

if (getMagic().castSpell(spell)) {
            lastAction = "Cast spell";
            log("Cast spell");
            new ConditionalSleep(2000, 1000) {
                @Override
                public boolean condition() throws InterruptedException {
                    return myPlayer().isAnimating();
                }
            }.sleep();
        }

This approach seems so flawed as Jagex can easily determine (over a long period of time) that my clicking is always between 2s and 3s (if i am using the api correctly). And BOOM ban incoming.
thanks in advance

Edited by yawhide
Posted (edited)
8 minutes ago, Alek said:

I'm sure one of the 9 year old experts at the Botting and Bans section can give you his/her professional opinion - moving thread.

for the new ConditionalSleep method, does the third param 

sleepDeviation - The normal distribution upper bound and deviation for the sleepTime.

add a random number from the range [0, sleepDeviation) to whatever was given for the timeout?

 

edit: woops it says right there "sleepTime".

so to be clear, if I had 

ConditionalSleep(1000, 100, 2000)

my condition would be checked between 100 and 2100ms for 1000ms?

Edited by yawhide

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...