|
Post by crowface28 on Jan 31, 2022 16:53:53 GMT
Setup: - Click in-game on the spot you want to fish
- Run the script
- (optional) set up a hotkey to run the script, then you just move, click, and hit hotkey
function Equip(item) FindItem(item, CHARID) if FINDITEM then print(FINDITEM[1].NAME .. " already equipped!") return end FindItem(item, BACKPACKID) if FINDITEM then ContextMenu("Equip", FINDITEM[1].ID) print("Equipping " .. FINDITEM[1].NAME) else print(item .. " not found") return end end
function doFish(x,y,z) Equip("fishing") while true do count = 0 Macro(28) print('cast activated') WaitForTarget() TargetLoc(x,y,z) sleep(500) startTime = TIME repeat ScanJournal(TIME) if string.match(SCANJOURNALMESSAGE, "don't seem to be biting") then sleep(1000) return end if TIME - startTime > 20 then print("something broke") break end until string.match(SCANJOURNALMESSAGE, "fail to catch") or string.match(SCANJOURNALMESSAGE, "got away") or string.match(SCANJOURNALMESSAGE, "caught") sleep(1000) end end
clickX = CLICKWORLDX clickY = CLICKWORLDY clickZ = CLICKWORLDZ doFish(clickX, clickY, clickZ)
|
|