1
0
Bifurcation 0

Bypass for collecting archaeology fragments until all translations are in.

Cette révision appartient à :
Nathanial.C.Jones 2011-02-15 02:07:01 +00:00
Parent fd867c890d
révision 334f894a5b
1 fichiers modifiés avec 10 ajouts et 14 suppressions

Voir le fichier

@ -8,15 +8,6 @@ local QHC
local PseudoIDs = {
["gold"] = -1,
["Dwarf"] = -2,
["Troll"] = -3,
["Fossil"] = -4,
["Night Elf"] = -5,
["Nerubian"] = -6,
["Vrykul"] = -7,
["Draenei"] = -8,
["Orc"] = -9,
["Tol'vir"] = -10,
}
local GetMonsterUID
@ -550,11 +541,12 @@ local function LootOpened()
tot = (tonumber(gold) or 0) * 10000 + (tonumber(silver) or 0) * 100 + (tonumber(copper) or 0) * 1
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
elseif LootSlotIsCurrency(i) then
QuestHelper:Assert(false, "Need more info on '" .. name .. "'x" .. tostring(quant) .. ".")
if LootSlotIsCurrency(i) then
if not QHC.PseudoIDs[name] then
QHC.PseudoIDsMin = QHC.PseudoIDsMin - 1
QHC.PseudoIDs[name] = QHC.PseudoIDsMin
end
items[QHC.PseudoIDs[name]] = (items[QHC.PseudoIDs[name]] or 0) + quant
else
QuestHelper:Assert(link, "Need more info on '" .. name .. "'x" .. tostring(quant) .. ".")
local itype = GetItemType(link)
@ -579,6 +571,10 @@ function QH_Collect_Loot_Init(QHCData, API)
if not QHC.worldloot then QHC.worldloot = {} end
if not QHC.fishing then QHC.fishing = {} end
if not QHC.item then QHC.item = {} end
if not QHC.PseudoIDs then
QHC.PseudoIDs = PseudoIDs
QHC.PseudoIDsMin = -1
end
QH_Event("PLAYER_ENTERING_WORLD", MembersUpdate)
QH_Event("RAID_ROSTER_UPDATE", MembersUpdate)