Phantom2155

Fixed dw script

Mar 24th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1. #SingleInstance,Force
  2. #IfWinActive, StarBreak - Google Chrome, ; Make sure this is the title of the window. If the script doesn't seem to work try putting a ; before this line.
  3. SetKeyDelay, 0
  4.  
  5.  
  6.  
  7. JumpAttackHotkey = Space ;Must be the key set in your controls. unless stated otherwise. This one specifically should be space by default
  8. JumpNormalHotkey = Ctrl ; Can be any key at all.
  9. DownSpecialHotkey = z ; Can be any key at all.
  10. AttackHotkey = d
  11. SpecialHotkey = shift
  12. UpHotkey = up
  13. DownHotkey = down
  14. RightHotkey = right
  15. LeftHotkey = left
  16. InventoryHotkey = tab
  17. ActivateHotkey = a ;
  18. BounceHotkey = x ; Can be any key at all.
  19. SwapWeaponHotkey = q ; Can be any key at all.
  20. SpamDashLeftHotkey = f1 ; Can be any key at all.
  21. SpamDashRightHotkey = f2 ; Can be any key at all.
  22. DisableJumpAttackHotkey = e ;
  23. SwapSlot4Hotkey = r ;
  24.  
  25.  
  26. Hotkey, *~$%JumpAttackHotkey%, JumpAttackLabel
  27. Hotkey, *$%JumpNormalHotkey%, JumpNormalLabel
  28. Hotkey, *$%JumpNormalHotkey% UP, JumpNormalLabelUp
  29. Hotkey, *$%DownSpecialHotkey%, DownSpecialLabel
  30. Hotkey, *$%AttackHotkey%, AttackLabel
  31. Hotkey, *$%SwapWeaponHotkey%, SwapWeaponLabel
  32. Hotkey, *$%BounceHotkey%, BounceLabel
  33. Hotkey, *$%DisableJumpAttackHotkey%, DisableJumpAttackLabel
  34. Hotkey, *$%SwapSlot4Hotkey%,SwapSlot4
  35.  
  36.  
  37.  
  38. JumpAttackEnabled = true
  39. return
  40.  
  41. JumpAttackLabel:
  42. if(JumpAttackEnabled = "true")
  43. {
  44. Sleep,40
  45. Send, {%AttackHotkey% Down}
  46. Sleep,1
  47. Send, {%AttackHotkey% Up}
  48. GetKeyState, state, %JumpAttackHotkey%,P
  49. While (state = "D")
  50. {
  51. Sleep,1
  52. GetKeyState, state, %JumpAttackHotkey%,P
  53. }
  54. }
  55. return
  56.  
  57. DisableJumpAttackLabel:
  58. if(JumpAttackEnabled = "true")
  59. {
  60. JumpAttackEnabled = false
  61. }
  62. else if(JumpAttackEnabled = "false")
  63. {
  64. JumpAttackEnabled = true
  65. }
  66.  
  67.  
  68.  
  69. Send, {%InventoryHotkey%}{%RightHotkey%}{%ActivateHotkey%}{%InventoryHotkey%}
  70. GetKeyState, state, %UpHotkey%,P
  71. if(state = "D")
  72. {
  73. Send, {%UpHotkey% down}
  74. }
  75. GetKeyState, state, %DownHotkey%,P
  76. if(state = "D")
  77. {
  78. Send, {%DownHotkey% down}
  79. }
  80. GetKeyState, state, %LeftHotkey%,P
  81. if(state = "D")
  82. {
  83. Send, {%LeftHotkey% down}
  84. }
  85. GetKeyState, state, %RightHotkey%,P
  86. if(state = "D")
  87. {
  88. Send, {%RightHotkey% down}
  89. }
  90. GetKeyState, state, %JumpAttackHotkey%,P
  91. if(state = "D")
  92. {
  93. Send, {%JumpAttackHotkey% down}
  94. }
  95.  
  96. return
  97.  
  98.  
  99. SwapSlot4:
  100. Send, {%InventoryHotkey%}{%DownHotkey%}{%ActivateHotkey%}{%InventoryHotkey%}
  101. GetKeyState, state, %UpHotkey%,P
  102. if(state = "D")
  103. {
  104. Send, {%UpHotkey% down}
  105. }
  106. GetKeyState, state, %DownHotkey%,P
  107. if(state = "D")
  108. {
  109. Send, {%DownHotkey% down}
  110. }
  111. GetKeyState, state, %LeftHotkey%,P
  112. if(state = "D")
  113. {
  114. Send, {%LeftHotkey% down}
  115. }
  116. GetKeyState, state, %RightHotkey%,P
  117. if(state = "D")
  118. {
  119. Send, {%RightHotkey% down}
  120. }
  121. GetKeyState, state, %JumpAttackHotkey%,P
  122. if(state = "D")
  123. {
  124. Send, {%JumpAttackHotkey% down}
  125. }
  126. return
  127.  
  128.  
  129. JumpNormalLabel:
  130. Send, {%JumpAttackHotkey% down}
  131. return
  132.  
  133. JumpNormalLabelUp:
  134. Send, {%JumpAttackHotkey% up}
  135. return
  136.  
  137. DownSpecialLabel:
  138. GetKeyState, state, %DownSpecialHotkey%,P
  139. While (state = "D")
  140. {
  141. Send {%SpecialHotkey% down}{%DownHotkey% down}
  142. Send {%SpecialHotkey% up}{%DownHotkey% up}
  143. Sleep,40
  144. GetKeyState, state, %DownSpecialHotkey%,P
  145. }
  146. return
  147.  
  148. AttackLabel:
  149. GetKeyState, state, %AttackHotkey%,P
  150. While (state = "D")
  151. {
  152. Send, {%AttackHotkey% down}
  153. Sleep, 40
  154. Send, {%AttackHotkey% up}
  155. Sleep, 1
  156. GetKeyState, state, %AttackHotkey%,P
  157. }
  158. return
  159.  
  160.  
  161. SwapWeaponLabel:
  162. Send, {%InventoryHotkey%}{%ActivateHotkey%}{%InventoryHotkey%}
  163. GetKeyState, state, %UpHotkey%,P
  164. if(state = "D")
  165. {
  166. Send, {%UpHotkey% down}
  167. }
  168. GetKeyState, state, %DownHotkey%,P
  169. if(state = "D")
  170. {
  171. Send, {%DownHotkey% down}
  172. }
  173. GetKeyState, state, %LeftHotkey%,P
  174. if(state = "D")
  175. {
  176. Send, {%LeftHotkey% down}
  177. }
  178. GetKeyState, state, %RightHotkey%,P
  179. if(state = "D")
  180. {
  181. Send, {%RightHotkey% down}
  182. }
  183. GetKeyState, state, %JumpAttackHotkey%,P
  184. if(state = "D")
  185. {
  186. Send, {%JumpAttackHotkey% down}
  187. }
  188. return
  189.  
  190. BounceLabel:
  191. GetKeyState, state, %BounceHotkey%,P
  192. While(state = "D")
  193. {
  194. Send, {%JumpAttackHotkey% down}
  195. Send, {%AttackHotkey% down}
  196. Sleep,40
  197. Send, {%AttackHotkey% Up}
  198. Send, {%JumpAttackHotkey% up}
  199. Sleep,1
  200. GetKeyState, state, %BounceHotkey%,P
  201. }
  202. Send, {%AttackHotkey% Up}
  203. Send, {%JumpAttackHotkey% up}
  204. return
  205.  
  206.  
  207.  
  208. F12::suspend
Advertisement
Add Comment
Please, Sign In to add comment