Postado Julho 21, 2015 9 anos Autor No arquivo boost.lua nessa parte 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) não intendi muito bem, aonde está o 0,5 que adiciona por boost
Postado Julho 29, 2015 9 anos Solução 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") + 0.5) doItemSetAttribute(myball.uid, "defense", getItemAttribute(myball.uid, "defense") + 0.5) doItemSetAttribute(myball.uid, "speed", getItemAttribute(myball.uid, "speed") + 0.5) doItemSetAttribute(myball.uid, "specialattack", getItemAttribute(myball.uid, "specialattack") + 0.5) doItemSetAttribute(myball.uid, "vitality", getItemAttribute(myball.uid, "vitality") + 0.5)
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.