forked from saladinaazir/gosext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path14Yasuo_Vol3.lua
2231 lines (1912 loc) · 93.5 KB
/
14Yasuo_Vol3.lua
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
local Heroes = {"Yasuo"}
require('GGPrediction')
if not table.contains(Heroes, myHero.charName) then return end
if not FileExist(COMMON_PATH .. "PremiumPrediction.lua") then
DownloadFileAsync("https://raw.githubusercontent.com/Ark223/GoS-Scripts/master/PremiumPrediction.lua", COMMON_PATH .. "PremiumPrediction.lua", function() end)
print("PremiumPred. installed Press 2x F6")
return
end
if not FileExist(COMMON_PATH .. "GGPrediction.lua") then
DownloadFileAsync("https://raw.githubusercontent.com/gamsteron/GG/master/GGPrediction.lua", COMMON_PATH .. "GGPrediction.lua", function() end)
print("GGPrediction installed Press 2x F6")
return
end
local DrawInfo = false
-- -- [ AutoUpdate ]
-- do
-- local Version = 0.08
-- local Files = {
-- Lua = {
-- Path = SCRIPT_PATH,
-- Name = "14Yasuo_Vol2.lua",
-- Url = "https://raw.githubusercontent.com/Impulsx/GoS/master/14Yasuo_Vol2.lua"
-- },
-- Version = {
-- Path = SCRIPT_PATH,
-- Name = "14Yasuo_Vol2.version",
-- Url = "https://raw.githubusercontent.com/Impulsx/GoS/master/14Yasuo_Vol2.version"
-- }
-- }
-- local function AutoUpdate()
-- local function DownloadFile(url, path, fileName)
-- DownloadFileAsync(url, path .. fileName, function() end)
-- while not FileExist(path .. fileName) do end
-- end
-- local function ReadFile(path, fileName)
-- local file = io.open(path .. fileName, "r")
-- local result = file:read()
-- file:close()
-- return result
-- end
-- DownloadFile(Files.Version.Url, Files.Version.Path, Files.Version.Name)
-- local textPos = myHero.pos:To2D()
-- local NewVersion = tonumber(ReadFile(Files.Version.Path, Files.Version.Name))
-- if NewVersion > Version then
-- DownloadFile(Files.Lua.Url, Files.Lua.Path, Files.Lua.Name)
-- print("New 14Yasuo_Vol2 Version Press 2x F6")
-- else
-- DrawInfo = true
-- end
-- end
-- AutoUpdate()
-- end
Callback.Add("Draw", function()
if DrawInfo then
Draw.Text("14Yasuo_Vol2 Load after 30sec Ingame", 24, myHero.pos2D.x - 50, myHero.pos2D.y + 195, Draw.Color(255, 255, 0, 0))
end
end)
local GameHeroCount = Game.HeroCount
local GameHero = Game.Hero
local TableInsert = table.insert
local lastIG = 0
local lastMove = 0
local Enemys = {}
local Allys = {}
local Units = {}
local myHero = myHero
local TargetedSpell = {
--- A ---
["AhriOrbofDeception"] = {charName = "Ahri" , slot = "Q" , delay = 0.25, speed = 2500 , isMissile = true },
["AhriSeduce"] = {charName = "Ahri" , slot = "E" , delay = 0.25, speed = 1500 , isMissile = true },
["AkaliQ"] = {charName = "Akali" , slot = "Q" , delay = 0.25, speed = 3200 , isMissile = false},
["AkaliE"] = {charName = "Akali" , slot = "E" , delay = 0.25, speed = 1800 , isMissile = true },
["BandageToss"] = {charName = "Amumu" , slot = "Q" , delay = 0.25, speed = 2000 , isMissile = true },
["AatroxW"] = {charName = "Aatrox" , slot = "W" , delay = 0.25, speed = 1800 , isMissile = true },
["FlashFrostSpell"] = {charName = "Anivia" , slot = "Q" , delay = 0.25, speed = 850 , isMissile = true },
["Frostbite"] = {charName = "Anivia" , slot = "E" , delay = 0.25, speed = 1600 , isMissile = true },
["AnnieQ"] = {charName = "Annie" , slot = "Q" , delay = 0.25, speed = 1400 , isMissile = true },
["ApheliosCalibrumQ"] = {charName = "Aphelios" , slot = "Q1" , delay = 0.35, speed = 1850 , isMissile = true },
["ApheliosInfernumQ"] = {charName = "Aphelios" , slot = "Q2" , delay = 0.25, speed = 1500 , isMissile = false},
["ApheliosR"] = {charName = "Aphelios" , slot = "R" , delay = 0.5, speed = 2050 , isMissile = true },
["Volley"] = {charName = "Ashe" , slot = "W" , delay = 0.25, speed = 2000 , isMissile = true },
["EnchantedCrystalArrow"] = {charName = "Ashe" , slot = "R" , delay = 0.25, speed = 1600 , isMissile = true },
["AurelionSolQ"] = {charName = "AurelionSol" , slot = "Q" , delay = 0, speed = 850 , isMissile = true },
--- B ---
["BardQ"] = {charName = "Bard" , slot = "Q" , delay = 0.25, speed = 1500 , isMissile = true },
["RocketGrab"] = {charName = "Blitzcrank" , slot = "Q" , delay = 0.25, speed = 1800 , isMissile = true },
["BrandQ"] = {charName = "Brand" , slot = "Q" , delay = 0.25, speed = 1600 , isMissile = true },
["BrandR"] = {charName = "Brand" , slot = "R" , delay = 0.25, speed = 1000 , isMissile = true }, -- to be comfirm brand R delay 0.25 or 0.5
["BraumQ"] = {charName = "Braum" , slot = "Q" , delay = 0.25, speed = 1700 , isMissile = true },
["BraumR"] = {charName = "Braum" , slot = "R" , delay = 0.5, speed = 1400 , isMissile = true },
--- C ---
["CaitlynPiltoverPeacemaker"] = {charName = "Caitlyn" , slot = "Q" , delay = 0.62, speed = 2200 , isMissile = true },
["CaitlynEntrapment"] = {charName = "Caitlyn" , slot = "E" , delay = 0.15, speed = 1600 , isMissile = true },
["CamilleE"] = {charName = "Camille" , slot = "E1" , delay = 0, speed = 1900 , isMissile = true },
["CamilleEDash2"] = {charName = "Camille" , slot = "E2" , delay = 0, speed = 1900 , isMissile = false},
["CassiopeiaW"] = {charName = "Cassiopeia" , slot = "W" , delay = 0.75, speed = 2500 , isMissile = false},
["CassiopeiaE"] = {charName = "Cassiopeia" , slot = "E" , delay = 0.15, speed = 2500 , isMissile = true }, -- delay to be comfirm
["PhosphorusBomb"] = {charName = "Corki" , slot = "Q" , delay = 0.25, speed = 1000 , isMissile = true },
["MissileBarrageMissile"] = {charName = "Corki" , slot = "R1" , delay = 0.17, speed = 2000 , isMissile = true },
["MissileBarrageMissile2"] = {charName = "Corki" , slot = "R2" , delay = 0.17, speed = 2000 , isMissile = true },
--- D ---
["DianaQ"] = {charName = "Diana" , slot = "Q" , delay = 0.25, speed = 1900 , isMissile = false},
["DravenDoubleShot"] = {charName = "Draven" , slot = "E" , delay = 0.25, speed = 1600 , isMissile = true },
["DravenRCast"] = {charName = "Draven" , slot = "R" , delay = 0.25, speed = 2000 , isMissile = false},
["InfectedCleaverMissile"] = {charName = "DrMundo" , slot = "Q" , delay = 0.25, speed = 2000 , isMissile = true },
--- E ---
["EkkoQ"] = {charName = "Ekko" , slot = "Q" , delay = 0.25, speed = 1650 , isMissile = true },
["EliseHumanQ"] = {charName = "Elise" , slot = "Q1" , delay = 0.25, speed = 2200 , isMissile = true },
["EliseHumanE"] = {charName = "Elise" , slot = "E1" , delay = 0.25, speed = 1600 , isMissile = true },
["EvelynnQ"] = {charName = "Evelynn" , slot = "Q" , delay = 0.25, speed = 2400 , isMissile = true },
["EzrealQ"] = {charName = "Ezreal" , slot = "Q" , delay = 0.25, speed = 2000 , isMissile = true },
["EzrealW"] = {charName = "Ezreal" , slot = "W" , delay = 0.25, speed = 2000 , isMissile = true },
["EzrealR"] = {charName = "Ezreal" , slot = "R" , delay = 1, speed = 2000 , isMissile = true },
--- F ---
["FiddlesticksDarkWind"] = {charName = "FiddleSticks", slot = "E" , delay = 0.25, speed = 1100 , isMissile = true },
["FioraW"] = {charName = "Fiora" , slot = "W" , delay = 0.75, speed = 3200 , isMissile = false},
["FizzR"] = {charName = "Fizz" , slot = "R" , delay = 0.25, speed = 1300 , isMissile = true },
--- G ---
["GangplankQProceed"] = {charName = "Gangplank" , slot = "Q" , delay = 0.25, speed = 2600 , isMissile = true },
["GalioQ"] = {charName = "Galio" , slot = "Q" , delay = 0.25, speed = 1150 , isMissile = true },
["GnarQMissile"] = {charName = "Gnar" , slot = "Q1" , delay = 0.25, speed = 2500 , isMissile = true },
["GnarBigQMissile"] = {charName = "Gnar" , slot = "Q2" , delay = 0.5, speed = 2100 , isMissile = true },
["GragasQ"] = {charName = "Gragas" , slot = "Q" , delay = 0.25, speed = 1000 , isMissile = true },
["GragasR"] = {charName = "Gragas" , slot = "R" , delay = 0.25, speed = 1800 , isMissile = true },
["GravesQLineSpell"] = {charName = "Graves" , slot = "Q" , delay = 1.4, speed = math.huge , isMissile = false},
["GravesSmokeGrenade"] = {charName = "Graves" , slot = "W" , delay = 0.15, speed = 1500 , isMissile = true },
["GravesChargeShot"] = {charName = "Graves" , slot = "R" , delay = 0.25, speed = 2100 , isMissile = true },
--- H ---
["HeimerdingerW"] = {charName = "Heimerdinger", slot = "W" , delay = 0.25, speed = 2050 , isMissile = false},
["HeimerdingerE"] = {charName = "Heimerdinger", slot = "E" , delay = 0.25, speed = 1200 , isMissile = true },
["HeimerdingerEUlt"] = {charName = "Heimerdinger", slot = "EUlt" , delay = 0.25, speed = 1200 , isMissile = true },
--- I ---
["IllaoiE"] = {charName = "Illaoi" , slot = "E" , delay = 0.25, speed = 1900 , isMissile = true },
["IreliaR"] = {charName = "Irelia" , slot = "R" , delay = 0.4, speed = 2000 , isMissile = true },
["IvernQ"] = {charName = "Ivern" , slot = "Q" , delay = 0.25, speed = 1300 , isMissile = true },
--- J ---
["HowlingGaleSpell"] = {charName = "Janna" , slot = "Q" , delay = 0.25, speed = 667 , isMissile = true },
["SowTheWind"] = {charName = "Janna" , slot = "W" , delay = 0.25, speed = 1600 , isMissile = true },
["JayceShockBlast"] = {charName = "Jayce" , slot = "Q1" , delay = 0.21, speed = 1450 , isMissile = true },
["JayceShockBlastWallMis"] = {charName = "Jayce" , slot = "Q2" , delay = 0.15, speed = 2350 , isMissile = true },
["JhinW"] = {charName = "Jhin" , slot = "W" , delay = 0.75, speed = 5000 , isMissile = false},
["JhinRShot"] = {charName = "Jhin" , slot = "R" , delay = 0.25, speed = 5000 , isMissile = true },
["JinxWMissile"] = {charName = "Jinx" , slot = "W" , delay = 0.6, speed = 3300 , isMissile = true },
["JinxEHit"] = {charName = "Jinx" , slot = "E" , delay = 1.5, speed = 1100 , isMissile = true },
["JinxR"] = {charName = "Jinx" , slot = "R" , delay = 0.6, speed = 1700 , isMissile = true },
--- K ---
["KatarinaQ"] = {charName = "Katarina" , slot = "Q" , delay = 0.25, speed = 1600 , isMissile = true },
["NullLance"] = {charName = "Kassadin" , slot = "Q" , delay = 0.25, speed = 1400 , isMissile = true },
["KaisaW"] = {charName = "Kaisa" , slot = "W" , delay = 0.4, speed = 1750 , isMissile = true },
["KalistaMysticShot"] = {charName = "Kalista" , slot = "Q" , delay = 0.25, speed = 2400 , isMissile = true },
["KarmaQ"] = {charName = "Karma" , slot = "Q1" , delay = 0.25, speed = 1700 , isMissile = true },
["KarmaQMantra"] = {charName = "Karma" , slot = "Q2" , delay = 0.25, speed = 1700 , isMissile = true },
["KayleQ"] = {charName = "Kayle" , slot = "Q" , delay = 0.25, speed = 1600 , isMissile = true },
["KennenShurikenHurlMissile1"] = {charName = "Kennen" , slot = "Q" , delay = 0.17, speed = 1700 , isMissile = true },
["KhazixW"] = {charName = "Khazix" , slot = "W1" , delay = 0.25, speed = 1700 , isMissile = true },
["KhazixWLong"] = {charName = "Khazix" , slot = "W2" , delay = 0.25, speed = 1700 , isMissile = false},
["KledQ"] = {charName = "Kled" , slot = "QMount" , delay = 0.25, speed = 1600 , isMissile = true },
["KledRiderQ"] = {charName = "Kled" , slot = "QDismount", delay = 0.25, speed = 3000 , isMissile = true },
["KogMawQ"] = {charName = "KogMaw" , slot = "Q" , delay = 0.25, speed = 1650 , isMissile = true },
["KogMawVoidOozeMissile"] = {charName = "KogMaw" , slot = "E" , delay = 0.25, speed = 1400 , isMissile = true },
--- L ---
["LeblancQ"] = {charName = "Leblanc" , slot = "Q" , delay = 0.25, speed = 2000 , isMissile = true },
["LeblancRQ"] = {charName = "Leblanc" , slot = "RQ" , delay = 0.25, speed = 2000 , isMissile = true },
["LeblancE"] = {charName = "Leblanc" , slot = "E" , delay = 0.25, speed = 1750 , isMissile = true },
["LeblancRE"] = {charName = "Leblanc" , slot = "RE" , delay = 0.25, speed = 1750 , isMissile = true },
["BlindMonkQOne"] = {charName = "LeeSin" , slot = "Q" , delay = 0.25, speed = 1800 , isMissile = true },
["LeonaZenithBlade"] = {charName = "Leona" , slot = "E" , delay = 0.25, speed = 2000 , isMissile = true },
["LissandraQMissile"] = {charName = "Lissandra" , slot = "Q" , delay = 0.25, speed = 2200 , isMissile = true },
["LissandraEMissile"] = {charName = "Lissandra" , slot = "E" , delay = 0.25, speed = 850 , isMissile = true },
["LucianW"] = {charName = "Lucian" , slot = "W" , delay = 0.25, speed = 1600 , isMissile = true },
["LuxLightBinding"] = {charName = "Lux" , slot = "Q" , delay = 0.25, speed = 1200 , isMissile = true },
["LuxLightStrikeKugel"] = {charName = "Lux" , slot = "E" , delay = 0.25, speed = 1200 , isMissile = true },
["LuluQ"] = {charName = "Lulu" , slot = "Q" , delay = 0.25, speed = 1450 , isMissile = true },
["LuluWTwo"] = {charName = "Lulu" , slot = "W" , delay = 0.25, speed = 2250 , isMissile = true },
--- M ---
["SeismicShard"] = {charName = "Malphite" , slot = "Q" , delay = 0.25, speed = 1200 , isMissile = true },
["MaokaiQ"] = {charName = "Maokai" , slot = "Q" , delay = 0.37, speed = 1600 , isMissile = true },
["MordekaiserE"] = {charName = "Mordekaiser" , slot = "E" , delay = 0.9, speed = math.huge , isMissile = false},
["MorganaQ"] = {charName = "Morgana" , slot = "Q" , delay = 0.25, speed = 1200 , isMissile = true },
["MissFortuneRicochetShot"] = {charName = "MissFortune" , slot = "Q" , delay = 0.25, speed = 1400 , isMissile = true },
["MissFortuneBulletTime"] = {charName = "MissFortune" , slot = "R" , delay = 0.25, speed = 2000 , isMissile = false},
--- N ---
["NamiQ"] = {charName = "Nami" , slot = "Q" , delay = 1, speed = math.huge , isMissile = true },
["NamiW"] = {charName = "Nami" , slot = "W" , delay = 0.25, speed = 2000 , isMissile = true },
["NamiRMissile"] = {charName = "Nami" , slot = "R" , delay = 0.5, speed = 850 , isMissile = true },
["NautilusAnchorDragMissile"] = {charName = "Nautilus" , slot = "Q" , delay = 0.25, speed = 2000 , isMissile = true },
["NautilusGrandLine"] = {charName = "Nautilus" , slot = "R" , delay = 0.5 , speed = 1400 , isMissile = true }, -- delay to be comfirm
["NeekoQ"] = {charName = "Neeko" , slot = "Q" , delay = 0.25, speed = 1500 , isMissile = true },
["NeekoE"] = {charName = "Neeko" , slot = "E" , delay = 0.25, speed = 1300 , isMissile = true },
["JavelinToss"] = {charName = "Nidalee" , slot = "Q" , delay = 0.25, speed = 1300 , isMissile = true },
["NocturneDuskbringer"] = {charName = "Nocturne" , slot = "Q" , delay = 0.25, speed = 1600 , isMissile = true },
--- O ---
["OlafAxeThrowCast"] = {charName = "Olaf" , slot = "Q" , delay = 0.25, speed = 1600 , isMissile = true },
["OrnnQ"] = {charName = "Ornn" , slot = "Q" , delay = 0.3, speed = 1800 , isMissile = false},
["OrnnRCharge"] = {charName = "Ornn" , slot = "R" , delay = 0.5, speed = 1650 , isMissile = false},
--- P ---
["PantheonQ"] = {charName = "Pantheon" , slot = "Q" , delay = 0.25, speed = 1500 , isMissile = true }, -- missle.name = PantheonQMissile
["PantheonR"] = {charName = "Pantheon" , slot = "R" , delay = 4, speed = 2250 , isMissile = false},
["PoppyRSpell"] = {charName = "Poppy" , slot = "R" , delay = 0.33, speed = 2000 , isMissile = true },
["PykeQRange"] = {charName = "Pyke" , slot = "Q" , delay = 0.2, speed = 2000 , isMissile = true },
--- Q ---
["QiyanaQ_Grass"] = {charName = "Qiyana" , slot = "QGrass" , delay = 0.25, speed = 1600 , isMissile = false},
["QiyanaQ_Rock"] = {charName = "Qiyana" , slot = "QRock" , delay = 0.25, speed = 1600 , isMissile = false},
["QiyanaQ_Water"] = {charName = "Qiyana" , slot = "QWater" , delay = 0.25, speed = 1600 , isMissile = false},
["QiyanaR"] = {charName = "Qiyana" , slot = "R" , delay = 0.25, speed = 2000 , isMissile = false},
["QuinnQ"] = {charName = "Quinn" , slot = "Q" , delay = 0.25, speed = 1550 , isMissile = true },
--- R ---
["RyzeQ"] = {charName = "Ryze" , slot = "Q" , delay = 0.25, speed = 1700 , isMissile = true },
["RyzeE"] = {charName = "Ryze" , slot = "E" , delay = 0.25, speed = 3500 , isMissile = true },
["RakanQ"] = {charName = "Rakan" , slot = "Q" , delay = 0.25, speed = 1850 , isMissile = true },
["RekSaiQBurrowed"] = {charName = "RekSai" , slot = "Q" , delay = 0.13, speed = 1950 , isMissile = true },
["RengarE"] = {charName = "Rengar" , slot = "E" , delay = 0.25, speed = 1500 , isMissile = true },
["RivenIzunaBlade"] = {charName = "Riven" , slot = "R" , delay = 0.25, speed = 1600 , isMissile = false},
["RumbleGrenade"] = {charName = "Rumble" , slot = "E" , delay = 0.25, speed = 2000 , isMissile = true },
--- S ---
["SejuaniR"] = {charName = "Sejuani" , slot = "R" , delay = 0.25, speed = 1600 , isMissile = true },
["SennaW"] = {charName = "Senna" , slot = "W" , delay = 0.25, speed = 1150 , isMissile = true },
["SennaR"] = {charName = "Senna" , slot = "R" , delay = 1, speed = 20000 , isMissile = true },
["ShyvanaFireball"] = {charName = "Shyvana" , slot = "EHuman" , delay = 0.25, speed = 1575 , isMissile = true },
["ShyvanaFireballDragon2"] = {charName = "Shyvana" , slot = "EDragon" , delay = 0.33, speed = 1575 , isMissile = true },
["SionE"] = {charName = "Sion" , slot = "E" , delay = 0.25, speed = 1800 , isMissile = true },
["SivirQ"] = {charName = "Sivir" , slot = "Q" , delay = 0.25, speed = 1350 , isMissile = true },
["SkarnerFractureMissile"] = {charName = "Skarner" , slot = "E" , delay = 0.25, speed = 1500 , isMissile = true },
["SwainQ"] = {charName = "Swain" , slot = "Q" , delay = 0.25, speed = 5000 , isMissile = false},
["SwainE"] = {charName = "Swain" , slot = "E" , delay = 0.25, speed = 1800 , isMissile = false},
["SylasE2"] = {charName = "Sylas" , slot = "E" , delay = 0.25, speed = 1600 , isMissile = true },
["SyndraE"] = {charName = "Syndra" , slot = "E" , delay = 0.25, speed = 1600 , isMissile = false},
["SyndraR"] = {charName = "Syndra" , slot = "R" , delay = 0.25, speed = 1400 , isMissile = true },
["TwoShivPoison"] = {charName = "Shaco" , slot = "E" , delay = 0.25, speed = 1500 , isMissile = true },
--- T ---
["BlindingDart"] = {charName = "Teemo" , slot = "Q" , delay = 0.25, speed = 1500 , isMissile = true },
["TristanaR"] = {charName = "Tristana" , slot = "R" , delay = 0.25, speed = 2000 , isMissile = true },
["TahmKenchQ"] = {charName = "TahmKench" , slot = "Q" , delay = 0.25, speed = 2800 , isMissile = true },
["TaliyahQMis"] = {charName = "Taliyah" , slot = "Q" , delay = 0.25, speed = 3600 , isMissile = true },
["TalonW"] = {charName = "Talon" , slot = "W" , delay = 0.25, speed = 2500 , isMissile = true },
["ThreshQMissile"] = {charName = "Thresh" , slot = "Q" , delay = 0.5, speed = 1900 , isMissile = true },
["WildCards"] = {charName = "TwistedFate" , slot = "Q" , delay = 0.25, speed = 1000 , isMissile = true },
["BlueCardPreAttack"] = {charName = "TwistedFate" , slot = "WBlue" , delay = 0 , speed = 1500 , isMissile = true },
["RedCardPreAttack"] = {charName = "TwistedFate" , slot = "WRed" , delay = 0 , speed = 1500 , isMissile = true },
["GoldCardPreAttack"] = {charName = "TwistedFate" , slot = "WGold" , delay = 0 , speed = 1500 , isMissile = true },
--- U ---
["UrgotQ"] = {charName = "Urgot" , slot = "Q" , delay = 0.6, speed = math.huge , isMissile = true },
["UrgotR"] = {charName = "Urgot" , slot = "R" , delay = 0.5, speed = 3200 , isMissile = true },
--- V ---
["VayneCondemn"] = {charName = "Vayne" , slot = "E" , delay = 0.25, speed = 2200 , isMissile = true },
["VarusQMissile"] = {charName = "Varus" , slot = "Q" , delay = 0.25, speed = 1900 , isMissile = true },
["VarusE"] = {charName = "Varus" , slot = "E" , delay = 0.24, speed = 1500 , isMissile = true },
["VarusR"] = {charName = "Varus" , slot = "R" , delay = 0.25, speed = 1950 , isMissile = true },
["VelkozQ"] = {charName = "Velkoz" , slot = "Q" , delay = 0.25, speed = 1300 , isMissile = true },
["VelkozW"] = {charName = "Velkoz" , slot = "W" , delay = 0.25, speed = 1700 , isMissile = true },
["VeigarBalefulStrike"] = {charName = "Veigar" , slot = "Q" , delay = 0.25, speed = 2200 , isMissile = true },
["VeigarR"] = {charName = "Veigar" , slot = "R" , delay = 0.25, speed = 500 , isMissile = true },
["ViktorPowerTransfer"] = {charName = "Viktor" , slot = "Q" , delay = 0.25, speed = 2000 , isMissile = true },
["ViktorDeathRayMissile"] = {charName = "Viktor" , slot = "E" , delay = 0.25, speed = 1050 , isMissile = true },
--- W ---
--- X ---
["XayahQ"] = {charName = "Xayah" , slot = "Q" , delay = 0.5, speed = 2075 , isMissile = true },
["XerathMageSpear"] = {charName = "Xerath" , slot = "E" , delay = 0.2, speed = 1400 , isMissile = true },
--- Y ---
["YasuoQ3Mis"] = {charName = "Yasuo" , slot = "Q3" , delay = 0.34, speed = 1200 , isMissile = true },
--- Z ---
["ZacQ"] = {charName = "Zac" , slot = "Q" , delay = 0.33, speed = 2800 , isMissile = true },
["ZedQ"] = {charName = "Zed" , slot = "Q" , delay = 0.25, speed = 1700 , isMissile = true },
["ZiggsQ"] = {charName = "Ziggs" , slot = "Q" , delay = 0.25, speed = 850 , isMissile = true },
["ZiggsW"] = {charName = "Ziggs" , slot = "W" , delay = 0.25, speed = 1000 , isMissile = true },
["ZiggsE"] = {charName = "Ziggs" , slot = "E" , delay = 0.25, speed = 900 , isMissile = true },
["ZileanQ"] = {charName = "Zilean" , slot = "Q" , delay = 0.8, speed = math.huge , isMissile = true },
["ZoeQMissile"] = {charName = "Zoe" , slot = "Q1" , delay = 0.25, speed = 1200 , isMissile = true },
["ZoeQMis2"] = {charName = "Zoe" , slot = "Q2" , delay = 0, speed = 2500 , isMissile = true },
["ZoeE"] = {charName = "Zoe" , slot = "E" , delay = 0.3, speed = 1700 , isMissile = true },
["ZyraE"] = {charName = "Zyra" , slot = "E" , delay = 0.25, speed = 1150 , isMissile = true }
}
function LoadUnits()
for i = 1, Game.HeroCount() do
local unit = Game.Hero(i); Units[i] = {unit = unit, spell = nil}
end
end
local function GetDistanceSquared(vec1, vec2)
local dx = vec1.x - vec2.x
local dy = (vec1.z or vec1.y) - (vec2.z or vec2.y)
return dx * dx + dy * dy
end
local function GetDistanceSqr(pos1, pos2)
local pos2 = pos2 or myHero.pos
local dx = pos1.x - pos2.x
local dz = (pos1.z or pos1.y) - (pos2.z or pos2.y)
return dx * dx + dz * dz
end
local function GetDistance(p1, p2)
p2 = p2 or myHero
return math.sqrt(GetDistanceSqr(p1, p2))
end
local function IsValid(unit)
if (unit
and unit.valid
and unit.isTargetable
and unit.alive
and unit.visible
and unit.networkID
and unit.health > 0
and not unit.dead
) then
return true;
end
return false;
end
local function Ready(spell)
return myHero:GetSpellData(spell).currentCd == 0
and myHero:GetSpellData(spell).level > 0
and myHero:GetSpellData(spell).mana <= myHero.mana
and Game.CanUseSpell(spell) == 0
end
local function OnAllyHeroLoad(cb)
for i = 1, GameHeroCount() do
local obj = GameHero(i)
if obj.isAlly then
cb(obj)
end
end
end
local function OnEnemyHeroLoad(cb)
for i = 1, GameHeroCount() do
local obj = GameHero(i)
if obj.isEnemy then
cb(obj)
end
end
end
local function GetEnemyHeroes()
local _EnemyHeroes = {}
for i = 1, Game.HeroCount() do
local unit = Game.Hero(i)
if unit.team ~= myHero.team then
table.insert(_EnemyHeroes, unit)
end
end
return _EnemyHeroes
end
local function GetMinionCount(range, pos)
local pos = pos.pos
local count = 0
for i = 1,Game.MinionCount() do
local hero = Game.Minion(i)
local Range = range * range
if hero.team ~= TEAM_ALLY and hero.dead == false and GetDistanceSqr(pos, hero.pos) < Range then
count = count + 1
end
end
return count
end
local function GetEnemyCount(range, pos)
local pos = pos.pos
local count = 0
for i, hero in ipairs(GetEnemyHeroes()) do
local Range = range * range
if GetDistanceSqr(pos, hero.pos) < Range and IsValid(hero) then
count = count + 1
end
end
return count
end
local function ConvertToHitChance(menuValue, hitChance)
return menuValue == 1 and _G.PremiumPrediction.HitChance.High(hitChance)
or menuValue == 2 and _G.PremiumPrediction.HitChance.VeryHigh(hitChance)
or _G.PremiumPrediction.HitChance.Immobile(hitChance)
end
local function CheckHPPred(unit, time)
if _G.SDK and _G.SDK.Orbwalker then
return _G.SDK.HealthPrediction:GetPrediction(unit, time)
elseif _G.PremiumOrbwalker then
return _G.PremiumOrbwalker:GetHealthPrediction(unit, time)
end
end
local function VectorPointProjectionOnLineSegment(v1, v2, v)
local cx, cy, ax, ay, bx, by = v.x, v.z, v1.x, v1.z, v2.x, v2.z
local rL = ((cx - ax) * (bx - ax) + (cy - ay) * (by - ay)) / ((bx - ax) ^ 2 + (by - ay) ^ 2)
local pointLine = { x = ax + rL * (bx - ax), y = ay + rL * (by - ay) }
local rS = rL < 0 and 0 or (rL > 1 and 1 or rL)
local isOnSegment = rS == rL
local pointSegment = isOnSegment and pointLine or { x = ax + rS * (bx - ax), y = ay + rS * (by - ay) }
return pointSegment, pointLine, isOnSegment
end
local function GetPathNodes(unit)
local nodes = {}
table.insert(nodes, unit.pos)
if unit.pathing.hasMovePath then
for i = unit.pathing.pathIndex, unit.pathing.pathCount do
local path = unit:GetPath(i)
table.insert(nodes, path)
end
end
return nodes
end
local function GetTargetMS(target)
local ms = target.ms
return ms
end
local function PredictUnitPosition(unit, delay)
local predictedPosition = unit.pos
local timeRemaining = delay
local pathNodes = GetPathNodes(unit)
for i = 1, #pathNodes -1 do
local nodeDistance = GetDistance(pathNodes[i], pathNodes[i +1])
local nodeTraversalTime = nodeDistance / GetTargetMS(unit)
if timeRemaining > nodeTraversalTime then
timeRemaining = timeRemaining - nodeTraversalTime
predictedPosition = pathNodes[i + 1]
else
local directionVector = (pathNodes[i+1] - pathNodes[i]):Normalized()
predictedPosition = pathNodes[i] + directionVector * GetTargetMS(unit) * timeRemaining
break;
end
end
return predictedPosition
end
local function GetLineTargetCount(source, Pos, delay, speed, width, range)
local Count = 0
for i = 1, Game.MinionCount() do
local minion = Game.Minion(i)
if minion and minion.team == TEAM_ENEMY and source:DistanceTo(minion.pos) < range and IsValid(minion) then
local predictedPos = PredictUnitPosition(minion, delay+ GetDistance(source, minion.pos) / speed)
local proj1, pointLine, isOnSegment = VectorPointProjectionOnLineSegment(source, Pos, predictedPos)
if proj1 and isOnSegment and (GetDistanceSqr(predictedPos, proj1) <= (minion.boundingRadius + width) * (minion.boundingRadius + width)) then
Count = Count + 1
end
end
end
return Count
end
local function HasBuffType(unit, type)
for i = 0, unit.buffCount do
local buff = unit:GetBuff(i)
if buff and buff.count > 0 and buff.type == type then
return true
end
end
return false
end
local function cantkill(unit, kill, ss, aa)
--set kill to true if you dont want to waste on undying/revive targets
--set ss to true if you dont want to cast on spellshield
--set aa to true if ability applies onhit (yone q, ez q etc)
for i = 0, unit.buffCount do
local buff = unit:GetBuff(i)
if buff.name:lower():find("kayler") and buff.count==1 then
return true
end
if buff.name:lower():find("undyingrage") and (unit.health<100 or kill) and buff.count==1 then
return true
end
if buff.name:lower():find("kindredrnodeathbuff") and (kill or (unit.health / unit.maxHealth)<0.11) and buff.count==1 then
return true
end
if buff.name:lower():find("chronoshift") and kill and buff.count==1 then
return true
end
-- check for renata's W:
if buff.name:lower():find("willrevive") and (unit.health / unit.maxHealth) >= 0.5 and kill and buff.count==1 then
return true
end
if buff.name:lower():find("morganae") and ss and buff.count==1 then
return true
end
if (buff.name:lower():find("fioraw") or buff.name:lower():find("pantheone")) and buff.count==1 then
return true
end
if buff.name:lower():find("jaxcounterstrike") and aa and buff.count==1 then
return true
end
if buff.name:lower():find("nilahw") and aa and buff.count==1 then
return true
end
if buff.name:lower():find("shenwbuff") and aa and buff.count==1 then
return true
end
end
if HasBuffType(unit, 4) and ss then
return true
end
return false
end
local Allies, Enemies, Turrets, FriendlyTurrets, Units = {}, {}, {}, {}, {}
local function GetEnemiesAtPos(checkrange, range, pos,target)
local enemies = _G.SDK.ObjectManager:GetEnemyHeroes(checkrange)
local results = {}
for i = 1, #enemies do
local enemy = enemies[i]
local Range = range * range
if GetDistanceSqr(pos, enemy.pos) < Range and IsValid(enemy) and enemy ~= target then
table.insert(results, enemy)
end
if target then
table.insert(results, target)
end
end
return results
end
local function AverageClusterPosition(targets)
local finalPos = {x = 0, z = 0}
for _, target in pairs(targets) do
finalPos.x = finalPos.x + target.pos.x
finalPos.z = finalPos.z + target.pos.z
end
finalPos.x = finalPos.x / #targets
finalPos.z = finalPos.z / #targets
local point = Vector(finalPos.x, myHero.pos.y, finalPos.z)
return point
end
local function CalculateBoundingBoxAvg(targets, predDelay)
local highestX, lowestX, highestZ, lowestZ = 0, math.huge, 0, math.huge
local avg = {x = 0, y = 0, z = 0}
for k, v in pairs(targets) do
local vPos = v.pos
if(predDelay > 0) then
vPos = v:GetPrediction(math.huge, predDelay)
end
if(vPos.x >= highestX) then
highestX = v.pos.x
end
if(vPos.z >= highestZ) then
highestZ = v.pos.z
end
if(vPos.x < lowestX) then
lowestX = v.pos.x
end
if(vPos.z < lowestZ) then
lowestZ = v.pos.z
end
end
local vec1 = Vector(highestX, myHero.pos.y, highestZ)
local vec2 = Vector(highestX, myHero.pos.y, lowestZ)
local vec3 = Vector(lowestX, myHero.pos.y, highestZ)
local vec4 = Vector(lowestX, myHero.pos.y, lowestZ)
avg = (vec1 + vec2 + vec3 + vec4) /4
return avg
end
local function FindFurthestTargetFromMe(targets)
local furthestTarget = targets[1]
local furthestDist = 0
for _, target in pairs(targets) do
local dist = myHero.pos:DistanceTo(target.pos)
if(dist >= furthestDist) then
furthestTarget = target
furthestDist = dist
end
end
return furthestTarget
end
class "Yasuo"
local PredLoaded = false
function Yasuo:__init()
if DrawInfo then DrawInfo = false end
self.Q = {speed = math.huge, range = 475, delay = 0.35, radius = 40, collision = {nil}, type = "linear"}
self.Q3 = {speed = 1200, range = 1100, delay = 0.35, radius = 90, collision = {nil}, type = "linear"}
self.E = {Range = 475, Speed = 715}
self.R = {Range = 1400}
self.Epre = {Delay = 475/(myHero.ms+750)}
self.QCirWidth = 230
self.RWidth = 400
self.blockQ = false
self.lastETick = GetTickCount()
self.lastQTick = GetTickCount()
OnAllyHeroLoad(function(hero) TableInsert(Allys, hero); end)
OnEnemyHeroLoad(function(hero) TableInsert(Enemys, hero); end)
_G.SDK.Orbwalker:OnPreMovement(
function(args)
if lastMove + 180 > GetTickCount() then
args.Process = false
else
args.Process = true
lastMove = GetTickCount()
end
end
)
self:LoadMenu()
if not PredLoaded then
DelayAction(function()
if self.tyMenu.Pred.Change:Value() == 1 then
require('PremiumPrediction')
PredLoaded = true
else
require('GGPrediction')
PredLoaded = true
end
end, 1)
end
Callback.Add("Tick", function() self:Tick() end)
Callback.Add("Draw", function() self:Draw() end)
end
function Yasuo:LoadMenu()
self.tyMenu = MenuElement({type = MENU, id = "14isbjorn", name = "14Yasuo_Vol.3"})
self.tyMenu:MenuElement({name = " ", drop = {"Reworked^2 by isbjorn"}})
self.tyMenu:MenuElement({name = "Ping", id = "ping", value = 60, min = 0, max = 300, step = 1})
-- self.tyMenu:MenuElement({type = MENU, id = "StackQ", name = "StackQ Logic"})
-- self.tyMenu.StackQ:MenuElement({name = " ", drop = {"[Combo/Harass]"}})
-- self.tyMenu.StackQ:MenuElement({id = "enable", name = "StackQ if no Enemy in Qrange", key = string.byte("T"), value = true, toggle = true})
-- self.tyMenu.StackQ:MenuElement({id = "draw", name = "Draw Info Text", value = true})
self.tyMenu:MenuElement({type = MENU, id = "combo", name = "Combo"})
self.tyMenu.combo:MenuElement({id = "ign", name = "Ignite", value = true})
self.tyMenu.combo:MenuElement({id = "ign2", name = "Ignite if Target out of E-range ( KS )", value = true})
self.tyMenu.combo:MenuElement({id = "ignmode", name = "Ignite Mode", value = 2, drop = {"Use in fight if Kill possible", "Use only for KS"}})
self.tyMenu.combo:MenuElement({id = "useQL", name = "[Q1]/[Q2]", value = true})
self.tyMenu.combo:MenuElement({id = "useQ3", name = "[Q3]", value = true})
-- self.tyMenu.combo:MenuElement({id = "Qmode", name = "Q3 Mode", value = 1, drop = {"Priority Circle Q3", "Priority Line Q3"}})
self.tyMenu.combo:MenuElement({id = "useE", name = "[E]", value = false, tooltip ="use 'A' in combo instead"})
self.tyMenu.combo:MenuElement({id = "Emode", name = "E Mode", value = 1, drop = {"E to target", "E to cursor"}})
self.tyMenu.combo:MenuElement({name = "E Gap Closer Range", id = "Erange", value = 800, min = 400, max = 1800, step = 100})
self.tyMenu.combo:MenuElement({id = "ETower", name = "Stop E Into Tower Range", value = true})
self.tyMenu.combo:MenuElement({type = MENU, id = "Ult", name = "Ultimate"})
self.tyMenu.combo.Ult:MenuElement({name = " ", drop = {"---- 1 vs 1 Ultimate Settings ----"}})
self.tyMenu.combo.Ult:MenuElement({id = "useR4", name = "[R]", value = false})
self.tyMenu.combo.Ult:MenuElement({id = "R4Hp", name = "if Target Hp lower than -->", value = 50, min = 0, max = 100})
self.tyMenu.combo.Ult:MenuElement({id = "R4Range", name = "Range Check for no Enemies around Target", value = 1000, min = 0, max = 2000})
self.tyMenu.combo.Ult:MenuElement({id = "DontSoloUlt", name = "Don't Use Solo R on...", type = MENU})
DelayAction(function()
for i, hero in ipairs(GetEnemyHeroes()) do
self.tyMenu.combo.Ult.DontSoloUlt:MenuElement({id = hero.charName, name = hero.charName, value = true})
end
end,0.01)
self.tyMenu.combo.Ult:MenuElement({name = " ", drop = {"\\\\\\\\\\\\\\\\\\////////////////////"}})
self.tyMenu.combo.Ult:MenuElement({name = " ", drop = {"//////////////////\\\\\\\\\\\\\\\\\\\\"}})
self.tyMenu.combo.Ult:MenuElement({name = " ", drop = {"---- TeamFight Ultimate Settings ----"}})
self.tyMenu.combo.Ult:MenuElement({name = " ", drop = {"AirBlade need more than 1.33 AttackSpeed"}})
self.tyMenu.combo.Ult:MenuElement({id = "useR1", name = "[R] [AirBlade] Full DPS (WIP)", value = true})
self.tyMenu.combo.Ult:MenuElement({id = "useR2", name = "[R] if killable full Combo", value = false})
self.tyMenu.combo.Ult:MenuElement({id = "useR3", name = "[R] multible Enemies", value = true})
self.tyMenu.combo.Ult:MenuElement({id = "Count", name = "Min Enemies for [R]", value = 3, min = 2, max = 5})
self.tyMenu:MenuElement({type = MENU, id = "harass", name = "Harass"})
self.tyMenu.harass:MenuElement({id = "useQL", name = "[Q1]/[Q2]", value = true})
self.tyMenu.harass:MenuElement({id = "useQ3", name = "[Q3]", value = true})
self.tyMenu:MenuElement({type = MENU, id = "clear", name = "LaneClear"})
self.tyMenu.clear:MenuElement({id = "useQL", name = "[Q1]/[Q2]", value = true})
self.tyMenu.clear:MenuElement({id = "useQ3", name = "[Q3]", value = true})
self.tyMenu.clear:MenuElement({id = "count", name = "Min Minions for [Q3]", value = 3, min = 1, max = 7})
self.tyMenu.clear:MenuElement({id = "useE", name = "[E]", value = true})
self.tyMenu.clear:MenuElement({id = "useE2", name = "[E] Logic", value = 1, drop = {"[E] LastHit", "[E] Everytime"}})
self.tyMenu.clear:MenuElement({id = "ETower", name = "Stop E Into Tower Range", value = true})
self.tyMenu.clear:MenuElement({id = "EQ", name = "FastClear [E] + [Q]", value = false})
self.tyMenu.clear:MenuElement({id = "count2", name = "Min Minions for FastClear", value = 5, min = 2, max = 7})
self.tyMenu:MenuElement({type = MENU, id = "jungle", name = "JungleClear"})
self.tyMenu.jungle:MenuElement({id = "useQL", name = "[Q1]/[Q2]", value = true})
self.tyMenu.jungle:MenuElement({id = "useQ3", name = "[Q3]", value = false})
self.tyMenu.jungle:MenuElement({id = "EQ", name = "FastClear [E] + [Q]", value = false})
self.tyMenu:MenuElement({type = MENU, id = "last", name = "LastHit Minion"})
self.tyMenu.last:MenuElement({id = "useQL", name = "[Q1]/[Q2]", value = true})
self.tyMenu.last:MenuElement({id = "useQ3", name = "[Q3]", value = false})
self.tyMenu.last:MenuElement({id = "useE", name = "[E]", value = true})
self.tyMenu.last:MenuElement({id = "ETower", name = "Stop E Into Tower Range", value = true})
self.tyMenu:MenuElement({type = MENU, id = "flee", name = "Flee"})
self.tyMenu.flee:MenuElement({id = "EKey", name = "Key",toggle=false, key = string.byte("A")})
self.tyMenu.flee:MenuElement({id = "ETower", name = "Stop E Into Tower Range", value = true})
self.tyMenu.flee:MenuElement({id = "EQ", name = "Use Q while dashing if will hit", value = true})
self.tyMenu.flee:MenuElement({id = "Eprecison", name = "Higher value means will require smaller angle b/t cursor pos and endpos", value = 0.7, min = 0, max = 0.95, step =0.01})
self.tyMenu:MenuElement({type = MENU, id = "windwall", name = "WindWall Setting"})
self.tyMenu.windwall:MenuElement({id = "Wcombo", name = "Only Cast W in Combo", value = true})
self.tyMenu.windwall:MenuElement({type = MENU, id = "spell", name = "Targeted Spell Setting"})
self.tyMenu:MenuElement({type = MENU, id = "beyblade", name = "beyblade"})
self.tyMenu.beyblade:MenuElement({id = "Key", name = "Key",toggle=false, key = string.byte("S")})
DelayAction(function()
for i, hero in ipairs(GetEnemyHeroes()) do
for k, v in pairs(TargetedSpell) do
if v.charName == hero.charName then
self.tyMenu.windwall.spell:MenuElement({id = k, name = v.charName.." | "..v.slot , value = false})
end
end
end
end,0.01)
self.tyMenu:MenuElement({type = MENU, id = "Pred", name = "Prediction Settings"})
self.tyMenu.Pred:MenuElement({name = " ", drop = {"After change Prediction Typ press 2xF6"}})
self.tyMenu.Pred:MenuElement({id = "Change", name = "Change Prediction Typ", value = 2, drop = {"Premium Prediction", "GGPrediction"}})
self.tyMenu.Pred:MenuElement({id = "PredQ", name = "Hitchance[Q]", value = 1, drop = {"Normal", "High", "Immobile"}})
self.tyMenu.Pred:MenuElement({id = "PredQ3", name = "Hitchance[Q3]", value = 2, drop = {"Normal", "High", "Immobile"}})
--Draw
self.tyMenu:MenuElement({type = MENU, id = "drawing", name = "Drawing"})
self.tyMenu.drawing:MenuElement({id = "Q", name = "Draw [Q] Range", value = true})
self.tyMenu.drawing:MenuElement({id = "Q3", name = "Draw [Q3] Range", value = true})
self.tyMenu.drawing:MenuElement({id = "E", name = "Draw [E] Range", value = true})
self.tyMenu.drawing:MenuElement({id = "EGap", name = "Draw [E] Gap Closer Range", value = false})
self.tyMenu.drawing:MenuElement({id = "R", name = "Draw [R] Range", value = false})
self.tyMenu.drawing:MenuElement({id = "RClusters", name = "Debug Beyblade R clusters", value = false})
end
--local prePos
function Yasuo:Draw()
if myHero.dead then return end
-- if self.tyMenu.StackQ.draw:Value() then
-- if self.tyMenu.StackQ.enable:Value() then
-- Draw.Text("StackQ ON", 18, myHero.pos2D.x,myHero.pos2D.y+10, Draw.Color(255, 30, 230, 30))
-- else
-- Draw.Text("StackQ OFF", 18, myHero.pos2D.x,myHero.pos2D.y+10, Draw.Color(255, 230, 30, 30))
-- end
-- end
if self.tyMenu.drawing.Q:Value() and Ready(_Q) then
Draw.Circle(myHero.pos, self.Q.range,Draw.Color(80 ,0xFF,0xFF,0xFF))
end
if self.tyMenu.drawing.Q3:Value() and myHero:GetSpellData(0).name == "YasuoQ3Wrapper" then
Draw.Circle(myHero.pos, self.Q3.range,Draw.Color(80 ,0xFF,0xFF,0xFF))
end
if self.tyMenu.drawing.E:Value() and Ready(_E) then
Draw.Circle(myHero.pos, self.E.Range,Draw.Color(80 ,0xFF,0xFF,0xFF))
end
if self.tyMenu.drawing.EGap:Value() and Ready(_E) then
Draw.Circle(myHero.pos, self.tyMenu.combo.Erange:Value(),Draw.Color(80 ,0xFF,0xFF,0xFF))
end
if self.tyMenu.drawing.R:Value() and Ready(_R) then
Draw.Circle(myHero.pos, self.R.Range,Draw.Color(80 ,0xFF,0xFF,0xFF))
end
if self.tyMenu.drawing.RClusters:Value() and Ready(_R) then
Yasuo:DebugCluster()
end
end
local WActive = false
local CanUlt = false
function Yasuo:Tick()
--Yasuo:DebugCluster()
if Control.IsKeyDown(HK_Q) then
Control.KeyUp(HK_Q)
end
local enemys = _G.SDK.ObjectManager:GetEnemyHeroes(1500)
for i = 1, #enemys do
local enemy = enemys[i]
local isKnock = self:IsKnock(enemy)
if CanUlt and not isKnock then
CanUlt = false
end
end
if WActive and not Ready(_W) then
WActive = false
end
if myHero.dead or Game.IsChatOpen() or (_G.JustEvade and _G.JustEvade:Evading()) or (_G.ExtLibEvade and _G.ExtLibEvade.Evading) then
return
end
self:UpdateQDelay()
self:CastW()
if Control.IsKeyDown(self.tyMenu.flee.EKey:Key()) then self:Flee() end
if Control.IsKeyDown(self.tyMenu.beyblade.Key:Key()) then self:Beyblade() end
if _G.SDK.Orbwalker.Modes[0] then --combo
if CanUlt == false then
self:Combo()
end
self:CastR()
elseif _G.SDK.Orbwalker.Modes[1] then --harass
self:Harass()
elseif _G.SDK.Orbwalker.Modes[3] then --jungle + lane
self:Jungle()
self:Clear()
elseif _G.SDK.Orbwalker.Modes[4] then --lasthit
self:LastHit()
-- elseif _G.SDK.Orbwalker.Modes[5] then
-- self:Flee()
end
-- print(self.Q3.delay)
end
function Yasuo:DebugCluster()
local RBuffer = 30
local FRange = 400
local Q3radius = 180+myHero.boundingRadius
local target2 = self:GetHeroTarget(400 +Q3radius+myHero.boundingRadius)
if(target2 and IsValid(target2) and target2 ~= nil) then
local searchrange = FRange + Q3radius - RBuffer
local canFlash = false
local nearbyEnemies = GetEnemiesAtPos(searchrange, Q3radius*2 -RBuffer, target2.pos, target2)
local bestPos, count = self:CalculateBestCirclePosition(nearbyEnemies, Q3radius - RBuffer/2, true)
if(myHero.pos:DistanceTo(bestPos) <= FRange+1000) then
Draw.Circle(bestPos, Q3radius -RBuffer, 1, Draw.Color(85, 255, 255, 255)) --(Alpha, R, G, B)
end
end
end
function Yasuo:CalculateBestCirclePosition(targets, radius, edgeDetect)
local FRange = 400
local avgCastPos = CalculateBoundingBoxAvg(targets, 0.25)
local newCluster = {}
local distantEnemies = {}
for _, enemy in pairs(targets) do
if(enemy.pos:DistanceTo(avgCastPos) > radius) then
table.insert(distantEnemies, enemy)
else
table.insert(newCluster, enemy)
end
end
if(#distantEnemies > 0) then
local closestDistantEnemy = nil
local closestDist = 10000
for _, distantEnemy in pairs(distantEnemies) do
local dist = distantEnemy.pos:DistanceTo(avgCastPos)
if( dist < closestDist ) then
closestDistantEnemy = distantEnemy
closestDist = dist
end
end
if(closestDistantEnemy ~= nil) then
table.insert(newCluster, closestDistantEnemy)
end
--Recursion, we are discarding the furthest target and recalculating the best position
if(#newCluster ~= #targets) then
return self:CalculateBestCirclePosition(newCluster, radius)
end
end
if(edgeDetect) and myHero.pos:DistanceTo(avgCastPos) > FRange then
local checkPos = myHero.pos:Extended(avgCastPos, FRange)
local furthestTarget = FindFurthestTargetFromMe(newCluster)
local fakeMyHeroPos = avgCastPos:Extended(myHero.pos, FRange + radius)-- 50)
if(furthestTarget ~= nil) then
fakeMyHeroPos = avgCastPos:Extended(myHero.pos, FRange + radius - furthestTarget.pos:DistanceTo(avgCastPos))
end
if(myHero.pos:DistanceTo(avgCastPos) >= fakeMyHeroPos:DistanceTo(avgCastPos)) then
checkPos = fakeMyHeroPos:Extended(avgCastPos, FRange)
end
local hitAllCheck = true
for _, v in pairs(newCluster) do
if(v:GetPrediction(math.huge, 0.25):DistanceTo(checkPos) >= radius + 5) then -- the +5 is to fix a precision issue
hitAllCheck = false
end
end
if hitAllCheck then
return checkPos, #newCluster, newCluster
end
end
return avgCastPos, #targets, targets
end
function Yasuo:CastR()
local enemys
if self.tyMenu.combo.Ult.useR1:Value() and myHero.attackSpeed >= 1.33 then
enemys = _G.SDK.ObjectManager:GetEnemyHeroes(1850)
else
enemys = _G.SDK.ObjectManager:GetEnemyHeroes(1400)
end
for i = 1, #enemys do
local enemy = enemys[i]
local isKnock = self:IsKnock(enemy)
if isKnock and Ready(_R) then
if self.tyMenu.combo.Ult.useR4:Value() then
if enemy.health/enemy.maxHealth <= self.tyMenu.combo.Ult.R4Hp:Value()/100 and enemy.health/enemy.maxHealth >= 25/100 and GetEnemyCount(self.tyMenu.combo.Ult.R4Range:Value(), enemy) == 1 and self.tyMenu.combo.Ult.DontSoloUlt[enemy.charName]:Value()==false then
if self.tyMenu.combo.Ult.useR1:Value() and myHero.attackSpeed > 1.33 then
local Etarget = Ready(_E) and self:GetEtargetForUlt()
CanUlt = true
if Etarget and Etarget.pos:DistanceTo(enemy.pos) < 1400 and self.lastETick+100 < GetTickCount() and myHero:GetSpellData(_Q).currentCd <= (1) then
-- print("q up in time")
DelayAction(function()
Control.KeyUp("M")
Control.CastSpell(HK_E, Etarget)
self:CheckAirblade(Etarget)
self.lastETick = GetTickCount()
DelayAction(function()