vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | IMBA_NOTH_AGGRO_YELL1 = "Your life is forfeit!" |
2 | IMBA_NOTH_AGGRO_YELL2 = "Glory to the master!" |
||
3 | IMBA_NOTH_AGGRO_YELL3 = "Die, trespasser!" |
||
4 | IMBA_NOTH_DEATH_MSG = "I will serve the master... in death!" |
||
5 | |||
6 | IMBA_NOTH_BLINK_TIME = 35 |
||
7 | IMBA_NOTH_BLINK_MSG = "Noth the Plaguebringer gains Blink." |
||
8 | |||
9 | IMBA_NOTH_CURSE_TIME = 50 |
||
10 | IMBA_NOTH_CURSE_MSG = "is afflicted by Curse of the Plaguebringer." |
||
11 | |||
12 | IMBA_NOTH_GROUND_TIME = {90, 110, 180}; |
||
13 | IMBA_NOTH_BALCONY_TIME = {70, 95, 120}; |
||
14 | |||
15 | if (GetLocale()=="frFR") then |
||
16 | --Translation by A.su.K.A |
||
17 | IMBA_NOTH_AGGRO_YELL1 = "Vos vies ne valent plus rien !" |
||
18 | IMBA_NOTH_AGGRO_YELL2 = "Gloire au ma\195\174tre !" |
||
19 | IMBA_NOTH_AGGRO_YELL3 = "Mourez, intrus !" |
||
20 | IMBA_NOTH_DEATH_MSG = "Je servirais le ma\195\174tre... dans la mort!" |
||
21 | |||
22 | |||
23 | IMBA_NOTH_BLINK_MSG = "Noth le Porte%-peste gagne Transfert." |
||
24 | |||
25 | IMBA_NOTH_CURSE_MSG = "les effets de Mal\195\169diction de Porte%-peste." |
||
26 | end |
||
27 | |||
28 | function IMBA_Noth_StartGroundTimer() |
||
29 | IMBA_Noth_TimerBalconyTime:SetBarText("Time on Ground"); |
||
30 | IMBA_Noth_TimerBalconyTime:StartTimer(IMBA_NOTH_GROUND_TIME[IMBA_Noth_Phase],false,IMBA_Noth_StartBalconyTimer) |
||
31 | end |
||
32 | |||
33 | function IMBA_Noth_StartBalconyTimer() |
||
34 | IMBA_Noth_TimerBalconyTime:SetBarText("Time on Balcony"); |
||
35 | IMBA_Noth_TimerBalconyTime:StartTimer(IMBA_NOTH_BALCONY_TIME[IMBA_Noth_Phase],false,IMBA_Noth_StartGroundTimer) |
||
36 | IMBA_Noth_Phase=IMBA_Noth_Phase+1; |
||
37 | |||
38 | if(IMBA_Noth_Phase>3) then |
||
39 | IMBA_Noth_Phase=3; |
||
40 | end |
||
41 | end |
||
42 | |||
43 | function IMBA_Noth_Start() |
||
44 | IMBA_Noth_TimerBlink:StartTimer(IMBA_NOTH_BLINK_TIME); |
||
45 | IMBA_Noth_Phase=1; |
||
46 | IMBA_Noth_StartGroundTimer(); |
||
47 | end |
||
48 | |||
49 | function IMBA_Noth_YellActivator(arg1) |
||
50 | if string.find(arg1,IMBA_NOTH_AGGRO_YELL1) then |
||
51 | IMBA_Noth_Start(); |
||
52 | IMBA_Noth:Show(); |
||
53 | return true; |
||
54 | elseif string.find(arg1,IMBA_NOTH_AGGRO_YELL2) then |
||
55 | IMBA_Noth_Start(); |
||
56 | IMBA_Noth:Show(); |
||
57 | return true; |
||
58 | elseif string.find(arg1,IMBA_NOTH_AGGRO_YELL3) then |
||
59 | IMBA_Noth_Start(); |
||
60 | IMBA_Noth:Show(); |
||
61 | return true; |
||
62 | end |
||
63 | return false; |
||
64 | end |
||
65 | |||
66 | function IMBA_Noth_RegisterEvents() |
||
67 | this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_CREATURE_BUFFS"); |
||
68 | this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_PARTY_DAMAGE"); |
||
69 | this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_DAMAGE"); |
||
70 | this:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_SELF_DAMAGE"); |
||
71 | this:RegisterEvent("CHAT_MSG_MONSTER_YELL"); |
||
72 | end |
||
73 | |||
74 | function IMBA_Noth_UnregisterEvents() |
||
75 | this:UnregisterEvent("CHAT_MSG_MONSTER_YELL"); |
||
76 | this:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_PARTY_DAMAGE"); |
||
77 | this:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_DAMAGE"); |
||
78 | this:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_SELF_DAMAGE"); |
||
79 | this:UnregisterEvent("CHAT_MSG_SPELL_PERIODIC_CREATURE_BUFFS"); |
||
80 | end |
||
81 | |||
82 | function IMBA_Noth_OnLoad() |
||
83 | this:SetBackdropBorderColor(1, 1, 1, 1); |
||
84 | this:SetBackdropColor(0.0,0.0,0.0,0.6); |
||
85 | |||
86 | |||
87 | IMBA_Noth_Title:SetText("Noth Timers"); |
||
88 | |||
89 | IMBA_Noth_TimerBlink:SetBarText("Blink"); |
||
90 | IMBA_Noth_TimerCurse:SetBarText("Curse"); |
||
91 | IMBA_Noth_TimerBalconyTime:SetBarText("Time on Ground"); |
||
92 | |||
93 | IMBA_AddAddon("Noth the Plaguebringer", "Timers for Blink, Curse, and Ground/Balcony Time", IMBA_LOCATIONS_NAXX_PLAGUE, nil, "IMBA_Noth_YellActivator",IMBA_NOTH_AGGRO_YELL1,"IMBA_Noth"); |
||
94 | end |
||
95 | |||
96 | |||
97 | |||
98 | function IMBA_Noth_OnEvent(event) |
||
99 | if event == "CHAT_MSG_MONSTER_YELL" then |
||
100 | if arg1 == IMBA_NOTH_DEATH_MSG then |
||
101 | IMBA_Noth_TimerBlink.active=false; |
||
102 | IMBA_Noth_TimerCurse.active=false; |
||
103 | IMBA_Noth_TimerBalconyTime.active=false; |
||
104 | end |
||
105 | elseif ( event == "CHAT_MSG_SPELL_PERIODIC_CREATURE_BUFFS" ) then |
||
106 | if arg1==IMBA_NOTH_BLINK_MSG then |
||
107 | IMBA_Noth_TimerBlink:StartTimer(IMBA_NOTH_BLINK_TIME); |
||
108 | end |
||
109 | elseif ( event == "CHAT_MSG_SPELL_PERIODIC_PARTY_DAMAGE" or event == "CHAT_MSG_SPELL_PERIODIC_FRIENDLYPLAYER_DAMAGE" or event == "CHAT_MSG_SPELL_PERIODIC_SELF_DAMAGE" ) then |
||
110 | if string.find(arg1,IMBA_NOTH_CURSE_MSG) then |
||
111 | IMBA_Noth_TimerCurse:StartTimer(IMBA_NOTH_CURSE_TIME); |
||
112 | end |
||
113 | end |
||
114 | end |