Ejemplo n.º 1
0
def Reset_Self_HP():
    PressKey(dk['NUMPAD1'])
    time.sleep(delay)
    ReleaseKey(dk['NUMPAD1'])
    time.sleep(1)
    PressKey(dk['NUMPAD1'])
    time.sleep(delay)
    ReleaseKey(dk['NUMPAD1'])
Ejemplo n.º 2
0
def NOKEY():
    time.sleep(delay)
    # ReleaseKey(dk['W'])
    # ReleaseKey(dk['S'])
    # ReleaseKey(dk['A'])
    # ReleaseKey(dk['D'])
    ReleaseKey(dk['LSHIFT'])
    ReleaseKey(dk['SPACE'])
    # ReleaseKey(dk['Y'])
    ReleaseKey(dk['J'])
    ReleaseKey(dk['K'])
Ejemplo n.º 3
0
def act(action=4, WS=2, AD=2):
    
    if   action == 0:
        act = Attack       # 攻击
    elif action == 1:
        act = Deflect      # 弹反
    elif action == 2:
        act = Step_Dodge   # 垫步
    elif action == 3:
        act = Jump         # 跳跃
    else:
        act = NOKEY        # 无键, 无动作

    PressKey(dk['W'])
    act()
    ReleaseKey(dk['W'])

    # if   WS == 0:
    #     ws = Move_Forward # 移动 前
    # elif WS == 1:
    #     ws = Move_Back    # 移动 后
    # else:
    #     ws = NOKEY        # 无键, 无动作
    # ws_process = threading.Thread(target=ws)
    # ws_process.start()

    # if   AD == 0:
    #     ad = Move_Left    # 移动 左
    # elif AD == 1:
    #     ad = Move_Right   # 移动 右
    # else:
    #     ad = NOKEY        # 无键, 无动作
    # ad_process = threading.Thread(target=ad)
    # ad_process.start()
Ejemplo n.º 4
0
def act(action=4, WS=2, AD=2):

    if action == 0:
        act = Attack
    elif action == 1:
        act = Deflect
    elif action == 2:
        act = Step_Dodge
    elif action == 3:
        act = Jump
    else:
        act = NOKEY

    PressKey(dk['W'])
    act()
    ReleaseKey(dk['W'])
Ejemplo n.º 5
0
def Deflect():  # 0.199
    PressKey(dk['K'])
    time.sleep(delay)
    ReleaseKey(dk['K'])
Ejemplo n.º 6
0
def Attack():  # 0.640
    PressKey(dk['J'])
    time.sleep(delay)
    ReleaseKey(dk['J'])
Ejemplo n.º 7
0
def Lock_On():
    PressKey(dk['Y'])
    time.sleep(delay)
    ReleaseKey(dk['Y'])
Ejemplo n.º 8
0
def Jump():  # 1.101
    PressKey(dk['SPACE'])
    time.sleep(delay)
    ReleaseKey(dk['SPACE'])
Ejemplo n.º 9
0
def Step_Dodge():  # 0.605
    PressKey(dk['LSHIFT'])
    time.sleep(delay)
    ReleaseKey(dk['LSHIFT'])