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)
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)
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)
def storm(durantion, direction): ke.sleep(ke.rand()) ke.holdKey(['b', direction], durantion) record['b'] = time.time()
def ult_driv_stay(durantion): ke.holdKey(['z'], durantion)
def ult_driv(durantion, direction): ke.holdKey(['z', direction], durantion)