mob
proc
DeathCheck(mob in world)
if(istype(src,/mob/Enemy/))
if(src.hp <= 0)
range() << "<font color=red><B><small><B>Combat Info:<B><small> [src] has been killed by [usr]."
usr.gold += rand(5,10)
usr<<"<small><b><font color=yellow>You gained some gold!"
del(src)
Respawn()
else
if(src.hp <= 0)
world<<"<font color=red><b><small>[src] has been killed by [usr]."
src.hp = src.maxhp
src.loc =locate(98,66,8)
Respawn()
var/newMonsterType = src.type
var/X = src.x
var/Y = src.y
var/Z = src.z
var/rSpeed = src.respawnSpeed
src = null
spawn(rSpeed)
new newMonsterType (locate(X, Y, Z))
Problem description:
When you kill an enemy it doesn't seem to delete from the map. Can someone please point out any mistake you see and tell me how to fix mine?