• 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 - Check for songs (HOT spells) on players besides myself?

Using a shammy to PL my tank
I would like to check if a PC but not me has a certain HOT spell on. If not I would like to cast it.

The problem is that I do not know how to check target song window.

This works fine:
Rich (BB code):
/if (!$Target.Buff[Talisman of the Lion].ID}) /cast "Talisman of the Lion"
because Lion goes into regular buffs

This does not work:
Rich (BB code):
/if (!$Target.Buff[Halcyon Breath].ID}) /cast "Halcyon Breath"
because Breath goes into song window

So I tried:
Rich (BB code):
/if (!$Target.Song[Halcyon Breath].ID}) /cast "Halcyon Breath"
but 'target' has no member 'Song'


The workaround has been to use group HOT and check my own songs.

Rich (BB code):
/if (!(${Me.Song[Phantom of Renewal]} /cast "Phantom of Renewal"

Still this is not optimal as the group HOT costs more mana and heals less per tick.

http://www.redguides.com/docs/projects/macroquest/reference/data-types/datatype-target/ only lists buffs not songs, so maybe there is no way?
 
What I think most do is setup a timer that counts down to zero, or an event that traps for the worn off message. if you use the spell[Phantom of Renewal].Duration which will return the number of ticks. I think a tick is 6 seconds so your timer should be set to something like (Duration - 1) * 6 seconds then in your /if () statement just check for !${TimerVar}.

I am being a little vague, but thats only because I see from above you have enough experience coding with MQ2 to figureout what I am trying to explain, if not please forgive me.

ctaylor
 
Thanks, yeah, timer would be one option.

I think this is how I used to do it some years ago.

My first thought was to set an event on buffer pc waiting for a tell from the target pc who can check its own songs but that would needlessly complicate things.

As you mention checking for the worn off message would be a simpler alternative. I do remember that events had a tendency to miss sometimes so timer might be safer.

I have not done anything fancy with MQ for a long time so trying to keep things simple.
 
If you want to keep it simple then Timer is the way to go. I am in the same boat as you when it comes to being away from MQ, I just returned recently and am slowly getting back into it. Good Luck and let me know if I can be of any assistance.
 
Question - Check for songs (HOT spells) on players besides myself?

Users who are viewing this thread

Back
Top
Cart