def buff(keys): for key in keys: for i in range(0, int(ke.rand() * 3 + 1)): ke.pressKey(key) record['buff'] = time.time() ke.sleep(1.5 + ke.rand() / 2)
def pattern3(direction): ''' if ke.rand() < 0.5: pattern1(direction,6) if check_cd('m'): cd_skill('m') double_jump() ke.sleep((ke.rand()+1)/2) pattern1(direction,3) elif check_cd('b'): storm(6,direction) else: if ke.rand() < 0.5: ke.sleep((ke.rand()+1)/2) pattern1(direction,6) else: pattern2(direction, 8) else: ''' pattern2(direction, 10) if check_cd('b'): storm(6, direction) else: if ke.rand() < 0.5: ke.sleep((ke.rand() + 1) / 2) pattern1(direction, 7) else: pattern2(direction, 10)
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 pattern1(direction, time): ke.sleep(0.5 + ke.rand() / 2) ult_driv(time, direction)
def cd_skill(key): ke.pressKey(key) record[key] = time.time() ke.sleep(1 + ke.rand() / 2)
def storm(durantion, direction): ke.sleep(ke.rand()) ke.holdKey(['b', direction], durantion) record['b'] = time.time()