local configg = {
waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4820, 4821, 4822, 4823, 4824, 4825}
}
local monsters = {
{'Water Elemental'},
{'Rat'}
}
local numero = 2 -- numero de monstros que você colocou /\
local number = 10 -- < quanto maior, mais dificil de pescar um monstro
local config = {
rateSkill = getConfigValue("rateSkill"),
allowFromPz = false,
useWorms = true
}
function onUse(cid, item, frompos, item2, topos)
if(not isInArray(configg.waterIds, item2.itemid)) then
return false
end
local chance = math.random(1,numero+number) --
if chance >= 1 and chance <= numero then
create = monsters[chance][1]
doSummonCreature(create, getCreaturePosition(cid))
doSendMagicEffect(topos, 11)
doCreatureSay(cid, "Whatahell", TEXTCOLOR_BLUE)
else
doSendMagicEffect(topos, CONST_ME_LOSEENERGY)
end
if((config.allowFromPz or not getTileInfo(getCreaturePosition(cid)).protection) and item2.itemid ~= 493 and
math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) < getPlayerSkill(cid, SKILL_FISHING) and
(not config.useWorms or (getPlayerItemCount(cid, ITEM_WORM) > 0 and doPlayerRemoveItem(cid, ITEM_WORM, 1)))) then
doPlayerAddItem(cid, ITEM_FISH, 1)
doPlayerAddSkillTry(cid, SKILL_FISHING, config.rateSkill)
doSendMagicEffect(topos, CONST_ME_LOSEENERGY)
else
doSendMagicEffect(topos, CONST_ME_LOSEENERGY)
end
return true
end






info
Grupo: Cavaleiro
Registrado: 01/12/10
Posts: 158
Reputação: +4
Char no Tibia: Pedro Tacador De Bolt
Bom já olhei um tópico e não tinha o que eu precisava :
http://www.xtibia.co...pesca-monstros/
Então lá vai :
Eu gostaria de um sistema de "pescar criaturas" que funcionasse assim :
O player pesca os peixes normalmente ao atingir um certo skill ele compra outra FishingRod (ID :10223) e pode começar a pescar monstro :
Detalhes :
Skill 30 Pode começar a pescar criaturas
O Player Terá Uma Certa Chance De Pescar BOSS (Essa Chance Será Em Porcentagem)
A pesca de Criaturas aumentará o skill de fishing normalmente (Como se foce um fishing rod normal)
O player não poderá pescar criaturas em PZ
A criatura atacará o player que pesca-la
Se o player conseguir pescar um boss apareça a Mensagem Para Todo O Server (IPLAYERNAMEl Pescou O Boss lBossNamel)
Criaturas Por Skill :
Skill 30 ~Young Sea Serpent~Quara Predator Scout~Quara Constrictor Scout~Quara Mantassin Scout~
Skill 50 ~Quara Mantassin~Quara Hydromancer~
Skill 60 ~Sea Serpent~Quara Predator
OBS : (Se o player tiver skill 50 poderá pescar normalmente as criaturas do skill 30 valido também para o skill 60)
Bosses Por Porcentagem :
Leviathan (35%)
Ghazbaran (5%)
Se precisar de mais detalhes só falar ....
@UP
@UP