Jump to content

Optimal pattern to repetitively click the same spell


yawhide

Recommended Posts

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

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

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