leo12356 0 Postado Outubro 23, 2012 Share Postado Outubro 23, 2012 Ja revirei Aqui no xtibia e nao acho =( Alguem tem esse system vc tem 6 pokémons e quando da cauth no 7º o pokemon vai pro cp Link para o comentário Compartilhar em outros sites More sharing options...
0 GuhPk 111 Postado Outubro 23, 2012 Share Postado Outubro 23, 2012 Em data/actions/scripts/catch.lua coloque isso dentro: local pokes = { ["Flareon"] = {chance = 10000, corpse = 6059, health = 5300, maxhealth = 5300}, ["Crystal Onix"] = {chance = 10000, corpse = 6320, health = 5300, maxhealth = 5300}, ["Porygon"] = {chance = 7000, corpse = 5963, health = 14000, maxhealth = 4000}, ["porygon2"] = {chance = 9000, corpse = 2809, health = 14000, maxhealth = 4000}, ["Ditto"] = {chance = 10000, corpse = 2817, health = 14000, maxhealth = 4000}, ["Shiny Ditto"] = {chance = 10000, corpse = 2816, health = 14000, maxhealth = 4000}, ["Magikarp"] = {chance = 10, corpse = 2818, health = 120, maxhealth = 120}, ["Eevee"] = {chance = 800, corpse = 6364, health = 1500, maxhealth = 1500}, ["Abra"] = {chance = 600, corpse = 2905, health = 620, maxhealth = 620}, ["Kadabra"] = {chance = 1000, corpse = 6060, health = 2500, maxhealth = 2500}, ["Alakazam"] = {chance = 3000, corpse = 6057, health = 4000, maxhealth = 4000}, ["Shiny Alakazam"] = {chance = 10000, corpse = 6022, health = 4000, maxhealth = 4000}, ["Dark Alakazam"] = {chance = 10000, corpse = 2927, health = 4000, maxhealth = 4000}, ["Rattata"] = {chance = 500, corpse = 5974, health = 350, maxhealth = 350}, ["Raticate"] = {chance = 3000, corpse = 6007, health = 900, maxhealth = 900}, ["Pidgey"] = {chance = 400, corpse = 5961, health = 380, maxhealth = 380}, ["Pidgeotto"] = {chance = 2000, corpse = 5966, health = 1400, maxhealth = 1400}, ["Pidgeot"] = {chance = 3000, corpse = 6020, health = 3800, maxhealth = 3800}, ["Zubat"] = {chance = 200, corpse = 5989, health = 450, maxhealth = 450}, ["Golbat"] = {chance = 1000, corpse = 6053, health = 1900, maxhealth = 1900}, ["Bellsprout"] = {chance = 100, corpse = 2806, health = 420, maxhealth = 420}, ["Weepinbell"] = {chance = 2000, corpse = 2928, health = 1100, maxhealth = 1100}, ["Victreebel"] = {chance = 3000, corpse = 6332, health = 4000, maxhealth = 4000}, ["Shiny Victreebel"] = {chance = 50, corpse = 6333, health = 4000, maxhealth = 4000}, ["Poliwag"] = {chance = 1000, corpse = 6042, health = 400, maxhealth = 400}, ["Poliwhirl"] = {chance = 2000, corpse = 6054, health = 1200, maxhealth = 1200}, ["Poliwrath"] = {chance = 3000, corpse = 6033, health = 4400, maxhealth = 4400}, ["Oddish"] = {chance = 300, corpse = 3008, health = 340, maxhealth = 340}, ["Gloom"] = {chance = 2000, corpse = 6017, health = 1400, maxhealth = 1400}, ["Vileplume"] = {chance = 5000, corpse = 6025, health = 3300, maxhealth = 3300}, ["Horsea"] = {chance = 2000, corpse = 2973, health = 300, maxhealth = 300}, ["Seadra"] = {chance = 3000, corpse = 2872, health = 2500, maxhealth = 2500}, ["Grimer"] = {chance = 3000, corpse = 6055, health = 600, maxhealth = 600}, ["Weedle"] = {chance = 20, corpse = 5964, health = 325, maxhealth = 325}, ["Kakuna"] = {chance = 3000, corpse = 6000, health = 900, maxhealth = 900}, ["Beedrill"] = {chance = 4000, corpse = 5990, health = 1900, maxhealth = 1900}, ["Muk"] = {chance = 2000, corpse = 2845, health = 2400, maxhealth = 2400}, ["Doduo"] = {chance = 1000, corpse = 2842, health = 600, maxhealth = 600}, ["Dodrio"] = {chance = 3000, corpse = 6047, health = 2650, maxhealth = 2650}, ["Magnemite"] = {chance = 3000, corpse = 6056, health = 450, maxhealth = 450}, ["Magneton"] = {chance = 3000, corpse = 6076, health = 1750, maxhealth = 1750}, ["Voltorb"] = {chance = 1050, corpse = 6049, health = 620, maxhealth = 620}, ["Electrode"] = {chance = 3005, corpse = 6051, health = 2000, maxhealth = 2000}, ["Geodude"] = {chance = 1000, corpse = 6071, health = 700, maxhealth = 700}, ["Graveler"] = {chance = 2000, corpse = 6516, health = 3000, maxhealth = 3000}, ["Golem"] = {chance = 3000, corpse = 6043, health = 6500, maxhealth = 6500}, ["Sandshrew"] = {chance = 1000, corpse = 5988, health = 700, maxhealth = 700}, ["Sandslash"] = {chance = 3000, corpse = 6041, health = 3400, maxhealth = 3400}, ["Charmander"] = {chance = 1000, corpse = 5983, health = 970, maxhealth = 970}, ["Charmeleon"] = {chance = 2000, corpse = 5981, health = 2900, maxhealth = 2900}, ["Charizard"] = {chance = 3000, corpse = 6005, health = 5200, maxhealth = 5200}, ["Vulpix"] = {chance = 1000, corpse = 6003, health = 680, maxhealth = 680}, ["Ninetales"] = {chance = 3000, corpse = 6040, health = 2650, maxhealth = 2650}, ["Bulbasaur"] = {chance = 1000, corpse = 5969, health = 1200, maxhealth = 1200}, ["Ivysaur"] = {chance = 2000, corpse = 5982, health = 2600, maxhealth = 2600}, ["Venusaur"] = {chance = 3000, corpse = 5962, health = 5200, maxhealth = 5200}, ["Squirtle"] = {chance = 1000, corpse = 6008, health = 1350, maxhealth = 1350}, ["Wartortle"] = {chance = 2000, corpse = 5978, health = 2800, maxhealth = 2800}, ["Blastoise"] = {chance = 3000, corpse = 5999, health = 5900, maxhealth = 5900}, ["Growlithe"] = {chance = 3000, corpse = 6036, health = 1000, maxhealth = 1000}, ["Arcanine"] = {chance = 5000, corpse = 6031, health = 6800, maxhealth = 6800}, ["Psyduck"] = {chance = 1000, corpse = 6029, health = 950, maxhealth = 950}, ["Golduck"] = {chance = 3000, corpse = 6028, health = 4000, maxhealth = 4000}, ["Pikachu"] = {chance = 2000, corpse = 6001, health = 900, maxhealth = 900}, ["Raichu"] = {chance = 1000, corpse = 5996, health = 3500, maxhealth = 3500}, ["Ekans"] = {chance = 2000, corpse = 5979, health = 600, maxhealth = 600}, ["Arbok"] = {chance = 3000, corpse = 5984, health = 2900, maxhealth = 2900}, ["Cubone"] = {chance = 500, corpse = 6050, health = 1200, maxhealth = 1200}, ["Marowak"] = {chance = 1000, corpse = 6072, health = 3900, maxhealth = 3900}, ["Caterpie"] = {chance = 20, corpse = 5971, health = 300, maxhealth = 300}, ["Metapod"] = {chance = 300, corpse = 5970, health = 1100, maxhealth = 1100}, ["Butterfree"] = {chance = 1000, corpse = 5985, health = 2000, maxhealth = 2000}, ["Goldeen"] = {chance = 300, corpse = 2970, health = 950, maxhealth = 950}, ["Seaking"] = {chance = 1000, corpse = 3038, health = 2000, maxhealth = 2000}, ["Spearow"] = {chance = 300, corpse = 5968, health = 200, maxhealth = 200}, ["Fearow"] = {chance = 2000, corpse = 5992, health = 3300, maxhealth = 3300}, ["Drowzee"] = {chance = 500, corpse = 6026, health = 1150, maxhealth = 1150}, ["Hypno"] = {chance = 2000, corpse = 6046, health = 4600, maxhealth = 4600}, ["Diglett"] = {chance = 400, corpse = 6023, health = 900, maxhealth = 900}, ["Dugtrio"] = {chance = 4000, corpse = 6024, health = 3450, maxhealth = 3450}, ["Krabby"] = {chance = 400, corpse = 6039, health = 850, maxhealth = 850}, ["Kingler"] = {chance = 2000, corpse = 6340, health = 3250, maxhealth = 3250}, ["Paras"] = {chance = 100, corpse = 3007, health = 850, maxhealth = 850}, ["Parasect"] = {chance = 1000, corpse = 6027, health = 3800, maxhealth = 3800}, ["Dratini"] = {chance = 800, corpse = 2879, health = 520, maxhealth = 520}, ["Dragonair"] = {chance = 1500, corpse = 6002, health = 3000, maxhealth = 3000}, ["Shiny Dragonair"] = {chance = 10000, corpse = 6080, health = 3000, maxhealth = 3000}, ["Dragonite"] = {chance = 4000, corpse = 4295, health = 17000, maxhealth = 17000}, ["Shiny Dragonite"] = {chance = 350000, corpse = 6081, health = 17000, maxhealth = 17000}, ["Ponyta"] = {chance = 300, corpse = 5975, health = 1400, maxhealth = 1400}, ["Rapidash"] = {chance = 1300, corpse = 4323, health = 5500, maxhealth = 5500}, ["Pinsir"] = {chance = 4000, corpse = 7282, health = 55, maxhealth = 55}, ["Seel"] = {chance = 400, corpse = 6030, health = 1000, maxhealth = 1000}, ["Dewgong"] = {chance = 3500, corpse = 6038, health = 5200, maxhealth = 5200}, ["Exeggcute"] = {chance = 300, corpse = 2982, health = 800, maxhealth = 800}, ["Exeggutor"] = {chance = 5000, corpse = 3005, health = 450, maxhealth = 4000}, ["Koffing"] = {chance = 400, corpse = 2936, health = 900, maxhealth = 900}, ["Weezing"] = {chance = 1800, corpse = 6306, health = 2800, maxhealth = 2800}, ["Staryu"] = {chance = 700, corpse = 5987, health = 1050, maxhealth = 1050}, ["Starmie"] = {chance = 3000, corpse = 7320, health = 3800, maxhealth = 3800}, ["Rhyhorn"] = {chance = 1000, corpse = 3035, health = 3800, maxhealth = 3800}, ["Rhydon"] = {chance = 5500, corpse = 2858, health = 7000, maxhealth = 7000}, ["Shellder"] = {chance = 505, corpse = 2837, health = 800, maxhealth = 800}, ["Snorlax"] = {chance = 33705, corpse = 6016, health = 9000, maxhealth = 9000}, ["Shiny Snorlax"] = {chance = 33705, corpse = 6304, health = 9000, maxhealth = 9000}, ["Gyarados"] = {chance = 30000, corpse = 6331, health = 7800, maxhealth = 7800}, ["Machop"] = {chance = 300.25, corpse = 6045, health = 1100, maxhealth = 1100}, ["Machoke"] = {chance = 5205, corpse = 4251, health = 2850, maxhealth = 3500}, ["Machamp"] = {chance = 11500, corpse = 6048, health = 6100, maxhealth = 7500}, ["Clefairy"] = {chance = 1075, corpse = 2968, health = 600, maxhealth = 600}, ["Clefable"] = {chance = 5050, corpse = 6006, health = 2400, maxhealth = 2400}, ["Jigglypuff"] = {chance = 987.5, corpse = 6011, health = 550, maxhealth = 550}, ["Wigglytuff"] = {chance = 5025, corpse = 6012, health = 2900, maxhealth = 2900}, ["Venonat"] = {chance = 925, corpse = 5997, health = 1350, maxhealth = 1350}, ["Venomoth"] = {chance = 4000, corpse = 2925, health = 3850, maxhealth = 3850}, ["Meowth"] = {chance = 900, corpse = 6034, health = 2000, maxhealth = 950}, ["Persian"] = {chance = 4000, corpse = 6009, health = 2250, maxhealth = 2250}, ["Mankey"] = {chance = 605, corpse = 6035, health = 1050, maxhealth = 1050}, ["Primeape"] = {chance = 5205, corpse = 6032, health = 4500, maxhealth = 4500}, ["Tentacool"] = {chance = 303.75, corpse = 2961, health = 1050, maxhealth = 1050}, ["Tentacruel"] = {chance = 6500, corpse = 6037, health = 7050, maxhealth = 7050}, ["Slowpoke"] = {chance = 906.25, corpse = 2926, health = 1200, maxhealth = 1200}, ["Slowbro"] = {chance = 7102.5, corpse = 5986, health = 4600, maxhealth = 4600}, ["Cloyster"] = {chance = 5807.5, corpse = 2932, health = 120, maxhealth = 5000}, ["Gastly"] = {chance = 3307.5, corpse = 5993, health = 1000, maxhealth = 1000}, ["Haunter"] = {chance = 7705, corpse = 6004, health = 3000, maxhealth = 3000}, ["Gengar"] = {chance = 39075, corpse = 6336, health = 7000, maxhealth = 7000}, ["Onix"] = {chance = 9000, corpse = 2990, health = 5300, maxhealth = 5300}, ["Hitmonlee"] = {chance = 65000, corpse = 6067, health = 9250, maxhealth = 9250}, ["Hitmonchan"] = {chance = 65000, corpse = 5977, health = 10500, maxhealth = 10500}, ["Lickitung"] = {chance = 9875, corpse = 2953, health = 4800, maxhealth = 4800}, ["Chansey"] = {chance = 40000, corpse = 6010, health = 7500, maxhealth = 7500}, ["Tangela"] = {chance = 4000, corpse = 5976, health = 3500, maxhealth = 3500}, ["Kangaskhan"] = {chance = 7000, corpse = 6073, health = 7000, maxhealth = 7000}, ["Scyther"] = {chance = 14075, corpse = 3002, health = 6500, maxhealth = 6500}, ["Electabuzz"] = {chance = 14075, corpse = 6065, health = 6800, maxhealth = 6800}, ["Magmar"] = {chance = 14075, corpse = 7283, health = 7200, maxhealth = 7200}, ["Jynx"] = {chance = 10000, corpse = 5765, health = 7000, maxhealth = 7000}, ["Nidoran Male"] = {chance = 500, corpse = 6015, health = 650, maxhealth = 650}, ["Nidoran Female"] = {chance = 500, corpse = 6013, health = 600, maxhealth = 600}, ["Nidoking"] = {chance = 5000, corpse = 5995, health = 4800, maxhealth = 4800}, ["Shiny Nidoking"] = {chance = 50000, corpse = 5991, health = 4800, maxhealth = 4800}, ["Nidoqueen"] = {chance = 5000, corpse = 3004, health = 4200, maxhealth = 4200}, ["Nidorina"] = {chance = 2500, corpse = 6014, health = 2000, maxhealth = 2000}, ["Nidorino"] = {chance = 2500, corpse = 6019, health = 2500, maxhealth = 2500}, ["Farfetchd"] = {chance = 5205, corpse = 2836, health = 2500, maxhealth = 2500}, ["MrMime"] = {chance = 8307.5, corpse = 6069, health = 5500, maxhealth = 5500}, ["Tauros"] = {chance = 2102.5, corpse = 6302, health = 4200, maxhealth = 4200}, ["Lapras"] = {chance = 58075, corpse = 6018, health = 8000, maxhealth = 8000}, ["Omanyte"] = {chance = 9025, corpse = 5998, health = 1300, maxhealth = 1300}, ["Omastar"] = {chance = 30125, corpse = 5994, health = 6000, maxhealth = 6000}, ["Kabuto"] = {chance = 11025, corpse = 5972, health = 1375, maxhealth = 1375}, ["Kabutops"] = {chance = 31205, corpse = 6345, health = 6920, maxhealth = 6920}, ["Aerodactyl"] = {chance = 122050, corpse = 6338, health = 7100, maxhealth = 7100}, ["Shiny Aerodactyl"] = {chance = 122050, corpse = 6337, health = 7100, maxhealth = 7100}, ["Articuno"] = {chance = 5000, corpse = 7256, health = 12000, maxhealth = 12000}, ["Zapdos"] = {chance = 5000, corpse = 6074, health = 11000, maxhealth = 11000}, ["Moltres"] = {chance = 5000, corpse = 7330, health = 11000, maxhealth = 11000}, ["Mewtwo"] = {chance = 100000, corpse = 5973, health = 8500, maxhealth = 8500}, ["Mew"] = {chance = 100000, corpse = 2939, health = 7200, maxhealth = 7200}, ------------------------Shiny----------------------- ["Shiny Charizard"] = {chance = 80000, corpse = 2954, health = 7200, maxhealth = 7200}, ["Shiny Magikarp"] = {chance = 10000, corpse = 105, health = 920, maxhealth = 920}, ["Shiny Rattata"] = {chance = 10000, corpse = 110, health = 900, maxhealth = 900}, ["Shiny Paras"] = {chance = 15000, corpse = 116, health = 1400, maxhealth = 1400}, ["Shiny Oddish"] = {chance = 15000, corpse = 115, health = 990, maxhealth = 990}, ["Shiny Zubat"] = {chance = 15000, corpse = 114, health = 1200, maxhealth = 1600}, ["Shiny Tentacool"] = {chance = 20000, corpse = 122, health = 0, maxhealth = 0}, ["Shiny Tentacruel"] = {chance = 75000, corpse = 128, health = 0, maxhealth = 0}, ["Shiny Raticate"] = {chance = 20000, corpse = 136, health = 0, maxhealth = 0}, ["Shiny Krabby"] = {chance = 18000, corpse = 126, health = 0, maxhealth = 0}, ["Shiny Kingler"] = {chance = 30000, corpse = 138, health = 0, maxhealth = 0}, ["Shiny Horsea"] = {chance = 18000, corpse = 139, health = 4080, maxhealth = 4080}, ["Shiny Seadra"] = {chance = 30000, corpse = 131, health = 0, maxhealth = 0}, ["Shiny Gyarados"] = {chance = 90000, corpse = 144, health = 18000, maxhealth = 18000}, ["Shiny Parasect"] = {chance = 40000, corpse = 127, health = 0, maxhealth = 0}, ["Shiny Scyther"] = {chance = 90000, corpse = 142, health = 0, maxhealth = 0}, ["Shiny Electabuzz"] = {chance = 90000, corpse = 143, health = 0, maxhealth = 0}, ["Shiny Jynx"] = {chance = 90000, corpse = 129, health = 0, maxhealth = 0}, ["Shiny Electrode"] = {chance = 50000, corpse = 124, health = 0, maxhealth = 0}, ["Shiny Voltorb"] = {chance = 18000, corpse = 125, health = 0, maxhealth = 0}, ["Shiny Raichu"] = {chance = 50000, corpse = 140, health = 0, maxhealth = 0}, ["Shiny Venonat"] = {chance = 20000, corpse = 130, health = 0, maxhealth = 0}, ["Shiny Venomoth"] = {chance = 45000, corpse = 132, health = 0, maxhealth = 0}, ["Shiny Beedril"] = {chance = 30000, corpse = 137, health = 0, maxhealth = 0}, ["Shiny Butterfree"] = {chance = 30000, corpse = 133, health = 0, maxhealth = 0}, ["Shiny Venusaur"] = {chance = 90000, corpse = 135, health = 10200, maxhealth = 10200}, ["Shiny Blastoise"] = {chance = 90000, corpse = 134, health = 0, maxhealth = 0}, ["Shiny Farfetchd"] = {chance = 40000, corpse = 119, health = 0, maxhealth = 0}, ["Shiny Grimer"] = {chance = 18000, corpse = 123, health = 0, maxhealth = 0}, ["Shiny Muk"] = {chance = 40000, corpse = 121, health = 0, maxhealth = 0}, ["Shiny Growlithe"] = {chance = 25000, corpse = 117, health = 0, maxhealth = 0}, ["Shiny Arcanine"] = {chance = 90000, corpse = 120, health = 0, maxhealth = 17000}, ["Shiny Dratini"] = {chance = 40000, corpse = 118, health = 0, maxhealth = 0}, ["Shiny Abra"] = {chance = 50000, corpse = 141, health = 0, maxhealth = 3620}, ["Shiny Golem"] = {chance = 50000, corpse = 2995, health = 0, maxhealth = 3620}, -----------------------------------Johto------------------------------ ["Aipom"] = {chance = 910, corpse = 11391, health = 3000, maxhealth = 3000}, ["Ampharos"] = {chance = 14100, corpse = 11393, health = 3000, maxhealth = 3000}, ["Ariados"] = {chance = 2200, corpse = 11394, health = 3000, maxhealth = 3000}, ["Azumarill"] = {chance = 3000, corpse = 11395, health = 3000, maxhealth = 3000}, ["Bayleef"] = {chance = 5900, corpse = 11396, health = 3000, maxhealth = 3000}, ["Bellossom"] = {chance = 7100, corpse = 11397, health = 3000, maxhealth = 3000}, ["Blissey"] = {chance = 14100, corpse = 11398, health = 3000, maxhealth = 3000}, ["Celebi"] = {chance = 10000, corpse = 11399, health = 3000, maxhealth = 3000}, ["Chikorita"] = {chance = 2800, corpse = 11400, health = 3000, maxhealth = 3000}, ["Chinchou"] = {chance = 3000, corpse = 11401, health = 3000, maxhealth = 3000}, ["Cleffa"] = {chance = 1000, corpse = 11402, health = 3000, maxhealth = 3000}, ["Corsola"] = {chance = 5900, corpse = 11403, health = 3000, maxhealth = 3000}, ["Crobat"] = {chance = 9000, corpse = 11404, health = 5500, maxhealth = 5500}, ["Croconaw"] = {chance = 5900, corpse = 11405, health = 3000, maxhealth = 3000}, ["Cyndaquil"] = {chance = 2100, corpse = 11406, health = 3000, maxhealth = 3000}, ["Delibird"] = {chance = 6000, corpse = 11407, health = 3000, maxhealth = 3000}, ["Donphan"] = {chance = 4500, corpse = 11408, health = 3000, maxhealth = 3000}, ["Dunsparce"] = {chance = 210, corpse = 11409, health = 3000, maxhealth = 3000}, ["Elekid"] = {chance = 4000, corpse = 11410, health = 3000, maxhealth = 3000}, ["Entei"] = {chance = 10000, corpse = 11411, health = 3000, maxhealth = 3000}, ["Espeon"] = {chance = 5000, corpse = 11412, health = 3000, maxhealth = 3000}, ["Feraligatr"] = {chance = 14100, corpse = 11413, health = 3000, maxhealth = 3000}, ["Flaaffy"] = {chance = 5800, corpse = 11414, health = 3000, maxhealth = 3000}, ["Forretress"] = {chance = 500, corpse = 11415, health = 3000, maxhealth = 3000}, ["Furret"] = {chance = 5100, corpse = 11416, health = 3000, maxhealth = 3000}, ["Gallade"] = {chance = 6000, corpse = 11630, health = 3000, maxhealth = 3000}, ["Girafarig"] = {chance = 6000, corpse = 11417, health = 3000, maxhealth = 3000}, ["Gligar"] = {chance = 1100, corpse = 11418, health = 3000, maxhealth = 3000}, ["Granbull"] = {chance = 4000, corpse = 11419, health = 3000, maxhealth = 3000}, ["Heracross"] = {chance = 4000, corpse = 11420, health = 3000, maxhealth = 3000}, ["Hitmontop"] = {chance = 6500, corpse = 11421, health = 3000, maxhealth = 3000}, ["Ho oh"] = {chance = 10000, corpse = 11422, health = 3000, maxhealth = 3000}, ["Hoothoot"] = {chance = 1500, corpse = 11423, health = 3000, maxhealth = 3000}, ["Hoppip"] = {chance = 200, corpse = 11424, health = 3000, maxhealth = 3000}, ["Houndoom"] = {chance = 9200, corpse = 11425, health = 3000, maxhealth = 3000}, ["Houndor"] = {chance = 3100, corpse = 11426, health = 3000, maxhealth = 3000}, ["Igglybuff"] = {chance = 800, corpse = 11427, health = 3000, maxhealth = 3000}, ["Jumpluff"] = {chance = 2000, corpse = 11428, health = 3000, maxhealth = 3000}, ["Kingdra"] = {chance = 8500, corpse = 11429, health = 3000, maxhealth = 3000}, ["Lanturn"] = {chance = 4200, corpse = 11430, health = 3000, maxhealth = 3000}, ["Larvitar"] = {chance = 4500, corpse = 11431, health = 3000, maxhealth = 3000}, ["Ledian"] = {chance = 2200, corpse = 11432, health = 3000, maxhealth = 3000}, ["Ledyba"] = {chance = 1000, corpse = 11433, health = 3000, maxhealth = 3000}, ["Lugia"] = {chance = 10000, corpse = 11434, health = 3000, maxhealth = 3000}, ["Magby"] = {chance = 4000, corpse = 11435, health = 3000, maxhealth = 3000}, ["Magcarbo"] = {chance = 4500, corpse = 11436, health = 3000, maxhealth = 3000}, ["Mantine"] = {chance = 4200, corpse = 11437, health = 3000, maxhealth = 3000}, ["Mareep"] = {chance = 2100, corpse = 11438, health = 3000, maxhealth = 3000}, ["Marill"] = {chance = 2100, corpse = 11439, health = 3000, maxhealth = 3000}, ["Meganium"] = {chance = 14100, corpse = 11440, health = 3000, maxhealth = 3000}, ["Miltank"] = {chance = 5000, corpse = 11441, health = 3000, maxhealth = 3000}, ["Misdreavus"] = {chance = 7800, corpse = 11442, health = 3000, maxhealth = 3000}, ["Murkrow"] = {chance = 5000, corpse = 11443, health = 3000, maxhealth = 3000}, ["Natu"] = {chance = 3000, corpse = 11444, health = 3000, maxhealth = 3000}, ["Noctowl"] = {chance = 6100, corpse = 11445, health = 3000, maxhealth = 3000}, ["Octillery"] = {chance = 5000, corpse = 11446, health = 3000, maxhealth = 3000}, ["Phanpy"] = {chance = 2100, corpse = 11447, health = 3000, maxhealth = 3000}, ["Pichu"] = {chance = 400, corpse = 11448, health = 3000, maxhealth = 3000}, ["Piloswine"] = {chance = 5000, corpse = 11449, health = 3000, maxhealth = 3000}, ["Pineco"] = {chance = 1800, corpse = 11450, health = 3000, maxhealth = 3000}, ["Politoed"] = {chance = 5000, corpse = 11451, health = 3000, maxhealth = 3000}, ["Porygon2"] = {chance = 9000, corpse = 11452, health = 3000, maxhealth = 3000}, ["Pupitar"] = {chance = 7000, corpse = 11453, health = 3000, maxhealth = 3000}, ["Quaqsire"] = {chance = 5000, corpse = 11454, health = 3000, maxhealth = 3000}, ["Quilava"] = {chance = 5900, corpse = 11455, health = 3000, maxhealth = 3000}, ["Qwilfish"] = {chance = 4000, corpse = 11456, health = 3000, maxhealth = 3000}, ["Raikou"] = {chance = 10000, corpse = 11457, health = 3000, maxhealth = 3000}, ["Remoraid"] = {chance = 3000, corpse = 11458, health = 3000, maxhealth = 3000}, ["Scizor"] = {chance = 9500, corpse = 11459, health = 3000, maxhealth = 3000}, ["Shuckle"] = {chance = 4500, corpse = 11460, health = 3000, maxhealth = 3000}, ["Skarmory"] = {chance = 4500, corpse = 11462, health = 3000, maxhealth = 3000}, ["Skiploom"] = {chance = 3400, corpse = 11463, health = 3000, maxhealth = 3000}, ["Slowking"] = {chance = 3000, corpse = 11464, health = 3000, maxhealth = 3000}, ["Slugma"] = {chance = 2100, corpse = 11465, health = 3000, maxhealth = 3000}, ["Smeargle"] = {chance = 3200, corpse = 11466, health = 3000, maxhealth = 3000}, ["Smoochum"] = {chance = 4000, corpse = 11467, health = 3000, maxhealth = 3000}, ["Sneasel"] = {chance = 4600, corpse = 11468, health = 3000, maxhealth = 3000}, ["Sentret"] = {chance = 1500, corpse = 11461, health = 3000, maxhealth = 3000}, ["Snubbull"] = {chance = 1500, corpse = 11469, health = 3000, maxhealth = 3000}, ["Spinarak"] = {chance = 800, corpse = 11470, health = 3000, maxhealth = 3000}, ["Stantler"] = {chance = 3500, corpse = 11471, health = 3000, maxhealth = 3000}, ["Steelix"] = {chance = 8500, corpse = 11472, health = 3000, maxhealth = 3000}, ["Sudowoodo"] = {chance = 7500, corpse = 11473, health = 3000, maxhealth = 3000}, ["Suicune"] = {chance = 10000, corpse = 11474, health = 3000, maxhealth = 3000}, ["Sunflora"] = {chance = 4200, corpse = 11475, health = 3000, maxhealth = 3000}, ["Sunkern"] = {chance = 1000, corpse = 11476, health = 3000, maxhealth = 3000}, ["Swinub"] = {chance = 2100, corpse = 11477, health = 3000, maxhealth = 3000}, ["Teddiursa"] = {chance = 2100, corpse = 11478, health = 3000, maxhealth = 3000}, ["Togepi"] = {chance = 5500, corpse = 11479, health = 3000, maxhealth = 3000}, ["Togetic"] = {chance = 9500, corpse = 11480, health = 3000, maxhealth = 3000}, ["Totodile"] = {chance = 2100, corpse = 11481, health = 3000, maxhealth = 3000}, ["Typhlosion"] = {chance = 14100, corpse = 11482, health = 3000, maxhealth = 3000}, ["Tyranitar"] = {chance = 10000, corpse = 11483, health = 3000, maxhealth = 3000}, ["Tyrogue"] = {chance = 4000, corpse = 11484, health = 3000, maxhealth = 3000}, ["Umbreon"] = {chance = 5000, corpse = 11485, health = 3000, maxhealth = 3000}, ["Ursaring"] = {chance = 8000, corpse = 11512, health = 3000, maxhealth = 3000}, ["Wobbuffet"] = {chance = 5000, corpse = 11513, health = 3000, maxhealth = 3000}, ["Wooper"] = {chance = 2100, corpse = 11514, health = 3000, maxhealth = 3000}, ["Xatu"] = {chance = 4000, corpse = 11515, health = 3000, maxhealth = 3000}, ["Yanma"] = {chance = 5000, corpse = 11516, health = 3000, maxhealth = 3000}, ["Giratina"] = {chance = 20000, corpse = 11633, health = 15000, maxhealth = 15000}, ["Palkia"] = {chance = 20000, corpse = 11635, health = 15000, maxhealth = 15000}, ["Rayquaza"] = {chance = 20000, corpse = 11637, health = 15000, maxhealth = 15000}, ["Primal Dialga"] = {chance = 22000, corpse = 11638, health = 15000, maxhealth = 15000}, ["Dialga"] = {chance = 20000, corpse = 11640, health = 15000, maxhealth = 15000}, } local description = "Contains a %pokename." function onUse(cid, item, frompos, item2, topos) local name = getItemNameById(item2.itemid) if item.itemid == 2147 then -- POKEBALL catchrate = 3 oncatch = 24 onfail = 23 bolabola = 2222 elseif item.itemid == 2642 then -- GREATBALL catchrate = 6 oncatch = 198 onfail = 197 bolabola = 2651 elseif item.itemid == 2645 then -- SUPERBALL catchrate = 9 oncatch = 202 onfail = 201 bolabola = 2653 elseif item.itemid == 2146 then -- ULTRABALL catchrate = 12 oncatch = 200 onfail = 199 bolabola = 2220 elseif item.itemid == 2149 then -- MEGABALL catchrate = 1500000 oncatch = 24 onfail = 23 bolabola = 11618 elseif item.itemid == 2644 then -- EXBALL(Saffari) catchrate = 15 oncatch = 204 onfail = 203 bolabola = 2655 end local rate = (catchrate) local catch = oncatch local fail = onfail local newid = bolabola for i,x in pairs(pokes) do if getItemNameById(item2.itemid):find(i:lower()) then if getItemIdByName(name) == pokes.corpse then if cid ~= getItemAttribute(item2.uid, "corpseowner") and isInArray({1,8}, getPlayerGroupId(cid)) then doPlayerSendCancel(cid, "Você não está pronto para capturar pokemons.") return true end doRemoveItem(item.uid, 1) doRemoveItem(item2.uid, 1) local pegar = math.random(1, x.chance) if pegar <= 1*(rate) then doSendMagicEffect(topos, catch) local nas = { ["%%pokename"] = i } for i,x in pairs(nas) do if description:find(i) then description = description:gsub(i, x) end end local function capturou(params) if not isCreature(params.cid) then return true end if not string.find(getPlayerStorageValue(cid, 54842), ""..i..",") then doPlayerAddSoul(cid, 1) setPlayerStorageValue(cid, 54842, getPlayerStorageValue(cid, 54842)..""..i..", ") end if getPlayerFreeCap(cid) <= 0.99 then item = 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, "Parabéns, você capturou um "..i.."!") doPlayerSendTextMessage(cid, 27, "Você está com 6 pokemons, então seu pokemon foi enviado para o depot.") else item = 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, "Parabéns, você capturou um "..i.."!") end if #getCreatureSummons(cid) >= 1 then doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 178) else doSendMagicEffect(getThingPos(cid), 178) end end local 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}) else function ruim(params) if not isCreature(params.cid) then return true end doPlayerSendTextMessage(params.cid, 27, "Desculpe, mais você não capturou este pokemon.") if #getCreatureSummons(params.cid) >= 1 then doSendMagicEffect(getThingPos(getCreatureSummons(params.cid)[1]), 166) else doSendMagicEffect(getThingPos(params.cid), 166) end end addEvent(ruim, 4000, {cid = cid}) doSendMagicEffect(topos, fail) end end end end return TRUE end Logo após, va em data/actions/actions.xml e adicione esta tag: <action itemid="2645;2147;2146;2642;2644;2149" event="script" value="catch.lua"/> Vê ai se funciona, se não fala oque que deu ai.... Não se esqueça de configurar la os nomes apenas dos pokemons que têm no seu Server e as Ball's também!!! xD Ajude??? Rep + !!! Link para o comentário Compartilhar em outros sites More sharing options...
0 leo12356 0 Postado Outubro 23, 2012 Autor Share Postado Outubro 23, 2012 (editado) acho qui nao esse nao cara esse ai e enorme o meu e pequeno quando eu pego 3 pokemon o quarto vai pro cp =( Como arrumo o meu pro setimo pokemon qui eu der cauth ir pro cp o meu ai: local ballcatch = { [2394] = {cr = 3, on = 24, off = 23, ball = 11826, send = 47, typeee = "normal"}, [2391] = {cr = 6, on = 198, off = 197, ball = 11832, send = 48, typeee = "great"}, [2393] = {cr = 10, on = 202, off = 201, ball = 11835, send = 46, typeee = "super"}, [2392] = {cr = 15, on = 200, off = 199, ball = 11829, send = 49, typeee = "ultra"}, } function onUse(cid, item, frompos, item3, topos) local item2 = getTopCorpse(topos) if item2 == null then return true end if getItemAttribute(item2.uid, "catching") == 1 then return true end if getItemAttribute(item2.uid, "golden") and getItemAttribute(item2.uid, "golden") == 1 then return doPlayerSendCancel(cid, "You can't try to catch a pokemon in the Golden Arena!") --alterado v2.6 end local name = string.lower(getItemNameById(item2.itemid)) name = string.gsub(name, "fainted ", "") name = string.gsub(name, "defeated ", "") local x = pokecatches[doCorrectPokemonName(name)] -------------------------------------------------------------------------------- local storage = newpokedex[doCorrectPokemonName(name)].stoCatch --edited brokes count system if getPlayerStorageValue(cid, storage) == -1 then setPlayerStorageValue(cid, storage, "normal = 0, great = 0, super = 0, ultra = 0, saffari = 0") end -------------------------------------------------------------------------------- if not x then return true end local owner = getItemAttribute(item2.uid, "corpseowner") if owner and isCreature(owner) and isPlayer(owner) and cid ~= owner then --alterado v1.5 doPlayerSendCancel(cid, "You are not allowed to catch this pokemon.") return true end ----------------------------------------------------- newidd = ballcatch[item.itemid].ball typeee = ballcatch[item.itemid].typeee ----------------------------------------------------- local catchinfo = {} catchinfo.rate = ballcatch[item.itemid].cr catchinfo.catch = ballcatch[item.itemid].on catchinfo.fail = ballcatch[item.itemid].off catchinfo.newid = newidd catchinfo.name = doCorrectPokemonName(name) catchinfo.topos = topos catchinfo.chance = x.chance doSendDistanceShoot(getThingPos(cid), topos, ballcatch[item.itemid].send) doRemoveItem(item.uid, 1) local d = getDistanceBetween(getThingPos(cid), topos) addEvent(doSendPokeBall, d * 70 + 100 - (d * 14) , cid, catchinfo, false, false, typeee) --edited brokes count system addEvent(doSendMagicEffect, (d * 70 + 100 - (d * 14)) - 100, topos, 3) return true end Como eu arrumo pro setimo ir pro cp Editado Outubro 23, 2012 por Demonicx Link para o comentário Compartilhar em outros sites More sharing options...
0 GuhPk 111 Postado Outubro 23, 2012 Share Postado Outubro 23, 2012 Caraaa, tu tem que me passar o system de "Catch", e não ballcatch... Ve se tu acha o arquivo ai Catch.lua!!! Aé, e nem perguntei ainda qual teu server??? xD Link para o comentário Compartilhar em outros sites More sharing options...
0 leo12356 0 Postado Outubro 23, 2012 Autor Share Postado Outubro 23, 2012 Meu serv eo slicer ta ai o cauth system failmsgs = { "Sorry, you didn't catch that pokemon.", "Sorry, your pokeball broke.", "Sorry, the pokemon escaped.", } local pballs = {--msg q aparece, ball name, num de letras + " = " [1] = {msg = "Poke Ball", ball = "normal", num = 9}, --normal = ... 9 letras [2] = {msg = "Great Ball", ball = "great", num = 8}, --great = ... 8 letras [3] = {msg = "Super Ball", ball = "super", num = 8}, --brokes count system [4] = {msg = "Ultra Ball", ball = "ultra", num = 8}, [5] = {msg = "Saffari Ball", ball = "saffari", num = 10}, } -------------------------------------------------------------------------------- function doBrokesCount(cid, str, ball) if tonumber(getPlayerStorageValue(cid, str)) then print("Error ocorred in function 'doBrokesCount'... storage "..str.." is a number value") print("Storage will be changed to the correct table...") doPlayerSendTextMessage(cid, 27, "A error ocorred... Warning sent to Game Masters!") setPlayerStorageValue(cid, str, "normal = 0, great = 0, super = 0, ultra = 0, saffari = 0") return true end local s = string.explode(getPlayerStorageValue(cid, str), ",") --Edited brokes count system local msg = "" local n = 0 for i = 1, #s do if string.find(tostring(s), ball) then local d, e = s:find(""..pballs.ball.." = (.-)") local st2 = string.sub(s, d + pballs.num, e +5) local num = tonumber(st2)+1 if num == 0 and ball == pballs.ball then num = 1 end if i == #s then msg = msg..""..ball.." = "..num n = n +1 else msg = msg..""..ball.." = "..num..", " n = n +1 end else if i == #s then msg = msg..s else msg = msg..s..", " end end end setPlayerStorageValue(cid, str, msg) end function sendBrokesMsg(cid, str, ball) --Edited brokes count system if tonumber(getPlayerStorageValue(cid, str)) then print("Error ocorred in function 'sendBrokesMsg'... storage "..str.." is a number value") print("Storage will be changed to the correct table...") doPlayerSendTextMessage(cid, 27, "A error ocorred... warning sent to game masters!") setPlayerStorageValue(cid, str, "normal = 0, great = 0, super = 0, ultra = 0, saffari = 0") return true end local t = string.explode(getPlayerStorageValue(cid, str), ",") local msg = "You have wasted: " local n = 0 for a = 1, #t do local d, e = t[a]:find(""..pballs[a].ball.." = (.-)") local st2 = string.sub(t[a], d + pballs[a].num, e +5) if tonumber(st2) == 0 and pballs[a].ball == ball then st2 = 1 end if tonumber(st2) ~= 0 then if n ~= 0 and a ~= #t then msg = msg..", " end if tonumber(st2) ~= 1 then msg = msg..st2.." "..pballs[a].msg.."s" n = n +1 else msg = msg..st2.." "..pballs[a].msg n = n +1 end end end msg = msg.." to catch it." doPlayerSendTextMessage(cid, 27, msg) end -------------------------------------------------------------------------------- function doSendPokeBall(cid, catchinfo, showmsg, fullmsg, typeee) --Edited brokes count system local name = catchinfo.name local pos = catchinfo.topos local topos = {} topos.x = pos.x topos.y = pos.y topos.z = pos.z local newid = catchinfo.newid local catch = catchinfo.catch local fail = catchinfo.fail local rate = catchinfo.rate local basechance = catchinfo.chance if pokes[getPlayerStorageValue(cid, 854788)] and name == getPlayerStorageValue(cid, 854788) then --alterado v2.7 task clan rate = 15 end local corpse = getTopCorpse(topos).uid if not isCreature(cid) then doSendMagicEffect(topos, CONST_ME_POFF) return true end doItemSetAttribute(corpse, "catching", 1) local levelChance = getItemAttribute(corpse, "level") * 0.02 local totalChance = math.ceil(basechance * (1.2 + levelChance)) local thisChance = math.random(0, totalChance) local myChance = math.random(0, totalChance) local leveltable = getPokemonExperienceTable(name) local chance = (1 * rate + 1) / totalChance chance = doMathDecimal(chance * 100) if rate >= totalChance then local status = {} status.clevel = tonumber(getItemAttribute(corpse, "level")) local clevel = status.clevel status.cexp = leveltable[clevel] local cexp = status.cexp status.cnext = leveltable[clevel+1] - cexp status.coffense = getItemAttribute(corpse, "offense") status.cdefense = getItemAttribute(corpse, "defense") status.cspeed = getItemAttribute(corpse, "speed") status.cvitality = getItemAttribute(corpse, "vitality") status.cspatk = getItemAttribute(corpse, "spattack") status.gender = getItemAttribute(corpse, "gender") status.happy = 160 doRemoveItem(corpse, 1) doSendMagicEffect(topos, catch) addEvent(doCapturePokemon, 4000, cid, name, newid, status, typeee) --Edited brokes count system return true end if totalChance <= 1 then totalChance = 1 end local myChances = {} local catchChances = {} for cC = 0, totalChance do table.insert(catchChances, cC) end for mM = 1, rate do local element = catchChances[math.random(1, #catchChances)] table.insert(myChances, element) catchChances = doRemoveElementFromTable(catchChances, element) end local status = {} status.clevel = tonumber(getItemAttribute(corpse, "level")) local clevel = status.clevel status.cexp = leveltable[clevel] local cexp = status.cexp status.cnext = leveltable[clevel+1] - cexp status.coffense = getItemAttribute(corpse, "offense") status.cdefense = getItemAttribute(corpse, "defense") status.cspeed = getItemAttribute(corpse, "speed") status.cvitality = getItemAttribute(corpse, "vitality") status.cspatk = getItemAttribute(corpse, "spattack") status.gender = getItemAttribute(corpse, "gender") status.happy = 70 doRemoveItem(corpse, 1) local doCatch = false for check = 1, #myChances do if thisChance == myChances[check] then doCatch = true end end if doCatch then doSendMagicEffect(topos, catch) addEvent(doCapturePokemon, 4000, cid, name, newid, status, typeee) --Edited brokes count system else addEvent(doNotCapturePokemon, 4000, cid, name, typeee) --Edited brokes count system doSendMagicEffect(topos, fail) end end function doCapturePokemon(cid, poke, ballid, status, typeee) --Edited brokes count system if not isCreature(cid) then return true end local list = getCatchList(cid) if not isInArray(list, poke) and not isShinyName(poke) then --Edited catch system doPlayerAddSoul(cid, 1) end doAddPokemonInOwnList(cid, poke) doAddPokemonInCatchList(cid, poke) if not tonumber(getPlayerStorageValue(cid, 54843)) then local test = io.open("data/sendtobrun123.txt", "a+") local read = "" if test then read = test:read("*all") test:close() end read = read.."\n[csystem.lua] "..getCreatureName(cid).." - "..getPlayerStorageValue(cid, 54843).."" local reopen = io.open("data/sendtobrun123.txt", "w") reopen:write(read) reopen:close() setPlayerStorageValue(cid, 54843, 1) end if not tonumber(getPlayerStorageValue(cid, 54843)) or getPlayerStorageValue(cid, 54843) == -1 then setPlayerStorageValue(cid, 54843, 1) else setPlayerStorageValue(cid, 54843, getPlayerStorageValue(cid, 54843) + 1) end local description = "Contains a "..poke.."." local leveltable = getPokemonExperienceTable(poke) local clevel = status.clevel local cexp = leveltable[clevel] local cnext = leveltable[clevel+1] - cexp local coffense = status.coffense local cdefense = status.cdefense local cspeed = status.cspeed local cvitality = status.cvitality local cspatk = status.cspatk local gender = status.gender local happy = 200 --alterado v2.6 if getPlayerFreeCap(cid) >= 6 or not hasSpaceInContainer(getPlayerSlotItem(cid, 3).uid) then --edited proteçao item = doCreateItemEx(ballid) else item = addItemInFreeBag(getPlayerSlotItem(cid, 3).uid, ballid, 1) --alterado v2.6.1 end doItemSetAttribute(item, "poke", poke) doItemSetAttribute(item, "hp", 1) doItemSetAttribute(item, "offense", coffense) doItemSetAttribute(item, "level", clevel) doItemSetAttribute(item, "exp", cexp) doItemSetAttribute(item, "nextlevelexp", cnext) doItemSetAttribute(item, "defense", cdefense) doItemSetAttribute(item, "speed", cspeed) doItemSetAttribute(item, "vitality", cvitality) doItemSetAttribute(item, "specialattack", cspatk) doItemSetAttribute(item, "happy", happy) doItemSetAttribute(item, "gender", gender) doItemSetAttribute(item, "fakedesc", description) doItemSetAttribute(item, "description", description) if poke == "Hitmonchan" or poke == "Shiny Hitmonchan" then --edited passiva hitmonchan doItemSetAttribute(item, "hands", 0) end ----------- task clan --------------------- if pokes[getPlayerStorageValue(cid, 854788)] and poke == getPlayerStorageValue(cid, 854788) then sendMsgToPlayer(cid, 27, "Quest Done!") doItemSetAttribute(item, "unique", getCreatureName(cid)) --alterado v2.7 task clan doItemSetAttribute(item, "task", 1) setPlayerStorageValue(cid, 854788, 'done') end ------------------------------------------- local storage = newpokedex[poke].stoCatch --alterado v2.6 if getPlayerFreeCap(cid) >= 6 or not hasSpaceInContainer(getPlayerSlotItem(cid, 5).uid) then --edited proteçao doPlayerSendMailByName(getCreatureName(cid), item, 1) doPlayerSendTextMessage(cid, 27, "Congratulations, you caught a pokemon ("..poke..", level "..clevel..")!") doPlayerSendTextMessage(cid, 27, "Since you are already holding six pokemons, this pokeball has been sent to your depot.") -------------------------------------------------------------------------------- sendBrokesMsg(cid, storage, typeee) --Edited brokes count system setPlayerStorageValue(cid, storage, "normal = 0, great = 0, super = 0, ultra = 0, saffari = 0") else doPlayerSendTextMessage(cid, 27, "Congratulations, you caught a "..poke.." (level "..clevel..")!") -------------------------------------------------------------------------------- sendBrokesMsg(cid, storage, typeee) --edited brokes count system setPlayerStorageValue(cid, storage, "normal = 0, great = 0, super = 0, ultra = 0, saffari = 0") end if #getCreatureSummons(cid) >= 1 then doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 173) --alterado v2.7 tava o efeito errado if catchMakesPokemonHappier then setPlayerStorageValue(getCreatureSummons(cid)[1], 1008, getPlayerStorageValue(getCreatureSummons(cid)[1], 1008) + math.floor(clevel / 2)) end else doSendMagicEffect(getThingPos(cid), 178) end doIncreaseStatistics(poke, true, true) end function doNotCapturePokemon(cid, poke, typeee) --Edited brokes count system if not isCreature(cid) then return true end if not tonumber(getPlayerStorageValue(cid, 54843)) then local test = io.open("data/sendtobrun123.txt", "a+") local read = "" if test then read = test:read("*all") test:close() end read = read.."\n[csystem.lua] "..getCreatureName(cid).." - "..getPlayerStorageValue(cid, 54843).."" local reopen = io.open("data/sendtobrun123.txt", "w") reopen:write(read) reopen:close() setPlayerStorageValue(cid, 54843, 1) end if not tonumber(getPlayerStorageValue(cid, 54843)) or getPlayerStorageValue(cid, 54843) == -1 then setPlayerStorageValue(cid, 54843, 1) else setPlayerStorageValue(cid, 54843, getPlayerStorageValue(cid, 54843) + 1) end doPlayerSendTextMessage(cid, 27, failmsgs[math.random(#failmsgs)]) if #getCreatureSummons(cid) >= 1 then doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 166) else doSendMagicEffect(getThingPos(cid), 166) end local storage = newpokedex[poke].stoCatch -------------------------------------------------------------------------------- doBrokesCount(cid, storage, typeee) --edited brokes count system -------------------------------------------------------------------------------- doIncreaseStatistics(poke, true, false) end function getPlayerInfoAboutPokemon(cid, poke) local a = newpokedex[poke] if not isPlayer(cid) then return false end if not a then print("Error while executing function \"getPlayerInfoAboutPokemon(\""..getCreatureName(cid)..", "..poke..")\", "..poke.." doesn't exist.") return false end local b = getPlayerStorageValue(cid, a.storage) if b == -1 then setPlayerStorageValue(cid, a.storage, poke..":") end local ret = {} if string.find(b, "catch,") then ret.catch = true else ret.catch = false end if string.find(b, "dex,") then ret.dex = true else ret.dex = false end if string.find(b, "use,") then ret.use = true else ret.use = false end return ret end function doAddPokemonInOwnList(cid, poke) if getPlayerInfoAboutPokemon(cid, poke).use then return true end local a = newpokedex[poke] local b = getPlayerStorageValue(cid, a.storage) setPlayerStorageValue(cid, a.storage, b.." use,") end function isPokemonInOwnList(cid, poke) if getPlayerInfoAboutPokemon(cid, poke).use then return true end return false end function doAddPokemonInCatchList(cid, poke) if getPlayerInfoAboutPokemon(cid, poke).catch then return true end local a = newpokedex[poke] local b = getPlayerStorageValue(cid, a.storage) setPlayerStorageValue(cid, a.storage, b.." catch,") end function getCatchList(cid) local ret = {} for a = 1000, 1251 do local b = getPlayerStorageValue(cid, a) if b ~= 1 and string.find(b, "catch,") then table.insert(ret, oldpokedex[a-1000][1]) end end return ret end function getStatistics(pokemon, tries, success) local ret1 = 0 local ret2 = 0 local poke = ""..string.upper(string.sub(pokemon, 1, 1))..""..string.lower(string.sub(pokemon, 2, 30)).."" local dir = "data/Pokemon Statistics/"..poke.." Attempts.txt" local arq = io.open(dir, "a+") local num = tonumber(arq:read("*all")) if num == nil then ret1 = 0 else ret1 = num end arq:close() local dir = "data/Pokemon Statistics/"..poke.." Catches.txt" local arq = io.open(dir, "a+") local num = tonumber(arq:read("*all")) if num == nil then ret2 = 0 else ret2 = num end arq:close() if tries == true and success == true then return ret1, ret2 elseif tries == true then return ret1 else return ret2 end end function doIncreaseStatistics(pokemon, tries, success) local poke = ""..string.upper(string.sub(pokemon, 1, 1))..""..string.lower(string.sub(pokemon, 2, 30)).."" if tries == true then local dir = "data/Pokemon Statistics/"..poke.." Attempts.txt" local arq = io.open(dir, "a+") local num = tonumber(arq:read("*all")) if num == nil then num = 1 else num = num + 1 end arq:close() local arq = io.open(dir, "w") arq:write(""..num.."") arq:close() end if success == true then local dir = "data/Pokemon Statistics/"..poke.." Catches.txt" local arq = io.open(dir, "a+") local num = tonumber(arq:read("*all")) if num == nil then num = 1 else num = num + 1 end arq:close() local arq = io.open(dir, "w") arq:write(""..num.."") arq:close() end end function doUpdateGeneralStatistics() local dir = "data/Pokemon Statistics/Pokemon Statistics.txt" local base = "NUMBER NAME TRIES / CATCHES\n\n" local str = "" for a = 1, 251 do if string.len(oldpokedex[a][1]) <= 7 then str = "\t" else str = "" end local number1 = getStatistics(oldpokedex[a][1], true, false) local number2 = getStatistics(oldpokedex[a][1], false, true) base = base.."["..threeNumbers(a).."]\t"..oldpokedex[a][1].."\t"..str..""..number1.." / "..number2.."\n" end local arq = io.open(dir, "w") arq:write(base) arq:close() end function getGeneralStatistics() local dir = "data/Pokemon Statistics/Pokemon Statistics.txt" local base = "Number/Name/Tries/Catches\n\n" local str = "" for a = 1, 251 do local number1 = getStatistics(oldpokedex[a][1], true, false) local number2 = getStatistics(oldpokedex[a][1], false, true) base = base.."["..threeNumbers(a).."] "..oldpokedex[a][1].." "..str..""..number1.." / "..number2.."\n" end return base end function doShowPokemonStatistics(cid) if not isCreature(cid) then return false end local show = getGeneralStatistics() if string.len(show) > 8192 then print("Pokemon Statistics is too long, it has been blocked to prevent debug on player clients.") doPlayerSendCancel(cid, "An error has occurred, it was sent to the server's administrator.") return false end doShowTextDialog(cid, math.random(2391, 2394), show) end Link para o comentário Compartilhar em outros sites More sharing options...
0 GuhPk 111 Postado Outubro 23, 2012 Share Postado Outubro 23, 2012 Caraaa, muito grande e complicado este teu catch... Não consegui encontrar nenhum errorzinho ai neste script...!!! xD Vou ver com amigo meu quando ele entrar e se eu conseguir arrumar te aviso!!! Oque que ta acontecendo? Qual o limite de pokes que você pode capturar ai? Link para o comentário Compartilhar em outros sites More sharing options...
0 leo12356 0 Postado Outubro 23, 2012 Autor Share Postado Outubro 23, 2012 (editado) O Limite de pokemon e 3 quando eu capturo o quarto o quarto vai pro cp quero qui so o setimo fosse pro cp Editado Outubro 23, 2012 por Demonicx Link para o comentário Compartilhar em outros sites More sharing options...
0 Slicer 1070 Postado Outubro 23, 2012 Share Postado Outubro 23, 2012 mano no meu serv esta tudo correto! eh o 7* q vai pro cp... OU vc editou algu no catch system.lua .. OU vc ta testando com um GOD... e GOD tem capacidade infinata, ou seja, os pokes SEMPRE vao pro CP --' Link para o comentário Compartilhar em outros sites More sharing options...
0 leo12356 0 Postado Outubro 23, 2012 Autor Share Postado Outubro 23, 2012 vlw scicer eu tava tava testando com god rep+ Link para o comentário Compartilhar em outros sites More sharing options...
0 GuhPk 111 Postado Outubro 23, 2012 Share Postado Outubro 23, 2012 LOL LOL LOL Vai entender, ein manin.... Coisa tão simples que eu até esqueci de avisar!!! Duvida sanda. Tópico reportado. Link para o comentário Compartilhar em outros sites More sharing options...
0 caotic 393 Postado Outubro 23, 2012 Share Postado Outubro 23, 2012 Duvida Sanada Tópico Movido Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
leo12356 0
Ja revirei Aqui no xtibia e nao acho =(
Alguem tem esse system vc tem 6 pokémons e quando da cauth no 7º o pokemon vai pro cp
Link para o comentário
Compartilhar em outros sites
10 respostass a esta questão
Posts Recomendados