Ir para conteúdo

Shiny Stone Por Action


Gabrieltxu

Posts Recomendados

@pobredobrega vei acontecel a mesma coisa o id da stone é 12598, o id da ball :2391,2392,2393,2394

 

veja como ta a scripter :

 

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",

["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 = {

[2394] = {"Pokeball"},

[2393] = {"Superball"},

[2391] = {"Greatball"},

[2392] = {"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

 

 

Tag:<action itemid="12598" event="script" value="shinystone.lua" allowfaruse="1"/>

 

Ainda continua com o mesmo error

 

[28/12/2012 15:30:16] [Error - Action Interface]

[28/12/2012 15:30:16] data/actions/scripts/shinytone.lua:onUse

[28/12/2012 15:30:16] Description:

[28/12/2012 15:30:16] data/actions/scripts/shinytone.lua:98: attempt to index local 'balls' (a nil value)

[28/12/2012 15:30:16] stack traceback:

[28/12/2012 15:30:16] data/actions/scripts/shinytone.lua:98: in function <data/actions/scripts/shinytone.lua:88>

 

 

Pergunta a tag tem que ser em uma local expecifico para colocar ?

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

Galera testei o script aqui, troquei as ids das ball pelas do meu server o erro não aparece mais,porém ao chamar o poke de volta a ball, quando chama ele dinovo ele já não é mais shiny, alguem poderia me dizer o pq?

Link para o comentário
Compartilhar em outros sites

Todos, substituam seus arquivos da actions por este:


                                  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 = {
[11826] = {"normal"},
[11835] = {"super"},
[11832] = {"great"},
[11829] = {"ultra"},
}
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

@Smix

 

Continua O msm Preblema Aki Se faz ele shiny bunitin ai quando vc voltar ele pra pokebola ele volta ao normal oq eu fasso ... ?

 

Rep ++ por 1 semana quem ajuda nois aki ..

 

olhem o erro \/

 

[30/12/2012 04:28:53] [Error - Action Interface]

[30/12/2012 04:28:53] data/actions/scripts/shinystone.lua:onUse

[30/12/2012 04:28:53] Description:

[30/12/2012 04:28:53] (luaDoCreateMonster) Cannot create monster: Shiny Charizard

 

[30/12/2012 04:28:53] [Error - Action Interface]

[30/12/2012 04:28:53] data/actions/scripts/shinystone.lua:onUse

[30/12/2012 04:28:53] Description:

[30/12/2012 04:28:53] (luaDoConvinceCreature) Creature not found

 

[30/12/2012 04:28:53] [Error - Action Interface]

[30/12/2012 04:28:53] data/actions/scripts/shinystone.lua:onUse

[30/12/2012 04:28:53] Description:

[30/12/2012 04:28:53] data/actions/scripts/shinystone.lua:99: attempt to index local 'balls' (a nil value)

[30/12/2012 04:28:53] stack traceback:

[30/12/2012 04:28:53] data/actions/scripts/shinystone.lua:99: in function <data/actions/scripts/shinystone.lua:89>

[30/12/2012 04:29:36] Seadra ball has been created by Tostinhu.

 

[30/12/2012 04:29:57] [Error - Action Interface]

[30/12/2012 04:29:57] data/actions/scripts/shinystone.lua:onUse

[30/12/2012 04:29:57] Description:

[30/12/2012 04:29:57] data/actions/scripts/shinystone.lua:99: attempt to index local 'balls' (a nil value)

[30/12/2012 04:29:57] stack traceback:

[30/12/2012 04:29:57] data/actions/scripts/shinystone.lua:99: in function <data/actions/scripts/shinystone.lua:89>

 

[30/12/2012 04:30:30] [Error - Action Interface]

[30/12/2012 04:30:30] data/actions/scripts/shinystone.lua:onUse

[30/12/2012 04:30:30] Description:

[30/12/2012 04:30:30] data/actions/scripts/shinystone.lua:99: attempt to index local 'balls' (a nil value)

[30/12/2012 04:30:30] stack traceback:

[30/12/2012 04:30:30] data/actions/scripts/shinystone.lua:99: in function <data/actions/scripts/shinystone.lua:89>

 

[30/12/2012 04:30:44] [Error - Action Interface]

[30/12/2012 04:30:44] data/actions/scripts/shinystone.lua:onUse

[30/12/2012 04:30:44] Description:

[30/12/2012 04:30:44] data/actions/scripts/shinystone.lua:99: attempt to index local 'balls' (a nil value)

[30/12/2012 04:30:44] stack traceback:

[30/12/2012 04:30:44] data/actions/scripts/shinystone.lua:99: in function <data/actions/scripts/shinystone.lua:89>

 

[30/12/2012 04:34:06] [Error - CreatureScript Interface]

[30/12/2012 04:34:06] data/creaturescripts/scripts/look.lua:onLook

[30/12/2012 04:34:06] Description:

[30/12/2012 04:34:06] data/lib/050-function.lua:107: attempt to index local 'str' (a nil value)

[30/12/2012 04:34:06] stack traceback:

[30/12/2012 04:34:06] data/lib/050-function.lua:107: in function 'getArticle'

[30/12/2012 04:34:06] data/creaturescripts/scripts/look.lua:14: in function <data/creaturescripts/scripts/look.lua:1>

 

[30/12/2012 04:34:07] [Error - CreatureScript Interface]

[30/12/2012 04:34:07] data/creaturescripts/scripts/look.lua:onLook

[30/12/2012 04:34:07] Description:

[30/12/2012 04:34:07] data/lib/050-function.lua:107: attempt to index local 'str' (a nil value)

[30/12/2012 04:34:07] stack traceback:

[30/12/2012 04:34:07] data/lib/050-function.lua:107: in function 'getArticle'

[30/12/2012 04:34:07] data/creaturescripts/scripts/look.lua:14: in function <data/creaturescripts/scripts/look.lua:1>

 

[30/12/2012 04:34:08] [Error - CreatureScript Interface]

[30/12/2012 04:34:08] data/creaturescripts/scripts/look.lua:onLook

[30/12/2012 04:34:08] Description:

[30/12/2012 04:34:08] data/lib/050-function.lua:107: attempt to index local 'str' (a nil value)

[30/12/2012 04:34:08] stack traceback:

[30/12/2012 04:34:08] data/lib/050-function.lua:107: in function 'getArticle'

[30/12/2012 04:34:08] data/creaturescripts/scripts/look.lua:14: in function <data/creaturescripts/scripts/look.lua:1>

 

[30/12/2012 04:34:09] [Error - CreatureScript Interface]

[30/12/2012 04:34:09] data/creaturescripts/scripts/look.lua:onLook

[30/12/2012 04:34:09] Description:

[30/12/2012 04:34:09] data/lib/050-function.lua:107: attempt to index local 'str' (a nil value)

[30/12/2012 04:34:09] stack traceback:

[30/12/2012 04:34:09] data/lib/050-function.lua:107: in function 'getArticle'

[30/12/2012 04:34:09] data/creaturescripts/scripts/look.lua:14: in function <data/creaturescripts/scripts/look.lua:1>

 

[30/12/2012 04:34:12] [Error - CreatureScript Interface]

[30/12/2012 04:34:12] data/creaturescripts/scripts/look.lua:onLook

[30/12/2012 04:34:12] Description:

[30/12/2012 04:34:12] data/lib/050-function.lua:107: attempt to index local 'str' (a nil value)

[30/12/2012 04:34:12] stack traceback:

[30/12/2012 04:34:12] data/lib/050-function.lua:107: in function 'getArticle'

[30/12/2012 04:34:12] data/creaturescripts/scripts/look.lua:14: in function <data/creaturescripts/scripts/look.lua:1>

 

[30/12/2012 04:34:42] [Error - Action Interface]

[30/12/2012 04:34:42] data/actions/scripts/shinystone.lua:onUse

[30/12/2012 04:34:42] Description:

[30/12/2012 04:34:42] data/actions/scripts/shinystone.lua:99: attempt to index local 'balls' (a nil value)

[30/12/2012 04:34:42] stack traceback:

[30/12/2012 04:34:42] data/actions/scripts/shinystone.lua:99: in function <data/actions/scripts/shinystone.lua:89>

 

 

rep +++ pra quem me ajuda por 1 semana

 

ajudem pf !

Link para o comentário
Compartilhar em outros sites

  • 4 months later...

Aee gabriel, aqui ta dando 2 erros!

 

1° o Pokemon se tranforma no shiny, porém, quando vou recolher ele e chamar de volta, ele volta ao normal!

2° Ao se tranformar em shiny, ele muda o Genero( Male > Female) e o Level( 100 > abaixa aleatoriamente)

 

Eu uso o PDA, tem como ajudar ai mano? :D

Link para o comentário
Compartilhar em outros sites

Aee gabriel, aqui ta dando 2 erros!

 

1° o Pokemon se tranforma no shiny, porém, quando vou recolher ele e chamar de volta, ele volta ao normal!

2° Ao se tranformar em shiny, ele muda o Genero( Male > Female) e o Level( 100 > abaixa aleatoriamente)

 

Eu uso o PDA, tem como ajudar ai mano? :D

 

Essa shiny stone só funciona com poke sem level

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...