This site makes extensive use of JavaScript.
Please
enable JavaScript
in your browser.
Live
PTR
Beta
Classic
Useful Sneaky or Complicated Macros
Post Reply
Return to board index
Post by
Wanderingfox
I still have problems thinking outside the bun.
You butter have that looked at then...
Post by
pelf
Cheesy Gordita Crunch FTW.
Post by
TheReal
I
<3
you guys. And cheesy gordita crunches.
Post by
janniie
As I'm pretty lazy It's to much trouble to press ESC everytime I have to log out so I made this macro, very simple but still effective:
/run Logout()
/stopmacro
/run ForceQuit()
Logs you out if pressed, exits game instantly if pressed with modifier :)
Post by
pelf
Neat one.
Post by
Maunotavast
I guess I could put this here, too...
This is for the people who like to spam trade with those fancy tradeskill adverts (Not me. Why did I even make this?)
/run TRMC=TRMC or hooksecurefunc("ChatEdit_ParseText",function(e)e:SetText(gsub(e:GetText(),"%((-)%)",function(p)return select(2,GetSpellLink(p))end))end)or 1
This causes any acceptable (you must have it), parentheses-enclosed profession name to be converted into a tradeskill link. If run through the default chat parser that is (not sure if the presence of a chat addon which possibly uses a custom parse function affects the script, but I think macrotext gets run through the default parser regardless).
So basically, you could do this
/run TRMC=TRMC or hooksecurefunc("ChatEdit_ParseText",function(e)e:SetText(gsub(e:GetText(),"%((-)%)",function(p)return select(2,GetSpellLink(p))end))end)or 1
/2 This is a fun and attractive advertisement for my (cooking) profession.
/2 And for the sake of example, (jewelcrafting).
Okay that won't fit 255 characters but you get the point :P
The script needs only to be run once per session, so if you use Hack or something, you could do the hooking with that instead. If for some reason you don't have access to infinite length macros and need more space, you can use those macro combining tricks described somewhere...
To test if it works without embarras(edit: s)ing yourself, you can create a custom channel by doing /join <random channel name here>
and using that channels number in the /# command.
(And in case anyone asks, you leave the channel by typing /leave <channel name or number>)
If you are using default chat, the script also has the effect of turning the professions into links as you type, so you could just type (<profession name>) in your chat box before trying to use /# commands in the macro.
Post by
pelf
Cool idea! Will add that too.
Post by
pelf
http://www.wowhead.com/forums&topic=151774&p=2503609#p2503609
Say cooldown.
Post by
TheReal
Just wanted to show off my latest creation. I'm leveling my holy priest right now, and I limit myself to 10 keybinds. I wondered if I could macro my damage spells for soloing together with my mouseover heals for instances and include Arcane Torrent (belf racial) in each of them to burn it whenever it's off CD. Here's what I came up with and it works perfectly:
#showtooltip
/stopcasting
/cast Shadow Word: Death
/cast
Just replace my damage/healing spells with the damage/healing spells of your choice.
Edit: Is there something I can do to prevent auto-targeting any mobs that hit me while I have a noob tank?
Post by
pelf
Target what you want to target. The auto-target-when-attacked thing only happens if you have no target.
Post by
curlymon
Conditionals don't work with /run. For modifiers, you need the APIs
IsSiftKeyDown()
, IsControlKeyDown() and IsAltKeyDown(). For buttons you need the API GetMouseButtonClicked(), which returns one of "LeftButton", "MiddleButton", "RightButton", or "ButtonN" where N is 4-15 (for extra mouse buttons).
IsShiftKeyDown()
Post by
Nipah
Conditionals don't work with /run. For modifiers, you need the APIs
IsSiftKeyDown()
, IsControlKeyDown() and IsAltKeyDown(). For buttons you need the API GetMouseButtonClicked(), which returns one of "LeftButton", "MiddleButton", "RightButton", or "ButtonN" where N is 4-15 (for extra mouse buttons).
IsShiftKeyDown()
Damn. And here I thought I could finally complete my baking macro...
Post by
pelf
Wait, I didn't say that...
Also,
http://www.wowhead.com/forums&topic=190126&p=2715465
Post by
767251
This post was from a user who has deleted their account.
Post by
pelf
Yeah. That works if you only have one condition and one effect, for sure.
Post by
HighFive
I like using SecureCmdOptionParse, whenever it shaves off any characters.
Post by
pelf
Haha, you do. Such a fiend. I should add that too.
Maybe when the Guide Writer rank comes out, I'll actually fix this thread up and finish it.
Post by
Maunotavast
Yah, to simulate conditions in /run as in a normal conditionable command you'd do something like...
/run RunScript(SecureCmdOptionParse'print"shift key is down";print"alt key is down";PlaySound"ReadyCheck"')
(Be sure to use either apostrophes or quotation marks for the SecureCmdOptionParse string, and the other for whatever strings you have to define inside it - so you don't have to worry about escaping)
Of course, if you only need certain parameters to change depending on modifiers instead of entire code, there are more imaginative ways of using SecureCmdOptionParse returns.
/run local t=SecureCmdOptionParse'Shiftman;Altman;Ctrlman' if t then SendChatMessage("Hello "..t,"WHISPER",nil,t) end
This would whisper "Hello <name>" to one of the three modifier men depending on which modifier was held at the time (prioritizing shift>alt>ctrl, of course, as in a normal conditional macro).
You could also utilize the second return of SecureCmdOptionParse, which is the target "unit" (if one was specified), for even more
amazingness
(without the need to do any additional parsing by ourselves, that is :p).
/run local m,t=SecureCmdOptionParse"I hate you;I don't like you;Die.;I don't have any friends :("if m then SendChatMessage(m,t and"WHISPER",nil,t)end
Here, we now have personalized messages for the same three fellows, and also a bonus scenario! (Yes the nomod isn't actually required, just threw it in there for clarity :p)
Do unbolded smilies make me look uncool? :p
Post by
HighFive
You are a gentleman and a scholar.
Yay for bending your environment and using it in a way "God" didn't intend.
Yes.
Post by
pelf
Yeah, man. Bolded smileys are the way to go.
Also, thanks for the examples. I'll use em when I get to this beast.
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