Ir para conteúdo

[Poketibia] Script Shiny Stone!


yugnaith

Posts Recomendados

Preciso de ajuda com essa script!

 

 

Alguem pode me dizer por quê não pega essa script?

 

Ficaria agradecido!

 

O erro é que fala que nao é essa stone que evolui o poke !

 

This isn't the needed stone to evolve this pokemon.

 

Meu primeiro topico se alguem puder meda umas dicas tabem ficaria agradecido!

 

Por favor se eu estiver no caminho errado mova esse topico e poste um tutorial! ;D

 

 

local special = specialevo
local types =
{
["Bulbasaur"] = "Shiny Bulbasaur",
["Ivysaur"] = "Shiny Ivysaur",
["Venusaur"] = "Shiny Venusaur",
["Charmander"] = "Shiny Charmander",
["Charmeleon"] = "Shiny Charmeleon",
["Charizard"] = "Shiny Charizard",
["Squirtle"] = "Shiny Squirtle",
["Wartortle"] = "Shiny Wartortle",
["Blastoise"] = "Shiny Blastoise",
["Caterpie"] = "Shiny Caterpie",
["Metapod"] = "Shiny Metapod",
["Butterfree"] = "Shiny Butterfree",
["Weedle"] = "Shiny Weedle",
["Kakuna"] = "Shiny Kakuna",
["Beedrill"] = "Shiny Beedrill",
["Pidgey"] = "Shiny Pidgey",
["Pidgeotto"] = "Shiny Pidgeotto",
["Pidgeot"] = "Shiny Pidgeot",
["Rattata"] = "Shiny Rattata",
["Raticate"] = "Shiny Raticate",
["Spearow"] = "Shiny Spearow",
["Fearow"] = "Shiny Fearow",
["Ekans"] = "Shiny Ekans",
["Arbok"] = "Shiny Arbok",
["Pikachu"] = "Shiny Pikachu",
["Raichu"] = "Shiny Raichu",
["Sandshrew"] = "Shiny Sandshrew",
["Sandslash"] = "Shiny Sandslash",
["Nidoran Female"] = "Shiny Nidoran Female",
["Nidorina"] = "Shiny Nidorina",
["Nidoqueen"] = "Shiny Nidoqueen",
["Nidoran Male"] = "Shiny Nidoran Male",
["Nidorino"] = "Shiny Nidorino",
["Nidoking"] = "Shiny Nidoking",
["Clefairy"] = "Shiny Clefairy",
["Clefable"] = "Shiny Clefable",
["Vulpix"] = "Shiny Vulpix",
["Ninetales"] = "Shiny Ninetales",
["Jigglypuff"] = "Shiny Jigglypuff",
["Wigglytuff"] = "Shiny Wigglytuff",
["Zubat"] = "Shiny Zubat",
["Golbat"] = "Shiny Golbat",
["Oddish"] = "Shiny Oddish",
["Gloom"] = "Shiny Gloom",
["Vileplume"] = "Shiny Vileplume",
["Paras"] = "Shiny Paras",
["Parasect"] = "Shiny Parasect",
["Venonat"] = "Shiny Venonat",
["Venomoth"] = "Shiny Venomoth",
["Diglett"] = "Shiny Diglett",
["Dugtrio"] = "Shiny Dugtrio",
["Meowth"] = "Shiny Meowth",
["Persian"] = "Shiny Persian",
["Psyduck"] = "Shiny Psyduck",
["Golduck"] = "Shiny Golduck",
["Mankey"] = "Shiny Mankey",
["Primeape"] = "Shiny Primeape",
["Growlithe"] = "Shiny Growlithe",
["Arcanine"] = "Shiny Arcanine",
["Poliwag"] = "Shiny Poliwag",
["Poliwhirl"] = "Shiny Poliwhirl",
["Poliwrath"] = "Shiny Poliwrath",
["Abra"] = "Shiny Abra",
["Kadabra"] = "Shiny Kadabra",
["Alakazam"] = "Shiny Alakazam",
["Machop"] = "Shiny Machop",
["Machoke"] = "Shiny Machoke",
["Machamp"] = "Shiny Machamp",
["Bellsprout"] = "Shiny Bellsprout",
["Weepinbell"] = "Shiny Weepinbell",
["Victreebel"] = "Shiny Victreebel",
["Tentacool"] = "Shiny Tentacool",
["Tentacruel"] = "Shiny Tentacruel",
["Geodude"] = "Shiny Geodude",
["Graveler"] = "Shiny Graveler",
["Golem"] = "Shiny Golem",
["Ponyta"] = "Shiny Ponyta",
["Rapidash"] = "Shiny Rapidash",
["Slowpoke"] = "Shiny Slowpoke",
["Slowbro"] = "Shiny Slowbro",
["Magnemite"] = "Shiny Magnemite",
["Magneton"] = "Shiny Magneton",
["Farfetch'd"] = "Shiny Farfetch'd",
["Doduo"] = "Shiny Doduo",
["Dodrio"] = "Shiny Dodrio",
["Seel"] = "Shiny Seel",
["Dewgong"] = "Shiny Dewgong",
["Grimer"] = "Shiny Grimer",
["Muk"] = "Shiny Muk",
["Shellder"] = "Shiny Shellder",
["Cloyster"] = "Shiny Cloyster",
["Gastly"] = "Shiny Gastly",
["Haunter"] = "Shiny Haunter",
["Gengar"] = "Shiny Gengar",
["Onix"] = "Shiny Onix",
["Drowzee"] = "Shiny Drowzee",
["Hypno"] = "Shiny Hypno",
["Krabby"] = "Shiny Krabby",
["Kingler"] = "Shiny Kingler",
["Voltorb"] = "Shiny Voltorb",
["Electrode"] = "Shiny Electrode",
["Exeggcute"] = "Shiny Exeggcute",
["Exeggutor"] = "Shiny Exeggutor",
["Cubone"] = "Shiny Cubone",
["Marowak"] = "Shiny Marowak",
["Hitmonlee"] = "Shiny Hitmonlee",
["Hitmonchan"] = "Shiny Hitmonchan",
["Lickitung"] = "Shiny Lickitung",
["Koffing"] = "Shiny Koffing",
["Weezing"] = "Shiny Weezing",
["Rhyhorn"] = "Shiny Rhyhorn",
["Rhydon"] = "Shiny Rhydon",
["Chansey"] = "Shiny Chansey",
["Tangela"] = "Shiny Tangela",
["Kangaskhan"] = "Shiny Kangaskhan",
["Horsea"] = "Shiny Horsea",
["Seadra"] = "Shiny Seadra",
["Goldeen"] = "Shiny Goldeen",
["Seaking"] = "Shiny Seaking",
["Staryu"] = "Shiny Staryu",
["Starmie"] = "Shiny Starmie",
["Mr. Mime"] = "Shiny Mr. Mime",
["Scyther"] = "Shiny Scyther",
["Jynx"] = "Shiny Jynx",
["Electabuzz"] = "Shiny Electabuzz",
["Magmar"] = "Shiny Magmar",
["Pinsir"] = "Shiny Pinsir",
["Tauros"] = "Shiny Tauros",
["Magikarp"] = "Shiny Magikarp",
["Gyarados"] = "Shiny Gyarados",
["Lapras"] = "Shiny Lapras",
["Ditto"] = "Shiny Ditto",
["Eevee"] = "Shiny Eevee",
["Vaporeon"] = "Shiny Vaporeon",
["Jolteon"] = "Shiny Jolteon",
["Flareon"] = "Shiny Flareon",
["Porygon"] = "Shiny Porygon",
["Omanyte"] = "Shiny Omanyte",
["Omastar"] = "Shiny Omastar",
["Kabuto"] = "Shiny Kabuto",
["Kabutops"] = "Shiny Kabutops",
["Aerodactyl"] = "Shiny Aerodactyl",
["Snorlax"] = "Shiny Snorlax",
["Articuno"] = "Shiny Articuno",
["Zapdos"] = "Shiny Zapdos",
["Moltres"] = "Shiny Moltres",
["Dratini"] = "Shiny Dratini",
["Dragonair"] = "Shiny Dragonair",
["Dragonite"] = "Shiny Dragonite",
["Mewtwo"] = "Shiny Mewtwo",
["Mew"] = "Shiny Mew",
["Absol"] = "Shiny Absol",
["Altaria"] = "Shiny Altaria",
["Baltoy"] = "Shiny Baltoy",
["Claydol"] = "Shiny Claydol",
["Buneary"] = "Shiny Buneary",
["Beldum"] = "Shiny Beldum",
["Metang"] = "Shiny Metang",
["Metagross"] = "Shiny Metagross",
["Camerupt"] = "Shiny Camerupt",
["Carnivine"] = "Shiny Carnivine",
["Carvanha"] = "Shiny Carvanha",
["Sharpedo"] = "Shiny Sharpedo",
["Croagunk"] = "Shiny Croagunk",
["Toxicroak"] = "Shiny Toxicroak",
["Buizel"] = "Shiny Buizel",
["Floatzel"] = "Shiny Floatzel",
["Gabite"] = "Shiny Gabite",
["Gible"] = "Shiny Gible",
["Gliscor"] = "Shiny Gliscor",
["Honchkrow"] = "Shiny Honchkrow",
["Luxray"] = "Shiny Luxray",
["Mamoswine"] = "Shiny Mamoswine",
["Pachirisu"] = "Shiny Pachirisu",
["Plusle"] = "Shiny Plusle",
["Minun"] = "Shiny Minun",
["Probopass"] = "Shiny Probopass",
["Purugly"] = "Shiny Purugly",
["Froslass"] = "Shiny Froslass",
["Glalie"] = "Shiny Glalie",
["Snorunt"] = "Shiny Snorunt",
["Lunatone"] = "Shiny Lunatone",
["Solrock"] = "Shiny Solrock",
["Staraptor"] = "Shiny Staraptor",
["Tropius"] = "Shiny Tropius",
["Yanmega"] = "Shiny Yanmega",
["Zangoose"] = "Shiny Zangoose",
["Rhyperior"] = "Shiny Rhyperior",
["Gastrodon"] = "Shiny Gastrodon",
["Typhlosion"] = "Shiny Typhlosion",
["Quilava"] = "Shiny Quilava",
["Cyndaquil"] = "Shiny Cyndaquil",
["Bayleef"] = "Shiny Bayleef",
["Meganium"] = "Shiny Meganium",
["Chikorita"] = "Shiny Chikorita",
["Totodile"] = "Shiny Totodile",
["Croconaw"] = "Shiny Croconaw",
["Feraligatr"] = "Shiny Feraligatr",
}
function onUse(cid, item, frompos, item2, topos)
local pokeball = getPlayerSlotItem(cid, 8)
if not isMonster(item2.uid) or not isSummon(item2.uid) then
return true
end
if getCreatureCondition(item2.uid, CONDITION_INVISIBLE) then return true end
local pevo = poevo[getCreatureName(item2.uid)]
if not isInArray(specialevo, getCreatureName(item2.uid)) then
	if not pevo then
		doPlayerSendCancel(cid, "This pokemon can't evolve.")
	return true
	end
	if pevo.level ~= 1 and not allEvolutionsCanBeInduzedByStone then
		doPlayerSendCancel(cid, "This pokemon doesn't evolve using stones.")
	return true
	end
	if not isPlayer(getCreatureMaster(item2.uid)) or getCreatureMaster(item2.uid) ~= cid then
		doPlayerSendCancel(cid, "You can only use stones on pokemons you own.")
	return true
	end
	if pevo.stoneid ~= item.itemid and pevo.stoneid2 ~= item.itemid then
		doPlayerSendCancel(cid, "This isn't the needed stone to evolve this pokemon.")
	return true
	end
end
local count = poevo[getPokemonName(item2.uid)].count
local stnid = poevo[getPokemonName(item2.uid)].stoneid
local stnid2 = poevo[getPokemonName(item2.uid)].stoneid2
local evo = poevo[getPokemonName(item2.uid)].evolution
local nlevel = poevo[getPokemonName(item2.uid)].level
local count = poevo[getPokemonName(item2.uid)].count
local stnid = poevo[getPokemonName(item2.uid)].stoneid
local stnid2 = poevo[getPokemonName(item2.uid)].stoneid2
local evo = poevo[getPokemonName(item2.uid)].evolution
local nlevel = poevo[getPokemonName(item2.uid)].level

if stnid2 > 1 and (getPlayerItemCount(cid, stnid2) < count or getPlayerItemCount(cid, stnid) < count) then
doPlayerSendCancel(cid, "You need at least one "..getItemNameById(stnid).." and one "..getItemNameById(stnid2).." to evolve this pokemon!")
return true
end
if getPlayerItemCount(cid, stnid) < count then
local str = ""
if count >= 2 then
str = "s"
end
return doPlayerSendCancel(cid, "You need at least "..count.." "..getItemNameById(stnid)..""..str.." to evolve this pokemon!")
end
minlevel = pokes[evo].level
if getPlayerLevel(cid) < minlevel and evolutionByStoneRequireLevel then
doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").")
return true
end
if getPokemonLevel(item2.uid) < nlevel and evolutionByStoneRequireLevel then
doPlayerSendCancel(cid, "Sorry, your pokemon doesn't have the required level to evolve ("..nlevel..").")
return true
end
if count >= 2 then
stnid2 = stnid
end
doEvolvePokemon(cid, item2, evo, stnid, stnid2)
return TRUE
end

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

Me desculpe, mas apenas um retardado para postar uma coisa dessas.

 

VOCE NAO LÊ NAO?!

 

Não é permitido postar sobre Tibia e Otserv.

Link para o comentário
Compartilhar em outros sites

Me desculpe, mas apenas um retardado para postar uma coisa dessas.

 

VOCE NAO LÊ NAO?!

 

Como eu disse é meu primeiro topico

não sei posta na area certa ainda c alguem que nao seje otario que nem esta pessoa puder me explica agradesso -.-'

Link para o comentário
Compartilhar em outros sites

Seguinte: cada área do fórum serve para algo.

Aqui é o atendimento do fórum, ou seja, se tiver uma dúvida sobre como é o XTibia, sinta-se livre.

 

Acontece que temos uma seção apenas para OTserv e, inclusive, há uma para postagem de pedidos e dúvidas de scripts. Procure :)

Link para o comentário
Compartilhar em outros sites

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