Full Version : Spawn Unstealable Item in MOB Pack?
xmlspawner >>Q&A >>Spawn Unstealable Item in MOB Pack?
<< Prev | Next >>
morganm- 12-06-2006
Did some searching and can't seem to find what I need. I know howto ADD things to a MOB's backpack but I want to ADD something that a thief can't steal. Would like it to be on the MOB's corpse after he's killed and then it can be looted.
I have Santa spawners and I want him to drop a deed to a Christmas tree. That's easy enough but I don't want it to be in his pack so thieves can just steal it. I want it to only be obtained once he's killed. The spawner isn't triggerd but rather is just running and he respawns after Delay timer expires. Ideas?
Thanks!
ArteGordon- 12-06-2006
to have something added to the corpse after death, use the XmlDeathAction attachment.
For example
orc/ATTACH/<xmldeathaction/action/@SETONTHIS/ADD/ARMOR,1,3>
will add a random magic armor piece to the corpse after death.
from xmlspawner2.txt

QUOTE
- added a new attachment called XmlDeathAction. This attachment, when applied to a creature allows any spawnable action to be performed on the creatures death. (thanks to Syntria for the idea). This could include sending the killer a gump or a message, adding items to the corpse, spawning another creature, etc. (the killer is considered to be the trigger mob in these actions).
An example of these applications is included in deathaction.xml in xmlextras.zip. Just "[xmlloadhere deathaction.xml" and start killing the creatures to see what happens.
For example, with this spawn entry
harpy/ATTACH/<xmldeathaction/action/@GUMP,Harpy be gone,0/Congratulations! You killed a harpy.
killing the harpy gives you this
You must perform xmlspawner installation step #2 for this attachment to work.