comparison LFGFilter.lua @ 21:8dc3e648abeb

debugging function to check GetLFGDungeon* data
author ovolkov
date Tue, 10 Feb 2015 04:36:51 +0300
parents caae3287d83c
children 924948188536
comparison
equal deleted inserted replaced
20:ee4cd138a351 21:8dc3e648abeb
211 for idx = 1, totalResults do 211 for idx = 1, totalResults do
212 local id1, activityID1, name1, comment1, voiceChat1, iLvl1, age1, numBNetFriends1, numCharFriends1, numGuildMates1, isDelisted1 = C_LFGList.GetSearchResultInfo(results[idx]) 212 local id1, activityID1, name1, comment1, voiceChat1, iLvl1, age1, numBNetFriends1, numCharFriends1, numGuildMates1, isDelisted1 = C_LFGList.GetSearchResultInfo(results[idx])
213 print(id1, activityID1, C_LFGList.GetActivityInfo(activityID1), '*', name1) 213 print(id1, activityID1, C_LFGList.GetActivityInfo(activityID1), '*', name1)
214 end 214 end
215 end 215 end
216
217 function LFGPrintFindDungeon(upper_limit, pattern)
218 local lower_limit = 1
219 if not pattern then
220 lower_limit = upper_limit
221 pattern = GetLFGDungeonInfo(upper_limit)
222 end
223 for idx = lower_limit, upper_limit do
224 local name = GetLFGDungeonInfo(idx)
225 if name and name:find(pattern) then
226 print(idx, name)
227 for enc_idx = 1, GetLFGDungeonNumEncounters(idx) do
228 local bossName, texture, isKilled = GetLFGDungeonEncounterInfo(idx, enc_idx)
229 print("*", enc_idx, bossName)
230 end
231 end
232 end
233 end