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

Action Fishing Rod

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
My nice fishing rod!

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

function onUse(cid, item, fromPosition, itemEx, toPosition)

random = math.random(1, 8)

if isInArray(waterIds, itemEx.itemid) == TRUE then
if itemEx.itemid ~= 493 then
if useWorms == FALSE or useWorms == useWorms then
if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= getPlayerSkill(cid, SKILL_FISHING) then
if random == 1 then
doPlayerAddItem(cid, 2667, 1)
doPlayerRemoveItem(cid, 3976, 1)
elseif random == 2 then
doPlayerAddItem(cid, 2667, 1)
doPlayerRemoveItem(cid, 3976, 1)
elseif random == 3 then
doPlayerAddItem(cid, 2667, 1)
doPlayerRemoveItem(cid, 3976, 1)
elseif random == 4 then
doPlayerAddItem(cid, 2667, 1)
doPlayerRemoveItem(cid, 3976, 1)
elseif random == 5 then
doPlayerAddItem(cid, 2667, 1)
doPlayerRemoveItem(cid, 3976, 1)
elseif random == 6 then
doPlayerAddItem(cid, 2219, 1)
elseif random == 7 then
doPlayerAddItem(cid, 2226, 1)
elseif random == 8 then
doPlayerAddItem(cid, 2237, 1)
end
doPlayerAddSkillTry(cid, SKILL_FISHING, 1)
end
end
end
doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
return TRUE
end
return FALSE
end

Script2:
<action itemid="2580" script="tools/fishing.lua" allowfaruse="1"/>

Forgotthen System!
 
Why you don't use this script:

Code:
local useWorms = FALSE
local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625}
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if isInArray(waterIds, itemEx.itemid) == TRUE then
        if itemEx.itemid ~= 493 then
            if useWorms == FALSE or useWorms == TRUE and doPlayerRemoveItem(cid, ITEM_WORM, 1) == TRUE then
                if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= getPlayerSkill(cid, SKILL_FISHING) then
                    doPlayerAddItem(cid, ITEM_FISH, 1)
                end
                doPlayerAddSkillTry(cid, SKILL_FISHING, 1)
            end
        end
        doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
        return TRUE
    end
    return FALSE
end

:confused::confused::confused:
 
Becouse mine fishing rod is nice, have trash in chances.
^_^

Sorry for bad english.
 
I found something strange in your script it say: local useWorms = TRUE

then in your script it says if useWorms == FALSE or useWorms == useWorms then
So what it does is, If you don't use worms it removes worms?
 
Back
Top