Ir para conteúdo

[Pedido] Script Pokedex


Pilantrinhu

Posts Recomendados

  • 5 months later...

Nessa eu posso te ajudar..

primeiramente cria um arquivo lua na pasta data/actions/scripts/ com o nome de pokedex

e coloque isso.

 

 

 

function onUse(cid, item, fromPos, itemEx, toPos)

 

local pokemon = itemEx.uid

local pokemons = {

 

{"Bulbasaur", "1.txt", 8423, 20, 100, "Bulbasaur", 99101},

{"Ivysaur", "2.txt", 8424, 20, 100, "Ivysaur", 99102},

{"Venusaur", "3.txt", 8425, 20, 100, "Venusaur", 99103},

{"Charmander", "4.txt", 8426, 20, 100, "Charmander", 99104},

{"Charmeleon", "5.txt", 8427, 20, 100, "Charmeleon", 99105},

{"Charizard", "6.txt", 8428, 20, 100, "Charizard", 99106},

{"Squirtle", "7.txt", 8429, 20, 100, "Squirtle", 99107},

{"Wartortle", "8.txt", 8430, 20, 100, "Wartortle", 99108},

{"Blastoise", "9.txt", 8431, 20, 100, "Blastoise", 99109},

{"Caterpie", "10.txt", 8432, 20, 100, "Caterpie", 99110},

{"Metapod", "11.txt", 8433, 20, 100, "Metapod", 99111},

{"Butterfree", "12.txt", 8434, 20, 100, "Butterfree", 99112},

{"Weedle", "13.txt", 8435, 20, 100, "Weedle", 99113},

{"Kakuna","14.txt", 8436, 20, 100, "Kakuna", 99114},

{"Beedrill", "15.txt", 8437, 20, 100, "Beedrill", 99115},

{"Pidgey", "16.txt", 8438, 20, 100, "Pidgey", 99116},

{"Pidgeotto", "17.txt", 8439, 20, 100, "Pidgeotto", 99117},

{"Pidgeot", "18.txt", 8440, 20, 100, "Pidgeot", 99118},

{"Rattata", "19.txt", 8441, 20, 100, "Rattata", 99119},

{"Raticate", "20.txt", 8442, 20, 100, "Raticate", 99120},

{"Spearow", "21.txt", 8443, 20, 100, "Spearow", 99121},

{"Fearow", "22.txt", 8444, 20, 100, "Fearow", 99122},

{"Ekans", "23.txt", 8445, 20, 100, "Ekans", 99123},

{"Arbok", "24.txt", 8446, 20, 100, "Arbok", 99124},

{"Pikachu", "25.txt", 8447, 20, 100, "Pikachu", 99125},

{"Raichu", "26.txt", 8448, 20, 100, "Raichu", 99126},

{"Sandshrew", "27.txt", 8449, 20, 100, "Sandshrew", 99127},

{"Sandslash", "28.txt", 8450, 20, 100, "Sandslash", 99128},

{"NidoranFE", "29.txt", 8451, 20, 100, "NidoranFE", 99129},

{"Nidorina", "30.txt", 8452, 20, 100, "Nidorina", 99130},

{"Nidoqueen", "31.txt", 8453, 20, 100, "Nidoqueen", 99131},

{"NidoranMA", "32.txt", 8454, 20, 100, "NidoranMA", 99132},

{"Nidorino", "33.txt", 8455, 20, 100, "Nidorino", 99133},

{"Nidoking", "34.txt", 8456, 20, 100, "Nidoking", 99134},

{"Clefairy", "35.txt", 8457, 20, 100, "Clefairy", 99135},

{"Clefable", "36.txt", 8458, 20, 100, "Clefable", 99136},

{"Vulpix", "37.txt", 8459, 20, 100, "Vulpix", 99137},

{"Ninetales", "38.txt", 8460, 20, 100, "Ninetales", 99138},

{"Jigglypuff", "39.txt", 8461, 20, 100, "Jigglypuff", 99139},

{"Wigglytuff", "40.txt", 8462, 20, 100, "Wigglytuff", 99140},

{"Zubat", "41.txt", 8463, 20, 100, "Zubat", 99141},

{"Golbat", "42.txt", 8464, 20, 100, "Golbat", 99142},

{"Oddish", "43.txt", 8465, 20, 100, "Oddish", 99143},

{"Gloom", "44.txt", 8466, 20, 100, "Gloom", 99144},

{"Vileplume", "45.txt", 8467, 20, 100, "Vileplume", 99145},

{"Paras", "46.txt", 8468, 20, 100, "Paras", 99146},

{"Parasect", "47.txt", 8469, 20, 100, "Parasect", 99147},

{"Venonat", "48.txt", 8470, 20, 100, "Venonat", 99148},

{"Venomoth", "49.txt", 8471, 20, 100, "Venomoth", 99149},

{"Diglett", "50.txt", 8472, 20, 100, "Diglett", 99150},

{"Dugtrio", "51.txt", 8473, 20, 100, "Dugtrio", 99151},

{"Meowth", "52.txt", 8474, 20, 100, "Meowth", 99152},

{"Persian", "53.txt", 8475, 20, 100, "Persian", 99153},

{"Psyduck", "54.txt", 8476, 20, 100, "Psyduck", 99154},

{"Golduck", "55.txt", 8477, 20, 100, "Golduck", 99155},

{"Mankey", "56.txt", 8478, 20, 100, "Mankey", 99156},

{"Primeape", "57.txt", 8479, 20, 100, "Primeape", 99157},

{"Growlithe", "58.txt", 8480, 20, 100, "Growlithe", 99158},

{"Arcanine", "59.txt", 8481, 20, 100, "Arcanine", 99159},

{"Poliwag", "60.txt", 8482, 20, 100, "Poliwag", 99160},

{"Poliwhirl", "61.txt", 8483, 20, 100, "Poliwhirl", 99161},

{"Poliwrath", "62.txt", 8484, 20, 100, "Poliwrath", 99162},

{"Abra", "63.txt", 8485, 20, 100, "Abra", 99163},

{"Kadabra", "64.txt", 8486, 20, 100, "Kadabra", 99164},

{"Alakazam", "65.txt", 8487, 20, 100, "Alakazam", 99165},

{"Machop", "66.txt", 8488, 20, 100, "Machop", 99166},

{"Machoke", "67.txt", 8489, 20, 100, "Machoke", 99167},

{"Machamp", "68.txt", 8490, 20, 100, "Machamp", 99168},

{"Bellsprout", "69.txt", 8491, 20, 100, "Bellsprout", 99169},

{"Weepinbell", "70.txt", 8492, 20, 100, "Weepinbell", 99170},

{"Victreebel", "71.txt", 8493, 20, 100, "Victreebel", 99171},

{"Tentacool", "72.txt", 8494, 20, 100, "Tentacool", 99172},

{"Tentacruel", "73.txt", 8495, 20, 100, "Tentacruel", 99173},

{"Geodude", "74.txt", 8496, 20, 100, "Geodude", 99174},

{"Graveler", "75.txt", 8497, 20, 100, "Graveler", 99175},

{"Golem", "76.txt", 8498, 20, 100, "Golem", 99176},

{"Ponyta", "77.txt", 8499, 20, 100, "Ponyta", 99177},

{"Rapidash", "78.txt", 8500, 20, 100, "Rapidash", 99178},

{"Slowpoke", "79.txt", 8501, 20, 100, "Slowpoke", 99179},

 

{"Slowbro", "80.txt", 8502, 20, 100, "Slowbro", 99180},

{"Magnemite", "81.txt", 8503, 20, 100, "Magnemite", 99182},

{"Magneton", "82.txt", 8504, 20, 100, "Magneton", 99183},

{"Farfetch’d", "83.txt", 8505, 20, 100, "Farfetch’d", 99184},

{"Doduo", "84.txt", 8506, 20, 100, "Doduo", 99185},

{"Dodrio", "85.txt", 8507, 20, 100, "Dodrio", 99186},

{"Seel", "86.txt", 8508, 20, 100, "Seel", 99187},

{"Dewgong", "87.txt", 8509, 20, 100, "Dewgong", 99188},

{"Grimer", "88.txt", 8510, 20, 100, "Grimer", 99189},

{"Muk", "89.txt", 8511, 20, 100, "Muk", 99190},

{"Shellder", "90.txt", 8512, 20, 100, "Shellder", 99191},

{"Cloyster", "91.txt", 8513, 20, 100, "Cloyster", 99192},

{"Gastly", "92.txt", 8514, 20, 100, "Gastly", 99193},

{"Haunter", "93.txt", 8515, 20, 100, "Haunter", 99194},

{"Gengar", "94.txt", 8516, 20, 100, "Gengar", 99195},

{"Onix", "95.txt", 8517, 20, 100, "Onix", 99196},

{"Drowzee", "96.txt", 8518, 20, 100, "Drowzee", 99197},

{"Hypno", "97.txt", 8519, 20, 100, "Hypno", 99198},

{"Krabby", "98.txt", 8520, 20, 100, "Krabby", 99199},

{"Kingler", "99.txt", 8521, 20, 100, "Kingler", 99200},

{"Voltorb", "100.txt", 8522, 20, 100, "Voltorb", 99201},

{"Electrode", "101.txt", 8523, 20, 100, "Electrode", 99202},

{"Exeggcute", "102.txt", 8524, 20, 100, "Exeggcute", 99203},

{"Exeggutor", "103.txt", 8525, 20, 100, "Exeggutor", 99204},

{"Cubone", "104.txt", 8526, 20, 100, "Cubone", 99205},

{"Marowak", "105.txt", 8527, 20, 100, "Marowak", 99206},

{"Hitmonlee", "106.txt", 8528, 20, 100, "Hitmonlee", 99207},

{"Hitmonchan", "107.txt", 8529, 20, 100, "Hitmonchan", 99208},

{"Lickitung", "108.txt", 8530, 20, 100, "Lickitung", 99209},

{"Koffing", "109.txt", 8531, 20, 100, "Koffing", 99210},

{"Weezing", "110.txt", 8532, 20, 100, "Weezing", 99211},

{"Rhyhorn", "111.txt", 8533, 20, 100, "Rhyhorn", 99213},

{"Rhydon", "112.txt", 8534, 20, 100, "Rhydon", 99214},

{"Chansey", "113.txt", 8535, 20, 100, "Chansey", 99215},

{"Tangela", "114.txt", 8536, 20, 100, "Tangela", 99216},

{"Kangaskhan", "115.txt", 8537, 20, 100, "Kangaskhan", 99217},

{"Horsea", "116.txt", 8538, 20, 100, "Horsea", 99218},

{"Seadra", "117.txt", 8539, 20, 100, "Seadra", 99219},

{"Goldeen", "118.txt", 8540, 20, 100, "Goldeen", 99220},

{"Seaking", "119.txt", 8541, 20, 100, "Seaking", 99221},

{"Staryu", "120.txt", 8542, 20, 100, "Staryu", 99222},

{"Starmie", "121.txt", 8543, 20, 100, "Starmie", 99223},

{"Mr.Mime", "122.txt", 8544, 20, 100, "Mr.Mime", 99224},

{"Scyther", "123.txt", 8545, 20, 100, "Scyther", 99225},

{"Jynx", "124.txt", 8546, 20, 100, "Jynx", 99226},

{"Electabuzz", "125.txt", 8547, 20, 100, "Electabuzz", 99227},

{"Magmar", "126.txt", 8548, 20, 100, "Magmar", 99228},

{"Pinsir", "127.txt", 8549, 20, 100, "Pinsir", 99229},

{"Tauros", "128.txt", 8550, 20, 100, "Tauros", 99230},

{"Magikarp", "129.txt", 8551, 20, 100, "Magikarp", 99232},

{"Gyarados", "130.txt", 8552, 20, 100, "Gyarados", 99233},

{"Lapras", "131.txt", 8553, 20, 100, "Lapras", 99234},

{"Ditto", "132.txt", 8554, 20, 100, "Ditto", 99235},

{"Eevee", "133.txt", 8555, 20, 100, "Eevee", 99236},

{"Vaporeon", "134.txt", 8556, 20, 100, "Vaporeon", 99237},

{"Jolteon", "135.txt", 8557, 20, 100, "Jolteon", 99238},

{"Flareon", "136.txt", 8558, 20, 100, "Flareon", 99239},

{"Porygon", "137.txt", 8559, 20, 100, "Porygon", 99240},

{"Omanyte", "138.txt", 8560, 20, 100, "Omanyte", 99241},

{"Omastar", "139.txt", 8561, 20, 100, "Omastar", 99242},

{"Kabuto", "140.txt", 8562, 20, 100, "Kabuto", 99243},

{"Kabutops", "141.txt", 8563, 20, 100, "Kabutops", 99244},

{"Aerodactyl", "142.txt", 8564, 20, 100, "Aerodactyl", 99245},

{"Snorlax", "143.txt", 8565, 20, 100, "Snorlax", 99246},

{"Articuno", "144.txt", 8566, 20, 100, "Articuno", 99247},

{"Zapdos", "145.txt", 8567, 20, 100, "Zapdos", 99248},

{"Moltres", "146.txt", 8568, 20, 100, "Moltres", 99249},

{"Dratini", "147.txt", 8569, 20, 100, "Dratini", 99250},

{"Dragonair", "148.txt", 8570, 20, 100, "Dragonair", 99251},

{"Dragonite", "149.txt", 8571, 20, 100, "Dragonite", 99252},

{"Elder Charizard", "150.txt", 8572, 20, 100, "Elder Charizard", 99253},

{"Crystal Onix", "151.txt", 8573, 20, 100, "Crystal Onix", 99254},

 

}

 

for _,n in pairs(pokemons) do

if isSummon(pokemon) then

local Dex = io.open('data/pokedex/' .. n[2],'r')

if getCreatureName(pokemon) == n[1] and getPlayerLevel(cid) >= n[4] and getPlayerStorageValue(cid, n[7]) <= 0 then

doShowTextDialog(cid, n[3], Dex:read("*all"))

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have unlocked " .. n[6] .. " in your pokedex")

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have gained " .. n[5] .. " experience points.")

doPlayerAddExperience(cid, n[5])

setPlayerStorageValue(cid, n[7], 1)

elseif getCreatureName(pokemon) == n[1] and getPlayerLevel(cid) < n[4] and getPlayerStorageValue(cid, n[7]) <= 0 then

doShowTextDialog(cid, n[3], Dex:read("*all"))

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need level " .. n[4] .. " to unlock this pokemon.")

elseif getCreatureName(pokemon) == n[1] and getPlayerStorageValue(cid, n[7]) >= 1 then

doShowTextDialog(cid, n[3], Dex:read("*all"))

end

Dex:close()

elseif isMonster(pokemon) then

local Dex = io.open('data/pokedex/' .. n[2],'r')

if getCreatureName(pokemon) == n[1] and getPlayerStorageValue(cid, n[7]) <= 0 then

doShowTextDialog(cid, n[3], Dex:read("*all"))

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have unlocked " .. n[6] .. " in your pokedex")

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have gained " .. n[5] .. " experience points.")

doPlayerAddExperience(cid, n[5])

setPlayerStorageValue(cid, n[7], 1)

elseif getCreatureName(pokemon) == n[1] and getPlayerStorageValue(cid, n[7]) >= 1 then

doShowTextDialog(cid, n[3], Dex:read("*all"))

end

Dex:close()

end

end

 

return true

 

end

 

 

 

Em seguida crie na pasta data uma pasta com o nome de pokedex

abra ela e adicione oque voce quer por, um exemplo:

Voce Cria um Documento de texto la e escreva dentro

 

Name: Bulbasaur

Type: Grass

Requires Level: 20

 

Moves:

Quick Attack - m1 - level 20

Razor Leaf - m2 - level 20

Vine Whip - m3 - level 20

Headbutt - m4 - level 20

Leech Seed - m5 - level 22

Solar Beam - m6 - level 40

Sleep Powder - m7 - level 35

Stun Spore - m8 - level 28

Poison Powder - m9 - level 26

 

Evolutions:

 

Bulbasaur, requires level 20

Ivysaur, requires level 40

Vanusaur, requires level 80

 

Habilities:

Cut

 

PRONTo ta criado a pokedex no bulbasaur,

IMPORTANTE: os documentos de texto devem estar enumerados com seus devidos bixos, no script mostra assim {"Bulbasaur", "1.txt", 8423, 20, 100, "Bulbasaur", 99101},

no 1.txt, intao o do bulbasaur o nome do documento de texto é 1, e assim voce vai seguindo.. e escrevendo oque quiser, compreende?

 

qualquer problema so postar

 

Boa sorte ! :smile_positivo:

Link para o comentário
Compartilhar em outros sites

lol cara procura antes de pedi q prequiça e essa carai...

 

ai o link do script :

http://www.xtibia.com/forum/topic/145201-perfect-pokedex-system/page__p__960758__hl__pokedex__fromsearch__1#entry960758

 

@respostinhaa

Lol cara nao era mais facil voce passa o link do topico do script!

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...