vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | ------------------------------ |
2 | -- Are you local? -- |
||
3 | ------------------------------ |
||
4 | |||
5 | local boss = AceLibrary("Babble-Boss-2.2")["Bloodlord Mandokir"] |
||
6 | local L = AceLibrary("AceLocale-2.2"):new("BigWigs"..boss) |
||
7 | |||
8 | ---------------------------- |
||
9 | -- Localization -- |
||
10 | ---------------------------- |
||
11 | |||
12 | L:RegisterTranslations("enUS", function() return { |
||
13 | cmd = "Mandokir", |
||
14 | |||
15 | you_cmd = "you", |
||
16 | you_name = "You're being watched alert", |
||
17 | you_desc = "Warn when you're being watched", |
||
18 | |||
19 | other_cmd = "other", |
||
20 | other_name = "Others being watched alert", |
||
21 | other_desc = "Warn when others are being watched", |
||
22 | |||
23 | icon_cmd = "icon", |
||
24 | icon_name = "Raid icon on watched", |
||
25 | icon_desc = "Puts a raid icon on the watched person", |
||
26 | |||
27 | watch_trigger = "([^%s]+)! I'm watching you!$", |
||
28 | enrage_trigger = "goes into a rage after seeing his raptor fall in battle!$", |
||
29 | |||
30 | watched_warning_self = "You are being watched!", |
||
31 | watched_warning_other = "%s is being watched!", |
||
32 | enraged_message = "Ohgan down! Mandokir enraged!", |
||
33 | } end ) |
||
34 | |||
35 | L:RegisterTranslations("frFR", function() return { |
||
36 | you_name = "Alerte quand vous \195\170tes surveill\195\169", |
||
37 | you_desc = "Pr\195\169viens lorsque vous \195\170tes surveill\195\169.", |
||
38 | |||
39 | other_name = "Alerte quand d'autres sont surveill\195\169s", |
||
40 | other_desc = "Pr\195\169viens quand d'autres joueurs sont surveill\195\169s.", |
||
41 | |||
42 | icon_name = "Ic\195\180ne de raid", |
||
43 | icon_desc = "Place une ic\195\180ne de raid sur la derni\195\168re personne surveill\195\169e (requiert d'\195\170tre promus ou plus)", |
||
44 | |||
45 | watch_trigger = "([^%s]+), je vous ai à l'œil !", |
||
46 | enrage_trigger = "devient fou furieux en voyant son raptor mourir durant le combat !", |
||
47 | |||
48 | watched_warning_self = "Tu es surveill\195\169 !", |
||
49 | watched_warning_other = "%s est surveill\195\169 !", |
||
50 | enraged_message = "Ohgan est mort ! Mandokir enrag\195\169 !", |
||
51 | } end ) |
||
52 | |||
53 | L:RegisterTranslations("deDE", function() return { |
||
54 | you_name = "Du wirst beobachtet", |
||
55 | you_desc = "Warnung, wenn Du beobachtet wirst.", |
||
56 | |||
57 | other_name = "X wird beobachtet", |
||
58 | other_desc = "Warnung, wenn andere Spieler beobachtet werden.", |
||
59 | |||
60 | icon_name = "Symbol", |
||
61 | icon_desc = "Platziert ein Symbol \195\188ber dem Spieler der beobachtet wird. (Ben\195\182tigt Anf\195\188hrer oder Bef\195\182rdert Status.)", |
||
62 | |||
63 | watch_trigger = "([^%s]+)! Ich behalte Euch im Auge!$", |
||
64 | enrage_trigger = "%s ger\195\164t in Rage, als er sieht, dass sein Raptor im Kampf stirbt!", |
||
65 | |||
66 | watched_warning_self = "Du wirst beobachtet!", |
||
67 | watched_warning_other = "%s wird beobachtet!", |
||
68 | enraged_message = "Ohgan get\195\182tet! Mandokir w\195\188tend!", |
||
69 | } end ) |
||
70 | |||
71 | L:RegisterTranslations("zhCN", function() return { |
||
72 | you_name = "玩家被盯警报", |
||
73 | you_desc = "你被血领主盯上时发出警报", |
||
74 | |||
75 | other_name = "队友被盯警报", |
||
76 | other_desc = "队友被血领主盯上时发出警报", |
||
77 | |||
78 | icon_name = "标记被盯上的玩家", |
||
79 | icon_desc = "团队标记被盯上的玩家", |
||
80 | |||
81 | watch_trigger = "(.+)!我正在看着你!$", |
||
82 | enrage_trigger = "怒不可遏!$", |
||
83 | |||
84 | watched_warning_self = "你被盯上了 - 停止一切动作!", |
||
85 | watched_warning_other = "%s被盯上了!", |
||
86 | enraged_message = "奥根死了!血领主进入激怒状态!", |
||
87 | } end ) |
||
88 | |||
89 | |||
90 | L:RegisterTranslations("zhTW", function() return { |
||
91 | -- Bloodlord Mandokir 血領主曼多基爾 |
||
92 | you_name = "玩家被盯警報", |
||
93 | you_desc = "你被血領主盯上時發出警報", |
||
94 | |||
95 | other_name = "隊友被盯警報", |
||
96 | other_desc = "隊友被血領主盯上時發出警報", |
||
97 | |||
98 | icon_name = "標記被盯上的玩家", |
||
99 | icon_desc = "團隊標記被盯上的玩家", |
||
100 | |||
101 | watch_trigger = "(.+)!我正在監視你!$", |
||
102 | enrage_trigger = "勃然大怒!$", |
||
103 | |||
104 | watched_warning_self = "你被盯上了!停止一切動作!", |
||
105 | watched_warning_other = "%s被盯上了!", |
||
106 | enraged_message = "奧根死了!血領主進入狂怒!", |
||
107 | } end ) |
||
108 | |||
109 | L:RegisterTranslations("koKR", function() return { |
||
110 | you_name = "자신 경고", |
||
111 | you_desc = "자신을 보고 있을 때 경고", |
||
112 | |||
113 | other_name = "타인 경고", |
||
114 | other_desc = "타인을 보고 있을 때 경고", |
||
115 | |||
116 | icon_name = "보고있을 때 아이콘 표시", |
||
117 | icon_desc = "보고 있는 사람에게 아이콘 표시", |
||
118 | |||
119 | watch_trigger = "(.+)! 널 지켜보고 있겠다!", |
||
120 | enrage_trigger = "전장에서 자신의 랩터가 쓰러지는 모습을 보자 분노에 휩싸입니다!", |
||
121 | |||
122 | watched_warning_self = "당신을 지켜보고 있습니다 - 모든 동작 금지!", |
||
123 | watched_warning_other = "%s님을 지켜봅니다!", |
||
124 | enraged_message = "오간이 죽자, 만도키르가 분노합니다.", |
||
125 | } end ) |
||
126 | |||
127 | ---------------------------------- |
||
128 | -- Module Declaration -- |
||
129 | ---------------------------------- |
||
130 | |||
131 | BigWigsMandokir = BigWigs:NewModule(boss) |
||
132 | BigWigsMandokir.zonename = AceLibrary("Babble-Zone-2.2")["Zul'Gurub"] |
||
133 | BigWigsMandokir.enabletrigger = boss |
||
134 | BigWigsMandokir.toggleoptions = {"you", "other", "icon", "bosskill"} |
||
135 | BigWigsMandokir.revision = tonumber(string.sub("$Revision: 16639 $", 12, -3)) |
||
136 | |||
137 | ------------------------------ |
||
138 | -- Initialization -- |
||
139 | ------------------------------ |
||
140 | |||
141 | function BigWigsMandokir:OnEnable() |
||
142 | self:RegisterEvent("CHAT_MSG_MONSTER_EMOTE") |
||
143 | self:RegisterEvent("CHAT_MSG_MONSTER_YELL") |
||
144 | self:RegisterEvent("CHAT_MSG_COMBAT_HOSTILE_DEATH", "GenericBossDeath") |
||
145 | end |
||
146 | |||
147 | ------------------------------ |
||
148 | -- Events -- |
||
149 | ------------------------------ |
||
150 | |||
151 | function BigWigsMandokir:CHAT_MSG_MONSTER_EMOTE(msg) |
||
152 | if string.find(msg, L["enrage_trigger"]) then |
||
153 | self:TriggerEvent("BigWigs_Message", L["enraged_message"], "Urgent") |
||
154 | end |
||
155 | end |
||
156 | |||
157 | function BigWigsMandokir:CHAT_MSG_MONSTER_YELL(msg) |
||
158 | local _,_, n = string.find(msg, L["watch_trigger"]) |
||
159 | if n then |
||
160 | if n == UnitName("player") and self.db.profile.you then |
||
161 | self:TriggerEvent("BigWigs_Message", L["watched_warning_self"], "Personal", true, "Alarm") |
||
162 | self:TriggerEvent("BigWigs_Message", string.format(L["watched_warning_other"], UnitName("player")), "Attention", nil, nil, true) |
||
163 | elseif self.db.profile.other then |
||
164 | self:TriggerEvent("BigWigs_Message", string.format(L["watched_warning_other"], n), "Attention") |
||
165 | self:TriggerEvent("BigWigs_SendTell", n, L["watched_warning_self"]) |
||
166 | end |
||
167 | if self.db.profile.icon then |
||
168 | self:TriggerEvent("BigWigs_SetRaidIcon", n) |
||
169 | end |
||
170 | end |
||
171 | end |
||
172 |