Fixed the use of name proptest, in case you want to allow a search and don't
want to specify a name in property test, you can use the wildcard "*" (FOREACH -
AMOUNTCARRIED and many others that will allow to input a name among other
things):
Example:
FOREACH,PlayerMobile,*,3/DAMAGE,100
Will do 100 damage to all playermobiles in a range of three, the * will match
any name
FOREACH,Item,,3/Name/New Name
Will get any Item in a range of three whose name is "null" in the property test,
and will rename them to "New Name".
Modified and fixed a bug in SETONPETS:
Before:
SETONPETS,range/prop/value/prop/value...
but it wouldn't work, since the checkname, with a value of null, wasn't valid
(and you couldn't modify it!)
Now:
SETONPETS,range[,name]/prop/value/prop/value...
If you don't specify a name, any name will match, if you input a *, also, any
name will match, an empty name will match only pets with "null" name in
property.
----
Modified the PLAYERSINRANGE, so instead of searching for any mobile and checking
if they are players, it will search for any active client (logged in player,
that's it).
-----
Those changes, excluded for the last one that was done for better speed checks, are to maintain compatibility with all the rest of xmlspawner commands, since the first objective is relative to COMPATIBILITY without the need, for the user, to change their old spawner.
Enjoy.