Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;LEAGUE OF LEGENDS CREEP TIMERS - MINIMALIST VERSION
- ;VERSION 1.0
- ;Created by unknown, modded by theMizzler
- ;Minimal version created by pacov
- ;Last update - 5/29/2012
- ;DESCRIPTION
- ;The purpose of this AutoHotKey script is to enable League of Legends players to quickly track when critical creeps are spawned.
- ;The script handles baron, dragon, red, and blue buffs. In short, the user with this script installed presses a hotkey (detailed
- ;below) to track when a specific creep has died. When the user presses the hotkey, a chat message is sent indicating the respawn
- ;time of those specific creeps. The bottom line is that this script makes it simple for everyone on the team to know when creeps
- ;respawn just by having 1 person paying enough attention to press a hot key when a particular creep dies.
- ;HOW TO INSTALL
- ;Step 1 - Download and install AutoHotkey at http://www.autohotkey.com/download/
- ;Step 2 - If you received this code via pastebin, open notepad, copy and paste the info, and save the file as whatever you want.
- ;be sure to save the file with the extension .ahk (ex lol.ahk). If you received this file as a .ahk file, move to step 3.
- ;HOW TO RUN
- ;Right click on the .ahk file and click run. If you compiled the script, simply click on the compiled file and it will execute.
- ;HOW TO USE IN GAME
- ;The following step is CRITICAL. At 15 seconds into the game, you MUST press f9. This sets the internal counter within the
- ;script so that the script believes your game time is currently at 15 seconds. You have to do this at the start of every game
- ;and it is not possible to automate it further. The thing to understand here is that the script has NO idea of when your game
- ;has started unless you tell it (by pressing f9 at 15 seconds). When you are done playing, be sure to press F10 to stop the
- ;timers
- ;HOTKEYS
- ;F9 = Reset game timer to 15 seconds(Use this after 15 seconds ingame)
- ;F10 = Stop all timers (Use this when you finish the game our you will have random announcements type on whatever window is open)
- ;F1 = OUR BLUE
- ;F2 = OUR RED
- ;F3 = THEIR BLUE
- ;F4 = THEIR RED
- ;F5 = DRAGON
- ;F6 = BARON NASH
- ;Everything below this line is the script for the game. Good luck and have fun!
- #Persistent
- S = 0
- M = 0
- H = 0
- ~F1::
- tH := H
- tM := M + 5
- tS := S
- if tM > 60
- {
- tH:= H + 1
- tM := tM - 60
- }
- zM := ""
- zS := ""
- if tM < 10
- zM := "0"
- if tS < 10
- zS := "0"
- Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " our Blue")
- return
- ~F2::
- tH := H
- tM := M + 5
- tS := S
- if tM > 60
- {
- tH:= H + 1
- tM := tM - 60
- }
- zM := ""
- zS := ""
- if tM < 10
- zM := "0"
- if tS < 10
- zS := "0"
- Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " our Red")
- return
- ~F3::
- tH := H
- tM := M + 5
- tS := S
- if tM > 60
- {
- tH:= H + 1
- tM := tM - 60
- }
- zM := ""
- zS := ""
- if tM < 10
- zM := "0"
- if tS < 10
- zS := "0"
- Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " their Blue")
- return
- ~F4::
- tH := H
- tM := M + 5
- tS := S
- if tM > 60
- {
- tH:= H + 1
- tM := tM - 60
- }
- zM := ""
- zS := ""
- if tM < 10
- zM := "0"
- if tS < 10
- zS := "0"
- Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " their Red")
- return
- ~F5::
- tH := H
- tM := M + 6
- tS := S
- if tM > 60
- {
- tH:= H + 1
- tM := tM - 60
- }
- zM := ""
- zS := ""
- if tM < 10
- zM := "0"
- if tS < 10
- zS := "0"
- Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " Drake")
- return
- ~F6::
- tH := H
- tM := M + 7
- tS := S
- if tM > 60
- {
- tH:= H + 1
- tM := tM - 60
- }
- zM := ""
- zS := ""
- if tM < 10
- zM := "0"
- if tS < 10
- zS := "0"
- Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " Baron")
- return
- ~F9::
- S = 15
- M = 0
- H = 0
- SetTimer, Update, 1000
- return
- ~F10::
- MsgBox, 0x40000, JungleTimer, JungleTimer Stopped, 0.75
- SetTimer, Update, Off
- return
- Chat(msg) {
- Send {Enter}
- sleep 50
- Send %msg%
- sleep 50
- Send {Enter}
- }
- Update:
- if S = 59
- {
- S := 0
- M += 1
- }
- if M = 59
- {
- M := 0
- H += 1
- }
- S += 1
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement