fishyboteso/fishing_event.py
DESKTOP-JVKHS7I\Adam 6a2326b818 Updated readme, removed fishy move stuff, reduced requirements, added total fish count
Readme Changes
- added faqs in readme
- updated python version
- added patreon link
- fixed punctuations
2019-06-22 15:31:53 +05:30

67 lines
1.5 KiB
Python

from fishing_mode import *
class FishEvent(ABC):
@abstractmethod
def onEnterCallback(self, previousMode):
pass
@abstractmethod
def onExitCallback(self, currentMode):
pass
class HookEvent(FishEvent):
def onEnterCallback(self, previousMode):
G.fishCaught += 1
G.totalFishCaught += 1
timeToHook = time.time() - G.stickInitTime
print("HOOOOOOOOOOOOOOOOOOOOOOOK....... " + str(G.fishCaught) + " caught " + "in " + str(
round_float(timeToHook)) + " secs. " + "Total: " + str(G.totalFishCaught))
pyautogui.press('e')
if arguments["--collect-r"]:
time.sleep(0.1)
pyautogui.press('r')
time.sleep(0.1)
def onExitCallback(self, currentMode):
pass
class LookEvent(FishEvent):
def onEnterCallback(self, previousMode):
pyautogui.press('e')
def onExitCallback(self, currentMode):
pass
class IdleEvent(FishEvent):
def __init__(self, use_net):
self.use_net = use_net
def onEnterCallback(self, previousMode):
G.fishCaught = 0
if self.use_net:
net.sendHoleDeplete(G.fishCaught)
if previousMode.name == "hook":
print("HOLE DEPLETED")
elif previousMode.name == "stick":
print("FISHING INTERRUPTED")
def onExitCallback(self, currentMode):
pass
class StickEvent(FishEvent):
def onEnterCallback(self, previousMode):
G.stickInitTime = time.time()
def onExitCallback(self, currentMode):
pass