• 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 - Combat AA sequence, how would you...?

Soandso2

Well-known member
I have several combat AAs that need to be manually activated. The all stack, so I CAN just activate them all at once and get a large, short term, boost in DPS. However, if I would like to just activate one at a time, and not activate the second one until the first one has run its course, and then the third one after the second one has run it's course, how would YOU code this?

Combat AAs
Skill 1: Duration 1 min, reuse 5 min, /alt act 1
Skill 2: Duration 1 min, reuse 6 min, /alt act 2
Skill 3: Duration 1 min, reuse 4 min, /alt act 3

Each AA procs one (or more) "buffs" that either end up in the normal buff window or in the "song" window.
 
If you are looking to spread out the abilities to try and always have something up, use the lower CD abilities first.

With your current example:
Act 3, Act 1, Act 2, 1min nothin, Act 3, 1min nothin, Act 1, 1min nothin, Act 3, Act 2, 1min nothin, Act 1, Act 3, 2min nothin, Act 2, Act 3, Act 1, and on it goes....
 
I have several combat AAs that need to be manually activated. The all stack, so I CAN just activate them all at once and get a large, short term, boost in DPS. However, if I would like to just activate one at a time, and not activate the second one until the first one has run its course, and then the third one after the second one has run it's course, how would YOU code this?

Combat AAs
Skill 1: Duration 1 min, reuse 5 min, /alt act 1
Skill 2: Duration 1 min, reuse 6 min, /alt act 2
Skill 3: Duration 1 min, reuse 4 min, /alt act 3

Each AA procs one (or more) "buffs" that either end up in the normal buff window or in the "song" window.
You can use TLO to check for if the ability is active and if you have other buffs/songs on and use a series of if/else statements to ensure your preferred flow remains entact.
 
If you are looking to spread out the abilities to try and always have something up, use the lower CD abilities first.

With your current example:
Act 3, Act 1, Act 2, 1min nothin, Act 3, 1min nothin, Act 1, 1min nothin, Act 3, Act 2, 1min nothin, Act 1, Act 3, 2min nothin, Act 2, Act 3, Act 1, and on it goes....
That is exactly what I want. I am just not sure how to code this. Was kind of hoping that someone would have some smarty idea on how a function to handle this would look. :)
 
That is exactly what I want. I am just not sure how to code this. Was kind of hoping that someone would have some smarty idea on how a function to handle this would look. :)
Check my response on how to implement this, I haven't provided exact code but should put you in the right direction :)
 
Check my response on how to implement this, I haven't provided exact code but should put you in the right direction :)
Hmmm, you mean simply like so?
Lua:
-- Further up in my code
local me = mq.TLO.Me

-- The function in question. It is called from my main loop, if I am in combat.
local function activateDurationAAs()
  if me.Song("Ton Po's Stance X").ID() == nil and me.Song("Infusion of Thunder VIII").ID() == nil and me.Buff("Spire of the Sensei XII").ID() == nil then
    if me.AltAbilityReady("Ton Po's Stance")() then
      mq.cmd("/alt act 1016")
    elseif me.AltAbilityReady("Infusion of Thunder")() then
      mq.cmd("/alt act 945")
    elseif me.AltAbilityReady("Spire of the Sensei")() then
      mq.cmd("/alt act 1360")
    end
  end
end

I have not yet tested this, but I guess it would work. All I need to do is check if I have ANY of the three buffs/songs. If I do not, then activate them in the sequence I want, if they are ready to use.

Unrelated question
Should I use not with me.Song/Buff.ID() or == nil?
I notice that in my code I use both variants and it runs as intended. But sometimes thing work for the wrong reasons, pure luck or just random chance.
if me.Buff("Whatever").ID() == nil seems to work but so does if not me.Buff("Whatever").ID()

Edit: I looked in my go-to-reference (LeRogue) and changed all if not me.Buff("Whatever").ID() to if me.Buff("Whatever").ID() == nil
However, later I discovered that even LeRogue sometimes uses if not me.Song("whatever").ID() and sometimes if me.Song("whatever").ID == nil

I am confuzled... help? :)
 
Last edited:
Question - Combat AA sequence, how would you...?

Users who are viewing this thread

Back
Top
Cart