Mercurial > wow > ouroloot
diff gui.lua @ 71:fb330a1fb6e9
Add a unique field to loot (extracted from uniqueID field when possible, randomly generated when not) and include it in broadcasts. Use this as a history identifier for future loot. Will need to tweak using this in signatures (and finally avoid problems looting multiples of an item to a single person).
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Sat, 12 May 2012 07:17:55 +0000 |
parents | cdee65c1bd8c |
children | bb19899c65a7 |
line wrap: on
line diff
--- a/gui.lua Fri May 11 03:56:21 2012 +0000 +++ b/gui.lua Sat May 12 07:17:55 2012 +0000 @@ -464,7 +464,7 @@ -- Done at startup, and whenever we've changed the population of tabs. function addon:gui_init (loot_pointer) - g_loot = loot_pointer + g_loot = assert(loot_pointer, "something went wrong at startup") g_generated = nil tabgroup_tabs = {} window_title = "Ouro Loot " .. self.revision @@ -579,7 +579,7 @@ ["Rebroadcast this loot entry"] = function(rowi) local e = g_loot[rowi] -- This only works because GetItemInfo accepts multiple argument formats - addon:vbroadcast('loot', e.person, e.itemlink, e.count, e.cols[3].value) + addon:vbroadcast('loot', e.person, e.unique, e.itemlink, e.count, e.cols[3].value) addon:Print("Rebroadcast entry", rowi, e.itemlink) end, @@ -594,7 +594,7 @@ addon:vbroadcast('boss', e.reason, e.bossname, e.instance) elseif e.kind == 'loot' then -- This only works because GetItemInfo accepts multiple argument formats - addon:vbroadcast('loot', e.person, e.itemlink, e.count, e.cols[3].value) + addon:vbroadcast('loot', e.person, e.unique, e.itemlink, e.count, e.cols[3].value) end addon:Print("Rebroadcast entry", rowi, e.itemlink or e.bossname or UNKNOWN) rowi = rowi + 1