Ir para conteúdo

Shiny Stone Por Action


Gabrieltxu

Posts Recomendados

Fala aew galera Hj venho Postar como colocar Shiny Stone No seu Server sem erros xD

Sem mais delongas vamos para o Script!

 

1° Crie um Arquivo .lua dentro de data/actions/scripts chamado shinystone

E coloque isso dentro dela!

 

local evo = {

["Abra"] = "Shiny Abra",
["Alakazam"] = "Shiny Alakazam",
["Arcanine"] = "Shiny Arcanine",
["Beedrill"] = "Shiny Beedrill",
["Blastoise"] = "Shiny Blastoise",
["Bulbasaur"] = "Shiny Bulbasaur",
["Butterfree"] = "Shiny Butterfree",
["Charizard"] = "Shiny Charizard",
["Charmander"] = "Shiny Charmander",
["Charmeleon"] = "Shiny Charmeleon",
["Cubone"] = "Shiny Cubone",
["Dragonair"] = "Shiny Dragonair",
["Dragonite"] = "Shiny Dragonite",
["Dratini"] = "Shiny Dratini",
["Electabuzz"] = "Shiny Electabuzz",
["Electrode"] = "Shiny Electrode",
["Farfetchd"] = "Shiny Farfetchd",
["Elekid"] = "Shiny Elekid",
["Farfetch'd"] = "Shiny Farfetch'd",
["Fearow"] = "Shiny Fearow",
["Flareon"] = "Shiny Flareon",
["Gastly"] = "Shiny Gastly,
["Gengar"] = "Shiny Gengar",
["Gloom"] = "Shiny Gloom",
["Golbat"] = "Shiny Golbat",
["Golem"] = "Shiny Golem",
["Grimer"] = "Shiny Grimer",
["Growlithe"] = "Shiny Growlithe",
["Gyarados"] = "Shiny Gyarados",
["Haunter"] = "Shiny Haunter",
["Hitmonchan"] = "Shiny Hitmonchan",
["Hitmonlee"] = "Shiny Hitmonlee",
["Horsea"] = "Shiny Horsea",
["Hypno"] = "Shiny Hypno",
["Ivysaur"] = "Shiny Ivysaur",
["Jolteon"] = "Shiny Jolteon",
["Jynx"] = "Shiny Jynx",
["Kingler"] = "Shiny Kingler",
["Krabby"] = "Shiny Krabby",
["Magby"] = "Shiny Magby",
["Magikarp"] = "Shiny Magikarp",
["Marowak"] = "Shiny Marowak",
["Muk"] = "Shiny Muk",
["Nidoking"] = "Shiny Nidoking",
["Nidoran Female"] = "Shiny Nidoran Female",
["Nidoran Male"] = "Shiny Nidoran Male",
["Nidorina"] = "Shiny Nidorina",
["Nidorino"] = "Shiny Nidorino",
["Oddish"] = "Shiny Oddish",
["Onix"] = "Shiny Onix",
["Paras"] = "Shiny Paras",
["Parasect"] = "Shiny Parasect",
["Pidgeot"] = "Shiny Pidgeot",
["Pidgeotto"] = "Shiny Pidgeotto",
["Pidgey"] = "Shiny Pidgey",
["Pikachu"] = "Shiny Pikachu",
["Pinsir"] = "Shiny Pinsir",
["porygon2"] = "Shiny porygon2",
["Raichu"] = "Shiny Raichu",
["Raticate"] = "Shiny Raticate",
["Rattata"] = "Shiny Rattata",
["Scyther"] = "Shiny Scyther",
["Seadra"] = "Shiny Seadra",
["Snorlax"] = "Shiny Snorlax",
["Squirtle"] = "Shiny Squirtle",
["Tangela"] = "Shiny Tangela",
["Tentacool"] = "Shiny Tentacool",
["Tentacruel"] = "Shiny Tentacruel",
["Vaporeon"] = "Shiny Vaporeon",
["Venomoth"] = "Shiny Venomoth",
["Venonat"] = "Shiny Venonat",
["Venusaur"] = "Shiny Venusaur",
["Vileplume"] = "Shiny Vileplume",
["Voltorb"] = "Shiny Voltorb",
["Wartortle"] = "Shiny Wartortle",
["Wigglytuff"] = "Shiny Wigglytuff",
["wingull"] = "Shiny wingull",
["Zubat"] = "Shiny Zubat",
}
local pokeballs = {
[2531] = {"Pokeball"},
[2557] = {"Superball"},
[2524] = {"Greatball"},
[2525] = {"Ultraball"},
[2523] = {"Masterball"},
}
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
local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid)
doRemoveCreature(itemEx.uid)
doRemoveItem(item.uid)
local summon = doCreateMonster(evo[monster], toPosition)
doConvinceCreature(cid, summon)
local balls = pokeballs[getPlayerSlotItem(cid,8).itemid]
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "name", ""..evo[monster].." "..balls[1])
doCreatureAddHealth(summon, health-maxHealth)
doSendMagicEffect(getThingPos(summon), 18)
return TRUE
end
end
return FALSE
end

 

 

E depois vam em actions.xml e add essa seguinte tag

 

<action itemid="xxx" event="script" value="shinystone.lua" allowfaruse="1"/>

Em xxx vc coloca o ID da Sua Stone e Pronto xD

system facil de colocar né? xD

Se Gostou rep++

Link para o comentário
Compartilhar em outros sites

Fala aew galera Hj venho Postar como colocar Shiny Stone No seu Server sem erros xD

Sem mais delongas vamos para o Script!

 

1° Crie um Arquivo .lua dentro de data/actions/scripts chamado shinystone

E coloque isso dentro dela!

 

local evo = {

["Abra"] = "Shiny Abra",
["Alakazam"] = "Shiny Alakazam",
["Arcanine"] = "Shiny Arcanine",
["Beedrill"] = "Shiny Beedrill",
["Blastoise"] = "Shiny Blastoise",
["Bulbasaur"] = "Shiny Bulbasaur",
["Butterfree"] = "Shiny Butterfree",
["Charizard"] = "Shiny Charizard",
["Charmander"] = "Shiny Charmander",
["Charmeleon"] = "Shiny Charmeleon",
["Cubone"] = "Shiny Cubone",
["Dragonair"] = "Shiny Dragonair",
["Dragonite"] = "Shiny Dragonite",
["Dratini"] = "Shiny Dratini",
["Electabuzz"] = "Shiny Electabuzz",
["Electrode"] = "Shiny Electrode",
["Farfetchd"] = "Shiny Farfetchd",
["Elekid"] = "Shiny Elekid",
["Farfetch'd"] = "Shiny Farfetch'd",
["Fearow"] = "Shiny Fearow",
["Flareon"] = "Shiny Flareon",
["Gastly"] = "Shiny Gastly,
["Gengar"] = "Shiny Gengar",
["Gloom"] = "Shiny Gloom",
["Golbat"] = "Shiny Golbat",
["Golem"] = "Shiny Golem",
["Grimer"] = "Shiny Grimer",
["Growlithe"] = "Shiny Growlithe",
["Gyarados"] = "Shiny Gyarados",
["Haunter"] = "Shiny Haunter",
["Hitmonchan"] = "Shiny Hitmonchan",
["Hitmonlee"] = "Shiny Hitmonlee",
["Horsea"] = "Shiny Horsea",
["Hypno"] = "Shiny Hypno",
["Ivysaur"] = "Shiny Ivysaur",
["Jolteon"] = "Shiny Jolteon",
["Jynx"] = "Shiny Jynx",
["Kingler"] = "Shiny Kingler",
["Krabby"] = "Shiny Krabby",
["Magby"] = "Shiny Magby",
["Magikarp"] = "Shiny Magikarp",
["Marowak"] = "Shiny Marowak",
["Muk"] = "Shiny Muk",
["Nidoking"] = "Shiny Nidoking",
["Nidoran Female"] = "Shiny Nidoran Female",
["Nidoran Male"] = "Shiny Nidoran Male",
["Nidorina"] = "Shiny Nidorina",
["Nidorino"] = "Shiny Nidorino",
["Oddish"] = "Shiny Oddish",
["Onix"] = "Shiny Onix",
["Paras"] = "Shiny Paras",
["Parasect"] = "Shiny Parasect",
["Pidgeot"] = "Shiny Pidgeot",
["Pidgeotto"] = "Shiny Pidgeotto",
["Pidgey"] = "Shiny Pidgey",
["Pikachu"] = "Shiny Pikachu",
["Pinsir"] = "Shiny Pinsir",
["porygon2"] = "Shiny porygon2",
["Raichu"] = "Shiny Raichu",
["Raticate"] = "Shiny Raticate",
["Rattata"] = "Shiny Rattata",
["Scyther"] = "Shiny Scyther",
["Seadra"] = "Shiny Seadra",
["Snorlax"] = "Shiny Snorlax",
["Squirtle"] = "Shiny Squirtle",
["Tangela"] = "Shiny Tangela",
["Tentacool"] = "Shiny Tentacool",
["Tentacruel"] = "Shiny Tentacruel",
["Vaporeon"] = "Shiny Vaporeon",
["Venomoth"] = "Shiny Venomoth",
["Venonat"] = "Shiny Venonat",
["Venusaur"] = "Shiny Venusaur",
["Vileplume"] = "Shiny Vileplume",
["Voltorb"] = "Shiny Voltorb",
["Wartortle"] = "Shiny Wartortle",
["Wigglytuff"] = "Shiny Wigglytuff",
["wingull"] = "Shiny wingull",
["Zubat"] = "Shiny Zubat",
}
local pokeballs = {
[2531] = {"Pokeball"},
[2557] = {"Superball"},
[2524] = {"Greatball"},
[2525] = {"Ultraball"},
[2523] = {"Masterball"},
}
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
local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid)
doRemoveCreature(itemEx.uid)
doRemoveItem(item.uid)
local summon = doCreateMonster(evo[monster], toPosition)
doConvinceCreature(cid, summon)
local balls = pokeballs[getPlayerSlotItem(cid,8).itemid]
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "name", ""..evo[monster].." "..balls[1])
doCreatureAddHealth(summon, health-maxHealth)
doSendMagicEffect(getThingPos(summon), 18)
return TRUE
end
end
return FALSE
end

 

 

E depois vam em actions.xml e add essa seguinte tag

 

<action itemid="xxx" event="script" value="shinystone.lua" allowfaruse="1"/>

Em xxx vc coloca o ID da Sua Stone e Pronto xD

system facil de colocar né? xD

Se Gostou rep++

 

Funciona No Server do slicer?

mais eu acho que já vi esse sistema em algum lugar!!

Link para o comentário
Compartilhar em outros sites

Gabriel aki ta dando algum error sla tipo eu uso a shiny e ele vira shiny eu fiz um teste com o shiny electabuzz ai eu uso a shiny stone e ele vira shiny mais quando eu chamo ele de volta pra ball, e chamo novamente ele volta a um electabuzz normal sem ser shiny, poderia me ajudar?

 

Vejam o error que deu aki :

[27/12/2012 09:49:29] [Error - Action Interface]

[27/12/2012 09:49:29] data/actions/scripts/stones/shinystone.lua:onUse

[27/12/2012 09:49:29] Description:

[27/12/2012 09:49:29] data/actions/scripts/stones/shiny.stonelua:66: attempt to index local 'balls' (a nil value)

[27/12/2012 09:49:29] stack traceback:

[27/12/2012 09:49:29] data/actions/scripts/stones/shinystone.lua:66: in function <data/actions/scripts/stones/shiny.lua:56>

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

Corrigi, poem esse no lugar e vai funcionar normalmente:

local evo = {

["Abra"] = "Shiny Abra",
["Alakazam"] = "Shiny Alakazam",
["Arcanine"] = "Shiny Arcanine",
["Beedrill"] = "Shiny Beedrill",
["Blastoise"] = "Shiny Blastoise",
["Bulbasaur"] = "Shiny Bulbasaur",
["Butterfree"] = "Shiny Butterfree",
["Charizard"] = "Shiny Charizard",
["Charmander"] = "Shiny Charmander",
["Charmeleon"] = "Shiny Charmeleon",
["Cubone"] = "Shiny Cubone",
["Dragonair"] = "Shiny Dragonair",
["Dragonite"] = "Shiny Dragonite",
["Dratini"] = "Shiny Dratini",
["Electabuzz"] = "Shiny Electabuzz",
["Electrode"] = "Shiny Electrode",
["Farfetchd"] = "Shiny Farfetchd",
["Elekid"] = "Shiny Elekid",
["Farfetch'd"] = "Shiny Farfetch'd",
["Fearow"] = "Shiny Fearow",
["Flareon"] = "Shiny Flareon",
["Gastly"] = "Shiny Gastly,
["Gengar"] = "Shiny Gengar",
["Gloom"] = "Shiny Gloom",
["Golbat"] = "Shiny Golbat",
["Golem"] = "Shiny Golem",
["Grimer"] = "Shiny Grimer",
["Growlithe"] = "Shiny Growlithe",
["Gyarados"] = "Shiny Gyarados",
["Haunter"] = "Shiny Haunter",
["Hitmonchan"] = "Shiny Hitmonchan",
["Hitmonlee"] = "Shiny Hitmonlee",
["Horsea"] = "Shiny Horsea",
["Hypno"] = "Shiny Hypno",
["Ivysaur"] = "Shiny Ivysaur",
["Jolteon"] = "Shiny Jolteon",
["Jynx"] = "Shiny Jynx",
["Kingler"] = "Shiny Kingler",
["Krabby"] = "Shiny Krabby",
["Magby"] = "Shiny Magby",
["Magikarp"] = "Shiny Magikarp",
["Marowak"] = "Shiny Marowak",
["Muk"] = "Shiny Muk",
["Nidoking"] = "Shiny Nidoking",
["Nidoran Female"] = "Shiny Nidoran Female",
["Nidoran Male"] = "Shiny Nidoran Male",
["Nidorina"] = "Shiny Nidorina",
["Nidorino"] = "Shiny Nidorino",
["Oddish"] = "Shiny Oddish",
["Onix"] = "Shiny Onix",
["Paras"] = "Shiny Paras",
["Parasect"] = "Shiny Parasect",
["Pidgeot"] = "Shiny Pidgeot",
["Pidgeotto"] = "Shiny Pidgeotto",
["Pidgey"] = "Shiny Pidgey",
["Pikachu"] = "Shiny Pikachu",
["Pinsir"] = "Shiny Pinsir",
["porygon2"] = "Shiny porygon2",
["Raichu"] = "Shiny Raichu",
["Raticate"] = "Shiny Raticate",
["Rattata"] = "Shiny Rattata",
["Scyther"] = "Shiny Scyther",
["Seadra"] = "Shiny Seadra",
["Snorlax"] = "Shiny Snorlax",
["Squirtle"] = "Shiny Squirtle",
["Tangela"] = "Shiny Tangela",
["Tentacool"] = "Shiny Tentacool",
["Tentacruel"] = "Shiny Tentacruel",
["Vaporeon"] = "Shiny Vaporeon",
["Venomoth"] = "Shiny Venomoth",
["Venonat"] = "Shiny Venonat",
["Venusaur"] = "Shiny Venusaur",
["Vileplume"] = "Shiny Vileplume",
["Voltorb"] = "Shiny Voltorb",
["Wartortle"] = "Shiny Wartortle",
["Wigglytuff"] = "Shiny Wigglytuff",
["wingull"] = "Shiny wingull",
["Zubat"] = "Shiny Zubat",
}
local pokeballs = {
[2531] = {"Pokeball"},
[2557] = {"Superball"},
[2524] = {"Greatball"},
[2525] = {"Ultraball"},
[2523] = {"Masterball"},
}
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
local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid)
doRemoveCreature(itemEx.uid)
doRemoveItem(item.uid)
local summon = doCreateMonster(evo[monster], toPosition)
doConvinceCreature(cid, summon)
local balls = pokeballs[getPlayerSlotItem(cid,8).itemid]
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "poke", ""..evo[monster].." "..balls[1])
doCreatureAddHealth(summon, health-maxHealth)
doSendMagicEffect(getThingPos(summon), 18)
return TRUE
end
end
return FALSE
end

Link para o comentário
Compartilhar em outros sites

Corrigi, poem esse no lugar e vai funcionar normalmente:

local evo = {

["Abra"] = "Shiny Abra",
["Alakazam"] = "Shiny Alakazam",
["Arcanine"] = "Shiny Arcanine",
["Beedrill"] = "Shiny Beedrill",
["Blastoise"] = "Shiny Blastoise",
["Bulbasaur"] = "Shiny Bulbasaur",
["Butterfree"] = "Shiny Butterfree",
["Charizard"] = "Shiny Charizard",
["Charmander"] = "Shiny Charmander",
["Charmeleon"] = "Shiny Charmeleon",
["Cubone"] = "Shiny Cubone",
["Dragonair"] = "Shiny Dragonair",
["Dragonite"] = "Shiny Dragonite",
["Dratini"] = "Shiny Dratini",
["Electabuzz"] = "Shiny Electabuzz",
["Electrode"] = "Shiny Electrode",
["Farfetchd"] = "Shiny Farfetchd",
["Elekid"] = "Shiny Elekid",
["Farfetch'd"] = "Shiny Farfetch'd",
["Fearow"] = "Shiny Fearow",
["Flareon"] = "Shiny Flareon",
["Gastly"] = "Shiny Gastly,
["Gengar"] = "Shiny Gengar",
["Gloom"] = "Shiny Gloom",
["Golbat"] = "Shiny Golbat",
["Golem"] = "Shiny Golem",
["Grimer"] = "Shiny Grimer",
["Growlithe"] = "Shiny Growlithe",
["Gyarados"] = "Shiny Gyarados",
["Haunter"] = "Shiny Haunter",
["Hitmonchan"] = "Shiny Hitmonchan",
["Hitmonlee"] = "Shiny Hitmonlee",
["Horsea"] = "Shiny Horsea",
["Hypno"] = "Shiny Hypno",
["Ivysaur"] = "Shiny Ivysaur",
["Jolteon"] = "Shiny Jolteon",
["Jynx"] = "Shiny Jynx",
["Kingler"] = "Shiny Kingler",
["Krabby"] = "Shiny Krabby",
["Magby"] = "Shiny Magby",
["Magikarp"] = "Shiny Magikarp",
["Marowak"] = "Shiny Marowak",
["Muk"] = "Shiny Muk",
["Nidoking"] = "Shiny Nidoking",
["Nidoran Female"] = "Shiny Nidoran Female",
["Nidoran Male"] = "Shiny Nidoran Male",
["Nidorina"] = "Shiny Nidorina",
["Nidorino"] = "Shiny Nidorino",
["Oddish"] = "Shiny Oddish",
["Onix"] = "Shiny Onix",
["Paras"] = "Shiny Paras",
["Parasect"] = "Shiny Parasect",
["Pidgeot"] = "Shiny Pidgeot",
["Pidgeotto"] = "Shiny Pidgeotto",
["Pidgey"] = "Shiny Pidgey",
["Pikachu"] = "Shiny Pikachu",
["Pinsir"] = "Shiny Pinsir",
["porygon2"] = "Shiny porygon2",
["Raichu"] = "Shiny Raichu",
["Raticate"] = "Shiny Raticate",
["Rattata"] = "Shiny Rattata",
["Scyther"] = "Shiny Scyther",
["Seadra"] = "Shiny Seadra",
["Snorlax"] = "Shiny Snorlax",
["Squirtle"] = "Shiny Squirtle",
["Tangela"] = "Shiny Tangela",
["Tentacool"] = "Shiny Tentacool",
["Tentacruel"] = "Shiny Tentacruel",
["Vaporeon"] = "Shiny Vaporeon",
["Venomoth"] = "Shiny Venomoth",
["Venonat"] = "Shiny Venonat",
["Venusaur"] = "Shiny Venusaur",
["Vileplume"] = "Shiny Vileplume",
["Voltorb"] = "Shiny Voltorb",
["Wartortle"] = "Shiny Wartortle",
["Wigglytuff"] = "Shiny Wigglytuff",
["wingull"] = "Shiny wingull",
["Zubat"] = "Shiny Zubat",
}
local pokeballs = {
[2531] = {"Pokeball"},
[2557] = {"Superball"},
[2524] = {"Greatball"},
[2525] = {"Ultraball"},
[2523] = {"Masterball"},
}
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
local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid)
doRemoveCreature(itemEx.uid)
doRemoveItem(item.uid)
local summon = doCreateMonster(evo[monster], toPosition)
doConvinceCreature(cid, summon)
local balls = pokeballs[getPlayerSlotItem(cid,8).itemid]
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "poke", ""..evo[monster].." "..balls[1])
doCreatureAddHealth(summon, health-maxHealth)
doSendMagicEffect(getThingPos(summon), 18)
return TRUE
end
end
return FALSE
end

 

para funcionar no pda troque o id das balls pois estao diferentes

Link para o comentário
Compartilhar em outros sites

@chuckles Deu esse error aki quando eu usei a shiny stone no poke ele virou shiny mais quando eu chamei de volta pra ball e chamei de volta pra foda da ball ele não era mais shiny e voltou ah um poke normal e nakele negocio que liga o server aparece esse error veja :

 

 

[28/12/2012 14:06:08] [Error - Action Interface]

[28/12/2012 14:06:08] data/actions/scripts/shiny stone.lua:onUse

[28/12/2012 14:06:08] Description:

[28/12/2012 14:06:08] data/actions/scripts/shiny stone.lua:98: attempt to index local 'balls' (a nil value)

[28/12/2012 14:06:08] stack traceback:

[28/12/2012 14:06:08] data/actions/scripts/shiny stone.lua:98: in function <data/actions/scripts/shiny stone.lua:88>

 

Teria como me ajudar nesse error não sei o que significa

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...