My nice fishing rod!
Script1:
Script2:
Forgotthen System!
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!