local monster = "Enraged Zombie"
local summon = "Exploding Corpse"
function onPrepareDeath(cid, deathList)
if isPlayer(cid) then
return true
end
if getCreatureName(cid) == monster then
local t = getThingPos(cid)
doCreatureSay(cid, "I'm not finished with you yet! ", TALKTYPE_ORANGE_1)
doSendMagicEffect(t,49)
addEvent(doCleanTile,0.1,t)
doSummonCreature(summon, t)
end
return true
end