Tipo cara, me explica aonde devo colocar o script
ta ai o fishing.lua
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)
if isInArray(waterIds, itemEx.itemid) == TRUE then
if itemEx.itemid ~= 493 then
if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= getPlayerSkill(cid, SKILL_FISHING) then
if useWorms == TRUE then
if getPlayerItemCount(cid, ITEM_WORM) > 0 then
doPlayerRemoveItem(cid, ITEM_WORM, 1)
doCreateMonster("demon", getCreaturePosition(cid))
end
else
doPlayerAddItem(cid, ITEM_FISH, 1)
end
end
doPlayerAddSkillTry(cid, SKILL_FISHING, 1)
end
doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
return TRUE
end
return FALSE
end