todo:
1.needs more water tiles
touse:
1.click new script
2.copy paste the code
3.save as something.lua
4.check scripts[x]
5.maximize the tibia window and find the something.lua on the screen list
6.click something.lua
Code:
local CLOCK
local gptimer=os.clock()
local timer=2
local watertiles={4597,4598,4599,4653,4655}
local is=-7;
local js=-5;
local fishrod=3483
function autofish()
CLOCK=os.clock()
if (CLOCK-gptimer<timer) then return 0; end
gptimer=os.clock()
for i=is,7 do
for j=js,5 do
for k,id in ipairs(watertiles) do
local gd=GetGround(self.x+i,self.y+i)
if (gd[1]==id) then
UseItemOnGround(self.x+i,self.y+j,fishrod)
js=j+1;is=i
return 0;
end
end
end
end
is=-7;js=-5
end
SetTimerCallback("autofish")