Ir para conteúdo
  • Cadastre-se

[AJUDA]Arrumar Catch System!


Posts Recomendados

ANTES DE ALGUEM SAIR SEM LER, È DE DIGIMON MAS O CATCH E DO POKEMON,TO USANDO O MESMO!

 

Pessoal, o meu catch ele captura mas buga, a ball tinha que vir com "Nome do Digimon,Level,HP,SP Attack e tal", porem ela so vem com o nome do digimon e minusculo ainda, eu gostaria de saber se alguem pode arrumar para mim, segue scrips.

 

Script:

local chance = {
['leafmon'] = 60,
['agumon'] = 60,
['abra'] = 60,      
['kadabra'] = 30, 
['alakazam'] = 5, 
['gastly'] = 60,      
['haunter'] = 30, 
['gengar'] = 5,
['aipom'] = 50,      
['ambipom'] = 5,      
['machop'] = 70,   
['machoke'] = 35, 
['machamp'] = 6,
['bellsprout'] = 100,  
['weepinbell'] = 60,  
['victreebel'] = 10,  
['tentacool'] = 70,   
['tentacruel'] = 5,  
['geodude'] = 80,   
['graveler'] = 36,  
['golem'] = 7,   
['ponyta'] = 60,    
['rapidash'] = 10,  
['slowpoke'] = 80,
['slowbro'] = 20,   
['magnemite'] = 70,  
['magneton'] = 15,  
['magnezone'] = 5,  
['farfetchd'] = 40,
['doduo']  = 90,   
['dodrio'] = 20,  
['seel'] = 65,     
['dewgong'] = 5, 
['grimer'] = 90, 
['muk'] = 10,     
['shellder'] = 65,  
['cloyster'] = 5,  
['elekid'] = 50,   
['magby'] = 50,   
['tyrogue'] = 50,   
['pichu'] = 50,   
['onix'] = 15, 
['drowzee'] = 65,
['hypno'] = 5,   
['krabby'] = 100,
['kingler'] = 20,
['corphish'] = 90,
['crawdaunt'] = 15,
['voltorb'] = 80,
['electrode'] = 15,
['exeggcute'] = 60,
['exeggutor'] = 6,
['cubone'] = 80,
['marowak'] = 5,
['hitmonlee'] = 2, 
['hitmonchan'] = 2,
['lickitung'] = 30,  
['koffing'] = 90,
['weezing'] = 15,
['rhyhorn'] = 50,
['rhydon'] = 5,
['chansey'] = 3,
['tangela'] = 50,
['kangaskhan'] = 25,  
['horsea'] = 99,
['seadra'] = 15,
['kingdra'] = 2,
['togepi'] = 60,
['togetic'] = 10,
['shuppet'] = 40,
['banette'] = 3,
['duskull'] = 40,
['dusclops'] = 3,
['goldeen'] = 99,
['seaking'] = 18,
['buizel'] = 18,
['staryu'] = 50, 
['starmie'] = 5,
['mime jr'] = 45,
['mr.mime'] = 4,
['scyther'] = 2, 
['smoochum'] = 45,
['jynx'] = 3, 
['electabuzz'] = 3, 
['magmar'] = 2, 
['pinsir'] = 40,
['tauros'] = 35,
['magikarp'] = 999,
['gyarados'] = 4,
['lapras'] = 10,
['ditto'] = 1,
['eevee'] = 18,
['vaporeon'] = 2,
['flareon'] = 2,
['jolteon'] = 2,
['porygon'] = 2,
['omanyte'] = 20,
['omastar'] = 2,
['kabuto'] = 20,
['kabutops'] = 2,
['aerodactyl'] = 2,
['snorlax'] = 5,
['articuno'] = 1,
['zapdos'] = 1,
['moltres'] = 1, 
['dratini'] = 25,
['dragonair'] = 5,
['dragonite'] = 1,
['celebi'] = 1,      
['lugia'] = 1,     
['mew'] = 1,       
['mewtwo'] = 1,
['beedrill'] = 20,
['bulbasaur'] = 40,
['ivysaur'] = 6,
['venusaur'] = 2,
['charmander'] = 40,
['charmeleon'] = 6,
['charizard'] = 2,
['squirtle'] = 40,
['wartortle'] = 6,
['blastoise'] = 2, 
['caterpie'] = 999, 
['metapod'] = 75,
['butterfree'] = 20,
['weedle'] = 999, 
['kakuna'] = 75, 
['pidgey'] = 90,  
['pidgeotto'] = 30,
['pidgeot'] = 7,  
['rattata'] = 300, 
['raticate'] = 60,
['spearow'] = 80,
['fearow'] = 10,
['ekans'] = 60,
['arbok'] = 10,
['pikachu'] = 70,
['raichu'] = 5, 
['sandshrew'] = 80,
['sandslash'] = 7,
['nidoran F'] = 80,
['nidorina'] = 10,
['nidoqueen'] = 2,
['nidoran M'] = 80,
['nidorino'] = 10,
['nidoking'] = 2,
['clefairy'] = 38,
['clefable'] = 4,
['vulpix'] = 60,
['ninetales'] = 5,   
['jigglypuff'] = 39,
['wigglytuff'] = 5,
['zubat'] = 99,
['golbat'] = 30,
['crobat'] = 3,
['oddish'] = 120, 
['gloom'] = 40,
['vileplume'] = 5,
['paras'] = 90,   
['parasect'] = 15,
['venonat'] = 70,
['venomoth'] = 9,
['diglett'] = 80,
['dugtrio'] = 15,
['meowth'] = 80,
['persian'] = 35,
['psyduck'] = 60,
['golduck'] = 3,  
['mankey'] = 65,
['primeape'] = 9,
['growlithe'] = 50,
['arcanine'] = 2,  
['poliwag'] = 85, 
['poliwhirl'] = 10,
['politoed'] = 3,
['poliwrath'] = 3,
['riolu'] = 30,
['lucario'] = 2,
['elder charizard'] = 1,
['crystal onix'] = 1,
['red gyarados'] = 1,
['shiny horsea'] = 1,
['shiny abra'] = 1, 
['shiny seadra'] = 1,
['shiny krabby'] = 1,
['shiny kingler'] = 1,
['shiny tentacruel'] = 1,
['shiny paras'] = 1,
['shiny parasect'] = 1,
['shiny raticate'] = 1,
['shiny muk'] = 1,
['shiny growlithe'] = 1,
['shiny arcanine'] = 1,
['shiny butterfree'] = 1,
['shiny electrode'] = 1,
['shiny raichu'] = 1,
['shiny venomoth'] = 1,
['ivysaur2'] = 1,
['charmeleon2'] = 1,
['wartortle2'] = 1,
['pidgeotto2'] = 1,
['spearow2'] = 1,
['nidorina2'] = 1,
['nidorino2'] = 1,
['vulpix2'] = 1,
['paras2'] = 1,
['psyduck2'] = 1,
['growlithe2'] = 1,
['poliwhirl2'] = 1,
['kadabra2'] = 1,
['machoke2'] = 1,
['weepinbell2'] = 1,
['tentacool2'] = 1,
['riolu2'] = 1,
['scyther2'] = 1,
['graveler2'] = 1,
['shellder2'] = 1,
['haunter2'] = 1,
['drowzee2'] = 1,
['exeggcute2'] = 1,
['seadra2'] = 1,
['togepi2'] = 1,
['rhyhorn2'] = 1,
['magikarp2'] = 1,
['omanyte2'] = 1,
['kabuto2'] = 1,
['smoochum2'] = 1,
['mime jr2'] = 1,
['dragonair2'] = 1,
['shiny krabby2'] = 1,
['shiny tentacool2'] = 1,
['shiny horsea2'] = 1,
['botamon'] = 1,
['chicomon'] = 1,
['conomon'] = 1,
['dodomon'] = 1,
['jyarimon'] = 1,
['ketomon'] = 1,
['kuramon'] = 1,
['metal koromon'] = 1,
['mokumon'] = 1,
['nyokimon'] = 1,
['paomon'] = 1,
['pitchmon'] = 1,
['popomon'] = 1,
['poyomon'] = 1,
['punimon'] = 1,
['puttimon'] = 1,
['relemon'] = 1,
['yukimibotamon'] = 1,
['yuramon'] = 1,
['zerimon'] = 1,
['zurumon'] = 1,
['babydmon'] = 1,
['black nyaromon'] = 1,
['budmon'] = 1,
['bukamon'] = 1,
['chibi kiwimon'] = 1,
['chibimon'] = 1,
['chicchimon'] = 1,
['chocomon'] = 1,
['demi meramon'] = 1,
['dorimon'] =  1,
['frimon'] = 1,
['gigimon'] = 1,
['gummymon'] =  1,
['hopmon'] = 1,
['kapurimon'] = 1,
['koromon'] = 1,
['minomon'] = 1,
['mochimon'] = 1,
['moonmon'] =  1,
['nyaromon'] = 1,
['pabumon'] = 1,
['pagumon'] =  1,
['pokomon'] = 1,
['sunmon'] = 1,
['tanemon'] = 1,
['tokomon'] = 1,
['tsunomon'] =  1,
['tsumemon'] = 1,
['wanyamon'] = 1,
['xiaomon'] = 1,
['yaamon'] = 1,
['yokomon'] = 1,
['agumon hakase'] = 1,
['aruraumon'] = 1,
['betamon'] =  1,
['black agumon'] = 1,
['black biyomon'] =  1,
['black gabumon'] = 1,
['black salamon'] = 1,
['candlemon'] = 1,
['chuumon'] = 1,
['coronamon'] = 1,
['crabmon'] = 1,
['demi devimon'] = 1,
['dokunemon'] = 1,
['dorumon'] = 1,
['dracmon'] = 1,
['dracomon'] = 1,
['elecmon vi'] = 1,
['elecmon'] = 1,
['floramon'] = 1,
['gabumon'] = 1,
['ganimon'] =  1,
['gaomon'] = 1,
['gazimon'] = 1,
['gizamon'] = 1,
['goburimon'] = 1,
['gomamon'] = 1,
['gotsumon'] = 1,
['hagurumon'] = 1,
['impmon'] = 1,
['keramon'] = 1,
['kunemon'] = 1,
['labramon'] = 1,
['liollmon'] = 1,
['lopmon'] = 1,
['muchomon'] = 1,
['mushroomon'] = 1,
['nise agumon hakase'] = 1,
['otamamon red'] = 1,
['otamamon'] = 1,
['palmon'] = 1,
['patamon'] = 1,
['penguinmon'] = 1,
['piyomon'] = 1,
['salamon'] =  1,
['shadowToyAgumon'] = 1,
['shamanmon'] = 1,
['snow agumon'] = 1,
['snow goburimon'] = 1,
['solarmon'] = 1,
['syakomon'] = 1,
['tentomon'] = 1,
['terriermon'] = 1,
['toy agumon'] = 1,
['tsukaimon'] = 1,
['wormmon'] = 1,
['angemon'] = 1,
['bakemon'] = 1,
['birdramon'] = 1,
['black greymon'] = 1,
['black garurumon'] = 1,
['black tailmon'] = 1,
['bomber Nanimon'] = 1,
['coelamon'] = 1,
['dark lizarmon'] = 1,
['dobermon'] = 1,
['drimogemon'] = 1,
['flare lizarmon'] = 1,
['flymon'] = 1,
['frost lizarmon'] = 1,
['fugamon'] = 1,
['galgomon'] = 1,
['garurumon'] = 1,
['gekomon'] = 1,
['geremon'] = 1,
['greymon'] = 1,
['guardromon'] = 1,
['hyogamon'] = 1,
['ice drimogemon'] = 1,
['icemon'] = 1,
['ikkakumon'] = 1,
['jungle mojyamon'] = 1,
['kabuterimon'] = 1,
['karatsuki numemon'] = 1,
['kiwimon'] = 1,
['leomon'] = 1,
['meramon'] = 1,
['mojyamon'] = 1,
['nanimon'] = 1,
['ninjamon'] = 1,
['numemon'] = 1,
['octomon'] = 1,
['ogremon'] = 1,
['piddomon'] = 1,
['platinum sukamon'] = 1,
['red vegiemon'] = 1,
['reppamon'] = 1,
['saberdramon'] = 1,
['sandy yanmamon'] = 1,
['sorcermon'] = 1,
['soulmon'] = 1,
['sukamon'] = 1,
['tailmon'] = 1,
['thundermon'] = 1,
['togemon'] = 1,
['vegiemon'] = 1,
['vilemon'] = 1,
['weedmon'] = 1,
['wendigomon'] = 1,
['wizardmon'] = 1,
['woodmon'] = 1,
['yanmamon'] = 1,
['y-geremon'] = 1,
['flamedramon'] = 1,
['kogamon'] = 1,
['angewomon'] = 1,
['big mamemon'] = 1,
['blue meramon'] = 1,
['brachimon'] = 1,
['datamon'] = 1,
['deramon'] = 1,
['giromon'] = 1,
['ice leomon'] = 1,
['lady devimon'] = 1,
['mamemon'] = 1,
['metal mamemon'] = 1,
['meteormon'] = 1,
['piximon'] = 1,
['tekkamon'] = 1,
['black brachimon'] = 1,
['black jijimon'] = 1,
['babamon'] = 1,
['holydramon'] = 1,
['jijimon'] = 1,
['marine angemon'] = 1,
['prince mamemon'] = 1,
['andromon'] = 1,
['beelzebumon'] = 1,
['devimon'] = 1,
['frigomon'] = 1,
['garudamon'] = 1,
['hi andromon'] = 1,
['ice devimon'] = 1,
['lilimon'] = 1,
['magna angemon'] = 1,
['metal garurumon'] = 1,
['metal greymon'] = 1,
['ophanimon'] = 1,
['phantomon'] = 1,
['piedmon'] = 1,
['saber leomon'] = 1,
['war greymon'] = 1,
['were garurumon'] = 1,
['zudomon'] = 1,
['omnimon'] = 1,
}

local ID_POKEBALL = 2394
local ID_GREATBALL = 2391
local ID_SUPERBALL = 2393
local ID_ULTRABALL = 2392
local ID_MASTERBALL = 2554
local ID_CAPTUROU = 24
local ID_NAO_CAPTUROU = 23

local pokebolas = {
[2394] = {11829,"Pokeball"},
[2393] = {11829,"Superball"},
[2391] = {11829,"Greatball"},
[2392] = {11829,"Ultraball"},
[2521] = {2195,"Masterball"},
}

local btype = "ultra"

local level = {
['leafmon'] = 5,
['agumon'] = 35,
['abra'] = 5,      
['kadabra'] = 40, 
['alakazam'] = 80, 
['machop'] = 15,   
['machoke'] = 40, 
['machamp'] = 70,
['bellsprout'] = 5,  
['weepinbell'] = 20,  
['victreebel'] = 50,  
['tentacool'] = 15,   
['tentacruel'] = 70,  
['geodude'] = 5,   
['graveler'] = 35,  
['golem'] = 65,   
['ponyta'] = 10,    
['rapidash'] = 50,  
['slowpoke'] = 5,
['slowbro'] = 50,   
['magnemite'] = 10,  
['magneton'] = 40,  
['farfetchd'] = 25,
['duduo']  = 15,   
['dodrio'] = 45,  
['seel'] = 15,     
['dewgong'] = 65, 
['grimer'] = 10, 
['muk'] = 40,     
['shellder'] = 5,  
['cloyster'] = 60,  
['gastly'] = 90,   
['haunter'] = 50,  
['gengar'] = 10,  
['onix'] = 50, 
['drowzee'] = 18,  
['hypno'] = 55,    
['krabby'] = 5,   
['klinger'] = 35,  
['voltorb'] = 5,    
['electrode'] = 40, 
['exeggcute'] = 8,  
['exeggutor'] = 45,   
['cubone'] = 15,    
['marowak'] = 52,  
['hitmonlee'] = 70,   
['hitmonchan'] = 65,  
['lickitung'] = 40,  
['koffing'] = 10,  
['weezing'] = 38,  
['rhyhorn'] = 20, 
['rhydon'] = 68,   
['chansey'] = 50,
['tangela'] = 30,   
['kangaskhan'] = 70,  
['horsea'] = 5, 
['seadra'] = 36, 
['goldeen'] = 5,  
['seaking'] = 32,
['staryu'] = 15,   
['starmie'] = 40,  
['mr.Mime'] = 60, 
['scyther'] = 80, 
['jynx'] = 70, 
['electabuzz'] = 72,  
['magmar'] = 72,  
['pinsir'] = 10,  
['tauros'] = 25,  
['magikarp'] = 1,   
['gyarados'] = 70,
['lapras'] = 40,
['ditto'] = 100,  
['eevee'] = 15,     
['vaporeon'] = 50,  
['flareon'] = 50,   
['jolteon'] = 50,   
['porygon'] = 40,  
['omanyte'] = 20,  
['omastar'] = 10,  
['kabuto'] = 20,    
['kabutops'] = 10,  
['snorlax'] = 35,  
['articuno'] = 150, 
['zapdos'] = 150, 
['moltres'] = 150,  
['dratini'] = 10,    
['dragonair'] = 50,
['dragonite'] = 80,  
['mew'] = 350,       
['mewtwo'] = 200,
['beedrill'] = 25,
['bulbasaur'] = 5, 
['ivysaur'] = 35,   
['venusaur'] = 75,
['charmander'] = 5, 
['charmeleon'] = 35, 
['charizard'] = 75,  
['squirtle'] = 5,   
['wartortle'] = 35,  
['blastoise'] = 75, 
['caterpie'] = 1,    
['metapod'] = 5,    
['butterfree'] = 25,  
['weedle'] = 1,    
['kakuna'] = 5,     
['pidgey'] = 5,     
['pidgeotto'] = 20,  
['pidgeot'] = 65,    
['rattata'] = 1,    
['raticate'] = 20,  
['spearow'] = 5,  
['fearow'] = 45, 
['ekans'] = 10,  
['arbok'] = 32,  
['pikachu'] = 18,  
['raichu'] = 42,   
['sandshrew'] = 13,  
['sandslash'] = 58,  
['nidoranFE'] = 10,  
['nidorina'] = 30,   
['nidoqueen'] = 60,  
['nidoranMA'] = 10,  
['nidorino'] = 30,   
['nidoking'] = 60,   
['clefairy'] = 40,  
['clefable'] = 10,
['vulpix'] = 10,      
['ninetales'] = 60,   
['jigglypuff'] = 5,
['wigglytuff'] = 40,  
['zubat'] = 6,   
['golbat'] = 28,  
['oddish'] = 5,    
['gloom'] = 25,     
['vileplume'] = 50,  
['paras'] = 5,      
['parasect'] = 50,  
['venonat'] = 13,   
['venomoth'] = 40,  
['diglett'] = 5,  
['dugtrio'] = 40,  
['meowth'] = 5,   
['persian'] = 30,  
['psyduck'] = 18, 
['golduck'] = 55,  
['mankey'] = 10,   
['primeape'] = 50, 
['growlithe'] = 18,  
['arcanine'] = 80,  
['poliwag'] = 5,    
['poliwhirl'] = 25,
['poliwrath'] = 60,
['botamon'] = 1,
['chicomon'] = 1,
['conomon'] = 1,
['dodomon'] = 1,
['jyarimon'] = 1,
['ketomon'] = 1,
['kuramon'] = 1,
['metal koromon'] = 1,
['mokumon'] = 1,
['nyokimon'] = 1,
['paomon'] = 1,
['pitchmon'] = 1,
['popomon'] = 1,
['poyomon'] = 1,
['punimon'] = 1,
['puttimon'] = 1,
['relemon'] = 1,
['yukimibotamon'] = 1,
['yuramon'] = 1,
['zerimon'] = 1,
['zurumon'] = 1,
['babydmon'] = 1,
['black nyaromon'] = 1,
['budmon'] = 1,
['bukamon'] = 1,
['chibi kiwimon'] = 1,
['chibimon'] = 1,
['chicchimon'] = 1,
['chocomon'] = 1,
['demi meramon'] = 1,
['dorimon'] =  1,
['frimon'] = 1,
['gigimon'] = 1,
['gummymon'] =  1,
['hopmon'] = 1,
['kapurimon'] = 1,
['koromon'] = 1,
['minomon'] = 1,
['mochimon'] = 1,
['moonmon'] =  1,
['nyaromon'] = 1,
['pabumon'] = 1,
['pagumon'] =  1,
['pokomon'] = 1,
['sunmon'] = 1,
['tanemon'] = 1,
['tokomon'] = 1,
['tsunomon'] =  1,
['tsumemon'] = 1,
['wanyamon'] = 1,
['xiaomon'] = 1,
['yaamon'] = 1,
['yokomon'] = 1,
['agumon hakase'] = 1,
['aruraumon'] = 1,
['betamon'] =  1,
['black agumon'] = 1,
['black biyomon'] =  1,
['black gabumon'] = 1,
['black salamon'] = 1,
['candlemon'] = 1,
['chuumon'] = 1,
['coronamon'] = 1,
['crabmon'] = 1,
['demi devimon'] = 1,
['dokunemon'] = 1,
['dorumon'] = 1,
['dracmon'] = 1,
['dracomon'] = 1,
['elecmon vi'] = 1,
['elecmon'] = 1,
['floramon'] = 1,
['gabumon'] = 1,
['ganimon'] =  1,
['gaomon'] = 1,
['gazimon'] = 1,
['gizamon'] = 1,
['goburimon'] = 1,
['gomamon'] = 1,
['gotsumon'] = 1,
['hagurumon'] = 1,
['impmon'] = 1,
['keramon'] = 1,
['kunemon'] = 1,
['labramon'] = 1,
['liollmon'] = 1,
['lopmon'] = 1,
['muchomon'] = 1,
['mushroomon'] = 1,
['nise agumon hakase'] = 1,
['otamamon red'] = 1,
['otamamon'] = 1,
['palmon'] = 1,
['patamon'] = 1,
['penguinmon'] = 1,
['piyomon'] = 1,
['salamon'] =  1,
['shadowToyAgumon'] = 1,
['shamanmon'] = 1,
['snow agumon'] = 1,
['snow goburimon'] = 1,
['solarmon'] = 1,
['syakomon'] = 1,
['tentomon'] = 1,
['terriermon'] = 1,
['toy agumon'] = 1,
['tsukaimon'] = 1,
['wormmon'] = 1,
['angemon'] = 1,
['bakemon'] = 1,
['birdramon'] = 1,
['black garurumon'] = 1,
['black greymon'] = 1,
['black tailmon'] = 1,
['bomber nanimon'] = 1,
['coelamon'] = 1,
['dark lizarmon'] = 1,
['dobermon'] = 1,
['drimogemon'] = 1,
['flare lizarmon'] = 1,
['flymon'] = 1,
['frost lizarmon'] = 1,
['fugamon'] = 1,
['galgomon'] = 1,
['garurumon'] = 1,
['gekomon'] = 1,
['geremon'] = 1,
['greymon'] = 1,
['guardromon'] = 1,
['hyogamon'] = 1,
['ice drimogemon'] = 1,
['icemon'] = 1,
['ikkakumon'] = 1,
['jungle mojyamon'] = 1,
['kabuterimon'] = 1,
['karatsuki numemon'] = 1,
['kiwimon'] = 1,
['leomon'] = 1,
['meramon'] = 1,
['mojyamon'] = 1,
['nanimon'] = 1,
['ninjamon'] = 1,
['numemon'] = 1,
['octomon'] = 1,
['ogremon'] = 1,
['piddomon'] = 1,
['platinum sukamon'] = 1,
['red vegiemon'] = 1,
['reppamon'] = 1,
['saberdramon'] = 1,
['sandy yanmamon'] = 1,
['sorcermon'] = 1,
['soulmon'] = 1,
['sukamon'] = 1,
['tailmon'] = 1,
['thundermon'] = 1,
['togemon'] = 1,
['vegiemon'] = 1,
['vilemon'] = 1,
['weedmon'] = 1,
['wendigomon'] = 1,
['wizardmon'] = 1,
['woodmon'] = 1,
['yanmamon'] = 1,
['y-Geremon'] = 1,
['flamedramon'] = 1,
['kogamon'] = 1,
['angewomon'] = 1,
['big mamemon'] = 1,
['blue meramon'] = 1,
['brachimon'] = 1,
['datamon'] = 1,
['deramon'] = 1,
['giromon'] = 1,
['ice leomon'] = 1,
['lady devimon'] = 1,
['mamemon'] = 1,
['metal mamemon'] = 1,
['meteormon'] = 1,
['piximon'] = 1,
['tekkamon'] = 1,
['black brachimon'] = 1,
['black jijimon'] = 1,
['babamon'] = 1,
['holydramon'] = 1,
['jijimon'] = 1,
['marine angemon'] = 1,
['prince mamemon'] = 1,
['andromon'] = 1,
['beelzebumon'] = 1,
['devimon'] = 1,
['frigomon'] = 1,
['garudamon'] = 1,
['hi andromon'] = 1,
['ice devimon'] = 1,
['lilimon'] = 1,
['magna angemon'] = 1,
['metal garurumon'] = 1,
['metal greymon'] = 1,
['ophanimon'] = 1,
['phantomon'] = 1,
['piedmon'] = 1,
['saber leomon'] = 1,
['war greymon'] = 1,
['were garurumon'] = 1,
['zudomon'] = 1,
['omnimon'] = 1,   
}

-- Vá adicionando mais acima, como está ali 
local function capturou(params)
doSendMagicEffect(getCreaturePosition(params.cid), 173)
doPlayerSendTextMessage(params.cid, 25, 'Parabens você capturou um  ('..params.monster..').')
item = doCreateItemEx(params.ball)
doItemSetAttribute(item, "name", ""..params.monster.." "..params.ball2)
doItemSetAttribute(item, "level", params.level)
doItemSetAttribute(item, "aid", params.hp)
doPlayerAddItemEx(params.cid, item, true)
end

local function naocapturou(params)

end

function onUse(cid, item, fromPosition, itemEx, toPosition)


local monster = getItemName(itemEx.uid):match("fainted (.*)")
 if item.itemid == ID_POKEBALL then
 chances = (chance[monster]) * 10 
elseif item.itemid == ID_GREATBALL then
 chances = (chance[monster]) * 20
elseif item.itemid == ID_SUPERBALL then
 chances = (chance[monster]) * 30
elseif item.itemid == ID_ULTRABALL then
 chances = (chance[monster]) * 50
 elseif item.itemid == 2521 then
 chances = (chance[monster]) * 10000
 else
 chances = chance[monster]
 end


if not chance[monster] then
return doPlayerSendTextMessage(cid, 23, 'Você não pode capturar este pokemon!')
end

if math.random(1,1000) <= chances then
if item.itemid == 2394 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2391 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2393 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2392 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2521 then
doSendMagicEffect(toPosition, 200)
end

doTransformItem(item, pokeballs[btype].on)

local hpmax =  0
local ball = pokebolas[item.itemid]
addEvent(capturou, 4000, {cid = cid, monster = monster, ball = ball[1], ball2 = ball[2], level = level[monster], hp = hpmax})
doRemoveItem(itemEx.uid, 1)
doRemoveItem(item.uid, 1)
   else
if item.itemid == 2394 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2391 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2393 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2392 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2521 then
doSendMagicEffect(toPosition, 200)
end
doRemoveItem(itemEx.uid, 1)
doRemoveItem(item.uid, 1)
   end
return TRUE
end

Link para o post
Compartilhar em outros sites

 

ANTES DE ALGUEM SAIR SEM LER, È DE DIGIMON MAS O CATCH E DO POKEMON,TO USANDO O MESMO!

 

Pessoal, o meu catch ele captura mas buga, a ball tinha que vir com "Nome do Digimon,Level,HP,SP Attack e tal", porem ela so vem com o nome do digimon e minusculo ainda, eu gostaria de saber se alguem pode arrumar para mim, segue scrips.

 

Script:

local chance = {
['leafmon'] = 60,
['agumon'] = 60,
['abra'] = 60,      
['kadabra'] = 30, 
['alakazam'] = 5, 
['gastly'] = 60,      
['haunter'] = 30, 
['gengar'] = 5,
['aipom'] = 50,      
['ambipom'] = 5,      
['machop'] = 70,   
['machoke'] = 35, 
['machamp'] = 6,
['bellsprout'] = 100,  
['weepinbell'] = 60,  
['victreebel'] = 10,  
['tentacool'] = 70,   
['tentacruel'] = 5,  
['geodude'] = 80,   
['graveler'] = 36,  
['golem'] = 7,   
['ponyta'] = 60,    
['rapidash'] = 10,  
['slowpoke'] = 80,
['slowbro'] = 20,   
['magnemite'] = 70,  
['magneton'] = 15,  
['magnezone'] = 5,  
['farfetchd'] = 40,
['doduo']  = 90,   
['dodrio'] = 20,  
['seel'] = 65,     
['dewgong'] = 5, 
['grimer'] = 90, 
['muk'] = 10,     
['shellder'] = 65,  
['cloyster'] = 5,  
['elekid'] = 50,   
['magby'] = 50,   
['tyrogue'] = 50,   
['pichu'] = 50,   
['onix'] = 15, 
['drowzee'] = 65,
['hypno'] = 5,   
['krabby'] = 100,
['kingler'] = 20,
['corphish'] = 90,
['crawdaunt'] = 15,
['voltorb'] = 80,
['electrode'] = 15,
['exeggcute'] = 60,
['exeggutor'] = 6,
['cubone'] = 80,
['marowak'] = 5,
['hitmonlee'] = 2, 
['hitmonchan'] = 2,
['lickitung'] = 30,  
['koffing'] = 90,
['weezing'] = 15,
['rhyhorn'] = 50,
['rhydon'] = 5,
['chansey'] = 3,
['tangela'] = 50,
['kangaskhan'] = 25,  
['horsea'] = 99,
['seadra'] = 15,
['kingdra'] = 2,
['togepi'] = 60,
['togetic'] = 10,
['shuppet'] = 40,
['banette'] = 3,
['duskull'] = 40,
['dusclops'] = 3,
['goldeen'] = 99,
['seaking'] = 18,
['buizel'] = 18,
['staryu'] = 50, 
['starmie'] = 5,
['mime jr'] = 45,
['mr.mime'] = 4,
['scyther'] = 2, 
['smoochum'] = 45,
['jynx'] = 3, 
['electabuzz'] = 3, 
['magmar'] = 2, 
['pinsir'] = 40,
['tauros'] = 35,
['magikarp'] = 999,
['gyarados'] = 4,
['lapras'] = 10,
['ditto'] = 1,
['eevee'] = 18,
['vaporeon'] = 2,
['flareon'] = 2,
['jolteon'] = 2,
['porygon'] = 2,
['omanyte'] = 20,
['omastar'] = 2,
['kabuto'] = 20,
['kabutops'] = 2,
['aerodactyl'] = 2,
['snorlax'] = 5,
['articuno'] = 1,
['zapdos'] = 1,
['moltres'] = 1, 
['dratini'] = 25,
['dragonair'] = 5,
['dragonite'] = 1,
['celebi'] = 1,      
['lugia'] = 1,     
['mew'] = 1,       
['mewtwo'] = 1,
['beedrill'] = 20,
['bulbasaur'] = 40,
['ivysaur'] = 6,
['venusaur'] = 2,
['charmander'] = 40,
['charmeleon'] = 6,
['charizard'] = 2,
['squirtle'] = 40,
['wartortle'] = 6,
['blastoise'] = 2, 
['caterpie'] = 999, 
['metapod'] = 75,
['butterfree'] = 20,
['weedle'] = 999, 
['kakuna'] = 75, 
['pidgey'] = 90,  
['pidgeotto'] = 30,
['pidgeot'] = 7,  
['rattata'] = 300, 
['raticate'] = 60,
['spearow'] = 80,
['fearow'] = 10,
['ekans'] = 60,
['arbok'] = 10,
['pikachu'] = 70,
['raichu'] = 5, 
['sandshrew'] = 80,
['sandslash'] = 7,
['nidoran F'] = 80,
['nidorina'] = 10,
['nidoqueen'] = 2,
['nidoran M'] = 80,
['nidorino'] = 10,
['nidoking'] = 2,
['clefairy'] = 38,
['clefable'] = 4,
['vulpix'] = 60,
['ninetales'] = 5,   
['jigglypuff'] = 39,
['wigglytuff'] = 5,
['zubat'] = 99,
['golbat'] = 30,
['crobat'] = 3,
['oddish'] = 120, 
['gloom'] = 40,
['vileplume'] = 5,
['paras'] = 90,   
['parasect'] = 15,
['venonat'] = 70,
['venomoth'] = 9,
['diglett'] = 80,
['dugtrio'] = 15,
['meowth'] = 80,
['persian'] = 35,
['psyduck'] = 60,
['golduck'] = 3,  
['mankey'] = 65,
['primeape'] = 9,
['growlithe'] = 50,
['arcanine'] = 2,  
['poliwag'] = 85, 
['poliwhirl'] = 10,
['politoed'] = 3,
['poliwrath'] = 3,
['riolu'] = 30,
['lucario'] = 2,
['elder charizard'] = 1,
['crystal onix'] = 1,
['red gyarados'] = 1,
['shiny horsea'] = 1,
['shiny abra'] = 1, 
['shiny seadra'] = 1,
['shiny krabby'] = 1,
['shiny kingler'] = 1,
['shiny tentacruel'] = 1,
['shiny paras'] = 1,
['shiny parasect'] = 1,
['shiny raticate'] = 1,
['shiny muk'] = 1,
['shiny growlithe'] = 1,
['shiny arcanine'] = 1,
['shiny butterfree'] = 1,
['shiny electrode'] = 1,
['shiny raichu'] = 1,
['shiny venomoth'] = 1,
['ivysaur2'] = 1,
['charmeleon2'] = 1,
['wartortle2'] = 1,
['pidgeotto2'] = 1,
['spearow2'] = 1,
['nidorina2'] = 1,
['nidorino2'] = 1,
['vulpix2'] = 1,
['paras2'] = 1,
['psyduck2'] = 1,
['growlithe2'] = 1,
['poliwhirl2'] = 1,
['kadabra2'] = 1,
['machoke2'] = 1,
['weepinbell2'] = 1,
['tentacool2'] = 1,
['riolu2'] = 1,
['scyther2'] = 1,
['graveler2'] = 1,
['shellder2'] = 1,
['haunter2'] = 1,
['drowzee2'] = 1,
['exeggcute2'] = 1,
['seadra2'] = 1,
['togepi2'] = 1,
['rhyhorn2'] = 1,
['magikarp2'] = 1,
['omanyte2'] = 1,
['kabuto2'] = 1,
['smoochum2'] = 1,
['mime jr2'] = 1,
['dragonair2'] = 1,
['shiny krabby2'] = 1,
['shiny tentacool2'] = 1,
['shiny horsea2'] = 1,
['botamon'] = 1,
['chicomon'] = 1,
['conomon'] = 1,
['dodomon'] = 1,
['jyarimon'] = 1,
['ketomon'] = 1,
['kuramon'] = 1,
['metal koromon'] = 1,
['mokumon'] = 1,
['nyokimon'] = 1,
['paomon'] = 1,
['pitchmon'] = 1,
['popomon'] = 1,
['poyomon'] = 1,
['punimon'] = 1,
['puttimon'] = 1,
['relemon'] = 1,
['yukimibotamon'] = 1,
['yuramon'] = 1,
['zerimon'] = 1,
['zurumon'] = 1,
['babydmon'] = 1,
['black nyaromon'] = 1,
['budmon'] = 1,
['bukamon'] = 1,
['chibi kiwimon'] = 1,
['chibimon'] = 1,
['chicchimon'] = 1,
['chocomon'] = 1,
['demi meramon'] = 1,
['dorimon'] =  1,
['frimon'] = 1,
['gigimon'] = 1,
['gummymon'] =  1,
['hopmon'] = 1,
['kapurimon'] = 1,
['koromon'] = 1,
['minomon'] = 1,
['mochimon'] = 1,
['moonmon'] =  1,
['nyaromon'] = 1,
['pabumon'] = 1,
['pagumon'] =  1,
['pokomon'] = 1,
['sunmon'] = 1,
['tanemon'] = 1,
['tokomon'] = 1,
['tsunomon'] =  1,
['tsumemon'] = 1,
['wanyamon'] = 1,
['xiaomon'] = 1,
['yaamon'] = 1,
['yokomon'] = 1,
['agumon hakase'] = 1,
['aruraumon'] = 1,
['betamon'] =  1,
['black agumon'] = 1,
['black biyomon'] =  1,
['black gabumon'] = 1,
['black salamon'] = 1,
['candlemon'] = 1,
['chuumon'] = 1,
['coronamon'] = 1,
['crabmon'] = 1,
['demi devimon'] = 1,
['dokunemon'] = 1,
['dorumon'] = 1,
['dracmon'] = 1,
['dracomon'] = 1,
['elecmon vi'] = 1,
['elecmon'] = 1,
['floramon'] = 1,
['gabumon'] = 1,
['ganimon'] =  1,
['gaomon'] = 1,
['gazimon'] = 1,
['gizamon'] = 1,
['goburimon'] = 1,
['gomamon'] = 1,
['gotsumon'] = 1,
['hagurumon'] = 1,
['impmon'] = 1,
['keramon'] = 1,
['kunemon'] = 1,
['labramon'] = 1,
['liollmon'] = 1,
['lopmon'] = 1,
['muchomon'] = 1,
['mushroomon'] = 1,
['nise agumon hakase'] = 1,
['otamamon red'] = 1,
['otamamon'] = 1,
['palmon'] = 1,
['patamon'] = 1,
['penguinmon'] = 1,
['piyomon'] = 1,
['salamon'] =  1,
['shadowToyAgumon'] = 1,
['shamanmon'] = 1,
['snow agumon'] = 1,
['snow goburimon'] = 1,
['solarmon'] = 1,
['syakomon'] = 1,
['tentomon'] = 1,
['terriermon'] = 1,
['toy agumon'] = 1,
['tsukaimon'] = 1,
['wormmon'] = 1,
['angemon'] = 1,
['bakemon'] = 1,
['birdramon'] = 1,
['black greymon'] = 1,
['black garurumon'] = 1,
['black tailmon'] = 1,
['bomber Nanimon'] = 1,
['coelamon'] = 1,
['dark lizarmon'] = 1,
['dobermon'] = 1,
['drimogemon'] = 1,
['flare lizarmon'] = 1,
['flymon'] = 1,
['frost lizarmon'] = 1,
['fugamon'] = 1,
['galgomon'] = 1,
['garurumon'] = 1,
['gekomon'] = 1,
['geremon'] = 1,
['greymon'] = 1,
['guardromon'] = 1,
['hyogamon'] = 1,
['ice drimogemon'] = 1,
['icemon'] = 1,
['ikkakumon'] = 1,
['jungle mojyamon'] = 1,
['kabuterimon'] = 1,
['karatsuki numemon'] = 1,
['kiwimon'] = 1,
['leomon'] = 1,
['meramon'] = 1,
['mojyamon'] = 1,
['nanimon'] = 1,
['ninjamon'] = 1,
['numemon'] = 1,
['octomon'] = 1,
['ogremon'] = 1,
['piddomon'] = 1,
['platinum sukamon'] = 1,
['red vegiemon'] = 1,
['reppamon'] = 1,
['saberdramon'] = 1,
['sandy yanmamon'] = 1,
['sorcermon'] = 1,
['soulmon'] = 1,
['sukamon'] = 1,
['tailmon'] = 1,
['thundermon'] = 1,
['togemon'] = 1,
['vegiemon'] = 1,
['vilemon'] = 1,
['weedmon'] = 1,
['wendigomon'] = 1,
['wizardmon'] = 1,
['woodmon'] = 1,
['yanmamon'] = 1,
['y-geremon'] = 1,
['flamedramon'] = 1,
['kogamon'] = 1,
['angewomon'] = 1,
['big mamemon'] = 1,
['blue meramon'] = 1,
['brachimon'] = 1,
['datamon'] = 1,
['deramon'] = 1,
['giromon'] = 1,
['ice leomon'] = 1,
['lady devimon'] = 1,
['mamemon'] = 1,
['metal mamemon'] = 1,
['meteormon'] = 1,
['piximon'] = 1,
['tekkamon'] = 1,
['black brachimon'] = 1,
['black jijimon'] = 1,
['babamon'] = 1,
['holydramon'] = 1,
['jijimon'] = 1,
['marine angemon'] = 1,
['prince mamemon'] = 1,
['andromon'] = 1,
['beelzebumon'] = 1,
['devimon'] = 1,
['frigomon'] = 1,
['garudamon'] = 1,
['hi andromon'] = 1,
['ice devimon'] = 1,
['lilimon'] = 1,
['magna angemon'] = 1,
['metal garurumon'] = 1,
['metal greymon'] = 1,
['ophanimon'] = 1,
['phantomon'] = 1,
['piedmon'] = 1,
['saber leomon'] = 1,
['war greymon'] = 1,
['were garurumon'] = 1,
['zudomon'] = 1,
['omnimon'] = 1,
}

local ID_POKEBALL = 2394
local ID_GREATBALL = 2391
local ID_SUPERBALL = 2393
local ID_ULTRABALL = 2392
local ID_MASTERBALL = 2554
local ID_CAPTUROU = 24
local ID_NAO_CAPTUROU = 23

local pokebolas = {
[2394] = {11829,"Pokeball"},
[2393] = {11829,"Superball"},
[2391] = {11829,"Greatball"},
[2392] = {11829,"Ultraball"},
[2521] = {2195,"Masterball"},
}

local btype = "ultra"

local level = {
['leafmon'] = 5,
['agumon'] = 35,
['abra'] = 5,      
['kadabra'] = 40, 
['alakazam'] = 80, 
['machop'] = 15,   
['machoke'] = 40, 
['machamp'] = 70,
['bellsprout'] = 5,  
['weepinbell'] = 20,  
['victreebel'] = 50,  
['tentacool'] = 15,   
['tentacruel'] = 70,  
['geodude'] = 5,   
['graveler'] = 35,  
['golem'] = 65,   
['ponyta'] = 10,    
['rapidash'] = 50,  
['slowpoke'] = 5,
['slowbro'] = 50,   
['magnemite'] = 10,  
['magneton'] = 40,  
['farfetchd'] = 25,
['duduo']  = 15,   
['dodrio'] = 45,  
['seel'] = 15,     
['dewgong'] = 65, 
['grimer'] = 10, 
['muk'] = 40,     
['shellder'] = 5,  
['cloyster'] = 60,  
['gastly'] = 90,   
['haunter'] = 50,  
['gengar'] = 10,  
['onix'] = 50, 
['drowzee'] = 18,  
['hypno'] = 55,    
['krabby'] = 5,   
['klinger'] = 35,  
['voltorb'] = 5,    
['electrode'] = 40, 
['exeggcute'] = 8,  
['exeggutor'] = 45,   
['cubone'] = 15,    
['marowak'] = 52,  
['hitmonlee'] = 70,   
['hitmonchan'] = 65,  
['lickitung'] = 40,  
['koffing'] = 10,  
['weezing'] = 38,  
['rhyhorn'] = 20, 
['rhydon'] = 68,   
['chansey'] = 50,
['tangela'] = 30,   
['kangaskhan'] = 70,  
['horsea'] = 5, 
['seadra'] = 36, 
['goldeen'] = 5,  
['seaking'] = 32,
['staryu'] = 15,   
['starmie'] = 40,  
['mr.Mime'] = 60, 
['scyther'] = 80, 
['jynx'] = 70, 
['electabuzz'] = 72,  
['magmar'] = 72,  
['pinsir'] = 10,  
['tauros'] = 25,  
['magikarp'] = 1,   
['gyarados'] = 70,
['lapras'] = 40,
['ditto'] = 100,  
['eevee'] = 15,     
['vaporeon'] = 50,  
['flareon'] = 50,   
['jolteon'] = 50,   
['porygon'] = 40,  
['omanyte'] = 20,  
['omastar'] = 10,  
['kabuto'] = 20,    
['kabutops'] = 10,  
['snorlax'] = 35,  
['articuno'] = 150, 
['zapdos'] = 150, 
['moltres'] = 150,  
['dratini'] = 10,    
['dragonair'] = 50,
['dragonite'] = 80,  
['mew'] = 350,       
['mewtwo'] = 200,
['beedrill'] = 25,
['bulbasaur'] = 5, 
['ivysaur'] = 35,   
['venusaur'] = 75,
['charmander'] = 5, 
['charmeleon'] = 35, 
['charizard'] = 75,  
['squirtle'] = 5,   
['wartortle'] = 35,  
['blastoise'] = 75, 
['caterpie'] = 1,    
['metapod'] = 5,    
['butterfree'] = 25,  
['weedle'] = 1,    
['kakuna'] = 5,     
['pidgey'] = 5,     
['pidgeotto'] = 20,  
['pidgeot'] = 65,    
['rattata'] = 1,    
['raticate'] = 20,  
['spearow'] = 5,  
['fearow'] = 45, 
['ekans'] = 10,  
['arbok'] = 32,  
['pikachu'] = 18,  
['raichu'] = 42,   
['sandshrew'] = 13,  
['sandslash'] = 58,  
['nidoranFE'] = 10,  
['nidorina'] = 30,   
['nidoqueen'] = 60,  
['nidoranMA'] = 10,  
['nidorino'] = 30,   
['nidoking'] = 60,   
['clefairy'] = 40,  
['clefable'] = 10,
['vulpix'] = 10,      
['ninetales'] = 60,   
['jigglypuff'] = 5,
['wigglytuff'] = 40,  
['zubat'] = 6,   
['golbat'] = 28,  
['oddish'] = 5,    
['gloom'] = 25,     
['vileplume'] = 50,  
['paras'] = 5,      
['parasect'] = 50,  
['venonat'] = 13,   
['venomoth'] = 40,  
['diglett'] = 5,  
['dugtrio'] = 40,  
['meowth'] = 5,   
['persian'] = 30,  
['psyduck'] = 18, 
['golduck'] = 55,  
['mankey'] = 10,   
['primeape'] = 50, 
['growlithe'] = 18,  
['arcanine'] = 80,  
['poliwag'] = 5,    
['poliwhirl'] = 25,
['poliwrath'] = 60,
['botamon'] = 1,
['chicomon'] = 1,
['conomon'] = 1,
['dodomon'] = 1,
['jyarimon'] = 1,
['ketomon'] = 1,
['kuramon'] = 1,
['metal koromon'] = 1,
['mokumon'] = 1,
['nyokimon'] = 1,
['paomon'] = 1,
['pitchmon'] = 1,
['popomon'] = 1,
['poyomon'] = 1,
['punimon'] = 1,
['puttimon'] = 1,
['relemon'] = 1,
['yukimibotamon'] = 1,
['yuramon'] = 1,
['zerimon'] = 1,
['zurumon'] = 1,
['babydmon'] = 1,
['black nyaromon'] = 1,
['budmon'] = 1,
['bukamon'] = 1,
['chibi kiwimon'] = 1,
['chibimon'] = 1,
['chicchimon'] = 1,
['chocomon'] = 1,
['demi meramon'] = 1,
['dorimon'] =  1,
['frimon'] = 1,
['gigimon'] = 1,
['gummymon'] =  1,
['hopmon'] = 1,
['kapurimon'] = 1,
['koromon'] = 1,
['minomon'] = 1,
['mochimon'] = 1,
['moonmon'] =  1,
['nyaromon'] = 1,
['pabumon'] = 1,
['pagumon'] =  1,
['pokomon'] = 1,
['sunmon'] = 1,
['tanemon'] = 1,
['tokomon'] = 1,
['tsunomon'] =  1,
['tsumemon'] = 1,
['wanyamon'] = 1,
['xiaomon'] = 1,
['yaamon'] = 1,
['yokomon'] = 1,
['agumon hakase'] = 1,
['aruraumon'] = 1,
['betamon'] =  1,
['black agumon'] = 1,
['black biyomon'] =  1,
['black gabumon'] = 1,
['black salamon'] = 1,
['candlemon'] = 1,
['chuumon'] = 1,
['coronamon'] = 1,
['crabmon'] = 1,
['demi devimon'] = 1,
['dokunemon'] = 1,
['dorumon'] = 1,
['dracmon'] = 1,
['dracomon'] = 1,
['elecmon vi'] = 1,
['elecmon'] = 1,
['floramon'] = 1,
['gabumon'] = 1,
['ganimon'] =  1,
['gaomon'] = 1,
['gazimon'] = 1,
['gizamon'] = 1,
['goburimon'] = 1,
['gomamon'] = 1,
['gotsumon'] = 1,
['hagurumon'] = 1,
['impmon'] = 1,
['keramon'] = 1,
['kunemon'] = 1,
['labramon'] = 1,
['liollmon'] = 1,
['lopmon'] = 1,
['muchomon'] = 1,
['mushroomon'] = 1,
['nise agumon hakase'] = 1,
['otamamon red'] = 1,
['otamamon'] = 1,
['palmon'] = 1,
['patamon'] = 1,
['penguinmon'] = 1,
['piyomon'] = 1,
['salamon'] =  1,
['shadowToyAgumon'] = 1,
['shamanmon'] = 1,
['snow agumon'] = 1,
['snow goburimon'] = 1,
['solarmon'] = 1,
['syakomon'] = 1,
['tentomon'] = 1,
['terriermon'] = 1,
['toy agumon'] = 1,
['tsukaimon'] = 1,
['wormmon'] = 1,
['angemon'] = 1,
['bakemon'] = 1,
['birdramon'] = 1,
['black garurumon'] = 1,
['black greymon'] = 1,
['black tailmon'] = 1,
['bomber nanimon'] = 1,
['coelamon'] = 1,
['dark lizarmon'] = 1,
['dobermon'] = 1,
['drimogemon'] = 1,
['flare lizarmon'] = 1,
['flymon'] = 1,
['frost lizarmon'] = 1,
['fugamon'] = 1,
['galgomon'] = 1,
['garurumon'] = 1,
['gekomon'] = 1,
['geremon'] = 1,
['greymon'] = 1,
['guardromon'] = 1,
['hyogamon'] = 1,
['ice drimogemon'] = 1,
['icemon'] = 1,
['ikkakumon'] = 1,
['jungle mojyamon'] = 1,
['kabuterimon'] = 1,
['karatsuki numemon'] = 1,
['kiwimon'] = 1,
['leomon'] = 1,
['meramon'] = 1,
['mojyamon'] = 1,
['nanimon'] = 1,
['ninjamon'] = 1,
['numemon'] = 1,
['octomon'] = 1,
['ogremon'] = 1,
['piddomon'] = 1,
['platinum sukamon'] = 1,
['red vegiemon'] = 1,
['reppamon'] = 1,
['saberdramon'] = 1,
['sandy yanmamon'] = 1,
['sorcermon'] = 1,
['soulmon'] = 1,
['sukamon'] = 1,
['tailmon'] = 1,
['thundermon'] = 1,
['togemon'] = 1,
['vegiemon'] = 1,
['vilemon'] = 1,
['weedmon'] = 1,
['wendigomon'] = 1,
['wizardmon'] = 1,
['woodmon'] = 1,
['yanmamon'] = 1,
['y-Geremon'] = 1,
['flamedramon'] = 1,
['kogamon'] = 1,
['angewomon'] = 1,
['big mamemon'] = 1,
['blue meramon'] = 1,
['brachimon'] = 1,
['datamon'] = 1,
['deramon'] = 1,
['giromon'] = 1,
['ice leomon'] = 1,
['lady devimon'] = 1,
['mamemon'] = 1,
['metal mamemon'] = 1,
['meteormon'] = 1,
['piximon'] = 1,
['tekkamon'] = 1,
['black brachimon'] = 1,
['black jijimon'] = 1,
['babamon'] = 1,
['holydramon'] = 1,
['jijimon'] = 1,
['marine angemon'] = 1,
['prince mamemon'] = 1,
['andromon'] = 1,
['beelzebumon'] = 1,
['devimon'] = 1,
['frigomon'] = 1,
['garudamon'] = 1,
['hi andromon'] = 1,
['ice devimon'] = 1,
['lilimon'] = 1,
['magna angemon'] = 1,
['metal garurumon'] = 1,
['metal greymon'] = 1,
['ophanimon'] = 1,
['phantomon'] = 1,
['piedmon'] = 1,
['saber leomon'] = 1,
['war greymon'] = 1,
['were garurumon'] = 1,
['zudomon'] = 1,
['omnimon'] = 1,   
}

-- Vá adicionando mais acima, como está ali 
local function capturou(params)
doSendMagicEffect(getCreaturePosition(params.cid), 173)
doPlayerSendTextMessage(params.cid, 25, 'Parabens você capturou um  ('..params.monster..').')
item = doCreateItemEx(params.ball)
doItemSetAttribute(item, "name", ""..params.monster.." "..params.ball2)
doItemSetAttribute(item, "level", params.level)
doItemSetAttribute(item, "aid", params.hp)
doPlayerAddItemEx(params.cid, item, true)
end

local function naocapturou(params)

end

function onUse(cid, item, fromPosition, itemEx, toPosition)


local monster = getItemName(itemEx.uid):match("fainted (.*)")
 if item.itemid == ID_POKEBALL then
 chances = (chance[monster]) * 10 
elseif item.itemid == ID_GREATBALL then
 chances = (chance[monster]) * 20
elseif item.itemid == ID_SUPERBALL then
 chances = (chance[monster]) * 30
elseif item.itemid == ID_ULTRABALL then
 chances = (chance[monster]) * 50
 elseif item.itemid == 2521 then
 chances = (chance[monster]) * 10000
 else
 chances = chance[monster]
 end


if not chance[monster] then
return doPlayerSendTextMessage(cid, 23, 'Você não pode capturar este pokemon!')
end

if math.random(1,1000) <= chances then
if item.itemid == 2394 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2391 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2393 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2392 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2521 then
doSendMagicEffect(toPosition, 200)
end

doTransformItem(item, pokeballs[btype].on)

local hpmax =  0
local ball = pokebolas[item.itemid]
addEvent(capturou, 4000, {cid = cid, monster = monster, ball = ball[1], ball2 = ball[2], level = level[monster], hp = hpmax})
doRemoveItem(itemEx.uid, 1)
doRemoveItem(item.uid, 1)
   else
if item.itemid == 2394 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2391 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2393 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2392 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2521 then
doSendMagicEffect(toPosition, 200)
end
doRemoveItem(itemEx.uid, 1)
doRemoveItem(item.uid, 1)
   end
return TRUE
end

U

Ando devagar, porque já tive pressa. E levo esse sorriso, porque já chorei demais...

________________________________________________________________________________

Minhas Sprites:

Mega Metagross

Mega Abomasnow

Pack de Shinys

[Posso atualizá-lo com novos shinys a qualquer momento]

Tutoriais:

[Completo] Criando e adicionando um novo Pokémon

[Actions] Criando quest no RME

Editores Lua/Xml/Sync Entre outros:

Editores Win/Mac/Linux

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo