@yibster2009 Remove all of this code from your script
int waittime = random(500,10000);
int angle = random(0, 360);
sleep(waittime);
if (antiban == 1);
camera.moveYaw(camera.getYawAngle()+angle);
}
//-------------------------------------
int checktab = random(0,1000);
if (checktab % 6 ==0){
tabs.open(Tab.SKILLS);
getSkills().hoverSkill(Skill.FISHING);
tabs.open(Tab.INVENTORY);
Replace your static sleep call with a conditional sleep if the interaction was successful. Now you might be asking yourself "What is a conditional sleep, Easy?" That's a great question yibs. A conditional sleep is a sleep that waits for a condition to be met. It's like saying "Sleep until... this happens". In your power fisher, it would make the most sense to interact with the fishing spot, then wait until the character has begun fishing.
So your interaction logic and method calls should look like this:
if (interaction was successful) {
conditional sleep until player.isAnimating() OR until 7 seconds has elapsed;
}
Be sure to always use a conditional sleep after a successful interaction. This will prevent 99% of spam clicking and greatly improve the efficiency of your scripts.