|
Post by crowface28 on Jul 27, 2020 13:03:47 GMT
Simply have a fishing rod in your backpack, click a spot in the game world, and hit play. It'll fish the spot until empty, then stop. Required setup: - EasyLOU version 1.0.0.29 or greater
- 'q' hotkeyed to activate fishing (default)
- Fishing rods in backpack
- Click in game world to mark spot to cast
function Equip(item) FindItem (item) local tool_id = FINDITEMID[1] local cont_id = FINDITEMCNTID[1] if tool_id == nil or tool_id == "N/A" then print(item .. " not found!") return end if tostring(cont_id) == tostring(CHARID) then print(item .. " already equipped!") return end print("Equipping " .. item) SayCustom(".x use " .. tool_id .. " Equip") end
function doFish(x,y,z) Equip("fishing rod") while true do count = 0 Macro(28) print('cast activated') sleep(500) TargetLoc(x,y,z) repeat count = count + 1 ScanJournal(TIME) if string.match(SCANJOURNALMESSAGE, "seem to be any") then sleep(1000) return end if count > 100 then break end until string.match(SCANJOURNALMESSAGE, "caught") or string.match(SCANJOURNALMESSAGE, "fish are biting") or string.match(SCANJOURNALMESSAGE, "slippery") or string.match(SCANJOURNALMESSAGE, "You fish up a") sleep(1000) end end
doFish(CLICKWORLDX, CLICKWORLDY, CLICKWORLDZ)
|
|
|
Post by polymerase on Sept 2, 2020 16:26:17 GMT
Suggested changes:
function Equip(item) FindItem (item) if FINDITEM == nil then print(item .. " not found!") return else local tool_id = FINDITEM[1].ID local cont_id = FINDITEM[1].CNTID end if cont_id == CHARID then print(item .. " already equipped!") return end print("Equipping " .. item) --SayCustom(".x use " .. tool_id .. " Equip") ContextMenu(tool_id, "Equip") end
function doFish(x,y,z) Equip("fishing rod") while true do count = 0 Macro(28) print("cast activated") sleep(500) TargetLoc(x,y,z) repeat count = count + 1 ScanJournal(TIME) if string.match(SCANJOURNALMESSAGE, "seem to be any") then sleep(1000) return end if count > 100 then break end until string.match(SCANJOURNALMESSAGE, "caught") or string.match(SCANJOURNALMESSAGE, "fish are biting") or string.match(SCANJOURNALMESSAGE, "slippery") or string.match(SCANJOURNALMESSAGE, "You fish up a") sleep(1000) end end
doFish(CLICKWORLDX, CLICKWORLDY, CLICKWORLDZ) Not tested.
|
|