=======================================
Background Tasks
=======================================
Details:RegisterBackgroundTask (name, func, priority, ...)
register a function to be called while the player isn't in: combat, group, raid
instances.
priority determines the interval time and support "LOW", "MEDIUM", "HIGH" values.
Details:UnregisterBackgroundTask (name)
unregister a background task.
=======================================
Item Level
=======================================
[Link]:IsTrackerEnabled()
return if the item level tracker is enabled.
[Link]:TrackItemLevel (bool)
enable or disable the tracker, item level tracker only work when inside a raid
instance and out of combat.
[Link]:GetPool()
return a table containing all tracked players:
{[GUID] = {["name"] = name-realm, ["ilvl"] = item level, ["time"] = time()}}
[Link]:GetIlvl (guid)
return the item level table for the requested guid.
[Link]:GetInOrder()
return a new numeric table with sorted in decreasing order:
{{name-realm, item level, time()}, {name-realm, item level, time()}}
=======================================
Raid History
=======================================
[Link]:OpenRaidStorage()
get the table containing all stored data.
[Link]:ListDiffs()
return a indexed table with dificulty numbers.
[Link]:ListEncounters (diff)
return a indexed table with all encounters stored for the dificulty.
[Link]:GetEncounterData (diff, encounterId, guildname)
return a indexed table with encounter tables playd by the guild.
[Link]:GetPlayerData (diff, encounterId, playername)
return a indexed table with player tables for the player.
[Link]:GetBestFromPlayer (diff, encounterId, role, playername)
return the best result from the player.
Structure:
DB = hash{
[difficulty index] = hash{
[encounter id] = indexed{
{
--encounter table
damage = hash{
[playername] = indexed{} --player table
}
...
}--[1]
}
}
}
encounter table = hash {["time"] = time(), ["guild"] = guild name, ["date"] =
formated date, ["healing"] = {[playername] = playertable}, ["elapsed"] = combat
time, ["damage"] = {[playername] = playertable}}
player table = indexed {total done, item level, class index}
=======================================
Parser
=======================================
/dump [Link].original_functions
will tell all internal tokens used by the parser.
[Link]:SetParserFunction (token, func)
replaces a original parser function with a customized one.
If no function passed, it uses the default function.