function onDeath(cid, corpse, killer)
local position = getCreaturePosition(cid)
local creaturename = getCreatureName(cid)
ladder = {x=[COLOR="Red"]XXX[/COLOR], y=[COLOR="Red"]XXX[/COLOR], z=[COLOR="Red"]XX[/COLOR], stackpos=1}
getladder = getThingfromPos(ladder)
local time = 5
local message = "You have " ..time.. " minutes to get up the ladder.
if creaturename ~= [COLOR="Red"]MONSTER-NAME-HERE[/COLOR] then
setGlobalStorageValue(45001, 1)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
doCreateItem(1386, ladder)
addEvent(doRemoveItem,time*1000,getladder.uid,1)
end
end