[Encerrado] [Pedido] Pokemons que puxo no Fishing e ficam Selvagens

ApShopAdmin
em Tópicos Sem Resposta

ApShopAdmin

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 20/05/13Posts: 23

Oi, Depois de muito tempo procurando descobri um jeito de voltar meu Fishing para um que eu gosto mt (o antigão mesmo)

Só que tem um probleminha, Fiz tudo que eu pude pra arrumar e tal só que quando eu puxo um pokemon e se ele é passivo (na pasta) ele fica passivo depois que eu pesco-o ... Queria que todos que eu puxasse ficassem "Irritados" e atacassem meu poke ...

 

Segue minha Fishing...

 

function onUse(cid, item, fromPos, itemEx, toPos)
d0 =
{
[0] = {pokemon = 'Magikarp'},
[1] = {pokemon = 'Poliwag'},
[2] = {pokemon = 'horsea'},
[3] = {pokemon = 'Krabby'},
[4] = {pokemon = 'Goldeen'},
[5] = {pokemon = 'Psyduck'},
[6] = {pokemon = 'Tentacool'},
[7] = {pokemon = 'Remoraid'},
}
d20 =
{
[0] = {pokemon = 'Magikarp'},
[1] = {pokemon = 'Poliwag'},
[2] = {pokemon = 'horsea'},
[3] = {pokemon = 'Krabby'},
[4] = {pokemon = 'Goldeen'},
[5] = {pokemon = 'Psyduck'},
[6] = {pokemon = 'Tentacool'},
[7] = {pokemon = 'Remoraid'},
[8] = {pokemon = 'Staryu'},
[9] = {pokemon = 'Squirtle'},
[10] = {pokemon = 'Seel'},
[11] = {pokemon = 'Seaking'},
[12] = {pokemon = 'Starmie'},
[13] = {pokemon = 'Chinchou'},
[14] = {pokemon = 'Marill'},
}
d40 =
{
[0] = {pokemon = 'Magikarp'},
[1] = {pokemon = 'Poliwag'},
[2] = {pokemon = 'horsea'},
[3] = {pokemon = 'Krabby'},
[4] = {pokemon = 'Goldeen'},
[5] = {pokemon = 'Psyduck'},
[6] = {pokemon = 'Tentacool'},
[7] = {pokemon = 'Remoraid'},
[8] = {pokemon = 'Staryu'},
[9] = {pokemon = 'Squirtle'},
[10] = {pokemon = 'Seel'},
[11] = {pokemon = 'Seaking'},
[12] = {pokemon = 'Starmie'},
[13] = {pokemon = 'Chinchou'},
[14] = {pokemon = 'Marill'},
[15] = {pokemon = 'Slowpoke'},
[16] = {pokemon = 'Poliwhirl'},
[17] = {pokemon = 'Wartotle'},
[18] = {pokemon = 'Qwilfish'},
[19] = {pokemon = 'Seadra'},
}
d60 =
{
[0] = {pokemon = 'Magikarp'},
[1] = {pokemon = 'Poliwag'},
[2] = {pokemon = 'horsea'},
[3] = {pokemon = 'Krabby'},
[4] = {pokemon = 'Goldeen'},
[5] = {pokemon = 'Psyduck'},
[6] = {pokemon = 'Tentacool'},
[7] = {pokemon = 'Remoraid'},
[8] = {pokemon = 'Staryu'},
[9] = {pokemon = 'Squirtle'},
[10] = {pokemon = 'Seel'},
[11] = {pokemon = 'Seaking'},
[12] = {pokemon = 'Starmie'},
[13] = {pokemon = 'Chinchou'},
[14] = {pokemon = 'Marill'},
[15] = {pokemon = 'Slowpoke'},
[16] = {pokemon = 'Poliwhirl'},
[17] = {pokemon = 'Wartotle'},
[18] = {pokemon = 'Qwilfish'},
[19] = {pokemon = 'Seadra'},
[20] = {pokemon = 'Cloyster'},
[21] = {pokemon = 'Dewgong'},
[22] = {pokemon = 'Blastoise'},
[23] = {pokemon = 'Slowbro'},
[24] = {pokemon = 'Golduck'},
[25] = {pokemon = 'Tentacruel'},
}
d80 =
{
[0] = {pokemon = 'Magikarp'},
[1] = {pokemon = 'Poliwag'},
[2] = {pokemon = 'horsea'},
[3] = {pokemon = 'Krabby'},
[4] = {pokemon = 'Goldeen'},
[5] = {pokemon = 'Psyduck'},
[6] = {pokemon = 'Tentacool'},
[7] = {pokemon = 'Remoraid'},
[8] = {pokemon = 'Staryu'},
[9] = {pokemon = 'Squirtle'},
[10] = {pokemon = 'Seel'},
[11] = {pokemon = 'Seaking'},
[12] = {pokemon = 'Starmie'},
[13] = {pokemon = 'Chinchou'},
[14] = {pokemon = 'Marill'},
[15] = {pokemon = 'Slowpoke'},
[16] = {pokemon = 'Poliwhirl'},
[17] = {pokemon = 'Wartotle'},
[18] = {pokemon = 'Qwilfish'},
[19] = {pokemon = 'Seadra'},
[20] = {pokemon = 'Cloyster'},
[21] = {pokemon = 'Dewgong'},
[22] = {pokemon = 'Blastoise'},
[23] = {pokemon = 'Slowbro'},
[24] = {pokemon = 'Golduck'},
[25] = {pokemon = 'Tentacruel'},
[26] = {pokemon = 'Mantine'},
[27] = {pokemon = 'Lanturn'},
[28] = {pokemon = 'Politoed'},
[29] = {pokemon = 'Azumarill'},
}
d100 =
{
[0] = {pokemon = 'Magikarp'},
[1] = {pokemon = 'Poliwag'},
[2] = {pokemon = 'horsea'},
[3] = {pokemon = 'Krabby'},
[4] = {pokemon = 'Goldeen'},
[5] = {pokemon = 'Psyduck'},
[6] = {pokemon = 'Tentacool'},
[7] = {pokemon = 'Remoraid'},
[8] = {pokemon = 'Staryu'},
[9] = {pokemon = 'Squirtle'},
[10] = {pokemon = 'Seel'},
[11] = {pokemon = 'Seaking'},
[12] = {pokemon = 'Starmie'},
[13] = {pokemon = 'Chinchou'},
[14] = {pokemon = 'Marill'},
[15] = {pokemon = 'Slowpoke'},
[16] = {pokemon = 'Poliwhirl'},
[17] = {pokemon = 'Wartotle'},
[18] = {pokemon = 'Qwilfish'},
[19] = {pokemon = 'Seadra'},
[20] = {pokemon = 'Cloyster'},
[21] = {pokemon = 'Dewgong'},
[22] = {pokemon = 'Blastoise'},
[23] = {pokemon = 'Slowbro'},
[24] = {pokemon = 'Golduck'},
[25] = {pokemon = 'Tentacruel'},
[26] = {pokemon = 'Mantine'},
[27] = {pokemon = 'Lanturn'},
[28] = {pokemon = 'Politoed'},
[29] = {pokemon = 'Azumarill'},
[30] = {pokemon = 'Poliwrath'},
[31] = {pokemon = 'Slowking'},
[32] = {pokemon = 'Gyarados'},
[33] = {pokemon = 'Kingdra'},
[34] = {pokemon = 'Vaporeon'},
[35] = {pokemon = 'Lapras'},
}
local config = {
waters = {4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825},
}
local skill = getPlayerSkillLevel(cid, 6)
local playerpos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y+1, z=getCreaturePosition(cid).z}
if(isInArray(config.waters, itemEx.itemid)) then
doSendMagicEffect(toPos, CONST_ME_LOSEENERGY)
doPlayerAddSkillTry(cid, 6, 20)
if skill >= 100 then
local random = math.random(0, 80)
if random <= 35 then
doSummonCreature(d100[random].pokemon, playerpos)
return true
end
else
if skill >= 80 then
local random = math.random(0, 80)
if random <= 29 then
doSummonCreature(d80[random].pokemon, playerpos)
return true
end
else
if skill >= 60 then
local random = math.random(0, 80)
if random <= 25 then
doSummonCreature(d60[random].pokemon, playerpos)
return true
end
else
if skill >= 40 then
local random = math.random(0, 80)
if random <= 19 then
doSummonCreature(d40[random].pokemon, playerpos)
return true
end
else
if skill >= 20 then
local random = math.random(0, 80)
if random <= 14 then
doSummonCreature(d20[random].pokemon, playerpos)
return true
end
else
if skill >= 0 and skill < 20 then
local random = math.random(0, 80)
if random <= 7 then
doSummonCreature(d0[random].pokemon, playerpos)
return true
end
return true
end
return true
end
return true
end
end
end
end
end
end

Obrigado desde já!

Stigal

don't ever stop...
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 28/11/10Posts: 3402Gênero: Masculino
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.

VI6MDIG.png

 

"O fracasso é a oportunidade de se começar de novo inteligentemente"

Minhas Redes Sociais: Youtube | Página & Grupo | Steam  | Discord Xtibia | Skype: @mrooger

 

OTpanel