Isso é 1 action de pesca, só que eu pesco e meu skill FISHING não avança, não ganho nenhum skill.
Alguem poderia edita para quando tiver pescando ganhar skills de FISHING?
function onUse(cid, item, fromPosition, itemEx, toPosition)
local playerFishing = getPlayerSkill(cid, SKILL_FISHING)
local now = nil
for i = 1, #config do
if (config.chance > math.random(1, 100)) then
now = config
break
end
end
if(itemEx.itemid >= 8632 and itemEx.itemid <= 8632 or itemEx.itemid == 493) then
if(math.random(1, (100 + (playerFishing / 10))) <= playerFishing) then
if(playerFishing >= now.fishing) then
if(now.quest.enable) then
if(getPlayerStorageValue(cid, now.quest.storage) < 1) then
doPlayerAddItem(cid, now.item[1], now.item[2])
doSendAnimatedText(getPlayerPosition(cid), "OLD ROD!", TEXTCOLOR_PURPLE)
else
doPlayerAddItem(cid, ITEM_FISH, 1)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You caught a fish!")
end
else
doPlayerAddItem(cid, now.item[1], now.item[2])
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You caught "..getItemNameById(now.item[1]).."!")
end
else
doPlayerAddItem(cid, ITEM_FISH, 1)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You caught a fish!")
end
end
doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
doPlayerRemoveItem(cid, ITEM_WORM, 1)
return TRUE
end
return FALSE
end