Hey guys,
Wondering if anyone can help me. I’m trying to run CDEW’s three macros listed below to extend the default blizz Raid Frame debuffs. However, when I run the three script macros, I get the error listed at the bottom of this thread.
See below:
Macros:
/run function sp(f,i) tr=“TOPRIGHT”;f2=f.debuffFrames;s=f2[1]:GetWidth();f3=f2[i];f3:SetSize(s,s);f3:ClearAllPoints();if i>6 then f3:SetPoint(“BOTTOMRIGHT”,f2[i-3],tr,0,0) else f3:SetPoint(tr,f2[1],tr,-(s*(i-3)),0) end end
/run function CBF(f,i) bf=CreateFrame(“Button”,f:GetName()…“Debuff”…i,f,“CompactDebuffTemplate”);bf.baseSize=22;bf:SetSize(f.buffFrames[1]:GetSize()) end;function mv(f) for i=4,12 do sp(f,i) end end
/run function mv3(f) CompactUnitFrame_SetMaxDebuffs(f,12); if not f.debuffFrames[4] then for i=4,12 do CBF(f,i) end end mv(f) end;hooksecurefunc(“CompactUnitFrame_UpdateDebuffs”,function(f) if f:GetName():match(“^Compact”) then mv3(f) end end);
LUA Error:
Message: [string “function mv3(f) CompactUnitFrame_SetMaxDebu…”]:1: hooksecurefunc(): CompactUnitFrame_UpdateDebuffs is not a function
Time: Sat Jan 2 23:23:51 2021
Count: 1
Stack: [string “function mv3(f) CompactUnitFrame_SetMaxDebu…”]:1: hooksecurefunc(): CompactUnitFrame_UpdateDebuffs is not a function
[string “=[C]”]: in functionhooksecurefunc' [string "function mv3(f) CompactUnitFrame_SetMaxDebuffs(f,12); if not f.debuffFrames4 then for i=4,12 do CBF(f,i) end end mv(f) end;hooksecurefunc("CompactUnitFrame_UpdateDebuffs",function(f) if f:GetName():match("^Compact") then mv3(f) end end);"]:1: in main chunk [string "=[C]"]: in functionRunScript’
[string “@Interface\FrameXML\ChatFrame.lua”]:2182: in function?' [string "@Interface\FrameXML\ChatFrame.lua"]:5093: in functionChatEdit_ParseText’
[string “@Interface\FrameXML\ChatFrame.lua”]:4757: in functionChatEdit_SendText' [string "@Interface\FrameXML\ChatFrame.lua"]:3049: in function <Interface\FrameXML\ChatFrame.lua:3042> [string "=[C]"]: in functionUseAction’
[string “@Interface\FrameXML\SecureTemplates.lua”]:345: in functionhandler' [string "@Interface\FrameXML\SecureTemplates.lua"]:654: in functionSecureActionButton_OnClick’
[string “@Interface\FrameXML\ActionButton.lua”]:108: in function <Interface\FrameXML\ActionButton.lua:102>
[string “@Interface\FrameXML\ActionButton.lua”]:144: in function `ActionButtonDown’
[string “ACTIONBUTTON3”]:2: in function <[string “ACTIONBUTTON3”]:1>
Locals:
Thank you!