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”