ArteGordon
Wanderer
Xmlspawner2 v2.22
Click here to download
Please see the attachment link below if this doesnt work.
Summary:
Modification of bob smarts xmlspawner with additional features.
New in
Version 2.22
updated 2/15/04
- Added the CAST keyword to allow the spawner to cast spells on triggering players.
- Added an argument to the SET keyword allowing property values to be set on named items.
- Added line editing to the spawn text gump.
- Added multiple pages to the spawn gump.
- Added an addspawn property interface that will allow spawns to be added to a spawner without opening the gump, e.g. via other objects.
- Added an external trigger hook that allows other objects to actively control the spawner.
- Allow arguments to be passed to spawn constructors so that objects, such as doors, that require arguments can also be spawned
- Added new questnote item, and XmlQuestToken class for multipart spawner quest construction.
- Added a second xmlquest (blather2.xml) that demonstrates the new quest items and triggering features.
- Added the SETONCARRIED keyword that allows you to set properties on a named item carried by the triggering player.
- added the NoTriggerOnCarried property, that blocks spawner triggering when the player is carrying the named item.
- added a sample xmlfile quest using the spawner triggering and gump features.
- added the GUMP keyword that will send a gump containing the designated text to the triggering player.
- Added keywords allowing random magic items to be dropped, added to spawned mob, or given to players.
- Added non-proximity based triggering of spawns with the object property, and mob property triggering features.
- Added an [xmldefaults command to display and alter default parameters used when creating spawners.
- changed the way that X1Y1 X2Y2 behave when setting spawning regions.
- Added the ability to set properties on items and players when spawners are triggered.
- Added the ability to display messages over items and mobs when they are triggered.
- Added the [xmlimportspawners command allowing xml descriptions of regular spawners from Sno's xml package to be read in as xmlspawers.
- Added several new items for added content including a note, and several levers/switches
- Added a trigger probability that will control the chance that a spawn will occur even if all other conditions are met.
- Added player/mob-property triggered spawning.
- Added an [xmlspawnerunload command (also the shorthand version [xmlunload) that is the reverse of the load command.
- Added the ability to add items to a spawn mobs pack.
- Added the ability to use random number generation in specifying property values of mobs or items
- Added a new note item that can be defined in the spawner for passing messages to players.
- Added speech triggering of spawns.
- Added a killcount parameter that provides information on the number of kills on a spawner.
- Added an [xmlhome command that gets spawner location, can teleport you to the spawner, remotely open the spawner gump, or individually send mobs home.
- Added player proximity triggered spawning with sounds and messages
- Added time-of-day dependent spawning.
- Added player-item triggered spawning (player carrying a named item needed to spawn)
- Added item-property triggered spawning to allow chaining of spawns, and other item-based activation schemes.
- Added the ability to set properties for spawned items/mobs in the spawn description string
- Added probabilistic spawning that can be used to implement rare mob spawns, such as a single spawn that you have to kill on average some number of times to get a rare named spawn to appear.
- Added single and stacked item spawning in containers.
- Added a duration parameter that allows for time-limited spawns, such as rares that only appear for a certain amount of time.
- Added a spawnrange parameter (how far they spawn) that complements the homerange parameter (how far they wander).
- Added two respawn commands.
- Added a fix for deletion of spawned items such as rares, that are not left in containers (e.g. locked down on the ground).
- Added fixes for a few invalid spawn issues as well as some optimizations to reduce system load.
Description:
New in
Version 2.22
updated 2/15/04
- added the CAST keyword to allow the spawner to cast spells on triggering players. The syntax is "CAST,spellname[,arg]" or "CAST,spellnumber[,arg]" where spellname and spellnumber are the registered spell names and numbers found in Scripts/Spells/Initializer.cs. This is used with triggering to allow the triggering mob/player to cause the spell to be cast with the triggering mob/player as the target. Both harmful and beneficial spells can be cast. Casting normal circle spells does not use mana or reagents, Necro/Paladin spells use mana/tithing points of the caster, and both paladin and necro spells check for skill requirements on casting. Karma effects will also be applied. There are no casting delays, so multiple spells may be cast simultaneously. Some spells are are location targeted and can take an additional argument [,arg] which is a range value used to determine a random target location (+-range) relative to the caster. The default and mininum range value is 1. The Polymorph spell uses the 2nd argument as the bodyvalue.
For example, to set up a spawner to autoheal the triggering mob use the spawn spec "CAST,greaterhealspell". To polymorph the triggering player into a bear use "CAST,polymorphspell,212". To cast lightning on the triggering player "CAST,lightningspell", or to summon a creature "CAST,summoncreaturespell", or bladespirits "CAST,bladespiritsspell", and to cast it with a random target within +-5 squares of the player use "CAST,bladespiritspell,5". Note, not all spells will work automatically. Item targeted spells such as mark, recall, and sacredjourney will cast and bring up a targeting cursor.
- added a new optional argument to the SET keyword. The "SET,itemname/prop/value/prop/value/..." form allows you to set property values on uniquely named items without having to set them as predefined targets using the SetItem property. This can be used to set properties on things that cannot be targeted because they are not necessarily available as existing objects at the time, such as spawned items.
- added an addspawn property interface that will allow you to add spawns to a spawner without opening the gump. This allows other objects to add spawns to the spawn list. Also provides the ability to actually spawn spawners with specified content with spec lines like "xmlspawner/addspawn/helmofinsight/addspawn/orc/proximityrange/5/mindelay/1/maxdelay/1"
- added line editing to the spawn text gump. This allows modification of substrings in a spawn specification string without having to retype the entire string. To use this feature, open the text entry gump for a spawn spec by clicking the parchment icon to the right of a spawn entry line on the main gump. The text entry gump now has two text entry lines at the bottom. The old text is entered in the top line, the new text in the bottom. The first occurrence of the old text will be replaced by the new text when the Apply button is pressed.
- added multiple pages to the spawn gump to allow more than 15 spawn specs per gump (maximum is now 60). The additional pages are accessed throught the numbered buttons at the bottom of the spawn spec entry list on the main gump.
Installation:
for beta-36.
With bob smarts b36 world, or Knightshades xlmspawner-only version already installed, replace the xmlspawner.cs file from either of those with xmlspawner2.cs. It is fully compatible with all existing xml spawn file descriptions. Then, just add the remaining scripts in the package in your custom scripts area.
With a fresh beta-36 install, or without either of those packages installed, just drop xmlspawner2.cs and the other scripts in the package into your custom scripts directory.
Note, if you have installed any of the optional supplemental scripts that are included, like simpleswitches.cs or simplenote.cs, be sure to update those as well as new versions of the package are released.
Note, this does not replace regular spawners and you can use both regular and xmlspawners at the same time if you like.
Click here to download
Please see the attachment link below if this doesnt work.
Summary:
Modification of bob smarts xmlspawner with additional features.
New in
Version 2.22
updated 2/15/04
- Added the CAST keyword to allow the spawner to cast spells on triggering players.
- Added an argument to the SET keyword allowing property values to be set on named items.
- Added line editing to the spawn text gump.
- Added multiple pages to the spawn gump.
- Added an addspawn property interface that will allow spawns to be added to a spawner without opening the gump, e.g. via other objects.
- Added an external trigger hook that allows other objects to actively control the spawner.
- Allow arguments to be passed to spawn constructors so that objects, such as doors, that require arguments can also be spawned
- Added new questnote item, and XmlQuestToken class for multipart spawner quest construction.
- Added a second xmlquest (blather2.xml) that demonstrates the new quest items and triggering features.
- Added the SETONCARRIED keyword that allows you to set properties on a named item carried by the triggering player.
- added the NoTriggerOnCarried property, that blocks spawner triggering when the player is carrying the named item.
- added a sample xmlfile quest using the spawner triggering and gump features.
- added the GUMP keyword that will send a gump containing the designated text to the triggering player.
- Added keywords allowing random magic items to be dropped, added to spawned mob, or given to players.
- Added non-proximity based triggering of spawns with the object property, and mob property triggering features.
- Added an [xmldefaults command to display and alter default parameters used when creating spawners.
- changed the way that X1Y1 X2Y2 behave when setting spawning regions.
- Added the ability to set properties on items and players when spawners are triggered.
- Added the ability to display messages over items and mobs when they are triggered.
- Added the [xmlimportspawners command allowing xml descriptions of regular spawners from Sno's xml package to be read in as xmlspawers.
- Added several new items for added content including a note, and several levers/switches
- Added a trigger probability that will control the chance that a spawn will occur even if all other conditions are met.
- Added player/mob-property triggered spawning.
- Added an [xmlspawnerunload command (also the shorthand version [xmlunload) that is the reverse of the load command.
- Added the ability to add items to a spawn mobs pack.
- Added the ability to use random number generation in specifying property values of mobs or items
- Added a new note item that can be defined in the spawner for passing messages to players.
- Added speech triggering of spawns.
- Added a killcount parameter that provides information on the number of kills on a spawner.
- Added an [xmlhome command that gets spawner location, can teleport you to the spawner, remotely open the spawner gump, or individually send mobs home.
- Added player proximity triggered spawning with sounds and messages
- Added time-of-day dependent spawning.
- Added player-item triggered spawning (player carrying a named item needed to spawn)
- Added item-property triggered spawning to allow chaining of spawns, and other item-based activation schemes.
- Added the ability to set properties for spawned items/mobs in the spawn description string
- Added probabilistic spawning that can be used to implement rare mob spawns, such as a single spawn that you have to kill on average some number of times to get a rare named spawn to appear.
- Added single and stacked item spawning in containers.
- Added a duration parameter that allows for time-limited spawns, such as rares that only appear for a certain amount of time.
- Added a spawnrange parameter (how far they spawn) that complements the homerange parameter (how far they wander).
- Added two respawn commands.
- Added a fix for deletion of spawned items such as rares, that are not left in containers (e.g. locked down on the ground).
- Added fixes for a few invalid spawn issues as well as some optimizations to reduce system load.
Description:
New in
Version 2.22
updated 2/15/04
- added the CAST keyword to allow the spawner to cast spells on triggering players. The syntax is "CAST,spellname[,arg]" or "CAST,spellnumber[,arg]" where spellname and spellnumber are the registered spell names and numbers found in Scripts/Spells/Initializer.cs. This is used with triggering to allow the triggering mob/player to cause the spell to be cast with the triggering mob/player as the target. Both harmful and beneficial spells can be cast. Casting normal circle spells does not use mana or reagents, Necro/Paladin spells use mana/tithing points of the caster, and both paladin and necro spells check for skill requirements on casting. Karma effects will also be applied. There are no casting delays, so multiple spells may be cast simultaneously. Some spells are are location targeted and can take an additional argument [,arg] which is a range value used to determine a random target location (+-range) relative to the caster. The default and mininum range value is 1. The Polymorph spell uses the 2nd argument as the bodyvalue.
For example, to set up a spawner to autoheal the triggering mob use the spawn spec "CAST,greaterhealspell". To polymorph the triggering player into a bear use "CAST,polymorphspell,212". To cast lightning on the triggering player "CAST,lightningspell", or to summon a creature "CAST,summoncreaturespell", or bladespirits "CAST,bladespiritsspell", and to cast it with a random target within +-5 squares of the player use "CAST,bladespiritspell,5". Note, not all spells will work automatically. Item targeted spells such as mark, recall, and sacredjourney will cast and bring up a targeting cursor.
- added a new optional argument to the SET keyword. The "SET,itemname/prop/value/prop/value/..." form allows you to set property values on uniquely named items without having to set them as predefined targets using the SetItem property. This can be used to set properties on things that cannot be targeted because they are not necessarily available as existing objects at the time, such as spawned items.
- added an addspawn property interface that will allow you to add spawns to a spawner without opening the gump. This allows other objects to add spawns to the spawn list. Also provides the ability to actually spawn spawners with specified content with spec lines like "xmlspawner/addspawn/helmofinsight/addspawn/orc/proximityrange/5/mindelay/1/maxdelay/1"
- added line editing to the spawn text gump. This allows modification of substrings in a spawn specification string without having to retype the entire string. To use this feature, open the text entry gump for a spawn spec by clicking the parchment icon to the right of a spawn entry line on the main gump. The text entry gump now has two text entry lines at the bottom. The old text is entered in the top line, the new text in the bottom. The first occurrence of the old text will be replaced by the new text when the Apply button is pressed.
- added multiple pages to the spawn gump to allow more than 15 spawn specs per gump (maximum is now 60). The additional pages are accessed throught the numbered buttons at the bottom of the spawn spec entry list on the main gump.
Installation:
for beta-36.
With bob smarts b36 world, or Knightshades xlmspawner-only version already installed, replace the xmlspawner.cs file from either of those with xmlspawner2.cs. It is fully compatible with all existing xml spawn file descriptions. Then, just add the remaining scripts in the package in your custom scripts area.
With a fresh beta-36 install, or without either of those packages installed, just drop xmlspawner2.cs and the other scripts in the package into your custom scripts directory.
Note, if you have installed any of the optional supplemental scripts that are included, like simpleswitches.cs or simplenote.cs, be sure to update those as well as new versions of the package are released.
Note, this does not replace regular spawners and you can use both regular and xmlspawners at the same time if you like.