vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | IMBA_RAZUVIOUS_SHOUT_MSG = "Instructor Razuvious ?'s Disrupting Shout hits" |
2 | IMBA_RAZUVIOUS_SHOUT_TIME = 25.5; |
||
3 | |||
4 | IMBA_RAZUVIOUS_AGGRO_YELL1 = "Do as I taught you!"; |
||
5 | IMBA_RAZUVIOUS_AGGRO_YELL2 = "Show them no mercy!"; |
||
6 | IMBA_RAZUVIOUS_AGGRO_YELL3 = "Sweep the leg... Do you have a problem with that?"; |
||
7 | IMBA_RAZUVIOUS_AGGRO_YELL4 = "The time for practice is over! Show me what you have learned!"; |
||
8 | |||
9 | IMBA_RAZUVIOUS_DEATH_YELL = "An honorable... death."; |
||
10 | |||
11 | if (GetLocale()=="frFR") then |
||
12 | --Translation by A.su.K.A |
||
13 | IMBA_RAZUVIOUS_SHOUT_MSG = "Instructeur Razuvious ?'s Cri perturbant et touche" -- i think just Cri perturbant will work or maybe lance Cri pertubant, i don't know what means ?'s -- |
||
14 | |||
15 | IMBA_RAZUVIOUS_AGGRO_YELL1 = "Faites ce que vous ai appris !"; |
||
16 | IMBA_RAZUVIOUS_AGGRO_YELL2 = "Pas de quartier !"; |
||
17 | IMBA_RAZUVIOUS_AGGRO_YELL3 = "Frappe%-le \195\160 la jambe"; |
||
18 | IMBA_RAZUVIOUS_AGGRO_YELL4 = "Les cours sont termin\195\169s ! Montrez%-moi ce que vous avez appris !"; |
||
19 | |||
20 | IMBA_RAZUVIOUS_DEATH_YELL = "Une mort... honorable."; |
||
21 | end |
||
22 | |||
23 | IMBA_Razuvious_Shout_Lockout=0; |
||
24 | function IMBA_Razuvious_Shouted() |
||
25 | if IMBA_Razuvious_Shout_Lockout<GetTime() then |
||
26 | IMBA_AddRaidAlert("** Razuvious Shouted! **",IMBA_CheckVar("Instructor Razuvious","AnnounceShouts"),IMBA_CheckVar("Instructor Razuvious","AnnounceShouts")); |
||
27 | IMBA_Razuvious_Shout_Lockout=GetTime()+5; |
||
28 | end |
||
29 | end |
||
30 | |||
31 | function IMBA_Razuvious_YellActivator(arg1) |
||
32 | if string.find(arg1,IMBA_RAZUVIOUS_AGGRO_YELL1) or string.find(arg1,IMBA_RAZUVIOUS_AGGRO_YELL2) or string.find(arg1,IMBA_RAZUVIOUS_AGGRO_YELL3) or string.find(arg1,IMBA_RAZUVIOUS_AGGRO_YELL4) then |
||
33 | IMBA_Razuvious_TimerShout:StartTimer(IMBA_RAZUVIOUS_SHOUT_TIME,true,IMBA_Razuvious_Shouted); |
||
34 | IMBA_Razuvious_TimerShout:StartWarningTimer("** Razuvious is shouting in ~5 Seconds **",5,IMBA_CheckVar("Instructor Razuvious","AnnounceShouts"),IMBA_CheckVar("Instructor Razuvious","AnnounceShouts")); |
||
35 | IMBA_Razuvious:Show(); |
||
36 | return true; |
||
37 | end |
||
38 | return false; |
||
39 | end |
||
40 | |||
41 | |||
42 | function IMBA_Razuvious_RegisterEvents() |
||
43 | this:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_CREATURE_DAMAGE"); |
||
44 | this:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_PARTY_DAMAGE"); |
||
45 | this:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_SELF_DAMAGE"); |
||
46 | this:RegisterEvent("CHAT_MSG_MONSTER_YELL"); |
||
47 | end |
||
48 | |||
49 | function IMBA_Razuvious_UnregisterEvents() |
||
50 | this:UnregisterEvent("CHAT_MSG_SPELL_CREATURE_VS_CREATURE_DAMAGE"); |
||
51 | this:UnregisterEvent("CHAT_MSG_SPELL_CREATURE_VS_PARTY_DAMAGE"); |
||
52 | this:UnregisterEvent("CHAT_MSG_SPELL_CREATURE_VS_SELF_DAMAGE"); |
||
53 | this:UnregisterEvent("CHAT_MSG_MONSTER_YELL"); |
||
54 | end |
||
55 | |||
56 | function IMBA_Razuvious_OnLoad() |
||
57 | this:SetBackdropBorderColor(1, 1, 1, 1); |
||
58 | this:SetBackdropColor(0.0,0.0,0.0,0.6); |
||
59 | |||
60 | |||
61 | IMBA_Razuvious_Title:SetText("Razuvious Timer"); |
||
62 | |||
63 | IMBA_Razuvious_TimerShout:SetBarText("Disrupting Shout"); |
||
64 | |||
65 | IMBA_AddAddon("Instructor Razuvious", "Timer for Disrupting Shout", IMBA_LOCATIONS_NAXX_DK, nil, "IMBA_Razuvious_YellActivator",IMBA_RAZUVIOUS_AGGRO_YELL1,"IMBA_Razuvious"); |
||
66 | IMBA_AddOption2("Instructor Razuvious","AnnounceShouts","Announce Shouts") |
||
67 | end |
||
68 | |||
69 | |||
70 | |||
71 | function IMBA_Razuvious_OnEvent(event) |
||
72 | if ( event == "CHAT_MSG_SPELL_CREATURE_VS_CREATURE_DAMAGE" or event == "CHAT_MSG_SPELL_CREATURE_VS_PARTY_DAMAGE" or event == "CHAT_MSG_SPELL_CREATURE_VS_SELF_DAMAGE" ) then |
||
73 | if string.find(arg1,IMBA_RAZUVIOUS_SHOUT_MSG) then |
||
74 | IMBA_Razuvious_Shouted(); |
||
75 | IMBA_Razuvious_TimerShout:StartTimer(IMBA_RAZUVIOUS_SHOUT_TIME,true,IMBA_Razuvious_Shouted); |
||
76 | IMBA_Razuvious_TimerShout:StartWarningTimer("** Razuvious is shouting in ~5 Seconds **",5,IMBA_CheckVar("Instructor Razuvious","AnnounceShouts"),IMBA_CheckVar("Instructor Razuvious","AnnounceShouts")); |
||
77 | end |
||
78 | elseif ( event == "CHAT_MSG_MONSTER_YELL") then |
||
79 | if string.find(arg1,IMBA_RAZUVIOUS_DEATH_YELL) then |
||
80 | IMBA_Razuvious_TimerShout.active=false; |
||
81 | end |
||
82 | end |
||
83 | end |