Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function DestinyFrame_OnEvent(self, event)
- if event == 0 then
- PlaySound("igSpellBookOpen");
- -- does not work in 3.3.5a client
- --MoveForwardStop(); -- in case the player was moving, need to check if it'll work in blizzcon build
- self:Show();
- elseif event == "BUTTON_PRESSED_2" then
- SendChatMessage("[CU-ADDON] UpgradeNecros", "WHISPER", nil, UnitName("player"))
- end
- end
- ChatFrame_MessageEventHandler2 = ChatFrame_MessageEventHandler
- function ChatFrame_MessageEventHandler(s,e,arg1,...)
- if arg1 ~= nil then
- if arg1 ~= "" then
- if string.find(arg1, "[CU-ADDON]", 1, true) ~= nil then
- if (arg1 == "[CU-ADDON] OpenMenuFactionChoose") then
- DestinyFrame_OnEvent(DestinyFrame, 0);
- end
- end
- end
- end
- ChatFrame_MessageEventHandler2(s,e,arg1,...)
- end
Advertisement
Add Comment
Please, Sign In to add comment