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

Joined
Nov 7, 2005
RedCents
1,471¢
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