QUOTE |
- added the new TemporaryQuestObject attachment that allows you to tag items/mobiles so that they are automatically deleted after some period of time, or whenever the quest they are associated with is completed (when the questholder associated with the quest deleted). (thanks to Eymerich for the idea). The syntax is TemporaryQuestObject,questname[,expiration] To use this simply put the attachment on an object, and assign the questname, owner. You can also use it to make temporary objects that are not associated with a quest by just specifying an expiration time. The way it works is When the attachment is deleted, the object it is attached to is also deleted. Typically you would probably create the object with the attachment using a spawn entry like this GIVE/<questholder/name/MyQuest/objective1/KILL,orc/autoreward/true/rewardstring/gold,100> GIVE/<longsword/name/Quest Sword/ATTACH/<temporaryquestobject,MyQuest/questowner/TRIGMOB>> This would hand out a quest named MyQuest, and then give the triggering player a longsword named "Quest Sword" that was associated with MyQuest. Note that the mobile who is the questowner of the temporaryquestobject must be manually specified by setting the QuestOwner property on the attachment. To make a general temporary object independent of any quests, just use the attachment with an expiration time like this longsword/name/poof/ATTACH/temporaryquestobject,tempsword,3 which would make a sword that would autodelete after 3 minutes (the name "tempsword" could be anything since it it isnt really used for autodeletion and is just to identify the attachment). - added an example of the use of the temporaryquestobject attachment in tempobject.xml |