muito bom, dei uma editada rapido, toma aí ó 
chances de 1 pra 5 de firmigas te atacarem!
function onUse(cid, item, frompos, item2, topos)
pos = getPlayerPosition(cid)
formiga = math.random(10,100)
chance = math.random(1,5)
fishingskill = getPlayerSkill(cid,6)
formula = fishingskill /200+0.85* math.random()
if formula > 0.70 then
doSendMagicEffect(topos,1)
doPlayerAddSkillTry(cid,6,1)
if item.itemid == 5157 then
if chance == 1 or chance == 2 or chance == 3 or chance == 4 then
doPlayerAddItem(cid, 2675, 1)
if chance == 5 then
doPlayerAddHealth(pos,-formiga)
doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")
doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)
elseif item.itemid == 4181 then
if chance == 1 or chance == 2 or chance == 3 or chance == 4 then
doPlayerAddItem(cid, 2789, 1)
if chance == 5 then
doPlayerAddHealth(pos,-formiga)
doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")
doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)
elseif item.itemid == 2748 then
if chance == 1 or chance == 2 or chance == 3 or chance == 4 then
doPlayerAddItem(cid, 2744, 1)
if chance == 5 then
doPlayerAddHealth(pos,-formiga)
doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")
doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)
elseif item.itemid == 2750 then
if chance == 1 or chance == 2 or chance == 3 or chance == 4 then
doPlayerAddItem(cid, 2746, 1)
if chance == 5 then
doPlayerAddHealth(pos,-formiga)
doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")
doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)
elseif item.itemid == 2748 then
if chance == 1 or chance == 2 or chance == 3 or chance == 4 then
doPlayerAddItem(cid, 2754, 1)
if chance == 5 then
doPlayerAddHealth(pos,-formiga)
doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")
doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)
elseif item.itemid == 4153 then
if chance == 1 or chance == 2 or chance == 3 or chance == 4 then
doPlayerAddItem(cid, 2753, 1)
if chance == 5 then
doPlayerAddHealth(pos,-formiga)
doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")
doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)
elseif item.itemid == 3985 then
if chance == 1 or chance == 2 or chance == 3 or chance == 4 then
doPlayerAddItem(cid, 2747, 1)
if chance == 5 then
doPlayerAddHealth(pos,-formiga)
doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")
doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)
elseif item.itemid == 2764 then
if chance == 1 or chance == 2 or chance == 3 or chance == 4 then
doPlayerAddItem(cid, 2754, 1)
if chance == 5 then
doPlayerAddHealth(pos,-formiga)
doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")
doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)
elseif item.itemid == 2766 then
if chance == 1 or chance == 2 or chance == 3 or chance == 4 then
doPlayerAddItem(cid, 2745, 1)
if chance == 5 then
doPlayerAddHealth(pos,-formiga)
doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")
doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)
elseif item.itemid == 2781 then
if chance == 1 or chance == 2 or chance == 3 or chance == 4 then
doPlayerAddItem(cid, 2690, 1)
if chance == 5 then
doPlayerAddHealth(pos,-formiga)
doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")
doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)
elseif item.itemid == 4017 then
if chance == 1 or chance == 2 or chance == 3 or chance == 4 then
doPlayerAddItem(cid, 2681, 1)
if chance == 5 then
doPlayerAddHealth(pos,-formiga)
doPlayerSendTextMessage(pos,22,"Oh noh, bugs atacked you!")
doSendAnimatedText(pos, formiga,TEXTCOLOR_RED)
else
return 0
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
return 1
else
doSendMagicEffect(topos,2)
return 0
end
end
creditos : 10% me, 10% rockets, 80% tibiaa4e! VLWW
---edit
qual o id da terra q tem q fazer encima? 