comparison Details_RaidInfo-Highmaul/Details_RaidInfo-Highmaul.lua @ 0:0de01324b4f2

first commit
author Tercio
date Tue, 23 Jun 2015 15:26:28 -0300
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0de01324b4f2
1
2 local _detalhes = _G._detalhes
3
4 local trash_mobs_ids = {
5
6 }
7
8 local highmaul = {
9
10 id = 1228, --994 = map id extracted from encounter journal
11 ej_id = 477, --encounter journal id
12
13 name = "Highmaul",
14
15 icons = [[Interface\AddOns\Details_RaidInfo-Highmaul\boss_faces]],
16 icon = [[Interface\AddOns\Details_RaidInfo-Highmaul\icon256x128]],
17
18 is_raid = true,
19
20 backgroundFile = {file = [[Interface\Glues\LOADINGSCREENS\LoadingScreen_HighMaulRaid]], coords = {0, 1, 265/1024, 875/1024}},
21 backgroundEJ = [[Interface\EncounterJournal\UI-EJ-LOREBG-Highmaul]],
22
23 boss_names = {
24 --[[ 1 ]] "Kargath Bladefist",
25 --[[ 2 ]] "The Butcher",
26 --[[ 3 ]] "Tectus",
27 --[[ 4 ]] "Brackenspore",
28 --[[ 5 ]] "Twin Ogron",
29 --[[ 6 ]] "Ko'ragh",
30 --[[ 7 ]] "Imperator Mar'gok",
31 },
32
33 encounter_ids = { --encounter journal encounter id
34 --> Ids by Index
35 1128, 971, 1195, 1196, 1148, 1153, 1197,
36
37 --> Boss Index
38 [1128] = 1,
39 [971] = 2,
40 [1195] = 3,
41 [1196] = 4,
42 [1148] = 5,
43 [1153] = 6,
44 [1197] = 7,
45 },
46
47 encounter_ids2 = {
48 --combatlog encounter id
49 [1721] = 1, --kargath
50 [1706] = 2, --the butcher
51 [1722] = 3, --tectus
52 [1720] = 4, --brakenspore
53 [1719] = 5, --twin ogron
54 [1723] = 6, --Koragh
55 [1705] = 7, --Margok
56 },
57
58 boss_ids = {
59 --npc ids
60 [78714] = 1, --Kargath
61 [77404] = 2, --The Butcher
62 [78948] = 3, --Tectus
63 [78491] = 4, --Brakenspore
64 [78238] = 5, --Pol
65 [78237] = 5, --Phemos
66 [79015] = 6, --Koragh
67 [77428] = 7, --Margok
68 },
69
70 encounters = {
71
72 [1] = {
73 boss = "Kargath Bladefist",
74 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Kargath Bladefist]],
75
76 --> spell list
77 continuo = {},
78 },
79
80 [2] = {
81 boss = "The Butcher",
82 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-The Butcher]],
83
84 --> spell list
85 continuo = {},
86 },
87
88 [3] = {
89 boss = "Tectus",
90 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Tectus The Living Mountain]],
91
92 --> spell list
93 continuo = {},
94
95 funcType = 0x2,
96 func = function (combat)
97 local removed = false
98 local list = combat:GetActorList (DETAILS_ATTRIBUTE_DAMAGE)
99 for i = #list, 1, -1 do
100 local id = _detalhes:GetNpcIdFromGuid (list[i].serial)
101 if (trash_mobs_ids [id]) then
102 tremove (list, i)
103 combat.totals [DETAILS_ATTRIBUTE_DAMAGE] = combat.totals [DETAILS_ATTRIBUTE_DAMAGE] - list[i].total
104 removed = true
105 end
106 end
107 if (removed) then
108 combat[DETAILS_ATTRIBUTE_DAMAGE]:Remap()
109 end
110 end,
111 },
112
113 [4] = {
114 boss = "Brackenspore",
115 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Brackenspore]],
116
117 --> spell list
118 continuo = {},
119 },
120
121 [5] = {
122 boss = "Twin Ogron",
123 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Twin Ogron]],
124
125 --> spell list
126 continuo = {},
127 },
128
129 [6] = {
130 boss = "Ko'ragh",
131 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Fel Breaker]],
132
133 --> spell list
134 continuo = {},
135 },
136
137 [7] = {
138 boss = "Imperator Mar'gok",
139 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Imperator Margok]],
140
141 --> spell list
142 continuo = {},
143 },
144
145 },
146
147 }
148
149 _detalhes:InstallEncounter (highmaul)