2 minutos atrás, yanloco70 disse:
function onUse(cid, item, topos, item2, frompos)local myball = getPlayerSlotItem(cid, 8)local Reset = getItemAttribute(myball.uid, "Reset") or 0local Resets = 0local Reset_rate = 1.5 -- rate que ira almentar dos stats do pokemonif Reset == 50 thenreturn doPlayerSendCancel(cid, "Sorry, is not possible.")end if #getCreatureSummons(cid) >= 1 thenif getPlayerAccess(cid) == 6 thenResets = ( 10 )endResets = Resets + 1local pokemon = getItemAttribute(myball.uid, "poke")local vitalidade = pokes[pokemon].vitality * Reset_ratedoSetItemAttribute(myball.uid, "Reset", Reset + Resets)doItemSetAttribute(myball.uid, "vitality", getItemAttribute(myball.uid, "vitality") + vitalidade)doRemoveItem(item.uid)doSendMagicEffect(getThingPos(item2.uid), 40)doPlayerSendTextMessage(cid, 27, "Congrulations, your "..pokemon..", as beem Reseted +1.")doPlayerSendTextMessage(cid, 27, "Now your "..pokemon.." have a Reset +"..Resets + Reset..".")doSendAnimatedText(getThingPos(item2.uid), "Reset!", 71)doPlayerSetVocation(cid,4)elsereturn doPlayerSendCancel(cid, "Only use in yours pokemons.")endreturn trueend








info
Grupo: Campones
Registrado: 18/11/16
Posts: 36
Reputação: +2
Funciono Mano so que n aumento vida e fico assim