Code:
hotkeyset("{f12}","finished")
While 1
$mult = 1
Run("C:\Riot Games\League of Legends\lol.launcher", "C:\Riot Games\League of Legends")
$i = 0
Do
$i = $i + 1
Sleep($mult * 1000)
PixelSearch(1306, 781, 1326, 801, 0x1DB3E6)
Until Not @error Or $i = 600
Sleep(100)
MouseClick("Left", 1254, 854, 8)
$i = 0
Do
$i = $i + 1
Sleep($mult * 1000)
PixelSearch(1155, 573, 1175, 593, 0xFFFFFF)
Until Not @error Or $i = 600
MouseClick("Left", 1165, 583, 5)
Sleep(300)
Send("tehpassword");password here
Sleep(300)
Send("{Enter}")
$i = 0
Do
Sleep(100)
$i = $i + 1
Sleep($mult * 1000)
PixelSearch(429, 447, 449, 467, 0x283F5E)
Until Not @error Or $i = 600
MouseClick("Left", 1000, 247, 5);clcik play
Sleep(1000)
MouseClick("Left", 633, 433, 5);custom
Sleep(1000)
MouseClick("Left", 1264, 909, 5);create
Sleep(1000)
Send("Riceeeee23")
Sleep(100)
MouseClick("Left", 655, 787, 5);pass
Sleep(100)
Send("Goes")
Sleep(100)
MouseClick("Left", 540, 932, 5);create
Sleep(3000)
MouseClick("Left", 1254, 659);add opponents
Sleep(2000)
MouseClick("Left", 783, 661);ad players my team
Sleep(2000)
MouseClick("Left", 1254, 659);add opponents
Sleep(2000)
MouseClick("Left", 783, 661);ad players my team
Sleep(2000)
MouseClick("Left", 1254, 659);add opponents
Sleep(2000)
MouseClick("Left", 783, 661);ad players my team
Sleep(2000)
MouseClick("Left", 1254, 659);add opponents
Sleep(2000)
MouseClick("Left", 783, 661);ad players my team
Sleep(2000)
MouseClick("Left", 1254, 659);add opponent
Sleep(1000)
MouseClick("Left", 1193, 696, 5);start
$i = 0
Do
$i = $i + 1
Sleep($mult * 1000)
PixelSearch(600, 336, 617, 356, 0xBF5813)
Until Not @error Or $i = 600
MouseClick("Left", 629, 468)
Sleep(1000)
MouseClick("Left", 1164, 702)
$i = 0
Do
$i = $i + 1
Sleep($mult * 1000)
PixelSearch(708, 1068, 728, 1088, 0x218414)
Until Not @error Or $i = 600
$b = 0
Do;inbattle
WinMove("League of Legends (TM) Client","",0,0)
$bool = False
Sleep(1000)
$b = $b + 1
; $choice = Random(1, 3, 1)
; If $choice = 1 Then
; MouseClick("Right", 1542, 863, 5)
; ElseIf $choice = 2 Then
; MouseClick("Right", 1651, 970, 5)
; ElseIf $choice = 3 Then
; MouseClick("Right", 1756, 1068, 5)
; EndIf
MouseClick("Right", 1766, 860, 5)
$i = 0
Do
PixelSearch(776, 339, 776, 339, 0xAA0303, 3);if defeat
If Not @error Then
PixelSearch(849, 362, 849, 362, 0xAA0303, 3)
If Not @error Then
PixelSearch(1084, 337, 1084, 337, 0xAA0303, 3)
If Not @error Then
PixelSearch(875, 738, 875, 738, 0x4A1113, 3)
If Not @error Then
$bool = True
MouseClick("Left", 875, 742, 5)
finished()
EndIf
EndIf
EndIf
EndIf
PixelSearch(478, 301, 498, 321, 0x8E5717, 3);if win
If Not @error Then
PixelSearch(756, 430, 776, 450, 0xFFF46A, 3)
If Not @error Then
PixelSearch(1102, 409, 1122, 429, 0xFFF46A, 3)
If Not @error Then
PixelSearch(1379, 478, 1399, 498, 0xD7B768, 3)
If Not @error Then
MouseClick("Left", 875, 742, 5)
Sleep(30000)
$bool = True
finished()
EndIf
EndIf
EndIf
EndIf
$i = $i + 1
Sleep(100)
PixelSearch(141, 1062, 141, 1062, 0x4E0000, 1);do until dead
Until Not @error Or $i = 1000 Or $bool = True
PixelSearch(776, 339, 776, 339, 0xAA0303, 3);if defeat
If Not @error Then
PixelSearch(849, 362, 849, 362, 0xAA0303, 3)
If Not @error Then
PixelSearch(1084, 337, 1084, 337, 0xAA0303, 3)
If Not @error Then
PixelSearch(875, 738, 875, 738, 0x4A1113, 3)
If Not @error Then
MouseClick("Left", 875, 742, 5)
Sleep(30000)
$bool = True
finished()
EndIf
EndIf
EndIf
EndIf
PixelSearch(478, 301, 498, 321, 0x8E5717, 3);if defeat
If Not @error Then
PixelSearch(756, 430, 776, 450, 0xFFF46A, 3)
If Not @error Then
PixelSearch(1102, 409, 1122, 429, 0xFFF46A, 3)
If Not @error Then
PixelSearch(1379, 478, 1399, 498, 0xD7B768, 3)
If Not @error Then
MouseClick("Left", 875, 742, 5)
Sleep(30000)
$bool = True
finished()
EndIf
EndIf
EndIf
EndIf
Until $b > 3600 Or $bool = True
WEnd
Func finished()
ProcessClose("LolClient.exe")
ProcessClose("lol.launcher.exe")
ProcessClose("Leauge of Legends.exe")
Return
EndFunc ;==>finished
Its oudated and needs to be updated, its for autoit, it creates custom games and (i think) surrenders at 20 mins and makes another custom game, its all automated.