• 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!

Fishing System.

Headmaster Neil

New Member
Joined
Sep 4, 2013
Messages
30
Reaction score
2
Location
Ontario, Canada
Hiyo! I was looking for a fishing script but It didn't seem to work, so I just gave up trying to fix it.

Anyone here have a fishing system script? and maybe know how to import it into the server? I'd appreciate it tons.

Here is the one I had,
Code:
local monsters = {
[1] = {name = "name", level = 50, fishing = 10, magiceffect = 1, msg = "You have caught a ", bcmsg = getPlayerName(cid) .. "", bc = true},
[2] = {name = "name", level = 75, fishing = 10, magiceffect = 1, msg = "You have caught a ", bcmsg = getPlayerName(cid) .. "", bc = true},
[3] = {name = "name", level = 120, magiceffect = 2, fishing = 10, msg = "You have caught a ", bcmsg = getPlayerName(cid) .. "", bc = true}
}


local chance = (200, 1000)

local randMonsters = {
[1] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}
[2] = {21, 22, 23, 24, 25, 26, 27, 28, 29, 30}
[3] = {31, 32, 33, 34, 35, 36, 37}
}


local water = {4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if not isInArray(water, itemEx.itemid) then
return false
end

if    math.random(chance) == randMonsters[1] and getPlayerLevel(cid) >= monsters[1].level and getPlayerSkillLevel(cid, SKILL_FISHING) >= monsters[1]. fishing then
doTeleportThing(monsters[1].name, getPlayerPosition(cid), true)
doSendMagicEffect(getPlayerPosition(cid), monsters[1].magiceffect)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, monsters[1].msg)
setPlayerStorageValue(cid, monster[1].name) + 1
if    monsters[1].bc == true then
doBroadcastMessage(monsters[1].bcmsg)
end

elseif math.random(chance) == randMonsters[2] and getPlayerLevel(cid) >= monsters[2].level and getPlayerSkillLevel(cid, SKILL_FISHING) >= monsters[2]. fishing then
doTeleportThing(monsters[2].name, getPlayerPosition(cid), true)
doSendMagicEffect(getPlayerPosition(cid), monsters[2].magiceffect)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, monsters[2].msg)
setPlayerStorageValue(cid, monster[2].name) + 1
if    monsters[2].bc == true then
doBroadcastMessage(monsters[2].bcmsg)
end
elseif math.random(chance) == randMonsters[3] and getPlayerLevel(cid) >= monsters[3].level and getPlayerSkillLevel(cid, SKILL_FISHING) >= monsters[3]. fishing then
doTeleportThing(monsters[3].name, getPlayerPosition(cid), true)
doSendMagicEffect(getPlayerPosition(cid), monsters[3].magiceffect)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, monsters[3].msg)
setPlayerStorageValue(cid, monster[3].name) + 1
if    monsters[3].bc == true then
doBroadcastMessage(monsters[3].bcmsg)
end
elseif math.random(chance) == randMonsters[4] and getPlayerLevel(cid) >= monsters[4].level and getPlayerSkillLevel(cid, SKILL_FISHING) >= monsters[4]. fishing then
doTeleportThing(monsters[4].name, getPlayerPosition(cid), true)
doSendMagicEffect(getPlayerPosition(cid), monsters[4].magiceffect)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, monsters[4].msg)
setPlayerStorageValue(cid, monster[4].name) + 1
if    monsters[4].bc == true then
doBroadcastMessage(monsters[4].bcmsg)
end
end

doPlayerAddSkillTry(cid, skillid, 1)
doSendMagicEffect(toPosition, 1)
return true
end
 
Last edited by a moderator:
Back
Top