This site makes extensive use of JavaScript.
Please
enable JavaScript
in your browser.
Live
PTR
Beta
Classic
Two macro questions
Post Reply
Return to board index
Post by
Sarilyn
I've been idly toying with these ideas for a while, but can't quite get either to work. I've looked through the API on the wiki, with no success (but please feel free to point out something I've missed).
1.
I'd like to be able to say something when casting a buff -- but only if I'm casting a buff on another character. For example, my warlock occasionally gets buffed by other players. Since warlocks don't have a whole lot of buffs available (at least, not that I've found with my level 40 warlock), sometimes I cast Unending Breath on the other player, then say "Here you go, just in case you find some water to fall into." (whether or not you find this as amusing as I do is another topic entirely) If I'm buffing my warlock with Unending Breath, I don't want to say anything at all.
Of course I could assign two separate buttons for this, but I'd like to make it one button. I have not, however, been able to say something conditionally. If I just try "/say Here you go" it puts the out into the chat message.
I think that a script would work, but I'm not finding what I want -- is there something like IsSelf() condition? Or TargetIsPlayer() or something?
2.
Is there something like castsequence for emotes?
Every once in a while another player runs up and swipes an ore/herb node that I wanted. A few times, I've done a series where I target the other player, then /gasp, /sigh, /cry, /jk, /wave. But typing that out is tedious... and I think I could just toss all of that into a single macro, but there would be no timing involved. I'd like to be able to pause for a second before the /jk and the /wave -- something I can easily do by waiting to press the button again, but (as I understand it) not at all possible automatically.
Any ideas?
Of course neither of these are very important, but it bugs me that I have something specific that I want to do and I can't even find out if they're feasible or not. I may just be looking in the wrong places.
Post by
327381
This post was from a user who has deleted their account.
Post by
Wanderingfox
Its an ace library. LibAceTimer-3.0 iirc.
Post by
Sarilyn
/cast Unending Breath
/stopmacro
/say blablabla
Use smart casting so you don't need to target yourself to self-buff
It should stop the macro and not say anything if you're targeting nothing (self casting) or an enemy.
The stopmacro idea helped a lot, but I had to change the first conditional to rather than . I already had the auto-self cast option turned on, for the record.
Still, got it working thanks to your note. I was looking at scripting and a whole series of complicated commands, when I was just overlooking one key element.
And thanks for the note on the addon (and naming it, Wanderingfox). I'll check that out when I get a chance.
Post by
327381
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.
© 2021 Fanbyte