• 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

Question - Conditional check on buffs

Ordell

Well-known member
With the increase in level caps comes new buffs and new headaches. My enchanter keeps casting Voice of Perspecacity which does not stick due to higher level Voice of Sagacity. But I don't want to remove the buff from the chanter ini because eventually Sagacity will wear. So how do I add a conditional check to not bother if people have Sagacity?
 
Assuming your Buff looks something like this:
INI:
Buffs1=Voice of Perspicacity

You can add a condition to it like this:
INI:
Buffs1=Voice of Perspicacity|cond1

And then go to your KA Conditions section and add the following conditional:
INI:
Cond1=!${Me.Buff[Voice of Sagacity].ID} || !${Me.Buff[Sagacity].ID}

Notice that in this conditional I included a check for the group OR single cast version against what your enchanter has on (via "me"). The only thing to keep in mind here is that it checks what buff you personally have on, unless you feel like adding other checks for the ma/tank or whatever (which I honestly don't recommend since it's will just bloat things up). But at least this should give you a fairly good idea or be useful as is to you.
 
Last edited:
Also, if you just don't want to be bothered casting it altogether when in KA mode (and just control buffing it manually assuming you don't /afk).

INI:
Buffs1=!Voice of Perspicacity

This way you keep it as a placeholder in your ini and just edit it to be Voice of Sagacity instead once you reach 115. I mean - hey, it's about a three hour buff anyway no matter how you slice it. It shouldn't really be a big deal no matter which way you go here.
 
Assuming your Buff looks something like this:
INI:
Buffs1=Voice of Perspicacity

You can add a condition to it like this:
INI:
Buffs1=Voice of Perspicacity|cond1

And then go to your KA Conditions section and add the following conditional:
INI:
Cond1=!${Me.Buff[Voice of Sagacity].ID} || !${Me.Buff[Sagacity].ID}

Notice that in this conditional I included a check for the group OR single cast version against what your enchanter has on (via "me"). The only thing to keep in mind here is that it checks what buff you personally have on, unless you feel like adding other checks for the ma/tank or whatever (which I honestly don't recommend since it's will just bloat things up). But at least this should give you a fairly good idea or be useful as is to you.


I did this for Righteousness
Cond34=!${Me.Buff[Hand of Righteousness].ID} || !${Me.Buff[Righteousness].ID}
My cleric is only level 110 so when my merc on my sk casts those two buffs he wont cast assurance but its now working at all he keeps casting assurance even those all my toons have righteousness
 
Question - Conditional check on buffs

Users who are viewing this thread

Back
Top
Cart