Ir para conteúdo

[Encerrado] Shiny Stone


Sakura777

Posts Recomendados

 

local evo = {

["Abra"] = "Shiny Abra",

["Alakazam"] = "Shiny Alakazam",

["Ariados"] = "Shiny Ariados",

["Arcanine"] = "Shiny Arcanine",

["Beedrill"] = "Shiny Beedrill",

["Blastoise"] = "Shiny Blastoise",

["Butterfree"] = "Shiny Butterfree",

["Charizard"] = "Shiny Charizard",

["Cubone"] = "Shiny Cubone",

["Dragonair"] = "Shiny Dragonair",

["Dragonite"] = "Shiny Dragonite",

["Dratini"] = "Shiny Dratini",

["Dodrio"] = "Shiny Dodrio",

["Electabuzz"] = "Shiny Electabuzz",

["Electrode"] = "Shiny Electrode",

["Espeon"] = "Shiny Espeon",

["Farfetchd"] = "Shiny Farfetchd",

["Farfetch'd"] = "Shiny Farfetch'd",

["Fearow"] = "Shiny Fearow",

["Flareon"] = "Shiny Flareon",

["Gengar"] = "Shiny Gengar",

["Golbat"] = "Shiny Golbat",

["Golem"] = "Shiny Golem",

["Grimer"] = "Shiny Grimer",

["Growlithe"] = "Shiny Growlithe",

["Gyarados"] = "Shiny Gyarados",

["Hitmonchan"] = "Shiny Hitmonchan",

["Hitmonlee"] = "Shiny Hitmonlee",

["Horsea"] = "Shiny Horsea",

["Hypno"] = "Shiny Hypno",

["Jolteon"] = "Shiny Jolteon",

["Jynx"] = "Shiny Jynx",

["Kingler"] = "Shiny Kingler",

["Krabby"] = "Shiny Krabby",

["Magneton"] = "Shiny Magneton",

["Magikarp"] = "Shiny Magikarp",

["Marowak"] = "Shiny Marowak",

["Mr. Mime"] = "Shiny Mr. Mime",

["Muk"] = "Shiny Muk",

["Nidoking"] = "Shiny Nidoking",

["Ninetales"] = "Shiny Ninetales",

["Oddish"] = "Shiny Oddish",

["Onix"] = "Shiny Onix",

["Paras"] = "Shiny Paras",

["Parasect"] = "Shiny Parasect",

["Pidgeot"] = "Shiny Pidgeot",

["Politoed"] = "Shiny Politoed",

["Pinsir"] = "Shiny Pinsir",

["Raichu"] = "Shiny Raichu",

["Raticate"] = "Shiny Raticate",

["Rattata"] = "Shiny Rattata",

["Rhydon"] = "Shiny Rhydon",

["Scyther"] = "Shiny Scyther",

["Seadra"] = "Shiny Seadra",

["Snorlax"] = "Shiny Snorlax",

["Tangela"] = "Shiny Tangela",

["Tentacool"] = "Shiny Tentacool",

["Tentacruel"] = "Shiny Tentacruel",

["Umbreon"] = "Shiny Umbreon",

["Vaporeon"] = "Shiny Vaporeon",

["Venomoth"] = "Shiny Venomoth",

["Venonat"] = "Shiny Venonat",

["Venusaur"] = "Shiny Venusaur",

["Stantler"] = "Shiny Stantler",

["Vileplume"] = "Shiny Vileplume",

["Voltorb"] = "Shiny Voltorb",

["Zubat"] = "Shiny Zubat",

}

local balls = {

[2394] = {newBall = 11737},

[2391] = {newBall = 11740},

[2393] = {newBall = 11743},

[11829] = {newBall = 11746},

[12617] = {newBall = 12621},

}

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

doPlayerSendTextMessage(cid, 27, "Congratulations! Your "..getPokeName(itemEx.uid).." evolved into a "..evo[monster].."!")

local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid)

doSendMagicEffect(getThingPos(itemEx.uid), 18)

doRemoveCreature(itemEx.uid)

doRemoveItem(item.uid, 1)

doSummonMonster(cid,evo[monster])

local pokeball = getPlayerSlotItem(cid, 8)

doItemSetAttribute(pokeball.uid, "poke", evo[monster])

doItemSetAttribute(pokeball.uid, "level", pokes[evo[monster]].level)

end

end

return FALSE

end

 

 

Alguém poderia fazer um favorzinho pra mim happy.png

No caso é um sistema de shiny stone que esta funcionando perfeitamente, porém, qualquer um destes pokemon se transformam em shiny com apenas 1 stone no caso eu quero que cada pokemon eu possa escolhe a quantidade que irá custa para se trasnforma exemplo Alakazam para Shiny Alakazam custo de 4 stone Charizard para Shiny Charizard eu quero um custo de 3 pokemon como Zubat essas coisas eu quero deixa apenas 1 custo e assim por diante, apenas faça para escolher a quantidade de cada um e eu edito a quantidade de cada pokemon . então eu queria que alguém fizesse isso para mim.

 

PS: Darei 3 rep+ para quem fizer este favor.

Link para o comentário
Compartilhar em outros sites

Tente substituir por:

 

 

local evo = {

["Abra"] = {"Shiny Abra", 2},

["Alakazam"] = {"Shiny Alakazam", 3},

["Ariados"] = {"Shiny Ariados", 3},

["Arcanine"] = {"Shiny Arcanine", 3},

["Beedrill"] = {"Shiny Beedrill", 3},

["Blastoise"] = {"Shiny Blastoise", 3},

["Butterfree"] = {"Shiny Butterfree", 3},

["Charizard"] = {"Shiny Charizard", 3},

["Cubone"] = {"Shiny Cubone", 3},

["Dragonair"] = {"Shiny Dragonair", 3},

["Dragonite"] = {"Shiny Dragonite", 3},

["Dratini"] = {"Shiny Dratini", 3},

["Dodrio"] = {"Shiny Dodrio", 3},

["Electabuzz"] = {"Shiny Electabuzz", 3},

["Electrode"] = {"Shiny Electrode", 3},

["Espeon"] = {"Shiny Espeon", 3},

["Farfetchd"] = {"Shiny Farfetchd", 3},

["Farfetch'd"] = {"Shiny Farfetch'd", 3},

["Fearow"] = {"Shiny Fearow", 3},

["Flareon"] = {"Shiny Flareon", 3},

["Gengar"] = {"Shiny Gengar", 3},

["Golbat"] = {"Shiny Golbat", 3},

["Golem"] = {"Shiny Golem", 3},

["Grimer"] = {"Shiny Grimer", 3},

["Growlithe"] = {"Shiny Growlithe", 3},

["Gyarados"] = {"Shiny Gyarados", 3},

["Hitmonchan"] = {"Shiny Hitmonchan", 3},

["Hitmonlee"] = {"Shiny Hitmonlee", 3},

["Horsea"] = {"Shiny Horsea", 3},

["Hypno"] = {"Shiny Hypno", 3},

["Jolteon"] = {"Shiny Jolteon", 3},

["Jynx"] = {"Shiny Jynx", 3},

["Kingler"] = {"Shiny Kingler", 3},

["Krabby"] = {"Shiny Krabby", 3},

["Magneton"] = {"Shiny Magneton", 3},

["Magikarp"] = {"Shiny Magikarp", 3},

["Marowak"] = {"Shiny Marowak", 3},

["Mr. Mime"] = {"Shiny Mr. Mime", 3},

["Muk"] = {"Shiny Muk", 3},

["Nidoking"] = {"Shiny Nidoking", 3},

["Ninetales"] = {"Shiny Ninetales", 3},

["Oddish"] = {"Shiny Oddish", 3},

["Onix"] = {"Shiny Onix", 3},

["Paras"] = {"Shiny Paras", 3},

["Parasect"] = {"Shiny Parasect", 3},

["Pidgeot"] = {"Shiny Pidgeot", 3},

["Politoed"] = {"Shiny Politoed", 3},

["Pinsir"] = {"Shiny Pinsir", 3},

["Raichu"] = {"Shiny Raichu", 3},

["Raticate"] = {"Shiny Raticate", 3},

["Rattata"] = {"Shiny Rattata", 3},

["Rhydon"] = {"Shiny Rhydon", 3},

["Scyther"] = {"Shiny Scyther", 3},

["Seadra"] = {"Shiny Seadra", 3},

["Snorlax"] = {"Shiny Snorlax", 3},

["Tangela"] = {"Shiny Tangela", 3},

["Tentacool"] = {"Shiny Tentacool", 3},

["Tentacruel"] = {"Shiny Tentacruel", 3},

["Umbreon"] = {"Shiny Umbreon", 3},

["Vaporeon"] = {"Shiny Vaporeon", 3},

["Venomoth"] = {"Shiny Venomoth", 3},

["Venonat"] = {"Shiny Venonat", 3},

["Venusaur"] = {"Shiny Venusaur", 3},

["Stantler"] = {"Shiny Stantler", 3},

["Vileplume"] = {"Shiny Vileplume", 3},

["Voltorb"] = {"Shiny Voltorb", 3},

["Zubat"] = {"Shiny Zubat", 3},

}

local balls = {

[2394] = {newBall = 11737},

[2391] = {newBall = 11740},

[2393] = {newBall = 11743},

[11829] = {newBall = 11746},

[12617] = {newBall = 12621},

}

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

for k,v in pairs(evo) do

if doPlayerRemoveItem(cid, item.uid, v[2]) then

doPlayerSendTextMessage(cid, 27, "Congratulations! Your "..getPokeName(itemEx.uid).." evolved into a "..evo[monster].."!")

local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid)

doSendMagicEffect(getThingPos(itemEx.uid), 18)

doRemoveCreature(itemEx.uid)

doSummonMonster(cid,evo[monster])

local pokeball = getPlayerSlotItem(cid, 8)

doItemSetAttribute(pokeball.uid, "poke", evo[monster])

doItemSetAttribute(pokeball.uid, "level", pokes[evo[monster]].level)

end

end

end

end

return FALSE

end

 

 

Agora na tabela, é só você substituir o número que ta em cada linha pelo número de Stones que gasta, exemplo:

 

[size=4]["Abra"] = {"Shiny Abra", 2},[/size]
["Alakazam"] = {"Shiny Alakazam", 3},

 

Abra gasta 2, Alakazam gasta 3, só mudar.

Reinciei o servidor dps!

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

  • 5 years later...
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...