Page 1 of 1

Multipule mobs

Posted: Thu Jul 11, 2013 2:12 am
by Romplayer
Is there any way for the bot to recognize more than 1 mob attacking at a time and then procede to use an aoe cast only if more than 1 thing is attacking the player at a time?

Re: Multipule mobs

Posted: Thu Jul 11, 2013 2:49 am
by lisa
In a way the bot already does this but only for specific occasions, click to cast mainly, so skills like thunderstorm.

You can do a count of mobs within range of you easily but to do a check for how many are actually targeting you would require a new function, nothing specific for that at the moment.

Any reason you want to know how many are attacking you instead of just how many are around you?

Seems count mobs can check for agro aswell.

Code: Select all

player:countMobs(inrange, onlyaggro, idorname)

Re: Multipule mobs

Posted: Thu Jul 11, 2013 7:15 am
by rock5
I think you can use the 'mobcount' argument with any AOE skill, eg.

Code: Select all

<skill name="MAGE_PURGATORY_FIRE" 		hotkey="MACRO" priority="95" autouse="true" mobcount="2"/> 
To check for only aggroed mobs add this option to your profile.

Code: Select all

		<option name="COUNT_AGGRO_ONLY"		value="true" />		<!-- If you want to count only aggro mobs within range of aoe skills  -->