Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #IfWinActive, Darkfall Online ahk_class SFMainWindow
- {
- $SC04E::
- Suspend Permit ; allow this code to remain active
- if (GuiMode()) ; if mouse pointer visible ie. in gui mode
- {
- Suspend Off ; reactivate the script
- SendInput {SC04E} ; Exit to game mode
- Sleep 100
- if (GuiMode()) ; if still in gui mode (chat)
- {
- SendInput {SC04E} ; Send Esc key, exit to game mode
- Sleep 100
- } ; end if
- } ; end if
- else ; if mouse pointer not visible ie. we are in game mode
- {
- Suspend On ; temporarily disable the script
- SendInput {SC04E} ; Enter GUI mode
- Sleep 100
- } ; end else
- return ; end subroutine
- ; this procedure checks for gui mode, and returns either 1 or 0 (true or false)
- ; it is called by the above routine each time you need to know
- ; if you are in the GUI or not.
- GuiMode()
- {
- VarSetCapacity(mi,20,0)
- mi:=chr(20)
- DllCall("GetCursorInfo","Uint",&mi)
- hCursor:=NumGet(mi,8) ; returns 0 for game-mode
- return hCursor
- }
- ; SINGLE BUTTON MULTI SKILL HOTKEYS
- 1:: ;Power Attack
- Send {1}
- Send {SC04A}
- Send {Shift Down}{F1}{Shift Up} ; Mana too stam
- click
- return
- 2:: ;Whirl Wind
- Send {2}
- send {=}
- Send {,}
- if (healSelfCycle = "0") { ; Witches Brew Stam to health
- send {F6}
- click
- healSelfCycle = 1
- } ELSE if (healSelfCycle = "1") {
- send {F5}
- click
- healSelfCycle = 0
- } ELSE {
- healSelfCycle = 0
- }
- return
- ;Shift 2 used for R90 nuke
- +2:: ;Exploding Charge then que's Virtuous Wrath
- send {;}
- send {RShift Down}{2}{RShift Up}
- KeyWait, LButton, D
- KeyWait, LButton
- send {Alt Down}{2}{Alt Up} ;Virtuous wrath
- return
- 3:: ;Disabling Blow
- Send {3}
- Send {F12} ; Bind disarming shot to F1, and disabling blow to 3
- Send {F7} ; Health to Mana
- return
- 4:: ; Knock back Heal self
- Send {4}
- Send {F8}
- click
- return
- ;DEBUFF SPAM MACRO
- 7:: ;Melee Debuffs
- Send {;}
- if (MeleeDebuffCycle = "0") {
- send 7
- MeleeDebuffCycle = 1
- } ELSE if (MeleeDebuffCycle = "1") {
- send {Shift Down}{F9}{Shift Up}
- MeleeDebuffCycle += 1
- } ELSE if (MeleeDebuffCycle = "2") {
- send {Shift Down}{F10}{Shift Up}
- MeleeDebuffCycle = 0
- } ELSE {
- MeleeDebuffCycle = 0
- }
- return
- +7:: ;Archery Debuffs
- Send {;}
- if (ArchDebuffCycle = "0") {
- send {RShift Down}{7}{RShift Up}
- ArchDebuffCycle = 1
- } ELSE if (ArchDebuffCycle = "1") {
- send {Shift Down}{F11}{Shift Up}
- ArchDebuffCycle = 0
- } ELSE {
- ArchDebuffCycle = 0
- }
- return
- Numpad2::
- send {/}
- sleep 300
- if (buffCycle = "0") {
- Send {Alt down}{Numpad0}{Alt up}
- buffCycle = 1
- } ELSE if (buffCycle = "1") {
- Send {Alt down}{Numpad1}{Alt up}
- buffCycle += 1
- buffCycle += 1
- } ELSE if (buffCycle = "2") {
- Send {Alt down}{F2}{Alt up}
- } ELSE if (buffCycle = "3") {
- Send {Alt down}{Numpad3}{Alt up}
- buffCycle += 1
- } ELSE if (buffCycle = "4") {
- Send {Alt down}{Numpad4}{Alt up}
- buffCycle += 1
- } ELSE if (buffCycle = "5") {
- Send {Alt down}{Numpad5}{Alt up}
- buffCycle += 1
- } ELSE if (buffCycle = "6") {
- Send {Alt down}{Numpad6}{Alt up}
- buffCycle += 1
- } ELSE if (buffCycle = "7") {
- Send {Alt down}{Numpad7}{Alt up}
- buffCycle += 1
- } ELSE if (buffCycle = "8") {
- Send {Alt down}{Numpad8}{Alt up}
- buffCycle += 1
- } ELSE if (buffCycle = "9") {
- Send {Alt down}{Numpad9}{Alt up}
- buffCycle += 1
- } ELSE if (buffCycle = "10") {
- Send {Alt down}{F12}{Alt up}
- buffCycle += 1
- } ELSE if (buffCycle = "11") {
- Send {Alt down}{F11}{Alt up}
- buffCycle += 1
- } ELSE if (buffCycle = "12") {
- Send {Alt down}{F10}{Alt up}
- buffCycle += 1
- } ELSE if (buffCycle = "13") {
- Send {Alt down}{F9}{Alt up}
- buffCycle += 1
- } ELSE if (buffCycle = "14") {
- Send {Alt down}{F8}{Alt up}
- buffCycle = 0
- } ELSE {
- buffCycle = 0
- }
- return
- ;HEAL OTHER SPAM MACRO
- SC151::
- if (healCycle = "0") {
- send {;}
- send {Alt Down}{1}{Alt Up}
- sleep 100
- click
- healCycle = 1
- } ELSE if (healCycle = "1") {
- send {;}
- send {Alt Down}{3}{Alt Up}
- sleep 100
- healCycle += 1
- } ELSE if (healCycle = "2") {
- send {;}
- send {Alt Down}{4}{Alt Up}
- sleep 100
- click
- healCycle += 1
- } ELSE if (healCycle = "3") {
- send {;}
- send {Alt Down}{5}{Alt Up}
- healCycle = 0
- } ELSE {
- healCycle = 0
- }
- return
- ;BUFF OTHER MACRO
- SC152::
- if (buffOtherCycle = "0") {
- send {/}
- sleep 300
- send {Alt Down}{6}{Alt Up}
- buffOtherCycle = 1
- } ELSE if (buffOtherCycle = "1") {
- send {/}
- sleep 300
- send {Alt Down}{7}{Alt Up}
- buffOtherCycle += 1
- } ELSE if (buffOtherCycle = "2") {
- send {/}
- sleep 300
- send {Alt Down}{8}{Alt Up}
- buffOtherCycle += 1
- } ELSE if (buffOtherCycle = "3") {
- send {/}
- sleep 300
- send {Alt Down}{9}{Alt Up}
- buffOtherCycle += 1
- } ELSE if (buffOtherCycle = "4") {
- send {/}
- sleep 300
- send {-}
- buffOtherCycle += 1
- } ELSE if (buffOtherCycle = "5") {
- send {/}
- sleep 300
- send {Alt Down}{0}{Alt Up}
- buffOtherCycle = 0
- } ELSE {
- buffOtherCycle = 0
- }
- return
- ;WEAPON EQUIP HOTKEYS
- WheelUp:: ; Equip 2h Weapon
- Send {'}
- return
- +WheelUp:: ; Pole
- Send {SC01A}
- return
- ^WheelUp:: ; Axe
- Send {SC135}
- return
- MButton:: ; Equip Sword bound to middle mouse click, Shield bound to .
- Sleep, 600
- Send {.} ; equip shield
- return
- WheelDown:: ; Equip HEALING staff
- Send {;}
- return
- +WheelDown:: ; Slow Staff
- Send {SC035}
- return
- ;AUTO SPRINT TOGGLE
- *SC153:: ; SC029 is the tilde key
- if toggle := !toggle
- Send, {SC153 down}
- else
- Send, {SC153 up}
- return
- }
Add Comment
Please, Sign In to add comment