Added error to determine what we're receiving when we don't receive a number in Looted. The error will tell us the lua type and the value that is received.
Cette révision appartient à :
Parent
d417d5bc1a
révision
ddd438ec25
|
@ -143,6 +143,7 @@ local eventy = {}
|
|||
|
||||
local function Looted(message)
|
||||
local ltype = GetItemType(message, true)
|
||||
if type(ltype) ~= "number" then error(string.format("Expected a number but got a %s.", type(ltype)) .. "The value is:" .. ltype) end
|
||||
table.insert(eventy, {time = GetTime(), event = string.format("I%di", ltype)})
|
||||
--if debug_output then QuestHelper:TextOut(string.format("Added event %s", string.format("I%di", ltype))) end
|
||||
end
|
||||
|
|
Référencer dans un nouveau ticket