Mercurial > wow > ouroloot
view print_log.lua @ 151:42dd3076baaf
Initial attempt at tracking bonus rolls and non-loot items.
Add more loot-catching patterns, and generalize them a little more. Bonus
rolls are tracked by default, non-loot stuff is not. Bonus rolls don't seem
to be working, but non-loot definitely is. (It may be that the patterns for
bonus rolls are not actually used by the game client, or rather, that the
game client does not issue those events for bonus rolls which are not your
own. I have yet to win a bonus roll since implementing the code, but one
person in LFR claimed to win a bonus item which simply wasn't visible to me
at all. More data needed.)
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Fri, 09 Jan 2015 19:14:56 -0500 |
parents | 8f7ec6ccf5e3 |
children |
line wrap: on
line source
#!/usr/bin/env lua --[[ This is meant to be run from a command-line interpreter. It's what I use in practice, but is shipping primarily an example. ]] if not arg[1] or arg[1] == "" then print"Usage: lua print_log.lua /path/to/OuroLoot_savedvars.lua" print"Don't forget to delete log table after viewing!" os.exit(1) end dofile(arg[1]) if type(OuroLootSV_log) ~= 'table' then print("Did not find OuroLootSV_log in", arg[1]) os.exit(1) end for _,v in ipairs(OuroLootSV_log) do print(v) end os.exit(0) -- vim:noet ff=unix