Macro Assist - attempting to announce resurrection casting

So I’m using Bindpad to ensure I have enough macro length, and I found two macros in here that I attempted to combine into one but it didn’t work. Looking for assist with the issue:

#showtooltip
/use Ancestral Vision
/run local X if IsInRaid() then X=“RAID” elseif IsInGroup(LE_PARTY_CATEGORY_INSTANCE) then X=“INSTANCE” else X=“PARTY” end
/run if not MyGlobalCheck then MyGlobalCheck={}end local mgc=MyGlobalCheck if not mgc.A then mgc.A = true C_Timer.After(18, function() SendChatMessage(“{star} Mass Rez incoming once combat clears - please don’t pull or release! {star}”, X) mgc.A = false end) end

Error Message Below here
Message: SendChatMessage(): Unknown chat type
Time: Thu Jul 4 13:54:24 2024
Count: 1
Stack: SendChatMessage(): Unknown chat type
[string “=[C]”]: ?
[string “=[C]”]: in function `SendChatMessage’
[string “if not MyGlobalCheck then MyGlobalCheck={}end local mgc=MyGlobalCheck if not mgc.A then mgc.A = true C_Timer.After(18, function() SendChatMessage(”{star} Mass Rez incoming once combat clears - please don’t pull or release! {star}“, “X”) mgc.A = false end) end”]:1: in function <[string “if not MyGlobalCheck then MyGlobalCheck={}e…”]:1>

Locals: (*temporary) = “{star} Mass Rez incoming once combat clears - please don’t pull or release! {star}”
(*temporary) = “X”

/run local X = 1
/run print(X)

will print nil since X is local to its /run. You can move all code in your second /run into the first.

(btw I believe all addons to allow macros greater than 256 character will cease to work in a few weeks on TWW prepatch.)

Thank you. I suppose if the addon is going to cease to work, I need to find a different workaround.

What’s changing?

We almost lost macrotext entirely in TWW which would’ve hurt, but it’s been restored with a couple restrictions: no macrotext over 255 characters, and no chaining macros together to get around that limitation:
SecureActionButtonTemplate no longer supports “macrotext” execution · Issue #552 · Stanzilla/WoWUIBugs · GitHub

From my understanding, in order for addons to have macros with more than 255 characters, you have to set up a secure macrotext.

1 Like