yanloco70 2 Postado Julho 26, 2017 Autor Share Postado Julho 26, 2017 Funciono Mano so que n aumento vida e fico assim Link para o comentário Compartilhar em outros sites More sharing options...
Crypter 136 Postado Julho 26, 2017 Share Postado Julho 26, 2017 2 minutos atrás, yanloco70 disse: Funciono Mano so que n aumento vida e fico assim 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 Link para o comentário Compartilhar em outros sites More sharing options...
yanloco70 2 Postado Julho 26, 2017 Autor Share Postado Julho 26, 2017 1 m servidor caiu ligando 3 minutos atrás, Crypter 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 [26/07/2017 17:18:36] [Error - Action Interface] [26/07/2017 17:18:36] data/actions/scripts/ResetPoke.lua:onUse [26/07/2017 17:18:36] Description: [26/07/2017 17:18:36] data/actions/scripts/ResetPoke.lua:18: attempt to perform arithmetic on a nil value [26/07/2017 17:18:36] stack traceback: [26/07/2017 17:18:36] data/actions/scripts/ResetPoke.lua:18: in function <data/actions/scripts/ResetPoke.lua:1> Link para o comentário Compartilhar em outros sites More sharing options...
Crypter 136 Postado Julho 26, 2017 Share Postado Julho 26, 2017 2 minutos atrás, yanloco70 disse: 1 m servidor caiu ligando [26/07/2017 17:18:36] [Error - Action Interface] [26/07/2017 17:18:36] data/actions/scripts/ResetPoke.lua:onUse [26/07/2017 17:18:36] Description: [26/07/2017 17:18:36] data/actions/scripts/ResetPoke.lua:18: attempt to perform arithmetic on a nil value [26/07/2017 17:18:36] stack traceback: [26/07/2017 17:18:36] data/actions/scripts/ResetPoke.lua:18: in function <data/actions/scripts/ResetPoke.lua:1> Teu servidor não usa esse tipo de configuração , qual tua base ? Link para o comentário Compartilhar em outros sites More sharing options...
yanloco70 2 Postado Julho 26, 2017 Autor Share Postado Julho 26, 2017 (editado) 21 minutos atrás, Nogard disse: Reset_HP = 100000 -- quantia que será adicionada ao hpReset_Max = 100function onUse(cid, item, topos, item2, frompos)local myball = getPlayerSlotItem(cid, 8)local Resets = getItemAttribute(myball.uid, "Reset") or 0if Resets == Reset_Max thenreturn doPlayerSendCancel(cid, "Sorry, is not possible.")end if #getCreatureSummons(cid) >= 1 thenResets = Resets + 1local pokemon = getItemAttribute(myball.uid, "poke")local vit = pokes[pokemon].vitality + (Reset_HP * Resets)doSetItemAttribute(myball.uid, "Reset", Resets)doItemSetAttribute(myball.uid, "vitality", getItemAttribute(myball.uid, "vitality") + vit)setCreatureMaxHealth(getCreatureSummons(cid)[1], getCreatureMaxHealth(getCreatureSummons(cid)[1]) + Reset_HP)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)elsereturn doPlayerSendCancel(cid, "Only use in yours pokemons.")endreturn trueend Mesmo erro men 12 minutos atrás, Crypter disse: Teu servidor não usa esse tipo de configuração , qual tua base ? Men Cyan Pda 22 minutos atrás, Crypter 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 off = pokes[pokemon].offense * Reset_rate * Resetslocal def = pokes[pokemon].defense * Reset_rate * Resetslocal agi = pokes[pokemon].agility * Resetslocal spatk = pokes[pokemon].specialattack * Reset_rate * Resetslocal vit = pokes[pokemon].vitality * Reset_rate * ResetsdoSetItemAttribute(myball.uid, "Reset", Reset + Resets)if getItemAttribute(myball.uid, "offense") thendoItemSetAttribute(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)enddoRemoveItem(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 Esse ate foi normal soq nao aumenta 100k de vida e aparece tudo normal e gasta a reset stone normal a e aparece [26/07/2017 17:28:38] [Error - Action Interface] [26/07/2017 17:28:38] data/actions/scripts/ResetPoke.lua:onUse [26/07/2017 17:28:38] Description: [26/07/2017 17:28:38] (luaGetThingPosition) Thing not found [26/07/2017 17:28:38] [Warning - Vocations::getVocation] Vocation 4 not found. [26/07/2017 17:28:38] [Error - Action Interface] [26/07/2017 17:28:38] data/actions/scripts/ResetPoke.lua:onUse [26/07/2017 17:28:38] Description: [26/07/2017 17:28:38] (luaGetThingPosition) Thing not found Editado Julho 26, 2017 por yanloco70 Link para o comentário Compartilhar em outros sites More sharing options...
wevertonvrb 25 Postado Agosto 3, 2017 Share Postado Agosto 3, 2017 sem contar q agora ta mostrando apenas o reset, o boost sumiu Link para o comentário Compartilhar em outros sites More sharing options...
KaboFlow 54 Postado Setembro 12, 2019 Share Postado Setembro 12, 2019 nadem ajuda ? muito op e system mais presiso um? algem ajude ai Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados