-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogress2.ahk
More file actions
1079 lines (1019 loc) · 28.7 KB
/
progress2.ahk
File metadata and controls
1079 lines (1019 loc) · 28.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#NoEnv
#InstallKeybdHook
#Include tf.ahk
SetKeyDelay, 100, 30
;position of "lvl 3 RP reward" popup x in client: 801, 93
;position of "level up" popup x in client: 874, 93
;matt's referral link: "http://signup.leagueoflegends.com/?ref=4cc4c1a9f163d487340900"
;jlosh referral link: "http://signup.leagueoflegends.com/?ref=4df3022975a2d908834853"
;aerial referral link: "http://signup.leagueoflegends.com/?ref=4e0d1472cd21a929683971"
;george ref link: "http://signup.leagueoflegends.com/?ref=4dc070d8d86a0397596492"
;josh ref link: "http://signup.leagueoflegends.com/?ref=525b4f68a0b5a519065718"
;tiffany ref link: "http://signup.leagueoflegends.com/?ref=525b5a8594184160217873"
;golf ref link: "http://signup.leagueoflegends.com/?ref=525f7133f4190108692822"
;spamninja ref link: "http://signup.leagueoflegends.com/?ref=4ce0a8276d57a105645474"
;TODO's:
;"OK" for in-game afk notification that exits game 617, 472
;I think bug splats for battle training don't give you the orange "reconnect" button -
; they just put you on the normal client screen
; add lvl 10 support (250 RP XP boost, lvl 10 picture)
; relog after every game to refresh RP? (lvl 3 bug)
globalGameLogic := "INTRO_AHK"
globalAccountSourceType := "LIST"
georgeReflink := "4dc070d8d86a0397596492" ;george
;globalReflink := "4ce0a8276d57a105645474" ;spam ninja
;globalReflink := "52d82c79c1c55823529937" ;vimmmmm
;globalReflink := "4e0d1472cd21a929683971" ;aerial
globalReflink := "4df3022975a2d908834853" ;jlosh
;globalReflink := "52ee65df8d405041134169" ;andykat1
;globalReflink := "52ee661a7fee1529378415" ;andykat2
#s::Reload
#t::Pause
;this is a utility testing method - feel free to swap it out for whatever function
#v::
CheckForPlayButton()
;RedeemSmurfs()
return
#z::
;Sleep, 120000
while true {
AutoSmurf("random17", globalGameLogic, globalAccountSourceType, 10, globalReflink)
}
return
#q::
while true {
AutoSmurf("random17", globalGameLogic, globalAccountSourceType, 5, georgeReflink)
}
;CheckIfRich()
return
#w::
while true
{
Sleep, 10000
WinGameLoop("SR")
IfWinExist, PVP.net Client
{
WinActivate
break
}
}
CleanupGame()
Sleep, 10000
while true {
AutoSmurf("random17", globalGameLogic, globalAccountSourceType, 10, georgeReflink)
}
return
;clean out current smurf state
#x::
smurfName := "smurfTest"
password := "random17"
CleanupSmurf("None", password, globalReflink)
return
;TODO: add timeouts that restart lol client and game if we've been locked in one state for too long
AutoSmurf(password, inGameLogic, accountSource, smurfLevel, reflink = "None")
{
refCode := SubStr(reflink, -3) ; get last 4 digits of reflink to identify who the smurf is for
currentSmurf := "C:\currentSmurf" . refCode . ".txt"
FileReadLine, smurfName, %currentSmurf%, 1 ;get current smurf name, stored locally
if ErrorLevel ;currentSmurf.txt does not exist, so create it
{
FileAppend, None, %currentSmurf% ;first line stores name of smurf
FileAppend, `nNone, %currentSmurf% ;second line stores password of smurf
smurfName = "None"
}
if (smurfName == "None") ; get new smurf
{
;get smurf index from global smurf index file
refCode := SubStr(reflink, -3)
if (accountSource == "AUTOMATIC") { ; only works if the auto account maker/captcha breaker is operational
;append smurf index to username base
Random, smurfRand, 1000000, 9999999
smurfName := "Prisoner" . smurfRand
MakeNewSmurf(smurfName, password, reflink)
;ugh i really want feedback on whether an account got created successfully
} else if (accountSource == "LIST") {
if (smurfLevel == 5) {
smurfList := "smurfListRefCode" . refCode ".txt" ; put fresh accounts in file with this name
PopAccountData(smurfList, smurfName, password)
}
else if (smurfLevel == 10) {
smurfList := "smurfListLvl10RefCode" . refCode ".txt" ; put fresh accounts in file with this name
PopAccountData(smurfList, smurfName, password)
}
else {
MsgBox, "Error: smurfLevel not supported!"
}
} else {
MsgBox, "Error: accountSource not supported!"
}
SmurfSetup(smurfName, password)
TF_ReplaceLine("!" . currentSmurf, "1", "1", smurfName) ;store current smurfs login info
TF_ReplaceLine("!" . currentSmurf, "2", "2", password)
}
else ;resume where we left off
{
FileReadLine, smurfName, %currentSmurf%, 1
FileReadLine, password, %currentSmurf%, 2
LogIn(smurfName, password)
}
if CheckIfOne()
{
DoBattleTraining()
if (inGameLogic == "BOT_OF_LEGENDS") {
BuyChamp("ryze")
}
else {
BuyChamp("sivir")
}
}
if (smurfLevel == 5) {
while not CheckIfFive()
{
if CheckIfRich()
{
BuyXPBoost()
}
if (inGameLogic == "INTRO_AHK") {
BotGameFarm("intro", inGameLogic)
}
else if (inGameLogic == "BOT_OF_LEGENDS") {
BotGameFarm("beginner", inGameLogic)
}
else if (inGameLogic == "BATTLE_TRAINING") {
DoBattleTraining()
}
else { ;revert to battle training as safest case
DoBattleTraining()
}
Sleep, 5000
}
} else if (smurfLevel == 10) {
while not CheckIfTen()
{
if CheckIfRich()
{
BuyXPBoost()
}
if Check250RP()
{
BuyXPBoost()
}
if (inGameLogic == "INTRO_AHK") {
BotGameFarm("intro", inGameLogic)
}
else if (inGameLogic == "BOT_OF_LEGENDS") {
BotGameFarm("beginner", inGameLogic)
}
else if (inGameLogic == "BATTLE_TRAINING") {
DoBattleTraining()
}
else { ;revert to battle training as safest case
DoBattleTraining()
}
Sleep, 5000
}
}
;we're done, so do some cleanup
TF_ReplaceLine("!" . currentSmurf, "1", "1", "None") ;indicate we're not currently doing a smurf
TF_ReplaceLine("!" . currentSmurf, "2", "2", "None")
CloseLoLClient()
Sleep, 5000
return
}
CleanupSmurf(smurfName, password, reflink) ;clean up state
{
refCode := SubStr(reflink, -3)
currentSmurf := "C:\currentSmurf" . refCode . ".txt"
TF_ReplaceLine("!" . currentSmurf, "1", "1", "None") ;locally indicate we're not currently doing a smurf
TF_ReplaceLine("!" . currentSmurf, "2", "2", "None")
}
BotGameFarm(difficulty, inGameLogic) ;i wouldn't recommend anything besides intro
{
map = "SR"
joinGame:
JoinSoloBotGame(map, difficulty)
if (inGameLogic == "INTRO_AHK") {
SelectChamp("sivir")
}
else if (inGameLogic == "BOT_OF_LEGENDS") {
SelectChamp("ryze")
}
else { ; revert to safest champ
SelectChamp("sivir")
}
Sleep, 90000
IfWinExist ahk_class RiotWindowClass ;if game launches, focus on it
{
WinActivate
}
else {
CloseChrome()
IfWinExist, PVP.net Client
{
WinActivate
}
ViewProfile()
Sleep, 5000
MouseClick, left, 512, 363 ;dismiss queue dodge warning safely
Sleep, 1000
MouseClick, left, 985, 50 ;horrible kludge to get rid of skin screen - don't ask
Goto, joinGame
}
WaitGameLoad()
Sleep, 90000 ; wait until minions spawn to do shit
if (inGameLogic == "INTRO_AHK") {
WinGameLoop(map)
}
else if (inGameLogic == "BOT_OF_LEGENDS") {
BoLLoop()
CleanupGame()
}
else { ; revert to safest champ
WinGameLoop(map)
}
Sleep, 10000
}
;waits for all summoners to load
WaitGameLoad() {
while true
{
Sleep, 3000
PixelSearch, FoundX, FoundY, 504, 382, 504, 382, 0x599ED5 ;look for bright gold in "V" of "VS"
if ErrorLevel ;could not find, hopefully we're in the game now
break
else
Sleep, 10
}
}
;In-game loop of walking around. Surrenders after a while.
LoseGameLoop()
{
while true
{
Send {Click right 300, 350}
Sleep, 5000
Send {Click right 300, 500}
Sleep, 5000
if a_index > 150 ;after 25 min, surrender
{
Send {Enter}
Sleep, 100
Send {/}
Sleep, 100
Send {f}
Sleep, 100
Send {f}
Sleep, 100
Send {Enter}
}
ClickEndGameContinue()
IfWinExist, PVP.net Client
{
WinActivate
return
}
}
}
;In-game loop of pushing/shopping.
WinGameLoop(map) {
while true
{
Suicide(map)
;SkillUp() ;removed until we know what champs we're using
;Abilities() ;
Sleep, 1000
ClickEndGameContinue()
IfWinExist, Error Report ; check for bug splat
{
WinActivate
Sleep, 1000
MouseClick, left, 215, 401 ;dismiss bug splat
}
CoordMode, Mouse, Screen
MouseClick, left, 878, 753 ; click client in system tray
CoordMode, Mouse, Relative
IfWinExist, PVP.net Client
{
WinActivate
Sleep, 5000
if CheckForReconnect()
{
MouseClick, left, 518, 364 ;click reconnect
Sleep, 60000 ; let game load
continue
}
CleanupGame() ; no reconnect, so game must be done
return
}
Sleep, 2000
Shop(map)
}
}
;In-game logic when using bot of legends
BoLLoop() {
while true
{
;Shop("SR")
Sleep, 10000
ClickEndGameContinue()
IfWinExist, PVP.net Client
{
WinActivate
break
}
}
}
CleanupGame()
{
; keep clicking 'return to lobby' button until we see the red of the "Play" button
while true
{
Send {Click 700, 590} ;click on 'return to lobby' button
Sleep, 5000
CloseChrome()
IfWinExist, PvP.net Client
{
WinActivate
}
ViewProfile()
Sleep, 2000
MouseClick, left, 561, 403 ;decline co op vs ai inv
Sleep, 1000
MouseClick, left, 561, 403 ;decline co op vs ai inv again
if CheckForPlayButton()
{
break
}
else
{
Sleep, 1000
}
}
}
Retreat(map)
{
if (map == "SR")
{
MouseClick, right, 838, 753
Sleep, 100
}
else if (map == "TT")
{
MouseClick, right, 847, 676
Sleep, 100
}
}
Suicide(map)
{
Send {a} ;issue attack move command
Sleep, 200
if (map == "SR")
{
MouseClick, left, 1011, 598
}
else if (map == "TT")
{
MouseClick, left, 992, 685
}
else {
MouseClick, left, 1011, 598
}
Sleep, 300
}
ClickEndGameContinue() {
Send {Click 522, 562} ;click on "continue' button after defeat/victory
}
SkillUp()
{
Send ^r ;skill up r
Sleep, 100
Send ^e ;skill up e
Sleep, 100
Send ^q ;skill up q
Sleep, 100
}
Abilities()
{
Send {r} ;AS boost
Sleep, 100
Send {d} ;revive
Sleep, 100
Send {f} ;heal
Sleep, 100
}
Shop(map)
{
;MouseClick, left, 137, 754 ;click to open shop
;Sleep, 100
;MouseClick, left, 137, 754 ;click to open shop
;Sleep, 100
MouseClick, left, 137, 754 ;click to open shop
Sleep, 1000
if (map == "SR")
{
Send, {CTRLDOWN}l{CTRLUP}do
Sleep, 500
MouseClick, left, 380, 240 ;select doran's blade
Sleep, 300
MouseClick, left, 813, 464 ;try to buy doran's blade
MouseClick, left, 813, 464 ;
MouseClick, left, 813, 464 ;
MouseClick, left, 813, 464 ;
}
else if (map == "TT")
{
Send, {CTRLDOWN}l{CTRLUP}do
Sleep, 500
MouseClick, left, 380, 240 ;select doran's blade
Sleep, 300
MouseClick, left, 813, 464 ;try to buy doran's blade
MouseClick, left, 813, 464 ;
MouseClick, left, 813, 464 ;
MouseClick, left, 813, 464 ;
}
else {
Send, {CTRLDOWN}l{CTRLUP}do
Sleep, 500
MouseClick, left, 380, 240 ;select doran's blade
Sleep, 300
MouseClick, left, 813, 464 ;try to buy doran's blade
MouseClick, left, 813, 464 ;
MouseClick, left, 813, 464 ;
MouseClick, left, 813, 464 ;
}
Sleep, 300
MouseClick, left, 923, 64 ;click to close shop
Sleep, 100
}
SelectFirstChamp()
{
Send {click 274, 174} ;click on top left champ space
Sleep, 2000
Send {Click 702, 410} ;attempt to start game
Sleep, 30000 ;wait for load screen to pop up if successful
}
SelectChamp(champName)
{
Send {Click 731, 110} ;click on search box
Sleep, 500
Send, %champName%
Sleep, 1000
Send {click 274, 174} ;click on top left champ space
Sleep, 2000
Send {click 517, 421} ;click on summoner spells
Sleep, 1000
Send {click 455, 175} ;click on ghost
Sleep, 1000
Send {click 523, 244} ;click on barrier
Sleep, 1000
Send {click 583, 171} ;click on heal in case barrier is not available
Sleep, 1000
Send {Click 702, 410} ;attempt to ready up
Sleep, 1000
Send {Click 731, 110} ;click on search box (which also clears it, apparently)
Sleep, 2000
Send {click 274, 174} ;click on top left champ space (random)
Sleep, 1000
Send {Click 702, 410} ;attempt to ready up
;Sleep, 30000 ;wait for load screen to pop up if successful
}
CloseLoLClient()
{
IfWinExist, PVP.net Client
{
WinKill
}
return
}
CloseLoLGame()
{
IfWinExist, League of Legends (TM) Client
{
WinKill
}
return
}
CloseChrome()
{
SetTitleMatchMode, 2
IfWinExist, Google Chrome
{
Process, Close, chrome.exe
}
return
}
JoinSoloBotGame(map, difficulty)
{
;MsgBox %summoner1% %summoner2%
MouseClick, left, 511, 35 ;click orange "Play" button
Sleep, 2000
MouseClick, left, 278, 139 ;co-op vs ai
Sleep, 1000
MouseClick, left, 393, 119 ;classic
Sleep, 1000
if (map == "SR") {
MouseClick, left, 592, 137 ;summoner's rift
}
else if (map == "TT") {
MouseClick, left, 560, 160 ;twisted treeline
}
else { ;default to SR
MouseClick, left, 592, 137 ;summoner's rift
}
Sleep, 1000
if (difficulty == "intro") {
MouseClick, left, 710, 120 ;intro
}
else if (difficulty == "beginner")
{
MouseClick, left, 710, 145 ;beginner
}
else if (difficulty == "intermediate")
{
MouseClick, left, 691, 165 ;intermediate
}
else ;default to intro
{
MouseClick, left, 691, 120 ;intro
}
Sleep, 1000
MouseClick, left, 610, 570 ;solo
Sleep, 2000
Loop, 20 ;wait for queue to fire
{
Sleep, 1000
PixelSearch, FoundX, FoundY, 507, 324, 509, 326, 0xFFFFFF ;look for white of timer pie
if ErrorLevel ;could not find
Sleep, 10
else
break
}
accept:
MouseClick, left, 421, 364 ;click "accept" when match is made to go to champ select
Sleep, 10000
Loop, 20 ;catch cases where we get requeued
{
Sleep, 1000
PixelSearch, FoundX, FoundY, 507, 324, 509, 326, 0xFFFFFF ;look for white of timer pie
if ErrorLevel ;could not find, so we're good
break
else
Sleep, 2000
Goto accept
}
}
return
DoBattleTraining() ;run battle training automatically
{
MouseClick, left, 510, 35
Sleep, 2000
MouseClick, left, 278, 233
Sleep, 2000
MouseClick, left, 390, 165
Sleep, 2000
MouseClick, left, 679, 542
Sleep, 20000
MouseClick, left, 657, 384
Sleep, 2000
MouseClick, left, 651, 384
Sleep, 2000
MouseClick, left, 285, 243
Sleep, 2000
MouseClick, left, 348, 381
Sleep, 2000
MouseClick, left, 300, 371
Sleep, 2000
MouseClick, left, 358, 370
Sleep, 2000
MouseClick, left, 424, 382
Sleep, 2000
MouseClick, left, 256, 167 ;ashe
;MouseClick, left, 370, 167 ;ryze is a mage
Sleep, 2000
MouseClick, left, 392, 331
Sleep, 2000
MouseClick, left, 742, 488
Sleep, 2000
MouseClick, left, 502, 429
Sleep, 2000
MouseClick, left, 466, 167
Sleep, 2000
MouseClick, left, 519, 179
Sleep, 2000
MouseClick, left, 366, 380
Sleep, 2000
MouseClick, left, 384, 421
Sleep, 2000
MouseClick, left, 386, 390
Sleep, 2000
MouseClick, left, 627, 535
Sleep, 2000
MouseClick, left, 862, 391
Sleep, 2000
MouseClick, left, 701, 400
Sleep, 180000 ;big pause here to count down and let game load
Loop, 5 ;this click drops sometimes, so spam it
{
MouseClick, left, 595, 396 ;click 'Continue' button
Sleep, 200
}
Sleep, 50000 ;long pause while lady talks
MouseClick, left, 987, 157 ;move mouse cursor over seconday quests
Sleep, 5000
MouseClick, left, 1016, 503 ;click hint above minimap
Sleep, 3000
MouseClick, left, 680, 481 ;close hint window
Sleep, 20000 ;wait for lady to talk
MouseClick, left, 617, 472 ;dismiss afk window
MouseClick, left, 617, 472 ;dismiss afk window
startTime := A_Now
while true ;spam right clicks for 17 minutes, then surrender and click continue button
{
Send {Click right 300, 350}
Sleep, 5000
Send {Click right 300, 500}
Sleep, 5000
MouseClick, left, 617, 472 ;dismiss afk window
Sleep, 1000
nowTime := A_Now
EnvSub, nowTime, %startTime%, Minutes
if (nowTime > 17) ;surrender after 17 minutes (extra time is spent waiting for lady to talk)
{
Send {Enter}
Sleep, 100
Send {/}
Sleep, 100
Send {f}
Sleep, 100
Send {f}
Sleep, 100
Send {Enter}
}
ClickEndGameContinue()
IfWinExist, PVP.net Client
{
WinActivate
break
}
}
Sleep, 20000 ;let game close and pvp.net client load
if CheckForPlayButton()
{
return ;exit training prematurely if client loads and there's the "play" button (implies it's not the game stats screen)
}
MouseClick, left, 645, 387 ;click continue on post battle screen
Sleep, 2000
CleanupGame()
Sleep, 2000
;should be back at lobby again
return
}
BuyXPBoost()
{
MouseClick, left, 704, 40 ;open shop
Sleep, 15000
MouseClick, left, 67, 507 ;boosts
Sleep, 10000
MouseClick, left, 257, 155 ;search box
Sleep, 100
Send, xp
Sleep, 1000
MouseClick, left, 188, 369 ;sort by RP
Sleep, 1000
MouseClick, left, 419, 288 ;1 day boost
Sleep, 3000
MouseClick, left, 593, 574 ;purchase
Sleep, 2000
}
BuyChamp(champName)
{
MouseClick, left, 695, 40 ;shop
Sleep, 10000
MouseClick, left, 83, 260 ;champs
Sleep, 5000
MouseClick, left, 278, 156 ;search
Sleep, 200
Send, %champName%
Sleep, 2000
MouseClick, left, 406, 288 ;unlock
Sleep, 2000
MouseClick, left, 705, 583 ;buy with IP
Sleep, 5000
}
LogIn(username, password) ;accountData should have account name on first line and pw on second
{
Run, C:\Riot Games\League of Legends\lol.launcher.exe
Sleep, 3000
While 1
{
IfWinExist, Error ;silly hack to dismiss the "another instance of LoL is running" box
{
WinActivate
Send {Enter}
Break
}
IfWinExist, LoL Patcher
Break
}
WinWait, LoL Patcher
WinActivate
Sleep, 10000
Send {click 488, 29} ;click on orange "launch" button
Sleep, 2000
Send {click 488, 29} ;tiny XP VM sometimes misses first click
WinWait, PVP.net Client
WinActivate
Sleep, 12000
Send {click 233, 255} ;username
Sleep, 1000
Send {ctrl down}a{ctrl up} ;select all previously existing text to overwrite
SendInput, %username%
Sleep, 1000
Send {click 239, 315} ;pw
SendInput, %password%
Sleep, 1000
Send {click 276, 338} ;log in
Sleep, 15000
ViewProfile() ;get to safe place with no clickables
Sleep, 1000
MouseClick, left, 555, 378 ;dismiss mastery update notification
ViewProfile()
Sleep, 1000
Send {click 1001, 87} ;dismiss overlay if it exists
Sleep, 2000
Send {click 1001, 87} ;so many fucking overlays
Sleep, 3000
Loop, 26 { ;dismiss random popup notifications
MouseClick, left, 600+A_Index*15, 95
Sleep, 200
}
return
}
;accountsFile should have account name on first line and pw on second
PopAccountData(accountsFile ;inputs
, byRef username, byRef password) { ;outputs
FileReadLine, username, %accountsFile%, 1
FileReadLine, password, %accountsFile%, 2
TF_RemoveLines("!" . accountsFile, 1, 2)
}
MakeNewSmurf(username, password, reflink)
{
run C:\Program Files\Google\Chrome\Application\chrome.exe
SetTitleMatchMode, 2 ;look for windows that merely contain "google chrome"
WinWait, Google Chrome,
IfWinNotActive, Google Chrome, , WinActivate, Google Chrome,
WinWaitActive, Google Chrome,
Sleep, 35000
;Send, {CTRLDOWN}l{CTRLUP}wg741.webgate.pl{ENTER}
Send, {CTRLDOWN}l{CTRLUP}http://arcane-escarpment-5381.herokuapp.com/index.php{ENTER}
Sleep, 15000
MouseClick, left, 340, 208 ;reflink box
Sleep, 100
Send, %reflink%
MouseClick, left, 334, 254
Sleep, 100
Send, {CTRLDOWN}a{CTRLUP}%username%
MouseClick, left, 325, 283
Sleep, 100
Send, {CTRLDOWN}a{CTRLUP}%password%
MouseClick, left, 233, 341
Sleep, 100
Random, day, 1, 28
Send, {CTRLDOWN}a{CTRLUP}%day%
MouseClick, left, 300, 345
Sleep, 100
Random, month, 1, 12
Send, {CTRLDOWN}a{CTRLUP}%month%
MouseClick, left, 384, 345
Sleep, 100
Random, year, 1981, 1992
Send, {CTRLDOWN}a{CTRLUP}%year%
MouseClick, left, 261, 387 ;create!
Sleep, 30000 ;wait for account to create
;add new account to smurf list
IfWinExist, Google Chrome
{
WinKill
}
}
FillReferralForm(password, reflinkURL) {
Random, nameSuffix, 10000000, 99999999
Random, month, 1, 12
Random, day, 1, 28
Random, year, 1981, 1992
username := "Prisoner" . nameSuffix
Clipboard = %reflinkURL% ; put URL on clipboard for faster entry
Send, {CTRLDOWN}l{CTRLUP} ; select address bar
Sleep, 100
Send, {CTRLDOWN}a{CTRLUP}{CTRLDOWN}v{CTRLUP}{ENTER} ; go to signup page
Sleep, 3000
MouseClick, left, 722, 301 ; select username box
Sleep, 100
Clipboard = %username%
Send, {CTRLDOWN}v{CTRLUP}{TAB}
Clipboard = %password%
Send, {CTRLDOWN}v{CTRLUP}{TAB}{CTRLDOWN}v{CTRLUP}{TAB}
Clipboard = %username%@gmail.com
Send, {CTRLDOWN}v{CTRLUP}{TAB}%month%{TAB}%day%{TAB}%year%
Sleep, 300
MouseClick, left, 691, 580 ; agree to terms of use (heh)
Sleep, 300
MouseClick, left, 696, 602 ; un-sign up for newsletter
Sleep, 300
MsgBox, "Input captcha, then dismiss this box"
Sleep, 300
MouseClick, left, 858, 677 ; create account
Sleep, 100
; add new accounts info to fresh account list
freshAccountList := "smurfListRefCode" . refCode := SubStr(reflinkURL, -3) . ".txt"
FileAppend, `n%username%, %freshAccountList%
FileAppend, `n%password%, %freshAccountList%
}
RedeemSmurfs() { ;redeem the IP bonus from completed smurfs - must be already logged into lol website
Clipboard = http://rewards.na.leagueoflegends.com/ ; put URL on clipboard for faster entry
while true
{
Send, {CTRLDOWN}l{CTRLUP} ; select address bar
Sleep, 100
Send, {CTRLDOWN}a{CTRLUP}{CTRLDOWN}v{CTRLUP}{ENTER} ; go to rewards page
Sleep, 5000
Loop, 4
{
Sleep, 2000
MouseClick, left, 924, 678
}
Sleep, 500
}
}
SmurfSetup(username, password) ; do setup for accounts that have never logged in before
{
smurfName := LogIn(username, password)
MouseClick, left, 470, 392 ;click name entry box
Sleep, 500
Send, %username%
MouseClick, left, 494, 451 ;confirm name entry
Sleep, 5000
MouseClick, left, 365, 327 ;select summoner icon
Sleep, 1000
MouseClick, left, 775, 430 ;confirm icon
Sleep, 2000
MouseClick, left, 311, 320 ;pick noob tier
Sleep, 2000
MouseClick, left, 724, 439 ;confirm tier
Sleep, 2000
MouseClick, left, 555, 405 ;decline tutorial
Sleep, 1000
MouseClick, left, 555, 405 ;decline battle training
Sleep, 1000
;CloseLoLClient()
return
}
ViewProfile() { ; a safe place where there are less evil hyperlinks that will derail the engine
MouseClick, left, 842, 43
}
CheckIfOne() ;check if acct is level 1 ;make sure you have level1.png from the git repository in your working directory
{
ViewProfile()
Sleep, 5000
MouseClick, left, 512, 363 ;dismiss "Unexpected Platform Error" if it comes up
Sleep, 2000
ImageSearch, FoundX, FoundY, 350, 250, 436, 276, level1.png ;scan for "level 5" with image
if ErrorLevel ;could not find
{
;MsgBox, not found
return false
}
else
{
;MsgBox, found
return true
}
return
}
CheckIfFive() ;check if acct is level 5 ;make sure you have level5.png from the git repository in your working directory
{
ViewProfile()
Sleep, 5000
MouseClick, left, 648, 207 ;dismiss out of place level up notification
Sleep, 1000
MouseClick, left, 512, 363 ;dismiss "Unexpected Platform Error" if it comes up
Sleep, 2000
ImageSearch, FoundX, FoundY, 350, 250, 436, 276, level5.png ;scan for "level 5" with image
if ErrorLevel ;could not find
{
;MsgBox, not found
return false
}
else
{
;MsgBox, found
return true
}
return
}
CheckIfTen() ;check if acct is level 10 ;make sure you have level10.png from the git repository in your working directory
{
ViewProfile()
Sleep, 5000
MouseClick, left, 512, 363 ;dismiss "Unexpected Platform Error" if it comes up
Sleep, 2000
ImageSearch, FoundX, FoundY, 350, 250, 436, 276, level10.png ;scan for "level 10" with image
if ErrorLevel ;could not find
{
;MsgBox, not found
return false
}
else
{
;MsgBox, found
return true
}
return
}
CheckIfRich() ;check if acct has 400 RP for XP boost ;make sure you have 400RP.png from the git repository in your working directory
{
ImageSearch, FoundX, FoundY, 840, 12, 870, 24, 400RP2.png ;scan RP with image
if ErrorLevel ;could not find
{
;MsgBox, not found
return false
}
else
{
;MsgBox, found
return true