Jump to content

Help with simple program

Recommended Posts

I made my own alching script, but it is just an autoclicker. I wanted this so that it could have a failsafe, for example with a regular autoclicker it sometimes stops working at level up. How would I be able to, for example, check if the character is not doing the alch animation for x amount of time, or any other way to check that I'm not alching? Thanks!

Link to comment
Share on other sites

You could just check if the player has not gained magic exp for x amount of time.


How would I do this? Right now what I am using is checking nature runes, if the amount doesn't go down after 20 checks then open the magic spellbook. It doesn't work for me though, here is the code:

alchAmount = inventory.getAmount("Nature runes");


        alchAmount1 = inventory.getAmount("Nature runes");


        if (alchAmount == alchAmount1){


        } else {

            i = 0;


        if (i == 20){

            if(getTabs().getOpen() != null && !getTabs().getOpen().equals(Tab.MAGIC)) {



            mouse.move(rectangleDest, true);

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.

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