OK, I'm sure this is fixed this time. It helps to pay attention to the field names.
Cette révision appartient à :
Parent
a9eaf57e95
révision
1052cb19d1
|
@ -537,7 +537,7 @@ local function LootOpened()
|
|||
|
||||
|
||||
local items = {}
|
||||
items[pseudoIDs["gold"]] = 0
|
||||
items[PseudoIDs["gold"]] = 0
|
||||
for i = 1, GetNumLootItems() do
|
||||
_, name, quant, _ = GetLootSlotInfo(i)
|
||||
link = GetLootSlotLink(i)
|
||||
|
@ -548,11 +548,11 @@ local function LootOpened()
|
|||
local _, _, silver = string.find(name, Patterns.SILVER_AMOUNT)
|
||||
local _, _, copper = string.find(name, Patterns.COPPER_AMOUNT)
|
||||
tot = (tonumber(gold) or 0) * 10000 + (tonumber(silver) or 0) * 100 + (tonumber(copper) or 0) * 1
|
||||
items[pseudoIDs["gold"]] = tot
|
||||
items[PseudoIDs["gold"]] = tot
|
||||
else
|
||||
if string.find(name, "Archaeology Fragment") then
|
||||
local _, _, match = string.find(name, "(.*) Archaeology Fragment")
|
||||
items[pseudoIDs[match]] = (items[pseudoIDs[match]] or 0) + quant
|
||||
items[PseudoIDs[match]] = (items[PseudoIDs[match]] or 0) + quant
|
||||
else
|
||||
local itype = GetItemType(link)
|
||||
items[itype] = (items[itype] or 0) + quant
|
||||
|
|
Référencer dans un nouveau ticket