HU
script

[Pedido] Script boost stone +50

Por Huezin, 22 de out. de 2015 em Scripts

boost
da
+50
6
1.7k
HuezinH
22 de outubro de 2015 às 20:56

Queria um script de boost stone, só que em vez de ele dar +1 ao pokemon, ele dá +50 em uma unica usada

tentei editar o script normal da boost stone e não deu

Pda 8.54

SkyLighS
22 de outubro de 2015 às 21:56

tem como postar o script normal?

HuezinH
23 de outubro de 2015 às 00:13

não tenho o script aqui mais vou pegar um aqui e ja edito e posto

 

@

unction onUse(cid, item, topos, item2, frompos) local myball = getPlayerSlotItem(cid, 8) local boost = getItemAttribute(myball.uid, "boost") or 0 local boosts = 5 if boost == 70 then doPlayerSendCancel(cid, "Your pokemon is already at maximum boost.") return true end if not isSummon(item2.uid) then doPlayerSendCancel(cid, "Use only in your pokemons.") return true end boosts = boosts 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 newBoost = boost + boosts if newBoost > 70 then newBoost = 70 end doSetItemAttribute(myball.uid, "boost", newBoost) 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), 103) doPlayerSendTextMessage(cid, 27, "Congrulations, your "..pokemon..", as beem boosted +"..boosts..".") doPlayerSendTextMessage(cid, 27, "Now your "..pokemon.." have a boost +"..newBoost..".") doSendAnimatedText(getThingPos(item2.uid), "+"..boosts.." Boost", 215) return true end

 

 

 

Editado Outubro 23 por Huezin

meubkM
23 de outubro de 2015 às 14:58
Melhor resposta

como se posta o script desta forma cara ? use o "código", que talvez eu possa ajudar

HuezinH
23 de outubro de 2015 às 18:13

nossa tinha bugado mais resolvido já

LumusL
26 de outubro de 2015 às 23:22

Tópico Movido
Este tópico foi movido de "OTServSuporte OTServSuporte Scripting"
para "OTServSuporte OTServSuporte ScriptingPedidos e dúvidas resolvidos - Scripting".