• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

"death spectator"

tatanxx

New Member
Joined
Jan 5, 2009
Messages
61
Reaction score
1
Location
Chile
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...
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
 

Similar threads

Back
Top