Postado Fevereiro 2, 2017 8 anos Bom estou tentando usar o sistema de autoloot do "Vodkart" só que quando tento add um item no slot, diz que o item n existe e na distro fica assim... [2/2/2017 21:49:13] [Error - TalkAction Interface] [2/2/2017 21:49:13] local cid = 268436607 [2/2/2017 21:49:14] local words = "!autoloot" [2/2/2017 21:49:14] local param = "add,gold coin" [2/2/2017 21:49:14] local channel = 65534 [2/2/2017 21:49:14] domodlib('Loot_func') [2/2/2017 21:49:14] local t = string.explode(string.lower(param), ",") [2/2/2017 21:49:14] if not t[1] then [2/2/2017 21:49:14] ShowItemsTabble(cid) return true [2/2/2017 21:49:14] elseif tonumber(t[1]) or tonumber(t[2]) then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "enter!autoloot add,name or !autoloot remove,name") return true [2/2/2017 21:49:14] elseif isInArray({"add","remove"}, tostring(t[1])) then [2/2/2017 21:49:14] local func,check = tostring(t[1]) == "add" and addItemTable or removeItemTable, tostring(t[1]) == "add" and true or false [2/2/2017 21:49:14] local item,slots = getItemIdByName(tostring(t[2]), false), isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free [2/2/2017 21:49:14] if not item then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "This item does not exist.") return true [2/2/2017 21:49:14] elseif check == true and isInArray(info.BlockItemsList, item) then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "You can not add this item in the list!") return true [2/2/2017 21:49:14] elseif check == true and #getPlayerStorageTable(cid, 27000) >= slots then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "max "..slots.." from auto loot") return true [2/2/2017 21:49:14] elseif isInTable(cid, item) == check then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "This Item "..(check == true and "already" or "is not").." in your list.") return true [2/2/2017 21:49:14] end [2/2/2017 21:49:14] func(cid, item) [2/2/2017 21:49:14] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,check == true and "you added the item "..t[2].." in the list" or "you removed the item "..t[2].." from the list") return true [2/2/2017 21:49:14] end [2/2/2017 21:49:14] return true [2/2/2017 21:49:14] Description: [2/2/2017 21:49:14] (LuaInterface::luaGetItemIdByName) Item not found Alguem pode me ajudar pfv?
Postado Fevereiro 3, 2017 8 anos Em 02/02/2017 em 23:53, Sivint disse: Bom estou tentando usar o sistema de autoloot do "Vodkart" só que quando tento add um item no slot, diz que o item n existe e na distro fica assim... [2/2/2017 21:49:13] [Error - TalkAction Interface] [2/2/2017 21:49:13] local cid = 268436607 [2/2/2017 21:49:14] local words = "!autoloot" [2/2/2017 21:49:14] local param = "add,gold coin" [2/2/2017 21:49:14] local channel = 65534 [2/2/2017 21:49:14] domodlib('Loot_func') [2/2/2017 21:49:14] local t = string.explode(string.lower(param), ",") [2/2/2017 21:49:14] if not t[1] then [2/2/2017 21:49:14] ShowItemsTabble(cid) return true [2/2/2017 21:49:14] elseif tonumber(t[1]) or tonumber(t[2]) then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "enter!autoloot add,name or !autoloot remove,name") return true [2/2/2017 21:49:14] elseif isInArray({"add","remove"}, tostring(t[1])) then [2/2/2017 21:49:14] local func,check = tostring(t[1]) == "add" and addItemTable or removeItemTable, tostring(t[1]) == "add" and true or false [2/2/2017 21:49:14] local item,slots = getItemIdByName(tostring(t[2]), false), isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free [2/2/2017 21:49:14] if not item then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "This item does not exist.") return true [2/2/2017 21:49:14] elseif check == true and isInArray(info.BlockItemsList, item) then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "You can not add this item in the list!") return true [2/2/2017 21:49:14] elseif check == true and #getPlayerStorageTable(cid, 27000) >= slots then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "max "..slots.." from auto loot") return true [2/2/2017 21:49:14] elseif isInTable(cid, item) == check then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "This Item "..(check == true and "already" or "is not").." in your list.") return true [2/2/2017 21:49:14] end [2/2/2017 21:49:14] func(cid, item) [2/2/2017 21:49:14] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,check == true and "you added the item "..t[2].." in the list" or "you removed the item "..t[2].." from the list") return true [2/2/2017 21:49:14] end [2/2/2017 21:49:14] return true [2/2/2017 21:49:14] Description: [2/2/2017 21:49:14] (LuaInterface::luaGetItemIdByName) Item not found Alguem pode me ajudar pfv? Bloqueou monstros editados pra não coletar com autoloot?? Em 02/02/2017 em 23:53, Sivint disse: Bom estou tentando usar o sistema de autoloot do "Vodkart" só que quando tento add um item no slot, diz que o item n existe e na distro fica assim... [2/2/2017 21:49:13] [Error - TalkAction Interface] [2/2/2017 21:49:13] local cid = 268436607 [2/2/2017 21:49:14] local words = "!autoloot" [2/2/2017 21:49:14] local param = "add,gold coin" [2/2/2017 21:49:14] local channel = 65534 [2/2/2017 21:49:14] domodlib('Loot_func') [2/2/2017 21:49:14] local t = string.explode(string.lower(param), ",") [2/2/2017 21:49:14] if not t[1] then [2/2/2017 21:49:14] ShowItemsTabble(cid) return true [2/2/2017 21:49:14] elseif tonumber(t[1]) or tonumber(t[2]) then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "enter!autoloot add,name or !autoloot remove,name") return true [2/2/2017 21:49:14] elseif isInArray({"add","remove"}, tostring(t[1])) then [2/2/2017 21:49:14] local func,check = tostring(t[1]) == "add" and addItemTable or removeItemTable, tostring(t[1]) == "add" and true or false [2/2/2017 21:49:14] local item,slots = getItemIdByName(tostring(t[2]), false), isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free [2/2/2017 21:49:14] if not item then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "This item does not exist.") return true [2/2/2017 21:49:14] elseif check == true and isInArray(info.BlockItemsList, item) then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "You can not add this item in the list!") return true [2/2/2017 21:49:14] elseif check == true and #getPlayerStorageTable(cid, 27000) >= slots then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "max "..slots.." from auto loot") return true [2/2/2017 21:49:14] elseif isInTable(cid, item) == check then [2/2/2017 21:49:14] doPlayerSendCancel(cid, "This Item "..(check == true and "already" or "is not").." in your list.") return true [2/2/2017 21:49:14] end [2/2/2017 21:49:14] func(cid, item) [2/2/2017 21:49:14] doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,check == true and "you added the item "..t[2].." in the list" or "you removed the item "..t[2].." from the list") return true [2/2/2017 21:49:14] end [2/2/2017 21:49:14] return true [2/2/2017 21:49:14] Description: [2/2/2017 21:49:14] (LuaInterface::luaGetItemIdByName) Item not found Alguem pode me ajudar pfv? Bloqueou monstros editados pra não coletar com autoloot??
Postado Fevereiro 9, 2017 8 anos Autor Em 03/02/2017 em 00:02, Yago Blind. disse: Bloqueou monstros editados pra não coletar com autoloot?? Bloqueou monstros editados pra não coletar com autoloot?? nao, peguei como tava e coloquei la!
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.