Ir para conteúdo
  • Cadastre-se

Boost Stone e Shiny Stone nao funcionam


Posts Recomendados

Manda As scripts delas? 

está em data/actions/scripts 

 

e quero sabe servidor com level? ou sem? 

Editado por AnnaFeeh (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
local evo = {
                           --nome do shiny, qnts stones precisa
["Snorlax"] = {"Shiny Snorlax", 1},
["Gengar"] = {"Shiny Gengar", 1},
["Ninetales"] = {"Shiny Ninetales",  1},
["Raichu"] = {"Shiny Raichu", 1},
["Alakazam"] = {"Shiny Alakazam", 1},
["Venusaur"] = {"Shiny Venusaur", 1},
["Charizard"] = {"Shiny Charizard", 1},
["Blastoise"] = {"Shiny Blastoise", 1}, --alterado v2.4
["Butterfree"] = {"Shiny Butterfree", 1},
["Beedrill"] = {"Shiny Beedrill", 1},
["Pidgeot"] = {"Shiny Pidgeot", 1},
["Rattata"] = {"Shiny Rattata", 1},
["Raticate"] = {"Shiny Raticate", 1},
["Fearow"] = {"Shiny Fearow", 1},
["Nidoking"] = {"Shiny Nidoking", 1},
["Zubat"] = {"Shiny Zubat", 1},
["Golbat"] = {"Shiny Golbat", 1},
["Onix"] = {"Shiny Onix", 1},
-- ["Salamence"] = {"Shiny Salamence", 1},
["Oddish"] = {"Shiny Oddish", 1},
["Vileplume"] = {"Shiny Vileplume", 1},
["Paras"] = {"Shiny Paras", 1},
["Parasect"] = {"Shiny Parasect", 1},
["Venonat"] = {"Shiny Venonat", 1},
["Venomoth"] = {"Shiny Venomoth", 1},
["Growlithe"] = {"Shiny Growlithe", 1},
["Arcanine"] = {"Shiny Arcanine", 1},
["Abra"] = {"Shiny Abra", 1},
["Tentacool"] = {"Shiny Tentacool", 1},
["Tentacruel"] = {"Shiny Tentacruel", 1},
["Golem"] = {"Shiny Golem", 1},
["Farfetch'd"] = {"Shiny Farfetch'd", 1},
["Grimer"] = {"Shiny Grimer", 1},
["Muk"] = {"Shiny Muk", 1},
["Hypno"] = {"Shiny Hypno", 1},
["Krabby"] = {"Shiny Krabby", 1},
["Kingler"] = {"Shiny Kingler", 1},
["Voltorb"] = {"Shiny Voltorb", 1},
["Electrode"] = {"Shiny Electrode", 1},
["Cubone"] = {"Shiny Cubone", 1},
["Marowak"] = {"Shiny Marowak", 1},
["Hitmonlee"] = {"Shiny Hitmonlee", 1},
["Hitmonchan"] = {"Shiny Hitmonchan", 1},
["Tangela"] = {"Shiny Tangela", 1},
["Horsea"] = {"Shiny Horsea", 1},
["Seadra"] = {"Shiny Seadra", 1},
["Scyther"] = {"Shiny Scyther", 1},
["Jynx"] = {"Shiny Jynx", 1},
["Electabuzz"] = {"Shiny Electabuzz", 1},
["Pinsir"] = {"Shiny Pinsir", 1},
["Magikarp"] = {"Shiny Magikarp", 1},
["Gyarados"] = {"Shiny Gyarados", 1},
["Vaporeon"] = {"Shiny Vaporeon", 1},
["Jolteon"] = {"Shiny Jolteon", 1},
["Flareon"] = {"Shiny Flareon", 1},
["Dratini"] = {"Shiny Dratini", 1},
["Dragonair"] = {"Shiny Dragonair", 1},
["Dragonite"] = {"Shiny Dragonite", 1},
["Wigglytuff"] = {"Shiny Wigglytuff", 1},
["Hitmontop"] = {"Shiny Hitmontop", 1},
}
local balls = {
[11826] = {newBall = 11826},
[11832] = {newBall = 11832},
[11835] = {newBall = 11835},
[11829] = {newBall = 11829},
}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
   if isMonster(itemEx.uid) and getCreatureMaster(itemEx.uid) == cid then
          local monster = getCreatureName(itemEx.uid)
          if evo[monster] then  
                 if getPlayerItemCount(cid, item.itemid) >= evo[monster][2] then
                    doPlayerSendTextMessage(cid, 27, "Parabens! Seu "..getPokeName(itemEx.uid).." evoluiu para "..evo[monster][1].."!")
                    local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid)
                    doSendMagicEffect(getThingPos(itemEx.uid), 18)
                    doRemoveCreature(itemEx.uid)
                    doPlayerRemoveItem(cid, item.itemid, evo[monster][2]-1)
                    doRemoveItem(item.uid, 1)
                    doSummonMonster(cid,evo[monster][1])
                    local pokeball = getPlayerSlotItem(cid, 8)
                    doItemSetAttribute(pokeball.uid, "poke", evo[monster][1])
                    doItemSetAttribute(pokeball.uid, "level", pokes[evo[monster][1]].level)
                    doItemSetAttribute(ball, "hp", 1)
                    doItemSetAttribute(ball, "happy", 110)
                    local pk = getCreatureSummons(cid)[1]
                    local getShinyPokeballs = balls[getPlayerSlotItem(cid, 8).itemid]
                    doTransformItem(getPlayerSlotItem(cid, 8).uid, getShinyPokeballs.newBall)
                    adjustStatus(pk, pokeball.uid, true, false, true)
                    return TRUE
                 else
                    return doPlayerSendTextMessage(cid, 27, "You need atleast ".. evo[monster][2] .." stones to do it!")
                 end
          end
end
return FALSE
end

function onUse(cid, item, topos, item2, frompos)
local myball = getPlayerSlotItem(cid, 8)
local boost = getItemAttribute(myball.uid, "boost") or 0
local boosts = 1
if boost == 20 then
doPlayerSendCancel(cid, "Seus pokemon já está no impulso máximo.")
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

E com lvl

Link para o post
Compartilhar em outros sites

tenta:: 

local evo = {


--nome do shiny, qnts stones precisa
["Snorlax"] = {"Shiny Snorlax", 1},
["Gengar"] = {"Shiny Gengar", 1},
["Ninetales"] = {"Shiny Ninetales", 1},
["Raichu"] = {"Shiny Raichu", 1},
["Alakazam"] = {"Shiny Alakazam", 1},
["Venusaur"] = {"Shiny Venusaur", 1},
["Charizard"] = {"Shiny Charizard", 1},
["Blastoise"] = {"Shiny Blastoise", 1}, --alterado v2.4
["Butterfree"] = {"Shiny Butterfree", 1},
["Beedrill"] = {"Shiny Beedrill", 1},
["Pidgeot"] = {"Shiny Pidgeot", 1},
["Rattata"] = {"Shiny Rattata", 1},
["Raticate"] = {"Shiny Raticate", 1},
["Fearow"] = {"Shiny Fearow", 1},
["Nidoking"] = {"Shiny Nidoking", 1},
["Zubat"] = {"Shiny Zubat", 1},
["Golbat"] = {"Shiny Golbat", 1},
["Onix"] = {"Shiny Onix", 1},
-- ["Salamence"] = {"Shiny Salamence", 1},
["Oddish"] = {"Shiny Oddish", 1},
["Vileplume"] = {"Shiny Vileplume", 1},
["Paras"] = {"Shiny Paras", 1},
["Parasect"] = {"Shiny Parasect", 1},
["Venonat"] = {"Shiny Venonat", 1},
["Venomoth"] = {"Shiny Venomoth", 1},
["Growlithe"] = {"Shiny Growlithe", 1},
["Arcanine"] = {"Shiny Arcanine", 1},
["Abra"] = {"Shiny Abra", 1},
["Tentacool"] = {"Shiny Tentacool", 1},
["Tentacruel"] = {"Shiny Tentacruel", 1},
["Golem"] = {"Shiny Golem", 1},
["Farfetch'd"] = {"Shiny Farfetch'd", 1},
["Grimer"] = {"Shiny Grimer", 1},
["Muk"] = {"Shiny Muk", 1},
["Hypno"] = {"Shiny Hypno", 1},
["Krabby"] = {"Shiny Krabby", 1},
["Kingler"] = {"Shiny Kingler", 1},
["Voltorb"] = {"Shiny Voltorb", 1},
["Electrode"] = {"Shiny Electrode", 1},
["Cubone"] = {"Shiny Cubone", 1},
["Marowak"] = {"Shiny Marowak", 1},
["Hitmonlee"] = {"Shiny Hitmonlee", 1},
["Hitmonchan"] = {"Shiny Hitmonchan", 1},
["Tangela"] = {"Shiny Tangela", 1},
["Horsea"] = {"Shiny Horsea", 1},
["Seadra"] = {"Shiny Seadra", 1},
["Scyther"] = {"Shiny Scyther", 1},
["Jynx"] = {"Shiny Jynx", 1},
["Electabuzz"] = {"Shiny Electabuzz", 1},
["Pinsir"] = {"Shiny Pinsir", 1},
["Magikarp"] = {"Shiny Magikarp", 1},
["Gyarados"] = {"Shiny Gyarados", 1},
["Vaporeon"] = {"Shiny Vaporeon", 1},
["Jolteon"] = {"Shiny Jolteon", 1},
["Flareon"] = {"Shiny Flareon", 1},
["Dratini"] = {"Shiny Dratini", 1},
["Dragonair"] = {"Shiny Dragonair", 1},
["Dragonite"] = {"Shiny Dragonite", 1},
["Wigglytuff"] = {"Shiny Wigglytuff", 1},
["Hitmontop"] = {"Shiny Hitmontop", 1},
}
local balls = {
[11826] = {newBall = 11826},
[11832] = {newBall = 11832},
[11835] = {newBall = 11835},
[11829] = {newBall = 11829},
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if isMonster(itemEx.uid) and getCreatureMaster(itemEx.uid) == cid then
local monster = getCreatureName(itemEx.uid)
if evo[monster] then
if getPlayerItemCount(cid, item.itemid) >= evo[monster][2] then
doPlayerSendTextMessage(cid, 27, "Parabens! Seu "..getPokeName(itemEx.uid).." evoluiu para "..evo[monster][1].."!")
local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid)
doSendMagicEffect(getThingPos(itemEx.uid), 18)
doRemoveCreature(itemEx.uid)
doPlayerRemoveItem(cid, item.itemid, evo[monster][2]-1)
doRemoveItem(item.uid, 1)
doSummonMonster(cid,evo[monster][1])
local pokeball = getPlayerSlotItem(cid, 8)
doItemSetAttribute(pokeball.uid, "poke", evo[monster][1])
doItemSetAttribute(pokeball.uid, "level", pokes[evo[monster][1]].level)
doItemSetAttribute(ball, "hp", 1)
doItemSetAttribute(ball, "happy", 110)
local pk = getCreatureSummons(cid)[1]
local getShinyPokeballs = balls[getPlayerSlotItem(cid, 8).itemid]
doTransformItem(getPlayerSlotItem(cid, 8).uid, getShinyPokeballs.newBall)
adjustStatus(pk, pokeball.uid, true, false, true)
return TRUE
else
return doPlayerSendTextMessage(cid, 27, "You need atleast ".. evo[monster][2] .." stones to do it!")
end
end
end
return FALSE
end

 

Fale se deu certo e mim mande o seu booststone.lua *--* 

Link para o post
Compartilhar em outros sites
function onUse(cid, item, topos, item2, frompos)
local myball = getPlayerSlotItem(cid, 8)
local boost = getItemAttribute(myball.uid, "boost") or 0
local boosts = 1
if boost == 20 then
doPlayerSendCancel(cid, "Seus pokemon já está no impulso máximo.")
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

Nao funciono

Link para o post
Compartilhar em outros sites

Eu consigui fazer o da shiny vo tenta fazer da boost tbm a shiny faltava coloka no actions.XML era soh coloka isso aqui:

<action itemid="12417" event="script" value="Shiny stone.lua" allowfaruse="1"/>

Link para o post
Compartilhar em outros sites

AnnahFeeh, Eu fiz tudo igualzinho com a shiny stone Saiu Tudo Certo, Mas Quando Vou Colocar Para evoluir o pokemon fala q "This Pokémon can't envolve, oq eu faço ?

Link para o post
Compartilhar em outros sites

AnnahFeeh, Eu fiz tudo igualzinho com a shiny stone Saiu Tudo Certo, Mas Quando Vou Colocar Para evoluir o pokemon fala q "This Pokémon can't envolve, oq eu faço ?

você viu se na lista tem ele? 

Link para o post
Compartilhar em outros sites

Consiguir Annah Vlw Ae!!!, So Tem Uma Coisa A Boost Stone.

 

Tem Um Debug.

 

Uso A Stone De Button Quando Vou Clicar No Poke Exem: Alakazam. Ai Fala  You Cannot use This Object

 

Ai Não fala nada Que Aumentou. Quando Boto Goback o Poke Alakazam Quando Olho Informações Do Poke ele Aumentou, Mas Não Gastou A Boost Stone Ficou Infinita

 

PQ ? ME AJUDA PLZ!

Link para o post
Compartilhar em outros sites

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo