Mob.Count

bowie

Senior Member
eg.
Code:
if ${Mob.Count}>1
{
Me.Ability[Painbringer]:Use
call MeCasting
}
${Mob.Count} ALWAYS returns NULL for me....even when I have aggro'd 3 or 4 mobs.

What am I missing..or is it broken?
 
Last edited:

bowie

Senior Member
From here....

http://www.isxgames.com/forums/showthread.php?t=3776

Code:
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
Code:
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.
 

bowie

Senior Member
Sorry..I should have said..I have this included in the script

Code:
#include EQ2Common\MobCheck.iss
I have a call placed in function Main() ...call CheckForAOE
Offending piece of code...
Code:
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				
}
 
Last edited:

Hendrix

Well-Known Member
the default variable that mobcheck.iss creates is "MobCheck" not "Mob" so try ${MobCheck.Count}
 
Top Bottom