É possivel criar um catch sem ter que add pokemons se a chance de capturar todos os pokemons forem iguais ou você adicione essa chance em outro lugar.
- Forums
- xTibia - Notícias e Suporte
- Soluções
- Archived
- Preciso De 1 Script
info
Group: Visconde
Joined: 11/08/10
Posts: 477
Reputation: +175
Gender: Masculino

mais onde arrumo esse cath q nao precisa add pokemons
a chance de todos podem ser iguais
info
Group: Visconde
Joined: 11/08/10
Posts: 477
Reputation: +175
Gender: Masculino

Posta seu catch atual que posso ajustar pra você.
ta ae
-- CAPTURE SYSTEM BY RAMZA (RICARDO IANELLI) - DO NOT COPY WITHOUT PERMISSION --
local chance = {
['abra'] = 100,
['shiny abra'] = 100,
['shiny abra'] = 100,
['aerodactyl'] = 30,
['kadabra'] = 100,
['alakazam'] = 50,
['grimer'] = 50,
['machop'] = 200,
['machoke'] = 100,
['machamp'] = 50,
['bellsprout'] = 200,
['weepinbell'] = 200,
['victreebel'] = 100,
['tentacool'] = 200,
['shiny tentacool'] = 200,
['tentacruel'] = 100,
['shiny tentacruel'] = 100,
['geodude'] = 200,
['graveler'] = 100,
['golem'] = 50,
['ponyta'] = 100,
['rapidash'] = 50,
['slowpoke'] = 200,
['slowbro'] = 50,
['magnemite'] = 200,
['magneton'] = 100,
['farfetchd'] = 200,
['shiny farfetchd'] = 200,
['duduo'] = 200,
['dodrio'] = 100,
['seel'] = 200,
['dewgong'] = 100,
['grimmer'] = 100,
['muk'] = 50,
['shiny muk'] = 50,
['shellder'] = 100,
['cloyster'] = 50,
['gastly'] = 100,
['haunter'] = 100,
['gengar'] = 50,
['onix'] = 50,
['crystal onix'] = 50,
['drownzee'] = 100,
['hypno'] = 50,
['krabby'] = 170,
['shiny krabby'] = 170,
['kingler'] = 100,
['shiny kingler'] = 100,
['voltorb'] = 130,
['shiny voltorb'] = 130,
['electrode'] = 110,
['shiny electrode'] = 110,
['exeggcute'] = 80,
['exeggutor'] = 50,
['cubone'] = 130,
['marowak'] = 50,
['hitmonlee'] = 50,
['shiny hitmonlee'] = 50,
['hitmonchan'] = 50,
['shiny hitmonchan'] = 50,
['lickitung'] = 55,
['koffing'] = 150,
['weezing'] = 150,
['rhyhorn'] = 100,
['rhydon'] = 100,
['chansey'] = 100,
['tangela'] = 100,
['kangaskhan'] = 75,
['horsea'] = 200,
['shiny horsea'] = 200,
['seadra'] = 150,
['shiny seadra'] = 150,
['goldeen'] = 170,
['seaking'] = 100,
['staryu'] = 80,
['starmie'] = 50,
['mr.Mime'] = 100,
['scyther'] = 80,
['shiny scyther'] = 80,
['jynx'] = 75,
['shiny jynx'] = 75,
['electabuzz'] = 30,
['shiny electabuzz'] = 30,
['magmar'] = 100,
['pinsir'] = 120,
['tauros'] = 110,
['magikarp'] = 150,
['shiny magikarp'] = 150,
['gyarados'] = 50,
['shiny 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,
['shiny dratini'] = 100,
['dragonair'] = 80,
['dragonite'] = 50,
['mew'] = 1,
['mewtwo'] = 1,
['beedrill'] = 180,
['shiny beedrill'] = 180,
['bulbasaur'] = 190,
['ivysaur'] = 100,
['venusaur'] = 55,
['charmander'] = 150,
['charmeleon'] = 100,
['charizard'] = 50,
['elder charizard'] = 1,
['squirtle'] = 180,
['wartortle'] = 100,
['blastoise'] = 85,
['shiny blastoise'] = 85,
['caterpie'] = 900,
['metapod'] = 180,
['butterfree'] = 130,
['shiny butterfree'] = 130,
['weedle'] = 200,
['kakuna'] = 150,
['pidgey'] = 200,
['pidgeotto'] = 100,
['pidgeot'] = 65,
['rattata'] = 200,
['shiny rattata'] = 200,
['raticate'] = 100,
['shiny raticate'] = 100,
['spearow'] = 100,
['fearow'] = 80,
['ekans'] = 200,
['arbok'] = 100,
['pikachu'] = 80,
['raichu'] = 50,
['shiny 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,
['shiny zubat'] = 150,
['golbat'] = 100,
['oddish'] = 200,
['gloom'] = 120,
['vileplume'] = 50,
['paras'] = 200,
['parasect'] = 100,
['shiny parasect'] = 100,
['venonat'] = 150,
['venomoth'] = 100,
['shiny venomoth'] = 100,
['diglett'] = 180,
['dugtrio'] = 100,
['meowth'] = 100,
['persian'] = 100,
['psyduck'] = 80,
['golduck'] = 55,
['mankey'] = 180,
['primeape'] = 100,
['growlithe'] = 100,
['shiny growlithe'] = 100,
['arcanine'] = 80,
['shiny 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] = {2532,"Pokeball"},
[2147] = {2653,"Superball"},
[2146] = {2652,"Greatball"},
[2150] = {2654,"Ultraball"},
[2521] = {2195,"Masterball"},
}
local level = {
['abra'] = 15,
['shiny abra'] = 15,
['kadabra'] = 45,
['alakazam'] = 80,
['machop'] = 20,
['machoke'] = 45,
['machamp'] = 70,
['bellsprout'] = 5,
['weepinbell'] = 25,
['victreebel'] = 50,
['tentacool'] = 15,
['tentacruel'] = 75,
['shiny tentacool'] = 15,
['shiny tentacruel'] = 75,
['geodude'] = 15,
['graveler'] = 40,
['golem'] = 65,
['ponyta'] = 20,
['rapidash'] = 55,
['slowpoke'] = 15,
['slowbro'] = 45,
['magnemite'] = 15,
['magneton'] = 35,
['farfetchd'] = 40,
['shiny farfetchd'] = 40,
['duduo'] = 15,
['dodrio'] = 45,
['seel'] = 20,
['dewgong'] = 65,
['grimmer'] = 15,
['shiny grimmer'] = 15,
['muk'] = 35,
['shiny muk'] = 35,
['shellder'] = 10,
['cloyster'] = 60,
['gastly'] = 20,
['haunter'] = 45,
['gengar'] = 80,
['onix'] = 50,
['crystal onix'] = 50,
['drownzee'] = 25,
['hypno'] = 55,
['krabby'] = 10,
['shiny krabby'] = 10,
['klinger'] = 40,
['shiny klinger'] = 40,
['voltorb'] = 10,
['shiny voltorb'] = 10,
['electrode'] = 35,
['shiny electrode'] = 35,
['exeggcute'] = 10,
['exeggutor'] = 55,
['cubone'] = 20,
['marowak'] = 55,
['hitmonlee'] = 60,
['shiny hitmonlee'] = 60,
['hitmonchan'] = 75,
['shiny hitmonchan'] = 75,
['lickitung'] = 55,
['koffing'] = 15,
['weezing'] = 35,
['rhyhorn'] = 30,
['rhydon'] = 70,
['chansey'] = 60,
['tangela'] = 40,
['kangaskhan'] = 75,
['horsea'] = 10,
['shiny horsea'] = 10,
['seadra'] = 45,
['shiny seadra'] = 45,
['goldeen'] = 10,
['seaking'] = 35,
['staryu'] = 15,
['starmie'] = 35,
['mr.Mime'] = 60,
['scyther'] = 80,
['shiny scyther'] = 80,
['jynx'] = 75,
['shiny jynx'] = 75,
['electabuzz'] = 80,
['shiny electabuzz'] = 80,
['magmar'] = 80,
['pinsir'] = 45,
['tauros'] = 45,
['magikarp'] = 5,
['shiny magikarp'] = 5,
['gyarados'] = 85,
['shiny 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,
['shiny dratini'] = 20,
['dragonair'] = 60,
['dragonite'] = 90,
['mew'] = 150,
['mewtwo'] = 160,
['beedrill'] = 3,
['shiny beedrill'] = 3,
['bulbasaur'] = 20,
['ivysaur'] = 40,
['venusaur'] = 85,
['charmander'] = 20,
['charmeleon'] = 40,
['charizard'] = 85,
['elder charizard'] = 150,
['squirtle'] = 20,
['wartortle'] = 40,
['blastoise'] = 85,
['shiny blastoise'] = 85,
['caterpie'] = 1,
['metapod'] = 10,
['butterfree'] = 30,
['shiny butterfree'] = 30,
['weedle'] = 1,
['kakuna'] = 10,
['pidgey'] = 5,
['pidgeotto'] = 20,
['pidgeot'] = 65,
['rattata'] = 1,
['raticate'] = 20,
['shiny rattata'] = 1,
['shiny raticate'] = 20,
['spearow'] = 5,
['fearow'] = 50,
['ekans'] = 15,
['arbok'] = 30,
['pikachu'] = 20,
['raichu'] = 45,
['shiny 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,
['shiny paras'] = 5,
['shiny parasect'] = 50,
['venonat'] = 20,
['venomoth'] = 50,
['shiny venomoth'] = 50,
['diglett'] = 10,
['dugtrio'] = 35,
['meowth'] = 15,
['persian'] = 25,
['psyduck'] = 20,
['golduck'] = 55,
['mankey'] = 15,
['primeape'] = 50,
['growlithe'] = 25,
['shiny growlithe'] = 25,
['arcanine'] = 80,
['shiny 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, 'You cath a 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]) * 25
else
chances = chance[monster]
end
if not chance[monster] then
return doPlayerSendTextMessage(cid, 23, 'You captured pokemon defeated!')
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
Edited Julho 9 by Tchucadestruidor
info
Group: Visconde
Joined: 11/08/10
Posts: 477
Reputation: +175
Gender: Masculino

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] = {2532,"Pokeball"},
[2147] = {2653,"Superball"},
[2146] = {2652,"Greatball"},
[2150] = {2654,"Ultraball"},
[2521] = {2195,"Masterball"},
}
local function capturou(params)
doSendMagicEffect(getCreaturePosition(params.cid), 173)
doPlayerSendTextMessage(params.cid, 25, 'You cath a 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 chancerate = 1 * 75
if not isCorpse(item.uid) then
return doPlayerSendTextMessage(cid, 19, "Use this ball in a defeated pokemon")
end
local monster = getItemName(itemEx.uid):match("dead (.*)")
if item.itemid == ID_GREATBALL then
chances = (chancerate) * 2
elseif item.itemid == ID_SUPERBALL then
chances = (chancerate) * 3
elseif item.itemid == ID_ULTRABALL then
chances = (chancerate) * 4
elseif item.itemid == 2521 then
chances = (chancerate) * 25
else
chances = chancerate
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 =1, 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
Edited Julho 9 by Eskylo



info
Group: Campones
Joined: 24/02/11
Posts: 47
Reputation: +5
Eu quero um script de cath que venha com todos os pokemons incluidos nele e gostaria de saber se tem como criar 1 cath q nao precise add novos pokemons
espero respostas
me ajude e ganhe rep +