Advertisement
Guest User

neutraldin

a guest
Feb 7th, 2019
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Warn
  2. #Persistent
  3. #IfWinActive, Diablo II ahk_class Diablo II
  4.  
  5. Menu, Tray, MainWindow
  6.  
  7. SendMode InputThenPlay
  8.  
  9. 5::shortTermBuffs()
  10. 6::longTermBuffs()
  11. 7::summons()
  12.  
  13. shortTermBuffs() {
  14.         activateSkill("{F5}") ;Demiurge
  15.         activateSkill("{F6}") ;Sacred Armour
  16.         activateSkill("{F7}") ;Rapture
  17.         activateSkill("{F8}") ;Vindicate
  18.         Send, {F1} ;switch back to main active skill
  19.         SetTimer, shortTermBuffsSound, -13000 ; play a sound when it is time to recast buffs (based on 16 second Demiurge cooldown + time used to cast subsequent buffs)
  20.     }
  21. shortTermBuffsSound() {
  22.         SoundPlay, *-48
  23.     }
  24.  
  25. longTermBuffs() {
  26.         activateSkill("{F9}") ;Vessel of Justice
  27.         activateSkill("{F10}") ;Vessel of Retribution
  28.         ;TODO add oSkill buff from weapon swap (assuming it's fairly long term)
  29.         Send, {F1} ;switch back to main active skill
  30.         ;no timer here in the assumption that it's more natural to do it once in a while (e.g. between zones)
  31.     }
  32.    
  33. summons() {
  34.         Loop 10 {
  35.             activateSkill("{F4}") ;Scourge
  36.         }
  37.         Loop 5 {
  38.             activateSkill("{F3}") ;Hoplite
  39.         }
  40.         Send, {F1} ;switch back to main active skill
  41.     }
  42.  
  43. activateSkill(hotkey, delayAfterCastingInMilliseconds:=800, delayBetweenInteractionsInMilliseconds:=25) {
  44.         Send, %hotkey%
  45.         Sleep, %delayBetweenInteractionsInMilliseconds%
  46.         Click, Right
  47.         Sleep, %delayBetweenInteractionsInMilliseconds%
  48.         Click, Right
  49.         Sleep, %delayBetweenInteractionsInMilliseconds%
  50.         Click, Right
  51.         Sleep, %delayBetweenInteractionsInMilliseconds%
  52.         Click, Right
  53.         Sleep, %delayAfterCastingInMilliseconds%
  54.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement