The following script commands have been added:
- "cnm[number of mobs],[distance]" — If there are at least "number of mobs" within "distance" of your character, the rest of the script line will process. Example:
- cnm1,20|dbg % there is at least one mob within 20 distance
- "cnmt[number of mobs],[distance]" — If there are at least "number of mobs" within "distance" of your target, the rest of the script line will process. The target itself IS counted, so "number of mobs" will always be at least one. Example:
- cnmt2,5|abl3615|dbg % using Gravity because there are at least two mobs near my target|gt3
abl3596|dbg % using Malefic because there's only one mob near my target
nop
- cnmt2,5|abl3615|dbg % using Gravity because there are at least two mobs near my target|gt3
- "get % mobp[distance from mob],[distance from you]" — The mob with the greatest number of mobs surrounding it within "distance from mob" will populate the following global variables if that mob is within "distance from you": MOB_P_ID (the ID of the mob), MOB_P_ADDR (the address of the mob), and MOB_P_NUM (the number of surrounding mobs). This command can be used to ensure your AoE abilities target the most effective target. Example:
- get % mobp5,25|abl3615,(VAR % MOB_P_ID)
The above line will use Gravity on the mob with the greatest number of mobs surrounding it within 5 distance as long as that mob is within 25 distance of your character.
- get % mobp5,25|abl3615,(VAR % MOB_P_ID)
Retrieving items from the company chest should now work properly.
These changes require updating Speeder to version 20441.