#Maccro + WA
29 messages · Page 1 of 1 (latest)
you mean modify the macro mid fight ?

it could create a glow on the unitframe though so you'd just need to mouseover cast pi
I think he means more like at the start of the dungeon
from what it looks like in that screenshot there
but does it really make sense just locking on a target once ? as most of the time it is situational to give pi no ?
99% of people dont care
but if it's your goal to just edit once then yes it works
and if its a 2min class, then it fits anyways
what's the wa you use there
it's not midfight, it's before the dj
yes exactly
local macroText = "#showtooltip Power Infusion\n/use Elemental Potion of Ultimate Power\n/cast [@%s,help,nodead][] Power Infusion\n/cast Blood Fury(Racial)\n/cast Void Bolt\n/cast Vampiric Embrace"
local macroIndex = 1
local macroID = EditMacro(macroIndex, nil, nil, string.format(macroText, "playerNameHere"))
you just need to get the macroIndex and change the 1 to your id from the macroIndex Variable and then just put the name at "playerNameHere"
https://wago.io/v6lc9KZHK I use this one
ok ill check tyh
macroIndex = macro name ?
no macro index = macro index
get the addon IDTIP
or type following in chat /dump GetMacroIndexByName("Your Macro Name Here")
IdTip is always great to have though not only for macro Ids
alright ty
mh I tried to figure it out but I couldn't, im too noob at it
my macro isn't getting modified, I tried to tweak it a bit but I couldn't figure it out
local macroText = "#showtooltip Power Infusion\n/use Elemental Potion of Ultimate Power\n/cast [@%s,help,nodead][] Power Infusion\n/cast Blood Fury(Racial)\n/cast Void Bolt\n/cast Vampiric Embrace"
local macroIndex = 20
local function UpdateMacro(playerName)
EditMacro(macroIndex, nil, nil, string.format(macroText, playerName))
end
local function OnChatMessage(self, event, msg, sender, ...)
-- Extract the player name from the chat message
local playerName = string.match(msg, "pi2")
if playerName then
UpdateMacro(playerName)
end
end
local frame = CreateFrame("Frame")
frame:RegisterEvent("CHAT_MSG_PARTY")
frame:SetScript("OnEvent", OnChatMessage)
Afaik weakauras have disabled the EditMacro function to avoid scams etc
I have a secondary macro that i press that swaps my pi macro to whatever my mouseover is, so if you are ok with looking at what your WA outputted and do it manually with mouseover + macro press thats the way
yes sure that would be a nice one aswell