NPC target = getNpcs().closest(npc -> npc.getName().equals(NAME) && npc.getInteracting() == null && !npc.isUnderAttack());
This is what I've used in most of my combat scripts, has no issues i'm aware of
Trusted users could get somewhere around 10m, believe Someone has it in their account shop for 15m. If you got your post count you could probably get 6-7m
Nice script, have a similar one I use myself using pray pots. Try using an 'if' for the location of the player, doing so you can change the state and either have the script enter another dream or log out rather than continuing to run. Gl