Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Ae galera to precisando de um script shiny stone meu pokemon "

PDA sem lvl editado por Bolz V2

agradeç odesde já a o icone da stone é 12289

Explique mais sobre o script.

O que ele faz?

É um item que da use?

Ele da algo?

Ele ataca?

Spoiler

local config = {
	delrey = getPlayerCarValue(cid, DELREY),
	cigarro = getPlayerCancer(cid, DERBY),
	prostituta = getPlayerAIDS(cid, cracuda),
	tresOitao = getPlayerRevorvi(cid, 38)
}

if(delrey == "Ligado" and cigarro == "Aceso" and prostituta == "No Colo" and tresOitao == "Carregado") then
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Começou o fim de semana. #PAS")
end

 

Link para o post
Compartilhar em outros sites
  • Administrador

Bom como jogo pokemon sei oque é isso mais tente explicar melhor seus tópicos -.-

 

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 você coloca o ID da Sua Stone e Pronto.

TibiaKing Team- KingTópicos
www.tibiaking.com

Link para o post
Compartilhar em outros sites
  • Administrador

Voce pois o id da stone ? e verificou se seu server tem todos esses shinys citados?

TibiaKing Team- KingTópicos
www.tibiaking.com

Link para o post
Compartilhar em outros sites

COloquei id mais não virifiquei

 

@edit

 

Olha como fico depois de tira os poke que não tinha 

 

local evo = {
          
["Abra"] = "Shiny Abra",
["Alakazam"] = "Shiny Alakazam",
["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",
["Electabuzz"] = "Shiny Electabuzz",
["Electrode"] = "Shiny Electrode",
["Flareon"] = "Shiny Flareon",["Gengar"] = "Shiny Gengar",["Golem"] = "Shiny Golem",["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",["Magikarp"] = "Shiny Magikarp",["Marowak"] = "Shiny Marowak",["Muk"] = "Shiny Muk",["Nidoking"] = "Shiny Nidoking",["Oddish"] = "Shiny Oddish",["Onix"] = "Shiny Onix",["Pidgeot"] = "Shiny Pidgeot",["Raichu"] = "Shiny Raichu",["Raticate"] = "Shiny Raticate",["Rattata"] = "Shiny Rattata",["Scyther"] = "Shiny Scyther",["Seadra"] = "Shiny Seadra",["Snorlax"] = "Shiny Snorlax",["Tentacruel"] = "Shiny Tentacruel",["Venomoth"] = "Shiny Venomoth",["Venonat"] = "Shiny Venonat",["Venusaur"] = "Shiny Venusaur",["Vileplume"] = "Shiny Vileplume",["Voltorb"] = "Shiny Voltorb",["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

Editado por ryukicho (veja o histórico de edições)

IBNJHen.gifrf1sSxg.gif

Link para o post
Compartilhar em outros sites
  • Administrador

Bom esse scripts ja é um pouco diferente ele utiliza mais do que 1 shiny stone para evoluir um pokemon verifica ae se tem os shinys abaixo.

<action itemid="8300" event="script" value="Shiny stone.lua">

 

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

TibiaKing Team- KingTópicos
www.tibiaking.com

Link para o post
Compartilhar em outros sites
  • 11 months later...
  • 1 month later...

n deu :/

eu coloquei um numero pro id da stone que nn tinha em nenhum outro item 

mais ai quando eu ia cria ela no server ja nn dava certo falava que nn existia

o item '-'

eu fasia no /i (id da stone)

 

00:54 /i 67892
00:54 Couldn't add item: 67892
 
67892 é o id que coloquei pra shiny stone 
será que nn tem q adc alguma coisa no \data\items\items.xml  ?????

                                                       AJUDEI?                 REP+        AI ENTÃO

Link para o post
Compartilhar em outros sites
  • 4 years later...

bom desculpe revive o tópico mais vocês precisa adiciona ela no xml a shiny stone procura uma stone e adiciona ela la o 1 scripts ele da erro mesmo eu também queria saber se tem como remover esse erro ao evoluir um pokemon ....

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.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo