• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Idea - Improvement to [Agrro] functionality?

WhoDunIt

New member
Currently, it looks like the [Aggro] functionality is all related to controlling your aggro (increasing/decreasing) based on your current target (The AggroCheck Sub uses ${Me.PctAggro} for checking whether to cast the spells/abilities.)

What i'd like to be able to configure, is say "If I have mobs aggroed on me, and my health is < X%, then cast Y skill". For example as an Enchanter, I might want to cast Doppleganger if I have mobs beating me down (regardless of what my current target is), or my bard might want to use Fading Memories, or my Mage the pet shield thing etc (I have only got my group up to 65 - but i'm sure there are a million more use cases)!

As per (https://www.redguides.com/forums/threads/63858-Code-to-determine-if-you-have-aggro), you can use (${Me.XTarget} - ${Me.XTAggroCount} [need to only consider auto hater xtargets here]) to determine the number of mobs current aggroed onto you.

Can anyone see any issues with this general approach? If not I'll have a go at modding the AggroCheck function to incorporate this - but want to check there isn't a good reason this wasn't implemented in the first place!

Cheers.
 
the aggro setion is primarily used to control aggro on your main target, that is correct.

if you want to control aggro on multiple mobs, say as a chanter use your doppleganger do it in the ae section, using ${Me.XTAggroCount} to check how many angry mobs are on you.

can in theory do it in the aggro section too but its easier to do in the ae section i feel.
 
I guess my general requirement isn't really related to the number of aggro'd mobs , it's more to do that I have agro on >= 1 mob, and my health is under X.

Would sticking this in the Heals section work I wonder?

Rich (BB code):
[Heals]
Help=Format Spell|% to heal at i.e. Devout Light Rk. II|50
HealsOn=1
HealsCOn=1
HealsSize=1
Heals1=Doppelganger|60|Me
HealsCond1=${Math.Calc[${Me.XTarget} - ${Me.XTAggroCount}]}

Will test when the servers come up!
 
Rich (BB code):
Heals1=Doppelganger|60|Me
HealsCond1=${Me.XTAggroCount}>0}

that should be enough to use it on you in case you have agro on 1 or more mobs, and are under 60% health
 
i dont think it would fit into the KISS motto, i think building a array of xtargets and then checking each one for aggro pct or even check mobs hott for you as their target. I think maybe setting up an event for your magical skin absorbs a hit then fire dopple would be better i think.
while running a macro.
 
why couldn't you use something like ${Math.Calc[${Me.XTAggroCount}-${Me.XTAggroCount[50]}]}>0 to figure if you have top aggro. You could change the 50 to whatever, but this would figure if there are any mobs that have built up more than 50% aggro on you.
 
Rich (BB code):
${Math.Calc[${Me.XTAggroCount}-${Me.XTAggroCount[50]}]}>0

Unless my logic is going crazy, this still wouldn't do what I want. This would return the count of XTarget auto-hater mobs which have between 50-99% aggro on the character - but not the ones with 100%.

Thinking about it, I think:

Rich (BB code):
${Math.Calc[${Me.XTHaterCount}-${Me.XTAggroCount}]}>0

be correct? Note that XTHaterCount was conventiently just added! (Mar 11 2018 - Added XTHaterCount as the number of mob on xtarget with AUTO-HATER)
 
that will return how many slots have autohater setting to it, that also have any hate towards you
still think a event with dopple on it would be the best approach just make sure it will only fire while a macro is running, or kiss is running.
 
still think a event with dopple on it would be the best approach just make sure it will only fire while a macro is running, or kiss is running.

You may well be right. Just trying to do it in KISS as an interesting exercise :)

Still quite convinced:

Rich (BB code):
${Math.Calc[${Me.XTHaterCount}-${Me.XTAggroCount}]}>0

Looks right based on
Me.XTHaterCount = the number of mob on xtarget with AUTO-HATER
Me.XTAggroCount = how many of the things on your xtarget list you have less than 100% aggro on.

Unfortunately I just tried this in game and both of these are always returning 0 regardless of what is aggroed! That sure throws a spanner in the works :)
 
Me.XTHaterCount = the number of mob on xtarget with AUTO-HATER
Me.XTAggroCount = how many of the things on your xtarget list you have less than 100% aggro on.

Unfortunately I just tried this in game and both of these are always returning 0 regardless of what is aggroed! That sure throws a spanner in the works :)


Anyone get this to work? MY poor SK has 4 AOE aggro grabbers that all go down on the first wave of mobs right away, then the second wave comes in 5 seconds later and it's not a pretty sight.... The Cleric is really getting pissed at being hit all the time.
 
I can't get the hatercount to work, but you can use a combo of the AE section and Aggro. AE will do an aggro count nearby and Aggro handles the current target.

SK: You can spread out your explosions or other AE aggro's to watch for first couple that arrive and save one for next wave. Some of these are the 105 spells and remove Stream if you're camping an area where it will pull more.
Rich (BB code):
AEOn=1
AERadius=50
AE1=NULL
AE2=Vizat's Carapace|3
AE3=Explosion of Spite|2
AE4=Explosion of Hatred|4
AE5=NULL
AE6=NULL
AE7=NULL
AE8=NULL
AE9=NULL
AE10=NULL
AESize=10
AECOn=0
[Aggro]
AggroOn=1
Aggro1=Taunt|100|<
Aggro2=Mindless Hatred|100|<
Aggro3=Stream of Hatred|100|<
Aggro4=Terror of Narus|100|<
Aggro5=Impose for Power|100|<
Aggro6=NULL
Aggro7=NULL
Aggro8=NULL
Aggro9=NULL
Aggro10=NULL
AggroSize=10

Then you can add aggro responses to your Cleric too:
Rich (BB code):
[Aggro]
AggroOn=1
Aggro1=Sanctuary|80|>
Aggro2=Divine Peace|98|>
Aggro3=Divine Retribution|45|>
Aggro4=NULL
Aggro5=NULL
AggroSize=5
 
Rich (BB code):
${Math.Calc[${Me.XTAggroCount}-${Me.XTAggroCount[50]}]}>0

Unless my logic is going crazy, this still wouldn't do what I want. This would return the count of XTarget auto-hater mobs which have between 50-99% aggro on the character - but not the ones with 100%.

Thinking about it, I think:

Rich (BB code):
${Math.Calc[${Me.XTHaterCount}-${Me.XTAggroCount}]}>0

be correct? Note that XTHaterCount was conventiently just added! (Mar 11 2018 - Added XTHaterCount as the number of mob on xtarget with AUTO-HATER)

My understanding is that ${Me.XTAggroCount[50]}]} will return all mobs between 50% and 100%.

If you want to know what mobs are at 100% then this should work:

Rich (BB code):
${Math.Calc[${Me.XTAggroCount}-${Me.XTAggroCount[99]}]}>0

That should return the number of mobs that you have 100% aggro on.
 
/echo ${Math.Calc[${Me.XTAggroCount}-${Me.XTAggroCount[99]}]}>0 With one or more mobs at < 100% aggro returns 0.00>0


/echo ${Me.XTAggroCount[50]}]} returns 0]}


/echo ${Me.XTAggroCount[50]} With one or more mobs at > 50% and < 100% aggro returns 0

After testing it. Do you get same results?
 
Last edited:
Idea - Improvement to [Agrro] functionality?

Users who are viewing this thread

Back
Top
Cart