Hello, as you all know Jagex aren't the only ones after us. Many players often try to break our script or kill our bots as seen by popular youtuber SirPugger who's videos seem to revolve on it. He's clearly stated he watches these forums to see which bots are running and best way to beat them.
Turn off Accept aid
Avoid PVP worlds
Track your scripts activity. If for example you're fishing and somehow you're only getting 1k exp an hour instead of 100k something is wrong. Logout function should be triggered or some sort of alert.
Be aware of your bots surroundings, they typically try to lure mobs to kill you. Always check if you're under attack and have a teleport tab or safezone spot you can run to.
These Bothunters may also abuse your own functions such as dropping items to lure you away. Have a check if item is mob dropped or player.
Create zones/restrictions
Do not create any functions that Bothunters may be able to abuse. So say they stop your activity say close/open door then you'll logout, they will abuse that and have you logout. You'll need to have alternating functions.
Make your scripts robust, anything happens you're prepared for any situation.