def sellItem(): print('Selling Item..') mouse.moveMouse(555, 227) sleep(0.5) macro.mouseClick() sleep(0.5) while img.checkImage("./img/shop.jpg") == False: 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) print("escape")
while True: if keyboard.is_pressed('-') : print("Start Spam Hunt..") while True: macro.closeBSIfOpen() mouse.spamSkill() sleep(2.3) inventory = mouse.getItemValue() if inventory[32] < 150 or inventory[33] < 150: buyPotion() sleep(0.5) mouse.moveMouse(816, 228) sleep(0.5) macro.mouseClick() mouse.moveMouse(500, 378) sleep(0.5) macro.mouseClick() if img.checkImage("./img/party.jpg") : mouse.moveMouse(234, 263) macro.mouseClick() if keyboard.is_pressed('=') : print('Script Stopped.') start = False break if keyboard.is_pressed(']') : mouse.getPosition() sleep(0.2)
k.send_keys('{F3}') sleep(0) k.send_keys('{F5}') sleep(0) k.send_keys('{F6}') sleep(0) if inventory[32] < 150 or inventory[33] < 150: buyPotion() sleep(0.5) mouse.moveMouse(816, 228) sleep(0.5) macro.mouseClick() mouse.moveMouse(500, 378) sleep(0.5) macro.mouseClick() if img.checkImage("./img/party.jpg"): mouse.moveMouse(262, 269) macro.mouseClick() # if i > 50 : # k.send_keys('{F2}') # sleep(0.2) # k.send_keys('{F2}') # mouse.spamSkill() # print('force skill') # i = 0 # if img.checkImage("./img/skillsettemplar.png") : # i = i+1 if keyboard.is_pressed('='): print('Script Stopped.') start = False
def checkCash(): if img.checkImage("./img/cash.jpg"): return True return False
def checkInven(): if img.checkImage("./img/item.jpg"): return True return False
mouse.setTarget(target) print("target : " + str(target)) inventory = mouse.getItemValue() k.send_keys('{SPACE}') k.send_keys('{F1}') sleep(1) k.send_keys('{F2}') sleep(1) k.send_keys('{F3}') sleep(1) k.send_keys('{F5}') sleep(1) k.send_keys('{F6}') k.send_keys('{F7}') k.send_keys('{F8}') if img.checkImage("./img/poison2.JPG"): k.send_keys('{F7}') mouse.moveMouse(76, 207) macro.mouseClick() # if img.checkImage("./img/posh.JPG") == False : # sleep(1) # mouse.moveMouse(596,237) # macro.mouseClick() # k.send_keys('{ENTER}') # sleep(1) k.send_keys('{SPACE}') k.send_keys('{SPACE}') if inventory[32] < 150 or inventory[33] < 150: buyPotion() sleep(0.5) for i in range(0, 5):
k.send_keys('{F8}') k.send_keys('{SPACE}') k.send_keys('{SPACE}') if inventory[32] < 150 or inventory[33] < 150: buyPotion() sleep(0.5) for i in range(0, 5): if inventory[i] >= 250: print('Item Full Detected.') sellItem() print("Hunt Continue..") if keyboard.is_pressed('c'): print('stopping.') break if keyboard.is_pressed('='): print('Script Stopped.') start = False break if keyboard.is_pressed("/"): print(mouse.getCurrentTarget()) target = mouse.getCurrentTarget() mouse.setTarget(mouse.getCurrentTarget()) sleep(0.2) if keyboard.is_pressed(']'): if img.checkImage("./img/monster.jpg", .65): print('true') else: print('false') mouse.getPosition() sleep(0.2)