Edit |

Spawner Attachments

From Grimmwold

Using Attachments for the XML Spawner

Definitions

  1. Refractory – if set to -1 or not set at all will allow the item/mob/event to be continually triggered. Increase the value over zero and it will delay the trigger repeat in seconds.

Examples

Make an object delete it self after a period of time

  • Create the object and type .addatt TemporaryQuestObject "" .1
  • Where "" is used to represent and blank non-existant quest
  • Where .1 is the time before the object destroys itself, in this case one second. One minute is 1.

Freeze a MOB in place

  • Create the mob and type .addatt xmlfreeze
  • This freezes the MOB.
  • Alternatively, Create the mob and type .addatt xmlfreeze 10
  • This will freeze the mob for 10 seconds.

Turn an object/mob a different color for a limited time

  • Create the object/mob and type .addatt xmlhue 1940 1
  • Where 1940 is the hue number. To get a hue from an existing object type .get hue and target the object.
  • Where 1 is the duration, in this case one minute, .1 would be one second

Turn an mob into a different graphic for a limited time

  • Create the mob and type .addatt xmlmorph 217 1
  • Where 217 is the BodyValue (of a dog) and 1 is one minute, .1 would be one second.
  • To get the body value of a mob type .props and page forward till you find the BodyValue.

Make a mob/object speak on approach

  • Create the mob/object and type .addatt xmlmessage "how are you"
  • Where "how are you" is the message displayed to PLAYERS on approach. Does not work for staff.
  • Optionally, type .addatt xmlmessage "how are you" 5
  • Where 5 is the refractory value and will keep the message from being triggered more then once every 5 seconds.
  • Optionally, type .addatt xmlmessage "how are you" 5 hi
  • Where hi is a trigger word that causes the message to display. If you want the message to display every time the player says hi enter -1 instead of 5.
  • This can only be used to set ONE message

Cause an object to cast file at an approaching player

  • Create the object and type .addatt xmlfire 50
  • Where 50 is 50 points of damage, appearing to be modified by the players resistances.
  • Optionally type .addatt xmlfire 50 10 11
  • Where 10 is the delay between attacks in seconds, and 11 is the time before the effect expires in minutes.
  • I believe that XmlLightning, XmlLifeDrain, and XmlManaDrain should work the same way.

Associated Commands

Copied From:

.addatt attachmenttype [args] - allows attachments of the specified type to be added to targeted objects. For example, to have a door display a message whenever it is approached, you could do "[addatt xmlmessage Welcome!". To also have a sound played you could add "[addatt xmlsound 1048"

.getatt [type] - allows the attachments on a targeted object to be listed. If the optional type argument is given, then only attachments of that type are displayed.

.delatt [type][serial] - allows attachments on a targeted object to be deleted. If no arguments are given, then all attachments on the object are deleted. If the type is specified, then only attachments of that type are deleted. If a serial number is specified, then the specific attachment with that serial number is deleted (use [getatt to see the serial numbers).

.availatt - opens a gump that lists all of the available attachments and their various constructors and arguments. All constructors for objects derived from the XmlAttachment class and flagged with the [Attachable] attribute will be listed.

Wiki Toolbox:

Personal tools
This page was last modified 20:54, 25 May 2009. - This page has been accessed 1,111 times. - Disclaimers - About Grimmwold
MediaWiki

Grimmwold is a private free Ultima Online shard.  We focus on roleplay, or RP was its called.  Role-players will find an exciting and flexible fantasy world based on Grimm Fairy Tales, European Myth and Lore, and some modern children stories such as Narnia featured in The Lion, The Witch and The Wardrobe.  However we are an adults only role-play game, privately hosted on our own online server.  Ultima Online is an older MMORPG game created many years back by OSI and now owned be EA.  For those who are fans of UO, and fans of RP, Ultima Online has maintained an incredible following both on the public servers and private shards such as ours.
If you are interested in trying out online role-play in an adults only fairy tale setting, we encourage you to give us a try.  We offer a wide range of races and classes and some of the best RP you will find online role play server anywhere. 

Ultima Online UO Shard roleplay RP role-play Server Private Grimm's Fairy Tales fairy fairies fey changeling otherkin kingdom grimmwold sanctuary shard comraich online game MMORPG free community dwarves elves vampires pixie puck horned god triple goddess moon goddess cern hern puck pan midsummer beltane pagan witch wizard ranger knight shining armor dreaming priest priestess huntsman magic cauldron blood orc clan bloodrock clan yew militia yew guards catskills drow trow vampire goblin orc shadowclan undead fae gobo black speech custom uo shard RPG MMO private UO shard mith lara mithril dark forest troll myth legend Ultima Online UO Shard roleplay RP role-play Server Private Grimm's Fairy Tales fairy fairies fey changeling otherkin kingdom grimmwold sanctuary shard comraich online game MMORPG free community dwarves elves vampires pixie puck horned god triple goddess moon goddess cern hern puck pan midsummer beltane pagan witch wizard ranger knight shining armor dreaming priest priestess huntsman magic cauldron blood orc clan bloodrock clan yew militia yew guards catskills drow trow vampire goblin orc shadowclan undead fae gobo black speech custom uo shard RPG MMO private UO shard mith lara mithril dark forest troll myth legend Ultima Online UO Shard roleplay RP role-play Server Private Grimm's Fairy Tales fairy fairies fey changeling otherkin kingdom grimmwold sanctuary shard comraich online game MMORPG free community dwarves elves vampires pixie puck horned god triple goddess moon goddess cern hern puck pan midsummer beltane pagan witch wizard ranger knight shining armor dreaming priest priestess huntsman magic cauldron blood orc clan bloodrock clan yew militia yew guards catskills drow trow vampire goblin orc shadowclan undead fae gobo black speech custom uo shard RPG MMO private UO shard mith lara mithril dark forest troll myth legend Ultima Online UO Shard roleplay RP role-play Server Private Grimm's Fairy Tales fairy fairies fey changeling otherkin kingdom grimmwold sanctuary shard comraich online game MMORPG free community dwarves elves vampires pixie puck horned god triple goddess moon goddess cern hern puck pan midsummer beltane pagan witch wizard ranger knight shining armor dreaming priest priestess huntsman magic cauldron blood orc clan bloodrock clan yew militia yew guards catskills drow trow vampire goblin orc shadowclan undead fae gobo black speech custom uo shard RPG MMO private UO shard mith lara mithril dark forest troll myth legend