Ir para conteúdo

Posts Recomendados

2 minutos atrás, yanloco70 disse:

Funciono Mano so que n aumento vida e fico assim 

Sem título.png

 

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

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

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

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

Sem título.png

Sem título.png

5978fb8f7262b_Semttulo.png.573a352c3ad7424fc4e28cf8a89f04f8.png

5978fbbd3d16b_Semttulo.png.05665cdf1c0a7f79f80e8742e0c949b2.png

Editado por yanloco70
Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 2 years later...
×
×
  • Criar Novo...