Ce site requiert JavaScript pour fonctionner.
Veuillez activer JavaScript dans votre navigateur.
Live
RPT
10.2.7
RPT
10.2.6
Bêta
Sneaky Stuff I Found
Répondre
Retourner à l'index
Publication par
pelf
While looking around in the UI code, I noticed some interesting stuff. You know when you have to put the junk in a macro to suppress errors?
#showtooltip
/console Sound_EnableSFX 0
/cast _____
/run UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
Apparently Blizzard added a shorthand command function for that years ago but never bound it to a slash command for some reason. Here are the two handlers:
-- easier method to turn on/off errors for macros
SlashCmdList = function(msg)
UIErrorsFrame:UnregisterEvent("UI_ERROR_MESSAGE");
SetCVar("Sound_EnableSFX", "0");
end
SlashCmdList = function(msg)
UIErrorsFrame:RegisterEvent("UI_ERROR_MESSAGE");
SetCVar("Sound_EnableSFX", "1");
end
I wrote the following in
_DevPad
to enable them as
/suppresserrors
or
/se
and
/resumeerrors
or
/re
...
local errorsOff = "UI_ERRORS_OFF"
rawset(SlashCmdList, errorsOff, SlashCmdList)
_G = "/suppresserrors"
_G = "/se"
local errorsOn = "UI_ERRORS_ON"
rawset(SlashCmdList, errorsOn, SlashCmdList)
_G = "/restoreerrors"
_G = "/re"
ChatFrame_ImportAllListsToHash()
I never even knew this existed, but
/castglyph
basically lets you script the application of a glyph to a specific slot. The slots are from
1
to
6
like this...
The Glyph UI
There's also a map with some nice slot names; so, you can either specify the slot by number or as
minor
N
or
major
N
.
The syntax is...
/castglyph glyphID|glyphName slotID|slotName
Here are a few more commands I found...
/cancelqueuedspell
which apparently will actually remove the next spell you've queued up in the spell queue. I can't think of what I'd use this for.
/stopspelltarget
will remove the "glowy hand" that is waiting for selection of a target.
And, the last one: when you type
{star}
or
{rt1}
into a chat message, the placeholder is replaced with the appropriate raid icon. It turns out, if you do the same thing using
{group
N
}
or
{g
N
}
, it will print out a list of all the characters in that group with their names class colored. What? How would anyone ever find out about that...
Publication par
Mike
{group
N
}
or
{g
N
}
, it will print out a list of all the characters in that group with their names class colored.
This is awesome. Nice find. Good for raid leading macros.
Répondre
Vous n'êtes pas connecté. Veuillez vous
connecter
pour répondre à ce sujet, ou
vous inscrire
si vous n'avez pas déjà un compte.