Full Version : XmlOnStartup Attachment
xmlspawner >>XMLSpawner Attachments >>XmlOnStartup Attachment


<< Prev | Next >>

ArteGordon- 09-02-2006
This attachment will allow you to specify an action to be performed on server startup (during the Initialization phase).

public XmlOnStartup(string name)
public XmlOnStartup(string name, string action)
public XmlOnStartup(string name, string action, double expiresin)

The Action property of the attachment can be set to any spawn string. SETONTHIS will refer to the object that it is attached to.

For example, to have a spawner spawn 2 minutes after server startup just add the attachment to the spawner like this

[addatt xmlonstartup spawnit "SETONTHIS/nextspawn/00:02"

and then target the spawner.
This could be used to reproduce the behavior of OSI daily rares, for example.