Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local y = CreateFrame("Frame")
- y:RegisterEvent("PLAYER_ENTERING_WORLD") -- look below
- -- y:RegisterEvent("ZONE_CHANGED") -- not sure if this is needed or if it works best with PLAYER_ENTERING_WORLD :shrug:
- y:SetScript("OnEvent", function(self, event, ...)
- local _,p=IsInInstance()
- if p=="arena" then
- EditMacro("Horror1", "Horror1", nil, "#show Psychic Horror\n/stopcasting\n/use [@arena1] Psychic Horror;", 1, 1);
- EditMacro("Horror2", "Horror2", nil, "#show Psychic Horror\n/stopcasting\n/use [@arena2] Psychic Horror;", 1, 1);
- EditMacro("Horror3", "Horror3", nil, "#show Psychic Horror\n/stopcasting\n/use [@arena3] Psychic Horror;", 1, 1);
- else
- EditMacro("Horror1", "Horror1", nil, "#show Psychic Horror\n/stopcasting\n/use [@target] Psychic Horror;", 1, 1);
- EditMacro("Horror2", "Horror2", nil, "#show Psychic Horror\n/stopcasting\n/use [@focus] Psychic Horror;", 1, 1);
- EditMacro("Horror3", "Horror3", nil, "#show Psychic Horror\n/stopcasting\n/use [@targettarget] Psychic Horror;", 1, 1);
- end;
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement