Full Version : Player Corpse move
xmlspawner >>Q&A >>Player Corpse move


<< Prev | Next >>

xlilcasper- 12-29-2006
I would like to have a spawner that when the player dies near it, they and there corpse is teleported away back to the start. Is there a way to detect when the player dies?

ArteGordon- 12-29-2006
You could set up the spawner for ghost triggering and then do a SETONNEARBY of corpse type objects to move the corpse and SETONTRIGMOB to move the triggering ghost.

from xmlspawner2.txt
QUOTE

- Added the AllowGhostTrig property that can be used to allow or disallow triggering of spawners by players who are ghosts (thanks to Bane for the suggestion). When AllowGhostTrig is true, then only ghosts and not players will trigger the spawner.  When it is false, then only players and not ghosts will trigger.


QUOTE

- added the new "SETONNEARBY,range,name[,type]/prop/value/prop/value..." keyword that allows you to set properties on all objects of the given name and type within the specified number of tiles from the spawner (thanks to CEO for the idea). The objects can be mobiles, items, or both.