proc
deathcheck(var/mob/M)
if (src.hp <= 0)
if(src.client)
oview()<<"[M] Killed [src]!"
if(basedeath)
icon_state="death"
if(lizarddeath)
icon_state="death"
sleep(60)
icon_state="walk"
src.hp=src.maxhp
src.Move (locate(1,1,1))
else
M<<"You Killed [src]"
M.exp+=src.exp
M.levelup()
world << "[src] dies!"
del src
Ok I got the dying states working but the problem i have is that they can still move while died. Also they can still be attacked by monsters while die and their health goes in the negatives. Help please.
You'll have to override the East() North() West()... procs so the mob can't move while their icon_state be "death"
And make the monsters ai ignore death targets.
Andē probably change the verbs and other things too...