Esempio n. 1
0
def pattern2(direction, times):
    ke.sleep(0.5 + ke.rand() / 2)
    if direction == 'right_arrow':
        direction = ['left_arrow']
    else:
        direction = ['right_arrow']

    ke.sleep((ke.rand() + 1) / 2)
    ke.holdKey(direction, (ke.rand() + 0.7) / 2)
    twilight(times)
Esempio n. 2
0
def main():
    ke.sleep(2)

    hwnd = ke.get_hwnd('MapleStory')
    if hwnd == 0:
        print("No Maplestory found in Process...")
        return -1
    ke.set_topwnd(hwnd)

    while not check_caps():

        ke.holdKey(['right_arrow'], (ke.rand() + 0.5) / 2 + 0.05)
        time.sleep(0.5)
        ke.holdKey(['left_arrow'], (ke.rand() + 0.5) / 2)
        time.sleep(0.5)
        ke.pressKey('a')
        ke.pressKey('a')
        ke.pressKey(' ')
        ke.sleep(1)
Esempio n. 3
0
def main():
    ke.sleep(2)

    #hwnd = ke.get_hwnd('MapleStory')
    obs_hwnd = ke.get_hwnd('obs64')
    if hwnd == 0:
        print("No Maplestory found in Process...")
        return -1
    #ke.set_topwnd(hwnd)
    if obs_hwnd == 0:
        print("No OBS found in Process...")
        return -1
    #ke.set_topwnd(hwnd)

    ke.holdKey(['right_arrow'], (ke.rand() + 0.5) / 2)

    while True:

        buff(buff_key)

        while not check_cd('buff'):
            if check_caps():
                return -1

            if ke.rand() < 0.05:
                hwnd = ke.get_hwnd('MapleStory')
                if hwnd == 0:
                    print("No Maplestory found in Process...")
                    return -1
                ke.set_topwnd(hwnd)

            cases = ['right_arrow', 'left_arrow']

            for direction in cases:
                if check_caps():
                    return -1
                r = ke.rand()
                if r < 0.8:
                    #print("2 ",end = '')
                    pattern2(direction, 20)
                else:
                    #print("3 ",end = '')
                    pattern3(direction)
Esempio n. 4
0
def storm(durantion, direction):
    ke.sleep(ke.rand())
    ke.holdKey(['b', direction], durantion)
    record['b'] = time.time()
Esempio n. 5
0
def ult_driv_stay(durantion):
    ke.holdKey(['z'], durantion)
Esempio n. 6
0
def ult_driv(durantion, direction):
    ke.holdKey(['z', direction], durantion)