view print_log.lua @ 25:cb9635999171

- Reassigning loot, and marking loot as disenchanted/vault, will update the history entries also. - Tooltip help on dropdown menus appears at mouse now, instead of depending on Blizzard's "Beginner Tooltips" setting. - Forum BBcode output includes an option for MMO-Champion/Wowstead formatting. - Smarter cleanup functions for expiring caches. - Properly prefer locally-generated loot events, even when other users can see and rebroadcast the events back to you faster than you see them.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Wed, 05 Oct 2011 02:14:07 +0000
parents f560cf82e7d3
children 8f7ec6ccf5e3
line wrap: on
line source
#!/usr/bin/env lua

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