Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $NumpadSub::Suspend
- $NumpadMult::Start()
- $Numpad9::ObjectiveTaken(1) ; baron
- $Numpad7::ObjectiveTaken(2) ; dragon
- $Numpad5::ObjectiveTaken(7) ; greater relic
- $Numpad6::ObjectiveTaken(3) ; our blue
- $Numpad4::ObjectiveTaken(5) ; our red
- $Numpad3::ObjectiveTaken(4) ; their blue
- $Numpad1::ObjectiveTaken(6) ; their red
- start_time := ""
- elapsed_time := ""
- NamesArray := ""
- SpawnTimesArray := ""
- Start()
- {
- global
- start_time := A_TickCount
- Names = baron,dragon,our blue,their blue,our red,their red,greater relic
- SpawnTimes = 7,6,5,5,5,5,3
- StringSplit, NamesArray, Names, `,, `,
- StringSplit, SpawnTimesArray, SpawnTimes, `,, `,
- }
- ObjectiveTaken(id)
- {
- global
- seconds := ""
- minutes := ""
- if(start_time != "") {
- elapsed_time := A_TickCount - start_time ; Getting time in ms from beginning of game
- elapsed_time := elapsed_time // 1000 ; Dividing to go from ms to seconds
- seconds := Mod(elapsed_time, 60)
- minutes := elapsed_time // 60
- ; now we have the current minutes:seconds that passed since Start() ran.
- minutes += SpawnTimesArray%id% ; Adding the selected objective's spawn time
- name := NamesArray%id%
- Send {Enter}
- Sleep 20
- Send %name% respawns at%A_Space%
- if(minutes < 10) {
- Send 0%minutes%:
- }else {
- Send %minutes%:
- }
- if(seconds < 10) {
- Send 0%seconds%
- }else {
- Send %seconds%
- }
- Sleep 20
- Send {Enter}
- }
- }
Add Comment
Please, Sign In to add comment