I have been reading some of your guides on creating scripts but I'm struggling with my first script and I am wondering if you would take some time to help me out. Question 1: I'm currently attempting to add anti-ban to my script and I'm getting the follow errors when adding the following: this.client.rotateCameraPitch(50); Error Message: The method this.client.rotateCameraPitch(int) is undefined for the type Client I highlighted the text to indicate the red underline in Eclipse. I get this message for rotateCameraPitch, rotateCameraAngle, and moveMouseOutsideScreen() (...for the type Main). I'm assuming I need to import something but I can't find what (library?).
Question 2: The only current banking method I know of is bank.depositAll(); but I want to keep my rune axe in my inventory. How can I only deposit specific items (in this case yew logs)? Question 3:
My bot spam clicks on Yew trees in the highlighted time frame and making a longer random time only delays the reaction time for the bot to move on to the next tree as well as spam clicks.
case CHOP: if (!myPlayer().isAnimating()) { Entity yewTree = objects.closest(YEW_ID); if (yewTree != null) { if (yewTree.interact("Chop down")) { sleep(random(2500, 3500)); } } }
Question 4:
Is there anyway to slow down mouse movements to make them look more human-like and a way to make them more curved rather than a straight line?
Thanks for any and all help!