Ir para conteúdo

[Encerrado] Como Colocar Apenas 6 Pokemon No Time ( 7° Vai Para O Cp )


narutochuuu

Posts Recomendados

Saudações pessoal :D

 

Meu server é base FLASH e queria uma maneira de colocar apenas 6 pokemon no time e o 7° vai para o centro pokemon,

se precisarem analisar o script do catch:

 

-- CAPTURE SYSTEM BY RAMZA (RICARDO IANELLI) - DO NOT COPY WITHOUT PERMISSION --
local chance = {
['snivy'] = 3,	 
['servine'] = 2,
['serperior'] = 1,
['tepig'] = 3,	 
['emboar'] = 1,  
['pignite'] = 2,  
['snivy'] = 2,
['serperior'] = 1,
['oshawott'] = 3,	 
['dewott'] = 2,	 
['samurott'] = 1,  
['patrat'] = 200,
['watchog'] = 90,
['purrloin'] = 170, 
['liepard'] = 80, 
['pansage'] = 20, 
['simisage'] = 10,  
['panpour'] = 20, 
['simipour'] = 10,  
['pansear'] = 20, 
['simisear'] = 10,  
['munna'] = 10,   
['musharna'] = 2, 
['pidove M'] = 15,
['pidove F'] = 15,  
['tranquill M'] = 6, 
['tranquill F'] = 6, 
['unfezant M'] = 3, 
['unfezant F'] = 3,
['roggenrola']  = 90,  
['boldore'] = 10, 
['gigalith'] = 1,	
['woobat'] = 88,
['swoobat'] = 8,
['axew'] = 1,	
['fraxure'] = 1, 
['haxorus'] = 1, 
['litwick'] = 3,  
['lampent'] = 2,  
['chandelure'] = 1,  
['cubchoo'] = 90,  
['beartic'] = 5,
['cryogonal'] = 14,
['mienfoo'] = 2,  
['mienshao'] = 1,
['golett'] = 2,
['golurk'] = 1,
['darumaka'] = 12,
['darmanitan'] = 2,
['darmanitan zen mode'] = 2,
['sandile'] = 20,
['krokorok'] = 10,
['krookodile'] = 1,
['foongus'] = 45,
['amoonguss'] = 1,
['maractus'] = 2,
['vanillish'] = 10,
['vanillite'] = 6,
['vanilluxe'] = 2,
['sewaddle'] = 200, 
['swadloon'] = 100,
['leavanny'] = 5,
['venipede'] = 80,
['whirlipede'] = 65,
['scolipede'] = 2,
['tympole'] = 90,
['palpitoad'] = 25, 
['seismitoad'] = 2,
['klink'] = 10,
['klang'] = 2,
['klinklang'] = 3,
['ferroseed'] = 8,
['ferrothorn'] = 4,
['joltik'] = 3,
['galvantula'] = 1,
['alomomola'] = 15,
['frillish M'] = 10,
['frillish F'] = 14,
['jellicent M'] = 8,
['jellicent F'] = 8,
['gligar'] = 5,
['gliscor'] = 2,
['stunfisk'] = 18,
['red basculin'] = 200,
['blue basculin'] = 200,
['lillipup'] = 80,
['herdier'] = 18,
['stoutland'] = 3,
['swinub'] = 3,
['piloswine'] = 2,
['mamoswine'] = 1,
['drilbur'] = 15,
['excadrill'] = 4,
['cherubi'] = 12,
['azurill'] = 15,
['marill'] = 8,
['azumarill'] = 6,
['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'] = 20,
['crawdaunt'] = 10,
['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'] = 10,
['kangaskhan'] = 25, 
['horsea'] = 99,
['seadra'] = 15,
['kingdra'] = 2,
['togepi'] = 2,
['togetic'] = 1,
['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,
}
local ID_GREATBALL = 2146
local ID_SUPERBALL = 2147
local ID_ULTRABALL = 2150
local ID_MASTERBALL = 2554
local ID_CAPTUROU = 24
local ID_NAO_CAPTUROU = 23
local pokebolas = {
[2149] = {2531,"Pokeball"},
[2147] = {2653,"Superball"},
[2146] = {2652,"Greatball"},
[2150] = {2654,"Ultraball"},
[2521] = {2195,"Masterball"},
}
local level = {
['snivy'] = 1,	 
['servine'] = 30,
['serperior'] = 70,
['tepig'] = 1,	 
['emboar'] = 30,  
['pignite'] = 70,  
['oshawott'] = 1,	 
['dewott'] = 30,	 
['samurott'] = 70,  
['patrat'] = 1,
['watchog'] = 20,
['purrloin'] = 12, 
['liepard'] = 20, 
['pansage'] = 10, 
['simisage'] = 45,  
['panpour'] = 10, 
['simipour'] = 45,  
['pansear'] = 10, 
['simisear'] = 45,  
['munna'] = 10,   
['musharna'] = 40, 
['pidove M'] = 15,
['pidove F'] = 15,  
['tranquill M'] = 30, 
['tranquill F'] = 30, 
['unfezant M'] = 60, 
['unfezant F'] = 60,
['roggenrola']  = 1,  
['boldore'] = 30, 
['gigalith'] = 70,	
['woobat'] = 1,
['swoobat'] = 35,
['axew'] = 50,	
['fraxure'] = 60, 
['haxorus'] = 110, 
['litwick'] = 30,  
['lampent'] = 60,  
['chandelure'] = 100,  
['cubchoo'] = 20,  
['beartic'] = 65,
['cryogonal'] = 70,
['mienfoo'] = 50,  
['mienshao'] = 100,
['golett'] = 50,
['golurk'] = 90,
['darumaka'] = 20,
['darmanitan'] = 50,
['darmanitan zen mode'] = 55,
['sandile'] = 20,
['krokorok'] = 50,
['krookodile'] = 75,
['foongus'] = 10,
['amoonguss'] = 60,
['maractus'] = 55,
['vanillish'] = 10,
['vanillite'] = 40,
['vanilluxe'] = 70,
['sewaddle'] = 10, 
['swadloon'] = 15,
['leavanny'] = 60,
['venipede'] = 10,
['whirlipede'] = 40,
['scolipede'] = 70,
['tympole'] = 10,
['palpitoad'] = 15, 
['seismitoad'] = 55,
['klink'] = 10,
['klang'] = 40,
['klinklang'] = 65,
['ferroseed'] = 10,
['ferrothorn'] = 65,
['joltik'] = 10,
['galvantula'] = 70,
['alomomola'] = 40,
['frillish M'] = 10,
['frillish F'] = 10,
['jellicent M'] = 70,
['jellicent F'] = 70,
['gligar'] = 10,
['gliscor'] = 55,
['stunfisk'] = 45,
['red basculin'] = 1,
['blue basculin'] = 1,
['lillipup'] = 10,
['herdier'] = 30,
['stoutland'] = 50,
['swinub'] = 10,
['piloswine'] = 40,
['mamoswine'] = 70,
['drilbur'] = 20,
['excadrill'] = 60,
['cherubi'] = 25,
['azurill'] = 1,
['marill'] = 30,
['azumarill'] = 50,
['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,  
}
-- Vá adicionando mais acima, como está ali ""
local function capturou(params)
doSendMagicEffect(getCreaturePosition(params.cid), 173)
doPlayerSendTextMessage(params.cid, 25, 'Sortudo voce 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("dead (.*)")
if item.itemid == ID_GREATBALL then
chances = (chance[monster]) * 3
elseif item.itemid == ID_SUPERBALL then
chances = (chance[monster]) * 4
elseif item.itemid == ID_ULTRABALL then
chances = (chance[monster]) * 6
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 == 2149 then
doSendMagicEffect(toPosition, 24)
elseif item.itemid == 2147 then
doSendMagicEffect(toPosition, 202)
elseif item.itemid == 2146 then
doSendMagicEffect(toPosition, 198)
elseif item.itemid == 2150 then
doSendMagicEffect(toPosition, 200)
elseif item.itemid == 2521 then
doSendMagicEffect(toPosition, 24)
end

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 == 2149 then
doSendMagicEffect(toPosition, 23)
elseif item.itemid == 2147 then
doSendMagicEffect(toPosition, 201)
elseif item.itemid == 2146 then
doSendMagicEffect(toPosition, 197)
elseif item.itemid == 2150 then
doSendMagicEffect(toPosition, 199)
elseif item.itemid == 2521 then
doSendMagicEffect(toPosition, 203)
end
doRemoveItem(itemEx.uid, 1)
doRemoveItem(item.uid, 1)
  end
return TRUE
end

 

 

Valeu pela atenção >_<

Link para o comentário
Compartilhar em outros sites

  • 5 years later...
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...