DeathCheck(mob/M)
if(src.health < 1)
if(src.sheilds < 20)
src.dead=1
world<<"<small><font color = red><B>[src] has been killed by [M]!</small></font>"
if(src.shiptype=="Defasf")
//shortened
src.DeathEnd()
if(src.shiptype=="Asdsf")
//shortened
src.DeathEnd()
DeathEnd()
src.loc=locate(src.lx+1,src.ly-2,src.lz)
src.enemy = null
src.dead=null
del src.enemy_marker
The problem is that when the players health/sheild status start to go below 1 they dont die,What's wrong? I'd like it if someone could explain it to me.
~>Jiskuha
if(src.health <= 1||src.shields<=20)
It was that, or it was...
if(src.health <= 1&&src.shields<=20)
I think that was it.
[edit]Change all the "srcs" to M... me thinks.