function onSay(player, words, param) local split = param:splitTrimmed(" ") if split[01] then if _DEBUG_MODE then local _TYPE = { ["00"] = 'Atualizando Depot', ["01"] = 'Adicionando Itens ao Depot', ["02"] = 'Retirando Itens no Depot', } if _TYPE[split[01]] then print("[TALK - DEPOT] " ..player:getName().. " - " .._TYPE[split[01]]) else print("[TALK - DEPOT] " ..player:getName().. " - " ..split[01]) end end if split[01] == "00" then -- ATUALIZANDO DEPOT onDepot(player, 00, 01) doBackpack(player, 00, 03, 00, 01) return false end if split[01] == "01" then -- ADICIONANDO ITENS NO DEPOT local slot = tonumber(split[02]) or nil local ext = tonumber(split[03]) or nil local pos = tonumber(split[04]) or nil local qnt = tonumber(split[05]) or nil if slot == nil or ext == nil or pos == nil or qnt == nil then return false end onDepot(player, 01, 01, 00, slot, ext, pos, qnt) return false end if split[01] == "02" then --RETIRANDO ITENS NO DEPOT local slot = tonumber(split[02]) or nil local ext = tonumber(split[03]) or nil local pos = tonumber(split[04]) or nil local qnt = tonumber(split[05]) or nil if slot == nil or ext == nil or pos == nil or qnt == nil then return false end onDepot(player, 02, 01, pos, slot, ext, 00, qnt) return false end end return false end