bem ele funciono mas ele so pesca na agua presiso de 1 que pesque na agua alguns monstros, i na lava outros monstros
exemplo na agua ele pesca hydros
water elemental etc....
i na lava ele pesca fire devil
fire elemental entedes
na agua eu pesco water elemental
hydros etc...
i na lava pesca outros tipo de monstros exemplo fire elemental
fire devil etc....
eu tenho esse script aqui que configurei perfeita mente para o meu server veja se tem como ajustar para pesca outros monstros de lava para pesca só na lava
esses dai de agua estáo funfando 100% agora eu nao sei como colocar pra pesca outros bixos diferentes em lava da uma olhada nesse script
local configg = {
waterIds = {493, 4608, 4609, 4664, 4665, 4666, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4820, 4821, 4822, 4823, 4824, 4825}
}
local monsters1 = {
{'Water Elemental'},
{'tyria'},
{'hydros'},
{'Doctor Octagonapus'},
{'Water Elemental'},
{'tyria'},
{'hydros'},
{'Doctor Octagonapus'},
{'Water Elemental'},
{'tyria'},
{'hydros'},
{'Doctor Octagonapus'}
}
local monsters2 = {
{'Water Elemental'},
{'tyria'},
{'hydros'},
{'Doctor Octagonapus'},
{'Kingler'},
{'Triton'},
{'Water Elemental'},
{'tyria'},
{'hydros'},
{'Doctor Octagonapus'},
{'Kingler'},
{'Triton'}
}
local monsters3= {
{'Water Elemental'},
{'Jaws'},
{'hydros'},
{'Triton'},
{'Jaws'},
{'Kingler'},
{'Triton'},
{'Water Elemental'},
{'tyria'},
{'hydros'},
{'Triton'},
{'Kingler'}
}
local monsters4 = {
{'Water Elemental'},
{'Kratos'},
{'hydros'},
{'tyria'},
{'Doctor Octagonapus'},
{'Jaws'},
{'Kingler'},
{'Triton'},
{'Water Elemental'},
{'hydros'},
{'tyria'},
{'Kingler'}
}
local monsters5 = {
{'Water Elemental'},
{'kratos'},
{'aegaeus'},
{'tyria'},
{'hydros'},
{'Doctor Octagonapus'},
{'Jaws'},
{'Kingler'},
{'tyria'},
{'hydros'},
{'Water Elemental'},
{'Triton'}
}
local monsters6 = {
{'Water Elemental'},
{'kratos'},
{'Aegaeus'},
{'Aekre'},
{'tyria'},
{'hydros'},
{'Doctor Octagonapus'},
{'Jaws'},
{'Kingler'},
{'Water Elemental'},
{'hydros'},
{'Triton'}
}
local monsters7 = {
{'Water Elemental'},
{'Sobek'},
{'kratos'},
{'Aegaeus'},
{'Aekre'},
{'tyria'},
{'hydros'},
{'Doctor Octagonapus'},
{'Jaws'},
{'Kingler'},
{'Doctor Octagonapus'},
{'Triton'}
}
local monsters8 = {
{'Blastoise'},
{'Water Elemental'},
{'Sobek'},
{'kratos'},
{'Aegaeus'},
{'Aekre'},
{'tyria'},
{'hydros'},
{'Doctor Octagonapus'},
{'Jaws'},
{'Kingler'},
{'Triton'}
}
local numero = 12 -- numero de monstros que você colocou /\
local number = 10000 -- < quanto maior, mais dificil de pescar um monstro
local config = {
rateSkill = getConfigValue("rateSkill"),
allowFromPz = false,
useWorms = false
}
function onUse(cid, item, frompos, item2, topos)
if isInArray(configg.waterIds, item2.itemid) == FALSE then
return false
end
local chance = math.random(1,numero+number) --
if ((getPlayerSkill(cid, SKILL_FISHING) < 100)) then
doPlayerAddSkillTry(cid, SKILL_FISHING, config.rateSkill)
end
if chance >= 1 and chance <= numero then
if ((getPlayerSkill(cid, SKILL_FISHING) >=100)) then
create = monsters1[chance][1]
end
if ((getPlayerSkill(cid, SKILL_FISHING) >=120)) then
create = monsters2[chance][1]
end
if ((getPlayerSkill(cid, SKILL_FISHING) >=130)) then
create = monsters3[chance][1]
end
if ((getPlayerSkill(cid, SKILL_FISHING) >=140)) then
create = monsters4[chance][1]
end
if ((getPlayerSkill(cid, SKILL_FISHING) >=150)) then
create = monsters5[chance][1]
end
if ((getPlayerSkill(cid, SKILL_FISHING) >=155)) then
create = monsters6[chance][1]
end
if ((getPlayerSkill(cid, SKILL_FISHING) >=158)) then
create = monsters7[chance][1]
end
if ((getPlayerSkill(cid, SKILL_FISHING) >=160)) then
create = monsters8[chance][1]
end
doSummonCreature(create, getCreaturePosition(cid))
doSendMagicEffect(topos, 53)
doBroadcastMessage("Blood on Hook ".. getCreatureName(cid) .."'s surfed in a ".. create ..".", MESSAGE_EVENT_ADVANCE)
local players = getOnlinePlayers()
for i,playerName in ipairs(players) do
local player = getPlayerByName(playerName);
doPlayerSendChannelMessage(player, "", "Blood on Hook ".. getCreatureName(cid) .."'s surfed in a ".. create ..".", TALKTYPE_CHANNEL_W, CHANNEL_GUILD)
end
else
doSendMagicEffect(topos, CONST_ME_WATERSPLASH)
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
doPlayerAddSkillTry(cid, SKILL_FISHING, config.rateSkill)
doSendMagicEffect(topos, CONST_ME_WATERSPLASH)
else
doSendMagicEffect(topos, CONST_ME_WATERSPLASH)
end
return 1
end