Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

AutoJungle

By: theMizzler on May 28th, 2012  |  syntax: Autohotkey  |  size: 4.07 KB  |  views: 36,513  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ;Download newest version at http://pastebin.com/dd9a5c1B. Features no more announcements, adjustable F9-time, omitted 0-hour, moddable objective names and cleaned up code, courtesy of pacov and me.
  2.  
  3. ;Created by unknown, modded by theMizzler
  4. ;Download AutoHotkey at http://www.autohotkey.com/download/
  5.  
  6. ;KEYBINDS
  7.  
  8. ;F9 = Reset game timer to 15 seconds(Use this after 15 seconds ingame)
  9. ;F10 = Stop all timers (Use this when you finish the game our you will have random announcements type on whatever window is open)
  10.  
  11. ;F1 = OUR BLUE
  12. ;F2 = OUR RED
  13. ;F3 = THEIR BLUE
  14. ;F4 = THEIR RED
  15. ;F5 = DRAGON
  16. ;F6 = BARON NASH
  17.  
  18. #Persistent
  19.  
  20. S = 0
  21. M = 0
  22. H = 0
  23.  
  24. ~F1::
  25.  
  26.     tH := H
  27.     tM := M + 5
  28.     tS := S
  29.    
  30.     if tM > 60
  31.     {
  32.         tH:= H + 1
  33.         tM := tM - 60
  34.     }
  35.    
  36.     zM := ""
  37.     zS := ""
  38.    
  39.     if tM < 10
  40.         zM := "0"
  41.     if tS < 10
  42.         zS := "0"
  43.    
  44.     Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " our Blue")
  45.    
  46.     SetTimer, OurBlue, -240000
  47. return
  48.  
  49.  
  50. ~F2::
  51.     tH := H
  52.     tM := M + 5
  53.     tS := S
  54.    
  55.     if tM > 60
  56.     {
  57.         tH:= H + 1
  58.         tM := tM - 60
  59.     }
  60.    
  61.     zM := ""
  62.     zS := ""
  63.    
  64.     if tM < 10
  65.         zM := "0"
  66.     if tS < 10
  67.         zS := "0"
  68.    
  69.     Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " our Red")
  70.    
  71.     SetTimer, OurRed, -240000
  72. return
  73.  
  74.  
  75. ~F3::
  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 . " their Blue")
  95.    
  96.     SetTimer, TheirBlue, -240000
  97. return
  98.  
  99.  
  100. ~F4::
  101.     tH := H
  102.     tM := M + 5
  103.     tS := S
  104.    
  105.     if tM > 60
  106.     {
  107.         tH:= H + 1
  108.         tM := tM - 60
  109.     }
  110.    
  111.     zM := ""
  112.     zS := ""
  113.    
  114.     if tM < 10
  115.         zM := "0"
  116.     if tS < 10
  117.         zS := "0"
  118.    
  119.     Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " their Red")
  120.    
  121.     SetTimer, TheirRed, -240000
  122. return
  123.  
  124.  
  125. ~F5::
  126.     tH := H
  127.     tM := M + 6
  128.     tS := S
  129.    
  130.     if tM > 60
  131.     {
  132.         tH:= H + 1
  133.         tM := tM - 60
  134.     }
  135.    
  136.     zM := ""
  137.     zS := ""
  138.    
  139.     if tM < 10
  140.         zM := "0"
  141.     if tS < 10
  142.         zS := "0"
  143.    
  144.     Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " Drake")
  145.    
  146.     SetTimer, Drake, -300000
  147. return
  148.  
  149.  
  150. ~F6::
  151.     tH := H
  152.     tM := M + 7
  153.     tS := S
  154.    
  155.     if tM > 60
  156.     {
  157.         tH:= H + 1
  158.         tM := tM - 60
  159.     }
  160.    
  161.     zM := ""
  162.     zS := ""
  163.    
  164.     if tM < 10
  165.         zM := "0"
  166.     if tS < 10
  167.         zS := "0"
  168.      
  169.     Chat("0" . tH . ":" . zM . tM . ":" . zS . tS . " Baron")
  170.    
  171.     SetTimer, Baron, -360000
  172. return
  173.  
  174. ~F9::
  175.     MsgBox, 0x40000, JungleTimer, JungleTimer Reset to 15 seconds, 0.75
  176.    
  177.     S = 15
  178.     M = 0
  179.     H = 0
  180.    
  181.    
  182.     SetTimer, Update, 1000
  183. return
  184.  
  185.  
  186. ~F10::
  187.     MsgBox, 0x40000, JungleTimer, JungleTimer Stopped, 0.75
  188.     SetTimer, Update, Off
  189.    
  190.     SetTimer, OurBlue, Off
  191.     SetTimer, OurRed, Off
  192.     SetTimer, TheirBlue, Off
  193.     SetTimer, TheirRed, Off
  194.    
  195.     SetTimer, Drake, Off
  196.     SetTimer, Baron, Off
  197. return
  198.  
  199. Chat(msg) {
  200.         Send {Enter}
  201.         sleep 50
  202.         Send %msg%
  203.         sleep 50
  204.         Send {Enter}
  205. }
  206.  
  207. OurBlue:
  208.    Chat("OB in 1min")
  209.     SetTimer, OBSpawn, -60000
  210. return
  211.  
  212. OurRed:
  213.    Chat("OR in 1min")
  214.     SetTimer, ORSpawn, -60000
  215. return
  216.  
  217. TheirBlue:
  218.    Chat("TB in 1min")
  219.     SetTimer, TBSpawn, -60000
  220. return
  221.  
  222. TheirRed:
  223.    Chat("TR in 1min")
  224.     SetTimer, TRSpawn, -60000
  225. return
  226.  
  227. Drake:
  228.    Chat("Drake in 1min")
  229.     SetTimer, DrakeSpawn, -60000
  230. return
  231.  
  232. Baron:
  233.    Chat("Baron in 1min")
  234.     SetTimer, BaronSpawn, -60000
  235. return
  236.  
  237. OBSpawn:
  238.    Chat("OB spawned")
  239. return
  240.  
  241. ORSpawn:
  242.    Chat("OR spawned")
  243. return
  244.  
  245. TBSpawn:
  246.    Chat("TB spawned")
  247. return
  248.  
  249. TRSpawn:
  250.    Chat("TR spawned")
  251. return
  252.  
  253. DrakeSpawn:
  254.    Chat("Drake spawned")
  255. return
  256.  
  257. BaronSpawn:
  258.    Chat("Baron spawned")
  259. return
  260.  
  261. Update:
  262. if S = 59
  263. {
  264.    S := 0
  265.    M += 1
  266. }
  267. if M = 59
  268. {
  269.    M := 0
  270.    H += 1
  271. }
  272. S += 1
  273. return