Postado Agosto 2, 2014 10 anos gente ta dando esse erro, sera que algum de vcs sabem solucionar? [02/08/2014 14:22:11] [Error - Action Interface] [02/08/2014 14:22:11] data/actions/scripts/booststone.lua:onUse [02/08/2014 14:22:11] Description: [02/08/2014 14:22:11] data/actions/scripts/booststone.lua:21: attempt to perform arithmetic on a nil value [02/08/2014 14:22:11] stack traceback: [02/08/2014 14:22:11] data/actions/scripts/booststone.lua:21: in function <data/actions/scripts/booststone.lua:1> esse é o script function onUse(cid, item, topos, item2, frompos) local myball = getPlayerSlotItem(cid, 8) local boost = getItemAttribute(myball.uid, "boost") or 0 local boosts = 0 if boost == 50 then return doPlayerSendCancel(cid, "Sorry, is not possible.") end if #getCreatureSummons(cid) >= 1 then if getPlayerAccess(cid) == 6 then boosts = 10 end boosts = boosts + 1 local pokemon = getItemAttribute(myball.uid, "poke") local off = pokes[pokemon].offense * boost_rate * boosts local def = pokes[pokemon].defense * boost_rate * boosts local agi = pokes[pokemon].agility * boosts local spatk = pokes[pokemon].specialattack * boost_rate * boosts local vit = pokes[pokemon].vitality * boost_rate * boosts doSetItemAttribute(myball.uid, "boost", boost + boosts) doItemSetAttribute(myball.uid, "offense", getItemAttribute(myball.uid, "offense") + off) doItemSetAttribute(myball.uid, "defense", getItemAttribute(myball.uid, "defense") + def) doItemSetAttribute(myball.uid, "speed", getItemAttribute(myball.uid, "speed") + agi) doItemSetAttribute(myball.uid, "specialattack", getItemAttribute(myball.uid, "specialattack") + spatk) doItemSetAttribute(myball.uid, "vitality", getItemAttribute(myball.uid, "vitality") + vit) doRemoveItem(item.uid) doSendMagicEffect(getThingPos(item2.uid), 40) doPlayerSendTextMessage(cid, 27, "Congrulations, your "..pokemon..", as beem boosted +1.") doPlayerSendTextMessage(cid, 27, "Now your "..pokemon.." have a boost +"..boosts + boost..".") doSendAnimatedText(getThingPos(item2.uid), "BOOST!", 71) doPlayerSetVocation(cid,4) else return doPlayerSendCancel(cid, "Only use in yours pokemons.") end return true end a stone náo esta sumindo da bag .... me ajudem por favor abrax a todos Editado Agosto 2, 2014 10 anos por simahamed (veja o histórico de edições)
Postado Agosto 3, 2014 10 anos O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Scripting → Actions e TalkActions" Para: "OTServ → Suporte OTServ → Suporte de Scripts" STYLLER OT 2022
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.