Você trocou aquela linha que indiquei anteriormente?
info
Grupo: Conde
Registrado: 14/04/15
Posts: 956
Reputação: +333
Gênero: Masculino

Você trocou aquela linha que indiquei anteriormente?
sim
UP!! desculpa ai eu sei que ainda falta 3 horas para completar 24h pra poder dar up, mas estou precisando mt este script! é um dos ultimos que eu estou pedindo kk, mas velho, o zipter deveria ser um colaborador, ele está ajudando mt na área de script! pelomenos já me ajudou umas 4 vezes está semana ^^
Use esta versão com proteções:
--local toloot = {11441, 11441, 11443, 11444, 11445, 11446, 11447, 11448, 11449,11450, 11451, 11452, 11453, 11454, 12618, 12232, 12244} -- PREFERENCIAL - SE QUISER APENAS COM ALGUNS ITENS
function onUse(cid, item, frompos, item2, topos)
if getItemAttribute(item.uid, "corpseowner") ~= cid then
doPlayerSendCancel(cid, "You're not the owner.")
return true
end
if getPlayerStorageValue(cid, 4919) < 1 then
return false
else
local items = {}
for x=0, (getContainerSize(item.uid)) do
local itens = getContainerItem(item.uid, 0)
if itens and itens.uid > 0 and itens.itemid ~= 0 then
--if isInArray(toloot, itens.itemid) then
table.insert(items, {i=itens.itemid, q=itens.type})
doRemoveItem(itens.uid)
--break
--end
end
end
for y=1, #items do
doPlayerAddItemStacking(cid, items[y].i, items[y].q)
doPlayerSendTextMessage(cid, 20, "Looted "..items[y].q.."x "..getItemNameById(items[y].i)..".")
end
if #items > 0 then
return true
else
return false
end
end
end
--[[
AUTO LOOT BY GABRIEL SALES
SE QUISER ATIVAR O AUTOLOOT APENAS PARA ALGUNS ITENS, ADICIONE OS IDS NA TABELA toloot E TIRE OS COMENTÁRIOS(--).
--]]
info
Grupo: Conde
Registrado: 14/04/15
Posts: 956
Reputação: +333
Gênero: Masculino

Use esta versão com proteções:
--local toloot = {11441, 11441, 11443, 11444, 11445, 11446, 11447, 11448, 11449,11450, 11451, 11452, 11453, 11454, 12618, 12232, 12244} -- PREFERENCIAL - SE QUISER APENAS COM ALGUNS ITENS function onUse(cid, item, frompos, item2, topos) if getItemAttribute(item.uid, "corpseowner") ~= cid then doPlayerSendCancel(cid, "You're not the owner.") return true end if getPlayerStorageValue(cid, 4919) < 1 then return false else local items = {} for x=0, (getContainerSize(item.uid)) do local itens = getContainerItem(item.uid, 0) if itens and itens.uid > 0 and itens.itemid ~= 0 then --if isInArray(toloot, itens.itemid) then table.insert(items, {i=itens.itemid, q=itens.type}) doRemoveItem(itens.uid) --break --end end end for y=1, #items do doPlayerAddItemStacking(cid, items[y].i, items[y].q) doPlayerSendTextMessage(cid, 20, "Looted "..items[y].q.."x "..getItemNameById(items[y].i)..".") end if #items > 0 then return true else return false end end end --[[ AUTO LOOT BY GABRIEL SALES SE QUISER ATIVAR O AUTOLOOT APENAS PARA ALGUNS ITENS, ADICIONE OS IDS NA TABELA toloot E TIRE OS COMENTÁRIOS(--). --]]
Cara eu não entendi bem este "com proteções" mas fui testar e funcionou 100%!!!!!!!!!!! manow sério msm tu é um GOD Scripter! que veio do céu kk, tu é crack neste asunto! mt top, já me ajuda-se muitas vezes msm, se precisar de ajuda em algo, vou tentar fazer o maximo pra ajudar ^^
info
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy

Tópico movido para a seção de dúvidas e pedidos resolvidos
info
Grupo: Campones
Registrado: 08/09/15
Posts: 13
Reputação: 0
Char no Tibia: Omnia

Ninguém sabe passar isso de talkaction para função no otclient ? Ficaria muito grato e Rep + !
info
Grupo: Herói
Registrado: 01/05/08
Posts: 2.6k
Reputação: +536
Gênero: Masculino

Ninguém sabe passar isso de talkaction para função no otclient ? Ficaria muito grato e Rep + !
Amigo, evite reviver um tópico resolvido com outra dúvida,
Abra um tópico na seção de suporte.





info
Grupo: Conde
Registrado: 14/04/15
Posts: 956
Reputação: +333
Gênero: Masculino
tipo esta funcionando 100%, mandando a mensagem e tbm o item é colotado, mas mesmo assim dá este erro!