• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua View Fishing For Everyone

raell5

Premium User
Joined
Aug 23, 2010
Messages
82
Reaction score
9
Location
Deaths Of Tentacles Planet
What I Wish Someone Fishing When the 3 last Mobs appear on the screen for everyone look what he got caught doing so?

Code:
local config = {
waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625},
}

local ctfArena = {
frompos = {x=659, y=483, z=7},
topos = {x=769, y=569, z=7},
}

local warArena = {
frompos = {x=638, y=711, z=7},
topos = {x=751, y=780, z=7},
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = getCreaturePosition(cid)
local fishSkill = getPlayerSkill(cid, SKILL_FISHING)
local maxChance2 = 400 - fishSkill
local maxChance = 200 - fishSkill
local minChance = 1
local chance = math.random(minChance,maxChance)


if isInArea(getPlayerPosition(cid), ctfArena.frompos, ctfArena.topos) or isInArea(getPlayerPosition(cid), warArena.frompos, warArena.topos) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you cannot fish in the arena.")
return true
end

if isInArray(config.waterIds, itemEx.itemid) then
if getTilePzInfo(pos) == false then
if getPlayerItemCount(cid, ITEM_WORM) > 0 or item.itemid == 10223 then
if math.random(1, (100 + fishSkill / 10)) < fishSkill then

if (item.itemid ~= 10223) then
doPlayerRemoveItem(cid, ITEM_WORM, 1)
end

doPlayerAddSkillTry(cid, SKILL_FISHING, 1)
doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
--summon smallboss--
if getPlayerLevel(cid) >= 500 and chance == 1 then
doSendMagicEffect(toPosition, 33)
doCreateMonster("Quara Hydromancer", pos, false)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You caught a Quara Hydromancer!")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"You caught a Quara Hydromancer!")
end
if getPlayerLevel(cid) >= 500 and chance == 2 then
doSendMagicEffect(toPosition, 33)
doCreateMonster("Quara Constrictor", pos, false)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You caught a Quara Constrictor!")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"You caught a Quara Constrictor!")
end
--summon mediumboss--
if getPlayerLevel(cid) >= 1500 and chance == 3 then
doSendMagicEffect(toPosition, 33)
doCreateMonster("Quara Mantassin", pos, false)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You caught a Quara Mantassin!")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"You caught a Quara Mantassin!")
end
if getPlayerLevel(cid) >= 1500 and chance == 4 then
doSendMagicEffect(toPosition, 33)
doCreateMonster("Quara Pincher", pos, false)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You caught a Quara Pincher!")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"You caught a Quara Pincher!")
end
--summon mediumboss--
if getPlayerLevel(cid) >= 3000 and chance == 5 then
doSendMagicEffect(toPosition, 33)
doCreateMonster("Quara Predator", pos, false)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You caught a Quara Predator!")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"You caught a Quara Predator!")
end
if getPlayerLevel(cid) >= 3000 and chance == 6 then
doSendMagicEffect(toPosition, 33)
doCreateMonster("Serpent Spawn", pos, false)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You caught a Quara Serpent Spawn!")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"You caught a Serpent Spawn!")
end
--summon hardboss--
if getPlayerLevel(cid) >= 5000 and chance == 7 then
doSendMagicEffect(toPosition, 33)
doCreateMonster("Wyrm", pos, false)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You caught a Wyrm!")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"You caught a Undead Mob Raell's!")
end
if getPlayerLevel(cid) >= 5000 and chance == 8 then
doSendMagicEffect(toPosition, 33)
doCreateMonster("Sea Serpent", pos, false)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You caught a Sea Serpent!")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"You caught a Undead Water Raell's Element!")
end
if getPlayerLevel(cid) >= 5000 and fishSkill > 100 and math.random(1,maxChance2) == 80 then
doSendMagicEffect(toPosition, 33)
doCreateMonster("Oceanus", pos, false)
doPlayerSendChannelMessage(cid, true, ''..getPlayerName(cid)..' has angered the Titan Goddess of Water, ATLANTIS!',TALKTYPE_CHANNEL_W,10)
end
if getPlayerLevel(cid) >= 7000 and fishSkill > 110 and math.random(1,maxChance2) == 80 then
doSendMagicEffect(toPosition, 65)
doCreateMonster("Undead Frog", pos, false)
doPlayerSendChannelMessage(cid, true, ''..getPlayerName(cid)..' has angered the Titan Of Hell, Undead FROG !',TALKTYPE_CHANNEL_W,10)
end
if getPlayerLevel(cid) >= 15000 and fishSkill > 120 and math.random(1,maxChance2) == 80 then
doSendMagicEffect(toPosition, 36)
doCreateMonster("Worm", pos, false)
doPlayerSendChannelMessage(cid, true, ''..getPlayerName(cid)..' has angered the Titan Of Hell, WORM MASTER !',TALKTYPE_CHANNEL_W,10)
end
else
doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
end
else
doPlayerSendCancel(cid, "You do not have any worms.")
end
else
doPlayerSendCancel(cid, "You may not fish from a protection zone.")
end
else
doPlayerSendCancel(cid, "Cast into open water.")
end
return true
end
 
Last edited by a moderator:

Similar threads

Back
Top