• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Capture Fishing Monster Script Needed :)

Samaster

Raptorserver.ddns.net
Joined
Jun 9, 2013
Messages
291
Reaction score
23
Location
UK
Hey, does anyone know how to show which person fished a monster up..

Example:
"You see a Water Elemental. It was caught by PLAYER NAME"

I need it :P
 
Last edited:
okay heres my fishing script:
Code:
local config =  {
    waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625},
    rateSkill = 0.5,
    allowFromPz = false,
    useWorms = false 
}
local v = {
    [{300,100}] = {name = "Angry Water Elemental", chance = 130000, storage = 36000},
    [{400,100}] = {name = "Ophion Slave", chance = 30000, storage = 36001},
    [{500,100}] = {name = "Hydras", chance = 10000, storage = 36002},
    [{1000,110}] = {name = "Hydrilica", chance = 5000, storage = 36003},
    [{2000,110}] = {name = "Blood Crab", chance = 3000, storage = 36004},
    [{2000,115}] = {name = "Mature Blood Crab", chance = 500, storage = 36005},
    [{2000,115}] = {name = "Giant Squid", chance = 400, storage = 36006},
    [{2500,120}] = {name = "Ophion", chance = 40, storage = 36007},
    [{3000,130}] = {name = "Megladon", chance = 20, storage = 36008},
    [{3000,130}] = {name = "Immature Sharkeater", chance = 10, storage = 36009},
    [{4000,135}] = {name = "The Lurker", chance = 5, storage = 36010},
    [{5000,140}] = {name = "Aquafilus", chance = 2, storage = 36011},
    [{6000,145}] = {name = "Sharkeater", chance = 1, storage = 36012} 
}
       
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if not isInArray(config.waterIds, itemEx.itemid) then
        return false
    end
    if (config.allowFromPz or not getTileInfo(getThingPos(cid)).protection)  and itemEx.itemid ~= 493 and math.random((100 + (getPlayerSkill(cid, SKILL_FISHING) / 60))) <  getPlayerSkill(cid, SKILL_FISHING) and (not config.useWorms or (getPlayerItemCount(cid, ITEM_WORM) > 0 and  doPlayerRemoveItem(cid, ITEM_WORM, 1))) then
        local bsMessage = "%s have caught %s"
        for i, k in pairs(v) do
            if getPlayerLevel(cid) >= i[1] and getPlayerSkillLevel(cid, SKILL_FISHING) >= i[2] then
                local c = math.random(200000000)
                if c <= k.chance then
                    doSummonCreature(k.name, getThingPos(cid))
                    setPlayerStorageValue(cid, k.storage, getPlayerStorageValue(cid, k.storage) +1)
                end
            end
            if k.broadcast then
                doBroadcastMessage(bsMessage:format(getCreatureName(cid), k.name))
                break
            end
        end
    end
    if doPlayerAddSkillTry(cid, SKILL_FISHING, 1) then
    return doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
end
end
 
Back
Top