Full Version : GodFood's Utility Pack Creator
xmlspawner >>XMLSpawner Cool Stuff >>GodFood's Utility Pack Creator
<< Prev | Next >>
godfood- 01-20-2006
What this spawner does is it turn's a BackPack Into this: (it will work with other container's, I just haven't tested the drag and drop area with any other's)
To use this spawner, Place it in your /RunUO/Spawns folder. Then ingame, type [XMLNewLoadHere utilitypack.xml. Then you need to type [set movable true and then target the Spawner. Once you've done that place it into a backpack, Double click the Spawner and hit the Respawn button. Lastly, remove the spawner from the backpack (Or throw it in the Garbage can in the new pack). Your backpack should now look like the image above .
godfood- 01-20-2006
Arte, I tried figuring out how to get the spawner to say "I must be in a container to use me" if it wasn't in a container. But I coudln't get it to work. Any Idea's?
Additionaly, While testing, I managed to get it to spawn outside of a pack once. I hadn't changed anything, just an unlucky "Respawn" click.
P.S. If you see any way's I can get this to perofm better just let me know
ArteGordon- 01-20-2006
You can do
SETONTHIS/MSG/blah blah blah
but note that if it is invisible, then the text will not be displayed to the player (you cannot display text over invisible items).
(edit)
you can try this little trick though.
SETONTHIS/visible/true/MSG/blah blah blah/visible/false
which will make it visible before the message, say the message (which can now be seen because it is visible), and then make it invisible again.
It will all happen at once so you wont actually see the spawner becoming visible.
godfood- 01-20-2006
Well, You need to have staff access to access the spawner gump anyways don't you? And it's not meant to be used by player's, but by staff for their own pack's, or for staff to setup Utility Pack's for plawer rewards/gift's. I'll try and get that added after work tonight.
Sub 30:
SETONTHIS/running/false
sub 31:
SETONTHIS/MSG/I must inside a container to use me
Sub 32:
SETONTHIS/running/false
Would that be a correct use? With sub 1 pointing to sub 31 if it is not contained?
ArteGordon- 01-20-2006

QUOTE (godfood @ Jan 20 2006, 03:32 PM)
Arte, I tried figuring out how to get the spawner to say "I must be in a container to use me" if it wasn't in a container. But I coudln't get it to work. Any Idea's? Additionaly, While testing, I managed to get it to spawn outside of a pack once. I hadn't changed anything, just an unlucky "Respawn" click.
P.S. If you see any way's I can get this to perofm better just let me know

if you hit respawn while it was in the middle of spawning subgroup 30 after it just turned the spawner off, then what you did was to force it back on again (thats what respawn will do). Then it completed subgroup 30, returned to the calling IF entry and continued on.
Here is a version that is a bit simpler, and doesnt have that problem. It basically puts all of your utility pack spawns in one subgroup (6) and the turnoff/msg entries in subgroup 30, and then it has your IF in subgroup 1 that either spawns subgroup 6 or subgroup 30 depending on the Parent.
When it finishes with that IF the next entry is GOTO/1 so that it will always return to the starting point.
(edit)
it also uses the visible trick to display the "must be in a container" message if it isnt in a container.
godfood- 01-20-2006
Wow, I really like you Revision Arte . But it doesn't seem to turn iteslf off. I noticed it when I put it into the trash barrel and it turned the trashbarrel into a utlity pack as well . I'll mess with it a little see if I can get it working.
Dave1969- 03-17-2006
Really cool GodFood. Is there any way of making it larger though. its alot smaller than a normal 2d backpack. It would be cool if y9ou could drag stuff onto the page to the right
godfood- 03-18-2006
I'd love to see that too, But I don't know of any way to do that.