view print_log.lua @ 73:32eb24fb2ebf

- This code is not quite ready for prime time. Do not run it yet. - Loot events have associated unique IDs, enabling some new actions over the network. These IDs are preserved as part of realm history. As a result, the stored history format has completely changed (and requires less memory as a bonus). - "Prescan for faster handling" option, default off. - "Mark as <x>" now broadcast to other trackers. Older versions can't receive the message, of course. Future: Broadcast reassigning loot. - New options controlling whether (and where) to print a message when another player broadcasts those kinds of changes to existing loot. - Names colored by class when that data is available; CUSTOM_CLASS_COLORS supported. - Metric boatloads of minor tweaks and optimizations throughout.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Tue, 29 May 2012 22:50:09 +0000
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