Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;LEAGUE OF LEGENDS CREEP TIMERS - REVERSE VERSION
- ;VERSION 2.3
- ;Created by unknown, modded by theMizzler
- ;Minimal version created by pacov
- ;Last update - 5/31/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 timer is kept of that objective. When the corresponding chat key is pressed, the time until that objective is chatted.
- ;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 90 seconds into the game, you mustpress F9. This sets the internal counter within the
- ;script so that the script believes your game time is currently at 90 seconds (Minions have spawned). 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).
- ;This variable determines when in game to press the F9 key to synchronize the time of the script and the game, in seconds.
- clockSynchroniseTime = 90
- ;These variables determine what to call the objectives in chat
- oBName = oB
- oRName = oR
- tBName = tB
- tRName = tR
- dName = D
- bName = B
- ;Reverse timers
- oBTimer := 0
- oRTimer := 0
- tBTimer := 0
- tRTimer := 0
- dTimer := 0
- bTimer := 0
- ;These values determine whether reminders be shown.
- ;-1: this reminder is not shown
- ;0: it is announced when this objective spawns
- ;any value over 0: this many seconds before the objective spawns, a reminder is shown
- ;HOTKEYS
- ;F9 = Reset game timer to 90 seconds (Use this after 90 seconds ingame. Synchonize time is adjustable.)
- ;Shift+F1 = time OUR BLUE
- ;Shift+F2 = time OUR RED
- ;Shift+F3 = time THEIR BLUE
- ;Shift+F4 = time THEIR RED
- ;Shift+F5 = time DRAGON
- ;Shift+F6 = time BARON NASH
- ;F1 = report OUR BLUE
- ;F2 = report OUR RED
- ;F3 = report THEIR BLUE
- ;F4 = report THEIR RED
- ;F5 = report DRAGON
- ;F6 = report BARON
- ;Everything below this line is the script for the game. Good luck and have fun!
- #Persistent
- GameStartTime := -1
- GetGameSeconds() {
- global GameStartTime
- return (A_TickCount - GameStartTime)//1000
- }
- MakeTime(totalSeconds) {
- S := mod(totalSeconds, 60)
- M := mod((totalSeconds // 60), 60)
- H := mod((totalSeconds // 3600), 3600)
- zM := ""
- zS := ""
- zH := ""
- if M < 10
- zM := "0"
- if S < 10
- zS := "0"
- if H > 0
- zH := H . ":"
- return (zH . zM . M . ":" . zS . S)
- }
- TimeStamp(name, delay) {
- delaySeconds := GetGameSeconds() + delay
- Chat(MakeTime(delaySeconds) . " " . name)
- }
- Handle(name, timer) {
- timeDiff := timer - GetGameSeconds()
- if timeDiff > 0
- {
- Chat(name . " up in " . MakeTime(timeDiff))
- }
- else
- {
- Chat(name . " is up")
- }
- }
- ~+F1::
- oBTimer := GetGameSeconds() + 300
- return
- ~+F2::
- oRTimer := GetGameSeconds() + 300
- return
- ~+F3::
- tBTimer := GetGameSeconds() + 300
- return
- ~+F4::
- tRTimer := GetGameSeconds() + 300
- return
- ~+F5::
- dTimer := GetGameSeconds() + 360
- return
- ~+F6::
- bTimer := GetGameSeconds() + 420
- return
- ~F1::
- Handle(oBName, oBTimer)
- return
- ~F2::
- Handle(oRName, oRTimer)
- return
- ~F3::
- Handle(tBName, tBTimer)
- return
- ~F4::
- Handle(tRName, tRTimer)
- return
- ~F5::
- Handle(dName, dTimer)
- return
- ~F6::
- Handle(bName, bTimer)
- return
- ~F9::
- GameStartTime := A_TickCount - (clockSynchroniseTime * 1000)
- return
- Chat(msg) {
- Send {Enter}
- sleep 50
- Send %msg%
- sleep 50
- Send {Enter}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement