-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeadly_cassio_by_cconn.lua
1820 lines (1724 loc) · 95 KB
/
deadly_cassio_by_cconn.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
--[[
▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ▄ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▀▀▀▀█░█▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌
▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▌▐░▌ ▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░▌ ▐░░░░░░░░░░░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▐░▌▐░▌ ▀▀▀▀█░█▀▀▀▀ ▐░▌ ▐░█▀▀▀▀▀▀▀█░▌ ▀▀▀▀▀▀▀▀▀█░▌ ▀▀▀▀▀▀▀▀▀█░▌ ▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌ ▄▄▄▄▄▄▄▄▄█░▌ ▄▄▄▄▄▄▄▄▄█░▌ ▄▄▄▄█░█▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌
▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌▐░▌ ▐░░░░░░░░░░░▌▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀
▄▄▄▄▄▄▄▄▄▄ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄ ▄▄ ▄
▐░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░▌ ▐░▌▐░░▌ ▐░▌
▐░█▀▀▀▀▀▀▀█░▌▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀█░▌▐░▌░▌ ▐░▌▐░▌░▌ ▐░▌
▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌▐░▌ ▐░▌▐░▌▐░▌ ▐░▌
▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌
▐░░░░░░░░░░▌ ▐░░░░░░░░░░░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌
▐░█▀▀▀▀▀▀▀█░▌ ▀▀▀▀█░█▀▀▀▀ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌▐░▌▐░▌ ▐░▌▐░▌
▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄ ▐░█▄▄▄▄▄▄▄█░▌▐░▌ ▐░▐░▌▐░▌ ▐░▐░▌
▐░░░░░░░░░░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░░▌▐░▌ ▐░░▌
▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀ ▀ ▀▀
▄ ▄ ▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░▌ ▐░▌▄█░░░░▌ ▐░░░░░░░░░░░▌
▐░▌ ▐░▌▐░░▌▐░░▌ ▐░█▀▀▀▀▀▀▀█░▌
▐░▌ ▐░▌ ▀▀ ▐░░▌ ▐░▌ ▐░▌
▐░▌ ▐░▌ ▐░░▌ ▐░█▄▄▄▄▄▄▄█░▌
▐░▌ ▐░▌ ▐░░▌ ▐░░░░░░░░░░░▌
▐░▌ ▐░▌ ▐░░▌ ▀▀▀▀▀▀▀▀▀█░▌
▐░▌ ▐░▌ ▐░░▌ ▐░▌
▐░▐░▌ ▄▄▄▄█░░█▄▄▄ ▄ ▄▄▄▄▄▄▄▄▄█░▌
▐░▌ ▐░░░░░░░░░░░▌▐░▌▐░░░░░░░░░░░▌
▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀
Follow me on Facebook! I post info on all new scripts and updates there
CCONN's Facebook: https://www.facebook.com/CCONN81
Feel like you have too much money? Give me some :) haha
CCONN's DONATE LINK: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JTWL7DK86V56S
Like the script? +Rep my profile. My signature has a list of all my released scripts and current projects
CCONN's Leaguebot Profile: http://leaguebot.net/forum/Upload/member.php?action=profile&uid=814
]]
require 'Utils'
require 'spell_damage'
require 'uiconfig'
require 'winapi'
require 'SKeys'
----------[[Deadly Cassio Variables]]
local target
local target2
local targetHero
local targetignite
local range = myHero.range + GetDistance(GetMinBBox(myHero))
local FLEEING = 0
local CHASING = 1
local STATIONARY = 2
local qTimer = os.time()
local wTimer = os.time()
local uiconfig = require 'uiconfig'
local HavocDamage = 0
local ExecutionerDamage = 0
local True_Attack_Damage_Against_Minions = 0
local Range = myHero.range + GetDistance(GetMinBBox(myHero))
local UltPOS
local SORT_CUSTOM = function(a, b) return a.maxHealth and b.maxHealth and a.maxHealth < b.maxHealth end
----------[[End of Deadly Cassio Variables]]
----------[[Farming Variables]]
local Target, M_Target
local TEAM
if myHero.team == 100 then
TEAM = "Blue"
else
TEAM = "Red"
end
local Cassio = { projSpeed = 1.22, aaParticles = {"CassBasicAttack_mis"}, aaSpellName = { "cassiopeiabasicattack" }, startAttackSpeed = "0.644" }
local MinionInfo = { }
MinionInfo[TEAM.."_Minion_Basic"] = { aaDelay = 400, projSpeed = 0 }
MinionInfo[TEAM.."_Minion_Caster"] = { aaDelay = 484, projSpeed = 0.68 }
MinionInfo[TEAM.."_Minion_Wizard"] = { aaDelay = 484, projSpeed = 0.68 }
MinionInfo[TEAM.."_Minion_MechCannon"] = { aaDelay = 365, projSpeed = 1.18 }
local Minions = { }
local aaDelay = 320
local aaPos = {x = 0, z = 0}
local Ping = 60
local IncomingDamage = { }
local AnimationBeginTimer = 0
local AnimationSpeedTimer = 0.1 * (1 / myHero.attackspeed)
local TimeToAA = os.clock()
----------[[End of Farming Variables]]
----------[[Red Elixer Variables]]
local wUsedAt = 0
local vUsedAt = 0
local mUsedAt = 0
local timer = os.clock()
local bluePill = nil
----------[[End of Red Elixir Variables]]
----------[[IGERs Auto Level Variables]]
local send = require 'SendInputScheduled'
local version = "1.2.2"
local Q,W,E,R = 'Q','W','E','R'
local metakey = SKeys.Control
local attempts = 0
local lastAttempt = 0
----------[[End of IGERs Auto Level Variables]]
----------[[Auto Dodge Skillshot Variables]]
local version = '1.0'
local cc = 0
local skillshotArray = {}
local colorcyan = 0x0000FFFF
local coloryellow = 0xFFFFFF00
local colorgreen = 0xFF00FF00
local skillshotcharexist = false
local show_allies=0
----------[[End of Auto Dodge Skillshot Variables]]
----------[[Roam Helper Variables]]
local Enemies = {}
local EnemyIndex = 1
----------[[End of Roam Helper Variables]]
----------[[Script Config Menu]]
CfgControls, menu = uiconfig.add_menu('1. Cassio Controls', 200)
menu.keydown('Combo', 'Combo', Keys.Space)
menu.keytoggle('ComboR', 'R in Combo', Keys.Z, false)
menu.keydown('Harass', 'Harass', Keys.X)
menu.keydown('PassiveFarm', 'Farm', Keys.C)
menu.keydown('PushLane', 'Lane Clear', Keys.V)
menu.keydown('Cast_Ult', 'Cast Ultimate', Keys.A)
menu.label('lbl7', ' ')
menu.label('lbl8', 'MEC Ultimate Options')
menu.checkbutton('useAutoMECR', 'use Auto MEC R', true)
menu.slider('valMECR', 'Minimum MEC Value', 1, 5, 3, {1,2,3,4,5})
menu.permashow('Combo')
menu.permashow('ComboR')
menu.permashow('Harass')
menu.permashow('PassiveFarm')
menu.permashow('PushLane')
menu.permashow('Cast_Ult')
menu.permashow('useAutoMECR')
menu.permashow('valMECR')
CfgSettings, menu = uiconfig.add_menu('2. Cassio Settings', 200)
menu.checkbutton('Auto_Q_ONOFF', 'Auto Q', true)
menu.checkbutton('Auto_W_ONOFF', 'Auto W', true)
menu.checkbutton('Auto_E_ONOFF', 'Auto E', true)
menu.checkbutton('Auto_Harass_ONOFF', 'Auto Harass', true)
menu.checkbutton('Auto_Ult_ONOFF', 'Auto Ultimate', true)
menu.checkbutton('Low_HP_Ult_ONOFF', 'Low HP Auto Ult', true)
menu.checkbutton('DMG_Predict_Farm_ONOFF', 'Use Damage Prediction Farming', true)
menu.checkbutton('Lane_Clear_With_W', 'Lane Clear with Miasma', true)
menu.checkbutton('Auto_Kill_Steal_ONOFF', 'Kill Steal', true)
menu.checkbutton('AutoLevelSpells_ONOFF', 'Auto Level Spells', true)
menu.checkbutton('drawskillshot', 'Draw Skillshots', true)
menu.checkbutton('dodgeskillshot', 'Dodge Skillshots', true)
menu.checkbutton('RoamHelper_ONOFF', 'Roam Helper', true)
menu.checkbutton('Combo_Circles_ONOFF', 'Combo Circles', true)
menu.checkbutton('Draw_ONOFF', 'Range Circles', true)
menu.checkbutton('MoveToMouse', 'Move To Mouse', true)
menu.slider('ComboType', 'Choose Combo Type', 1, 3, 1, {"W First","Q First", "CCONN"})
menu.slider('RTYPE', 'Manual R Type', 1, 2, 1, {"No Facing Detection","Facing Detection"})
menu.slider('QRNG', 'Q Range', 100, 850, 850, nil, true)
menu.slider('WRNG', 'W Range', 100, 850, 850, nil, true)
menu.slider('RRNG', 'R Range', 100, 850, 750, nil, true)
menu.slider('Auto_Harass_Value', 'Auto Harass Value', 0, 100, 50, nil, true)
menu.slider('Auto_Ult_Value', 'Auto Ultimate Value', 0, 100, 40, nil, true)
menu.slider('Low_HP_Ult_Value', 'Low HP Auto Ult Value', 0, 100, 15, nil, true)
menu.slider('SkillOrder', 'Auto Level Profile', 1, 2, 1, {"Max E","Max Q"})
menu.permashow('Auto_Harass_ONOFF')
menu.permashow('Auto_Ult_ONOFF')
menu.permashow('Low_HP_Ult_ONOFF')
CfgMasteries, menu = uiconfig.add_menu('3. Cassio Masteries', 200)
menu.slider('Butcher_Mastery', 'Butcher', 0, 2, 2, nil, true)
menu.slider('Havoc_Mastery', 'Havoc', 0, 3, 3, nil, true)
menu.slider('Brute_Force_Mastery', 'Brute Force', 0, 2, 0, nil, true)
menu.checkbutton('Spellsword_Mastery', 'Spellsword', true)
menu.checkbutton('Executioner_Mastery', 'Executioner', true)
CfgSummonerSpells, menu = uiconfig.add_menu('4. Summoner Spells', 200)
menu.checkbutton('Auto_Summoner_Spells_ONOFF', 'Enable Auto Summoner Spells', true)
menu.checkbutton('Auto_Ignite_ONOFF', 'Ignite', true)
menu.checkbutton('Auto_Ignite_COMBO_ONOFF', 'Use Ignite in Combo', true)
menu.checkbutton('Auto_Exhaust_COMBO_ONOFF', 'Use Exhaust in Combo', true)
menu.checkbutton('Auto_Exhaust_ONOFF', 'Exhaust', true)
menu.checkbutton('Auto_Barrier_ONOFF', 'Barrier', true)
menu.checkbutton('Auto_Heal_ONOFF', 'Heal', true)
menu.checkbutton('Auto_Clarity_ONOFF', 'Clarity', true)
menu.slider('AutoHealValue', 'Auto Heal Value', 0, 100, 15, nil, true)
menu.slider('AutoBarrierValue', 'Auto Barrier Value', 0, 100, 15, nil, true)
menu.slider('AutoExhaustValue', 'Auto Exhaust Value', 0, 100, 20, nil, true)
menu.slider('AutoClarityValue', 'Auto Clarity Value', 0, 100, 40, nil, true)
menu.slider('AutoIgniteComboValue', 'Ignite Combo Value', 0, 100, 40, nil, true)
menu.slider('AutoExhaustComboValue', 'Exhaust Combo Value', 0, 100, 40, nil, true)
CfgPotions, menu = uiconfig.add_menu('5. Potions', 200)
menu.checkbutton('Red_Elixir_ONOFF', 'Master Switch: Potions', true)
menu.checkbutton('Health_Potion_ONOFF', 'Health Potions', true)
menu.checkbutton('Mana_Potion_ONOFF', 'Mana Potions', true)
menu.checkbutton('Chrystalline_Flask_ONOFF', 'Chrystalline Flask', true)
menu.checkbutton('Elixir_of_Fortitude_ONOFF', 'Elixir of Fortitude', true)
menu.checkbutton('Biscuit_ONOFF', 'Biscuit', true)
menu.slider('Health_Potion_Value', 'Health Potion Value', 0, 100, 75, nil, true)
menu.slider('Mana_Potion_Value', 'Mana Potion Value', 0, 100, 75, nil, true)
menu.slider('Chrystalline_Flask_Value', 'Chrystalline Flask Value', 0, 100, 75, nil, true)
menu.slider('Elixir_of_Fortitude_Value', 'Elixir of Fortitude Value', 0, 100, 30, nil, true)
menu.slider('Biscuit_Value', 'Biscuit Value', 0, 100, 60, nil, true)
CfgItems, menu = uiconfig.add_menu('6. Items', 200)
menu.checkbutton('Zhonyas_Hourglass_ONOFF', 'Zhonyas Hourglass', true)
menu.checkbutton('Deathfire_Grasp_ONOFF', 'Deathfire Grasp', true)
menu.checkbutton('Hextech_Gunblade_ONOFF', 'Hextech Gunblade', true)
menu.checkbutton('Twin_Shadows_ONOFF', 'Twin Shadows', true)
menu.checkbutton('Wooglets_Witchcap_ONOFF', 'Wooglets Witchcap', true)
menu.checkbutton('Shard_of_True_Ice_ONOFF', 'Shard of True Ice', true)
menu.checkbutton('Seraphs_Embrace_ONOFF', 'Seraphs Embrace', true)
menu.checkbutton('Blackfire_Torch_ONOFF', 'Blackfire Torch', true)
menu.slider('Zhonyas_Hourglass_Value', 'Zhonya Hourglass Value', 0, 100, 15, nil, true)
menu.slider('Wooglets_Witchcap_Value', 'Wooglets Witchcap Value', 0, 100, 15, nil, true)
menu.slider('Seraphs_Embrace_Value', 'Seraphs Embrace Value', 0, 100, 15, nil, true)
----------[[End of Script Config Menu]]
----------[[Core Script Function]]
function DeadlyCassio()
if IsChatOpen() == 0 and tostring(winapi.get_foreground_window()) == "League of Legends (TM) Client" then
target = GetWeakEnemy('MAGIC', 850)
targetHero = GetWeakEnemy('MAGIC', 850)
target2 = GetWeakEnemy('MAGIC', 700)
Mastery_Damage()
if CfgControls.useAutoMECR then mecPetrifyingGaze(CfgControls.valMECR) end
if CfgPotions.Red_Elixir_ONOFF then RedElixir() end
if CfgSettings.Draw_ONOFF then Draw() end
if CfgSummonerSpells.Auto_Summoner_Spells_ONOFF then SummonerSpells() end
if CfgSettings.Auto_Kill_Steal_ONOFF then KillSteal() end
if CfgControls.Combo then Combo() end
if CfgControls.Combo then Cassio_Items() end
if CfgControls.Harass then Harass() end
if CfgControls.PassiveFarm and CfgSettings.DMG_Predict_Farm_ONOFF then
Farm()
elseif CfgControls.PassiveFarm then
Hybrid()
else end
if CfgControls.PushLane then LaneClear() end
if CfgControls.Cast_Ult then
if CfgSettings.RTYPE == 1 then
R_No_Facing_Detection()
elseif CfgSettings.RTYPE == 2 then
R()
end
end
if CfgSettings.Low_HP_Ult_ONOFF then Low_HP_Ult() end
--if CfgSettings.Auto_GetMEC_Ult_ONOFF then AutoGetMecULT() end
if CfgControls.Cast_Ult then R() end
if CfgSettings.Auto_Harass_ONOFF then Auto_Harass() end
end
end
----------[[End of Core Script Function]]
----------[[Utility Functions]]
for i = 1, objManager:GetMaxHeroes(), 1 do
Hero = objManager:GetHero(i)
if Hero ~= nil and Hero.team ~= myHero.team then
if Enemies[Hero.name] == nil then
Enemies[Hero.name] = { Unit = Hero, Number = EnemyIndex }
EnemyIndex = EnemyIndex + 1
end
end
end
function Draw()
if myHero.SpellLevelQ > 0.00 and myHero.SpellTimeQ > 1.0 then CustomCircle(CfgSettings.QRNG,2,4,myHero) end
if myHero.SpellLevelW > 0.00 and myHero.SpellTimeW > 1.0 then CustomCircle(CfgSettings.WRNG,2,4,myHero) end
if myHero.SpellLevelE > 0.00 and myHero.SpellTimeE > 1.0 then CustomCircle(700,2,4,myHero) end
if CfgControls.PushLane or CfgControls.PassiveFarm then CustomCircle(range,2,4,myHero) end
if target2 ~= nil then
CustomCircle(100,5,2,target2)
if GetTargetDirection() == CHASING then
CustomCircle(125,20,2,target2)
end
end
if CfgSettings.RoamHelper_ONOFF then
for i, Enemy in pairs(Enemies) do
if Enemy ~= nil then
Hero = Enemy.Unit
local PositionX = (13.3/16) * GetScreenX()
local QDMG = getDmg('Q', Hero, myHero)+(getDmg('Q',Hero,myHero)*(HavocDamage + ExecutionerDamage))
local WDMG = getDmg('W', Hero, myHero)+(getDmg('W',Hero,myHero)*(HavocDamage + ExecutionerDamage))
local EDMG = getDmg('E', Hero, myHero)+(getDmg('E',Hero,myHero)*(HavocDamage + ExecutionerDamage))
local RDMG = getDmg('R', Hero, myHero)+(getDmg('R',Hero,myHero)*(HavocDamage + ExecutionerDamage))
local Current_Burst
local Damage
if myHero.selflevel >= 6 and myHero.SpellTimeR > 1.0 then
Current_Burst = Round(QDMG + WDMG + EDMG * 3 + RDMG, 0) --Show damage of QWEEER combo if Ult is available
else
Current_Burst = Round(QDMG + WDMG + EDMG * 3, 0) --Show damage of QWEEE combo if Ult is not available
end
if myHero.SummonerD == 'SummonerDot' and myHero.SpellTimeD > 1.0 or myHero.SummonerF == 'SummonerDot' and myHero.SpellTimeF > 1.0 then
Current_Burst = Current_Burst + ((myHero.selflevel*20)+50) --If Ignite detected and is not on cooldown add ignite damage to combo damage
end
Damage = Current_Burst
DrawText("Champion: "..Hero.name, PositionX, ((15/900) * GetScreenY()) * Enemy.Number + ((53/90) * GetScreenY()), Color.SkyBlue)
if Hero.visible == 1 and Hero.dead ~= 1 then
if Damage < Hero.health then
DrawText("DMG "..Damage, PositionX + 150, ((15/900) * GetScreenY()) * Enemy.Number + ((53/90) * GetScreenY()), Color.Yellow)
elseif Damage > Hero.health then
DrawText("Killable!", PositionX + 150, ((15/900) * GetScreenY()) * Enemy.Number + ((53/90) * GetScreenY()), Color.Red)
end
end
if Hero.visible == 0 and Hero.dead ~= 1 then
DrawText("MIA", PositionX + 150, ((15/900) * GetScreenY()) * Enemy.Number + ((53/90) * GetScreenY()), Color.Orange)
elseif Hero.dead == 1 then
DrawText("Dead", PositionX + 150, ((15/900) * GetScreenY()) * Enemy.Number + ((53/90) * GetScreenY()), Color.Green)
end
end
end
end
end
function Round(val, decimal)
if (decimal) then
return math.floor( (val * 10 ^ decimal) + 0.5) / (10 ^ decimal)
else
return math.floor(val + 0.5)
end
end
function DetectPoison()
for i = 1, objManager:GetMaxObjects(), 1 do
obj = objManager:GetObject(i)
if obj~=nil and target~=nil then
if (obj.charName:lower():find("global_poison")) and GetDistance(obj, target) < 100 then
return true
end
end
end
end
function GetTargetDirection()
local distanceTarget = GetDistance(target)
local x1, y1, z1 = GetFireahead(target,2,10)
local distancePredicted = GetDistance({x = x1, y = y1, z = z1})
return (distanceTarget > distancePredicted and CHASING or (distanceTarget < distancePredicted and FLEEING or STATIONARY))
end
function Cassio_Items()
local target = GetWeakEnemy('MAGIC',700)
if target ~= nil then
if GetDistance(myHero,target) <= 700 then
if CfgItems.Hextech_Gunblade_ONOFF then useHextechGunblade() end
if CfgItems.Deathfire_Grasp_ONOFF then useDeathfireGrasp() end
if CfgItems.Twin_Shadows_ONOFF then useTwinShadows() end
if CfgItems.Shard_of_True_Ice_ONOFF then useShardofTrueIce() end
if CfgItems.Blackfire_Torch_ONOFF then useBlackfireTorch() end
end
if CfgItems.Zhonyas_Hourglass_ONOFF then
if myHero.health < myHero.maxHealth*(CfgItems.Zhonyas_Hourglass_Value / 100) then
useZhonyas()
end
end
if CfgItems.Wooglets_Witchcap_ONOFF then
if myHero.health < myHero.maxHealth*(CfgItems.Wooglets_Witchcap_Value / 100) then
useWoogletsWitchcap()
end
end
if CfgItems.Seraphs_Embrace_ONOFF then
if myHero.health <= (CfgItems.Seraphs_Embrace_Value / 100) then
useSeraphsEmbrace()
end
end
end
end
function useZhonyas()
GetInventorySlot(3157)
UseItemOnTarget(3157,myHero)
end
function useHextechGunblade()
if target ~= nil then
GetInventorySlot(3146)
UseItemOnTarget(3146,target)
end
end
function useDeathfireGrasp()
if target ~= nil then
GetInventorySlot(3128)
UseItemOnTarget(3128,target)
end
end
function useTwinShadows()
if target ~= nil then
GetInventorySlot(3023)
UseItemOnTarget(3023,target)
end
end
function useWoogletsWitchcap()
GetInventorySlot(3090)
UseItemOnTarget(3090,myHero)
end
function useShardofTrueIce()
GetInventorySlot(3092)
UseItemOnTarget(3092,myHero)
end
function useSeraphsEmbrace()
GetInventorySlot(3040)
UseItemOnTarget(3040,myHero)
end
function useBlackfireTorch()
if target ~= nil then
GetInventorySlot(3188)
UseItemOnTarget(3188,target)
end
end
function Mastery_Damage()
local Mast_ButcherDMG = 0
local Mast_BruteForceDMG = 0
local Mast_SpellswordDMG = 0
if CfgMasteries.Butcher_Mastery > 0 then
Mast_ButcherDMG = CfgMasteries.Butcher_Mastery
end
if CfgMasteries.Brute_Force_Mastery then
if CfgMasteries.Brute_Force_Mastery == 1 then
Mast_BruteForceDMG = 1.5
end
if CfgMasteries.Brute_Force_Mastery == 2 then
Mast_BruteForceDMG = 3
end
end
if CfgMasteries.Spellsword_Mastery then
Mast_SpellswordDMG = myHero.ap * .05
end
if CfgMasteries.Havoc_Mastery then
if CfgMasteries.Havoc_Mastery == 1 then
HavocDamage = 0.0067
end
if CfgMasteries.Havoc_Mastery == 2 then
HavocDamage = 0.0133
end
if CfgMasteries.Havoc_Mastery == 3 then
HavocDamage = 0.02
end
end
if CfgMasteries.Executioner_Mastery then
ExecutionerDamage = .05
end
True_Attack_Damage_Against_Minions = (myHero.baseDamage + myHero.addDamage + Mast_BruteForceDMG + Mast_SpellswordDMG)+((myHero.baseDamage + myHero.addDamage + Mast_BruteForceDMG + Mast_SpellswordDMG)*(HavocDamage + ExecutionerDamage))
end
----------[[End of Utility Functions]]
----------[[Farming Functions]]
function Farm()
Minions = GetEnemyMinions(SORT_CUSTOM)
AnimationSpeedTimer = 0.085 * (1 / myHero.attackspeed)
for i, Minion in pairs(Minions) do
if Minion ~= nil and Minion.dead ~= 1 then
local PredictedDamage = 0
local aaTime = Ping + aaDelay + ( GetDistance(myHero, Minion) / Cassio.projSpeed )
for k, DMG in pairs(IncomingDamage) do
if DMG ~= nil then
if (DMG.Source == nil or DMG.Source.dead or DMG.Target == nil or DMG.Target.dead) or (DMG.Source.x ~= DMG.aaPos.x or DMG.Source.z ~= DMG.aaPos.z) then
IncomingDamage[k] = nil
elseif Minion == DMG.Target then
DMG.aaTime = (DMG.projSpeed == 0 and (DMG.aaDelay) or (DMG.aaDelay + GetDistance(DMG.Source, Minion) / DMG.projSpeed))
if GetTickCount() >= (DMG.Start + DMG.aaTime) then
IncomingDamage[k] = nil
elseif GetTickCount() + aaTime > (DMG.Start + DMG.aaTime) then
PredictedDamage = PredictedDamage + DMG.Damage
end
end
end
end
if Minion.dead == 0 and Minion.health - PredictedDamage <= True_Attack_Damage_Against_Minions and Minion.health - PredictedDamage > 0 and GetDistance(Minion, myHero) < Range then
if os.clock() > TimeToAA then AttackTarget(Minion)
CustomCircle(100, 1, 2, Minion)
--[[ elseif target ~= nil then
Harass()]]
end
end
end
end
if os.clock() > (AnimationBeginTimer + AnimationSpeedTimer) then MoveToMouse() end
end
function OnProcessSpell(unit, spell)
if unit ~= nil and GetDistance(myHero, unit) < 1000 then
for i, Minion in pairs(Minions) do
if Minion ~= nil then
if MinionInfo[unit.charName] ~= nil then
local m_aaDelay = MinionInfo[unit.charName].aaDelay
local m_projSpeed = MinionInfo[unit.charName].projSpeed
if spell.target == Minion then
IncomingDamage[unit.name] = { Source = unit, Target = Minion, Damage = getDmg("AD", Minion, unit), Start = GetTickCount(), aaPos = { x = unit.x, z = unit.z }, aaDelay = m_aaDelay, projSpeed = m_projSpeed }
end
end
end
end
end
if unit.charName == myHero.charName then
for i, aaSpellName in pairs(Cassio.aaSpellName) do
if spell.name == aaSpellName then
AnimationBeginTimer = os.clock()
TimeToAA = os.clock() + (1 / myHero.attackspeed) - 0.35 * (1 / myHero.attackspeed)
end
end
end
end
function Hybrid() -----> Hybrid function changed to prioritze last hits over champions
targetHero = GetWeakEnemy("MAGIC",850)
tlow = GetLowestHealthEnemyMinion(range)
if tlow ~= nil and tlow.health <= True_Attack_Damage_Against_Minions then
target = tlow
elseif targetHero ~= nil then
target = targetHero
Harass()
else
target = GetLowestHealthEnemyMinion(range)
end
if target ~= nil then
if True_Attack_Damage_Against_Minions >= target.health then
AttackTarget(target)
--[[ else
if CfgSettings.FarmWithE then
getDmg('E',target,myHero)*(HavocDamage + ExecutionerDamage) >= target.health then
if os.time() < qTimer + 3 or os.time() < wTimer + 2 then
E()
end
end]]
end
else
if CfgSettings.MoveToMouse then MoveToMouse() end
end
if CfgSettings.MoveToMouse then MoveToMouse() end
end
function LaneClear()
local tlow=GetLowestHealthEnemyMinion(range)
local thigh=GetHighestHealthEnemyMinion(range)
targetHero = GetWeakEnemy("MAGIC",range)
if target2 ~= nil and target2.visible == 1 and target2.dead == 0 then
target = target2
end
if tlow~= nil then
if True_Attack_Damage_Against_Minions >= tlow.health then
target = tlow
CustomCircle(100,20,1,target)
elseif getDmg("E",tlow,myHero)+(getDmg("E",tlow,myHero)*(HavocDamage + ExecutionerDamage)) >= tlow.health then
target = tlow
CustomCircle(100,20,1,target)
elseif targetHero ~= nil then
target = targetHero
elseif thigh ~= nil then
target = thigh
CustomCircle(110,10,5,target)
else end
end
if target ~= nil and target.visible == 1 and target.dead == 0 then
if True_Attack_Damage_Against_Minions >= target.health then
AttackTarget(target)
elseif
getDmg("E",target,myHero)+(getDmg("E",target,myHero)*(HavocDamage + ExecutionerDamage)) >= target.health and DetectPoison() then
E()
else
CastHotkey('AUTO 100,0 ATTACK:WEAKMINION PATROLSTRAFE')
if CfgSettings.Lane_Clear_With_W then
if target == thigh then
local WPos = GetMEC(175, 850, target)
if WPos then
CastSpellXYZ("W", WPos.x, 0, WPos.z)
wTimer = os.time()
else
CastSpellXYZ("W",GetFireahead(target,2.65,25))
wTimer = os.time()
end
end
end
local QPos = GetMEC(75, 850, target)
if QPos then
CastSpellXYZ("Q", QPos.x, 0, QPos.z)
qTimer = os.time()
else
CastSpellXYZ("Q",GetFireahead(target,6,0))
qTimer = os.time()
end
end
--Action()
else
if CfgSettings.MoveToMouse then MoveToMouse() end
end
if CfgSettings.MoveToMouse then MoveToMouse() end
end
----------[[End of Farming Functions]]
----------[[Combo Functions]]
function Combo()
if CfgSettings.ComboType == 1 then
if target ~= nil then
if GetDistance(target) < 850 then
if CfgSettings.Auto_W_ONOFF then W() end
if CfgSettings.Auto_Q_ONOFF then Q() end
if CfgControls.ComboR then R() end
end
if GetDistance(target) <= 700 then
if CfgSettings.Auto_E_ONOFF then E() end
end
if GetDistance(target) <= 600 then
if CfgSummonerSpells.Auto_Ignite_COMBO_ONOFF then SummonerIgniteCombo() end
if CfgSummonerSpells.Auto_Exhaust_COMBO_ONOFF then SummonerExhaustCombo() end
end
--[[if CfgSettings.AutoCarry_ONOFF and myHero.SpellTimeE < 1.0 and myHero.SpellTimeQ < 1.0 and GetDistance(myHero, target) <= range then
AutoCarry()
end]]
if CfgSettings.MoveToMouse then MoveToMouse() end
else
if CfgSettings.MoveToMouse then MoveToMouse() end
end
end
if CfgSettings.ComboType == 2 then
if target ~= nil then
if GetDistance(target) < 850 then
if CfgSettings.Auto_Q_ONOFF then Q() end
if CfgSettings.Auto_W_ONOFF then W() end
if CfgControls.ComboR then R() end
end
if GetDistance(target) <= 700 then
if CfgSettings.Auto_E_ONOFF then E() end
end
if GetDistance(target) <= 600 then
if CfgSummonerSpells.Auto_Ignite_COMBO_ONOFF then SummonerIgniteCombo() end
if CfgSummonerSpells.Auto_Exhaust_COMBO_ONOFF then SummonerExhaustCombo() end
end
--[[if CfgSettings.AutoCarry_ONOFF and myHero.SpellTimeE < 1.0 and myHero.SpellTimeQ < 1.0 and GetDistance(myHero, target) <= range then
AutoCarry()
end]]
if CfgSettings.MoveToMouse then MoveToMouse() end
else
if CfgSettings.MoveToMouse then MoveToMouse() end
end
end
if CfgSettings.ComboType == 3 then
if target ~= nil then
if DetectPoison() and myHero.SpellTimeE > 1.0 and GetDistance(myHero, target) <= 700 then
E()
elseif not DetectPoison() and myHero.SpellTimeW > 1.0 and GetDistance(myHero, target) <= 850 then
W()
elseif not DetectPoison() and myHero.SpellTimeQ > 1.0 and GetDistance(myHero, target) <= 850 then
Q()
elseif CfgControls.ComboR and myHero.SpellTimeR > 1.0 and GetDistance(myHero, target) <= 850 then
R()
end
if GetDistance(target) <= 600 then
if CfgSummonerSpells.Auto_Ignite_COMBO_ONOFF then SummonerIgniteCombo() end
if CfgSummonerSpells.Auto_Exhaust_COMBO_ONOFF then SummonerExhaustCombo() end
end
--[[if CfgSettings.AutoCarry_ONOFF and myHero.SpellTimeE < 1.0 and myHero.SpellTimeQ < 1.0 and GetDistance(myHero, target) <= range then
AutoCarry()
end]]
if CfgSettings.MoveToMouse then MoveToMouse() end
else
if CfgSettings.MoveToMouse then MoveToMouse() end
end
end
end
function Harass()
if CfgSettings.ComboType == 1 then
if target ~= nil then
if GetDistance(target) < 850 then
if CfgSettings.Auto_W_ONOFF then W() end
if CfgSettings.Auto_Q_ONOFF then Q() end
end
if GetDistance(target) <= 700 then
if CfgSettings.Auto_E_ONOFF then E() end
end
if CfgSettings.MoveToMouse then MoveToMouse() end
else
if CfgSettings.MoveToMouse then MoveToMouse() end
end
end
if CfgSettings.ComboType == 2 then
if target ~= nil then
if GetDistance(target) < 850 then
if CfgSettings.Auto_Q_ONOFF then Q() end
if CfgSettings.Auto_W_ONOFF then W() end
end
if GetDistance(target) <= 700 then
if CfgSettings.Auto_E_ONOFF then E() end
end
if CfgSettings.MoveToMouse then MoveToMouse() end
else
if CfgSettings.MoveToMouse then MoveToMouse() end
end
end
end
----------[[End of Combo Functions]]
----------[[Spell Functions]]
function Q()
if target ~= nil then
if GetDistance(myHero, target) <= CfgSettings.QRNG and myHero.SpellTimeQ > 1.0 then
CastSpellXYZ("Q",GetFireahead(target,6,0))
qTimer = os.time()
end
end
end
function W()
if target ~= nil then
if GetDistance(myHero, target) <= CfgSettings.WRNG and myHero.SpellTimeW > 1.0 then
CastSpellXYZ("W",GetFireahead(target,2.65,42)) --2.65,45 need to test
wTimer = os.time()
end
end
end
function E()
if target ~= nil then
if DetectPoison() then
if CfgSettings.Auto_Q_ONOFF and CfgSettings.Auto_W_ONOFF then
--if os.time() < qTimer + 3 or os.time() < wTimer + 2 then
if GetDistance(target) <= 700 then
CastSpellTarget("E",target)
end
--end
else
if GetDistance(target) <= 700 then
CastSpellTarget("E",target)
end
end
end
end
end
function R()
if target2 ~= nil and myHero.selflevel >= 6 then
if myHero.SpellTimeR > 1.0 and myHero.mana >= 80 + (myHero.SpellLevelR * 40) then
if GetDistance(myHero, target2) <= CfgSettings.RRNG and GetTargetDirection(target2) == CHASING then
ultPos = GetMEC(230, 800, target2)
if ultPos then
CastSpellXYZ("R", ultPos.x, 0, ultPos.z)
else
CastSpellXYZ("R",GetFireahead(target2,2,10))
end
end
end
end
end
function R_No_Facing_Detection()
if target2 ~= nil and myHero.selflevel >= 6 then
if myHero.SpellTimeR > 1.0 and myHero.mana >= 80 + (myHero.SpellLevelR * 40) then
if GetDistance(myHero, target2) <= CfgSettings.RRNG then
ultPos = GetMEC(230, CfgSettings.RRNG, target2)
if ultPos then
CastSpellXYZ("R", ultPos.x, 0, ultPos.z)
else
CastSpellXYZ("R",GetFireahead(target2,2,10))
end
end
end
end
end
function AutoR()
if target2 ~= nil and target2.health < (target2.maxHealth*(CfgSettings.Auto_Ult_Value / 100)) then
if CfgSettings.Auto_Ult_ONOFF then
if myHero.selflevel >= 6 then
if myHero.SpellTimeR > 1.0 and myHero.mana >= 100 then
if GetDistance(target2) <= CfgSettings.RRNG and GetTargetDirection(target2) == CHASING then
ultPos = GetMEC(230, CfgSettings.RRNG, target2)
if ultPos then
CastSpellXYZ("R", ultPos.x, 0, ultPos.z)
else
CastSpellXYZ("R",GetFireahead(target2,2,10))
end
end
end
end
end
end
end
function Auto_Harass()
if targetHero ~= nil then
if myHero.mana >= myHero.maxMana*(CfgSettings.Auto_Harass_Value / 100) then
if CfgSettings.Auto_Q_ONOFF then
if GetDistance(myHero, targetHero) <= CfgSettings.QRNG then
CastSpellXYZ("Q",GetFireahead(targetHero,6,0))
qTimer = os.time()
end
end
if GetDistance(targetHero) <= 700 then
if DetectPoison() then
if CfgSettings.Auto_Q_ONOFF and CfgSettings.Auto_W_ONOFF then
if os.time() < qTimer + 3 or os.time() < wTimer + 2 then
if GetDistance(target) <= 700 then
CastSpellTarget("E",target)
end
end
else
if GetDistance(target) <= 700 then
CastSpellTarget("E",target)
end
end
end
end
end
end
end
function Low_HP_Ult()
if target2 ~= nil and GetDistance(myHero,target) <= 400 then
if myHero.selflevel >= 6 then
if myHero.health < myHero.maxHealth*(CfgSettings.Low_HP_Ult_Value / 100) then
if myHero.SpellTimeR > 1.0 and myHero.mana >= 80 + (myHero.SpellLevelR * 40) then
if GetDistance(target2) <= CfgSettings.RRNG and GetTargetDirection(target2) == CHASING then
ultPos = GetMEC(230, CfgSettings.RRNG, target2)
if ultPos then
CastSpellXYZ("R", ultPos.x, 0, ultPos.z)
else
CastSpellXYZ("R",GetFireahead(target2,2,10))
end
end
end
end
end
end
end
function mecPetrifyingGaze(Value)
for i = 1, objManager:GetMaxHeroes() do
local enemy = objManager:GetHero(i)
if (enemy ~= nil and enemy.team ~= myHero.team and enemy.visible == 1 and enemy.invulnerable == 0 and enemy.dead == 0) then
ultPos = GetMEC(230, CfgSettings.RRNG, enemy)
if ultPos and GetDistance(ultPos) < CfgSettings.RRNG and CountUnit(ultPos,230) >= Value then
if myHero.SpellLevelR >= 1 and myHero.SpellTimeR > 1.0 and myHero.mana >= 100 then
CastSpellXYZ('R', ultPos.x, 0, ultPos.z)
end
end
end
end
end
----------[[End of Spell Functions]]
----------[[Summoner Spell Functions]]
function SummonerSpells()
if CfgSummonerSpells.Auto_Ignite_ONOFF then SummonerIgnite() end
if CfgSummonerSpells.Auto_Barrier_ONOFF then SummonerBarrier() end
if CfgSummonerSpells.Auto_Heal_ONOFF then SummonerHeal() end
if CfgSummonerSpells.Auto_Exhaust_ONOFF then SummonerExhaust() end
if CfgSummonerSpells.Auto_Clarity_ONOFF then SummonerClarity() end
end
function SummonerIgniteCombo()
if target ~= nil then
if myHero.SummonerD == 'SummonerDot' then
if target.health <= target.maxHealth*(CfgSummonerSpells.AutoIgniteComboValue / 100) then
CastSpellTarget('D',target)
end
end
if myHero.SummonerF == 'SummonerDot' then
if target.health <= target.maxHealth*(CfgSummonerSpells.AutoIgniteComboValue / 100) then
CastSpellTarget('F',target)
end
end
end
end
function SummonerIgnite()
targetignite = GetWeakEnemy("TRUE",600)
local damage = (myHero.selflevel*20)+50
if targetignite ~= nil then
if myHero.SummonerD == 'SummonerDot' then
if targetignite.health < damage then
CastSpellTarget('D',targetignite)
end
end
if myHero.SummonerF == 'SummonerDot' then
if targetignite.health < damage then
CastSpellTarget('F',targetignite)
end
end
end
end
function SummonerBarrier()
if myHero.SummonerD == 'SummonerBarrier' then
if myHero.health < myHero.maxHealth*(CfgSummonerSpells.AutoBarrierValue / 100) then
CastSpellTarget('D',myHero)
end
end
if myHero.SummonerF == 'SummonerBarrier' then
if myHero.health < myHero.maxHealth*(CfgSummonerSpells.AutoBarrierValue / 100) then
CastSpellTarget('F',myHero)
end
end
end
function SummonerHeal()
if myHero.SummonerD == 'SummonerHeal' then
if myHero.health < myHero.maxHealth*(CfgSummonerSpells.AutoHealValue / 100) then
CastSpellTarget('D',myHero)
end
end
if myHero.SummonerF == 'SummonerHeal' then
if myHero.health < myHero.maxHealth*(CfgSummonerSpells.AutoHealValue / 100) then
CastSpellTarget('F',myHero)
end
end
end
function SummonerExhaustCombo()
if target ~= nil then
if myHero.SummonerD == 'SummonerExhaust' then
if target.health <= target.maxHealth*(CfgSummonerSpells.AutoExhaustComboValue / 100) then
CastSpellTarget('D',target)
end
end
if myHero.SummonerF == 'SummonerExhaust' then
if target.health <= target.maxHealth*(CfgSummonerSpells.AutoExhaustComboValue / 100) then
CastSpellTarget('F',target)
end
end
end
end
function SummonerExhaust()
if target ~= nil then
if myHero.SummonerD == 'SummonerExhaust' then
if myHero.health < myHero.maxHealth*(CfgSummonerSpells.AutoExhaustValue / 100) then
if myHero.health < target.health then
CastSpellTarget('D',target)
end
end
end
if myHero.SummonerF == 'SummonerExhaust' then
if myHero.health < myHero.maxHealth*(CfgSummonerSpells.AutoExhaustValue / 100) then
if myHero.health < target.health then
CastSpellTarget('F',target)
end
end
end
end
end
function SummonerClarity()
if myHero.SummonerD == 'SummonerMana' then
if myHero.mana < myHero.maxMana*(CfgSummonerSpells.AutoClarityValue / 100) then
CastSpellTarget('D',myHero)
end
end
if myHero.SummonerF == 'SummonerMana' then
if myHero.mana < myHero.maxMana*(CfgSummonerSpells.AutoClarityValue / 100) then
CastSpellTarget('F',myHero)
end
end
end
----------[[End of Summoner Spell Functions]]
----------[[Kill Steal Functions]]
function KillSteal()
for i = 1, objManager:GetMaxHeroes() do
local enemy = objManager:GetHero(i)
if (enemy ~= nil and enemy.team ~= myHero.team and enemy.visible == 1 and enemy.invulnerable==0 and enemy.dead == 0) then
local qdmg = getDmg("Q",enemy,myHero)
local wdmg = getDmg("W",enemy,myHero)
local edmg = getDmg("E",enemy,myHero)
local rdmg = getDmg("R",enemy,myHero)
local ignitedmg = (myHero.selflevel*20)+50
if CfgSettings.Combo_Circles_ONOFF then
if myHero.SummonerD == 'SummonerDot' and myHero.SpellTimeD > 1.0 or myHero.SummonerF == 'SummonerDot' and myHero.SpellTimeF > 1.0 then