def buyPotion(): logger.log("buying potion") macro.buyPot() sleep(0.1) logger.log("bank : " + str(macro.checkBank())) logger.log("shop : " + str(macro.checkShop())) sleep(0.1)
def runHunt(): print("Hunt Started..") start_hunt = True while start_hunt: print("Getting inventory list") inventory = mouse.getItemValue() if inventory[32] < 200 or inventory[33] < 150: macro.buyPot() sleep(0.1) print("bank : " + str(macro.checkBank())) print("shop : " + str(macro.checkShop())) macro.sellTrashItem() sleep(0.1) macro.closeBSIfOpen() mouse.moveMouse(505, 401) macro.mouseClick() sleep(1) if keyboard.is_pressed('c'): print('Hunt Stopped.') start_hunt = False break print("Item : " + str(inventory[0])) if inventory[0] == 300: print('Item Full Detected.') puttingItem() print("bank : " + str(macro.checkBank())) print("shop : " + str(macro.checkShop())) macro.closeBSIfOpen() print("Hunt Continue..") k.send_keys("{q down}" "{q up}") sleep(1) k.send_keys("{F5}") sleep(3) for x in range(0, 10): k.send_keys("{SPACE}") sleep(0.05) k.send_keys("{SPACE}") sleep(0.05) k.send_keys("{SPACE}") sleep(0.05) k.send_keys("{SPACE}") sleep(0.05) if keyboard.is_pressed('c'): print('Hunt Stopped.') start_hunt = False break
def sellItem(): logger.log("Selling Item") while not macro.checkShop(): mouse.moveMouse(555, 227) sleep(0.5) macro.mouseClick() sleep(0.5) k.send_keys('{ENTER}') sleep(0.5) mouse.moveMouse(394, 296) macro.mouseClick() sleep(0.5) sleep(0.5) macro.sellSlot1() macro.sellSlot2() macro.sellSlot3() macro.sellSlot4() macro.sellSlot5() sleep(1) logger.log("escape")
def buyPotion() : macro.buyPot() sleep(0.1) print("bank : " + str(macro.checkBank())) print("shop : " + str(macro.checkShop())) sleep(0.1)