Advertisement
Guest User

Untitled

a guest
May 12th, 2011
1,301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.62 KB | None | 0 0
  1. Global $Paused
  2. HotKeySet("{PAUSE}", "TogglePause")
  3.  
  4. $GamesOverWin = 1103649515
  5. $GamesOverLoss = 2134198651
  6. $acountname = "YOURACCOUNTNAMEHERE"
  7. $password = "YOURPASSWORDHERE"
  8. $x = 0
  9.  
  10. Do
  11. Run("C:\Riot Games\League of Legends\lol.launcher.exe")
  12.  
  13. Sleep(7000)
  14.  
  15. MouseClick("left", 942, 630, 1) ;Play
  16.  
  17. Sleep(500)
  18. MouseClick("left", 588, 524, 1) ;acct
  19.  
  20. Sleep(15000)
  21.  
  22. MouseClick("left", 976, 322, 1)  ;account
  23. Send("{BACKSPACE 15}") ;removes currnt account name
  24. Send($acountname)
  25. MouseClick("left", 976, 386, 1)  ;Pass
  26. Send($password)
  27.  
  28. Sleep(3000)
  29.  
  30.  
  31. MouseClick("left", 1086, 429, 1)  ;login
  32.  
  33. Sleep(13000)
  34. MouseClick("left", 1004, 126, 1)  ;Close out popup (shop)
  35. Sleep(2000)
  36. MouseClick("left", 1004, 126, 1)  ;Close out popup (shop)
  37. Sleep(2000)
  38.  
  39. MouseClick("left", 640, 43, 1)  ;Play
  40. Sleep(3000)
  41.  
  42. MouseClick("left", 707, 145, 1)  ;pvp 5v5
  43. Sleep(1000)
  44. MouseClick("left", 901, 145, 1)  ;Blind pick
  45. Sleep(1000)
  46.  
  47. MouseClick("left", 756, 703, 1)  ;Find teammates for me
  48. Sleep(3000)
  49.  
  50. $checksum = PixelChecksum(0,0, 50,50) ;while game not found wait
  51.  
  52. While $checksum = PixelChecksum(0,0, 50, 50);while game not found wait
  53.   Sleep(100)
  54. WEnd
  55.  
  56. Sleep(40000) ; Waits 40secs I could just click play now but I want it to look lik I afk'ed
  57.  
  58. $checksum2 = PixelChecksum(269,246, 344,307)
  59. ConsoleWrite("Random Icon sum=" & $checksum2 & @CRLF)
  60.  
  61.  
  62. Sleep(180000) ;after 3 mins game should be loaded and up
  63. MouseClick("left", 514, 647, 1) ; Clicks first skill
  64.  
  65. MouseClick("left", 271, 761, 1) ; Clicks shop icon
  66. Sleep(1500)
  67. MouseClick("left", 672, 216, 2) ; buys first TimerDiff
  68. Sleep(3000)
  69. Send("{ESC}") ; Clears screen/shop
  70. sleep(1500)
  71.  
  72. $i = 0
  73. Do
  74.  
  75.    
  76.     MouseClick("right", 480,430, 1)
  77. Sleep(5600)
  78.     MouseClick("right",350, 530, 1)
  79. Sleep(4100)
  80.     MouseClick("right",650, 498, 1)
  81. Sleep(3200)
  82.     MouseClick("right", 780,433, 1)
  83. Sleep(3200)
  84.     MouseClick("right",550, 521, 1)
  85. Sleep(3600)
  86.     MouseClick("right",650, 490, 1)
  87. Sleep(3900)
  88.     Send("b") ;Tellports B/c It's cool
  89. Sleep(15000)
  90.  
  91.  
  92.     If PixelChecksum(568,479, 669,499) = $GamesOverWin Then
  93.     $i = $i + 1
  94. EndIf
  95.  
  96.     If PixelChecksum(568,479, 669,499) = $GamesOverLoss Then
  97.     $i = $i + 1
  98. EndIf
  99.  
  100. Until $i = 1
  101.        
  102.     $x = $x + 1 ;Kills game
  103.     Send("{ALTDOWN}")
  104.     Sleep(1500)
  105.     Send("{F4}")
  106.     Sleep(500)
  107.     Send("{ALTUP}")
  108.     Sleep(3000)
  109.    
  110.     $x = $x + 1 ;Kills game (after game chat)
  111.     Send("{ALTDOWN}")
  112.     Sleep(1500)
  113.     Send("{F4}")
  114.     Sleep(500)
  115.     Send("{ALTUP}")
  116.     Sleep(3000)
  117.  
  118. Until $x = 7 ;stats over X times.
  119.  
  120.  
  121.  
  122. Func TogglePause()
  123.     $Paused = NOT $Paused
  124.     While $Paused
  125.         sleep(100)
  126.         ToolTip('Script is "Paused"',0,0)
  127.     WEnd
  128.     ToolTip("")
  129. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement