Full Version : A qwestion about useing Xmlspawener
xmlspawner >>Scripting Support >>A qwestion about useing Xmlspawener
<< Prev | Next >>
Crystal Jem- 07-08-2006
Hello,
I'm new to all of this and don't know how to get the new items and spawen to the spawener to beable to spawen them. Please let me know how.
Thank you,
Crystal Jem
ArteGordon- 07-13-2006
if you have a custom scripted item, you can automatically spawn it by just using the class name of the item in the spawn entry.
You need to make sure that the constructor for the item is marked as [Constructable], like

QUOTE
public class WrathOfTheDryad : GnarledStaff { public override int LabelNumber{ get{ return 1070853; } } // Wrath of the Dryad public override int InitMinHits{ get{ return 255; } } public override int InitMaxHits{ get{ return 255; } }
[Constructable]
public WrathOfTheDryad()
{

otherwise it cannot be added.