Full Version : How do I - Use the xmlloadhere command?
xmlspawner >>XMLSpawner - How do I? >>How do I - Use the xmlloadhere command?
<< Prev | Next >>
ArteGordon- 12-27-2005
Syntax:
[xmlloadhere filename [spawner prefix][-maxrange range]
The xmlloadhere command will load an xmlspawner XML file back in at an arbitrary location instead of simply using the location that it was originally saved at.
The 'filename' argument must be the complete filename (including any .xml extension).
The optional 'spawner prefix' argument can be specified if you only want to load spawners with names that begin with a certain string.
When you use [xmlloadhere with spawners that are widely separated, you will want to use the -maxrange option with some large value.
If you dont specify that, then the default is to assume that only spawners within 48 tiles of the starting location need to be shifted (this is for loading in things like quests where you might want to reposition the starting npc spawners without moving other distant spawners). Spawners that are more distant will be loaded in at their original location.
If any of the spawners defined in that file are already loaded onto the server, then they will be replaced by those being loaded in.
The important thing about that command is that it uses the location of the first spawner in the XML file to determine how to shift the positions of all of the other spawners.
So you want to:
1) look at the XML file and find out which spawner is first,
2) position your staff char at the corresponding new location that you want that spawner to be placed.
3) do an [xmlloadhere of the file.
An easy way to make individual XML files for the various dungeons that you want to relocate is to use the SpawnEditor to select the region you want to move, then download the spawners in that region from your server using the transfer server, and then save them to a file.
You can also do that without using the transfer server by just saving all of your spawns out to a file, then load that file into the SpawnEditor, select the region you are interested in, select Edit->Delete->spawns not in the selection window, and then save the result.