diff --git a/src/char/i_char.py b/src/char/i_char.py index d94e3de..5034afc 100644 --- a/src/char/i_char.py +++ b/src/char/i_char.py @@ -34,7 +34,6 @@ class IChar: mouse.move(pos[0], pos[1]) time.sleep(0.1) mouse.click(button="left") - time.sleep(0.2) def select_by_template(self, template_type: Union[str, List[str]], expect_loading_screen: bool = False) -> bool: if template_type == "A5_STASH": diff --git a/src/char/sorceress.py b/src/char/sorceress.py index 7c4dd19..c615645 100644 --- a/src/char/sorceress.py +++ b/src/char/sorceress.py @@ -22,9 +22,9 @@ class Sorceress(IChar): def pick_up_item(self, pos: Tuple[float, float], item_name: str = ''): if self._skill_hotkeys["telekinesis"] and any(x in item_name for x in ['potion', 'misc_gold']): keyboard.send(self._skill_hotkeys["telekinesis"]) - wait(0.1, 0.13) + wait(0.1, 0.2) mouse.move(pos[0], pos[1]) - wait(0.1, 0.13) + wait(0.1, 0.2) mouse.click(button="right") else: super().pick_up_item((pos[0], pos[1]),item_name) diff --git a/src/pickit.py b/src/pickit.py index e22a161..77113fd 100644 --- a/src/pickit.py +++ b/src/pickit.py @@ -3,6 +3,7 @@ from ui_manager import UiManager from item_finder import ItemFinder import time from utils.custom_mouse import mouse +from utils.misc import wait import keyboard import cv2 from config import Config @@ -73,6 +74,7 @@ class PickIt: found_items = True Logger.info(f"Picking up: {closest_item.name}, score: {closest_item.score}") char.pick_up_item((x_m, y_m),item_name=closest_item.name) + wait(0.3,0.5) if self._ui_manager.is_overburdened(): Logger.warning("Inventory full, skipping pickit!")