Quantcast WoWInterface: SVN - AchievementGratz - Path Comparison - / Rev 1 and / Rev 2

WoWInterface SVN AchievementGratz

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 1 to Rev 2
    Reverse comparison

Rev 1 → Rev 2

AchievementGratz.lua New file
0,0 → 1,24
-- function sendWhisper volée dans DBM
local function sendWhisper(target, msg)
if type(target) == "number" then
if not BNIsSelf(target) then -- never send BNet whispers to ourselves
BNSendWhisper(target, msg)
return true
end
elseif type(target) == "string" then
-- whispering to ourselves here is okay and somewhat useful for whisper-warnings
SendChatMessage(msg, "WHISPER", nil, target)
return true
end
end
local EventFrame = CreateFrame("Frame","EventFrame",UIParent)
EventFrame:RegisterEvent("CHAT_MSG_ACHIEVEMENT")
EventFrame:RegisterEvent("CHAT_MSG_GUILD_ACHIEVEMENT")
EventFrame:SetScript("OnEvent", function(self,event,...)
local arg1, arg2, arg3, arg4, arg5 = select(1,...);
if ( event == "CHAT_MSG_ACHIEVEMENT" ) then
sendWhisper(arg2, "gg")
elseif ( event == "CHAT_MSG_GUILD_ACHIEVEMENT" ) then
sendWhisper(arg2, "gg")
end
end)
\ No newline at end of file
AchievementGratz.toc New file
0,0 → 1,6
## Interface: 40000
## Title: Achievement Gratz!
## Author: Khiria
## Version: 0.1
 
AchievementGratz.lua
\ No newline at end of file