Full Version : Couple of new ideas
xmlspawner >>XMLSpawner Feature Request's >>Couple of new ideas


<< Prev | Next >>

Lord Hog Fred- 08-24-2006
I just had a couple of ideas for the Spawner.
How about having account attachments so that an entire account can have attachments added to it rather than individual characters.
Also is it possible to define a region with the XmlSpawner that will check if an item has been placed in it? If so would one spawner be able to control multiple item checks? For example 3 items need to be placed on sqaure 1, 2 and 3 only once ALL these items are in their correct locations they will be set to unmovable and deleted after a few seconds the spawner would then apply whatever predefined effect to any players within a set region.

ArteGordon- 08-24-2006
the account attachment idea is on the todo list.

Testing for item location can be done in a couple of ways. I am working on a region controller that would let you trigger spawners on various region events.
But you could also just have a spawner checking on item location using conditional tests like

IF/GET,item1name,X = 1000 & GET,item1name,Y = 1200 & GET,item2name,X = 1003 & GET,item2name,Y = 1195/33

where you could have subgroup 33 set to do all of your actions that you wanted when the items were in place

Lord Hog Fred- 08-24-2006
Ah ok cool, I just thought that if the XmlSpawner could do that then it would be easy to set up a Peerless like system by just getting the spawner to check for the item in the locations needed.

Lord Hog Fred- 08-30-2006
Um, I'm trying to check for items the way you suggested but the spawner just keeps giving me a red error.
I am using:
CODE
IF/GET,Apple,X = 5545 & GET,Apple,Y = 1155/10

And the error just reads GET,Apple,X :

Also, how can I delete the items after the spawner has spawned what it's been told to?

ArteGordon- 08-30-2006
QUOTE (Lord Hog Fred @ August 30, 2006 11:44 am)
Um, I'm trying to check for items the way you suggested but the spawner just keeps giving me a red error.
I am using:
CODE
IF/GET,Apple,X = 5545 & GET,Apple,Y = 1155/10

And the error just reads GET,Apple,X :

Also, how can I delete the items after the spawner has spawned what it's been told to?

are you sure that the item is actually named "Apple"? If you do a "[get name" on it or use "[whatisit", what does it report?

The error is probably indicating that it cant find a unique item with that name.

You can use and entry like "SET,itemname/DELETE" to delete it. Again, you want to make sure that it is a unique item with that name.
If you need to specify the type as well, you can do that with

SET,itemname,itemtype/DELETE

Lord Hog Fred- 08-30-2006
Hmm ok, it still doesn't seem to want to work. I changed the items name to Apple but it just spawns Subgroup 10 anyway even if my apple isn't on the tile defined.
If the item on the square has to be 100% unique then it's not really going to work as I'm trying to make a peerless like system using the spawners and it's not possible to have the peerless keys be completely unique and if I delete them by type anyone else who is already in posession of a key will lose it. Perhaps the XmlSpawner isn't the best way of doing this. Any other ideas on how to do this using the Spawner other than the way Im trying?