In response to Elation
I think his problem is that he's using an attack verb and it sometimes gets out of sync with whether the mob still exists. This happens in lots of games; they set up Attack as a macro and it attacks the nearest enemy, until finally the enemy is gone but verb calls are still queued up.

The solution: Put in a simple bail-out at the beginning of the proc.
if(!M) return


This is also needed after sleep() is called, in case something else killed the mob first.

Lummox JR
In response to Lummox JR
thank you ive got no more errors :D
In response to Lummox JR
One last thing couuld you tell me how i could stop a users movement please so that when they are tired they stop so they cant move at all
In response to Tomf and Tails5
Tomf and Tails5 wrote:
One last thing couuld you tell me how i could stop a users movement please so that when they are tired they stop so they cant move at all

That's really a question for a different thread, in Developer How-To.

Lummox JR
Page: 1 2 3