Ir para conteúdo

[Pedido] Catchs


masquente

Posts Recomendados

Eu Acho que no script do catch, voce tem que colocar os ID's dos corpos do pokemon que não da para capturar e a chance de captura de cada um dos novos ids que voce colocar!

Flw's.

Link para o comentário
Compartilhar em outros sites

no script de catch , só tem isso:

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

 

local chance = {

['abra'] = 100,

['kadabra'] = 100,

['alakazam'] = 50,

['machop'] = 200,

['machoke'] = 100,

['machamp'] = 50,

['bellsprout'] = 200,

['weepinbell'] = 200,

['victreebel'] = 100,

['tentacool'] = 200,

['tentacruel'] = 100,

['geodude'] = 200,

['graveler'] = 100,

['golem'] = 50,

['ponyta'] = 100,

['rapidash'] = 50,

['slowpoke'] = 200,

['slowbro'] = 50,

['magnemite'] = 200,

['magneton'] = 100,

['farfetchd'] = 200,

['duduo'] = 200,

['dodrio'] = 100,

['seel'] = 200,

['dewgong'] = 100,

['grimmer'] = 100,

['muk'] = 50,

['shellder'] = 100,

['cloyster'] = 50,

['gastly'] = 100,

['haunter'] = 100,

['gengar'] = 50,

['onix'] = 50,

['drownzee'] = 100,

['hypno'] = 50,

['krabby'] = 170,

['klinger'] = 100,

['voltorb'] = 130,

['electrode'] = 110,

['exeggcute'] = 80,

['exeggutor'] = 50,

['cubone'] = 130,

['marowak'] = 50,

['hitmonlee'] = 50,

['hitmonchan'] = 50,

['lickitung'] = 55,

['koffing'] = 150,

['weezing'] = 150,

['rhyhorn'] = 100,

['rhydon'] = 100,

['chansey'] = 100,

['tangela'] = 100,

['kangaskhan'] = 75,

['horsea'] = 200,

['seadra'] = 150,

['goldeen'] = 170,

['seaking'] = 100,

['staryu'] = 80,

['starmie'] = 50,

['mr.Mime'] = 100,

['scyther'] = 80,

['jynx'] = 75,

['electabuzz'] = 30,

['magmar'] = 100,

['pinsir'] = 120,

['tauros'] = 110,

['magikarp'] = 150,

['gyarados'] = 50,

['lapras'] = 20,

['ditto'] = 40,

['eevee'] = 140,

['vaporeon'] = 100,

['flareon'] = 100,

['jolteon'] = 100,

['porygon'] = 50,

['omanyte'] = 10,

['omastar'] = 10,

['kabuto'] = 110,

['kabutops'] = 50,

['snorlax'] = 50,

['articuno'] = 10,

['zapdos'] = 900,

['moltres'] = 10,

['dratini'] = 100,

['dragonair'] = 80,

['dragonite'] = 50,

['mew'] = 1,

['mewtwo'] = 1,

['beedrill'] = 180,

['bulbasaur'] = 190,

['ivysaur'] = 100,

['venusaur'] = 55,

['charmander'] = 150,

['charmeleon'] = 100,

['charizard'] = 50,

['squirtle'] = 180,

['wartortle'] = 100,

['blastoise'] = 85,

['caterpie'] = 900,

['metapod'] = 180,

['butterfree'] = 130,

['weedle'] = 200,

['kakuna'] = 150,

['pidgey'] = 200,

['pidgeotto'] = 100,

['pidgeot'] = 65,

['rattata'] = 200,

['raticate'] = 100,

['spearow'] = 100,

['fearow'] = 80,

['ekans'] = 200,

['arbok'] = 100,

['pikachu'] = 80,

['raichu'] = 50,

['sandshrew'] = 100,

['sandslash'] = 80,

['nidoranFE'] = 150,

['nidorina'] = 100,

['nidoqueen'] = 80,

['nidoranMA'] = 150,

['nidorino'] = 100,

['nidoking'] = 80,

['clefairy'] = 100,

['clefable'] = 80,

['vulpix'] = 120,

['ninetales'] = 65,

['jigglypuff'] = 100,

['wigglytuff'] = 50,

['zubat'] = 150,

['golbat'] = 100,

['oddish'] = 200,

['gloom'] = 120,

['vileplume'] = 50,

['paras'] = 200,

['parasect'] = 100,

['venonat'] = 150,

['venomoth'] = 100,

['diglett'] = 180,

['dugtrio'] = 100,

['meowth'] = 100,

['persian'] = 100,

['psyduck'] = 80,

['golduck'] = 55,

['mankey'] = 180,

['primeape'] = 100,

['growlithe'] = 100,

['arcanine'] = 80,

['poliwag'] = 200,

['poliwhirl'] = 140,

['poliwrath'] = 90,

}

 

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] = {7885,"Pokeball"},

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

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

[2150] = {7884,"Ultraball"},

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

}

 

local level = {

['abra'] = 15,

['kadabra'] = 45,

['alakazam'] = 80,

['machop'] = 20,

['machoke'] = 45,

['machamp'] = 70,

['bellsprout'] = 5,

['weepinbell'] = 25,

['victreebel'] = 50,

['tentacool'] = 15,

['tentacruel'] = 75,

['geodude'] = 15,

['graveler'] = 40,

['golem'] = 65,

['ponyta'] = 20,

['rapidash'] = 55,

['slowpoke'] = 15,

['slowbro'] = 45,

['magnemite'] = 15,

['magneton'] = 35,

['farfetchd'] = 40,

['duduo'] = 15,

['dodrio'] = 45,

['seel'] = 20,

['dewgong'] = 65,

['grimmer'] = 15,

['muk'] = 35,

['shellder'] = 10,

['cloyster'] = 60,

['gastly'] = 20,

['haunter'] = 45,

['gengar'] = 80,

['onix'] = 50,

['drownzee'] = 25,

['hypno'] = 55,

['krabby'] = 10,

['klinger'] = 40,

['voltorb'] = 10,

['electrode'] = 35,

['exeggcute'] = 10,

['exeggutor'] = 55,

['cubone'] = 20,

['marowak'] = 55,

['hitmonlee'] = 60,

['hitmonchan'] = 75,

['lickitung'] = 55,

['koffing'] = 15,

['weezing'] = 35,

['rhyhorn'] = 30,

['rhydon'] = 70,

['chansey'] = 60,

['tangela'] = 40,

['kangaskhan'] = 75,

['horsea'] = 10,

['seadra'] = 45,

['goldeen'] = 10,

['seaking'] = 35,

['staryu'] = 15,

['starmie'] = 35,

['mr.Mime'] = 60,

['scyther'] = 80,

['jynx'] = 75,

['electabuzz'] = 80,

['magmar'] = 80,

['pinsir'] = 45,

['tauros'] = 45,

['magikarp'] = 5,

['gyarados'] = 85,

['lapras'] = 80,

['ditto'] = 40,

['eevee'] = 20,

['vaporeon'] = 55,

['flareon'] = 55,

['jolteon'] = 55,

['porygon'] = 40,

['omanyte'] = 20,

['omastar'] = 80,

['kabuto'] = 20,

['kabutops'] = 80,

['snorlax'] = 85,

['articuno'] = 100,

['zapdos'] = 100,

['moltres'] = 100,

['dratini'] = 20,

['dragonair'] = 60,

['dragonite'] = 90,

['mew'] = 150,

['mewtwo'] = 160,

['beedrill'] = 3,

['bulbasaur'] = 20,

['ivysaur'] = 40,

['venusaur'] = 85,

['charmander'] = 20,

['charmeleon'] = 40,

['charizard'] = 85,

['squirtle'] = 20,

['wartortle'] = 40,

['blastoise'] = 85,

['caterpie'] = 1,

['metapod'] = 10,

['butterfree'] = 30,

['weedle'] = 1,

['kakuna'] = 10,

['pidgey'] = 5,

['pidgeotto'] = 20,

['pidgeot'] = 65,

['rattata'] = 1,

['raticate'] = 20,

['spearow'] = 5,

['fearow'] = 50,

['ekans'] = 15,

['arbok'] = 30,

['pikachu'] = 20,

['raichu'] = 45,

['sandshrew'] = 20,

['sandslash'] = 55,

['nidoranFE'] = 10,

['nidorina'] = 30,

['nidoqueen'] = 65,

['nidoranMA'] = 10,

['nidorino'] = 25,

['nidoking'] = 65,

['clefairy'] = 20,

['clefable'] = 35,

['vulpix'] = 15,

['ninetales'] = 65,

['jigglypuff'] = 20,

['wigglytuff'] = 45,

['zubat'] = 10,

['golbat'] = 30,

['oddish'] = 5,

['gloom'] = 25,

['vileplume'] = 50,

['paras'] = 5,

['parasect'] = 50,

['venonat'] = 20,

['venomoth'] = 50,

['diglett'] = 10,

['dugtrio'] = 35,

['meowth'] = 15,

['persian'] = 25,

['psyduck'] = 20,

['golduck'] = 55,

['mankey'] = 15,

['primeape'] = 50,

['growlithe'] = 25,

['arcanine'] = 80,

['poliwag'] = 5,

['poliwhirl'] = 25,

['poliwrath'] = 65,

}

 

-- Vá adicionando mais acima, como está ali ""

local function capturou(params)

doSendMagicEffect(getCreaturePosition(params.cid), 173)

doPlayerSendTextMessage(params.cid, 25, 'Você capturou um pokemon! ('..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]) * 2

elseif item.itemid == ID_SUPERBALL then

chances = (chance[monster]) * 3

elseif item.itemid == ID_ULTRABALL then

chances = (chance[monster]) * 4

elseif item.itemid == 2521 then

chances = (chance[monster]) * 5

else

chances = chance[monster]

end

 

 

if not chance[monster] then

return doPlayerSendTextMessage(cid, 23, 'Você só pode capturar pokemon morto!')

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, 23)

end

doRemoveItem(itemEx.uid, 1)

doRemoveItem(item.uid, 1)

end

return TRUE

end

Link para o comentário
Compartilhar em outros sites

Posso estar errado,mas,esse script só captura o pokemon se o corpo começar com dead e um nome da lista.EX:dead abra,veja se o corpo do pokemon que não esta dando para capturar começa com dead e o nome dele esta na lista!

Link para o comentário
Compartilhar em outros sites

local monster = getItemName(itemEx.uid):match("dead (.*)")

O lucas está certo... aki o script compara o nome do "item" ,que nesse caso o item seria o corpo poke morto... se o nome começar com dead e o nome do poke estiver na lista dos monster a ação será executada.

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...