hey People.
i am trying to figure out if i can make a code be used as a macro ingame.
this is the code
Lua Code:
local frame = CreateFrame("FRAME")
frame:RegisterEvent("UNIT_AURA")
frame:SetScript("OnEvent", function(self, event, ...)
local unitid = ... if unitid ~= "player" then return end
if UnitBuff("player", "Nightfall") then
SpellActivationOverlay_ShowOverlay(SpellActivationOverlayFrame, 248814, "TEXTURES\\SPELLACTIVATIONOVERLAYS\\GENERICTOP_01.BLP", "TOP", 1.2, 139, 65, 239, false, false)
else
SpellActivationOverlay_HideOverlays(SpellActivationOverlayFrame, 248814)
end
end)
can i make a ingame macro of it?
/M