Addon Script Generator
Summary:
This script exports a structure built in game with static items to a working addon script. The output script will create both the addon and the addon deed. Hue and light information will be exported as well.
Description:
I wrote this little script to help me out in a bigger project (maybe someone else did this before, I was too lazy to search for it ). It basically creates a fully working script for an addon based on a structure built in game (the script extracts static items, which is what the deco section of Pandora's Box creates, and I believe also UOArchitect). The script preserves hue and light type for light sources.
It's very easy to use, the command is:
[AddonGen <name> [<namespace>]
<name> is the name of your object. It should not contain spaces (so if you want your structure called Tower Of Chaos, name would be TowerOfChaos - the script will then generated two items: TowerOfChaosAddon and TowerOfChaosAddonDeed).
<namespace> this is optional. By default the script will place the classes it creates into Server.Items, unless this parameter is specified.
Once the command is executed, you get an area picker to select the region you wish to export. The structure you're exporting will NOT be deleted.
The script will be written to ...\RunUO\TheBox\<name>Addon.cs.
Installation:
Just put AddonGenerator.cs anywhere in your Scripts folder.
Update May 29:
Update June 1:
I have added a gump interface to the command. Access the gump by using no arguments (in other words just type [AddonGen).
Through the gump you can specify whether you wish to export items and/or statics, and also a Z range. Keep in mind that when exporting statics hue information will be lost because RunUO doesn't load hue information from the statics*.mul files.
Summary:
This script exports a structure built in game with static items to a working addon script. The output script will create both the addon and the addon deed. Hue and light information will be exported as well.
Description:
I wrote this little script to help me out in a bigger project (maybe someone else did this before, I was too lazy to search for it ). It basically creates a fully working script for an addon based on a structure built in game (the script extracts static items, which is what the deco section of Pandora's Box creates, and I believe also UOArchitect). The script preserves hue and light type for light sources.
It's very easy to use, the command is:
[AddonGen <name> [<namespace>]
<name> is the name of your object. It should not contain spaces (so if you want your structure called Tower Of Chaos, name would be TowerOfChaos - the script will then generated two items: TowerOfChaosAddon and TowerOfChaosAddonDeed).
<namespace> this is optional. By default the script will place the classes it creates into Server.Items, unless this parameter is specified.
Once the command is executed, you get an area picker to select the region you wish to export. The structure you're exporting will NOT be deleted.
The script will be written to ...\RunUO\TheBox\<name>Addon.cs.
Installation:
Just put AddonGenerator.cs anywhere in your Scripts folder.
Update May 29:
- Fixed the error occurring when the output folder doesn't exit
- Added an option to specify a custom output path at the beginning of the file
Update June 1:
I have added a gump interface to the command. Access the gump by using no arguments (in other words just type [AddonGen).
Through the gump you can specify whether you wish to export items and/or statics, and also a Z range. Keep in mind that when exporting statics hue information will be lost because RunUO doesn't load hue information from the statics*.mul files.