So you would continusly call world restore?

How long would you make the respawn time?

If you did this would you ever spawn anything as you would create the mob which would just delete itself because of no player nearby?
world restore is sleep(300) and, if they player got close then the npc wudnt delete
Ok but what if the player isn't near and then comes near?
then it would just go to player check=1 and stay active
but right now idk y...i hadti fixed b4 but now when i go near a npc it crashes again..
Perhaps you should take a look at some of the AI demo's in the Resource section. Personally, I would recommend Forum_Account's Enemy AI demo series.
Page: 1 2 3 4 5