Make Use of POL CopyRects
I made this script for a friend of mine and thought that there may be others that would like to make use of CopyRects from POL.
This script will read in a CopyRect and add it to the world as well as export areas of dynamic items (such as manually built houses/towns).
To Use This Script:
Just plop the file in your customs folder and you're set. All files that will be used *must* be in the same directory as your RunUO Server in a folder called "Exported Items" (C:\RunUO\RunUO 1.0\Exported Items). The script assigns the extention ".txt" to all exported files and will read these files as well as POL CopyRect ".cfg" files.
"export <fileName>" will give you a bounding box picker. Target the area of items you want to export and it will create a file that holds the information for all the items in this area. Do not include the file extension when using this command, it is automatically added. ( "export MyFirstHouse" will cause the file "MyFirstHouse.txt" to be created containing all the items in the targeted area. )
"import <fileName" will look for "fileName.txt" and if it does not exist, it'll then look for "fileName.cfg". Once it locates the file, it will add all the items in this file in their designated locations.
I'm sure there's a better program/script that has been created to do this, but I thought that there may be someone that would find this script as useful as my friend has. He likes to build his custom things, then export them, and then all he has to do is import them to the locations he wants theme to be in and burn his map. I'm still wanting to make the export command create the area into a multi, still studying that.
I am working on adding the ability to extract static area of items (such as static houses) so that you can import them to various other locations as desired.
__________________
In the end we are faced with ourself. Look in the mirror and you see a reflection of the obvious, look through it and past the reflection to see the truth. Can you see it? What is it telling you?
|