[08/03/2016 05:10:11] attempt to index a nil value
[08/03/2016 05:10:11] stack traceback:
[08/03/2016 05:10:11] [C]: in function 'doSendDistanceShoot'
[08/03/2016 05:10:11] data/actions/scripts/catch.lua:462: in function <data/actions/scripts/catch.lua:323>
Meu script tá funcionando quase perfeitamente, quase não, ele tá funcionando perfeitamente só que tem um único problema é que não está soltando o efeito de distancia... e ta dando esse erro na distro. Eu tenho que adicionar algo na distro? uso tfs 0.3.6.
script...
local pokes = {
["Flareon"] = {chance = 500, corpse = 6059, health = 5300, maxhealth = 5300},
["Crystal Onix"] = {chance = 500, corpse = 6320, health = 5300, maxhealth = 5300},
["Porygon"] = {chance = 200, corpse = 5963, health = 14000, maxhealth = 4000},
["Ditto"] = {chance = 200, corpse = 2817, health = 14000, maxhealth = 4000},
["Magikarp"] = {chance = 10, corpse = 2818, health = 120, maxhealth = 120},
["Eevee"] = {chance = 200, corpse = 6364, health = 1500, maxhealth = 1500},
["Abra"] = {chance = 500, corpse = 2905, health = 620, maxhealth = 620},
["Kadabra"] = {chance = 500, corpse = 6060, health = 2500, maxhealth = 2500},
["Alakazam"] = {chance = 500, corpse = 6057, health = 4000, maxhealth = 4000},
["Rattata"] = {chance = 10, corpse = 5974, health = 350, maxhealth = 350},
["Raticate"] = {chance = 500, corpse = 6007, health = 900, maxhealth = 900},
["Pidgey"] = {chance = 50, corpse = 5961, health = 380, maxhealth = 380},
["Pidgeotto"] = {chance = 500, corpse = 5966, health = 1400, maxhealth = 1400},
["Pidgeot"] = {chance = 500, corpse = 6020, health = 3800, maxhealth = 3800},
["Zubat"] = {chance = 75, corpse = 5989, health = 450, maxhealth = 450},
["Golbat"] = {chance = 500, corpse = 6053, health = 1900, maxhealth = 1900},
["Bellsprout"] = {chance = 82.5, corpse = 2806, health = 420, maxhealth = 420},
["Weepinbell"] = {chance = 500, corpse = 2928, health = 1100, maxhealth = 1100},
["Victreebel"] = {chance = 500, corpse = 6332, health = 4000, maxhealth = 4000},
["Poliwag"] = {chance = 73.75, corpse = 6042, health = 400, maxhealth = 400},
["Poliwhirl"] = {chance = 500, corpse = 6054, health = 1200, maxhealth = 1200},
["Poliwrath"] = {chance = 500, corpse = 6033, health = 4400, maxhealth = 4400},
["Oddish"] = {chance = 90, corpse = 3008, health = 340, maxhealth = 340},
["Gloom"] = {chance = 500, corpse = 6017, health = 1400, maxhealth = 1400},
["Vileplume"] = {chance = 500, corpse = 6025, health = 3300, maxhealth = 3300},
["Horsea"] = {chance = 105, corpse = 2973, health = 300, maxhealth = 300},
["Seadra"] = {chance = 500, corpse = 2872, health = 2500, maxhealth = 2500},
["Grimer"] = {chance = 605, corpse = 6055, health = 600, maxhealth = 600},
["Weedle"] = {chance = 20, corpse = 5964, health = 325, maxhealth = 325},
["Kakuna"] = {chance = 201.25, corpse = 6000, health = 900, maxhealth = 900},
["Beedrill"] = {chance = 500, corpse = 5990, health = 1900, maxhealth = 1900},
["Muk"] = {chance = 500, corpse = 2845, health = 2400, maxhealth = 2400},
["Doduo"] = {chance = 701.25, corpse = 2842, health = 600, maxhealth = 600},
["Dodrio"] = {chance = 500, corpse = 6047, health = 2650, maxhealth = 2650},
["Magnemite"] = {chance = 605, corpse = 6056, health = 450, maxhealth = 450},
["Magneton"] = {chance = 1000, corpse = 6076, health = 1750, maxhealth = 1750},
["Voltorb"] = {chance = 406.25, corpse = 6049, health = 620, maxhealth = 620},
["Electrode"] = {chance = 500, corpse = 6051, health = 2000, maxhealth = 2000},
["Geodude"] = {chance = 302.5, corpse = 6071, health = 700, maxhealth = 700},
["Graveler"] = {chance = 1000, corpse = 6516, health = 3000, maxhealth = 3000},
["Golem"] = {chance = 500, corpse = 6043, health = 6500, maxhealth = 6500},
["Sandshrew"] = {chance = 906.25, corpse = 5988, health = 700, maxhealth = 700},
["Sandslash"] = {chance = 500, corpse = 6041, health = 3400, maxhealth = 3400},
["Charmander"] = {chance = 500, corpse = 5983, health = 970, maxhealth = 970},
["Charmeleon"] = {chance = 500, corpse = 5981, health = 2900, maxhealth = 2900},
["Charizard"] = {chance = 9687.5, corpse = 6005, health = 5200, maxhealth = 5200},
["Vulpix"] = {chance = 950, corpse = 6003, health = 680, maxhealth = 680},
["Ninetales"] = {chance = 500, corpse = 6040, health = 2650, maxhealth = 2650},
["Bulbasaur"] = {chance = 1, corpse = 5969, health = 3000, maxhealth = 3000},
["Ivysaur"] = {chance = 500, corpse = 5982, health = 2600, maxhealth = 2600},
["Venusaur"] = {chance = 500, corpse = 5962, health = 5200, maxhealth = 5200},
["Squirtle"] = {chance = 500, corpse = 6008, health = 1350, maxhealth = 1350},
["Wartortle"] = {chance = 500.5, corpse = 5978, health = 2800, maxhealth = 2800},
["Blastoise"] = {chance = 500, corpse = 5999, health = 5900, maxhealth = 5900},
["Growlithe"] = {chance = 500, corpse = 6036, health = 500, maxhealth = 500},
["Arcanine"] = {chance = 500, corpse = 6031, health = 6800, maxhealth = 6800},
["Psyduck"] = {chance = 925, corpse = 6029, health = 950, maxhealth = 950},
["Golduck"] = {chance = 500, corpse = 6028, health = 4000, maxhealth = 4000},
["Pikachu"] = {chance = 500, corpse = 6001, health = 900, maxhealth = 900},
["Raichu"] = {chance = 500, corpse = 5996, health = 3500, maxhealth = 3500},
["Ekans"] = {chance = 406,25, corpse = 5979, health = 600, maxhealth = 600},
["Arbok"] = {chance = 500, corpse = 5984, health = 2900, maxhealth = 2900},
["Cubone"] = {chance = 925, corpse = 6050, health = 1200, maxhealth = 1200},
["Marowak"] = {chance = 500, corpse = 6072, health = 3900, maxhealth = 3900},
["Caterpie"] = {chance = 20, corpse = 5971, health = 300, maxhealth = 300},
["Metapod"] = {chance = 201.25, corpse = 5970, health = 1100, maxhealth = 1100},
["Butterfree"] = {chance = 500, corpse = 5985, health = 2000, maxhealth = 2000},
["Goldeen"] = {chance = 72.5, corpse = 2970, health = 950, maxhealth = 950},
["Seaking"] = {chance = 500, corpse = 3038, health = 2000, maxhealth = 2000},
["Spearow"] = {chance = 88.75, corpse = 5968, health = 200, maxhealth = 200},
["Fearow"] = {chance = 1, corpse = 5992, health = 3300, maxhealth = 3300},
["Drowzee"] = {chance = 937.5, corpse = 6026, health = 1150, maxhealth = 1150},
["Hypno"] = {chance = 500, 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 = 86.875, corpse = 6039, health = 850, maxhealth = 850},
["Kingler"] = {chance = 500, corpse = 6340, health = 3250, maxhealth = 3250},
["Paras"] = {chance = 40.25, corpse = 3007, health = 850, maxhealth = 850},
["Parasect"] = {chance = 500, corpse = 6027, health = 3800, maxhealth = 3800},
["Dratini"] = {chance = 500, corpse = 2879, health = 520, maxhealth = 520},
["Dragonair"] = {chance = 500, corpse = 6002, health = 3000, maxhealth = 3000},
["Dragonite"] = {chance = 500, corpse = 4295, health = 17000, maxhealth = 17000},
["Ponyta"] = {chance = 906.25, corpse = 5975, health = 1400, maxhealth = 1400},
["Rapidash"] = {chance = 4602.5, corpse = 4323, health = 5500, maxhealth = 5500},
["Pinsir"] = {chance = 4000, corpse = 7282, health = 55, maxhealth = 55},
["Seel"] = {chance = 1500, corpse = 6030, health = 500, maxhealth = 1000},
["Dewgong"] = {chance = 900, corpse = 6038, health = 5200, maxhealth = 5200},
["Exeggcute"] = {chance = 300, corpse = 2982, health = 800, maxhealth = 800},
["Exeggutor"] = {chance = 7075, corpse = 3005, health = 450, maxhealth = 4000},
["Koffing"] = {chance = 502.5, corpse = 2936, health = 900, maxhealth = 900},
["Weezing"] = {chance = 1605, corpse = 6306, health = 2800, maxhealth = 2800},
["Staryu"] = {chance = 405, corpse = 5987, health = 1050, maxhealth = 1050},
["Starmie"] = {chance = 3000, corpse = 7320, health = 3800, maxhealth = 3800},
["Rhyhorn"] = {chance = 1007.5, 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},
["Gyarados"] = {chance = 500, corpse = 6331, health = 7800, maxhealth = 7800},
["Machop"] = {chance = 906.25, corpse = 6045, health = 1100, maxhealth = 1100},
["Machoke"] = {chance = 500, corpse = 4251, health = 2850, maxhealth = 3500},
["Machamp"] = {chance = 500, corpse = 6048, health = 6100, maxhealth = 7500},
["Clefairy"] = {chance = 1075, corpse = 2968, health = 600, maxhealth = 600},
["Clefable"] = {chance = 500, corpse = 6006, health = 2400, maxhealth = 2400},
["Jigglypuff"] = {chance = 987.5, corpse = 6011, health = 550, maxhealth = 550},
["Wigglytuff"] = {chance = 500, 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 = 950, maxhealth = 950},
["Persian"] = {chance = 500, 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 = 500, corpse = 6037, health = 7050, maxhealth = 7050},
["Slowpoke"] = {chance = 906.25, corpse = 2926, health = 1200, maxhealth = 1200},
["Slowbro"] = {chance = 500, corpse = 5986, health = 4600, maxhealth = 4600},
["Cloyster"] = {chance = 500, corpse = 2932, health = 120, maxhealth = 5000},
["Gastly"] = {chance = 500, 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 = 500, corpse = 2990, health = 5300, maxhealth = 5300},
["Hitmonlee"] = {chance = 500, corpse = 6067, health = 9250, maxhealth = 9250},
["Hitmonchan"] = {chance = 500, corpse = 5977, health = 10500, maxhealth = 10500},
["Lickitung"] = {chance = 500, corpse = 2953, health = 4800, maxhealth = 4800},
["Chansey"] = {chance = 500, corpse = 6010, health = 7500, maxhealth = 7500},
["Tangela"] = {chance = 500, corpse = 5976, health = 3500, maxhealth = 3500},
["Kangaskhan"] = {chance = 500, corpse = 6073, health = 7000, maxhealth = 7000},
["Scyther"] = {chance = 500, corpse = 3002, health = 6500, maxhealth = 6500},
["Electabuzz"] = {chance = 500, corpse = 6065, health = 6800, maxhealth = 6800},
["Magmar"] = {chance = 500, corpse = 7283, health = 7200, maxhealth = 7200},
["Jynx"] = {chance = 5000, 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 = 1000, corpse = 5995, health = 4800, maxhealth = 4800},
["Nidoqueen"] = {chance = 1000, 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 = 1000, corpse = 6069, health = 5500, maxhealth = 5500},
["Tauros"] = {chance = 500, corpse = 6302, health = 4200, maxhealth = 4200},
["Lapras"] = {chance = 500, corpse = 6018, health = 8000, maxhealth = 8000},
["Omanyte"] = {chance = 9025, corpse = 5998, health = 1300, maxhealth = 1300},
["Omastar"] = {chance = 500, corpse = 5994, health = 6000, maxhealth = 6000},
["Kabuto"] = {chance = 500, corpse = 5972, health = 1375, maxhealth = 1375},
["Kabutops"] = {chance = 500, corpse = 6345, health = 6920, maxhealth = 6920},
["Aerodactyl"] = {chance = 500, corpse = 6338, health = 7100, maxhealth = 7100},
["Articuno"] = {chance = 500, corpse = 7256, health = 12000, maxhealth = 12000},
["Zapdos"] = {chance = 1000, corpse = 6074, health = 11000, maxhealth = 11000},
["Moltres"] = {chance = 5000, corpse = 7330, health = 11000, maxhealth = 11000},
["Mewtwo"] = {chance = 10000, corpse = 5973, health = 8500, maxhealth = 8500},
["Mew"] = {chance = 10000, corpse = 2939, health = 7200, maxhealth = 7200},
Pergunta
KarlKalvin 111
Meu script tá funcionando quase perfeitamente, quase não, ele tá funcionando perfeitamente só que tem um único problema é que não está soltando o efeito de distancia... e ta dando esse erro na distro. Eu tenho que adicionar algo na distro? uso tfs 0.3.6.
script...
Link para o comentário
Compartilhar em outros sites
4 respostass a esta questão
Posts Recomendados