View Single Post
10-15-17, 03:10 AM   #1
Mandraxon
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jul 2009
Posts: 21
Can this be Turnd to ingame script.

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:
  1. local frame = CreateFrame("FRAME")
  2. frame:RegisterEvent("UNIT_AURA")
  3.  
  4. frame:SetScript("OnEvent", function(self, event, ...)
  5. local unitid = ... if unitid ~= "player" then return end
  6.  
  7. if UnitBuff("player", "Nightfall") then
  8. SpellActivationOverlay_ShowOverlay(SpellActivationOverlayFrame, 248814, "TEXTURES\\SPELLACTIVATIONOVERLAYS\\GENERICTOP_01.BLP", "TOP", 1.2, 139, 65, 239, false, false)
  9. else
  10. SpellActivationOverlay_HideOverlays(SpellActivationOverlayFrame, 248814)
  11. end
  12. end)

can i make a ingame macro of it?

/M
  Reply With Quote