Full Version : Treassure Chests
xmlspawner >>Q&A >>Treassure Chests
<< Prev | Next >>
Allmight- 08-26-2006
Okay. I am about to start placing treassure chests with random loot on my shard. Will basically start with the Dungeons, and then move on to town chests and so on.
I have been looking around RunUO forums with tips and advice, but can't really find anything usable, since most of the info are for older RunUO systems.
I know i can spawn inside containers with XmlSpawner by placing a spawner in the chest. But that will be a painstalkingly task, adding a spawner in each container, and to be frank, a waste of CPU placing tons of spawners.
What i really want is to keep the spawner count down as much as i can. So basically, one spawner being able to spawn in several chests, preferably already placed chests ( deco that comes with RunUO ).
I have been looking at other systems as well, like Nerun's containers, which isn't good enough.
So, im looking for the best way ( or one of the best ) to spawn random loot in chests, and being able to set locks and traps randomly on the chests as well.
Anyone have any good tips, or pointers too good linkgs/tutorials on the subject.
Any help is greatly apreciated.
EDIT: Sorry for the misspelled title.
Sincerely, Allmight.
Allmight- 08-26-2006
Okay, i have been experimenting with the SETONNEARBY command, and got it to lock, trap and fill nearby already placed chests in a dungeon. But atm it operates on ALL chests within the range. I want to be able to set a chance for chests to be spawned, tested on each chest individually. Is that possible? And i also want it to generate locked, trapped status, and loot seperate for each chest. As it is now, it generates the same thing for all chests, and fills them at the same time.
Another thing i havn't figured out, is how to empty, untrap and unlock chests again before respawning them. Some kind of reset of the chest without having to do each step manually in the spawner.
Oh, while i'm at it. Is it possible to have it only spawn a set amount of nearby chests? Say i place the spawner in a room with 4 chests, but at any time i only want two of them being spawned. The others should be empty.
I hope you understand what i'm getting at.
Oh, and as i posted on the troubleshooting forum, i have problems with LootPacks.
XavierWER- 08-26-2006
you could do something like one xmlspawner for a bunch of chests.
using
#CONDITION RND{1,100}<30 ; SET,(name or serial of container)/locked/true/ADD...
and just use a bunch of those
RND{1,100}<30 would give it a 30% chance todo the following spawn entry.
RND{1,100}<60 would give it a 60% chance, and so on and so forth.
Allmight- 08-27-2006
Hmmm, yeah, that is one way of doing it. But the problem with that method is that i either have to have seperate names on each chest, or in the case of serial, look it up for every chest and enter it into the spawner. That will mean alot of extra work. Advantage with the SETONNEARBY is that i dont have to know the name or serial, it just looks for every chest within range.
So if there is a way to somehow make a random chance that it will spawn a chest, that would be great.
For example. Say i have the above room with 4 chests, the spawner goes to each of them in turn, does a random check, and if it succeedes it will spawn the chest, otherwise it ignores it and goes to the next chest.
This method would make it very easy to spawn dungeon chests. I just have to make a few different spawners and save them. Then i just plop them down in dungeons, and im done.