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

Soandso2

Well-known member
Joined
Mar 13, 2023
RedCents
937¢
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