omgfrost

Dota2

Sep 25th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. #SingleInstance force
  2. #ifWinActive,DOTA 2
  3. ;Menu, tray, NoStandard
  4. ;Menu, tray, add, Config
  5. ;Menu, tray, Default, Config
  6. ;Menu, tray, add, Info
  7. ;Menu, tray, add, About
  8. ;Menu, tray, add, Exit
  9.  
  10. IfNotExist,%A_Temp%\5s.mp3
  11. UrlDownloadToFile, https://dl.dropbox.com/u/45755423/Dota2/Tools/Rosh-Timer/5s.mp3, %A_Temp%\5s.mp3
  12. IfNotExist,%A_Temp%\10s.mp3
  13. UrlDownloadToFile, https://dl.dropbox.com/u/45755423/Dota2/Tools/Rosh-Timer/10s.mp3, %A_Temp%\10s.mp3
  14. IfNotExist,%A_Temp%\30s.mp3
  15. UrlDownloadToFile, https://dl.dropbox.com/u/45755423/Dota2/Tools/Rosh-Timer/30s.mp3, %A_Temp%\30s.mp3
  16. IfNotExist,%A_Temp%\announcer.mp3
  17. UrlDownloadToFile, https://dl.dropbox.com/u/45755423/Dota2/Tools/Rosh-Timer/announcer.mp3, %A_Temp%\announcer.mp3
  18. IniRead, accepter, %A_temp%\d2a.ini, Config, Accepter, F13
  19. IniRead, rosh, %A_temp%\d2a.ini, Config, Roshan, ^!R
  20. Hotkey,%accepter%, accept
  21. if %rosh%
  22. Hotkey,%rosh%, roshbutton
  23. return
  24.  
  25. accept:
  26. gojoin:=!gojoin
  27. if gojoin
  28. {
  29. x:=A_ScreenWidth*.42
  30. y:=A_ScreenHeight*.45
  31. gosub, Accepter
  32. sleep 100
  33. SetTimer, Accepter, 2012
  34. ToolTip, Dota2 Accepter is active`nPress %accepter% to deactivate
  35. }
  36. else
  37. {
  38. ToolTip
  39. SetTimer, Accepter, off
  40. }
  41. return
  42.  
  43. Accepter:
  44. ifWinActive,DOTA 2
  45. {
  46. MouseMove,x,y
  47. sleep,1
  48. Click
  49. }
  50. return
  51.  
  52. Info:
  53. MsgBox 64, Info, Press %accepter% to activate/deactivate `n`nType /rosh or press %rosh% to activate roshan notifier`nType /unrosh to deactivate roshan notifier
  54. return
  55. About:
  56. Run http://www.playdota.com/forums/blog.php?b=146942
  57. return
  58.  
  59. Config:
  60. gui, font, s10 w500
  61. Gui, Add, Text, x0 y5 w200, Dota2 Accepter Hotkey:
  62. Gui, Add, Hotkey, vaccepter x0 y30 w200 h30 , %accepter%
  63. Gui, Add, Text, x0 y60 w200, Rosh Notification Hotkey:
  64. Gui, Add, Hotkey, vrosh x0 y85 w200 h30 , %rosh%
  65. Gui, Add, Button, gsaveconfig x0 y115 w200 h30,Save
  66. Gui, Show, w200 h145
  67. return
  68.  
  69. saveconfig:
  70. Hotkey, %accepter%, Off
  71. Hotkey, %rosh%, Off
  72. gui, submit
  73. IniWrite,%accepter%, %A_temp%\d2a.ini, Config, Accepter
  74. IniWrite,%rosh%, %A_temp%\d2a.ini, Config, Rosh
  75. Hotkey,%accepter%, accept
  76. Hotkey,%rosh%, roshbutton
  77. gui, destroy
  78. return
  79. GuiEscape:
  80. gui, destroy
  81. return
  82. Exit:
  83. ExitApp
  84. return
  85.  
  86. ::/rosh::
  87. if RoshDead
  88. {
  89. send Rosh will spawn in %t% seconds{enter}
  90. }
  91. else
  92. {
  93. t:=600
  94. RoshDead:=1
  95. SetTimer, RoshAnounce, -600000
  96. SetTimer, RoshAnounce30, -570000
  97. SetTimer, RoshAnounce10, -590000
  98. SetTimer, RoshAnounce5, -595000
  99. settimer, remains, 1000
  100. send Rosh Countdown Activated!{enter}
  101. }
  102. return
  103.  
  104. roshbutton:
  105. if RoshDead
  106. {
  107. send {enter}Rosh will spawn in %t% seconds{enter}
  108. }
  109. else
  110. {
  111. t:=600
  112. RoshDead:=1
  113. SetTimer, RoshAnounce, -600000
  114. SetTimer, RoshAnounce30, -570000
  115. SetTimer, RoshAnounce10, -590000
  116. SetTimer, RoshAnounce5, -595000
  117. settimer, remains, 1000
  118. Sleep, 500
  119. send {enter}Press %rosh% again to view Roshan Info{enter}
  120. }
  121. return
  122.  
  123. remains:
  124. t:=t-1
  125. return
  126.  
  127. RoshAnounce:
  128. RoshDead:=0
  129. SetTimer, remains, off
  130. ifWinActive,DOTA 2
  131. send {enter}Rosh has been spawned!!!{enter}
  132. SoundPlay, %A_temp%\announcer.mp3
  133. return
  134.  
  135. RoshAnounce30:
  136. ifWinActive,DOTA 2
  137. send {enter}Rosh will be spawned in 30 seconds!{enter}
  138. SoundPlay, %A_temp%\30s.mp3
  139. return
  140. RoshAnounce10:
  141. SoundPlay, %A_temp%\10s.mp3
  142. return
  143. RoshAnounce5:
  144. SoundPlay, %A_temp%\5s.mp3
  145. return
  146.  
  147. ::/unrosh::
  148. SetTimer, RoshAnounce, off
  149. SetTimer, RoshAnounce30, off
  150. SetTimer, RoshAnounce10, off
  151. SetTimer, RoshAnounce5, off
  152. SetTimer, remains, off
  153. send Roshan notifier deactivated{enter}
  154. RoshDead:=0
  155. return
  156. #SingleInstance force
  157. #MaxHotKeysPerInterval 10000
  158. #IfWinactive, DOTA 2
  159. {
  160. *F5::sendPlay, {Enter}[Miss Hero(es) Top]{Enter}
  161. *F6::sendPlay, {Enter}[Miss Hero(es) Mid]{Enter}
  162. *F7::sendPlay, {Enter}[Miss Hero(es) Bottom]{Enter}
  163. *F8::sendPlay, {Enter}[Hero(es) Returned]{Enter}
  164. end::sendplay, {Enter}Animal dudes,and on fb ugrade it{Enter}
  165. ins::sendPlay, {Enter}CHARGED{!}{!}{!}{Enter}
  166. del::sendPlay, +{Enter}COMMEND MEΒ 
  167. PgDn::sendPlay, AND I'LL COMMEND U{!}{!}{!}:D{Enter}
  168. PgUp::sendPlay, {Enter}Go to www.killsteal-legends.net/{Enter}
  169. }
Add Comment
Please, Sign In to add comment