Olá pessoal do Xtibia eu sou novo no fórum e vim disponibilizar o action da shiny stone do otpokemon
tag: <action itemid="8300" event="script" value="Shiny stone.lua">
script \/
local evo = {
--nome do shiny, qnts stones precisa
["Abra"] = {"Shiny Abra", 7},
["Arcanine"] = {"Shiny Arcanine", 6},
["Beedrill"] = {"Shiny Beedrill", 2},
["Blastoise"] = {"Shiny Blastoise", 7},
["Dratini"] = {"Shiny Dratini", 3},
["Electabuzz"] = {"Shiny Electabuzz", 5},
["Grimer"] = {"Shiny Grimer", 1},
["Growlithe"] = {"Shiny Growlithe", 2},
["Gyarados"] = {"Shiny Gyarados", 7},
["Hitmonchan"] = {"Shiny Hitmonchan", 5},
["Hitmonlee"] = {"Shiny Hitmonlee", 5},
["Horsea"] = {"Shiny Horsea", 1},
["Jynx"] = {"Shiny Jynx", 4},
["Onix"] = {"Shiny Onix", 7},
["Kingler"] = {"Shiny Kingler", 3},
["Krabby"] = {"Shiny Krabby", 1},
["Raichu"] = {"Shiny Raichu", 5},
["Raticate"] = {"Shiny Raticate", 2},
["Scyther"] = {"Shiny Scyther", 6},
["Seadra"] = {"Shiny Seadra", 4},
["Tentacruel"] = {"Shiny Tentacruel", 6},
["Venomoth"] = {"Shiny Venomoth", 6},
["Venusaur"] = {"Shiny Venusaur", 7},
["Voltorb"] = {"Shiny Voltorb", 1},
["Electrode"] = {"Shiny Electrode", 3},
["Pinsir"] = {"Shiny Pinsir", 5},
["Gengar"] = {"Shiny Gengar", 8},
["Snorlax"] = {"Shiny Snorlax", 7},
["Alakazam"] = {"Shiny Alakazam", 8},
["Zubat"] = {"Shiny Zubat", 1},
["Pidgeot"] = {"Shiny Pidgeot", 4},
["Paras"] = {"Shiny Paras", 1},
["Parasect"] = {"Shiny Parasect", 3},
["Golbat"] = {"Shiny Golbat", 3},
["Charizard"] = {"Shiny Charizard", 7},
["Magikarp"] = {"Shiny Magikarp", 2},
["Dragonair"] = {"Shiny Dragonair", 5},
["Dragonite"] = {"Shiny Dragonite", 9},
["Aerodactyl"] = {"Shiny Aerodactyl", 50},
}
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, "Congratulations! Your "..getPokeName(itemEx.uid).." evolved into a "..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
A maioria de v6s axo que ja viram um igual..mas esse é diferente vc pde editar o numeros de stones e tals eu uso no meu ot ^^ e eu so mto novo aqui no xtibia (entrei faz uns 2dias por ai) então sem essa de quererem me matar ;-;
Créditos a Gabrieltxu-30% por me ajudar com partes do script (n sei c é dele msm)
Obrigado a todos se gostarem do script REP+ ai vlw! -</action>