Advertisement
Guest User

LoL Creep Timer - Minimalist Version

a guest
May 28th, 2012
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. ;LEAGUE OF LEGENDS CREEP TIMERS - MINIMALIST VERSION
  2. ;VERSION 1.0
  3. ;Created by unknown, modded by theMizzler
  4. ;Minimal version created by pacov
  5. ;Last update - 5/29/2012
  6.  
  7. ;DESCRIPTION
  8. ;The purpose of this AutoHotKey script is to enable League of Legends players to quickly track when critical creeps are spawned.
  9. ;The script handles baron, dragon, red, and blue buffs. In short, the user with this script installed presses a hotkey (detailed
  10. ;below) to track when a specific creep has died. When the user presses the hotkey, a chat message is sent indicating the respawn
  11. ;time of those specific creeps. The bottom line is that this script makes it simple for everyone on the team to know when creeps
  12. ;respawn just by having 1 person paying enough attention to press a hot key when a particular creep dies.
  13.  
  14. ;HOW TO INSTALL
  15. ;Step 1 - Download and install AutoHotkey at http://www.autohotkey.com/download/
  16. ;Step 2 - If you received this code via pastebin, open notepad, copy and paste the info, and save the file as whatever you want.
  17. ;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.
  18.  
  19. ;HOW TO RUN
  20. ;Right click on the .ahk file and click run. If you compiled the script, simply click on the compiled file and it will execute.
  21.  
  22. ;HOW TO USE IN GAME
  23. ;The following step is CRITICAL. At 15 seconds into the game, you MUST press f9. This sets the internal counter within the
  24. ;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
  25. ;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
  26. ;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
  27. ;timers
  28.  
  29. ;HOTKEYS
  30. ;F9 = Reset game timer to 15 seconds(Use this after 15 seconds ingame)
  31. ;F10 = Stop all timers (Use this when you finish the game our you will have random announcements type on whatever window is open)
  32.  
  33. ;F1 = OUR BLUE
  34. ;F2 = OUR RED
  35. ;F3 = THEIR BLUE
  36. ;F4 = THEIR RED
  37. ;F5 = DRAGON
  38. ;F6 = BARON NASH
  39.  
  40. ;Everything below this line is the script for the game. Good luck and have fun!
  41.  
  42.  
  43.  
  44.  
  45. #Persistent
  46.  
  47. S = 0
  48. M = 0
  49. H = 0
  50.  
  51. ~F1::
  52.  
  53. tH := H
  54. tM := M + 5
  55. tS := S
  56.  
  57. if tM > 60
  58. {
  59. tH:= H + 1
  60. tM := tM - 60
  61. }
  62.  
  63. zM := ""
  64. zS := ""
  65.  
  66. if tM < 10
  67. zM := "0"
  68. if tS < 10
  69. zS := "0"
  70.  
  71. Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " our Blue")
  72. return
  73.  
  74.  
  75. ~F2::
  76. tH := H
  77. tM := M + 5
  78. tS := S
  79.  
  80. if tM > 60
  81. {
  82. tH:= H + 1
  83. tM := tM - 60
  84. }
  85.  
  86. zM := ""
  87. zS := ""
  88.  
  89. if tM < 10
  90. zM := "0"
  91. if tS < 10
  92. zS := "0"
  93.  
  94. Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " our Red")
  95. return
  96.  
  97.  
  98. ~F3::
  99. tH := H
  100. tM := M + 5
  101. tS := S
  102.  
  103. if tM > 60
  104. {
  105. tH:= H + 1
  106. tM := tM - 60
  107. }
  108.  
  109. zM := ""
  110. zS := ""
  111.  
  112. if tM < 10
  113. zM := "0"
  114. if tS < 10
  115. zS := "0"
  116.  
  117. Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " their Blue")
  118. return
  119.  
  120.  
  121. ~F4::
  122. tH := H
  123. tM := M + 5
  124. tS := S
  125.  
  126. if tM > 60
  127. {
  128. tH:= H + 1
  129. tM := tM - 60
  130. }
  131.  
  132. zM := ""
  133. zS := ""
  134.  
  135. if tM < 10
  136. zM := "0"
  137. if tS < 10
  138. zS := "0"
  139.  
  140. Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " their Red")
  141. return
  142.  
  143.  
  144. ~F5::
  145. tH := H
  146. tM := M + 6
  147. tS := S
  148.  
  149. if tM > 60
  150. {
  151. tH:= H + 1
  152. tM := tM - 60
  153. }
  154.  
  155. zM := ""
  156. zS := ""
  157.  
  158. if tM < 10
  159. zM := "0"
  160. if tS < 10
  161. zS := "0"
  162.  
  163. Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " Drake")
  164. return
  165.  
  166.  
  167. ~F6::
  168. tH := H
  169. tM := M + 7
  170. tS := S
  171.  
  172. if tM > 60
  173. {
  174. tH:= H + 1
  175. tM := tM - 60
  176. }
  177.  
  178. zM := ""
  179. zS := ""
  180.  
  181. if tM < 10
  182. zM := "0"
  183. if tS < 10
  184. zS := "0"
  185.  
  186. Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " Baron")
  187. return
  188.  
  189. ~F9::
  190. S = 15
  191. M = 0
  192. H = 0
  193. SetTimer, Update, 1000
  194. return
  195.  
  196.  
  197. ~F10::
  198. MsgBox, 0x40000, JungleTimer, JungleTimer Stopped, 0.75
  199. SetTimer, Update, Off
  200. return
  201.  
  202. Chat(msg) {
  203. Send {Enter}
  204. sleep 50
  205. Send %msg%
  206. sleep 50
  207. Send {Enter}
  208. }
  209.  
  210. Update:
  211. if S = 59
  212. {
  213. S := 0
  214. M += 1
  215. }
  216. if M = 59
  217. {
  218. M := 0
  219. H += 1
  220. }
  221. S += 1
  222. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement