Ir para conteúdo

Ajuda Cacth De Alguns Pokes


bruno105

Posts Recomendados

Minha versao do pokemon é 8.54 uso o Pokemon flash v3

so que o riolu , lucario . dulkull e aipom nao eta sendo capturado mais ja pus eles no catch.lua e tenho sos scrpts deles

vo por o catch.lua(nao sei por spolier)

 

 

-- CAPTURE SYSTEM BY RAMZA (RICARDO IANELLI) - DO NOT COPY WITHOUT PERMISSION --

 

local chance = {

['abra'] = 50,

['kadabra'] = 50,

['alakazam'] = 50,

['gastly'] = 50,

['haunter'] = 50,

['gengar'] = 50,

['aipom'] = 50,

['ambipom'] = 50,

['machop'] = 50,

['machoke'] = 250,

['machamp'] = 50,

['bellsprout'] = 50,

['weepinbell'] = 50,

['victreebel'] = 50,

['tentacool'] = 140,

['tentacruel'] = 50,

['geodude'] = 50,

['graveler'] = 125,

['golem'] = 400,

['ponyta'] = 50,

['rapidash'] = 45,

['slowpoke'] = 50,

['slowbro'] = 50,

['magnemite'] = 50,

['magneton'] = 50,

['magnezone'] = 50,

['farfetchd'] = 75,

['doduo'] = 50,

['dodrio'] = 50,

['seel'] = 50,

['dewgong'] = 50,

['grimer'] = 50,

['muk'] = 50,

['shellder'] = 50,

['cloyster'] = 50,

['elekid'] = 50,

['magby'] = 50,

['tyrogue'] = 50,

['pichu'] = 50,

['onix'] = 50,

['drowzee'] = 50,

['hypno'] = 50,

['krabby'] = 50,

['kingler'] = 50,

['corphish'] = 50,

['crawdaunt'] = 50,

['voltorb'] = 50,

['electrode'] = 50,

['exeggcute'] = 50,

['exeggutor'] = 50,

['cubone'] = 80,

['marowak'] = 50,

['hitmonlee'] = 50,

['hitmonchan'] = 50,

['lickitung'] = 50,

['koffing'] = 50,

['weezing'] = 50,

['rhyhorn'] = 50,

['rhydon'] = 50,

['chansey'] = 50,

['tangela'] = 50,

['kangaskhan'] = 50,

['horsea'] = 50,

['seadra'] = 50,

['kingdra'] = 50,

['togepi'] = 50,

['togetic'] = 50,

['shuppet'] = 50,

['banette'] = 55,

['duskull'] = 50,

['dusclops'] = 55,

['goldeen'] = 50,

['seaking'] = 35,

['buizel'] = 50,

['staryu'] = 50,

['starmie'] = 50,

['mime jr'] = 50,

['mr.mime'] = 80,

['scyther'] = 80,

['smoochum'] = 50,

['jynx'] = 50,

['electabuzz'] = 40,

['magmar'] = 40,

['pinsir'] = 40,

['tauros'] = 50,

['magikarp'] = 999,

['gyarados'] = 40,

['lapras'] = 50,

['ditto'] = 15,

['eevee'] = 50,

['vaporeon'] = 50,

['flareon'] = 50,

['jolteon'] = 50,

['porygon'] = 50,

['omanyte'] = 50,

['omastar'] = 50,

['kabuto'] = 50,

['kabutops'] = 50,

['aerodactyl'] = 50,

['snorlax'] = 50,

['articuno'] = 1,

['zapdos'] = 1,

['moltres'] = 1,

['dratini'] = 50,

['dragonair'] = 50,

['dragonite'] = 35,

['celebi'] = 1,

['lugia'] = 1,

['mew'] = 1,

['mewtwo'] = 1,

['beedrill'] = 50,

['bulbasaur'] = 50,

['ivysaur'] = 50,

['venusaur'] = 35,

['charmander'] = 50,

['charmeleon'] = 50,

['charizard'] = 35,

['squirtle'] = 50,

['wartortle'] = 50,

['blastoise'] = 35,

['caterpie'] = 999,

['metapod'] = 35,

['butterfree'] = 50,

['weedle'] = 999,

['kakuna'] = 35,

['pidgey'] = 50,

['pidgeotto'] = 50,

['pidgeot'] = 80,

['rattata'] = 350,

['raticate'] = 350,

['spearow'] = 50,

['fearow'] = 50,

['ekans'] = 50,

['arbok'] = 50,

['pikachu'] = 50,

['raichu'] = 70,

['sandshrew'] = 80,

['sandslash'] = 45,

['nidoran F'] = 80,

['nidorina'] = 50,

['nidoqueen'] = 50,

['nidoran M'] = 80,

['nidorino'] = 50,

['nidoking'] = 50,

['clefairy'] = 35,

['clefable'] = 35,

['vulpix'] = 50,

['ninetales'] = 50,

['jigglypuff'] = 39,

['wigglytuff'] = 50,

['zubat'] = 99,

['golbat'] = 50,

['crobat'] = 45,

['oddish'] = 50,

['gloom'] = 80,

['vileplume'] = 50,

['paras'] = 50,

['parasect'] = 50,

['venonat'] = 500,

['venomoth'] = 90,

['diglett'] = 80,

['dugtrio'] = 50,

['meowth'] = 80,

['persian'] = 50,

['psyduck'] = 50,

['golduck'] = 50,

['mankey'] = 50,

['primeape'] = 80,

['growlithe'] = 50,

['arcanine'] = 35,

['poliwag'] = 85,

['poliwhirl'] = 50,

['politoed'] = 35,

['poliwrath'] = 35,

['riolu'] = 50,

['lucario'] = 35,

['elder charizard'] = 1,

['crystal onix'] = 5,

['red gyarados'] = 5,

['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 = 250

local ID_MASTERBALL = 2554

local ID_CAPTUROU = 24

local ID_NAO_CAPTUROU = 23

 

local pokebolas = {

[2149] = {2531,"Pokeball"},

[2147] = {2653,"Superball"},

[2146] = {2652,"Greatball"},

[250] = {2654,"Ultraball"},

[2521] = {2195,"Masterball"},

}

 

local level = {

['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,

['Ambipom'] = 30,

['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,

['duskull'] = 30,

['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'] = 50,

['eevee'] = 15,

['vaporeon'] = 50,

['flareon'] = 50,

['jolteon'] = 50,

['porygon'] = 40,

['omanyte'] = 20,

['omastar'] = 10,

['kabuto'] = 20,

['kabutops'] = 10,

['snorlax'] = 35,

['articuno'] = 50,

['zapdos'] = 50,

['moltres'] = 50,

['dratini'] = 10,

['dragonair'] = 50,

['dragonite'] = 80,

['mew'] = 350,

['mewtwo'] = 50,

['beedrill'] = 25,

['bulbasaur'] = 5,

['ivysaur'] = 35,

['venusaur'] = 35,

['charmander'] = 5,

['charmeleon'] = 35,

['charizard'] = 35,

['squirtle'] = 5,

['wartortle'] = 35,

['blastoise'] = 35,

['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,

['riolu'] = 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,

['red gyarados'] = 100,

}

 

-- 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("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]) * 5000

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,500) <= 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 == 250 then

doSendMagicEffect(toPosition, 50)

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 == 250 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

 

 

 

e um script do riolu:

<?xml version="1.0" encoding="UTF-8"?>

<monster name="Riolu" nameDescription="a riolu" race="undead" experience="480" speed="250" manacost="0">

<health now="1800" max="1800"/>

<look type="510" corpse="2980"/>

<targetchange interval="1000" chance="1000"/>

<strategy attack="100" defense="0"/>

<flags>

<flag summonable="1"/>

<flag attackable="1"/>

<flag hostile="1"/>

<flag illusionable="1"/>

<flag convinceable="1"/>

<flag pushable="1"/>

<flag canpushitems="0"/>

<flag canpushcreatures="0"/>

<flag targetdistance="1"/>

<flag staticattack="90"/>

<flag runonhealth="10"/>

</flags>

<attacks>

<attack name="tackle" interval="1000" chance="50" min="-10" max="-30">

</attack>

<attack name="thrash" interval="4500" chance="90" min="-30" max="-45">

</attack>

<attack name="aura sphere" interval="5000" chance="90" min="-100" max="-300">

</attack>

<attack name="dynamicpunch" interval="3500" chance="90" min="-20" max="-70">

</attack>

<attack name="karate chop" interval="7000" chance="90" min="-99" max="-109">

</attack>

</attacks>

<defenses armor="8" defense="14"/>

<immunities>

<immunity physical="0"/>

<immunity energy="0"/>

<immunity fire="0"/>

<immunity poison="0"/>

<immunity lifedrain="0"/>

<immunity paralyze="0"/>

<immunity outfit="0"/>

<immunity drunk="0"/>

<immunity invisible="0"/>

</immunities>

<voices interval="5000" chance="10">

<voice sentence="Riolu!"/>

<voice sentence="Riolu!"/>

<voice sentence="Riolu!"/>

</voices>

<loot>

<item id="5948" countmax="3" chance="15000"/><!-- Sell Item -->

<item id="5888" countmax="0" chance="1"/><!-- Sell Item -->

<item id="5888" countmax="0" chance="1"/><!-- Sell Item -->

<item id="5791" chance="250"/><!-- Stone -->

</loot>

</monster>

 

 

PORFAVOR ME AJUDEM

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...