11-14-2019, 07:38 PM
Hello.
This script will disable Tools->Auto Fishing for a random time (TIME_RESTING) then enable Tools->Auto Fishing and let it work for a random time (TIME_FISHING) as well. So it may not look like a macro when fishing for long periods.
Example: It will try fish for 8~15 seconds in a row then stops for 5~10s.
This script will disable Tools->Auto Fishing for a random time (TIME_RESTING) then enable Tools->Auto Fishing and let it work for a random time (TIME_FISHING) as well. So it may not look like a macro when fishing for long periods.
Example: It will try fish for 8~15 seconds in a row then stops for 5~10s.
local TIME_FISHING = { Min = 8, Max = 15 } -- In seconds. Time to let bot fishing.
local TIME_RESTING = { Min = 5000, Max = 10000 } -- In milliseconds. Time to let bot wait after fishing time.
if NEXT_CHECK == nil then
NEXT_CHECK = runningtime() + random(TIME_FISHING.Min, TIME_FISHING.Max)
end
if runningtime() >= NEXT_CHECK then
setsettings('Tools/Auto Fishing/Enabled', false)
wait(TIME_RESTING.Min, TIME_RESTING.Max)
setsettings('Tools/Auto Fishing/Enabled', true)
NEXT_CHECK = runningtime() + random(TIME_FISHING.Min, TIME_FISHING.Max)
end