Advertisement
omgfrost

Roshan Notifier and such

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