Mercurial > wow > lfg-premade-filter
comparison LFGFilter.lua @ 13:b9af92090f5e
debugging LFGPrintInstanceScan is not really necessary any more
author | ovolkov |
---|---|
date | Tue, 03 Feb 2015 11:16:07 +0300 |
parents | 64c9517efa88 |
children | 9431f27780c3 |
comparison
equal
deleted
inserted
replaced
12:64c9517efa88 | 13:b9af92090f5e |
---|---|
206 for idx = 1, totalResults do | 206 for idx = 1, totalResults do |
207 local id1, activityID1, name1, comment1, voiceChat1, iLvl1, age1, numBNetFriends1, numCharFriends1, numGuildMates1, isDelisted1 = C_LFGList.GetSearchResultInfo(results[idx]) | 207 local id1, activityID1, name1, comment1, voiceChat1, iLvl1, age1, numBNetFriends1, numCharFriends1, numGuildMates1, isDelisted1 = C_LFGList.GetSearchResultInfo(results[idx]) |
208 print(id1, activityID1, C_LFGList.GetActivityInfo(activityID1), '*', name1) | 208 print(id1, activityID1, C_LFGList.GetActivityInfo(activityID1), '*', name1) |
209 end | 209 end |
210 end | 210 end |
211 | |
212 function LFGPrintInstanceScan(ej_instance) | |
213 EJ_SelectInstance(ej_instance) | |
214 local encounter_idx = 1 | |
215 local encounter_name, encounter_id, root_section_id, _ | |
216 repeat | |
217 encounter_name, _, encounter_id, root_section_id = EJ_GetEncounterInfoByIndex(encounter_idx) | |
218 if encounter_name then | |
219 print(encounter_id, encounter_name) | |
220 local next_section_id = root_section_id | |
221 repeat | |
222 local title, description, headerType, abilityIcon, displayInfo, siblingID, _, fileredByDifficulty, link, startsOpen, flag1, flag2, flag3, flag4 = EJ_GetSectionInfo(next_section_id) | |
223 if displayInfo ~= 0 then | |
224 print(encounter_id, title) | |
225 end | |
226 next_section_id = siblingID | |
227 until not next_section_id | |
228 encounter_idx = encounter_idx + 1 | |
229 end | |
230 until not encounter_name | |
231 localized_encounter_name_to_idx[ej_instance] = encounter_names | |
232 end |