if (GOBLIN_SPOT.contains(myPlayer())) {
if (Goblin.getAnimation() ==3029);
Goblin.interact("Attack");
}else if (Goblin == null)
getWalking().webWalk(GOBLIN_SPOT);
I'm not really sure on your area as I haven't bothered looking into it, but this has the possibility to freeze, if the goblin is outside of the goblin spot, but the player is not, it will agro onto the goblin, moving you outside of the goblin zone. After you've killed your goblin, it isn't in the goblin spot, so it enters the idle case.