Well i wanted to make few singular things and this is what i have made so far, when players die, no corpse or items items will be left behind with this...
but now i wanted to try something new..
is there anyway to transform char's looktype into a corpse in onpreparedeath?
is there anyway to make it "ghost" to mobs so it wont be target-able anymore while "death"
and make it not able to move neither relog in the same spot?
and make it so the only way to get out of the place would be with a command, perhaps !res that teleports u to your towntemple pos and then it "relogs" you out right after it (doRemoveCreature):w00t: ?
just a random idea, so death players could be around as spectators on boss fights in the case they die...
and even perhaps being "res'ed" if we can find a way to add such script on an item
Lua:
function relogPlayer(cid)
if isPlayer(cid) then
doRemoveCreature(cid)
end
end
function onPrepareDeath(cid)
doCreatureSay(cid, "Death", TALKTYPE_ORANGE_1, cid)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
addEvent(relogPlayer, 1000, cid)
return false
end
but now i wanted to try something new..
is there anyway to transform char's looktype into a corpse in onpreparedeath?
is there anyway to make it "ghost" to mobs so it wont be target-able anymore while "death"
and make it not able to move neither relog in the same spot?
and make it so the only way to get out of the place would be with a command, perhaps !res that teleports u to your towntemple pos and then it "relogs" you out right after it (doRemoveCreature):w00t: ?
just a random idea, so death players could be around as spectators on boss fights in the case they die...
and even perhaps being "res'ed" if we can find a way to add such script on an item