Example #1
0
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
Example #2
0
def run_cegel():
    global force_stop
    macro.closeBSIfOpen()
    mouse.setTarget(target)
    # logger.log(f"target : {str(target)}")
    inventory = mouse.getItemValue()
    k.send_keys('{SPACE}')
    k.send_keys('{F1}')
    k.send_keys('{SPACE}')
    k.send_keys('{SPACE}')
    if inventory[32]['qty'] < 150 or inventory[33]['qty'] < 150:
        buyPotion()
        sleep(0.5)
    for i in range(0, 8):
        if inventory[i]['qty'] >= 250:
            logger.log('Item Full Detected.')
            sellItem()
            logger.log("Hunt Continue..")
    if keyboard.is_pressed('c'):
        logger.log('stopping.')
        force_stop = True
Example #3
0
def buyPotion() :
    macro.buyPot()
    sleep(0.1)
    print("bank : " + str(macro.checkBank()))
    print("shop : " + str(macro.checkShop()))
    sleep(0.1)

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.')
Example #4
0
def get_inventory():
    return mouse.getItemValue()
Example #5
0
from datetime import datetime
import auto_purchase
import struct
import os

print(os.path.basename(__file__))
user_id = mouse.getUserId()
print(user_id)
# deret sini jgn di ubah
k = p.keyboard


def process_value(value):
    return struct.pack('@i', value)


while True:
    if keyboard.is_pressed("-"):
        print(mouse.get_freeze_dialog())
        print(mouse.get_item_bank_status())
        print(mouse.getItemValue())
        print(mouse.getPosition())
        sleep(0.2)

    if keyboard.is_pressed("]"):
        value = input("value : ")
        print(value)
        result = mouse.scan_memory(int(value))
        print(result)
        sleep(0.2)