SHARE
TWEET

DD Tower Stacker (Test)

ffhighwind Nov 24th, 2019 461 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;; Dungeon Defenders -- Tower Stacker
  2. ;; Made by Double Dark (ffhighwind)
  3.  
  4. ;; REQUIREMENTS:
  5. ;; Host of the game and administrator access.
  6.  
  7. ;; USAGE:
  8. ;; CTRL + {0-9} to stack and place a tower.
  9. ;; ALT  + {0-9} to stack a tower without placing it. This allows you to orient it.
  10.  
  11. #SingleInstance Force ;No point having multiple instances, slows down PC
  12. ;#IfWinActive, Dungeon Defenders ;Disables hotkeys when the game is minimized or isn't running. This doesn't terminate the script.
  13. #NoEnv
  14. #MaxHotkeysPerInterval 20
  15. #Persistent ;Allows use of global variables instead of just hotkeys
  16. ;SendMode Input  ;Input|Play|Event|InputThenPlay, ;Faster and more reliable compared to SendEvent
  17. Menu, tray, Tip, DunDef - Tower Stacker
  18.  
  19. CoordMode, Mouse, Screen
  20. CoordMode, ToolTip, Screen
  21.  
  22. SetKeyDelay, 0, 10, Play  ; Note that both 0 and -1 are the same in SendPlay mode.
  23. SetMouseDelay, 0, Play
  24. ;If (A_AhkVersion <= "1.1.23")
  25. ;{
  26. ;    msgbox, You need AutoHotkey v1.1.23 or later to run this script. `n`nPlease go to https://autohotkey.com/ and download a recent version.
  27. ;    exit
  28. ;}
  29.  
  30. ;If !A_IsAdmin {
  31. ;    Run *RunAs "%A_ScriptFullPath%"
  32. ;    ExitApp
  33. ;}
  34.  
  35. ;End::
  36. ;ExitApp
  37. ;return
  38.  
  39.  
  40. /* You can customize the hotkeys to your liking using the following
  41.     ! ALT, ^ CTRL, + SHIFT, # WIN
  42.     <! (< left key, > right key)
  43.     & means combine keys
  44.     * means any ALT/CTRL/SHIFT
  45.     ~ means pass input through
  46.     $ means can send itself without recursion
  47.     & means combine keys
  48.     Up means fired on release
  49.    
  50.     Example Hotkey:
  51.     <!#n Up:: ; call when n is released and left alt is down
  52.     return
  53. */
  54.  
  55. StackTower1(Key)
  56. {
  57.     SendInput, %Key%{Space}
  58. }
  59.  
  60. StackTower2(Key)
  61. {
  62.     SendInput, %Key%{Space}{Space}
  63.     MouseClick, left,,, 2, 0
  64. }
  65.  
  66. ;;;;;;;;;;;  CTRL  ;;;;;;;;;;;
  67.  
  68. ^0::
  69. StackTower2(0)
  70. return
  71.  
  72. ^1::
  73. StackTower2(1)
  74. return
  75.  
  76. ^2::
  77. StackTower2(2)
  78. return
  79.  
  80. ^3::
  81. StackTower2(3)
  82. return
  83.  
  84. ^4::
  85. StackTower2(4)
  86. return
  87.  
  88. ^5::
  89. StackTower2(5)
  90. return
  91.  
  92. ^6::
  93. StackTower2(6)
  94. return
  95.  
  96. ^7::
  97. StackTower2(7)
  98. return
  99.  
  100. ^8::
  101. StackTower2(8)
  102. return
  103.  
  104. ^9::
  105. StackTower2(9)
  106. return
  107.  
  108. ;;;;;;;;;;;  ALT  ;;;;;;;;;;;
  109.  
  110. !0::
  111. StackTower1(0)
  112. return
  113.  
  114. !1::
  115. StackTower1(1)
  116. return
  117.  
  118. !2::
  119. StackTower1(2)
  120. return
  121.  
  122. !3::
  123. StackTower1(3)
  124. return
  125.  
  126. !4::
  127. StackTower1(4)
  128. return
  129.  
  130. !5::
  131. StackTower1(5)
  132. return
  133.  
  134. !6::
  135. StackTower1(6)
  136. return
  137.  
  138. !7::
  139. StackTower1(7)
  140. return
  141.  
  142. !8::
  143. StackTower1(8)
  144. return
  145.  
  146. !9::
  147. StackTower1(9)
  148. return
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top