Updated to version 2.67
lots of additions in this one
---------------- spawner changes -------------------------
- added support for compound TriggerOnCarried/NoTriggerOnCarried tests using the & and | operators. This allows testing for multiple carried items. For example to trigger the spawner when a player is carrying both the platehelm named 'Helm of Light' and the longsword named 'Sword of Light' you could use the following string in the TriggerOnCarried property, "Helm of Light,platehelm & Sword of Light,longsword"
- the SET series of keywords (this includes SET, SETONMOB, SETONTRIGMOB, SETONCARRIED, SETONSPAWN) now supports assigning properties on attachments. Whereever a property would normally be specified for those keywords, the new property keyword ATTACHMENT,type,name,property can be used. For example, to set the value property to 34 on an xmlvalue attachment with the name XS on a triggering mob you would specify "SETONTRIGMOB/ATTACHMENT,xmlvalue,XS,value/34" (See attachtest3.xml for examples).
The attachment properties can basically be treated as extensions of the target object's properties.
- modified the syntax for referencing attachments using the GET series of keywords. Whereever a property would normally be specified for those keywords, the new property keyword [ATTACHMENT,type,name,property] can be used. For example, to read the value property on an xmlvalue attachment with the name XS on a triggering mob you would specify "GETONTRIGMOB,[ATTACHMENT,xmlvalue,XS,value]". The change involved using [] instead of <> for the ATTACHMENT delimiters. This was to resolve a conflict with the use of the old syntax in conditional tests. The example attachtest1.xml has been modified to reflect the change.
---------------- attachment changes -------------------------
- added gump support for displaying/editing/deleting attachments on an object that can be accessed with the [getatt, [delatt, or [xmlfind commands.
- added support for displaying and editing attachment properties using the standard properties gump.
- modified the [getatt command to bring up a gump listing all attachments on a targeted object. Selecting the properties gump button next to the desired attachment will bring up the standard properties gump to support for display and editing of attachment properties that have been flagged with the command property attribute (just like item and mobile properties).
- added the AttachedBy property to attachments that has the name of the staff or spawner that first applied the attachment.
- added the DoDelete property to attachments that allows spawners to delete attachments by setting this property to true. For example, to delete the the xmlvalue attachment with the name XS on a triggering mob you would specify "SETONTRIGMOB/ATTACHMENT,xmlvalue,XS,dodelete/true" (See attachtest3.xml for examples).
- modified the [delatt command to bring up the attachment gump if used in targeting mode rather than deleting all attachments on the targeted object. Attachments can still be deleted directly by serial number using the "[delatt serialno" command.
- added support for the OnKill(Mobile killed, Mobile killer) method that will be called when a player kills something. The HandlesOnKill property must be set to true on the attachment for this to be invoked. Installation steps 2 and 6 must be performed to support this.
- added support for the OnKilled(Mobile killed, Mobile killer) method that will be called when a player or mob is killed. The HandlesOnKilled property must be set to true on the attachment for this to be invoked. Installation steps 2 and 6 must be performed to support this.
- added the XmlEnemyMastery attachment that will increase damage by the specified percentage when enemies of the specified type are hit with a weapon. This can be attached to mobiles or weapons. An example of spawning a weapon with this attachment is given in enemymastery.xml
- added support for a mob faction system. The full description of this system along with additional mob faction related attachments is in a separate submission thread (XmlMobFactions).
- added support for a pvp points system. The full description of this system is in a separate submission thread (XmlPoints).
- added an installation step (step 9) to support the OnEquip and OnRemove attachment methods (this is needed to take advantage of the XmlFactionEquip attachment).
---------------- quest changes -------------------------
- added a new AttachmentString property that works in the same way as the RewardString only for attachments. This allows both reward items and reward attachments to be specified by string in a single quest.
- changed the way RewardString works so that attachments can no longer be specified in it. Now there are separate specification strings for reward items and reward attachments.
- modified the .xml example minionstrike.xml to reflect this change
- pressing the display reward button on the quest gump will identify the reward attachment if any is present as well as displaying the reward item.
---------------- xmlfind changes -------------------------
- added the ability to open the attachments gump from [xmlfind. Objects with attachments will have a blue bullet button at the beginning of their entry that will open the attachments gump for that object.
- modified [xmlfind to use the location of the parent mobile or container for items when using the range search option. This allows you to use the range option to locate items even if they are carried by a mob/player or in a container within range.
- added support for searching for attachments directly by selecting the "attachment type" option and entering an attachment type. At the moment, when this is selected, the other search options are not applied (so for example you cant search for all of the xmlpoints type attachments on players that are within 50 tiles). I will be adding support for that later.