• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Code to determine if you have aggro

Joined
Dec 24, 2017
RedCents
1,813¢
I am just wonder how the code would type out to say you have aggro, when using kissassist.

Would this be "if my aggro is less then 90%"?
${Me.PctAggro} < 90
 
Would there be a way to determine if you were in combat mode? Meaning if anything was aggro'd on you and you had nothing targeted?
 
Would there be a way to determine if you were in combat mode? Meaning if anything was aggro'd on you and you had nothing targeted?

${Me.XTAggroCount}>0 would tell you if you had anything on auto hater mobs on xtarget There's also me.combat im not sure if thats if you have agro though or if you're attack is on it would be easy to test in game /echo ${Me.Combat}

This is a great reference: https://www.redguides.com/docs/tlos/
 
Last edited:
When using a variable that returns an INT value you do not need to say greater than 0, zero is automatically assumed FALSE

Thus

/if (${Me.XTarget})

and

/if (${Me.XTarget} > 0)

evaluate the exact same. However, if for your own readability, you want to type it to be greater than zero you can, but it's redundant and unnecessary.

There are multiple ways to determine if you have aggro. To include the above mentioned method.

/if (${Me.XTarget})
/if (${Me.XTAggroCount})
/if (${Me.CombatState.Equal[COMBAT]})

Not to be confused with ${Me.Combat} which means your auto attack is on.
 
Looks like I confused the ${Me.XTarget} for ${Me.XTAggroCount}.

I tried testing this command
/echo ${Me.XTAggroCount} with 2 mobs in the extended target window and the count came up as 0. Same as if I have no mobs in my extended target window.

Can anyone clarify how to use this correctly? If I wanted to use only certain abilities if I had say more then 2 mobs in my extended window.
 
It appears broken, but XTAggroCount returns how many mobs are <100% aggro on auto hater by default... which is not really the same as ${Me.XTarget}... since you'd be using this TLO to specifically check how many mobs you don't have enough aggro as a tank. You want to cast ae hate if you have >0 mob with <100% hate, vs casting ae aggro if you have more then 1 mob on aggro. Since you may already have aggro, and you don't want to waste ae hate if you might get another add then all of a sudden you have no ae hate spell up

to elaborate if you want to cast a spell when you have more than 2 mobs as you ask, simply ${Me.XTarget}>2 . Remember it's a greater than, not greater or equal. So remember if you want something to cast with 3 mobs, it's >3... or if you want it to cast with 2 mobs >1 etc.
 
Rich (BB code):
[AE]
AEOn=1
AECOn=1
AESize=5
AERadius=50
AE1=Loathing|2
AE2=Explosion of Hatred|3
AE3=Explosion of Spite|3
AE4=Scourge Skin|3
AE5=Stubborn Stance|3
AE6=Sholothian Carapace|3
AECond1=${Me.XTAggroCount} > 0
AECond2=${Me.XTAggroCount} > 0
AECond3=${Me.XTAggroCount} > 0
AECond4=TRUE
AECond5=TRUE
AECond6=TRUE

this is my sks ae settings in kissassist.

the first 3 handles aggro if multiple mobs are in camp, and i do not have aggro on all of t hem they will be cast.

the last 3 is defensives

so what is happening here is a combination of how kiss uses:

${Me.XTarget}>2 && ${Me.XTAggroCount} > 0
${Me.XTarget}>3 && ${Me.XTAggroCount} > 0

first its checked if you have multiple mobs, more than 3 or more or 4 or more, then it will see how many of them do i have less than 100% aggro on, at this point i want to cast whenever i have 1 or more than i dont have agro on, since thats my job, having aggro on all the things.

${Me.XTarget} tells you how many you have on xtarget list
${Me.XTAggroCount} tells you how many of the things on your xtarget list you have less than 100% aggro on.

use a combination of the two to make a condition that tells you when to cast your ae spells.
 
also it dont have to be ae spells you can use any kind of spells, like deaggro things etc. see [ae] section as the place to handle multiple mobs.
 
Seems this issue has reared its ugly head again. ${Me.XTAggroCount} is returning 0 no matter what I have aggro on or not on. HELP!
 
Yeah, seems broken again..

1 mob on auto hater with pet on 100% aggro - ${Me.XTAggroCount} and ${Me.XTHaterCount} /echo as 0.

2 mobs on auto hater pet on 100% aggro- ${Me.XTAggroCount} and ${Me.XTHaterCount} /echo as 1

3 mobs on auto hater pet on 100% aggro - ${Me.XTAggroCount} and ${Me.XTHaterCount} /echo as 2

With no pet, ${Me.XTAggroCount} always /echo's 0. but the other HaterCount numbers remain the same
 
Question - Code to determine if you have aggro

Users who are viewing this thread

Back
Top
Cart