Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Warn
- #Persistent
- #IfWinActive, Diablo II ahk_class Diablo II
- Menu, Tray, MainWindow
- SendMode InputThenPlay
- 5::shortTermBuffs()
- 6::longTermBuffs()
- 7::summons()
- shortTermBuffs() {
- activateSkill("{F5}") ;Demiurge
- activateSkill("{F6}") ;Sacred Armour
- activateSkill("{F7}") ;Rapture
- activateSkill("{F8}") ;Vindicate
- Send, {F1} ;switch back to main active skill
- 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)
- }
- shortTermBuffsSound() {
- SoundPlay, *-48
- }
- longTermBuffs() {
- activateSkill("{F9}") ;Vessel of Justice
- activateSkill("{F10}") ;Vessel of Retribution
- ;TODO add oSkill buff from weapon swap (assuming it's fairly long term)
- Send, {F1} ;switch back to main active skill
- ;no timer here in the assumption that it's more natural to do it once in a while (e.g. between zones)
- }
- summons() {
- Loop 10 {
- activateSkill("{F4}") ;Scourge
- }
- Loop 5 {
- activateSkill("{F3}") ;Hoplite
- }
- Send, {F1} ;switch back to main active skill
- }
- activateSkill(hotkey, delayAfterCastingInMilliseconds:=800, delayBetweenInteractionsInMilliseconds:=25) {
- Send, %hotkey%
- Sleep, %delayBetweenInteractionsInMilliseconds%
- Click, Right
- Sleep, %delayBetweenInteractionsInMilliseconds%
- Click, Right
- Sleep, %delayBetweenInteractionsInMilliseconds%
- Click, Right
- Sleep, %delayBetweenInteractionsInMilliseconds%
- Click, Right
- Sleep, %delayAfterCastingInMilliseconds%
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement