scaryscar6 Posted May 14, 2016 Share Posted May 14, 2016 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! Quote Link to comment Share on other sites More sharing options...
Molly Posted May 14, 2016 Share Posted May 14, 2016 You could just check if the player has not gained magic exp for x amount of time. Quote Link to comment Share on other sites More sharing options...
scaryscar6 Posted May 14, 2016 Author Share Posted May 14, 2016 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"); mouse.click(false); alchAmount1 = inventory.getAmount("Nature runes"); if (alchAmount == alchAmount1){ i++; } else { i = 0; } if (i == 20){ if(getTabs().getOpen() != null && !getTabs().getOpen().equals(Tab.MAGIC)) { getTabs().open(Tab.MAGIC); } mouse.move(rectangleDest, true); } Quote Link to comment Share on other sites More sharing options...