Sir Islam
Never Give Up
if player dead no lost hp and mana , lost only lvls and items if no have aol
how i can do this

how i can do this
actually, im looking for this too... to being able to dont die "at all", but being able to be res'ed by some mate or person around with some rune/item,
like you die, then replace the death script (i wish i knew where it was...) for some script that replaces ur looktype for your corpse, then block u to being able to move, so ur body remains in the floor, with 0 hp, and someone could res u or something, lol.. if i just could find the answer for this
function onDeath(cid)
doCreatureSay(cid, "You are death, but hey, dont worry, perhaps someone could revive you!", 19)
setCreatureNoMove(cid)
return true
end
setCreatureNoMove(cid, true)
function onDeath(cid)
return false
end
registerCreatureEvent(cid, "fainted")
function onPrepareDeath(cid)
doCreatureSay(cid, "You are Fainted! PLEASE RELOG !", TALKTYPE_ORANGE_1, cid)
doTeleportThing(cid, {x=801, y=966, z=7})
return false
end
function relogPlayer(cid)
if isPlayer(cid) then
doRemoveCreature(cid)
end
end
function onPrepareDeath(cid)
doCreatureSay(cid, "You are Fainted!", TALKTYPE_ORANGE_1, cid)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
addEvent(relogPlayer, 1000, cid)
return false
end