Advertisement
Caduseus

Equinox Sleep Spam and Melee Spin Attack

Nov 7th, 2019
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Warframe Equinox Sleep Spam and Melee spinning attack
  2.  
  3. ; Bind the skill you want to spam to Insert (in this case Sleep) to make the script work.
  4. ; When script is loaded, press Pause twice to start the Sleep-spam Loop.
  5.  
  6.  
  7.  
  8. #NoEnv                      ; Recommended for performance and compatibility with future AutoHotkey releases.
  9. ; #Warn                     ; Enable warnings to assist with detecting common errors.
  10. SendMode Input              ; Recommended for new scripts due to its superior speed and reliability.
  11. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  12.  
  13.  
  14. ; The Spin Attack button you want to use
  15. SpinAtkButton = XButton2
  16.  
  17. ; Your Melee Attack button in-game
  18. MeleeButton = XButton1
  19.  
  20. ; Your Crouch button in-game
  21. Crouch = LCtrl
  22.  
  23. SetKeyDelay, 10, 10
  24. AtkWait = 300
  25. MiniWait = 25
  26. ToolTipOnScreenTime = 2000
  27. StartStop2 = 0
  28. Spam2Btn = Insert
  29. SpamSleep = 200
  30. KeepSpamming = false
  31.  
  32.  
  33. #IfWinActive ahk_exe Warframe.x64.exe
  34.  
  35. Hotkey, %SpinAtkButton%, SpinA
  36. Return
  37.  
  38. SpinA:
  39.     While GetKeyState(SpinAtkButton, "P") {    
  40.        
  41.         ; Spin attack for normal melee mode with Melee Attack button
  42.         Send {%Crouch% Down}           
  43.         Sleep, %MiniWait%
  44.         Send {%MeleeButton%}
  45.         Sleep, %MiniWait%
  46.         Send {%Crouch% Up}
  47.         Sleep, %AtkWait%           
  48.     }
  49. Return
  50.  
  51.  
  52. ; This part keeps spamming Spam2Btn (Insert by default) when Pause is pressed, and stops when you press Pause again. Rebind if necessary to another key.
  53. #MaxThreadsPerHotkey 3
  54. Pause::    
  55.     #MaxThreadsPerHotkey 1
  56.     ; If loop is running, a button press will trigger the loop in other thread to end
  57.     If KeepSpamming  
  58.     {
  59.         KeepSpamming := false  
  60.         Return
  61.     }
  62.    
  63.    
  64.     ; Initiate the loop to run
  65.     KeepSpamming := true
  66.     Loop
  67.     {
  68.         ; Alt+Tab (usually) stops the loop. If you press it fast, it might not.
  69.         if (GetKeyState("LAlt", "P") && GetKeyState("Tab", "P"))
  70.         {
  71.             Break
  72.         }
  73.        
  74.        
  75.         ; Shift will pause the Loop, so you can sprint. Release Shift to continue the Loop.
  76.         While GetKeyState("LShift", "P")
  77.         {
  78.             Keywait, LShift
  79.         }
  80.        
  81.        
  82.         ; Spam "Spam2Btn" (Insert by default) every "SpamSleep" milliseconds (200 ms by default)
  83.         Send {%Spam2Btn%}
  84.         Sleep %SpamSleep%
  85.        
  86.        
  87.         If Not KeepSpamming  
  88.             Break  
  89.     }
  90.    
  91.     ; Failsafe
  92.     KeepSpamming := false
  93. Return
  94.  
  95.  
  96. Esc::
  97.     If KeepSpamming
  98.     {
  99.         KeepSpamming := false
  100.     }
  101.     Send {Esc}
  102. Return
  103.  
  104.  
  105. ; Increase delay (Shift + PageUp)
  106. +PgUp::
  107.     AtkWait += 25
  108.     Tooltip, Delay: %AtkWait%ms
  109.     SetTimer, RemoveToolTip, %ToolTipOnScreenTime%
  110. Return
  111.  
  112.  
  113. ; Decrease delay  (Shift + PageDown)
  114. +PgDn::
  115.     AtkWait -= 25
  116.     Tooltip, Delay: %AtkWait%ms
  117.     SetTimer, RemoveToolTip, %ToolTipOnScreenTime%
  118. Return
  119.  
  120.  
  121. ; Show timer and swings  (Shift + Home)
  122. $+Home::
  123.     Tooltip, Delay: %AtkWait%ms
  124.     SetTimer, RemoveToolTip, %ToolTipOnScreenTime%
  125. Return
  126.  
  127. #IfWinActive
  128.  
  129.  
  130. RemoveToolTip:
  131.     SetTimer, RemoveToolTip, Off
  132.     ToolTip
  133. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement