def castSkill():
    if config_dict["autobattle"]["manualOn"]:
        if config_dict["buffs"]["enabled"]:
            if buffNow:
                castBuffNow()
                castBuff()
                rand = random.choice(
                    random.sample(
                        range(config_dict["buffs"]["cdMin"],
                              config_dict["buffs"]["cdMax"]), 1))
                print("[" + datetime.datetime.fromtimestamp(
                    time.time()).strftime('%d-%m %H:%M:%S') + "] - " + "'" +
                      str(rand) + "'" + " seconds until next castBuff()")
                threading.Timer(rand, castBuffNow).start()
        if config_dict["summons"]["enabled"]:
            if summonNow:
                castSummonNow()
                castSummon()
                rand = random.choice(
                    random.sample(
                        range(config_dict["summons"]["cdMin"],
                              config_dict["summons"]["cdMax"]), 7))
                print("[" + datetime.datetime.fromtimestamp(
                    time.time()).strftime('%d-%m %H:%M:%S') + "] - " + "'" +
                      str(rand) + "'" + " seconds until next castSummon()")
                threading.Timer(rand, castSummonNow).start()
        for x in range(random.choice(config_dict["skills"]["distribution"])):
            keyPress(device, random.choice(config_dict["skills"]["buttons"]),
                     random.uniform(0.1, 0.3))
            time.sleep(
                random.uniform(config_dict["skills"]["waitMin"],
                               config_dict["skills"]["waitMax"]))
예제 #2
0
def castSkill():
    if manualOn:
        if buffEnabled:
            if buffNow:
                castBuffNow()
                castBuff()
                rand = random.choice(
                    random.sample(range(buffWaitMin, buffWaitMax), 1))
                print("[" + datetime.datetime.fromtimestamp(
                    time.time()).strftime('%d-%m %H:%M:%S') + "] - " + "'" +
                      str(rand) + "'" + " seconds until next castBuff()")
                threading.Timer(rand, castBuffNow).start()

        if summonEnabled:
            if summonNow:
                castSummonNow()
                castSummon()
                rand = random.choice(
                    random.sample(range(summonWaitMin, summonWaitMax), 7))
                print("[" + datetime.datetime.fromtimestamp(
                    time.time()).strftime('%d-%m %H:%M:%S') + "] - " + "'" +
                      str(rand) + "'" + " seconds until next castSummon()")
                threading.Timer(rand, castSummonNow).start()

        for x in range(random.choice(skillRand)):
            keyPress(random.choice(skillButton), random.uniform(0.1, 0.3))
            time.sleep(random.uniform(skillSlpMin, skillSlpMax))
예제 #3
0
def castSummon():
    rand = random.choice(random.sample(range(summonWaitMin, summonWaitMax), 5))
    threading.Timer(rand, summonToggle).start()
    print("'" + str(rand) + "'" + " seconds until next castSummon()")
    for keyValue in summonButton:
        keyPress(keyValue, random.uniform(0.1, 0.3))
        time.sleep(random.uniform(buffSlpMin, buffSlpMax))
def toggleAuto():
    global manualOn, manualFirst
    manualOn = not manualOn
    if manualFirst:
        manualOn = not manualOn
    keyReset()
    if manualOn:
        if not manualFirst:
            manualOn = 0
            time.sleep(random.uniform(1, 1.3))
            #keyPress('p', random.uniform(0.3,0.7))
            keyPress('p', random.uniform(0.7, 1.2))
            time.sleep(random.uniform(0.3, 0.7))
            #keyPress('esc', random.uniform(0.3,0.7))
            manualOn = 1
            # time.sleep(random.uniform(0.1,0.3))
        else:
            manualFirst = 0
        threading.Timer(autoMacroDur, toggleAuto).start()
    else:
        manualOn = 0
        time.sleep(random.uniform(1.1, 1.3))
        keyPress('p', random.uniform(0.1, 0.3))
        time.sleep(random.uniform(0.9, 1.3))
        mouseClick(autoX, autoY)
        manualOn = 0
        threading.Timer(autoDuration, toggleAuto).start()
예제 #5
0
def skillCast():
	global directions
	rand = [1, 2, 3, 4, 5]
	duration = 1
	# Cast your main skill for N times 
	# This is to prevent consistent behaviours on your player which might trigger the BOT detectors.
	for x in range(random.choice(rand)):
		keyPress('q')
	# Press direction key twice to change direction
	directions = not directions
def buffCast():
    # Cast buffs every N mins
    # This is to prevent consistent behaviours on your player which might trigger the BOT detectors.
    global noOfSkillsSet
    rand = random.sample(range(2994, 3650), 50)
    threading.Timer(random.choice(rand), buffCast).start()
    buffKeys = ['1', '2', '3', '4']
    switchKey = 'f1'
    for x in range(noOfSkillsSet):  # 3 Sets of skill key bindings
        for keyValue in buffKeys:
            keyPress(keyValue)
        if (noOfSkillsSet != 1):
            keyPress(switchKey)
예제 #7
0
def charMove():
    if manualOn:
        global movementDirection, movementDuration, movementCount
        duration = random.uniform(movementDistMin, movementDistMax)
        if movementDirection:
            movementDuration += duration
            keyPress('right', duration)
        else:
            movementDuration -= duration
            keyPress('left', duration)

        if movementCount <= 0:
            if movementDuration > 0:
                keyPress('left', movementDuration)
            else:
                keyPress('right', movementDuration * -1)

            print("[" + datetime.datetime.fromtimestamp(time.time()).strftime(
                '%d-%m %H:%M:%S') + "] - " +
                  "Zero-ing character to starting point")
            movementCount = random.choice(
                range(movementCountMin, movementCountMax, 1))
            movementDuration = 0.0

        movementDirection = not movementDirection
        movementCount -= 1
def charMove():
    if config_dict["autobattle"]["manualOn"]:
        global movementDirection, movementDuration, movementCount
        duration = random.uniform(config_dict["movement"]["distMin"],
                                  config_dict["movement"]["distMax"])
        if movementDirection:
            movementDuration += duration
            keyPress(device, 'right', duration)
        else:
            movementDuration -= duration
            keyPress(device, 'left', duration)

        if movementCount <= 0:
            if movementDuration > 0:
                keyPress(device, 'left', movementDuration)
            else:
                keyPress(device, 'right', movementDuration * -1)

            print("[" + datetime.datetime.fromtimestamp(time.time()).strftime(
                '%d-%m %H:%M:%S') + "] - " +
                  "Zero-ing character to starting point")
            movementCount = random.choice(
                range(config_dict["movement"]["stepsMin"],
                      config_dict["movement"]["stepsMax"], 1))
            movementDuration = 0.0

        movementDirection = not movementDirection
        movementCount -= 1
def skillCast():
    global directions
    rand = [1, 2, 3, 4, 5]
    # Cast your main skill for N times
    # This is to prevent consistent behaviours on your player which might trigger the BOT detectors.
    for x in range(random.choice(rand)):
        keyPress('q')
        time.sleep(0.5)
    # Press direction key twice to change direction
    if directions:
        keyPress('d')  #keyPress('right')
        keyPress('d')  #keyPress('right')
    else:
        keyPress('a')  #keyPress('left')
        keyPress('a')  #keyPress('left')
    directions = not directions
def toggleAuto():
    global config_dict
    config_dict["autobattle"][
        "manualOn"] = not config_dict["autobattle"]["manualOn"]
    if config_dict["autobattle"]["manualFirst"]:
        config_dict["autobattle"][
            "manualOn"] = not config_dict["autobattle"]["manualOn"]
    if config_dict["autobattle"]["manualOn"]:
        if not config_dict["autobattle"]["manualFirst"]:
            config_dict["autobattle"]["manualOn"] = 0
            time.sleep(random.uniform(1, 1.3))
            keyPress(device, "ab", random.uniform(0.7, 1.1))
            time.sleep(random.uniform(0.3, 0.7))
            config_dict["autobattle"]["manualOn"] = 1
        else:
            config_dict["autobattle"]["manualFirst"] = 0
        threading.Timer(config_dict["autobattle"]["durManual"],
                        toggleAuto).start()
    else:
        config_dict["autobattle"]["manualOn"] = 0
        time.sleep(random.uniform(0.8, 1.1))
        keyPress(device, "ab", random.uniform(0.7, 1.1))
        time.sleep(random.uniform(0.9, 1.3))
        keyPress(device, "abs", random.uniform(0.7, 1.1))
        config_dict["autobattle"]["manualOn"] = 0
        threading.Timer(config_dict["autobattle"]["durAuto"],
                        toggleAuto).start()
예제 #11
0
def castBuff():
    if buffSwitch:
        keyPress(buffButtonSwitch, random.uniform(0.1, 0.3))
    for keyValue in buffButton:
        keyPress(keyValue, random.uniform(0.1, 0.3))
        time.sleep(random.uniform(buffSlpMin, buffSlpMax))
    if buffSwitch:
        keyPress(buffButtonSwitch, random.uniform(0.1, 0.3))
예제 #12
0
def castBuff():
    if buffSwitch:
        keyPress(buffButtonSwitch, random.uniform(0.1, 0.3))
    rand = random.choice(random.sample(range(buffWaitMin, buffWaitMax), 5))
    threading.Timer(rand, buffToggle).start()
    for keyValue in buffButton:
        keyPress(keyValue, random.uniform(0.1, 0.3))
        time.sleep(random.uniform(buffSlpMin, buffSlpMax))
    if buffSwitch:
        keyPress(buffButtonSwitch, random.uniform(0.1, 0.3))
def castBuff():
    if buffSwitch:
        keyPress(buffButtonSwitch, random.uniform(0.1, 0.3))
    #rand = random.choice(random.sample(range(buffWaitMin,buffWaitMax),5))
    #threading.Timer(rand, castBuff).start()
    #print ("'" + str(rand) + "'" + " seconds until next castBuff()")
    for keyValue in buffButton:
        keyPress(keyValue, random.uniform(0.1, 0.3))
        time.sleep(random.uniform(buffSlpMin, buffSlpMax))
    if buffSwitch:
        keyPress(buffButtonSwitch, random.uniform(0.1, 0.3))
def castBuff():
    if config_dict["buffs"]["toggleNeeded"]:
        keyPress(device, config_dict["buffs"]["toggleButton"],
                 random.uniform(0.1, 0.3))
    for keyValue in config_dict["buffs"]["buttons"]:
        keyPress(device, keyValue, random.uniform(0.1, 0.3))
        time.sleep(
            random.uniform(config_dict["buffs"]["waitMin"],
                           config_dict["buffs"]["waitMax"]))
    if config_dict["buffs"]["toggleNeeded"]:
        keyPress(device, config_dict["buffs"]["toggleButton"],
                 random.uniform(0.1, 0.3))
def charMove():
    if manualOn:
        global movementDirection, movementDuration, movementCount
        duration = random.uniform(movementDistMin, movementDistMax)
        if movementDirection:
            movementDuration += duration
            keyPress('right', duration)
        else:
            movementDuration -= duration
            keyPress('left', duration)

        if movementCount <= 0:
            if movementDuration > 0:
                keyPress('left', movementDuration)
            else:
                keyPress('right', movementDuration * -1)

            print("Zero-ing character to starting point")
            movementCount = random.choice(
                range(movementCountMin, movementCountMax, 1))
            movementDuration = 0.0

        movementDirection = not movementDirection
        movementCount -= 1
예제 #16
0
def toggleAuto():
    global manualOn, manualFirst
    manualOn = not manualOn
    if manualFirst:
        manualOn = not manualOn
    if manualOn:
        if not manualFirst:
            manualOn = 0
            time.sleep(random.uniform(1, 1.3))
            keyPress("ab", random.uniform(0.7, 1.1))
            time.sleep(random.uniform(0.3, 0.7))
            manualOn = 1
        else:
            manualFirst = 0
        threading.Timer(autoMacroDur, toggleAuto).start()
    else:
        manualOn = 0
        time.sleep(random.uniform(0.8, 1.1))
        keyPress("ab", random.uniform(0.7, 1.1))
        time.sleep(random.uniform(0.9, 1.3))
        keyPress("abs", random.uniform(0.7, 1.1))
        manualOn = 0
        threading.Timer(autoDuration, toggleAuto).start()
def castSummon():
    for keyValue in config_dict["summons"]["buttons"]:
        keyPress(device, keyValue, random.uniform(0.1, 0.3))
        time.sleep(
            random.uniform(config_dict["summons"]["waitMin"],
                           config_dict["summons"]["waitMax"]))
예제 #18
0
def castSummon():
    for keyValue in summonButton:
        keyPress(keyValue, random.uniform(0.1, 0.3))
        time.sleep(random.uniform(summonSlpMin, summonSlpMax))