Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- #Warn ; Enable warnings to assist with detecting common errors.
- #MaxThreadsPerHotkey 1 ; Only 1 thread is needed.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- Combo1Hotkey = 1 ; Change this to your heart's content, Idealy you will only have the combos relavant for your current weapon on hotkey,
- Combo2Hotkey = 2 ; so I would delete the hotkeys you dont need.
- Combo3Hotkey = 3 ; I'm listing 3 combos for 3 different weapons for the sake of example.
- hotkey, %Combo1Hotkey%, Combo1 ; This can be duplicated for as many unique hotkeys as you wish to define above.
- hotkey, %Combo2Hotkey%, Combo2
- hotkey, %Combo3Hotkey%, Combo3
- Facing := "right" ; Just a default for the variable
- ~a::Facing := "left" ; Stores direction to a variable while still passing the key to the game.
- ~d::Facing := "right"
- ; Here we establish the labels we will be jumping to by hotkey.
- Combo1: ; Down to back, forward, attack
- if (Facing = "right")
- {
- Send, {s down} ; Down
- Sleep 30
- Send, {a down} ; Down + Left
- Sleep 30
- Send, {s up} ; Left
- Sleep 30
- Send, {a up} ; nothing
- Sleep 30
- Send, {d down} ; Right
- Sleep 30
- Click Down ; Right + Attack
- Sleep 30
- Click Up
- Sleep 30
- Send, {d up} ; Nothing
- return
- }
- else ; Your facing left..
- {
- Send, {s down}
- Sleep 30
- Send, {d down}
- Sleep 30
- Send, {s up}
- Sleep 30
- Send, {d up}
- Sleep 30
- Send, {a down}
- Sleep 30
- Click Down
- Sleep 30
- Click Up
- Sleep 30
- Send, {a up}
- return
- }
- Combo2: ; Down to forward, attack
- if (Facing = "right")
- {
- Send, {s down}
- Sleep 30
- Send, {d down}
- Sleep 30
- Send, {s up}
- Sleep 30
- Click Down
- Sleep 30
- Click Up
- Sleep 30
- Send, {d up}
- return
- }
- else
- {
- Send, {s down}
- Sleep 30
- Send, {a down}
- Sleep 30
- Send, {s up}
- Sleep 30
- Click Down
- Sleep 30
- Click Up
- Sleep 30
- Send, {a up}
- return
- }
- ; The technique this combo is used for is a cast until attack key is "up" that being said you might want to comment out the Click Up and it will continue to be cast until you send your own click.
- Combo3: ; Down, back, up, forward, attack
- if (Facing = "right")
- {
- Send, {s down}
- Sleep 30
- Send, {s up} {a down}
- Sleep 30
- Send, {a up} {w down}
- Sleep 30
- Send, {w up} {d down}
- Sleep 30
- Click Down
- Sleep 30
- Click Up
- Sleep 30
- Send, {d up}
- return
- }
- else
- {
- Send, {s down}
- Sleep 30
- Send, {s up} {d down}
- Sleep 30
- Send, {d up} {w down}
- Sleep 30
- Send, {w up} {a down}
- Sleep 30
- Click Down
- Sleep 30
- Click Up
- Sleep 30
- Send, {a up}
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement