Está dando esse error em quase toda scripts.
servido possuir source.
23/09/2017 22:45:06] [Error - Action Interface]
[23/09/2017 22:45:06] data/actions/scripts/booststone2.lua:onUse
[23/09/2017 22:45:06] Description:
[23/09/2017 22:45:06] (luaGetItemAttribute) Item not found
script
function onUse(cid, item, frompos, item2, topos)
local cfg = {
qnt = 10, --Quantos boosts o pokémon irá receber.
max = 3000, --Boost máximo do seu servidor.
chance = 40, --Chance de acertar, em %
boost_fail = 1000, --A partir de quantos boosts poderá falhar.
}
local myball = getPlayerSlotItem(cid, 8).uid
local summon = getCreatureSummons(cid)[1]
local boost = getItemAttribute(myball, "boost") or 0
if myball <= 0 then
return doPlayerSendCancel(cid, "Coloque um pokémon no Main Slot!")
elseif #getCreatureSummons(cid) <= 0 then
return doPlayerSendCancel(cid, "Você precisa estar usando seu pokémon para conseguir boostá-lo!")
elseif boost >= cfg.max then
return doPlayerSendCancel(cid, "Seu pokémon já se encontra no nível máximo de boost!")
end
if boost >= cfg.boost_fail then
local qqq = math.random(1, 100)
if qqq <= cfg.chance then
doItemSetAttribute(myball, "boost", (boost + cfg.qnt))
doSendAnimatedText(getThingPos(summon), "+10 BOOST", 215)
doPlayerSendTextMessage(cid, 21, "Seu pokémon avançou do nível [+"..tonumber(boost).."] de boost para o nível [+"..tonumber(boost + 10).."].")
doRemoveItem(item.uid, 1)
else
doSendAnimatedText(getThingPos(summon), "Falhou!", 215)
doPlayerSendTextMessage(cid, 21, "Sua boost stone falhou! [".. qqq .."/100]")
doRemoveItem(item.uid, 1)
end
else
doItemSetAttribute(myball, "boost", (boost + cfg.qnt))
doSendAnimatedText(getThingPos(summon), "+10 BOOST", 215)
doPlayerSendTextMessage(cid, 21, "Seu pokémon avançou do nível [+"..tonumber(boost).."] de boost para o nível [+"..tonumber(boost + 10).."].")
doRemoveItem(item.uid, 1)
end
return true
end