function onStatsChange(cid, attacker, type, combat, value)
if isPlayer(cid) and value > getCreatureHealth(cid) and getCreatureStorage(cid, 170265) == 1 and not exhaustion.check(cid, 74587) then
exhaustion.set(cid, 74587, 6)
doPlayerSendTextMessage(cid,21, "You will be revived in 5 seconds")
doCreatureAddMana(cid, getCreatureMaxMana(cid), true)
for x = 5, 1, -1 do
addEvent(doSendAnimatedText, x * 1000, getCreaturePosition(cid), tostring(x), TEXTCOLOR_TEAL)
end
return false
end
return true
end