vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 ------------------------------
2 -- Are you local? --
3 ------------------------------
4  
5 local boss = AceLibrary("Babble-Boss-2.2")["Emeriss"]
6 local L = AceLibrary("AceLocale-2.2"):new("BigWigs"..boss)
7  
8 ----------------------------
9 -- Localization --
10 ----------------------------
11  
12 L:RegisterTranslations("enUS", function() return {
13 cmd = "Emeriss",
14  
15 noxious_cmd = "noxious",
16 noxious_name = "Noxious breath alert",
17 noxious_desc = "Warn for noxious breath",
18  
19 volatileyou_cmd = "volatileyou",
20 volatileyou_name = "Voltile infection on you alert",
21 volatileyou_desc = "Warn for volatile infection on you",
22  
23 volatileother_cmd = "volatileother",
24 volatileother_name = "Volatile infection on others alert",
25 volatileother_desc = "Warn for volatile infection on others",
26  
27 trigger1 = "^([^%s]+) ([^%s]+) afflicted by Volatile Infection",
28 trigger2 = "afflicted by Noxious Breath",
29  
30 warn1 = "You are afflicted by Volatile Infection!",
31 warn2 = " is afflicted by Volatile Infection!",
32 warn3 = "5 seconds until Noxious Breath!",
33 warn4 = "Noxious Breath - 30 seconds till next!",
34  
35 isyou = "You",
36 isare = "are",
37  
38 bar1text = "Noxious Breath",
39  
40 } end )
41  
42 L:RegisterTranslations("frFR", function() return {
43 noxious_name = "Alerte Souffle naus\195\169abond",
44 noxious_desc = "Pr\195\169viens quand Emeriss fait son Souffle naus\195\169abond.",
45  
46 volatileyou_name = "Alerte Infection volatile sur vous",
47 volatileyou_desc = "Pr\195\169viens quand vous \195\170tes touch\195\169 par l'Infection volatile.",
48  
49 volatileother_name = "Alerte Infection volatile sur les autres",
50 volatileother_desc = "Pr\195\169viens quand les autres sont touch\195\169s par l'Infection volatile.",
51  
52 trigger1 = "^([^%s]+) ([^%s]+) les effets de Infection volatile.",
53 trigger2 = "les effets de Souffle naus\195\169abond.",
54  
55 warn1 = "Tu es infect\195\169 !",
56 warn2 = " est infect\195\169 !",
57 warn3 = "5 secondes avant le Souffle naus\195\169abond !",
58 warn4 = "Souffle naus\195\169abond - 30 secondes avant le suivant !",
59  
60 isyou = "Vous",
61 isare = "subissez",
62  
63 bar1text = "Souffle naus\195\169abond",
64 } end )
65  
66 L:RegisterTranslations("deDE", function() return {
67 noxious_name = "Giftiger Atem",
68 noxious_desc = "Warnung vor Giftiger Atem.",
69  
70 volatileyou_name = "Fl\195\188chtige Infektion",
71 volatileyou_desc = "Warnung, wenn Fl\195\188chtige Infektion auf Dir.",
72  
73 volatileother_name = "Fl\195\188chtige Infektion auf Anderen",
74 volatileother_desc = "Warnung, wenn Fl\195\188chtige Infektion auf anderen Spielern.",
75  
76 trigger1 = "^([^%s]+) ([^%s]+) von Fl\195\188chtige Infektion betroffen",
77 trigger2 = "von Giftiger Atem betroffen",
78  
79 warn1 = "Du bist von Fl\195\188chtige Infektion betroffen!",
80 warn2 = " ist von Fl\195\188chtiger Infektion betroffen!",
81 warn3 = "5 Sekunden bis Giftiger Atem!",
82 warn4 = "Giftiger Atem! - N\195\164chster in 30 Sekunden!",
83  
84 isyou = "Ihr",
85 isare = "seid",
86  
87 bar1text = "Giftiger Atem",
88  
89 } end )
90  
91 L:RegisterTranslations("zhCN", function() return {
92 noxious_name = "毒性吐息警报",
93 noxious_desc = "毒性吐息警报",
94  
95 volatileyou_name = "玩家快速传染警报",
96 volatileyou_desc = "你中了快速传染时发出警报",
97  
98 volatileother_name = "队友快速传染警报",
99 volatileother_desc = "队友中了快速传染时发出警报",
100  
101 trigger1 = "^(.+)受(.+)了快速传染效果",
102 trigger2 = "受到了毒性吐息效果的影响。",
103  
104 warn1 = "你中了快速传染!",
105 warn2 = "中了快速传染!",
106 warn3 = "5秒后发动毒性吐息!",
107 warn4 = "毒性吐息 - 30秒后再次发动",
108  
109 isyou = "你",
110 isare = "到",
111  
112 bar1text = "毒性吐息",
113 } end )
114  
115 L:RegisterTranslations("zhTW", function() return {
116 noxious_name = "毒性吐息警報",
117 noxious_desc = "毒性吐息警報",
118  
119 volatileyou_name = "玩家快速傳染警報",
120 volatileyou_desc = "你中了快速傳染時發出警報",
121  
122 volatileother_name = "隊友快速傳染警報",
123 volatileother_desc = "隊友中了快速傳染時發出警報",
124  
125 trigger1 = "^(.+)受到(.*)快速傳染效果的影響。",
126 trigger2 = "受到了毒性吐息效果的影響。",
127  
128 warn1 = "你中了快速傳染!",
129 warn2 = "中了快速傳染!",
130 warn3 = "5秒後發動毒性吐息!",
131 warn4 = "毒性吐息 - 30秒後再次發動",
132  
133 isyou = "你",
134 isare = "了",
135  
136 bar1text = "毒性吐息",
137 } end )
138  
139 L:RegisterTranslations("koKR", function() return {
140  
141 noxious_name = "산성 숨결 경고",
142 noxious_desc = "산성 숨결에 대한 경고",
143  
144 volatileyou_name = "자신의 대지의 오염 경고",
145 volatileyou_desc = "자신의 대지의 오염에 대한 경고",
146  
147 volatileother_name = "타인의 대지의 오염 경고",
148 volatileother_desc = "타인의 대지의 오염에 대한 경고",
149  
150 trigger1 = "^([^|;%s]*)(.*)대지의 오염에 걸렸습니다%.$",
151 trigger2 = "에메리스의 산성 숨결에 의해",
152  
153 warn1 = "당신은 대지의 오염에 걸렸습니다!",
154 warn2 = "님이 대지의 오염에 걸렸습니다!",
155 warn3 = "5초후 산성 숨결!",
156 warn4 = "산성 숨결 - 30초후 재시전!",
157  
158 isyou = "",
159 isare = "",
160  
161 bar1text = "산성 숨결",
162 } end )
163  
164 ----------------------------------
165 -- Module Declaration --
166 ----------------------------------
167  
168 BigWigsEmeriss = BigWigs:NewModule(boss)
169 BigWigsEmeriss.zonename = {
170 AceLibrary("AceLocale-2.2"):new("BigWigs")["Outdoor Raid Bosses Zone"],
171 AceLibrary("Babble-Zone-2.2")["Blasted Lands"],
172 AceLibrary("Babble-Zone-2.2")["Duskwood"],
173 AceLibrary("Babble-Zone-2.2")["The Hinterlands"],
174 AceLibrary("Babble-Zone-2.2")["Feralas"]
175 }
176 BigWigsEmeriss.enabletrigger = boss
177 BigWigsEmeriss.toggleoptions = {"noxious", "volatileyou", "volatileother", "bosskill"}
178 BigWigsEmeriss.revision = tonumber(string.sub("$Revision: 16941 $", 12, -3))
179  
180 ------------------------------
181 -- Initialization --
182 ------------------------------
183  
184 function BigWigsEmeriss:OnEnable()
185 self:RegisterEvent("BigWigs_Message")
186 self:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_DAMAGE", "Event")
187 self:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_PARTY_DAMAGE", "Event")
188 self:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_SELF_DAMAGE", "Event")
189 self:RegisterEvent("CHAT_MSG_COMBAT_HOSTILE_DEATH", "GenericBossDeath")
190 end
191  
192 function BigWigsEmeriss:Event( msg )
193 if (not self.prior and string.find(msg, L["trigger2"])) then
194 self.prior = true
195 if self.db.profile.noxious then
196 self:TriggerEvent("BigWigs_Message", L["warn4"], "Important")
197 self:ScheduleEvent("BigWigs_Message", 25, L["warn3"], "Important")
198 self:TriggerEvent("BigWigs_StartBar", self, L["bar1text"], 30, "Interface\\Icons\\Spell_Shadow_LifeDrain02")
199 end
200 else
201 local _,_, EPlayer, EType = string.find(msg, L["trigger1"])
202 if (EPlayer and EType) then
203 if (EPlayer == L["isyou"] and EType == L["isare"]) then
204 if self.db.profile.volatileyou then self:TriggerEvent("BigWigs_Message", L["warn1"], "Important", true) end
205 else
206 if self.db.profile.volatileother then
207 self:TriggerEvent("BigWigs_Message", EPlayer .. L["warn2"], "Attention")
208 self:TriggerEvent("BigWigs_SendTell", EPlayer, L["warn1"])
209 end
210 end
211 end
212 end
213 end
214  
215 function BigWigsEmeriss:BigWigs_Message(text)
216 if text == L["warn3"] then self.prior = nil end
217 end