Guest User

Untitled

a guest
Sep 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  3. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  4. WinWait, Darkfall Online,
  5. WinWaitActive, Darkfall Online,
  6.  
  7. isMouseShown()
  8. {
  9. StructSize := A_PtrSize + 16
  10. VarSetCapacity(InfoStruct, StructSize)
  11. NumPut(StructSize, InfoStruct)
  12. DllCall("GetCursorInfo", UInt, &InfoStruct)
  13. Result := NumGet(InfoStruct, 8)
  14.  
  15. if Result
  16. return 1
  17. else
  18. return 0
  19. }
  20.  
  21. #If !isMouseShown() and WinActive("Darkfall Online")
  22. ~2::q
  23. return
  24.  
  25. #If !isMouseShown() and WinActive("Darkfall Online")
  26. ~4::e
  27. return
  28.  
  29. #If !isMouseShown() and WinActive("Darkfall Online")
  30. ~7::v
  31. return
  32.  
  33. ;always sprinting when using Up (b is sprint)
  34. ~*w::
  35. if GetKeyState ("w","s")
  36. {
  37. Send {b down}
  38. Sleep 100
  39. }
  40. Return
  41.  
  42. 2HSword:
  43. NumpadDiv:: ;Hotkey is / on numpad
  44. Send h ;Select 2H weapon
  45. Send {F2} ;Switch to Melee hotbar
  46. Send \ ;unsheath weapon
  47. Sleep 280
  48. Send 3 ; que whirlwind
  49. return
  50.  
  51. 2HAxe:
  52. $^NumpadDiv:: ;Hotkey is ctrl and / on numpad
  53. Send y ;Select 2H weapon
  54. Send {F3} ;Switch to 2nd Melee hotbar
  55. Send \ ;unsheath weapon
  56. Sleep 280
  57. Send 3 ; que whirlwind
  58. return
  59.  
  60. Knives:
  61. $+NumpadDiv:: ;Hotkey is shift and / on numpad
  62. Send z ;Select 2H weapon
  63. Send {F3} ;Switch to 2nd Melee hotbar
  64. Send \ ;unsheath weapon
  65. Sleep 280
  66. Send 4 ; que powerattack
  67. return
  68.  
  69. Knives2ndOption:
  70. $+^NumpadDiv:: ;Hotkey is shift+Ctrl and / on numpad
  71. Send z ;Select 2H weapon
  72. Send {F3} ;Switch to 2nd Melee hotbar
  73. Send \ ;unsheath weapon
  74. Sleep 280
  75. Send 4 ; que powerattack
  76. return
  77.  
  78. Archery:
  79. NumpadAdd:: ;Hotkey is + on numpad
  80. Send k ;Select bow
  81. Send {F2} ;Switch to Melee hotbar
  82. Send \ ;unsheath weapon
  83. Sleep 280
  84. Send 7 ; que disabling shot
  85. return
  86.  
  87. Sword&Board:
  88. NumpadSub:: ;Hotkey is - on numpad
  89. Send l ;Select 1H sword
  90. Send {F2} ;Switch to Melee Hotbar
  91. Send \ ;unsheath weapon
  92. Sleep 525
  93. Send `; ;Select shield
  94. return
  95.  
  96. Healing:
  97. NumpadMult:: ;Hotkey is * on numpad
  98. Send j ;Select Healing staff
  99. Send {F4} ;Switch to Heal hotbar
  100. Send \ ;unsheath weapon
  101. return
  102.  
  103. SkinningKnifeORbattlespike:
  104. $+r:: ;Hotkey is Shift and R
  105. Send ] ;Select skinning knife
  106. Send \ ;unsheath weapon
  107. return
Add Comment
Please, Sign In to add comment