forked from saladinaazir/gosext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSussy.lua
2299 lines (2111 loc) · 102 KB
/
Sussy.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
--[[
Sussy AIO: champion script for Gaming On Steroids
version 1.13
Changelog:
-- 1.13: Added Rammus
-- 1.12: Added Teemo
-- 1.11: Added Garen
-- 1.10: Added Trundle
-- 1.9: Added Dr Mundo
-- 1.8: Added Nautilus
-- 1.7: Added Zilean
-- 1.6: Added Renata
-- 1.5: Added Pyke
-- 1.4: Added Amumu
-- 1.3: Added Tahm Kench
-- 1.2: Added Braum
-- 1.1: Added Shaco
-- 1.0: Initial release
]] --
local Version = "1.13"
local LoadTime = 0
Callback.Add(
"Load",
function()
if not FileExist(COMMON_PATH .. "GGPrediction.lua") then
print("GGPrediction not found! Please download it before using this script.")
return
end
if not FileExist(COMMON_PATH .. "DamageLib.lua") then
print("DamageLib not found! Please download it before using this script.")
return
end
if not FileExist(COMMON_PATH .. "MapPositionGOS.lua") then
print("MapPositionGOS not found! Please download it before using this script.")
return
end
if not FileExist(COMMON_PATH .. "2DGeometry.lua") then
print("MapPositionGOS not found! Please download it before using this script.")
return
end
require("GGPrediction")
require("DamageLib")
require("MapPositionGOS")
require("2DGeometry")
LoadTime = Game.Timer()
Champion:Init()
end
)
File = {}
do
function File:WriteSpriteToFile(path, str)
path = SPRITE_PATH .. path
if FileExist(path) then
return
end
local output = io.open(path, "wb")
output:write(File:Base64Decode(str))
output:close()
end
function File:Base64Decode(data)
local b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
data = string.gsub(data, "[^" .. b .. "=]", "")
return (data:gsub(
".",
function(x)
if (x == "=") then
return ""
end
local r, f = "", (b:find(x) - 1)
for i = 6, 1, -1 do
r = r .. (f % 2 ^ i - f % 2 ^ (i - 1) > 0 and "1" or "0")
end
return r
end
):gsub(
"%d%d%d?%d?%d?%d?%d?%d?",
function(x)
if (#x ~= 8) then
return ""
end
local c = 0
for i = 1, 8 do
c = c + (x:sub(i, i) == "1" and 2 ^ (8 - i) or 0)
end
return string.char(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GoHJ30roqyJyDBP8EgrQv/Qdimk0sL5VTgQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNy0xNlQxNzowNTo1NCswMDowMD9HLcMAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDctMTZUMTc6MDU6NTMrMDA6MDCLvavxAAAAAElFTkSuQmCC"
)
end
-- Icons end
Menu = {}
do
function Menu:Init()
Menu.root =
MenuElement(
{
name = "Sussy " .. myHero.charName,
id = "Sussy " .. myHero.charName,
type = _G.MENU,
leftIcon = "/Sussy.png"
}
)
Menu.q = Menu.root:MenuElement({name = "Q", id = "q", type = _G.MENU})
Menu.w = Menu.root:MenuElement({name = "W", id = "w", type = _G.MENU})
Menu.e = Menu.root:MenuElement({name = "E", id = "e", type = _G.MENU})
Menu.r = Menu.root:MenuElement({name = "R", id = "r", type = _G.MENU})
Menu.d = Menu.root:MenuElement({name = "Drawings", id = "d", type = _G.MENU})
Menu.root:MenuElement({name = "", type = _G.SPACE, id = "VersionSpacer"})
Menu.root:MenuElement({name = "Version " .. Version, type = _G.SPACE, id = "VersionNumber"})
end
end
Spells = {}
do
Spells.InterruptableSpells = {
["CaitlynAceintheHole"] = true,
["Crowstorm"] = true,
["DrainChannel"] = true,
["GalioIdolOfDurand"] = true,
["ReapTheWhirlwind"] = true,
["KarthusFallenOne"] = true,
["KatarinaR"] = true,
["LucianR"] = true,
["AlZaharNetherGrasp"] = true,
["Meditate"] = true,
["MissFortuneBulletTime"] = true,
["AbsoluteZero"] = true,
["PantheonRJump"] = true,
["PantheonRFall"] = true,
["ShenStandUnited"] = true,
["Destiny"] = true,
["UrgotSwap2"] = true,
["VelkozR"] = true,
["InfiniteDuress"] = true,
["XerathLocusOfPower2"] = true
}
function Spells:IsReady(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
function Spells:IsNotReady(spell)
if not Spells:IsReady(spell) then
return true
end
return false
end
function Spells:CreateLinePoly(pos)
local startPos = myHero.pos
local endPos = pos
local width = 10
local c1 = startPos + Vector(Vector(endPos) - startPos):Perpendicular():Normalized() * width
local c2 = startPos + Vector(Vector(endPos) - startPos):Perpendicular2():Normalized() * width
local c3 = endPos + Vector(Vector(startPos) - endPos):Perpendicular():Normalized() * width
local c4 = endPos + Vector(Vector(startPos) - endPos):Perpendicular2():Normalized() * width
local poly = Polygon(c1, c2, c3, c4)
return poly
end
function Spells:LineCollidesTerrain(linePoly)
for i, lineSegment in ipairs(linePoly:__getLineSegments()) do
if MapPosition:intersectsWall(lineSegment) then
return true
end
end
return false
end
end
Orb = {}
do
function Orb:GetMode()
if _G.SDK then
return _G.SDK.Orbwalker.Modes[_G.SDK.ORBWALKER_MODE_COMBO] and "Combo" or
_G.SDK.Orbwalker.Modes[_G.SDK.ORBWALKER_MODE_HARASS] and "Harass" or
_G.SDK.Orbwalker.Modes[_G.SDK.ORBWALKER_MODE_LANECLEAR] and "Clear" or
_G.SDK.Orbwalker.Modes[_G.SDK.ORBWALKER_MODE_JUNGLECLEAR] and "Clear" or
_G.SDK.Orbwalker.Modes[_G.SDK.ORBWALKER_MODE_LASTHIT] and "LastHit" or
_G.SDK.Orbwalker.Modes[_G.SDK.ORBWALKER_MODE_FLEE] and "Flee" or
nil
elseif _G.PremiumOrbwalker then
return _G.PremiumOrbwalker:GetMode()
end
return nil
end
function Orb:IsCombo()
if Orb:GetMode() == "Combo" then
return true
end
return false
end
function Orb:IsHarass()
if Orb:GetMode() == "Harass" then
return true
end
return false
end
function Orb:IsClear()
if Orb:GetMode() == "Clear" then
return true
end
return false
end
function Orb:IsLastHit()
if Orb:GetMode() == "LastHit" then
return true
end
return false
end
function Orb:IsFlee()
if Orb:GetMode() == "Flee" then
return true
end
return false
end
function Orb:GetTarget(range)
if _G.SDK then
if myHero.ap > myHero.totalDamage then
return _G.SDK.TargetSelector:GetTarget(range, _G.SDK.DAMAGE_TYPE_MAGICAL)
else
return _G.SDK.TargetSelector:GetTarget(range, _G.SDK.DAMAGE_TYPE_PHYSICAL)
end
elseif _G.PremiumOrbwalker then
return _G.PremiumOrbwalker:GetTarget(range)
end
end
function Orb:IsEvading()
if _G.JustEvade and _G.JustEvade:Evading() then
return true
end
if _G.ExtLibEvade and _G.ExtLibEvade.Evading then
return true
end
return false
end
function Orb:OnPostAttack(fn)
if _G.SDK then
return _G.SDK.Orbwalker:OnPostAttack(fn)
elseif _G.PremiumOrbwalker then
return _G.PremiumOrbwalker:OnPostAttack(fn)
end
end
function Orb:OnPreAttack(fn)
if _G.SDK then
return _G.SDK.Orbwalker:OnPreAttack(fn)
elseif _G.PremiumOrbwalker then
return _G.PremiumOrbwalker:OnPreAttack(fn)
end
end
end
Champion = {}
do
function Champion:IsValid(unit)
if
unit and unit.valid and unit.isTargetable and unit.alive and unit.visible and unit.networkID and
unit.health > 0
then
return true
end
return false
end
function Champion:IsValidEnemy(unit)
if unit and unit.team ~= myHero.team and Champion:IsValid(unit) then
return true
end
end
function Champion:IsValidAlly(unit)
if unit and unit.team == myHero.team and Champion:IsValid(unit) then
return true
end
end
function Champion:IsRecalling(unit)
if unit and unit.valid then
local buffCount = unit.buffCount
for i = 1, buffCount do
local buff = unit:GetBuff(i)
if buff.count > 0 and buff.name == "recall" and Game.Timer() < buff.expireTime then
return true
end
end
end
return false
end
function Champion:HealthPercent(unit)
if unit then
return 100 * unit.health / unit.maxHealth
end
return 0
end
function Champion:ManaPercent(unit)
if unit then
return 100 * unit.mana / unit.maxMana
end
return 0
end
function Champion:IsPlayerAtFountain()
local blueFountain = Vector(500, 180, 500)
local redFountain = Vector(14250, 170, 14250)
local distance = 800
local pos = myHero.pos
return pos:DistanceTo(blueFountain) <= distance or pos:DistanceTo(redFountain) <= 800
end
function Champion:MyHeroNotReady()
return myHero.dead or Game.IsChatOpen() or Orb:IsEvading() or myHero.isChanneling or
Champion:IsRecalling(myHero) or
Champion:IsPlayerAtFountain(myHero)
end
function Champion:GetEnemies()
local enemies = {}
for i = 1, Game.HeroCount() do
local hero = Game.Hero(i)
if hero and hero.team ~= myHero.team then
table.insert(enemies, hero)
end
end
return enemies
end
function Champion:GetValidEnemies(pos, range)
local enemies = {}
for i = 1, Game.HeroCount() do
local hero = Game.Hero(i)
if hero and Champion:IsValidEnemy(hero) and pos:DistanceTo(hero.pos) <= range then
table.insert(enemies, hero)
end
end
return enemies
end
function Champion:GetAllies()
local enemies = {}
for i = 1, Game.HeroCount() do
local hero = Game.Hero(i)
if hero and hero.team == myHero.team then
table.insert(enemies, hero)
end
end
return enemies
end
function Champion:GetValidAllies(pos, range)
local enemies = {}
for i = 1, Game.HeroCount() do
local hero = Game.Hero(i)
if hero and Champion:IsValidAlly(hero) and pos:DistanceTo(hero.pos) <= range then
table.insert(enemies, hero)
end
end
return enemies
end
function Champion:GetValidEnemiesCount(pos, range)
local count = 0
for i = 1, Game.HeroCount() do
local hero = Game.Hero(i)
if hero and Champion:IsValidEnemy(hero) and pos:DistanceTo(hero.pos) <= range then
count = count + 1
end
end
return count
end
function Champion:GetValidAlliesCount(pos, range)
local count = 0
for i = 1, Game.HeroCount() do
local hero = Game.Hero(i)
if hero and Champion:IsValidAlly(hero) then
count = count + 1
end
end
return count
end
function Champion:HasZileanBomb(unit)
local name = "ZileanQEnemyBomb"
for i = 0, unit.buffCount do
local buff = unit:GetBuff(i)
if buff and buff.count > 0 and buff.name == name then
return true
end
end
return false
end
function Champion:Init()
-- Vi START
if myHero.charName == "Vi" then
Menu:Init()
Menu.w:Remove()
Menu.d:Remove()
Menu.q_combo = Menu.q:MenuElement({id = "combo", name = "Combo", value = true})
Menu.q_harass = Menu.q:MenuElement({id = "harass", name = "Harass", value = false})
Menu.q_charge =
Menu.q:MenuElement(
{id = "qcharge", name = "Min charge time", value = 0, min = 0, max = 1.25, step = 0.05}
)
Menu.q_pred =
Menu.q:MenuElement({id = "qpred", name = "Hitchance", value = 1, drop = {"Normal", "High", "Immobile"}})
Menu.q_release = Menu.q:MenuElement({id = "release", name = "Release near end", value = true})
Menu.e_combo = Menu.e:MenuElement({id = "combo", name = "Combo", value = true})
Menu.e_harass = Menu.e:MenuElement({id = "harass", name = "Harass", value = false})
Menu.r_combo = Menu.r:MenuElement({id = "combo", name = "Combo", value = true})
Menu.r_ks = Menu.r:MenuElement({id = "killsteal", name = "Killsteal", value = true})
Menu.r_dist =
Menu.r:MenuElement({id = "dist", name = "Min distance", value = 400, min = 0, max = 800, step = 25})
local QStartTime = 0
Callback.Add(
"Tick",
function()
if
myHero.dead or Game.IsChatOpen() or Orb:IsEvading() or Champion:IsRecalling(myHero) or
Champion:IsPlayerAtFountain(myHero)
then
return
end
local mode = Orb:GetMode()
if Spells:IsReady(_R) then
if Menu.r_ks:Value() then
for i = 1, Game.HeroCount() do
local hero = Game.Hero(i)
if
hero and hero.team ~= myHero.team and hero.valid and hero.alive and
myHero.pos:DistanceTo(hero.pos) >= Menu.r_dist:Value()
then
local rdamage = getdmg("R", hero, myHero)
local hp = hero.health + (2 * hero.hpRegen)
if hp <= rdamage then
Control.CastSpell(HK_R, hero)
return
end
end
end
end
if mode == "Combo" and Menu.r_combo:Value() and not myHero.activeSpell.valid then
local target = Orb:GetTarget(800)
if target and myHero.pos:DistanceTo(target.pos) >= Menu.r_dist:Value() then
Control.CastSpell(HK_R, target)
return
end
end
end
if (mode == "Combo" and Menu.q_combo:Value()) or (mode == "Harass" and Menu.q_harass:Value()) then
local target = Orb:GetTarget(1500)
if target == nil then
return
end
if not Spells:IsReady(_Q) and QStartTime > 0 then
QStartTime = 0
if Control.IsKeyDown(HK_Q) then
Control.KeyUp(HK_Q)
end
return
end
if myHero.activeSpell.valid and myHero.activeSpell.name == "ViQ" then
if QStartTime == 0 then
QStartTime = Game.Timer()
end
local QChargeTime = Game.Timer() - QStartTime
if QChargeTime >= (Menu.q_charge:Value() - 0.2) then
local QRange = math.max(250 + (math.min(QChargeTime, 1.25) * 46.5 / 0.125), 250)
local QGGPrediction =
GGPrediction:SpellPrediction(
{
Delay = 0,
Radius = 90,
Range = QRange,
Speed = 1500,
Collision = false,
Type = GGPrediction.SPELLTYPE_LINE
}
)
QGGPrediction:GetPrediction(target, myHero)
if QGGPrediction:CanHit(Menu.q_pred:Value() + 1) then
Control.CastSpell(HK_Q, QGGPrediction.CastPosition)
return
end
if QChargeTime > 4.35 and Menu.q_release:Value() then
Control.CastSpell(HK_Q, target.pos)
end
end
elseif Spells:IsReady(_Q) and myHero.pos:DistanceTo(target.pos) <= 850 then
Control.KeyDown(HK_Q)
return
end
end
end
)
Orb:OnPostAttack(
function()
local mode = Orb:GetMode()
if
Spells:IsReady(_E) and
((mode == "Combo" and Menu.e_combo:Value()) or (mode == "Harass" and Menu.e_harass:Value()))
then
local target = Orb:GetTarget(300)
if target then
Control.CastSpell(HK_E)
end
end
end
)
print("Sussy " .. myHero.charName .. " loaded.")
end
-- Vi END
-- Shaco START
if myHero.charName == "Shaco" then
Menu:Init()
Menu.q:Remove()
Menu.w:Remove()
Menu.r:Remove()
Menu.d:Remove()
Menu.e_ks_enabled = Menu.e:MenuElement({id = "ekillsteal", name = "Killsteal", value = true})
Menu.e_ks_backstab =
Menu.e:MenuElement({id = "ekillstealbackstab", name = "Include Backstab", value = true})
Menu.e_ks_collector =
Menu.e:MenuElement({id = "ekillstealcollector", name = "Include Collector", value = true})
Callback.Add(
"Tick",
function()
if not Spells:IsReady(_E) or Champion:MyHeroNotReady() then
return
end
local basedmg = 45
local lvldmg = 25 * myHero:GetSpellData(_E).level
local statdmg = myHero.ap * 0.55 + myHero.bonusDamage * 0.7
local edmg = basedmg + lvldmg + statdmg
if edmg < 50 then
return
end
local behindDmg = 15 + (35 / 17 * (myHero.levelData.lvl - 1)) + myHero.ap * 0.1
for i = 1, Game.HeroCount() do
local hero = Game.Hero(i)
if Champion:IsValidEnemy(hero) and myHero.pos:DistanceTo(hero.pos) <= 625 then
local health = hero.health + (2 * hero.hpRegen)
local extraDamage = 0
if Menu.e_ks_backstab:Value() and not _G.SDK.ObjectManager:IsFacing(hero, myHero) then
extraDamage = extraDamage + behindDmg
end
local dmg =
_G.SDK.Damage:CalculateDamage(myHero, hero, DAMAGE_TYPE_MAGICAL, edmg + extraDamage)
local hpPercent = health / hero.maxHealth
if hpPercent < 0.3 then
dmg = dmg * 1.5
end
if health > 1 then
if health < dmg then
Control.CastSpell(HK_E, hero)
return
end
if
((health - dmg) / hero.maxHealth) <= 0.05 and Menu.e_ks_collector:Value() and
_G.SDK.ItemManager:HasItem(unit, 6676)
then
Control.CastSpell(HK_E, hero)
end
end
end
end
end
)
print("Sussy " .. myHero.charName .. " loaded.")
end
-- Shaco END
-- Braum START
if myHero.charName == "Braum" then
Menu:Init()
Menu.w:Remove()
Menu.e:Remove()
Menu.r:Remove()
Menu.d:Remove()
Menu.q_combo = Menu.q:MenuElement({id = "combo", name = "Combo", value = true})
Menu.q_harass = Menu.q:MenuElement({id = "harass", name = "Harass", value = true})
Menu.q_killsteal = Menu.q:MenuElement({id = "killsteal", name = "Killsteal", value = true})
Menu.q_range =
Menu.q:MenuElement({id = "qrange", name = "Q Range", value = 950, min = 50, max = 1000, step = 50})
Menu.q_hitchance =
Menu.q:MenuElement(
{id = "hitchance", name = "Hitchance", value = 1, drop = {"normal", "high", "immobile"}}
)
Callback.Add(
"Tick",
function()
if not Spells:IsReady(_Q) or Champion:MyHeroNotReady() then
return
end
local QRange = Menu.q_range:Value()
local QGGPrediction =
GGPrediction:SpellPrediction(
{
Delay = 0.25,
Radius = 70,
Range = QRange,
Speed = 1700,
Type = GGPrediction.SPELLTYPE_LINE,
Collision = true,
MaxCollision = 0,
CollisionTypes = {GGPrediction.COLLISION_MINION, GGPrediction.COLLISION_YASUOWALL}
}
)
if Menu.q_killsteal:Value() then
for i = 1, Game.HeroCount() do
local hero = Game.Hero(i)
local qdamage = getdmg("Q", hero, myHero)
if
hero and hero.team ~= myHero.team and hero.valid and hero.alive and
hero.health <= qdamage and
myHero.pos:DistanceTo(hero.pos) <= QRange
then
QGGPrediction:GetPrediction(hero, myHero)
if QGGPrediction:CanHit(Menu.q_hitchance:Value() + 1) then
Control.CastSpell(HK_Q, QGGPrediction.CastPosition)
return
end
end
end
end
local mode = Orb:GetMode()
if not ((mode == "Combo" and Menu.q_combo:Value()) or (mode == "Harass" and Menu.q_harass:Value())) then
return
end
local target = Orb:GetTarget(QRange)
if target and target.valid and target.alive then
QGGPrediction:GetPrediction(target, myHero)
if QGGPrediction:CanHit(Menu.q_hitchance:Value() + 1) then
Control.CastSpell(HK_Q, QGGPrediction.CastPosition)
return
end
end
end
)
print("Sussy " .. myHero.charName .. " loaded.")
end
-- Braum END
-- Tahm Kench START
if myHero.charName == "TahmKench" then
Menu:Init()
-- Menu.w:Remove()
-- Menu.e:Remove()
function GetHeroTarget(range)
local EnemyHeroes = _G.SDK.ObjectManager:GetEnemyHeroes(range, false)
local target = _G.SDK.TargetSelector:GetTarget(EnemyHeroes)
return target
end
function IsImmobile(unit)
local MaxDuration = 0
for i = 0, unit.buffCount do
local buff = unit:GetBuff(i)
if buff and buff.count > 0 then
local BuffType = buff.type
if BuffType == 5 or BuffType == 12 or BuffType == 22 or BuffType == 29 or BuffType == 30 or BuffType == 35 then --or buff.name == "recall" then
local BuffDuration = buff.duration
if BuffDuration > MaxDuration then
MaxDuration = BuffDuration
end
end
end
end
return MaxDuration
end
function hastkulted()
local name = "tahmkenchroutline"
local name2 = "tahmkenchrspeed"
for i = 0, myHero.buffCount do
local buff = myHero:GetBuff(i)
if buff and buff.count > 0 and (buff.name == name or buff.name == name2) then
return true
end
end
return false
end
function hastkultedfor1second()
local name = "grounded"
local name2 = "tahmkenchrspeed"
for i = 0, myHero.buffCount do
local buff = myHero:GetBuff(i)
if buff and buff.count > 0 and (buff.name == name or buff.name == name2) and buff.duration<2.4 then
return true
end
end
return false
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
function tkqdmg(minion)
local levelDmgTbl = {80 , 130 , 180 , 230 , 280}
local levelPctTbl = { 0.20 , 0.225 , 0.25 , 0.275 , 0.30 }
local levelDmg = levelDmgTbl[myHero:GetSpellData(_Q).level]
local levelPct = levelPctTbl[myHero:GetSpellData(_Q).level]
local dmg = math.max(levelDmg,minion.health*levelPct)
return dmg
end
function Lasthit()
local minions = _G.SDK.ObjectManager:GetEnemyMinions(1000)
for i = 1, #minions do
local minion = minions[i]
local ShouldAA = false
if Champion:IsValid(minion) then
local value=tkqdmg(minion)
local hp = _G.SDK.HealthPrediction:GetPrediction(minion, 0.26+((GetDistanceSquared(myHero.pos, minion.pos))/(2800*2800)))
if hp<value and hp>0 and (GetDistanceSquared(myHero.pos, minion.pos) > 250 * 250) then
local prediction = _G.PremiumPrediction:GetPrediction(myHero, minion, {
hitChance = 0.5,
speed = 2800,
range = 900,
delay = .25,
radius = 60,
collision = {"minion","hero","windwall"},
type = "linear"
})
if _G.PremiumPrediction.HitChance.Low(prediction.HitChance) then
Control.CastSpell(HK_Q, prediction.CastPos)
return
end
end
end
end
end
Menu.q_combo = Menu.q:MenuElement({id = "combo", name = "Combo", value = true,toggle=true,key=string.byte("CapsLock")})
Menu.q_farm = Menu.q:MenuElement({id = "farm", name = "LastHit/LaneClear", value = true})
Menu.q_combokey = Menu.q:MenuElement({id = "combokey", name = "Combokey", value = false, toggle=false, key=string.byte("A")})
Menu.q_harass = Menu.q:MenuElement({id = "harass", name = "Harass", value = true})
Menu.q_hitchance =
Menu.q:MenuElement(
{id = "hitchance", name = "Hitchance", value = 1, drop = {"normal", "high", "immobile"}}
)
Menu.r_combo = Menu.r:MenuElement({id = "combo", name = "Combo R", value = true})
Menu.r_comboqr = Menu.r:MenuElement({id = "comboqr", name = "combo QR", value = true})
Menu.r_key = Menu.r:MenuElement({id = "rkey", name = "R ally/enemy key", value = false, toggle=false,key=string.byte("T")})
Menu.w_wkey = Menu.w:MenuElement({id = "wkey", name = "W Semimanual Key", value = false,toggle=false, key=string.byte("S")})
Menu.w_hc = Menu.w:MenuElement({id = "wpred", name = "W Hitchance", value = 1, drop = {"Normal", "High"}})
Menu.w_immobile = Menu.w:MenuElement({id = "wimmobile", name = "Auto W Immobile unit", value = true})
Menu.w_targets = Menu.w:MenuElement({id = "wtargets", name = "Use wimmobile on: ", type = MENU})
DelayAction(
function()
for i, target in pairs(Champion:GetEnemies()) do
Menu.w_targets:MenuElement(
{id = "immobilew" .. target.charName, name = target.charName, value = true}
)
end
end,
1
)
Menu.r_targets = Menu.r:MenuElement({id = "rtargets", name = "Use r on: ", type = MENU})
Menu.r_targetsallies = Menu.r:MenuElement({id = "rtargetsallies", name = "Use r on allies: ", type = MENU})
DelayAction(
function()
for i, target in pairs(Champion:GetEnemies()) do
Menu.r_targets:MenuElement(
{id = "r" .. target.charName, name = target.charName, value = true}
)
end
end,
1
)
DelayAction(
function()
for i, target in pairs(Champion:GetAllies()) do
Menu.r_targetsallies:MenuElement(
{id = "r" .. target.charName, name = target.charName, value = true}
)
end
end,
1
)
Menu.q_range = Menu.d:MenuElement({id = "qrange", name = "Q Range", value = true})
Menu.w_range = Menu.d:MenuElement({id = "wrange", name = "W Range", value = true})
Menu.r_range = Menu.d:MenuElement({id = "rrange", name = "R Range", value = false})
Menu.e_hp = Menu.e:MenuElement({id = "ehp", name = "HP % to cast E", value = 20, min = 0, max = 101, step = 1})
Menu.r_hp = Menu.r:MenuElement({id = "rhp", name = "max target HP % to cast R", value = 50, min = 0, max = 101, step = 1})
Menu.qr_hp = Menu.r:MenuElement({id = "qrhp", name = "max target HP % to cast QR", value = 60, min = 0, max = 101, step = 1})
Menu.qr_range = Menu.r:MenuElement({id = "qrrange", name = "min distance to QR", value = 0, min = 0, max = 900, step = 10})
local DEVOUR_BUFF_NAME = "tahmkenchpdebuffcounter"
local Q_RANGE_COLOR = Draw.Color(190, 50, 205, 50)
local R_RANGE_COLOR = Draw.Color(190, 0, 0, 205)
Callback.Add(
"Tick",
function()
if Champion:MyHeroNotReady() then
return
end
local mode = Orb:GetMode()
if Menu.w_wkey:Value() and Spells:IsReady(_W) then
target=GetHeroTarget(1200)
if target==nil then return end
print("button")
local EPrediction = GGPrediction:SpellPrediction({Type = GGPrediction.SPELLTYPE_LINE, Delay = 1.52, Radius = 125, Range = (960+(50*myHero:GetSpellData(_W).level)), Speed =math.huge, Collision = false})
EPrediction:GetPrediction(target, myHero)
if EPrediction:CanHit(Menu.w_hc:Value()+1) then
Control.CastSpell(HK_W, EPrediction.CastPosition)
end
end
if Spells:IsReady(_E) and (myHero.maxHealth * Menu.e_hp:Value() * 0.01) >= myHero.health then
Control.CastSpell(HK_E)
end
if Menu.r_key:Value() then
if hastkultedfor1second() then
Control.CastSpell(HK_R)
end
if Spells:IsReady(_R) then
for i = 1, Game.HeroCount() do
local hero = Game.Hero(i)
if
hero and hero.team ~= myHero.team and hero.valid and hero.alive and
myHero.pos:DistanceTo(hero.pos) <= 450
then
local rbuff = _G.SDK.BuffManager:GetBuff(hero, DEVOUR_BUFF_NAME)
if rbuff and rbuff.count >= 1 and not hastkulted() then
Control.CastSpell(HK_R, hero)
return
end
end
end
for i = 1, Game.HeroCount() do
local hero = Game.Hero(i)
if
hero and hero.team == myHero.team and hero.valid and hero.alive and hero~=myHero and Menu.r_targetsallies["r" .. hero.charName]:Value() and
myHero.pos:DistanceTo(hero.pos) <= 450
then
if not hastkulted() then
Control.CastSpell(HK_R, hero)
return
end
end
end
end
end
if Spells:IsReady(_R) and Menu.r_combo:Value() and mode == "Combo" then
for i = 1, Game.HeroCount() do
local hero = Game.Hero(i)
if
hero and hero.team ~= myHero.team and hero.valid and hero.alive and
myHero.pos:DistanceTo(hero.pos) <= 450
then
local rbuff = _G.SDK.BuffManager:GetBuff(hero, DEVOUR_BUFF_NAME)
if rbuff and rbuff.count >= 1 and Menu.r_targets["r" .. hero.charName]:Value() and (hero.maxHealth * Menu.r_hp:Value() * 0.01) >= hero.health then
Control.CastSpell(HK_R, hero)
return
end
end
end
end
if Spells:IsReady(_W) and Menu.w_immobile:Value() then
local validEnemies = Champion:GetValidEnemies(myHero.pos, 1000)
for i = 1, #validEnemies do
local hero = validEnemies[i]
if
hero and Champion:IsValidEnemy(hero) and
Menu.w_targets["immobilew" .. hero.charName]:Value()
and (IsImmobile(hero) >= 0.5)
then
Control.CastSpell(HK_W, hero.pos)
end
end
end
local target = Orb:GetTarget(900)
local QGGPrediction =
GGPrediction:SpellPrediction(
{
Delay = 0.25,
Radius = 70,
Range = 900,
Speed = 2800,
Type = GGPrediction.SPELLTYPE_LINE,
Collision = true,
MaxCollision = 0,
CollisionTypes = {GGPrediction.COLLISION_MINION, GGPrediction.COLLISION_YASUOWALL}
}
)
if Menu.q_farm:Value() and (mode == "LastHit" or mode=="Clear") and Spells:IsReady(_Q) then
Lasthit()
end
if
Spells:IsReady(_Q) and target and ((mode == "Combo" and Menu.q_combo:Value()) or (mode == "Harass" and Menu.q_harass:Value()) or Menu.q_combokey:Value()) then
QGGPrediction:GetPrediction(target, myHero)
if QGGPrediction:CanHit(Menu.q_hitchance:Value() + 1) then
Control.CastSpell(HK_Q, QGGPrediction.CastPosition)
local rbuff = _G.SDK.BuffManager:GetBuff(target, DEVOUR_BUFF_NAME)
if Spells:IsReady(_R) and (Menu.r_targets["r" .. target.charName]:Value() and Menu.r_comboqr:Value() and myHero.pos:DistanceTo(target.pos) >= Menu.qr_range:Value() and rbuff and rbuff.count >= 1 and (target.maxHealth * Menu.qr_hp:Value() * 0.01) >= target.health and target.health>getdmg("Q", target, myHero, myHero:GetSpellData(_Q).level)) or Menu.r_key:Value() then
Control.CastSpell(HK_R)
end
return
end
end
end
)
Callback.Add(
"Draw",
function()
local wr=(950+(50*myHero:GetSpellData(_W).level))
if Menu.q_range:Value() and Spells:IsReady(_Q) then
Draw.Circle(myHero.pos, 900, 1, Q_RANGE_COLOR)
end
if Menu.q_combo:Value() then
Draw.Text("Q: On ",20,myHero.pos:To2D(),Draw.Color(255 ,0,255,0))
else
Draw.Text("Q: Off ",20,myHero.pos:To2D(),Draw.Color(255 ,255,0,0))
end
if Menu.w_range:Value() and Spells:IsReady(_W) then
Draw.Circle(myHero.pos,wr, 1, R_RANGE_COLOR)
end
if Menu.r_range:Value() and Spells:IsReady(_R) then
Draw.Circle(myHero.pos, 275, 1, R_RANGE_COLOR)
end
end
)
print("Sussy " .. myHero.charName .. " loaded.")
end
-- Tahm Kench END
-- Pyke START
if myHero.charName == "Pyke" then
Menu:Init()
Menu.w:Remove()
Menu.e:Remove()
Menu.q_auto = Menu.q:MenuElement({id = "qauto", name = "Auto-pull", value = true})
Menu.q_hitchance =
Menu.q:MenuElement(
{id = "qhitchance", name = "Hitchance", value = 1, drop = {"Normal", "High", "Immobile"}}
)
Menu.r_ks = Menu.r:MenuElement({id = "rks", name = "Killsteal", value = true})
Menu.r_hitchance =
Menu.r:MenuElement(