ID:164741
 
i maked Death proc and stuff what you get when kill npc but..for some unknow reason it dont work, code have no errors i just dont know how to call Death procedure when user kill npc
proc
DeathCheck(mob/victim)
if(health <= 0)
if(victim.client)
++vicim.deaths
else // npc
del(victim)
mob/proc/Death(killed as mob,killer as mob)
if(!killed)return
if(killer)killed<<"[killer] killed you."
else killed<<"You died."
mob/hp=5
mob/verb/attack(mob/a as mob in oview(1,usr))
a.hp-=1
if(!a.hp)Death(a,usr)
Hope this explains it.
In response to Atomixkid
You only need to use 1 argument so src = killer and victim is the argument. Also as mob is a filter not a type.
try, when you make a verb to kill an npc after that do
del(src) that SHOULD work unless you dont want a one hit kill