QUOTE |
- added the new "SETONNEARBY,range,name[,type]/prop/value/prop/value..." keyword that allows you to set properties on all objects of the given name and type within the specified number of tiles from the spawner (thanks to CEO for the idea). The objects can be mobiles, items, or both. |
QUOTE |
- added the ability to access container contents in the SETONNEARBY keyword with the new 'searchcontainers' argument. The new syntax is SETONNEARBY,range,name[,type][,searchcontainers]/prop/value/prop/value... where searchcontainers is a flag set to true or false (default is false). This will only access containers that are placed in the world, not containers carried by mobiles. If searchcontainers is set, then only items in containers will be included. So, to delete all ginseng found in containers within 5 tiles of the spawner but not on the ground, you could use the spawn entry SETONNEARBY,5,,ginseng,true/DELETE Without the searchcontainers argument, or setting it to false it would delete all ginseng on the ground within 5 tiles of the spawner but not in containers. An example of the use of this for filling and deleting contents of nearby boxes can be found in the nearbyboxes.xml example in xmlextras.zip (thanks to snicker7 for the idea). |