Hello,
I am trying to check number of mobs in the engagement before casting an AOE. I am currently using
Code:
${Mob.Count} > 1
but it seems to be checking a huge area or it isn't working right. If there is a mob close, even behind a wall and not engaged then my AOEs are still being cast.
Is there a way to set a range to it or only check mobs in the current engagement?
Bob
Mob.Count works 100% of the time.
It counts the number of mobs engaged in combat and targeting a friendly player or pet.
It tells you jack shit about the number of mobs in the current encounter.
Furthermore, EncounterSize only tells you the number of mobs that STARTED in that encounter. Say you have an encounter of 12 mobs, it will return 12. If you kill 11 of those mobs and target the last one, it still says EncounterSize = 12.
#include EQ2Common\MobCheck.iss
function CheckForAOE()
{
if (${Mob.Count}>1 || ${Me.ToActor.Target.Type.Equal[NamedNPC]}) && ${Me.InCombat}
{
if ${Me.Ability[${AoE1}].IsReady} && ${Me.ToActor.Target.Distance}<10 && ${Me.Ability[${AoE1}](exists)}
{
echo Mob.Count is ${Mob.Count}
echo ${AoE1}
Me.Ability[${AoE1}]:Use
call MeCasting
}
if ${Me.Ability[${AoE2}].IsReady} && ${Me.ToActor.Target.Distance}<7 && ${Me.Ability[${AoE2}](exists)}
{
echo ${AoE2}
Me.Ability[${AoE2}]:Use
call MeCasting
}
if ${Me.Ability[${AoE3}].IsReady} && ${Me.ToActor.Target.Distance}<6 && ${Me.Ability[${AoE3}](exists)}
{
echo ${AoE3}
Me.Ability[${AoE3}]:Use
call MeCasting
}
}
if ${Me.ToActor.Target.Type.Equal[NamedNPC]} && ${Me.Ability[${HT}].IsReady} && ${Me.ToActor.Target.Distance}<30
{
echo ${HT}
Me.Ability[${HT}]:Use
call MeCasting
}
return
}