Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance force
- #ifWinActive,DOTA 2
- ;Menu, tray, NoStandard
- ;Menu, tray, add, Config
- ;Menu, tray, Default, Config
- ;Menu, tray, add, Info
- ;Menu, tray, add, About
- ;Menu, tray, add, Exit
- IfNotExist,%A_Temp%\5s.mp3
- UrlDownloadToFile, https://dl.dropbox.com/u/45755423/Dota2/Tools/Rosh-Timer/5s.mp3, %A_Temp%\5s.mp3
- IfNotExist,%A_Temp%\10s.mp3
- UrlDownloadToFile, https://dl.dropbox.com/u/45755423/Dota2/Tools/Rosh-Timer/10s.mp3, %A_Temp%\10s.mp3
- IfNotExist,%A_Temp%\30s.mp3
- UrlDownloadToFile, https://dl.dropbox.com/u/45755423/Dota2/Tools/Rosh-Timer/30s.mp3, %A_Temp%\30s.mp3
- IfNotExist,%A_Temp%\announcer.mp3
- UrlDownloadToFile, https://dl.dropbox.com/u/45755423/Dota2/Tools/Rosh-Timer/announcer.mp3, %A_Temp%\announcer.mp3
- IniRead, accepter, %A_temp%\d2a.ini, Config, Accepter, F13
- IniRead, rosh, %A_temp%\d2a.ini, Config, Roshan, ^!R
- Hotkey,%accepter%, accept
- if %rosh%
- Hotkey,%rosh%, roshbutton
- return
- accept:
- gojoin:=!gojoin
- if gojoin
- {
- x:=A_ScreenWidth*.42
- y:=A_ScreenHeight*.45
- gosub, Accepter
- sleep 100
- SetTimer, Accepter, 2012
- ToolTip, Dota2 Accepter is active`nPress %accepter% to deactivate
- }
- else
- {
- ToolTip
- SetTimer, Accepter, off
- }
- return
- Accepter:
- ifWinActive,DOTA 2
- {
- MouseMove,x,y
- sleep,1
- Click
- }
- return
- Info:
- MsgBox 64, Info, Press %accepter% to activate/deactivate `n`nType /rosh or press %rosh% to activate roshan notifier`nType /unrosh to deactivate roshan notifier
- return
- About:
- Run http://www.playdota.com/forums/blog.php?b=146942
- return
- Config:
- gui, font, s10 w500
- Gui, Add, Text, x0 y5 w200, Dota2 Accepter Hotkey:
- Gui, Add, Hotkey, vaccepter x0 y30 w200 h30 , %accepter%
- Gui, Add, Text, x0 y60 w200, Rosh Notification Hotkey:
- Gui, Add, Hotkey, vrosh x0 y85 w200 h30 , %rosh%
- Gui, Add, Button, gsaveconfig x0 y115 w200 h30,Save
- Gui, Show, w200 h145
- return
- saveconfig:
- Hotkey, %accepter%, Off
- Hotkey, %rosh%, Off
- gui, submit
- IniWrite,%accepter%, %A_temp%\d2a.ini, Config, Accepter
- IniWrite,%rosh%, %A_temp%\d2a.ini, Config, Rosh
- Hotkey,%accepter%, accept
- Hotkey,%rosh%, roshbutton
- gui, destroy
- return
- GuiEscape:
- gui, destroy
- return
- Exit:
- ExitApp
- return
- ::/rosh::
- if RoshDead
- {
- send Rosh will spawn in %t% seconds{enter}
- }
- else
- {
- t:=600
- RoshDead:=1
- SetTimer, RoshAnounce, -600000
- SetTimer, RoshAnounce30, -570000
- SetTimer, RoshAnounce10, -590000
- SetTimer, RoshAnounce5, -595000
- settimer, remains, 1000
- send Rosh Countdown Activated!{enter}
- }
- return
- roshbutton:
- if RoshDead
- {
- send {enter}Rosh will spawn in %t% seconds{enter}
- }
- else
- {
- t:=600
- RoshDead:=1
- SetTimer, RoshAnounce, -600000
- SetTimer, RoshAnounce30, -570000
- SetTimer, RoshAnounce10, -590000
- SetTimer, RoshAnounce5, -595000
- settimer, remains, 1000
- Sleep, 500
- send {enter}Press %rosh% again to view Roshan Info{enter}
- }
- return
- remains:
- t:=t-1
- return
- RoshAnounce:
- RoshDead:=0
- SetTimer, remains, off
- ifWinActive,DOTA 2
- send {enter}Rosh has been spawned!!!{enter}
- SoundPlay, %A_temp%\announcer.mp3
- return
- RoshAnounce30:
- ifWinActive,DOTA 2
- send {enter}Rosh will be spawned in 30 seconds!{enter}
- SoundPlay, %A_temp%\30s.mp3
- return
- RoshAnounce10:
- SoundPlay, %A_temp%\10s.mp3
- return
- RoshAnounce5:
- SoundPlay, %A_temp%\5s.mp3
- return
- ::/unrosh::
- SetTimer, RoshAnounce, off
- SetTimer, RoshAnounce30, off
- SetTimer, RoshAnounce10, off
- SetTimer, RoshAnounce5, off
- SetTimer, remains, off
- send Roshan notifier deactivated{enter}
- RoshDead:=0
- return
- #SingleInstance force
- #MaxHotKeysPerInterval 10000
- #IfWinactive, DOTA 2
- {
- *F5::sendPlay, {Enter}[Miss Hero(es) Top]{Enter}
- *F6::sendPlay, {Enter}[Miss Hero(es) Mid]{Enter}
- *F7::sendPlay, {Enter}[Miss Hero(es) Bottom]{Enter}
- *F8::sendPlay, {Enter}[Hero(es) Returned]{Enter}
- end::sendplay, {Enter}Animal dudes,and on fb ugrade it{Enter}
- ins::sendPlay, {Enter}CHARGED{!}{!}{!}{Enter}
- del::sendPlay, +{Enter}COMMEND MEΒ
- PgDn::sendPlay, AND I'LL COMMEND U{!}{!}{!}:D{Enter}
- PgUp::sendPlay, {Enter}Go to www.killsteal-legends.net/{Enter}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement