well i did this snippet: [Only registered and activated users can see links. ]
and now when i attack an npc, i end up running around all over. does anyone know the fix?
Change it back.
All this supposedly did was cut it down to 1 for-loop running from 3 for-loops.
If you want a stable programming language then don't worry about Java, or any Object-oriented language for that matter.