Ir para conteúdo

Galera Me Ajuda Estou Com Um Pobrema


williansacho

Posts Recomendados

o meu catch esta com um erro ele pega o pokemon na hora a pokeball nao falha nunca sempre pega e eu quero que falhe se ela fica pegando sempre qual a graça me ajuda o otserv chama:fight ru baixei ele nesse topico>http://www.xtibia.com/forum/topic/153484-pokemon-fight/ se alguem pode me ajudar com o meu pobrema muito obrigado ^-^des de agora vlw me ajuda ai! :smile_positivo:

Link para o comentário
Compartilhar em outros sites

Verifica o catchrate do seu catch.lua...Qualquer coisa posta seus catch para que possamos ajudar vc!!

 

vlw manow aki ele

 

local pokes = {

["Zubat"] = {corpseid = 5989, chance = 20, health = 642, maxhealth = 642},

["Zapdos"] = {corpseid = 6074, chance = 1, health = 100, maxhealth = 100},

["Wygglypuff"] = {corpseid = 2981, chance = 12, health = 100, maxhealth = 100},

["Wigglytuff"] = {corpseid = 6012, chance = 12, health = 4000, maxhealth = 4000},

["Weezing"] = {corpseid = 6306, chance = 12, health = 3450, maxhealth = 3450},

["Weepinbell"] = {corpseid = 4266, chance = 12, health = 1280, maxhealth = 1280},

["Weedle"] = {corpseid = 5964, chance = 30, health = 291, maxhealth = 291},

["Wartortle"] = {corpseid = 5978, chance = 10, health = 4115, maxhealth = 4115},

["Vulpix"] = {corpseid = 6003, chance = 20, health = 1200, maxhealth = 1200},

["Voltorb"] = {corpseid = 6049, chance = 20, health = 1000, maxhealth = 1000},

["Vileplume"] = {corpseid = 6025, chance = 12, health = 4100, maxhealth = 4100},

["Victribell"] = {corpseid = 6332, chance = 8, health = 3850, maxhealth = 3850},

["Venusaur"] = {corpseid = 5962, chance = 5, health = 11170, maxhealth = 11170},

["Venonat"] = {corpseid = 5997, chance = 15, health = 1250, maxhealth = 1250},

["Venomoth"] = {corpseid = 2925, chance = 8, health = 3950, maxhealth = 3950},

["Vaporeon"] = {corpseid = 5960, chance = 1, health = 100, maxhealth = 100},

["Tentacruel"] = {corpseid = 6037, chance = 6, health = 8200, maxhealth = 8200},

["Tentacool"] = {corpseid = 2961, chance = 18, health = 914, maxhealth = 914},

["Tauros"] = {corpseid = 6302, chance = 12, health = 4100, maxhealth = 4100},

["Tangela"] = {corpseid = 5976, chance = 12, health = 4060, maxhealth = 4060},

["Staryu"] = {corpseid = 5987, chance = 15, health = 1000, maxhealth = 1000},

["Starmie"] = {corpseid = 7320, chance = 12, health = 3850, maxhealth = 3850},

["Squirtle"] = {corpseid = 6008, chance = 13, health = 1600, maxhealth = 1600},

["Spearow"] = {corpseid = 5968, chance = 19, health = 642, maxhealth = 642},

["Snorlax"] = {corpseid = 6016, chance = 3, health = 15350, maxhealth = 15350},

["Slowpoke"] = {corpseid = 2926, chance = 15, health = 1280, maxhealth = 1280},

["Slowbro"] = {corpseid = 5986, chance = 10, health = 4020, maxhealth = 4020},

["Shellder"] = {corpseid = 3097, chance = 20, health = 968, maxhealth = 968},

["Seel"] = {corpseid = 6030, chance = 17, health = 1470, maxhealth = 1470},

["Seaking"] = {corpseid = 3038, chance = 14, health = 2315, maxhealth = 2315},

["Seadra"] = {corpseid = 2872, chance = 14, health = 900, maxhealth = 900},

["Scyther"] = {corpseid = 3002, chance = 7, health = 6810, maxhealth = 6810},

["Sandslash"] = {corpseid = 6041, chance = 12, health = 5700, maxhealth = 5700},

["Sandshrew"] = {corpseid = 5988, chance = 18, health = 1019, maxhealth = 1019},

["Rhyhorn"] = {corpseid = 3035, chance = 40, health = 1750, maxhealth = 1750},

["Rhydon"] = {corpseid = 2858, chance = 40, health = 5115, maxhealth = 5115},

["Rattata"] = {corpseid = 5974, chance = 40, health = 291, maxhealth = 291},

["Raticate"] = {corpseid = 6007, chance = 40, health = 1300, maxhealth = 1300},

["Rapidash"] = {corpseid = 4323, chance = 40, health = 5020, maxhealth = 5020},

["Raichu"] = {corpseid = 5996, chance = 40, health = 4115, maxhealth = 4115},

["Psyduck"] = {corpseid = 6029, chance = 40, health = 1210, maxhealth = 1210},

["Primeape"] = {corpseid = 6032, chance = 40, health = 4760, maxhealth = 4760},

["Porygon"] = {corpseid = 5963, chance = 40, health = 100, maxhealth = 100},

["Ponyta"] = {corpseid = 5975, chance = 40, health = 980, maxhealth = 980},

["Poliwrath"] = {corpseid = 6033, chance = 40, health = 4950, maxhealth = 4950},

["Poliwhirl"] = {corpseid = 6054, chance = 40, health = 1650, maxhealth = 1650},

["Poliwag"] = {corpseid = 6042, chance = 40, health = 631, maxhealth = 631},

["Pinsir"] = {corpseid = 7282, chance = 40, health = 3150, maxhealth = 3150},

["Pikachu"] = {corpseid = 6001, chance = 40, health = 1600, maxhealth = 1600},

["Pidgeot"] = {corpseid = 6020, chance = 40, health = 5870, maxhealth = 5870},

["Pidgey"] = {corpseid = 5961, chance = 40, health = 295, maxhealth = 292},

["Pidgeotto"] = {corpseid = 5966, chance = 40, health = 1280, maxhealth = 1280},

["Persian"] = {corpseid = 6009, chance = 40, health = 2850, maxhealth = 2850},

["Parasect"] = {corpseid = 6027, chance = 40, health = 4100, maxhealth = 4100},

["Paras"] = {corpseid = 3007, chance = 40, health = 425, maxhealth = 425},

["Onix"] = {corpseid = 2990, chance = 40, health = 4100, maxhealth = 4100},

["Omastar"] = {corpseid = 5994, chance = 40, health = 100, maxhealth = 100},

["Omanyte"] = {corpseid = 5998, chance = 40, health = 4530, maxhealth = 4530},

["Oddish"] = {corpseid = 3008, chance = 40, health = 460, maxhealth = 460},

["Ninetales"] = {corpseid = 6040, chance = 40, health = 5800, maxhealth = 5800},

["Nidorino"] = {corpseid = 6019, chance = 40, health = 2100, maxhealth = 2100},

["Nidorina"] = {corpseid = 6014, chance = 40, health = 2300, maxhealth = 2300},

["Nidoranma"] = {corpseid = 6015, chance = 40, health = 985, maxhealth = 985},

["Nidoranfe"] = {corpseid = 6013, chance = 40, health = 100, maxhealth = 100},

["Nidoqueen"] = {corpseid = 3004, chance = 40, health = 7800, maxhealth = 7800},

["Nidoking"] = {corpseid = 5995, chance = 40, health = 7800, maxhealth = 7800},

["Muk"] = {corpseid = 2845, chance = 40, health = 3250, maxhealth = 3250},

["Mr.Mime"] = {corpseid = 6069, chance = 40, health = 5320, maxhealth = 5320},

["Moltres"] = {corpseid = 7330, chance = 40, health = 100, maxhealth = 100},

["Mewtwo"] = {corpseid = 5973, chance = 40, health = 100, maxhealth = 100},

["Mew"] = {corpseid = 2939, chance = 40, health = 100, maxhealth = 100},

["Metapod"] = {corpseid = 5970, chance = 40, health = 1120, maxhealth = 1120},

["Meowth"] = {corpseid = 6034, chance = 40, health = 1040, maxhealth = 1040},

["Marowak"] = {corpseid = 6072, chance = 40, health = 4125, maxhealth = 4125},

["Mankey"] = {corpseid = 6035, chance = 40, health = 1000, maxhealth = 1000},

["Magneton"] = {corpseid = 6076, chance = 40, health = 4100, maxhealth = 4100},

["Magnemite"] = {corpseid = 6056, chance = 40, health = 614, maxhealth = 614},

["Magmar"] = {corpseid = 7283, chance = 40, health = 7050, maxhealth = 7050},

["Magikarp"] = {corpseid = 2818, chance = 40, health = 250, maxhealth = 250},

["Machop"] = {corpseid = 6045, chance = 40, health = 1640, maxhealth = 1640},

["Machoke"] = {corpseid = 4251, chance = 40, health = 3755, maxhealth = 3755},

["Machamp"] = {corpseid = 6048, chance = 40, health = 7560, maxhealth = 7560},

["Lickitung"] = {corpseid = 2953, chance = 40, health = 5320, maxhealth = 5320},

["Lapras"] = {corpseid = 6018, chance = 40, health = 7320, maxhealth = 7320},

["Krabby"] = {corpseid = 6039, chance = 40, health = 744, maxhealth = 744},

["Koffing"] = {corpseid = 2936, chance = 40, health = 975, maxhealth = 975},

["Kingler"] = {corpseid = 6340, chance = 40, health = 3115, maxhealth = 3115},

["Kangaskhan"] = {corpseid = 6073, chance = 40, health = 7550, maxhealth = 7550},

["Kakuna"] = {corpseid = 6000, chance = 40, health = 1120, maxhealth = 1120},

["Kadabra"] = {corpseid = 6060, chance = 40, health = 2765, maxhealth = 2765},

["Kabutops"] = {corpseid = 6337, chance = 40, health = 100, maxhealth = 100},

["Kabuto"] = {corpseid = 5972, chance = 40, health = 100, maxhealth = 100},

["Jynx"] = {corpseid = 5765, chance = 40, health = 7060, maxhealth = 7060},

["Jyglipuff"] = {corpseid = 2979, chance = 40, health = 100, maxhealth = 100},

["Jolteon"] = {corpseid = 6044, chance = 40, health = 100, maxhealth = 100},

["Jigglypuff"] = {corpseid = 6011, chance = 40, health = 1695, maxhealth = 1695},

["Ivysaur"] = {corpseid = 5982, chance = 40, health = 4115, maxhealth = 4115},

["Hypno"] = {corpseid = 6046, chance = 40, health = 4590, maxhealth = 4590},

["Horsea"] = {corpseid = 2973, chance = 40, health = 604, maxhealth = 604},

["Hitmonlee"] = {corpseid = 6067, chance = 40, health = 7000, maxhealth = 7000},

["Hitmonchan"] = {corpseid = 5977, chance = 40, health = 7000, maxhealth = 7000},

["Haunter"] = {corpseid = 6004, chance = 40, health = 4250, maxhealth = 4250},

["Gyarados"] = {corpseid = 6331, chance = 40, health = 10150, maxhealth = 10150},

["Growlithe"] = {corpseid = 6036, chance = 40, health = 1200, maxhealth = 1200},

["Goldeen"] = {corpseid = 2970, chance = 40, health = 900, maxhealth = 900},

["Golduck"] = {corpseid = 6028, chance = 40, health = 5115, maxhealth = 5115},

["Golem"] = {corpseid = 6043, chance = 40, health = 5250, maxhealth = 5250},

["Graveler"] = {corpseid = 6520, chance = 40, health = 3100, maxhealth = 3100},

["Grimer"] = {corpseid = 6055, chance = 40, health = 1050, maxhealth = 1050},

["Golbat"] = {corpseid = 6053, chance = 40, health = 2480, maxhealth = 2480},

["Gloom"] = {corpseid = 6017, chance = 40, health = 1530, maxhealth = 1530},

["Geodude"] = {corpseid = 6071, chance = 40, health = 1528, maxhealth = 1528},

["Gengar"] = {corpseid = 6336, chance = 40, health = 8400, maxhealth = 8400},

["Gastly"] = {corpseid = 5993, chance = 40, health = 1160, maxhealth = 1160},

["Flareon"] = {corpseid = 6059, chance = 40, health = 100, maxhealth = 100},

["Fearow"] = {corpseid = 5992, chance = 40, health = 3495, maxhealth = 3495},

["Farfetch"] = {corpseid = 2836, chance = 40, health = 3870, maxhealth = 3870},

["Exeggutor"] = {corpseid = 3005, chance = 40, health = 4550, maxhealth = 4550},

["Exeggcute"] = {corpseid = 2982, chance = 40, health = 1100, maxhealth = 1100},

["Ekans"] = {corpseid = 5979, chance = 40, health = 882, maxhealth = 882},

["Shiny Charizard"] = {corpseid = 2954, chance = 40, health = 13170, maxhealth = 13170},

["Electabuzz"] = {corpseid = 6065, chance = 40, health = 7050, maxhealth = 7050},

["Electrode"] = {corpseid = 6051, chance = 40, health = 3150, maxhealth = 3150},

["Dugtrio"] = {corpseid = 6024, chance = 40, health = 3280, maxhealth = 3280},

["Drowzee"] = {corpseid = 6026, chance = 40, health = 1950, maxhealth = 1950},

["Dratini"] = {corpseid = 2879, chance = 40, health = 1810, maxhealth = 1810},

["Dragonite"] = {corpseid = 4295, chance = 40, health = 17150, maxhealth = 17150},

["Dragonair"] = {corpseid = 6002, chance = 40, health = 7600, maxhealth = 7600},

["Doduo"] = {corpseid = 2842, chance = 40, health = 936, maxhealth = 936},

["Dodrio"] = {corpseid = 6047, chance = 40, health = 3570, maxhealth = 3570},

["Ditto"] = {corpseid = 2817, chance = 40, health = 4115, maxhealth = 4115},

["Diglett"] = {corpseid = 6023, chance = 40, health = 696, maxhealth = 696},

["Dewgong"] = {corpseid = 6038, chance = 40, health = 7300, maxhealth = 7300},

["Cubone"] = {corpseid = 6050, chance = 40, health = 1640, maxhealth = 1640},

["Crystal Onix"] = {corpseid = 6320, chance = 40, health = 100, maxhealth = 100},

["Cloyster"] = {corpseid = 2932, chance = 40, health = 5825, maxhealth = 5825},

["Clefairy"] = {corpseid = 2968, chance = 40, health = 1695, maxhealth = 1695},

["Clefabe"] = {corpseid = 6006, chance = 40, health = 4400, maxhealth = 4400},

["Charmeleon"] = {corpseid = 5981, chance = 40, health = 4115, maxhealth = 4115},

["Charmander"] = {corpseid = 5983, chance = 40, health = 1600, maxhealth = 1600},

["Charizard"] = {corpseid = 6005, chance = 40, health = 11170, maxhealth = 11170},

["Chansey"] = {corpseid = 6010, chance = 40, health = 5000, maxhealth = 5000},

["Caterpie"] = {corpseid = 3099, chance = 40, health = 291, maxhealth = 291},

["Butterfree"] = {corpseid = 5985, chance = 40, health = 2200, maxhealth = 2200},

["Bulbasaur"] = {corpseid = 5969, chance = 40, health = 1600, maxhealth = 1600},

["Blastoise"] = {corpseid = 5999, chance = 40, health = 11170, maxhealth = 11170},

["Bellsprout"] = {corpseid = 3047, chance = 40, health = 838, maxhealth = 838},

["Beedrill"] = {corpseid = 5990, chance = 40, health = 2200, maxhealth = 2200},

["Articuno"] = {corpseid = 7260, chance = 40, health = 100, maxhealth = 100},

["Arcanine"] = {corpseid = 6031, chance = 40, health = 7800, maxhealth = 7800},

["Arbok"] = {corpseid = 5984, chance = 40, health = 2405, maxhealth = 2405},

["Alakazam"] = {corpseid = 6057, chance = 40, health = 7350, maxhealth = 7350},

["Aerodactyl"] = {corpseid = 6338, chance = 40, health = 100, maxhealth = 100},

["Abra"] = {corpseid = 3000, chance = 40, health = 870, maxhealth = 870},

}

 

local time = 3.8 -- Tempo para mandar as mensagens e adiciona item

 

function onUse(cid, item, frompos, item2, topos)

for i,x in pairs(pokes) do

if item2.itemid == x.corpseid then

doRemoveItem(item.uid, 1)

doRemoveItem(item2.uid, 1)

if math.random(1,100) <= x.chance then

function add()

local s = doPlayerAddItem(cid, pokein)

doItemSetAttribute(s, "poke", "This is "..i.."'s pokeball. HP = ["..x.health.."/"..x.maxhealth.."]")

doItemSetAttribute(s, "description", "Contains a " .. i)

end

doSendMagicEffect(topos, 24)

addEvent(add, time*1000)

 

return addEvent(doPlayerSendTextMessage, time*1000, cid, 27, "You catch a " .. i .. ".")

else

addEvent(doPlayerSendTextMessage, time*1000, cid, 27, "Your pokeball broke.")

return doSendMagicEffect(topos, 23)

end

end

end

return TRUE

end

 

Verifica o catchrate do seu catch.lua...Qualquer coisa posta seus catch para que possamos ajudar vc!!

 

onde fica o catchrate do meu catch??? :worriedsmiley:

Link para o comentário
Compartilhar em outros sites

Verifica se funcionou

 

local pokes = {["Zubat"] = {corpseid = 5989, chance = 20, health = 642, maxhealth = 642},["Zapdos"] = {corpseid = 6074, chance = 1, health = 100, maxhealth = 100},["Wygglypuff"] = {corpseid = 2981, chance = 12, health = 100, maxhealth = 100},["Wigglytuff"] = {corpseid = 6012, chance = 12, health = 4000, maxhealth = 4000},["Weezing"] = {corpseid = 6306, chance = 12, health = 3450, maxhealth = 3450},["Weepinbell"] = {corpseid = 4266, chance = 12, health = 1280, maxhealth = 1280},["Weedle"] = {corpseid = 5964, chance = 30, health = 291, maxhealth = 291},["Wartortle"] = {corpseid = 5978, chance = 10, health = 4115, maxhealth = 4115},["Vulpix"] = {corpseid = 6003, chance = 20, health = 1200, maxhealth = 1200},["Voltorb"] = {corpseid = 6049, chance = 20, health = 1000, maxhealth = 1000},["Vileplume"] = {corpseid = 6025, chance = 12, health = 4100, maxhealth = 4100},["Victribell"] = {corpseid = 6332, chance = 8, health = 3850, maxhealth = 3850},["Venusaur"] = {corpseid = 5962, chance = 5, health = 11170, maxhealth = 11170},["Venonat"] = {corpseid = 5997, chance = 15, health = 1250, maxhealth = 1250},["Venomoth"] = {corpseid = 2925, chance = 8, health = 3950, maxhealth = 3950},["Vaporeon"] = {corpseid = 5960, chance = 1, health = 100, maxhealth = 100},["Tentacruel"] = {corpseid = 6037, chance = 6, health = 8200, maxhealth = 8200},["Tentacool"] = {corpseid = 2961, chance = 18, health = 914, maxhealth = 914},["Tauros"] = {corpseid = 6302, chance = 12, health = 4100, maxhealth = 4100},["Tangela"] = {corpseid = 5976, chance = 12, health = 4060, maxhealth = 4060},["Staryu"] = {corpseid = 5987, chance = 15, health = 1000, maxhealth = 1000},["Starmie"] = {corpseid = 7320, chance = 12, health = 3850, maxhealth = 3850},["Squirtle"] = {corpseid = 6008, chance = 13, health = 1600, maxhealth = 1600},["Spearow"] = {corpseid = 5968, chance = 19, health = 642, maxhealth = 642},["Snorlax"] = {corpseid = 6016, chance = 3, health = 15350, maxhealth = 15350},["Slowpoke"] = {corpseid = 2926, chance = 15, health = 1280, maxhealth = 1280},["Slowbro"] = {corpseid = 5986, chance = 10, health = 4020, maxhealth = 4020},["Shellder"] = {corpseid = 3097, chance = 20, health = 968, maxhealth = 968},["Seel"] = {corpseid = 6030, chance = 17, health = 1470, maxhealth = 1470},["Seaking"] = {corpseid = 3038, chance = 14, health = 2315, maxhealth = 2315},["Seadra"] = {corpseid = 2872, chance = 14, health = 900, maxhealth = 900},["Scyther"] = {corpseid = 3002, chance = 7, health = 6810, maxhealth = 6810},["Sandslash"] = {corpseid = 6041, chance = 12, health = 5700, maxhealth = 5700},["Sandshrew"] = {corpseid = 5988, chance = 18, health = 1019, maxhealth = 1019},["Rhyhorn"] = {corpseid = 3035, chance = 40, health = 1750, maxhealth = 1750},["Rhydon"] = {corpseid = 2858, chance = 40, health = 5115, maxhealth = 5115},["Rattata"] = {corpseid = 5974, chance = 40, health = 291, maxhealth = 291},["Raticate"] = {corpseid = 6007, chance = 40, health = 1300, maxhealth = 1300},["Rapidash"] = {corpseid = 4323, chance = 40, health = 5020, maxhealth = 5020},["Raichu"] = {corpseid = 5996, chance = 40, health = 4115, maxhealth = 4115},["Psyduck"] = {corpseid = 6029, chance = 40, health = 1210, maxhealth = 1210},["Primeape"] = {corpseid = 6032, chance = 40, health = 4760, maxhealth = 4760},["Porygon"] = {corpseid = 5963, chance = 40, health = 100, maxhealth = 100},["Ponyta"] = {corpseid = 5975, chance = 40, health = 980, maxhealth = 980},["Poliwrath"] = {corpseid = 6033, chance = 40, health = 4950, maxhealth = 4950},["Poliwhirl"] = {corpseid = 6054, chance = 40, health = 1650, maxhealth = 1650},["Poliwag"] = {corpseid = 6042, chance = 40, health = 631, maxhealth = 631},["Pinsir"] = {corpseid = 7282, chance = 40, health = 3150, maxhealth = 3150},["Pikachu"] = {corpseid = 6001, chance = 40, health = 1600, maxhealth = 1600},["Pidgeot"] = {corpseid = 6020, chance = 40, health = 5870, maxhealth = 5870},["Pidgey"] = {corpseid = 5961, chance = 40, health = 295, maxhealth = 292},["Pidgeotto"] = {corpseid = 5966, chance = 40, health = 1280, maxhealth = 1280},["Persian"] = {corpseid = 6009, chance = 40, health = 2850, maxhealth = 2850},["Parasect"] = {corpseid = 6027, chance = 40, health = 4100, maxhealth = 4100},["Paras"] = {corpseid = 3007, chance = 40, health = 425, maxhealth = 425},["Onix"] = {corpseid = 2990, chance = 40, health = 4100, maxhealth = 4100},["Omastar"] = {corpseid = 5994, chance = 40, health = 100, maxhealth = 100},["Omanyte"] = {corpseid = 5998, chance = 40, health = 4530, maxhealth = 4530},["Oddish"] = {corpseid = 3008, chance = 40, health = 460, maxhealth = 460},["Ninetales"] = {corpseid = 6040, chance = 40, health = 5800, maxhealth = 5800},["Nidorino"] = {corpseid = 6019, chance = 40, health = 2100, maxhealth = 2100},["Nidorina"] = {corpseid = 6014, chance = 40, health = 2300, maxhealth = 2300},["Nidoranma"] = {corpseid = 6015, chance = 40, health = 985, maxhealth = 985},["Nidoranfe"] = {corpseid = 6013, chance = 40, health = 100, maxhealth = 100},["Nidoqueen"] = {corpseid = 3004, chance = 40, health = 7800, maxhealth = 7800},["Nidoking"] = {corpseid = 5995, chance = 40, health = 7800, maxhealth = 7800},["Muk"] = {corpseid = 2845, chance = 40, health = 3250, maxhealth = 3250},["Mr.Mime"] = {corpseid = 6069, chance = 40, health = 5320, maxhealth = 5320},["Moltres"] = {corpseid = 7330, chance = 40, health = 100, maxhealth = 100},["Mewtwo"] = {corpseid = 5973, chance = 40, health = 100, maxhealth = 100},["Mew"] = {corpseid = 2939, chance = 40, health = 100, maxhealth = 100},["Metapod"] = {corpseid = 5970, chance = 40, health = 1120, maxhealth = 1120},["Meowth"] = {corpseid = 6034, chance = 40, health = 1040, maxhealth = 1040},["Marowak"] = {corpseid = 6072, chance = 40, health = 4125, maxhealth = 4125},["Mankey"] = {corpseid = 6035, chance = 40, health = 1000, maxhealth = 1000},["Magneton"] = {corpseid = 6076, chance = 40, health = 4100, maxhealth = 4100},["Magnemite"] = {corpseid = 6056, chance = 40, health = 614, maxhealth = 614},["Magmar"] = {corpseid = 7283, chance = 40, health = 7050, maxhealth = 7050},["Magikarp"] = {corpseid = 2818, chance = 40, health = 250, maxhealth = 250},["Machop"] = {corpseid = 6045, chance = 40, health = 1640, maxhealth = 1640},["Machoke"] = {corpseid = 4251, chance = 40, health = 3755, maxhealth = 3755},["Machamp"] = {corpseid = 6048, chance = 40, health = 7560, maxhealth = 7560},["Lickitung"] = {corpseid = 2953, chance = 40, health = 5320, maxhealth = 5320},["Lapras"] = {corpseid = 6018, chance = 40, health = 7320, maxhealth = 7320},["Krabby"] = {corpseid = 6039, chance = 40, health = 744, maxhealth = 744},["Koffing"] = {corpseid = 2936, chance = 40, health = 975, maxhealth = 975},["Kingler"] = {corpseid = 6340, chance = 40, health = 3115, maxhealth = 3115},["Kangaskhan"] = {corpseid = 6073, chance = 40, health = 7550, maxhealth = 7550},["Kakuna"] = {corpseid = 6000, chance = 40, health = 1120, maxhealth = 1120},["Kadabra"] = {corpseid = 6060, chance = 40, health = 2765, maxhealth = 2765},["Kabutops"] = {corpseid = 6337, chance = 40, health = 100, maxhealth = 100},["Kabuto"] = {corpseid = 5972, chance = 40, health = 100, maxhealth = 100},["Jynx"] = {corpseid = 5765, chance = 40, health = 7060, maxhealth = 7060},["Jyglipuff"] = {corpseid = 2979, chance = 40, health = 100, maxhealth = 100},["Jolteon"] = {corpseid = 6044, chance = 40, health = 100, maxhealth = 100},["Jigglypuff"] = {corpseid = 6011, chance = 40, health = 1695, maxhealth = 1695},["Ivysaur"] = {corpseid = 5982, chance = 40, health = 4115, maxhealth = 4115},["Hypno"] = {corpseid = 6046, chance = 40, health = 4590, maxhealth = 4590},["Horsea"] = {corpseid = 2973, chance = 40, health = 604, maxhealth = 604},["Hitmonlee"] = {corpseid = 6067, chance = 40, health = 7000, maxhealth = 7000},["Hitmonchan"] = {corpseid = 5977, chance = 40, health = 7000, maxhealth = 7000},["Haunter"] = {corpseid = 6004, chance = 40, health = 4250, maxhealth = 4250},["Gyarados"] = {corpseid = 6331, chance = 40, health = 10150, maxhealth = 10150},["Growlithe"] = {corpseid = 6036, chance = 40, health = 1200, maxhealth = 1200},["Goldeen"] = {corpseid = 2970, chance = 40, health = 900, maxhealth = 900},["Golduck"] = {corpseid = 6028, chance = 40, health = 5115, maxhealth = 5115},["Golem"] = {corpseid = 6043, chance = 40, health = 5250, maxhealth = 5250},["Graveler"] = {corpseid = 6520, chance = 40, health = 3100, maxhealth = 3100},["Grimer"] = {corpseid = 6055, chance = 40, health = 1050, maxhealth = 1050},["Golbat"] = {corpseid = 6053, chance = 40, health = 2480, maxhealth = 2480},["Gloom"] = {corpseid = 6017, chance = 40, health = 1530, maxhealth = 1530},["Geodude"] = {corpseid = 6071, chance = 40, health = 1528, maxhealth = 1528},["Gengar"] = {corpseid = 6336, chance = 40, health = 8400, maxhealth = 8400},["Gastly"] = {corpseid = 5993, chance = 40, health = 1160, maxhealth = 1160},["Flareon"] = {corpseid = 6059, chance = 40, health = 100, maxhealth = 100},["Fearow"] = {corpseid = 5992, chance = 40, health = 3495, maxhealth = 3495},["Farfetch"] = {corpseid = 2836, chance = 40, health = 3870, maxhealth = 3870},["Exeggutor"] = {corpseid = 3005, chance = 40, health = 4550, maxhealth = 4550},["Exeggcute"] = {corpseid = 2982, chance = 40, health = 1100, maxhealth = 1100},["Ekans"] = {corpseid = 5979, chance = 40, health = 882, maxhealth = 882},["Shiny Charizard"] = {corpseid = 2954, chance = 40, health = 13170, maxhealth = 13170},["Electabuzz"] = {corpseid = 6065, chance = 40, health = 7050, maxhealth = 7050},["Electrode"] = {corpseid = 6051, chance = 40, health = 3150, maxhealth = 3150},["Dugtrio"] = {corpseid = 6024, chance = 40, health = 3280, maxhealth = 3280},["Drowzee"] = {corpseid = 6026, chance = 40, health = 1950, maxhealth = 1950},["Dratini"] = {corpseid = 2879, chance = 40, health = 1810, maxhealth = 1810},["Dragonite"] = {corpseid = 4295, chance = 40, health = 17150, maxhealth = 17150},["Dragonair"] = {corpseid = 6002, chance = 40, health = 7600, maxhealth = 7600},["Doduo"] = {corpseid = 2842, chance = 40, health = 936, maxhealth = 936},["Dodrio"] = {corpseid = 6047, chance = 40, health = 3570, maxhealth = 3570},["Ditto"] = {corpseid = 2817, chance = 40, health = 4115, maxhealth = 4115},["Diglett"] = {corpseid = 6023, chance = 40, health = 696, maxhealth = 696},["Dewgong"] = {corpseid = 6038, chance = 40, health = 7300, maxhealth = 7300},["Cubone"] = {corpseid = 6050, chance = 40, health = 1640, maxhealth = 1640},["Crystal Onix"] = {corpseid = 6320, chance = 40, health = 100, maxhealth = 100},["Cloyster"] = {corpseid = 2932, chance = 40, health = 5825, maxhealth = 5825},["Clefairy"] = {corpseid = 2968, chance = 40, health = 1695, maxhealth = 1695},["Clefabe"] = {corpseid = 6006, chance = 40, health = 4400, maxhealth = 4400},["Charmeleon"] = {corpseid = 5981, chance = 40, health = 4115, maxhealth = 4115},["Charmander"] = {corpseid = 5983, chance = 40, health = 1600, maxhealth = 1600},["Charizard"] = {corpseid = 6005, chance = 40, health = 11170, maxhealth = 11170},["Chansey"] = {corpseid = 6010, chance = 40, health = 5000, maxhealth = 5000},["Caterpie"] = {corpseid = 3099, chance = 40, health = 291, maxhealth = 291},["Butterfree"] = {corpseid = 5985, chance = 40, health = 2200, maxhealth = 2200},["Bulbasaur"] = {corpseid = 5969, chance = 40, health = 1600, maxhealth = 1600},["Blastoise"] = {corpseid = 5999, chance = 40, health = 11170, maxhealth = 11170},["Bellsprout"] = {corpseid = 3047, chance = 40, health = 838, maxhealth = 838},["Beedrill"] = {corpseid = 5990, chance = 40, health = 2200, maxhealth = 2200},["Articuno"] = {corpseid = 7260, chance = 40, health = 100, maxhealth = 100},["Arcanine"] = {corpseid = 6031, chance = 40, health = 7800, maxhealth = 7800},["Arbok"] = {corpseid = 5984, chance = 40, health = 2405, maxhealth = 2405},["Alakazam"] = {corpseid = 6057, chance = 40, health = 7350, maxhealth = 7350},["Aerodactyl"] = {corpseid = 6338, chance = 40, health = 100, maxhealth = 100},["Abra"] = {corpseid = 3000, chance = 40, health = 870, maxhealth = 870},}local time = 3.8 -- Tempo para mandar as mensagens e adiciona itemfunction onUse(cid, item, frompos, item2, topos)for i,x in pairs(pokes) doif item2.itemid == x.corpseid thendoRemoveItem(item.uid, 1)doRemoveItem(item2.uid, 1)if math.random(1,10) <= x.chance thenfunction add()local s = doPlayerAddItem(cid, pokein)doItemSetAttribute(s, "poke", "This is "..i.."'s pokeball. HP = ["..x.health.."/"..x.maxhealth.."]")doItemSetAttribute(s, "description", "Contains a " .. i)enddoSendMagicEffect(topos, 24)addEvent(add, time*1000)return addEvent(doPlayerSendTextMessage, time*1000, cid, 27, "You catch a " .. i .. ".")elseaddEvent(doPlayerSendTextMessage, time*1000, cid, 27, "Your pokeball broke.")return doSendMagicEffect(topos, 23)endendendreturn TRUEend

 

 

Se nao Funcionar eu vo ver se posso fazer de outro geito..Agora nao e pra ele pegar td hora...Tbm seu chance estao todos 40 mude eles para dificultair ainda mais o catch

 

Se ajudei Rep+

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

Verifica se funcionou

 

local pokes = {["Zubat"] = {corpseid = 5989, chance = 20, health = 642, maxhealth = 642},["Zapdos"] = {corpseid = 6074, chance = 1, health = 100, maxhealth = 100},["Wygglypuff"] = {corpseid = 2981, chance = 12, health = 100, maxhealth = 100},["Wigglytuff"] = {corpseid = 6012, chance = 12, health = 4000, maxhealth = 4000},["Weezing"] = {corpseid = 6306, chance = 12, health = 3450, maxhealth = 3450},["Weepinbell"] = {corpseid = 4266, chance = 12, health = 1280, maxhealth = 1280},["Weedle"] = {corpseid = 5964, chance = 30, health = 291, maxhealth = 291},["Wartortle"] = {corpseid = 5978, chance = 10, health = 4115, maxhealth = 4115},["Vulpix"] = {corpseid = 6003, chance = 20, health = 1200, maxhealth = 1200},["Voltorb"] = {corpseid = 6049, chance = 20, health = 1000, maxhealth = 1000},["Vileplume"] = {corpseid = 6025, chance = 12, health = 4100, maxhealth = 4100},["Victribell"] = {corpseid = 6332, chance = 8, health = 3850, maxhealth = 3850},["Venusaur"] = {corpseid = 5962, chance = 5, health = 11170, maxhealth = 11170},["Venonat"] = {corpseid = 5997, chance = 15, health = 1250, maxhealth = 1250},["Venomoth"] = {corpseid = 2925, chance = 8, health = 3950, maxhealth = 3950},["Vaporeon"] = {corpseid = 5960, chance = 1, health = 100, maxhealth = 100},["Tentacruel"] = {corpseid = 6037, chance = 6, health = 8200, maxhealth = 8200},["Tentacool"] = {corpseid = 2961, chance = 18, health = 914, maxhealth = 914},["Tauros"] = {corpseid = 6302, chance = 12, health = 4100, maxhealth = 4100},["Tangela"] = {corpseid = 5976, chance = 12, health = 4060, maxhealth = 4060},["Staryu"] = {corpseid = 5987, chance = 15, health = 1000, maxhealth = 1000},["Starmie"] = {corpseid = 7320, chance = 12, health = 3850, maxhealth = 3850},["Squirtle"] = {corpseid = 6008, chance = 13, health = 1600, maxhealth = 1600},["Spearow"] = {corpseid = 5968, chance = 19, health = 642, maxhealth = 642},["Snorlax"] = {corpseid = 6016, chance = 3, health = 15350, maxhealth = 15350},["Slowpoke"] = {corpseid = 2926, chance = 15, health = 1280, maxhealth = 1280},["Slowbro"] = {corpseid = 5986, chance = 10, health = 4020, maxhealth = 4020},["Shellder"] = {corpseid = 3097, chance = 20, health = 968, maxhealth = 968},["Seel"] = {corpseid = 6030, chance = 17, health = 1470, maxhealth = 1470},["Seaking"] = {corpseid = 3038, chance = 14, health = 2315, maxhealth = 2315},["Seadra"] = {corpseid = 2872, chance = 14, health = 900, maxhealth = 900},["Scyther"] = {corpseid = 3002, chance = 7, health = 6810, maxhealth = 6810},["Sandslash"] = {corpseid = 6041, chance = 12, health = 5700, maxhealth = 5700},["Sandshrew"] = {corpseid = 5988, chance = 18, health = 1019, maxhealth = 1019},["Rhyhorn"] = {corpseid = 3035, chance = 40, health = 1750, maxhealth = 1750},["Rhydon"] = {corpseid = 2858, chance = 40, health = 5115, maxhealth = 5115},["Rattata"] = {corpseid = 5974, chance = 40, health = 291, maxhealth = 291},["Raticate"] = {corpseid = 6007, chance = 40, health = 1300, maxhealth = 1300},["Rapidash"] = {corpseid = 4323, chance = 40, health = 5020, maxhealth = 5020},["Raichu"] = {corpseid = 5996, chance = 40, health = 4115, maxhealth = 4115},["Psyduck"] = {corpseid = 6029, chance = 40, health = 1210, maxhealth = 1210},["Primeape"] = {corpseid = 6032, chance = 40, health = 4760, maxhealth = 4760},["Porygon"] = {corpseid = 5963, chance = 40, health = 100, maxhealth = 100},["Ponyta"] = {corpseid = 5975, chance = 40, health = 980, maxhealth = 980},["Poliwrath"] = {corpseid = 6033, chance = 40, health = 4950, maxhealth = 4950},["Poliwhirl"] = {corpseid = 6054, chance = 40, health = 1650, maxhealth = 1650},["Poliwag"] = {corpseid = 6042, chance = 40, health = 631, maxhealth = 631},["Pinsir"] = {corpseid = 7282, chance = 40, health = 3150, maxhealth = 3150},["Pikachu"] = {corpseid = 6001, chance = 40, health = 1600, maxhealth = 1600},["Pidgeot"] = {corpseid = 6020, chance = 40, health = 5870, maxhealth = 5870},["Pidgey"] = {corpseid = 5961, chance = 40, health = 295, maxhealth = 292},["Pidgeotto"] = {corpseid = 5966, chance = 40, health = 1280, maxhealth = 1280},["Persian"] = {corpseid = 6009, chance = 40, health = 2850, maxhealth = 2850},["Parasect"] = {corpseid = 6027, chance = 40, health = 4100, maxhealth = 4100},["Paras"] = {corpseid = 3007, chance = 40, health = 425, maxhealth = 425},["Onix"] = {corpseid = 2990, chance = 40, health = 4100, maxhealth = 4100},["Omastar"] = {corpseid = 5994, chance = 40, health = 100, maxhealth = 100},["Omanyte"] = {corpseid = 5998, chance = 40, health = 4530, maxhealth = 4530},["Oddish"] = {corpseid = 3008, chance = 40, health = 460, maxhealth = 460},["Ninetales"] = {corpseid = 6040, chance = 40, health = 5800, maxhealth = 5800},["Nidorino"] = {corpseid = 6019, chance = 40, health = 2100, maxhealth = 2100},["Nidorina"] = {corpseid = 6014, chance = 40, health = 2300, maxhealth = 2300},["Nidoranma"] = {corpseid = 6015, chance = 40, health = 985, maxhealth = 985},["Nidoranfe"] = {corpseid = 6013, chance = 40, health = 100, maxhealth = 100},["Nidoqueen"] = {corpseid = 3004, chance = 40, health = 7800, maxhealth = 7800},["Nidoking"] = {corpseid = 5995, chance = 40, health = 7800, maxhealth = 7800},["Muk"] = {corpseid = 2845, chance = 40, health = 3250, maxhealth = 3250},["Mr.Mime"] = {corpseid = 6069, chance = 40, health = 5320, maxhealth = 5320},["Moltres"] = {corpseid = 7330, chance = 40, health = 100, maxhealth = 100},["Mewtwo"] = {corpseid = 5973, chance = 40, health = 100, maxhealth = 100},["Mew"] = {corpseid = 2939, chance = 40, health = 100, maxhealth = 100},["Metapod"] = {corpseid = 5970, chance = 40, health = 1120, maxhealth = 1120},["Meowth"] = {corpseid = 6034, chance = 40, health = 1040, maxhealth = 1040},["Marowak"] = {corpseid = 6072, chance = 40, health = 4125, maxhealth = 4125},["Mankey"] = {corpseid = 6035, chance = 40, health = 1000, maxhealth = 1000},["Magneton"] = {corpseid = 6076, chance = 40, health = 4100, maxhealth = 4100},["Magnemite"] = {corpseid = 6056, chance = 40, health = 614, maxhealth = 614},["Magmar"] = {corpseid = 7283, chance = 40, health = 7050, maxhealth = 7050},["Magikarp"] = {corpseid = 2818, chance = 40, health = 250, maxhealth = 250},["Machop"] = {corpseid = 6045, chance = 40, health = 1640, maxhealth = 1640},["Machoke"] = {corpseid = 4251, chance = 40, health = 3755, maxhealth = 3755},["Machamp"] = {corpseid = 6048, chance = 40, health = 7560, maxhealth = 7560},["Lickitung"] = {corpseid = 2953, chance = 40, health = 5320, maxhealth = 5320},["Lapras"] = {corpseid = 6018, chance = 40, health = 7320, maxhealth = 7320},["Krabby"] = {corpseid = 6039, chance = 40, health = 744, maxhealth = 744},["Koffing"] = {corpseid = 2936, chance = 40, health = 975, maxhealth = 975},["Kingler"] = {corpseid = 6340, chance = 40, health = 3115, maxhealth = 3115},["Kangaskhan"] = {corpseid = 6073, chance = 40, health = 7550, maxhealth = 7550},["Kakuna"] = {corpseid = 6000, chance = 40, health = 1120, maxhealth = 1120},["Kadabra"] = {corpseid = 6060, chance = 40, health = 2765, maxhealth = 2765},["Kabutops"] = {corpseid = 6337, chance = 40, health = 100, maxhealth = 100},["Kabuto"] = {corpseid = 5972, chance = 40, health = 100, maxhealth = 100},["Jynx"] = {corpseid = 5765, chance = 40, health = 7060, maxhealth = 7060},["Jyglipuff"] = {corpseid = 2979, chance = 40, health = 100, maxhealth = 100},["Jolteon"] = {corpseid = 6044, chance = 40, health = 100, maxhealth = 100},["Jigglypuff"] = {corpseid = 6011, chance = 40, health = 1695, maxhealth = 1695},["Ivysaur"] = {corpseid = 5982, chance = 40, health = 4115, maxhealth = 4115},["Hypno"] = {corpseid = 6046, chance = 40, health = 4590, maxhealth = 4590},["Horsea"] = {corpseid = 2973, chance = 40, health = 604, maxhealth = 604},["Hitmonlee"] = {corpseid = 6067, chance = 40, health = 7000, maxhealth = 7000},["Hitmonchan"] = {corpseid = 5977, chance = 40, health = 7000, maxhealth = 7000},["Haunter"] = {corpseid = 6004, chance = 40, health = 4250, maxhealth = 4250},["Gyarados"] = {corpseid = 6331, chance = 40, health = 10150, maxhealth = 10150},["Growlithe"] = {corpseid = 6036, chance = 40, health = 1200, maxhealth = 1200},["Goldeen"] = {corpseid = 2970, chance = 40, health = 900, maxhealth = 900},["Golduck"] = {corpseid = 6028, chance = 40, health = 5115, maxhealth = 5115},["Golem"] = {corpseid = 6043, chance = 40, health = 5250, maxhealth = 5250},["Graveler"] = {corpseid = 6520, chance = 40, health = 3100, maxhealth = 3100},["Grimer"] = {corpseid = 6055, chance = 40, health = 1050, maxhealth = 1050},["Golbat"] = {corpseid = 6053, chance = 40, health = 2480, maxhealth = 2480},["Gloom"] = {corpseid = 6017, chance = 40, health = 1530, maxhealth = 1530},["Geodude"] = {corpseid = 6071, chance = 40, health = 1528, maxhealth = 1528},["Gengar"] = {corpseid = 6336, chance = 40, health = 8400, maxhealth = 8400},["Gastly"] = {corpseid = 5993, chance = 40, health = 1160, maxhealth = 1160},["Flareon"] = {corpseid = 6059, chance = 40, health = 100, maxhealth = 100},["Fearow"] = {corpseid = 5992, chance = 40, health = 3495, maxhealth = 3495},["Farfetch"] = {corpseid = 2836, chance = 40, health = 3870, maxhealth = 3870},["Exeggutor"] = {corpseid = 3005, chance = 40, health = 4550, maxhealth = 4550},["Exeggcute"] = {corpseid = 2982, chance = 40, health = 1100, maxhealth = 1100},["Ekans"] = {corpseid = 5979, chance = 40, health = 882, maxhealth = 882},["Shiny Charizard"] = {corpseid = 2954, chance = 40, health = 13170, maxhealth = 13170},["Electabuzz"] = {corpseid = 6065, chance = 40, health = 7050, maxhealth = 7050},["Electrode"] = {corpseid = 6051, chance = 40, health = 3150, maxhealth = 3150},["Dugtrio"] = {corpseid = 6024, chance = 40, health = 3280, maxhealth = 3280},["Drowzee"] = {corpseid = 6026, chance = 40, health = 1950, maxhealth = 1950},["Dratini"] = {corpseid = 2879, chance = 40, health = 1810, maxhealth = 1810},["Dragonite"] = {corpseid = 4295, chance = 40, health = 17150, maxhealth = 17150},["Dragonair"] = {corpseid = 6002, chance = 40, health = 7600, maxhealth = 7600},["Doduo"] = {corpseid = 2842, chance = 40, health = 936, maxhealth = 936},["Dodrio"] = {corpseid = 6047, chance = 40, health = 3570, maxhealth = 3570},["Ditto"] = {corpseid = 2817, chance = 40, health = 4115, maxhealth = 4115},["Diglett"] = {corpseid = 6023, chance = 40, health = 696, maxhealth = 696},["Dewgong"] = {corpseid = 6038, chance = 40, health = 7300, maxhealth = 7300},["Cubone"] = {corpseid = 6050, chance = 40, health = 1640, maxhealth = 1640},["Crystal Onix"] = {corpseid = 6320, chance = 40, health = 100, maxhealth = 100},["Cloyster"] = {corpseid = 2932, chance = 40, health = 5825, maxhealth = 5825},["Clefairy"] = {corpseid = 2968, chance = 40, health = 1695, maxhealth = 1695},["Clefabe"] = {corpseid = 6006, chance = 40, health = 4400, maxhealth = 4400},["Charmeleon"] = {corpseid = 5981, chance = 40, health = 4115, maxhealth = 4115},["Charmander"] = {corpseid = 5983, chance = 40, health = 1600, maxhealth = 1600},["Charizard"] = {corpseid = 6005, chance = 40, health = 11170, maxhealth = 11170},["Chansey"] = {corpseid = 6010, chance = 40, health = 5000, maxhealth = 5000},["Caterpie"] = {corpseid = 3099, chance = 40, health = 291, maxhealth = 291},["Butterfree"] = {corpseid = 5985, chance = 40, health = 2200, maxhealth = 2200},["Bulbasaur"] = {corpseid = 5969, chance = 40, health = 1600, maxhealth = 1600},["Blastoise"] = {corpseid = 5999, chance = 40, health = 11170, maxhealth = 11170},["Bellsprout"] = {corpseid = 3047, chance = 40, health = 838, maxhealth = 838},["Beedrill"] = {corpseid = 5990, chance = 40, health = 2200, maxhealth = 2200},["Articuno"] = {corpseid = 7260, chance = 40, health = 100, maxhealth = 100},["Arcanine"] = {corpseid = 6031, chance = 40, health = 7800, maxhealth = 7800},["Arbok"] = {corpseid = 5984, chance = 40, health = 2405, maxhealth = 2405},["Alakazam"] = {corpseid = 6057, chance = 40, health = 7350, maxhealth = 7350},["Aerodactyl"] = {corpseid = 6338, chance = 40, health = 100, maxhealth = 100},["Abra"] = {corpseid = 3000, chance = 40, health = 870, maxhealth = 870},}local time = 3.8 -- Tempo para mandar as mensagens e adiciona itemfunction onUse(cid, item, frompos, item2, topos)for i,x in pairs(pokes) doif item2.itemid == x.corpseid thendoRemoveItem(item.uid, 1)doRemoveItem(item2.uid, 1)if math.random(1,10) <= x.chance thenfunction add()local s = doPlayerAddItem(cid, pokein)doItemSetAttribute(s, "poke", "This is "..i.."'s pokeball. HP = ["..x.health.."/"..x.maxhealth.."]")doItemSetAttribute(s, "description", "Contains a " .. i)enddoSendMagicEffect(topos, 24)addEvent(add, time*1000)return addEvent(doPlayerSendTextMessage, time*1000, cid, 27, "You catch a " .. i .. ".")elseaddEvent(doPlayerSendTextMessage, time*1000, cid, 27, "Your pokeball broke.")return doSendMagicEffect(topos, 23)endendendreturn TRUEend

 

 

Se nao Funcionar eu vo ver se posso fazer de outro geito..Agora nao e pra ele pegar td hora...Tbm seu chance estao todos 40 mude eles para dificultair ainda mais o catch

 

Se ajudei Rep+

 

manow nao deu agora nem que pega o poke agora a ball nao vai tipo que e um pokemon bugado

no meu serv so tem duas ball normal e ultra mais acho que isso n tem nada a ve ne se vc pode me ajuda manow agradeço :smile_positivo:

Link para o comentário
Compartilhar em outros sites

Tenta esse aki

 

 

local pokes = {["Ditto"] = {chance = 2, corpse = 2817, health = 14000, maxhealth = 4000},["Magikarp"] = {chance = 2, corpse = 2818, health = 120, maxhealth = 120},["Steelix"] = {chance = 2000, corpse = 175, health = 7300, maxhealth = 7300},["Miltank"] = {chance = 2000, corpse = 180, health = 5200, maxhealth = 5200},["Eevee"] = {chance = 2220, corpse = 6364, health = 1500, maxhealth = 1500},["Abra"] = {chance = 400, corpse = 2905, health = 620, maxhealth = 620},["Kadabra"] = {chance = 750, corpse = 6060, health = 2500, maxhealth = 2500},["Alakazam"] = {chance = 1875, corpse = 6057, health = 4000, maxhealth = 4000},["Rattata"] = {chance = 5, corpse = 5974, health = 350, maxhealth = 350},["Raticate"] = {chance = 150, corpse = 6007, health = 900, maxhealth = 900},["Pidgey"] = {chance = 10, corpse = 5961, health = 380, maxhealth = 380},["Pidgeotto"] = {chance = 187.5, corpse = 5966, health = 1400, maxhealth = 1400},["Pidgeot"] = {chance = 1000, corpse = 6020, health = 3800, maxhealth = 3800},["Zubat"] = {chance = 26, corpse = 5989, health = 450, maxhealth = 450},["Golbat"] = {chance = 250, corpse = 6053, health = 1900, maxhealth = 1900},["Bellsprout"] = {chance = 12.5, corpse = 3047, health = 420, maxhealth = 420},["Weepinbell"] = {chance = 250, corpse = 2928, health = 1100, maxhealth = 1100},["Victreebel"] = {chance = 812.5, corpse = 6332, health = 4000, maxhealth = 4000},["Poliwag"] = {chance = 18.75, corpse = 6042, health = 400, maxhealth = 400},["Poliwhirl"] = {chance = 312.5, corpse = 6054, health = 1200, maxhealth = 1200},["Poliwrath"] = {chance = 1000, corpse = 6033, health = 4400, maxhealth = 4400},["Oddish"] = {chance = 25, corpse = 3008, health = 340, maxhealth = 340},["Gloom"] = {chance = 250, corpse = 6017, health = 1400, maxhealth = 1400},["Vileplume"] = {chance = 812.5, corpse = 6025, health = 3300, maxhealth = 3300},["Horsea"] = {chance = 25, corpse = 2973, health = 300, maxhealth = 300},["Seadra"] = {chance = 500, corpse = 2872, health = 2500, maxhealth = 2500},["Grimer"] = {chance = 105, corpse = 6055, health = 600, maxhealth = 600},["Weedle"] = {chance = 3, corpse = 5964, health = 325, maxhealth = 325},["Kakuna"] = {chance = 31.25, corpse = 6000, health = 900, maxhealth = 900},["Beedrill"] = {chance = 312.5, corpse = 5990, health = 1900, maxhealth = 1900},["Muk"] = {chance = 275, corpse = 2845, health = 2400, maxhealth = 2400},["Doduo"] = {chance = 81.25, corpse = 2842, health = 600, maxhealth = 600},["Dodrio"] = {chance = 400, corpse = 6047, health = 2650, maxhealth = 2650},["Magnemite"] = {chance = 75, corpse = 6056, health = 450, maxhealth = 450},["Magneton"] = {chance = 400, corpse = 6076, health = 1750, maxhealth = 1750},["Voltorb"] = {chance = 56.25, corpse = 6049, health = 620, maxhealth = 620},["Electrode"] = {chance = 375, corpse = 6051, health = 2000, maxhealth = 2000},["Geodude"] = {chance = 65.5, corpse = 6071, health = 700, maxhealth = 700},["Graveler"] = {chance = 312.5, corpse = 6516, health = 3000, maxhealth = 3000},["Golem"] = {chance = 1000, corpse = 6043, health = 6500, maxhealth = 6500},["Sandshrew"] = {chance = 106.25, corpse = 5988, health = 700, maxhealth = 700},["Sandslash"] = {chance = 875, corpse = 6041, health = 3400, maxhealth = 3400},["Charmander"] = {chance = 375, corpse = 5983, health = 970, maxhealth = 970},["Charmeleon"] = {chance = 687.5, corpse = 5981, health = 2900, maxhealth = 2900},["Charizard"] = {chance = 1687.5, corpse = 6005, health = 5200, maxhealth = 5200},["Cindaquil"] = {chance = 675, corpse = 177, health = 970, maxhealth = 970},["Quilava"] = {chance = 987.5, corpse = 178, health = 2900, maxhealth = 2900},["Typhlosion"] = {chance = 2687.5, corpse = 179, health = 5200, maxhealth = 5200},["Vulpix"] = {chance = 150, corpse = 6003, health = 680, maxhealth = 680},["Ninetales"] = {chance = 1062.5, corpse = 6040, health = 2650, maxhealth = 2650},["Bulbasaur"] = {chance = 375, corpse = 5969, health = 1200, maxhealth = 1200},["Ivysaur"] = {chance = 687.5, corpse = 5982, health = 2600, maxhealth = 2600},["Venusaur"] = {chance = 1687.5, corpse = 5962, health = 5200, maxhealth = 5200},["Squirtle"] = {chance = 375, corpse = 6008, health = 1350, maxhealth = 1350},["Wartortle"] = {chance = 687.5, corpse = 5978, health = 2800, maxhealth = 2800},["Blastoise"] = {chance = 1687.5, corpse = 5999, health = 5900, maxhealth = 5900},["Growlithe"] = {chance = 437.5, corpse = 6036, health = 1000, maxhealth = 1000},["Arcanine"] = {chance = 1250, corpse = 6031, health = 6800, maxhealth = 6800},["Psyduck"] = {chance = 125, corpse = 6029, health = 950, maxhealth = 950},["Golduck"] = {chance = 1000, corpse = 6028, health = 4000, maxhealth = 4000},["Pikachu"] = {chance = 500, corpse = 6001, health = 900, maxhealth = 900},["Raichu"] = {chance = 1000, corpse = 5996, health = 3500, maxhealth = 3500},["Ekans"] = {chance = 56,25, corpse = 5979, health = 600, maxhealth = 600},["Arbok"] = {chance = 312.5, corpse = 5984, health = 2900, maxhealth = 2900},["Cubone"] = {chance = 125, corpse = 6050, health = 1200, maxhealth = 1200},["Marowak"] = {chance = 625, corpse = 6072, health = 3900, maxhealth = 3900},["Caterpie"] = {chance = 10, corpse = 5971, health = 300, maxhealth = 300},["Metapod"] = {chance = 31.25, corpse = 5970, health = 1100, maxhealth = 1100},["Butterfree"] = {chance = 312.5, corpse = 5985, health = 2000, maxhealth = 2000},["Goldeen"] = {chance = 21.5, corpse = 2970, health = 950, maxhealth = 950},["Seaking"] = {chance = 375, corpse = 3038, health = 2000, maxhealth = 2000},["Spearow"] = {chance = 18.75, corpse = 5968, health = 200, maxhealth = 200},["Fearow"] = {chance = 750, corpse = 5992, health = 3300, maxhealth = 3300},["Drowzee"] = {chance = 137.5, corpse = 6026, health = 1150, maxhealth = 1150},["Hypno"] = {chance = 1000, corpse = 6046, health = 4600, maxhealth = 4600},["Diglett"] = {chance = 50, corpse = 6023, health = 900, maxhealth = 900},["Dugtrio"] = {chance = 500, corpse = 6024, health = 3450, maxhealth = 3450},["Krabby"] = {chance = 16.875, corpse = 6039, health = 850, maxhealth = 850},["Kingler"] = {chance = 500, corpse = 6340, health = 3250, maxhealth = 3250},["Paras"] = {chance = 6.25, corpse = 3007, health = 850, maxhealth = 850},["Parasect"] = {chance = 312.5, corpse = 6027, health = 3800, maxhealth = 3800},["Dratini"] = {chance = 437.5, corpse = 2879, health = 520, maxhealth = 520},["Dragonair"] = {chance = 1425, corpse = 6002, health = 3000, maxhealth = 3000},["Dragonite"] = {chance = 4500, corpse = 4295, health = 17000, maxhealth = 17000},["Ponyta"] = {chance = 106.25, corpse = 5975, health = 1400, maxhealth = 1400},["Rapidash"] = {chance = 562.5, corpse = 4323, health = 5500, maxhealth = 5500},["Pinsir"] = {chance = 500, corpse = 7282, health = 55, maxhealth = 55},["Seel"] = {chance = 250, corpse = 6030, health = 1000, maxhealth = 1000},["Dewgong"] = {chance = 1000, corpse = 6038, health = 5200, maxhealth = 5200},["Exeggcute"] = {chance = 40, corpse = 2982, health = 800, maxhealth = 800},["Exeggutor"] = {chance = 875, corpse = 3005, health = 450, maxhealth = 4000},["Koffing"] = {chance = 62.5, corpse = 2936, health = 900, maxhealth = 900},["Weezing"] = {chance = 275, corpse = 6306, health = 2800, maxhealth = 2800},["Staryu"] = {chance = 75, corpse = 5987, health = 1050, maxhealth = 1050},["Starmie"] = {chance = 500, corpse = 7320, health = 3800, maxhealth = 3800},["Rhyhorn"] = {chance = 137.5, corpse = 3035, health = 3800, maxhealth = 3800},["Rhydon"] = {chance = 750, corpse = 2858, health = 7000, maxhealth = 7000},["Shellder"] = {chance = 75, corpse = 2837, health = 800, maxhealth = 800},["Snorlax"] = {chance = 4375, corpse = 6016, health = 9000, maxhealth = 9000},["Gyarados"] = {chance = 3000, corpse = 6331, health = 7800, maxhealth = 7800},["Machop"] = {chance = 106.25, corpse = 6045, health = 1100, maxhealth = 1100},["Machoke"] = {chance = 625, corpse = 4251, health = 2850, maxhealth = 3500},["Machamp"] = {chance = 1250, corpse = 6048, health = 6100, maxhealth = 7500},["Clefairy"] = {chance = 375, corpse = 2968, health = 600, maxhealth = 600},["Clefable"] = {chance = 750, corpse = 6006, health = 2400, maxhealth = 2400},["Jigglypuff"] = {chance = 187.5, corpse = 6011, health = 550, maxhealth = 550},["Wigglytuff"] = {chance = 625, corpse = 6012, health = 2900, maxhealth = 2900},["Venonat"] = {chance = 125, corpse = 5997, health = 1350, maxhealth = 1350},["Venomoth"] = {chance = 500, corpse = 2925, health = 3850, maxhealth = 3850},["Meowth"] = {chance = 100, corpse = 6034, health = 950, maxhealth = 950},["Persian"] = {chance = 500, corpse = 6009, health = 2250, maxhealth = 2250},["Mankey"] = {chance = 75, corpse = 6035, health = 1050, maxhealth = 1050},["Primeape"] = {chance = 625, corpse = 6032, health = 4500, maxhealth = 4500},["Tentacool"] = {chance = 43.75, corpse = 2961, health = 1050, maxhealth = 1050},["Tentacruel"] = {chance = 750, corpse = 6037, health = 7050, maxhealth = 7050},["Slowpoke"] = {chance = 106.25, corpse = 2926, health = 1200, maxhealth = 1200},["Slowbro"] = {chance = 812.5, corpse = 5986, health = 4600, maxhealth = 4600},["Slowking"] = {chance = 1012.5, corpse = 182, health = 6600, maxhealth = 6600},["Cloyster"] = {chance = 687.5, corpse = 2932, health = 120, maxhealth = 5000},["Gastly"] = {chance = 437.5, corpse = 5993, health = 1000, maxhealth = 1000},["Haunter"] = {chance = 875, corpse = 6004, health = 3000, maxhealth = 3000},["Gengar"] = {chance = 1875, corpse = 6336, health = 7000, maxhealth = 7000},["Onix"] = {chance = 500, corpse = 2990, health = 5300, maxhealth = 5300},["Hitmonlee"] = {chance = 750, corpse = 6067, health = 9250, maxhealth = 9250},["Hitmonchan"] = {chance = 750, corpse = 5977, health = 10500, maxhealth = 10500},["Lickitung"] = {chance = 1875, corpse = 2953, health = 4800, maxhealth = 4800},["Chansey"] = {chance = 5000, corpse = 6010, health = 7500, maxhealth = 7500},["Tangela"] = {chance = 500, corpse = 5976, health = 3500, maxhealth = 3500},["Kangaskhan"] = {chance = 5000, corpse = 6073, health = 7000, maxhealth = 7000},["Scyther"] = {chance = 2475, corpse = 3002, health = 6500, maxhealth = 6500},["Scizor"] = {chance = 3500, corpse = 181, health = 8500, maxhealth = 8500},["Electabuzz"] = {chance = 2475, corpse = 6065, health = 6800, maxhealth = 6800},["Elekid"] = {chance = 312.5, corpse = 5762, health = 6800, maxhealth = 6800},["Magmar"] = {chance = 2475, corpse = 7283, health = 7200, maxhealth = 7200},["Jynx"] = {chance = 2000, corpse = 5765, health = 7000, maxhealth = 7000},["Nidoran Male"] = {chance = 99999, corpse = 6015, health = 650, maxhealth = 650},["Nidoran Female"] = {chance = 99999, corpse = 6013, health = 600, maxhealth = 600},["Nidoking"] = {chance = 1000, corpse = 5995, health = 4800, maxhealth = 4800},["Nidoqueen"] = {chance = 1000, corpse = 3004, health = 4200, maxhealth = 4200},["Nidorina"] = {chance = 250, corpse = 6014, health = 2000, maxhealth = 2000},["Nidorino"] = {chance = 250, corpse = 6019, health = 2500, maxhealth = 2500},["Farfetchd"] = {chance = 625, corpse = 2836, health = 2500, maxhealth = 2500},["MrMime"] = {chance = 937.5, corpse = 6069, health = 5500, maxhealth = 5500},["Tauros"] = {chance = 312.5, corpse = 6302, health = 4200, maxhealth = 4200},["Lapras"] = {chance = 6875, corpse = 6018, health = 8000, maxhealth = 8000},["Omanyte"] = {chance = 1125, corpse = 5998, health = 1300, maxhealth = 1300},["Omastar"] = {chance = 3125, corpse = 5994, health = 6000, maxhealth = 6000},["Kabuto"] = {chance = 1125, corpse = 5972, health = 1375, maxhealth = 1375},["Kabutops"] = {chance = 3125, corpse = 6345, health = 6920, maxhealth = 6920},["Aerodactyl"] = {chance = 250, corpse = 6338, health = 7100, maxhealth = 7100},["Articuno"] = {chance = 500, corpse = 7256, health = 12000, maxhealth = 12000},["Zapdos"] = {chance = 500, corpse = 6074, health = 11000, maxhealth = 11000},["Moltres"] = {chance = 500, corpse = 7330, health = 11000, maxhealth = 11000},["Mewtwo"] = {chance = 1000, corpse = 5973, health = 8500, maxhealth = 8500},["Mew"] = {chance = 1000, corpse = 2939, health = 7200, maxhealth = 7200},}local description = "Contains a %pokename."function onUse(cid, item, frompos, item2, topos)local name = getItemNameById(item2.itemid)if item.itemid == 2147 then catchrate = 10oncatch = 24onfail = 23bolabola = 2222elseif item.itemid == 2146 then catchrate = 40oncatch = 200onfail = 199bolabola = 2220endlocal rate = (catchrate)local catch = oncatchlocal fail = onfaillocal newid = bolabolafor i,x in pairs(pokes) doif getItemNameById(item2.itemid):find(i:lower()) thenif getItemIdByName(name) == pokes.corpse thenif cid ~= getItemAttribute(item2.uid, "corpseowner") and isInArray({1,8}, getPlayerGroupId(cid)) thendoPlayerSendCancel(cid, "You are not allowed to catch this pokemon.")return trueenddoRemoveItem(item.uid, 1)doRemoveItem(item2.uid, 1)local pegar = math.random(1, x.chance)if pegar <= 1*(rate) thendoSendMagicEffect(topos, catch)local nas = {["%%pokename"] = i}for i,x in pairs(nas) doif description:find(i) thendescription = description:gsub(i, x)endendlocal function capturou(params)if not isCreature(params.cid) thenreturn trueendif not string.find(getPlayerStorageValue(cid, 54842), ""..i..",") thendoPlayerAddSoul(cid, 1)setPlayerStorageValue(cid, 54842, getPlayerStorageValue(cid, 54842)..""..i..", ")endif getPlayerFreeCap(cid) <= 0.99 thenitem = doCreateItemEx(newid-1)doItemSetAttribute(item, "poke", params.poke)doItemSetAttribute(item, "nome", params.nome)doItemSetAttribute(item, "description", params.description)doPlayerSendMailByName(getCreatureName(params.cid), item, 1)doPlayerSendTextMessage(cid, 27, "Congratulations, you caught a "..i.."!")doPlayerSendTextMessage(cid, 27, "Since you are already holding six pokemons, this pokeball has been sent to your depot.")elseitem = doCreateItemEx(params.ball)doItemSetAttribute(item, "poke", params.poke)doItemSetAttribute(item, "nome", params.nome)doItemSetAttribute(item, "description", params.description)doPlayerAddItemEx(params.cid, item, true)doTransformItem(item, newid)doPlayerSendTextMessage(cid, 27, "Congratulations, you caught a "..i.."!")endif #getCreatureSummons(cid) >= 1 thendoSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 178)elsedoSendMagicEffect(getThingPos(cid), 178)endendlocal description = "Contains a "..i.."."local poke1 = "This is "..i.."'s pokeball. HP = ["..x.health.."/"..x.maxhealth.."]"addEvent(capturou, 4000, {cid = cid, poke = poke1, nome = i, description = description, ball = 2219, letter = 2597})elsefunction ruim(params)if not isCreature(params.cid) thenreturn trueenddoPlayerSendTextMessage(params.cid, 27, "Sorry, you didn\'t catch that pokemon.")if #getCreatureSummons(params.cid) >= 1 thendoSendMagicEffect(getThingPos(getCreatureSummons(params.cid)[1]), 166)elsedoSendMagicEffect(getThingPos(params.cid), 166)endendaddEvent(ruim, 4000, {cid = cid})doSendMagicEffect(topos, fail)endendendendreturn TRUEend

 

 

 

Se ajudei Rep+

Link para o comentário
Compartilhar em outros sites

n manow n da pra capitura agora a poke ball nao vai :winksmiley02: vlw por tenta mais sabe akele ke te mandei sera ke n da pra aruma com akele a poke ball, ia mais ela nao falhava n dava vermelhor :construction: ???

 

ei manow mais uma pergunta vc sabe como muda os pokemon iniciais?????? se sobe me fala por favor ai manow vlw :thumbsupsmiley:

Link para o comentário
Compartilhar em outros sites

o.O Tenta agr amigo e ve se continua pegando de primeira

local pokes = {["Zubat"] = {corpseid = 5989, chance = 3320, health = 642, maxhealth = 642},["Zapdos"] = {corpseid = 6074, chance = 3000, health = 100, maxhealth = 100},["Wygglypuff"] = {corpseid = 2981, chance = 2012, health = 100, maxhealth = 100},["Wigglytuff"] = {corpseid = 6012, chance = 2012, health = 4000, maxhealth = 4000},["Weezing"] = {corpseid = 6306, chance = 1222, health = 3450, maxhealth = 3450},["Weepinbell"] = {corpseid = 4266, chance = 2212, health = 1280, maxhealth = 1280},["Weedle"] = {corpseid = 5964, chance = 2230, health = 291, maxhealth = 291},["Wartortle"] = {corpseid = 5978, chance = 2210, health = 4115, maxhealth = 4115},["Vulpix"] = {corpseid = 6003, chance = 2220, health = 1200, maxhealth = 1200},["Voltorb"] = {corpseid = 6049, chance = 2220, health = 1000, maxhealth = 1000},["Vileplume"] = {corpseid = 6025, chance = 2212, health = 4100, maxhealth = 4100},["Victribell"] = {corpseid = 6332, chance = 2228, health = 3850, maxhealth = 3850},["Venusaur"] = {corpseid = 5962, chance = 2225, health = 11170, maxhealth = 11170},["Venonat"] = {corpseid = 5997, chance = 2215, health = 1250, maxhealth = 1250},["Venomoth"] = {corpseid = 2925, chance = 2228, health = 3950, maxhealth = 3950},["Vaporeon"] = {corpseid = 5960, chance = 2221, health = 100, maxhealth = 100},["Tentacruel"] = {corpseid = 6037, chance = 2226, health = 8200, maxhealth = 8200},["Tentacool"] = {corpseid = 2961, chance = 2218, health = 914, maxhealth = 914},["Tauros"] = {corpseid = 6302, chance = 2212, health = 4100, maxhealth = 4100},["Tangela"] = {corpseid = 5976, chance = 2212, health = 4060, maxhealth = 4060},["Staryu"] = {corpseid = 5987, chance = 2215, health = 1000, maxhealth = 1000},["Starmie"] = {corpseid = 7320, chance = 2212, health = 3850, maxhealth = 3850},["Squirtle"] = {corpseid = 6008, chance = 2213, health = 1600, maxhealth = 1600},["Spearow"] = {corpseid = 5968, chance = 2219, health = 642, maxhealth = 642},["Snorlax"] = {corpseid = 6016, chance = 2223, health = 15350, maxhealth = 15350},["Slowpoke"] = {corpseid = 2926, chance = 2215, health = 1280, maxhealth = 1280},["Slowbro"] = {corpseid = 5986, chance = 2210, health = 4020, maxhealth = 4020},["Shellder"] = {corpseid = 3097, chance = 2220, health = 968, maxhealth = 968},["Seel"] = {corpseid = 6030, chance = 2217, health = 1470, maxhealth = 1470},["Seaking"] = {corpseid = 3038, chance = 2214, health = 2315, maxhealth = 2315},["Seadra"] = {corpseid = 2872, chance = 2214, health = 900, maxhealth = 900},["Scyther"] = {corpseid = 3002, chance = 2227, health = 6810, maxhealth = 6810},["Sandslash"] = {corpseid = 6041, chance = 1222, health = 5700, maxhealth = 5700},["Sandshrew"] = {corpseid = 5988, chance = 2218, health = 1019, maxhealth = 1019},["Rhyhorn"] = {corpseid = 3035, chance = 2240, health = 1750, maxhealth = 1750},["Rhydon"] = {corpseid = 2858, chance = 2240, health = 5115, maxhealth = 5115},["Rattata"] = {corpseid = 5974, chance = 2240, health = 291, maxhealth = 291},["Raticate"] = {corpseid = 6007, chance = 2240, health = 1300, maxhealth = 1300},["Rapidash"] = {corpseid = 4323, chance = 2240, health = 5020, maxhealth = 5020},["Raichu"] = {corpseid = 5996, chance = 2240, health = 4115, maxhealth = 4115},["Psyduck"] = {corpseid = 6029, chance = 2240, health = 1210, maxhealth = 1210},["Primeape"] = {corpseid = 6032, chance = 2240, health = 4760, maxhealth = 4760},["Porygon"] = {corpseid = 5963, chance = 2240, health = 100, maxhealth = 100},["Ponyta"] = {corpseid = 5975, chance = 2420, health = 980, maxhealth = 980},["Poliwrath"] = {corpseid = 6033, chance = 2240, health = 4950, maxhealth = 4950},["Poliwhirl"] = {corpseid = 6054, chance = 2240, health = 1650, maxhealth = 1650},["Poliwag"] = {corpseid = 6042, chance = 2240, health = 631, maxhealth = 631},["Pinsir"] = {corpseid = 7282, chance = 2240, health = 3150, maxhealth = 3150},["Pikachu"] = {corpseid = 6001, chance = 2240, health = 1600, maxhealth = 1600},["Pidgeot"] = {corpseid = 6020, chance = 2240, health = 5870, maxhealth = 5870},["Pidgey"] = {corpseid = 5961, chance = 2240, health = 295, maxhealth = 292},["Pidgeotto"] = {corpseid = 5966, chance = 2240, health = 1280, maxhealth = 1280},["Persian"] = {corpseid = 6009, chance = 2240, health = 2850, maxhealth = 2850},["Parasect"] = {corpseid = 6027, chance = 2240, health = 4100, maxhealth = 4100},["Paras"] = {corpseid = 3007, chance = 2240, health = 425, maxhealth = 425},["Onix"] = {corpseid = 2990, chance = 2240, health = 4100, maxhealth = 4100},["Omastar"] = {corpseid = 5994, chance = 2240, health = 100, maxhealth = 100},["Omanyte"] = {corpseid = 5998, chance = 2240, health = 4530, maxhealth = 4530},["Oddish"] = {corpseid = 3008, chance = 2240, health = 460, maxhealth = 460},["Ninetales"] = {corpseid = 6040, chance = 2240, health = 5800, maxhealth = 5800},["Nidorino"] = {corpseid = 6019, chance = 2240, health = 2100, maxhealth = 2100},["Nidorina"] = {corpseid = 6014, chance = 2240, health = 2300, maxhealth = 2300},["Nidoranma"] = {corpseid = 6015, chance = 2240, health = 985, maxhealth = 985},["Nidoranfe"] = {corpseid = 6013, chance = 2240, health = 100, maxhealth = 100},["Nidoqueen"] = {corpseid = 3004, chance = 2240, health = 7800, maxhealth = 7800},["Nidoking"] = {corpseid = 5995, chance = 2240, health = 7800, maxhealth = 7800},["Muk"] = {corpseid = 2845, chance = 2240, health = 3250, maxhealth = 3250},["Mr.Mime"] = {corpseid = 6069, chance = 2240, health = 5320, maxhealth = 5320},["Moltres"] = {corpseid = 7330, chance = 2240, health = 100, maxhealth = 100},["Mewtwo"] = {corpseid = 5973, chance = 2240, health = 100, maxhealth = 100},["Mew"] = {corpseid = 2939, chance = 2240, health = 100, maxhealth = 100},["Metapod"] = {corpseid = 5970, chance = 2240, health = 1120, maxhealth = 1120},["Meowth"] = {corpseid = 6034, chance = 2240, health = 1040, maxhealth = 1040},["Marowak"] = {corpseid = 6072, chance = 2240, health = 4125, maxhealth = 4125},["Mankey"] = {corpseid = 6035, chance = 2240, health = 1000, maxhealth = 1000},["Magneton"] = {corpseid = 6076, chance = 2240, health = 4100, maxhealth = 4100},["Magnemite"] = {corpseid = 6056, chance = 2240, health = 614, maxhealth = 614},["Magmar"] = {corpseid = 7283, chance = 2240, health = 7050, maxhealth = 7050},["Magikarp"] = {corpseid = 2818, chance = 2240, health = 250, maxhealth = 250},["Machop"] = {corpseid = 6045, chance = 2240, health = 1640, maxhealth = 1640},["Machoke"] = {corpseid = 4251, chance = 2240, health = 3755, maxhealth = 3755},["Machamp"] = {corpseid = 6048, chance = 2240, health = 7560, maxhealth = 7560},["Lickitung"] = {corpseid = 2953, chance = 2240, health = 5320, maxhealth = 5320},["Lapras"] = {corpseid = 6018, chance = 2240, health = 7320, maxhealth = 7320},["Krabby"] = {corpseid = 6039, chance = 2240, health = 744, maxhealth = 744},["Koffing"] = {corpseid = 2936, chance = 2240, health = 975, maxhealth = 975},["Kingler"] = {corpseid = 6340, chance = 2240, health = 3115, maxhealth = 3115},["Kangaskhan"] = {corpseid = 6073, chance = 2240, health = 7550, maxhealth = 7550},["Kakuna"] = {corpseid = 6000, chance = 2240, health = 1120, maxhealth = 1120},["Kadabra"] = {corpseid = 6060, chance = 2240, health = 2765, maxhealth = 2765},["Kabutops"] = {corpseid = 6337, chance = 2240, health = 100, maxhealth = 100},["Kabuto"] = {corpseid = 5972, chance = 2240, health = 100, maxhealth = 100},["Jynx"] = {corpseid = 5765, chance = 2240, health = 7060, maxhealth = 7060},["Jyglipuff"] = {corpseid = 2979, chance = 2240, health = 100, maxhealth = 100},["Jolteon"] = {corpseid = 6044, chance = 2240, health = 100, maxhealth = 100},["Jigglypuff"] = {corpseid = 6011, chance = 3240, health = 1695, maxhealth = 1695},["Ivysaur"] = {corpseid = 5982, chance = 2240, health = 4115, maxhealth = 4115},["Hypno"] = {corpseid = 6046, chance = 2240, health = 4590, maxhealth = 4590},["Horsea"] = {corpseid = 2973, chance = 2240, health = 604, maxhealth = 604},["Hitmonlee"] = {corpseid = 6067, chance = 2240, health = 7000, maxhealth = 7000},["Hitmonchan"] = {corpseid = 5977, chance = 2240, health = 7000, maxhealth = 7000},["Haunter"] = {corpseid = 6004, chance = 2240, health = 4250, maxhealth = 4250},["Gyarados"] = {corpseid = 6331, chance = 2240, health = 10150, maxhealth = 10150},["Growlithe"] = {corpseid = 6036, chance = 2240, health = 1200, maxhealth = 1200},["Goldeen"] = {corpseid = 2970, chance = 2240, health = 900, maxhealth = 900},["Golduck"] = {corpseid = 6028, chance = 2240, health = 5115, maxhealth = 5115},["Golem"] = {corpseid = 6043, chance = 2240, health = 5250, maxhealth = 5250},["Graveler"] = {corpseid = 6520, chance = 2240, health = 3100, maxhealth = 3100},["Grimer"] = {corpseid = 6055, chance = 2240, health = 1050, maxhealth = 1050},["Golbat"] = {corpseid = 6053, chance = 2240, health = 2480, maxhealth = 2480},["Gloom"] = {corpseid = 6017, chance = 2240, health = 1530, maxhealth = 1530},["Geodude"] = {corpseid = 6071, chance = 2240, health = 1528, maxhealth = 1528},["Gengar"] = {corpseid = 6336, chance = 2240, health = 8400, maxhealth = 8400},["Gastly"] = {corpseid = 5993, chance = 2240, health = 1160, maxhealth = 1160},["Flareon"] = {corpseid = 6059, chance = 2240, health = 100, maxhealth = 100},["Fearow"] = {corpseid = 5992, chance = 2240, health = 3495, maxhealth = 3495},["Farfetch"] = {corpseid = 2836, chance = 2240, health = 3870, maxhealth = 3870},["Exeggutor"] = {corpseid = 3005, chance = 2240, health = 4550, maxhealth = 4550},["Exeggcute"] = {corpseid = 2982, chance = 2240, health = 1100, maxhealth = 1100},["Ekans"] = {corpseid = 5979, chance = 2240, health = 882, maxhealth = 882},["Shiny Charizard"] = {corpseid = 2954, chance = 2240, health = 13170, maxhealth = 13170},["Electabuzz"] = {corpseid = 6065, chance = 2240, health = 7050, maxhealth = 7050},["Electrode"] = {corpseid = 6051, chance = 2240, health = 3150, maxhealth = 3150},["Dugtrio"] = {corpseid = 6024, chance = 2240, health = 3280, maxhealth = 3280},["Drowzee"] = {corpseid = 6026, chance = 2240, health = 1950, maxhealth = 1950},["Dratini"] = {corpseid = 2879, chance = 2240, health = 1810, maxhealth = 1810},["Dragonite"] = {corpseid = 4295, chance = 2240, health = 17150, maxhealth = 17150},["Dragonair"] = {corpseid = 6002, chance = 2240, health = 7600, maxhealth = 7600},["Doduo"] = {corpseid = 2842, chance = 2240, health = 936, maxhealth = 936},["Dodrio"] = {corpseid = 6047, chance = 2240, health = 3570, maxhealth = 3570},["Ditto"] = {corpseid = 2817, chance = 2240, health = 4115, maxhealth = 4115},["Diglett"] = {corpseid = 6023, chance = 2240, health = 696, maxhealth = 696},["Dewgong"] = {corpseid = 6038, chance = 2240, health = 7300, maxhealth = 7300},["Cubone"] = {corpseid = 6050, chance = 2240, health = 1640, maxhealth = 1640},["Crystal Onix"] = {corpseid = 6320, chance = 2240, health = 100, maxhealth = 100},["Cloyster"] = {corpseid = 2932, chance = 2240, health = 5825, maxhealth = 5825},["Clefairy"] = {corpseid = 2968, chance = 2240, health = 1695, maxhealth = 1695},["Clefabe"] = {corpseid = 6006, chance = 2240, health = 4400, maxhealth = 4400},["Charmeleon"] = {corpseid = 5981, chance = 2240, health = 4115, maxhealth = 4115},["Charmander"] = {corpseid = 5983, chance = 2240, health = 1600, maxhealth = 1600},["Charizard"] = {corpseid = 6005, chance = 2240, health = 11170, maxhealth = 11170},["Chansey"] = {corpseid = 6010, chance = 2240, health = 5000, maxhealth = 5000},["Caterpie"] = {corpseid = 3099, chance = 2240, health = 291, maxhealth = 291},["Butterfree"] = {corpseid = 5985, chance = 2240, health = 2200, maxhealth = 2200},["Bulbasaur"] = {corpseid = 5969, chance = 2240, health = 1600, maxhealth = 1600},["Blastoise"] = {corpseid = 5999, chance = 2240, health = 11170, maxhealth = 11170},["Bellsprout"] = {corpseid = 3047, chance = 2240, health = 838, maxhealth = 838},["Beedrill"] = {corpseid = 5990, chance = 2240, health = 2200, maxhealth = 2200},["Articuno"] = {corpseid = 7260, chance = 2240, health = 100, maxhealth = 100},["Arcanine"] = {corpseid = 6031, chance = 2240, health = 7800, maxhealth = 7800},["Arbok"] = {corpseid = 5984, chance = 2240, health = 2405, maxhealth = 2405},["Alakazam"] = {corpseid = 6057, chance = 2240, health = 7350, maxhealth = 7350},["Aerodactyl"] = {corpseid = 6338, chance = 2240, health = 100, maxhealth = 100},["Abra"] = {corpseid = 3000, chance = 2240, health = 870, maxhealth = 870},}local time = 3.8 -- Tempo para mandar as mensagens e adiciona itemfunction onUse(cid, item, frompos, item2, topos)for i,x in pairs(pokes) doif item2.itemid == x.corpseid thendoRemoveItem(item.uid, 1)doRemoveItem(item2.uid, 1)if math.random(1,100) <= x.chance thenfunction add()local s = doPlayerAddItem(cid, pokein)doItemSetAttribute(s, "poke", "This is "..i.."'s pokeball. HP = ["..x.health.."/"..x.maxhealth.."]")doItemSetAttribute(s, "description", "Contains a " .. i)enddoSendMagicEffect(topos, 24)addEvent(add, time*1000)return addEvent(doPlayerSendTextMessage, time*1000, cid, 27, "You catch a " .. i .. ".")elseaddEvent(doPlayerSendTextMessage, time*1000, cid, 27, "Your pokeball broke.")return doSendMagicEffect(topos, 23)endendendreturn TRUEend

Se ajudei rep+

 

Para mudar os pokemons iniciais faz o seguinte

 

tags do actions.xml

 

 

 

<action itemid="2527" event="script" value="start/rattata.lua"/>

<action itemid="2526" event="script" value="start/weedle.lua"/>

<action itemid="2522" event="script" value="start/caterpie.lua"/>

 

 

Vai no itens.xml, da Ctrl+f e procura esses pokémons

vai ter:

 

 

 

<item id="2527" article="a" name="rattata Pokeball"> <attribute key="slotType" value="feet" />

</item>

<item id="2526" article="a" name="weedle Pokeball"> <attribute key="slotType" value="feet" />

</item>

<item id="2522" article="a" name="caterpie Pokeball"> <attribute key="slotType" value="feet" /> </item>

 

 

renomeie e deixe assim:

 

 

 

<item id="2527" article="a" name="charmander Pokeball"> <attribute key="slotType" value="feet" />

</item>

<item id="2526" article="a" name="bulbasaur Pokeball"> <attribute key="slotType" value="feet" />

</item>

<item id="2522" article="a" name="squirtle Pokeball"> <attribute key="slotType" value="feet" />

 

 

 

 

Se ajudei rep+

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

o.O Tenta agr amigo e ve se continua pegando de primeira

local pokes = {["Zubat"] = {corpseid = 5989, chance = 3320, health = 642, maxhealth = 642},["Zapdos"] = {corpseid = 6074, chance = 3000, health = 100, maxhealth = 100},["Wygglypuff"] = {corpseid = 2981, chance = 2012, health = 100, maxhealth = 100},["Wigglytuff"] = {corpseid = 6012, chance = 2012, health = 4000, maxhealth = 4000},["Weezing"] = {corpseid = 6306, chance = 1222, health = 3450, maxhealth = 3450},["Weepinbell"] = {corpseid = 4266, chance = 2212, health = 1280, maxhealth = 1280},["Weedle"] = {corpseid = 5964, chance = 2230, health = 291, maxhealth = 291},["Wartortle"] = {corpseid = 5978, chance = 2210, health = 4115, maxhealth = 4115},["Vulpix"] = {corpseid = 6003, chance = 2220, health = 1200, maxhealth = 1200},["Voltorb"] = {corpseid = 6049, chance = 2220, health = 1000, maxhealth = 1000},["Vileplume"] = {corpseid = 6025, chance = 2212, health = 4100, maxhealth = 4100},["Victribell"] = {corpseid = 6332, chance = 2228, health = 3850, maxhealth = 3850},["Venusaur"] = {corpseid = 5962, chance = 2225, health = 11170, maxhealth = 11170},["Venonat"] = {corpseid = 5997, chance = 2215, health = 1250, maxhealth = 1250},["Venomoth"] = {corpseid = 2925, chance = 2228, health = 3950, maxhealth = 3950},["Vaporeon"] = {corpseid = 5960, chance = 2221, health = 100, maxhealth = 100},["Tentacruel"] = {corpseid = 6037, chance = 2226, health = 8200, maxhealth = 8200},["Tentacool"] = {corpseid = 2961, chance = 2218, health = 914, maxhealth = 914},["Tauros"] = {corpseid = 6302, chance = 2212, health = 4100, maxhealth = 4100},["Tangela"] = {corpseid = 5976, chance = 2212, health = 4060, maxhealth = 4060},["Staryu"] = {corpseid = 5987, chance = 2215, health = 1000, maxhealth = 1000},["Starmie"] = {corpseid = 7320, chance = 2212, health = 3850, maxhealth = 3850},["Squirtle"] = {corpseid = 6008, chance = 2213, health = 1600, maxhealth = 1600},["Spearow"] = {corpseid = 5968, chance = 2219, health = 642, maxhealth = 642},["Snorlax"] = {corpseid = 6016, chance = 2223, health = 15350, maxhealth = 15350},["Slowpoke"] = {corpseid = 2926, chance = 2215, health = 1280, maxhealth = 1280},["Slowbro"] = {corpseid = 5986, chance = 2210, health = 4020, maxhealth = 4020},["Shellder"] = {corpseid = 3097, chance = 2220, health = 968, maxhealth = 968},["Seel"] = {corpseid = 6030, chance = 2217, health = 1470, maxhealth = 1470},["Seaking"] = {corpseid = 3038, chance = 2214, health = 2315, maxhealth = 2315},["Seadra"] = {corpseid = 2872, chance = 2214, health = 900, maxhealth = 900},["Scyther"] = {corpseid = 3002, chance = 2227, health = 6810, maxhealth = 6810},["Sandslash"] = {corpseid = 6041, chance = 1222, health = 5700, maxhealth = 5700},["Sandshrew"] = {corpseid = 5988, chance = 2218, health = 1019, maxhealth = 1019},["Rhyhorn"] = {corpseid = 3035, chance = 2240, health = 1750, maxhealth = 1750},["Rhydon"] = {corpseid = 2858, chance = 2240, health = 5115, maxhealth = 5115},["Rattata"] = {corpseid = 5974, chance = 2240, health = 291, maxhealth = 291},["Raticate"] = {corpseid = 6007, chance = 2240, health = 1300, maxhealth = 1300},["Rapidash"] = {corpseid = 4323, chance = 2240, health = 5020, maxhealth = 5020},["Raichu"] = {corpseid = 5996, chance = 2240, health = 4115, maxhealth = 4115},["Psyduck"] = {corpseid = 6029, chance = 2240, health = 1210, maxhealth = 1210},["Primeape"] = {corpseid = 6032, chance = 2240, health = 4760, maxhealth = 4760},["Porygon"] = {corpseid = 5963, chance = 2240, health = 100, maxhealth = 100},["Ponyta"] = {corpseid = 5975, chance = 2420, health = 980, maxhealth = 980},["Poliwrath"] = {corpseid = 6033, chance = 2240, health = 4950, maxhealth = 4950},["Poliwhirl"] = {corpseid = 6054, chance = 2240, health = 1650, maxhealth = 1650},["Poliwag"] = {corpseid = 6042, chance = 2240, health = 631, maxhealth = 631},["Pinsir"] = {corpseid = 7282, chance = 2240, health = 3150, maxhealth = 3150},["Pikachu"] = {corpseid = 6001, chance = 2240, health = 1600, maxhealth = 1600},["Pidgeot"] = {corpseid = 6020, chance = 2240, health = 5870, maxhealth = 5870},["Pidgey"] = {corpseid = 5961, chance = 2240, health = 295, maxhealth = 292},["Pidgeotto"] = {corpseid = 5966, chance = 2240, health = 1280, maxhealth = 1280},["Persian"] = {corpseid = 6009, chance = 2240, health = 2850, maxhealth = 2850},["Parasect"] = {corpseid = 6027, chance = 2240, health = 4100, maxhealth = 4100},["Paras"] = {corpseid = 3007, chance = 2240, health = 425, maxhealth = 425},["Onix"] = {corpseid = 2990, chance = 2240, health = 4100, maxhealth = 4100},["Omastar"] = {corpseid = 5994, chance = 2240, health = 100, maxhealth = 100},["Omanyte"] = {corpseid = 5998, chance = 2240, health = 4530, maxhealth = 4530},["Oddish"] = {corpseid = 3008, chance = 2240, health = 460, maxhealth = 460},["Ninetales"] = {corpseid = 6040, chance = 2240, health = 5800, maxhealth = 5800},["Nidorino"] = {corpseid = 6019, chance = 2240, health = 2100, maxhealth = 2100},["Nidorina"] = {corpseid = 6014, chance = 2240, health = 2300, maxhealth = 2300},["Nidoranma"] = {corpseid = 6015, chance = 2240, health = 985, maxhealth = 985},["Nidoranfe"] = {corpseid = 6013, chance = 2240, health = 100, maxhealth = 100},["Nidoqueen"] = {corpseid = 3004, chance = 2240, health = 7800, maxhealth = 7800},["Nidoking"] = {corpseid = 5995, chance = 2240, health = 7800, maxhealth = 7800},["Muk"] = {corpseid = 2845, chance = 2240, health = 3250, maxhealth = 3250},["Mr.Mime"] = {corpseid = 6069, chance = 2240, health = 5320, maxhealth = 5320},["Moltres"] = {corpseid = 7330, chance = 2240, health = 100, maxhealth = 100},["Mewtwo"] = {corpseid = 5973, chance = 2240, health = 100, maxhealth = 100},["Mew"] = {corpseid = 2939, chance = 2240, health = 100, maxhealth = 100},["Metapod"] = {corpseid = 5970, chance = 2240, health = 1120, maxhealth = 1120},["Meowth"] = {corpseid = 6034, chance = 2240, health = 1040, maxhealth = 1040},["Marowak"] = {corpseid = 6072, chance = 2240, health = 4125, maxhealth = 4125},["Mankey"] = {corpseid = 6035, chance = 2240, health = 1000, maxhealth = 1000},["Magneton"] = {corpseid = 6076, chance = 2240, health = 4100, maxhealth = 4100},["Magnemite"] = {corpseid = 6056, chance = 2240, health = 614, maxhealth = 614},["Magmar"] = {corpseid = 7283, chance = 2240, health = 7050, maxhealth = 7050},["Magikarp"] = {corpseid = 2818, chance = 2240, health = 250, maxhealth = 250},["Machop"] = {corpseid = 6045, chance = 2240, health = 1640, maxhealth = 1640},["Machoke"] = {corpseid = 4251, chance = 2240, health = 3755, maxhealth = 3755},["Machamp"] = {corpseid = 6048, chance = 2240, health = 7560, maxhealth = 7560},["Lickitung"] = {corpseid = 2953, chance = 2240, health = 5320, maxhealth = 5320},["Lapras"] = {corpseid = 6018, chance = 2240, health = 7320, maxhealth = 7320},["Krabby"] = {corpseid = 6039, chance = 2240, health = 744, maxhealth = 744},["Koffing"] = {corpseid = 2936, chance = 2240, health = 975, maxhealth = 975},["Kingler"] = {corpseid = 6340, chance = 2240, health = 3115, maxhealth = 3115},["Kangaskhan"] = {corpseid = 6073, chance = 2240, health = 7550, maxhealth = 7550},["Kakuna"] = {corpseid = 6000, chance = 2240, health = 1120, maxhealth = 1120},["Kadabra"] = {corpseid = 6060, chance = 2240, health = 2765, maxhealth = 2765},["Kabutops"] = {corpseid = 6337, chance = 2240, health = 100, maxhealth = 100},["Kabuto"] = {corpseid = 5972, chance = 2240, health = 100, maxhealth = 100},["Jynx"] = {corpseid = 5765, chance = 2240, health = 7060, maxhealth = 7060},["Jyglipuff"] = {corpseid = 2979, chance = 2240, health = 100, maxhealth = 100},["Jolteon"] = {corpseid = 6044, chance = 2240, health = 100, maxhealth = 100},["Jigglypuff"] = {corpseid = 6011, chance = 3240, health = 1695, maxhealth = 1695},["Ivysaur"] = {corpseid = 5982, chance = 2240, health = 4115, maxhealth = 4115},["Hypno"] = {corpseid = 6046, chance = 2240, health = 4590, maxhealth = 4590},["Horsea"] = {corpseid = 2973, chance = 2240, health = 604, maxhealth = 604},["Hitmonlee"] = {corpseid = 6067, chance = 2240, health = 7000, maxhealth = 7000},["Hitmonchan"] = {corpseid = 5977, chance = 2240, health = 7000, maxhealth = 7000},["Haunter"] = {corpseid = 6004, chance = 2240, health = 4250, maxhealth = 4250},["Gyarados"] = {corpseid = 6331, chance = 2240, health = 10150, maxhealth = 10150},["Growlithe"] = {corpseid = 6036, chance = 2240, health = 1200, maxhealth = 1200},["Goldeen"] = {corpseid = 2970, chance = 2240, health = 900, maxhealth = 900},["Golduck"] = {corpseid = 6028, chance = 2240, health = 5115, maxhealth = 5115},["Golem"] = {corpseid = 6043, chance = 2240, health = 5250, maxhealth = 5250},["Graveler"] = {corpseid = 6520, chance = 2240, health = 3100, maxhealth = 3100},["Grimer"] = {corpseid = 6055, chance = 2240, health = 1050, maxhealth = 1050},["Golbat"] = {corpseid = 6053, chance = 2240, health = 2480, maxhealth = 2480},["Gloom"] = {corpseid = 6017, chance = 2240, health = 1530, maxhealth = 1530},["Geodude"] = {corpseid = 6071, chance = 2240, health = 1528, maxhealth = 1528},["Gengar"] = {corpseid = 6336, chance = 2240, health = 8400, maxhealth = 8400},["Gastly"] = {corpseid = 5993, chance = 2240, health = 1160, maxhealth = 1160},["Flareon"] = {corpseid = 6059, chance = 2240, health = 100, maxhealth = 100},["Fearow"] = {corpseid = 5992, chance = 2240, health = 3495, maxhealth = 3495},["Farfetch"] = {corpseid = 2836, chance = 2240, health = 3870, maxhealth = 3870},["Exeggutor"] = {corpseid = 3005, chance = 2240, health = 4550, maxhealth = 4550},["Exeggcute"] = {corpseid = 2982, chance = 2240, health = 1100, maxhealth = 1100},["Ekans"] = {corpseid = 5979, chance = 2240, health = 882, maxhealth = 882},["Shiny Charizard"] = {corpseid = 2954, chance = 2240, health = 13170, maxhealth = 13170},["Electabuzz"] = {corpseid = 6065, chance = 2240, health = 7050, maxhealth = 7050},["Electrode"] = {corpseid = 6051, chance = 2240, health = 3150, maxhealth = 3150},["Dugtrio"] = {corpseid = 6024, chance = 2240, health = 3280, maxhealth = 3280},["Drowzee"] = {corpseid = 6026, chance = 2240, health = 1950, maxhealth = 1950},["Dratini"] = {corpseid = 2879, chance = 2240, health = 1810, maxhealth = 1810},["Dragonite"] = {corpseid = 4295, chance = 2240, health = 17150, maxhealth = 17150},["Dragonair"] = {corpseid = 6002, chance = 2240, health = 7600, maxhealth = 7600},["Doduo"] = {corpseid = 2842, chance = 2240, health = 936, maxhealth = 936},["Dodrio"] = {corpseid = 6047, chance = 2240, health = 3570, maxhealth = 3570},["Ditto"] = {corpseid = 2817, chance = 2240, health = 4115, maxhealth = 4115},["Diglett"] = {corpseid = 6023, chance = 2240, health = 696, maxhealth = 696},["Dewgong"] = {corpseid = 6038, chance = 2240, health = 7300, maxhealth = 7300},["Cubone"] = {corpseid = 6050, chance = 2240, health = 1640, maxhealth = 1640},["Crystal Onix"] = {corpseid = 6320, chance = 2240, health = 100, maxhealth = 100},["Cloyster"] = {corpseid = 2932, chance = 2240, health = 5825, maxhealth = 5825},["Clefairy"] = {corpseid = 2968, chance = 2240, health = 1695, maxhealth = 1695},["Clefabe"] = {corpseid = 6006, chance = 2240, health = 4400, maxhealth = 4400},["Charmeleon"] = {corpseid = 5981, chance = 2240, health = 4115, maxhealth = 4115},["Charmander"] = {corpseid = 5983, chance = 2240, health = 1600, maxhealth = 1600},["Charizard"] = {corpseid = 6005, chance = 2240, health = 11170, maxhealth = 11170},["Chansey"] = {corpseid = 6010, chance = 2240, health = 5000, maxhealth = 5000},["Caterpie"] = {corpseid = 3099, chance = 2240, health = 291, maxhealth = 291},["Butterfree"] = {corpseid = 5985, chance = 2240, health = 2200, maxhealth = 2200},["Bulbasaur"] = {corpseid = 5969, chance = 2240, health = 1600, maxhealth = 1600},["Blastoise"] = {corpseid = 5999, chance = 2240, health = 11170, maxhealth = 11170},["Bellsprout"] = {corpseid = 3047, chance = 2240, health = 838, maxhealth = 838},["Beedrill"] = {corpseid = 5990, chance = 2240, health = 2200, maxhealth = 2200},["Articuno"] = {corpseid = 7260, chance = 2240, health = 100, maxhealth = 100},["Arcanine"] = {corpseid = 6031, chance = 2240, health = 7800, maxhealth = 7800},["Arbok"] = {corpseid = 5984, chance = 2240, health = 2405, maxhealth = 2405},["Alakazam"] = {corpseid = 6057, chance = 2240, health = 7350, maxhealth = 7350},["Aerodactyl"] = {corpseid = 6338, chance = 2240, health = 100, maxhealth = 100},["Abra"] = {corpseid = 3000, chance = 2240, health = 870, maxhealth = 870},}local time = 3.8 -- Tempo para mandar as mensagens e adiciona itemfunction onUse(cid, item, frompos, item2, topos)for i,x in pairs(pokes) doif item2.itemid == x.corpseid thendoRemoveItem(item.uid, 1)doRemoveItem(item2.uid, 1)if math.random(1,100) <= x.chance thenfunction add()local s = doPlayerAddItem(cid, pokein)doItemSetAttribute(s, "poke", "This is "..i.."'s pokeball. HP = ["..x.health.."/"..x.maxhealth.."]")doItemSetAttribute(s, "description", "Contains a " .. i)enddoSendMagicEffect(topos, 24)addEvent(add, time*1000)return addEvent(doPlayerSendTextMessage, time*1000, cid, 27, "You catch a " .. i .. ".")elseaddEvent(doPlayerSendTextMessage, time*1000, cid, 27, "Your pokeball broke.")return doSendMagicEffect(topos, 23)endendendreturn TRUEend

Se ajudei rep+

 

Para mudar os pokemons iniciais faz o seguinte

 

tags do actions.xml

 

 

 

<action itemid="2527" event="script" value="start/rattata.lua"/>

<action itemid="2526" event="script" value="start/weedle.lua"/>

<action itemid="2522" event="script" value="start/caterpie.lua"/>

 

 

Vai no itens.xml, da Ctrl+f e procura esses pokémons

vai ter:

 

 

 

<item id="2527" article="a" name="rattata Pokeball"> <attribute key="slotType" value="feet" />

</item>

<item id="2526" article="a" name="weedle Pokeball"> <attribute key="slotType" value="feet" />

</item>

<item id="2522" article="a" name="caterpie Pokeball"> <attribute key="slotType" value="feet" /> </item>

 

 

renomeie e deixe assim:

 

 

 

<item id="2527" article="a" name="charmander Pokeball"> <attribute key="slotType" value="feet" />

</item>

<item id="2526" article="a" name="bulbasaur Pokeball"> <attribute key="slotType" value="feet" />

</item>

<item id="2522" article="a" name="squirtle Pokeball"> <attribute key="slotType" value="feet" />

 

 

 

 

Se ajudei rep+

 

manow no catch eu acho que esta faltado alguma coisa sera que nao tem que po as poke bolas que pode pega ???

no meu serve tem duas as normais e as ultra eu acho que e isso tem que po isso ne a vou tenta trocas os pokemons pera ai jaja falo se deu amigo :thumbsupsmiley:

 

manow da parte de troca os pokemon iniciais so nao indenti uma parte e por que sou meio nb e burro kk como asim tags o actions.xml ??? :winksmiley02:

 

manow da parte de troca os pokemon iniciais so nao indenti uma parte e por que sou meio nb e burro kk como asim tags o actions.xml ??? :worriedsmiley::winksmiley02:

 

manow da parte de troca os pokemon iniciais so nao indenti uma parte e por que sou meio nb e burro kk como asim tags o actions.xml ???

 

o.O Tenta agr amigo e ve se continua pegando de primeira

local pokes = {["Zubat"] = {corpseid = 5989, chance = 3320, health = 642, maxhealth = 642},["Zapdos"] = {corpseid = 6074, chance = 3000, health = 100, maxhealth = 100},["Wygglypuff"] = {corpseid = 2981, chance = 2012, health = 100, maxhealth = 100},["Wigglytuff"] = {corpseid = 6012, chance = 2012, health = 4000, maxhealth = 4000},["Weezing"] = {corpseid = 6306, chance = 1222, health = 3450, maxhealth = 3450},["Weepinbell"] = {corpseid = 4266, chance = 2212, health = 1280, maxhealth = 1280},["Weedle"] = {corpseid = 5964, chance = 2230, health = 291, maxhealth = 291},["Wartortle"] = {corpseid = 5978, chance = 2210, health = 4115, maxhealth = 4115},["Vulpix"] = {corpseid = 6003, chance = 2220, health = 1200, maxhealth = 1200},["Voltorb"] = {corpseid = 6049, chance = 2220, health = 1000, maxhealth = 1000},["Vileplume"] = {corpseid = 6025, chance = 2212, health = 4100, maxhealth = 4100},["Victribell"] = {corpseid = 6332, chance = 2228, health = 3850, maxhealth = 3850},["Venusaur"] = {corpseid = 5962, chance = 2225, health = 11170, maxhealth = 11170},["Venonat"] = {corpseid = 5997, chance = 2215, health = 1250, maxhealth = 1250},["Venomoth"] = {corpseid = 2925, chance = 2228, health = 3950, maxhealth = 3950},["Vaporeon"] = {corpseid = 5960, chance = 2221, health = 100, maxhealth = 100},["Tentacruel"] = {corpseid = 6037, chance = 2226, health = 8200, maxhealth = 8200},["Tentacool"] = {corpseid = 2961, chance = 2218, health = 914, maxhealth = 914},["Tauros"] = {corpseid = 6302, chance = 2212, health = 4100, maxhealth = 4100},["Tangela"] = {corpseid = 5976, chance = 2212, health = 4060, maxhealth = 4060},["Staryu"] = {corpseid = 5987, chance = 2215, health = 1000, maxhealth = 1000},["Starmie"] = {corpseid = 7320, chance = 2212, health = 3850, maxhealth = 3850},["Squirtle"] = {corpseid = 6008, chance = 2213, health = 1600, maxhealth = 1600},["Spearow"] = {corpseid = 5968, chance = 2219, health = 642, maxhealth = 642},["Snorlax"] = {corpseid = 6016, chance = 2223, health = 15350, maxhealth = 15350},["Slowpoke"] = {corpseid = 2926, chance = 2215, health = 1280, maxhealth = 1280},["Slowbro"] = {corpseid = 5986, chance = 2210, health = 4020, maxhealth = 4020},["Shellder"] = {corpseid = 3097, chance = 2220, health = 968, maxhealth = 968},["Seel"] = {corpseid = 6030, chance = 2217, health = 1470, maxhealth = 1470},["Seaking"] = {corpseid = 3038, chance = 2214, health = 2315, maxhealth = 2315},["Seadra"] = {corpseid = 2872, chance = 2214, health = 900, maxhealth = 900},["Scyther"] = {corpseid = 3002, chance = 2227, health = 6810, maxhealth = 6810},["Sandslash"] = {corpseid = 6041, chance = 1222, health = 5700, maxhealth = 5700},["Sandshrew"] = {corpseid = 5988, chance = 2218, health = 1019, maxhealth = 1019},["Rhyhorn"] = {corpseid = 3035, chance = 2240, health = 1750, maxhealth = 1750},["Rhydon"] = {corpseid = 2858, chance = 2240, health = 5115, maxhealth = 5115},["Rattata"] = {corpseid = 5974, chance = 2240, health = 291, maxhealth = 291},["Raticate"] = {corpseid = 6007, chance = 2240, health = 1300, maxhealth = 1300},["Rapidash"] = {corpseid = 4323, chance = 2240, health = 5020, maxhealth = 5020},["Raichu"] = {corpseid = 5996, chance = 2240, health = 4115, maxhealth = 4115},["Psyduck"] = {corpseid = 6029, chance = 2240, health = 1210, maxhealth = 1210},["Primeape"] = {corpseid = 6032, chance = 2240, health = 4760, maxhealth = 4760},["Porygon"] = {corpseid = 5963, chance = 2240, health = 100, maxhealth = 100},["Ponyta"] = {corpseid = 5975, chance = 2420, health = 980, maxhealth = 980},["Poliwrath"] = {corpseid = 6033, chance = 2240, health = 4950, maxhealth = 4950},["Poliwhirl"] = {corpseid = 6054, chance = 2240, health = 1650, maxhealth = 1650},["Poliwag"] = {corpseid = 6042, chance = 2240, health = 631, maxhealth = 631},["Pinsir"] = {corpseid = 7282, chance = 2240, health = 3150, maxhealth = 3150},["Pikachu"] = {corpseid = 6001, chance = 2240, health = 1600, maxhealth = 1600},["Pidgeot"] = {corpseid = 6020, chance = 2240, health = 5870, maxhealth = 5870},["Pidgey"] = {corpseid = 5961, chance = 2240, health = 295, maxhealth = 292},["Pidgeotto"] = {corpseid = 5966, chance = 2240, health = 1280, maxhealth = 1280},["Persian"] = {corpseid = 6009, chance = 2240, health = 2850, maxhealth = 2850},["Parasect"] = {corpseid = 6027, chance = 2240, health = 4100, maxhealth = 4100},["Paras"] = {corpseid = 3007, chance = 2240, health = 425, maxhealth = 425},["Onix"] = {corpseid = 2990, chance = 2240, health = 4100, maxhealth = 4100},["Omastar"] = {corpseid = 5994, chance = 2240, health = 100, maxhealth = 100},["Omanyte"] = {corpseid = 5998, chance = 2240, health = 4530, maxhealth = 4530},["Oddish"] = {corpseid = 3008, chance = 2240, health = 460, maxhealth = 460},["Ninetales"] = {corpseid = 6040, chance = 2240, health = 5800, maxhealth = 5800},["Nidorino"] = {corpseid = 6019, chance = 2240, health = 2100, maxhealth = 2100},["Nidorina"] = {corpseid = 6014, chance = 2240, health = 2300, maxhealth = 2300},["Nidoranma"] = {corpseid = 6015, chance = 2240, health = 985, maxhealth = 985},["Nidoranfe"] = {corpseid = 6013, chance = 2240, health = 100, maxhealth = 100},["Nidoqueen"] = {corpseid = 3004, chance = 2240, health = 7800, maxhealth = 7800},["Nidoking"] = {corpseid = 5995, chance = 2240, health = 7800, maxhealth = 7800},["Muk"] = {corpseid = 2845, chance = 2240, health = 3250, maxhealth = 3250},["Mr.Mime"] = {corpseid = 6069, chance = 2240, health = 5320, maxhealth = 5320},["Moltres"] = {corpseid = 7330, chance = 2240, health = 100, maxhealth = 100},["Mewtwo"] = {corpseid = 5973, chance = 2240, health = 100, maxhealth = 100},["Mew"] = {corpseid = 2939, chance = 2240, health = 100, maxhealth = 100},["Metapod"] = {corpseid = 5970, chance = 2240, health = 1120, maxhealth = 1120},["Meowth"] = {corpseid = 6034, chance = 2240, health = 1040, maxhealth = 1040},["Marowak"] = {corpseid = 6072, chance = 2240, health = 4125, maxhealth = 4125},["Mankey"] = {corpseid = 6035, chance = 2240, health = 1000, maxhealth = 1000},["Magneton"] = {corpseid = 6076, chance = 2240, health = 4100, maxhealth = 4100},["Magnemite"] = {corpseid = 6056, chance = 2240, health = 614, maxhealth = 614},["Magmar"] = {corpseid = 7283, chance = 2240, health = 7050, maxhealth = 7050},["Magikarp"] = {corpseid = 2818, chance = 2240, health = 250, maxhealth = 250},["Machop"] = {corpseid = 6045, chance = 2240, health = 1640, maxhealth = 1640},["Machoke"] = {corpseid = 4251, chance = 2240, health = 3755, maxhealth = 3755},["Machamp"] = {corpseid = 6048, chance = 2240, health = 7560, maxhealth = 7560},["Lickitung"] = {corpseid = 2953, chance = 2240, health = 5320, maxhealth = 5320},["Lapras"] = {corpseid = 6018, chance = 2240, health = 7320, maxhealth = 7320},["Krabby"] = {corpseid = 6039, chance = 2240, health = 744, maxhealth = 744},["Koffing"] = {corpseid = 2936, chance = 2240, health = 975, maxhealth = 975},["Kingler"] = {corpseid = 6340, chance = 2240, health = 3115, maxhealth = 3115},["Kangaskhan"] = {corpseid = 6073, chance = 2240, health = 7550, maxhealth = 7550},["Kakuna"] = {corpseid = 6000, chance = 2240, health = 1120, maxhealth = 1120},["Kadabra"] = {corpseid = 6060, chance = 2240, health = 2765, maxhealth = 2765},["Kabutops"] = {corpseid = 6337, chance = 2240, health = 100, maxhealth = 100},["Kabuto"] = {corpseid = 5972, chance = 2240, health = 100, maxhealth = 100},["Jynx"] = {corpseid = 5765, chance = 2240, health = 7060, maxhealth = 7060},["Jyglipuff"] = {corpseid = 2979, chance = 2240, health = 100, maxhealth = 100},["Jolteon"] = {corpseid = 6044, chance = 2240, health = 100, maxhealth = 100},["Jigglypuff"] = {corpseid = 6011, chance = 3240, health = 1695, maxhealth = 1695},["Ivysaur"] = {corpseid = 5982, chance = 2240, health = 4115, maxhealth = 4115},["Hypno"] = {corpseid = 6046, chance = 2240, health = 4590, maxhealth = 4590},["Horsea"] = {corpseid = 2973, chance = 2240, health = 604, maxhealth = 604},["Hitmonlee"] = {corpseid = 6067, chance = 2240, health = 7000, maxhealth = 7000},["Hitmonchan"] = {corpseid = 5977, chance = 2240, health = 7000, maxhealth = 7000},["Haunter"] = {corpseid = 6004, chance = 2240, health = 4250, maxhealth = 4250},["Gyarados"] = {corpseid = 6331, chance = 2240, health = 10150, maxhealth = 10150},["Growlithe"] = {corpseid = 6036, chance = 2240, health = 1200, maxhealth = 1200},["Goldeen"] = {corpseid = 2970, chance = 2240, health = 900, maxhealth = 900},["Golduck"] = {corpseid = 6028, chance = 2240, health = 5115, maxhealth = 5115},["Golem"] = {corpseid = 6043, chance = 2240, health = 5250, maxhealth = 5250},["Graveler"] = {corpseid = 6520, chance = 2240, health = 3100, maxhealth = 3100},["Grimer"] = {corpseid = 6055, chance = 2240, health = 1050, maxhealth = 1050},["Golbat"] = {corpseid = 6053, chance = 2240, health = 2480, maxhealth = 2480},["Gloom"] = {corpseid = 6017, chance = 2240, health = 1530, maxhealth = 1530},["Geodude"] = {corpseid = 6071, chance = 2240, health = 1528, maxhealth = 1528},["Gengar"] = {corpseid = 6336, chance = 2240, health = 8400, maxhealth = 8400},["Gastly"] = {corpseid = 5993, chance = 2240, health = 1160, maxhealth = 1160},["Flareon"] = {corpseid = 6059, chance = 2240, health = 100, maxhealth = 100},["Fearow"] = {corpseid = 5992, chance = 2240, health = 3495, maxhealth = 3495},["Farfetch"] = {corpseid = 2836, chance = 2240, health = 3870, maxhealth = 3870},["Exeggutor"] = {corpseid = 3005, chance = 2240, health = 4550, maxhealth = 4550},["Exeggcute"] = {corpseid = 2982, chance = 2240, health = 1100, maxhealth = 1100},["Ekans"] = {corpseid = 5979, chance = 2240, health = 882, maxhealth = 882},["Shiny Charizard"] = {corpseid = 2954, chance = 2240, health = 13170, maxhealth = 13170},["Electabuzz"] = {corpseid = 6065, chance = 2240, health = 7050, maxhealth = 7050},["Electrode"] = {corpseid = 6051, chance = 2240, health = 3150, maxhealth = 3150},["Dugtrio"] = {corpseid = 6024, chance = 2240, health = 3280, maxhealth = 3280},["Drowzee"] = {corpseid = 6026, chance = 2240, health = 1950, maxhealth = 1950},["Dratini"] = {corpseid = 2879, chance = 2240, health = 1810, maxhealth = 1810},["Dragonite"] = {corpseid = 4295, chance = 2240, health = 17150, maxhealth = 17150},["Dragonair"] = {corpseid = 6002, chance = 2240, health = 7600, maxhealth = 7600},["Doduo"] = {corpseid = 2842, chance = 2240, health = 936, maxhealth = 936},["Dodrio"] = {corpseid = 6047, chance = 2240, health = 3570, maxhealth = 3570},["Ditto"] = {corpseid = 2817, chance = 2240, health = 4115, maxhealth = 4115},["Diglett"] = {corpseid = 6023, chance = 2240, health = 696, maxhealth = 696},["Dewgong"] = {corpseid = 6038, chance = 2240, health = 7300, maxhealth = 7300},["Cubone"] = {corpseid = 6050, chance = 2240, health = 1640, maxhealth = 1640},["Crystal Onix"] = {corpseid = 6320, chance = 2240, health = 100, maxhealth = 100},["Cloyster"] = {corpseid = 2932, chance = 2240, health = 5825, maxhealth = 5825},["Clefairy"] = {corpseid = 2968, chance = 2240, health = 1695, maxhealth = 1695},["Clefabe"] = {corpseid = 6006, chance = 2240, health = 4400, maxhealth = 4400},["Charmeleon"] = {corpseid = 5981, chance = 2240, health = 4115, maxhealth = 4115},["Charmander"] = {corpseid = 5983, chance = 2240, health = 1600, maxhealth = 1600},["Charizard"] = {corpseid = 6005, chance = 2240, health = 11170, maxhealth = 11170},["Chansey"] = {corpseid = 6010, chance = 2240, health = 5000, maxhealth = 5000},["Caterpie"] = {corpseid = 3099, chance = 2240, health = 291, maxhealth = 291},["Butterfree"] = {corpseid = 5985, chance = 2240, health = 2200, maxhealth = 2200},["Bulbasaur"] = {corpseid = 5969, chance = 2240, health = 1600, maxhealth = 1600},["Blastoise"] = {corpseid = 5999, chance = 2240, health = 11170, maxhealth = 11170},["Bellsprout"] = {corpseid = 3047, chance = 2240, health = 838, maxhealth = 838},["Beedrill"] = {corpseid = 5990, chance = 2240, health = 2200, maxhealth = 2200},["Articuno"] = {corpseid = 7260, chance = 2240, health = 100, maxhealth = 100},["Arcanine"] = {corpseid = 6031, chance = 2240, health = 7800, maxhealth = 7800},["Arbok"] = {corpseid = 5984, chance = 2240, health = 2405, maxhealth = 2405},["Alakazam"] = {corpseid = 6057, chance = 2240, health = 7350, maxhealth = 7350},["Aerodactyl"] = {corpseid = 6338, chance = 2240, health = 100, maxhealth = 100},["Abra"] = {corpseid = 3000, chance = 2240, health = 870, maxhealth = 870},}local time = 3.8 -- Tempo para mandar as mensagens e adiciona itemfunction onUse(cid, item, frompos, item2, topos)for i,x in pairs(pokes) doif item2.itemid == x.corpseid thendoRemoveItem(item.uid, 1)doRemoveItem(item2.uid, 1)if math.random(1,100) <= x.chance thenfunction add()local s = doPlayerAddItem(cid, pokein)doItemSetAttribute(s, "poke", "This is "..i.."'s pokeball. HP = ["..x.health.."/"..x.maxhealth.."]")doItemSetAttribute(s, "description", "Contains a " .. i)enddoSendMagicEffect(topos, 24)addEvent(add, time*1000)return addEvent(doPlayerSendTextMessage, time*1000, cid, 27, "You catch a " .. i .. ".")elseaddEvent(doPlayerSendTextMessage, time*1000, cid, 27, "Your pokeball broke.")return doSendMagicEffect(topos, 23)endendendreturn TRUEend

Se ajudei rep+

 

Para mudar os pokemons iniciais faz o seguinte

 

tags do actions.xml

 

 

 

<action itemid="2527" event="script" value="start/rattata.lua"/>

<action itemid="2526" event="script" value="start/weedle.lua"/>

<action itemid="2522" event="script" value="start/caterpie.lua"/>

 

 

Vai no itens.xml, da Ctrl+f e procura esses pokémons

vai ter:

 

 

 

<item id="2527" article="a" name="rattata Pokeball"> <attribute key="slotType" value="feet" />

</item>

<item id="2526" article="a" name="weedle Pokeball"> <attribute key="slotType" value="feet" />

</item>

<item id="2522" article="a" name="caterpie Pokeball"> <attribute key="slotType" value="feet" /> </item>

 

 

renomeie e deixe assim:

 

 

 

<item id="2527" article="a" name="charmander Pokeball"> <attribute key="slotType" value="feet" />

</item>

<item id="2526" article="a" name="bulbasaur Pokeball"> <attribute key="slotType" value="feet" />

</item>

<item id="2522" article="a" name="squirtle Pokeball"> <attribute key="slotType" value="feet" />

 

 

 

 

Se ajudei rep+

 

manow da parte de troca os pokemon iniciais so nao indenti uma parte e por que sou meio nb e burro kk como asim tags o actions.xml ??? :winksmiley02::worriedsmiley:

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...