1
0
Bifurcation 0

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 à :
Nathanial.C.Jones 2010-10-24 23:20:27 +00:00
Parent d417d5bc1a
révision ddd438ec25
1 fichiers modifiés avec 1 ajouts et 0 suppressions

Voir le fichier

@ -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