Repository navigation
Expand file tree
/
Copy pathSimpleMalzaharRelease.lua
More file actions
1254 lines (1160 loc) · 47 KB
/
Copy pathSimpleMalzaharRelease.lua
File metadata and controls
1254 lines (1160 loc) · 47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
if myHero.charName ~= "Malzahar" or not VIP_USER then return end
require "VPrediction"
--[[AUTO UPDATE]]--
local version = "0.9"
local AUTOUPDATE = true
local UPDATE_HOST = "raw.github.com"
local UPDATE_PATH = "/Jusbol/scripts/master/SimpleMalzaharRelease.lua".."?rand="..math.random(1,10000)
local UPDATE_FILE_PATH = SCRIPT_PATH.."SimpleMalzaharRelease.lua"
local UPDATE_URL = "https://"..UPDATE_HOST..UPDATE_PATH
function _AutoupdaterMsg(msg) print("<font color=\"#6699ff\"><b>Malzahar, A Void Call:</b></font> <font color=\"#FFFFFF\">"..msg..".</font>") end
if AUTOUPDATE then
local ServerData = GetWebResult(UPDATE_HOST, "/Jusbol/scripts/master/VersionFiles/Malzahar.version")
if ServerData then
ServerVersion = type(tonumber(ServerData)) == "number" and tonumber(ServerData) or nil
if ServerVersion then
if tonumber(version) < ServerVersion then
_AutoupdaterMsg("New version available"..ServerVersion)
_AutoupdaterMsg("Updating, please don't press F9")
DelayAction(function() DownloadFile(UPDATE_URL, UPDATE_FILE_PATH, function () _AutoupdaterMsg("Successfully updated. ("..version.." => "..ServerVersion.."), press F9 twice to load the updated version.") end) end, 3)
else
_AutoupdaterMsg("You have got the latest version ("..ServerVersion..")")
end
end
else
_AutoupdaterMsg("Error downloading version info")
end
end
--[[honda update function]]
--[[SKILLS]]--
local AlZaharCalloftheVoid = {ready = nil, spellSlot = _Q, range = 900, width = 110, speed = math.huge, delay = .8}
local AlZaharNullZone = {ready = nil, spellSlot = _W, range = 800, width = 250, speed = math.huge, delay = .5}
local AlZaharMaleficVision = {ready = nil, spellSlot = _E, range = 650, width = 0, speed = math.huge, delay = .5}
local AlZaharNetherGrasp = {ready = nil, spellSlot = _R, range = 700, width = 0, speed = math.huge, delay = .5}
--[[SPELLS]]--
local IgniteSpell = {spellSlot = "SummonerDot", iSlot = nil, ready = false, range = 600}
local BarreiraSpell = {spellSlot = "SummonerBarrier", bSlot = nil, ready = false, range = 0}
local FlashSpell = {spellSlot = "SummonerFlash", fSlot = nil, ready = false, range = 400}
--[[ITEMS]]--
local DFG = {id = 3128, ready = false, range = 750, slot = nil}
local ZHONIA = {id = 3157, ready = false, range = 0, slot = nil}
local Seraph = {id = 3040, ready = false, range = 0, slot = nil}
local Hppotion = {id = 2003, ready = false, slot = nil}
local Manapotion = {id = 2004 , ready = false, slot = nil}
--[[ORBWALK]]--
local lastAttack, lastWindUpTime, lastAttackCD = 0, 0, 0
local myTrueRange = 0
--[[MISC]]--
local UsandoR = false
local MeuAlvo = nil
local MeuAlvoSelecionado = false
local EsteAlvo = nil
local UsandoHP = false
local UsandoMana = false
local RecebeuCC = false
local UsandoRecall = false
local TemVoid = false
local AtualizarDanoInimigo = 0
local SequenciaHabilidades1 = {1,3,3,2,3,4,3,2,3,2,4,2,2,1,1,4,1,1}
local Invulneraveis = { "PoppyDiplomaticImmunity", "UndyingRage", "JudicatorIntervention", "VladimirSanguinePool"}
local DanoQ = { 80 , 135 , 190 , 245 , 300 }
local DanoW = { 4 , 5 , 6 , 7 , 8 }
local DanoE = { 80 , 140 , 200 , 260 , 320 }
local DanoR = { 250 , 400 , 550 }
local DanoTotal, QDano, WDano, EDano, RDano, DFGDano = 0, 0, 0, 0, 0
local StealJungle = {
Vilemaw = {obj = nil, name = "TT_Spiderboss7.1.1"},
Baron = {obj = nil, name = "Worm12.1.1"},
Dragon = {obj = nil, name = "Dragon6.1.1"},
Golem1 = {obj = nil, name = "AncientGolem1.1.1"},
Golem2 = {obj = nil, name = "AncientGolem7.1.1"},
}
--[[Others]]
function OnLoad()
Menu = scriptConfig(myHero.charName.." by Jus", "SimpleMalzahar")
Menu:addParam("LigarScript", "Global ON/OFF", SCRIPT_PARAM_ONOFF, true)
Menu:addParam("VersaoInfo", "Malzahar Version", SCRIPT_PARAM_INFO, version)
--[[COMBO]]--
Menu:addSubMenu("Combo System", "Combo")
Menu.Combo:addParam("ComboSystem", "Use Combo System", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Combo:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Combo:addParam("UseQ", "Use "..myHero:GetSpellData(_Q).name.." (Q)", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Combo:addParam("UseW", "Use "..myHero:GetSpellData(_W).name.." (W)", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Combo:addParam("UseE", "Use "..myHero:GetSpellData(_E).name.." (E)", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Combo:addParam("UseR", "Use "..myHero:GetSpellData(_R).name.." (R)", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Combo:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Combo:addParam("UseIgnite", "Start with Ignite", SCRIPT_PARAM_ONOFF, true)
Menu.Combo:addParam("ComboLogic", "Use Combo Helper", SCRIPT_PARAM_ONOFF, true)
Menu.Combo:addSubMenu("Team Fight Settings", "Ultimate")
Menu.Combo.Ultimate:addParam("SuportSilence", "Always Try Silence Support", SCRIPT_PARAM_ONOFF, true)
Menu.Combo.Ultimate:addParam("Qss", "Never Ultimate enemy with Qss", SCRIPT_PARAM_ONOFF, true)
Menu.Combo.Ultimate:addParam("Untargetable", "Don't R to Invulnerability", SCRIPT_PARAM_ONOFF, true)
--Menu.Combo:addParam("CheckInsideW", "Only Cast R above W", SCRIPT_PARAM_ONOFF, false)
--Menu.Combo:addParam("CheckifE", "Only Cast R if target have E", SCRIPT_PARAM_ONOFF, false)
Menu.Combo:addParam("ComboKey", "Team Fight Key", SCRIPT_PARAM_ONKEYDOWN, false, 32) --OK
--[[HARASS]]--
Menu:addSubMenu("Auto Harass System", "Harass")
Menu.Harass:addParam("HarassSystem", "Use Auto Harass System", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Harass:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Harass:addParam("AutoHarass", "Automatic Harass", SCRIPT_PARAM_ONOFF, true)
Menu.Harass:addParam("UseQ", "Use "..myHero:GetSpellData(_Q).name.." (Q)", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Harass:addParam("UseW", "Use "..myHero:GetSpellData(_W).name.." (W)", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Harass:addParam("UseE", "Use "..myHero:GetSpellData(_E).name.." (E)", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Harass:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Harass:addParam("ParaComManaBaixa", "Stop Cast if mana below %", SCRIPT_PARAM_SLICE, 40, 10, 80, 0) --OK
Menu.Harass:addParam("StopTurret", "Do not harass under turret", SCRIPT_PARAM_ONOFF, true)
Menu.Harass:addParam("HarassKey", "Manual Harass Key", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
--Menu.Harass:addParam("KSWithQ", "Try KS with Q", SCRIPT_PARAM_ONOFF, true)
--[[FARM]]--
Menu:addSubMenu("Farm Helper System", "Farmerr")
Menu.Farmerr:addParam("FarmerrSystem", "Use Farm System", SCRIPT_PARAM_ONOFF, true)
Menu.Farmerr:addParam("", "", SCRIPT_PARAM_INFO, "")
--Menu.Farmerr:addParam("FarmESkill", "Auto E to Farm", SCRIPT_PARAM_ONOFF, true)
Menu.Farmerr:addParam("LastHit", "Last Hit Key (experimental)", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("C"))
Menu.Farmerr:addParam("LastHitDelay", "Last Hit Delay", SCRIPT_PARAM_SLICE, 1000, -500, 3000, 1)
Menu.Farmerr:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Farmerr:addParam("JungleKey", "Jungle Key", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("V"))
Menu.Farmerr:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Farmerr:addParam("LaneClearKey", "Lane Clear Key", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
Menu.Farmerr:addSubMenu("More Farm Settings", "FarmSettings")
Menu.Farmerr.FarmSettings:addParam("Gota", "Use Tear of The Goddess mode", SCRIPT_PARAM_ONOFF, true)
Menu.Farmerr.FarmSettings:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Farmerr.FarmSettings:addParam("ArcaneON", "Use Arcana Blade Mastery", SCRIPT_PARAM_ONOFF, true)
Menu.Farmerr.FarmSettings:addParam("ButcherON", "Use Butcher Mastery", SCRIPT_PARAM_ONOFF, true)
Menu.Farmerr.FarmSettings:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Farmerr.FarmSettings:addParam("Steal", "Auto Jungle Steal with Q", SCRIPT_PARAM_ONOFF, true)
--[[ITEMS]]--
Menu:addSubMenu("Items Helper System", "Items")
Menu.Items:addParam("ItemsSystem", "Use Items Helper System", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Items:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Items:addParam("UseDfg", "Auto Deathfire Grasp with Combo", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Items:addParam("UseDfgR", "Deathfire Grasp only if R is ready", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Items:addParam("UseDfgRrange", "Deathfire Grasp only in R range", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Items:addParam("UseZhonia", "Auto Zhonias", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Items:addParam("ZhoniaPorcentagem", "Zhonias Missing Health %", SCRIPT_PARAM_SLICE, 20, 10, 80, -1) --OK
Menu.Items:addParam("UseSeraph", "Auto Seraph's Embrace", SCRIPT_PARAM_ONOFF, true)
Menu.Items:addParam("SeraphPorcentagem", "Seraph's Embrace Missing Health %", SCRIPT_PARAM_SLICE, 20, 10, 80, -1)
--Menu.Items:addParam("ZhoniaCC", "Use Zhonias if Hard CC", SCRIPT_PARAM_ONOFF, true)
Menu.Items:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Items:addParam("UseBarreira", "Auto Barrier", SCRIPT_PARAM_ONOFF, true)
Menu.Items:addParam("BarreiraPorcentagem", "Barrier Missing Health %", SCRIPT_PARAM_SLICE, 30, 10, 80, -1)
Menu.Items:addParam("AntiDoubleIgnite", "Anti Double Ignite", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Items:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Items:addParam("AutoHP", "Auto HP Potion", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Items:addParam("AutoHPPorcentagem", "Use HP Potion if health %", SCRIPT_PARAM_SLICE, 60, 20, 80, -1) --OK
Menu.Items:addParam("AutoMANA", "Auto Mana Potion", SCRIPT_PARAM_ONOFF, true)
Menu.Items:addParam("AutoMANAPorcentagem", "Use MANA Potion if mana %", SCRIPT_PARAM_SLICE, 30, 10, 80, -1)
--[[DRAW]]--
Menu:addSubMenu("Draw System", "Paint")
Menu.Paint:addParam("DrawSystem", "Use Draw System", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Paint:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Paint:addParam("PaintQ", "Draw "..myHero:GetSpellData(_Q).name.." (Q) Range", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Paint:addParam("PaintW", "Draw "..myHero:GetSpellData(_W).name.." (W) Range", SCRIPT_PARAM_ONOFF, false) --OK
Menu.Paint:addParam("PaintE", "Draw "..myHero:GetSpellData(_E).name.." (E) Range", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Paint:addParam("PaintR", "Draw "..myHero:GetSpellData(_R).name.." (R) Range", SCRIPT_PARAM_ONOFF, false) --OK
Menu.Paint:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Paint:addParam("PaintAA", "Draw Auto Attack Range", SCRIPT_PARAM_ONOFF, false) --OK
Menu.Paint:addParam("PaintMinion", "Minion Last Hit Indicator", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Paint:addParam("PaintTurrent", "Turret Last Hit Indicator", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Paint:addParam("PaintTurrentRange", "Enemy Turret Range", SCRIPT_PARAM_ONOFF, false) --OK
Menu.Paint:addParam("PaintMana", "Low Mana Indicator (Blue Circle)", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Paint:addParam("ManaCheck", "Draw Mana Advice Combo", SCRIPT_PARAM_ONOFF, true)
Menu.Paint:addParam("PaintPassive", "Passive Indicator (White Circle)", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Paint:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.Paint:addParam("PredInimigo", "Enemy Moviment Prediction", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Paint:addParam("PaintTarget", "Target Circle Indicator", SCRIPT_PARAM_ONOFF, true) --OK
Menu.Paint:addParam("EnemyDamage", "Current Damage to Target", SCRIPT_PARAM_ONOFF, true) --OK
--[[MISC]]--
Menu:addSubMenu("General System", "General")
Menu.General:addParam("LevelSkill", "Auto Level Skills R-E-W-Q", SCRIPT_PARAM_ONOFF, true) --OK
Menu.General:addParam("UseOrb", "Use Orbwalking", SCRIPT_PARAM_ONOFF, true) --OK
Menu.General:addParam("MoveToMouse", "Only Move to Mouse Position", SCRIPT_PARAM_ONOFF, false) --OK
Menu.General:addParam("", "", SCRIPT_PARAM_INFO, "")
Menu.General:addParam("UsePacket", "Use Packet to Cast", SCRIPT_PARAM_ONOFF, true) --OK
Menu.General:addParam("UseVPred", "Use VPredicion to Cast", SCRIPT_PARAM_ONOFF, true) --OK
--Menu.General:addParam("SelecionarAlvo", "Target Mode", SCRIPT_PARAM_SLICE, 1, 1, 2, 0)
Menu.General:addParam("AutoUpdate", "Auto Update Script On Start", SCRIPT_PARAM_ONOFF, true) --OK
Menu:permaShow("VersaoInfo")
Menu.Combo:permaShow("ComboKey")
Menu.Harass:permaShow("HarassKey")
Menu.Farmerr:permaShow("JungleKey")
Menu.Farmerr:permaShow("LaneClearKey")
Menu.Farmerr:permaShow("LastHit")
--[[SPELL SLOT CHECK]]--
if myHero:GetSpellData(SUMMONER_1).name:find(IgniteSpell.spellSlot) then IgniteSpell.iSlot = SUMMONER_1
elseif myHero:GetSpellData(SUMMONER_2).name:find(IgniteSpell.spellSlot) then IgniteSpell.iSlot = SUMMONER_2 end
if myHero:GetSpellData(SUMMONER_1).name:find(BarreiraSpell.spellSlot) then BarreiraSpell.bSlot = SUMMONER_1
elseif myHero:GetSpellData(SUMMONER_2).name:find(BarreiraSpell.spellSlot) then BarreiraSpell.bSlot = SUMMONER_2 end
--[[MMA/SAC Disable orbwalk]]--
if UsandoR then
if _G.MMA_Loaded then
myHero:HoldPosition()
_G.MMA_Orbwalker = false
--_G.MMA_HybridMode = false
--_G.MMA_LaneClear = false
_G.MMA_AbleToMove = false
_G.MMA_AttackAvailable = false
end
if _G.AutoCarry then
myHero:HoldPosition()
--_G.AutoCarry.Orbwalker = false
_G.AutoCarry.CanMove = false
_G.AutoCarry.CanAttack = false
end
else
if _G.MMA_Loaded then
_G.AutoCarry.CanMove = true
_G.AutoCarry.CanAttack = true
end
if _G.AutoCarry then
_G.AutoCarry.CanMove = true
_G.AutoCarry.CanAttack = true
end
end
--[[OTHERS]]--
Alvo = TargetSelector(TARGET_LESS_CAST_PRIORITY, AlZaharCalloftheVoid.range, DAMAGE_MAGIC, true)
Alvo.name = "Malzahar"
Menu:addTS(Alvo)
enemyHeroes = GetEnemyHeroes()
MinionsInimigos = minionManager(MINION_ENEMY, 1200, myHero, MINION_SORT_HEALTH_ASC)
JungleMinions = minionManager(MINION_JUNGLE, 900, myHero, MINION_SORT_MAXHEALTH_DEC)
wayPointManager = WayPointManager()
if heroManager.iCount < 10 then -- borrowed from Sidas Auto Carry, modified to 3v3
PrintChat(" >> Too few champions to arrange priority")
elseif heroManager.iCount == 6 and TTMAP then
ArrangeTTPriorities()
else
ArrangePriorities()
end
myTrueRange = myHero.range + GetDistance(myHero.minBBox)
VP = VPrediction()
PrintChat("-[ <font color='#000FFF'> -- Malzahar by Jus loaded !Good Luck! -- </font> ]-")
end
--[[SKILLS]]--
function CastQ()
if EncontrarAlvoQ() ~= nil and not UsandoR and GetDistance(EncontrarAlvoQ()) <= AlZaharCalloftheVoid.range then
if myHero:CanUseSpell(AlZaharCalloftheVoid.spellSlot) == READY then
if Menu.General.UseVPred then
local CastPosition, HitChance, Position = VP:GetCircularCastPosition(EncontrarAlvoQ(), (AlZaharCalloftheVoid.delay + 200)/1600, AlZaharCalloftheVoid.width, AlZaharCalloftheVoid.range, math.huge, myHero, false)
--local CastPoint = Vector(CastPosition) + (200*(Vector(CastPosition) - Vector(myHero))/1600):normalized()
if HitChance >= 2 then
--PrintChat("Vector:"..tostring(CastPoint))
--PrintChat("VPrediction:"..tostring(CastPosition))
CastSpell(AlZaharCalloftheVoid.spellSlot, CastPosition.x, CastPosition.z)
end
elseif not Menu.General.UsePacket and not Menu.General.UseVPred then
CastSpell(AlZaharCalloftheVoid.spellSlot, EncontrarAlvoQ().x, EncontrarAlvoQ().z)
end
end
end
end
function CastQTear()
if GetInventorySlotItem(3070) ~= nil then
for i, Minion in pairs(MinionsInimigos.objects) do
if Minion ~= nil and not Minion.dead and ValidTarget(Minion, AlZaharCalloftheVoid.range) and myHero:CanUseSpell(AlZaharCalloftheVoid.spellSlot) == READY then
CastSpell(AlZaharCalloftheVoid.spellSlot, Minion.x, Minion.z)
end
end
end
end
function CastW()
if MeuAlvo ~= nil and not UsandoR and GetDistance(MeuAlvo) <= AlZaharNullZone.range then
if myHero:CanUseSpell(AlZaharNullZone.spellSlot) == READY then
if Menu.General.UseVPred then
local AOECastPosition, MainTargetHitChance, nTargets = VP:GetCircularAOECastPosition(MeuAlvo, AlZaharNullZone.delay, AlZaharNullZone.width, AlZaharNullZone.range, math.huge, myHero)
if CountEnemyHeroInRange(AlZaharNullZone.range, myHero) >= 3 then
if MainTargetHitChance >= 1 then
CastSpell(AlZaharNullZone.spellSlot, AOECastPosition.x , AOECastPosition.z)
end
end
if CountEnemyHeroInRange(AlZaharNullZone.range, myHero) < 3 then
if MainTargetHitChance >= 2 then
CastSpell(AlZaharNullZone.spellSlot, AOECastPosition.x , AOECastPosition.z)
end
end
else CastSpell(AlZaharNullZone.spellSlot, MeuAlvo.x, MeuAlvo.z)
end
end
end
end
function CastWTear()
if GetInventorySlotItem(3070) ~= nil then
for i, Minion in pairs(MinionsInimigos.objects) do
if Minion ~= nil and not Minion.dead and ValidTarget(Minion, AlZaharNullZone.range) and myHero:CanUseSpell(AlZaharNullZone.spellSlot) == READY then
CastSpell(AlZaharNullZone.spellSlot, Minion.x, Minion.z)
end
end
end
end
function CastE()
if MeuAlvo ~= nil and not UsandoR and GetDistance(MeuAlvo) <= AlZaharMaleficVision.range then
if myHero:CanUseSpell(AlZaharMaleficVision.spellSlot) == READY then
if Menu.General.UsePacket then
Packet('S_CAST', { spellId = AlZaharMaleficVision.spellSlot, targetNetworkId = MeuAlvo.networkID }):send()
else
CastSpell(AlZaharMaleficVision.spellSlot, MeuAlvo)
end
end
end
end
function CastR()
if TemImunidade(MeuAlvo) or TemQss() then return end
if MeuAlvo ~= nil and GetDistance(MeuAlvo) <= AlZaharNetherGrasp.range then
if myHero:CanUseSpell(AlZaharNetherGrasp.spellSlot) == READY then
if Menu.General.UsePacket then
Packet('S_CAST', { spellId = AlZaharNetherGrasp.spellSlot, targetNetworkId = MeuAlvo.networkID }):send()
else
CastSpell(AlZaharMaleficVision.spellSlot, MeuAlvo)
end
end
end
end
function JungleFarm()
JungleMinions:update()
if Menu.Farmerr.JungleKey then
for i, MinionJ in pairs(JungleMinions.objects) do
if MinionJ ~= nil then
if CountEnemyHeroInRange(AlZaharCalloftheVoid.range, myHero) == 0 then
_OrbWalk(MinionJ)
if myHero:CanUseSpell(AlZaharCalloftheVoid.spellSlot) == READY then
CastSpell(AlZaharCalloftheVoid.spellSlot, MinionJ.x, MinionJ.z)
end
if myHero:CanUseSpell(AlZaharNullZone.spellSlot) == READY then
CastSpell(AlZaharNullZone.spellSlot, MinionJ.x, MinionJ.z)
end
if myHero:CanUseSpell(AlZaharMaleficVision.spellSlot) == READY then
CastSpell(AlZaharMaleficVision.spellSlot, MinionJ)
end
end
end
end
end
end
function LaneClear()
MinionsInimigos:update()
if Menu.Farmerr.LaneClearKey then
for i, MinionJ in pairs(MinionsInimigos.objects) do
if MinionJ ~= nil then
_OrbWalk(MinionJ.target)
if myHero:CanUseSpell(AlZaharCalloftheVoid.spellSlot) == READY then
CastSpell(AlZaharCalloftheVoid.spellSlot, MinionJ.x, MinionJ.z)
end
if myHero:CanUseSpell(AlZaharNullZone.spellSlot) == READY then
CastSpell(AlZaharNullZone.spellSlot, MinionJ.x, MinionJ.z)
end
if myHero:CanUseSpell(AlZaharMaleficVision.spellSlot) == READY then
CastSpell(AlZaharMaleficVision.spellSlot, MinionJ)
end
end
end
end
end
function CastCombo()
if Menu.Combo.ComboKey then
if Menu.General.UseOrb then _OrbWalk(MeuAlvo) end
if Menu.Items.ItemsSystem then
if Menu.Combo.UseIgnite and not UsandoR then CastIgnite() end
if Menu.Items.UseDfg then CastDFG() end
end
if Menu.Combo.ComboLogic and not GetBestCombo() then
--PrintChat("Normal Combo")
if Menu.Combo.UseQ then CastQ() end
if Menu.Combo.UseW then CastW() end
if Menu.Combo.UseE then CastE() end
if Menu.Combo.UseR then
if Menu.Combo.UseQ and Menu.Combo.UseW and Menu.Combo.UseE then
if not myHero:CanUseSpell(AlZaharCalloftheVoid.spellSlot) ~= READY and
myHero:CanUseSpell(AlZaharNullZone.spellSlot) ~= READY and
myHero:CanUseSpell(AlZaharMaleficVision.spellSlot) ~= READY then
CastR()
end
end
if Menu.Combo.UseW and Menu.Combo.UseE and not Menu.Combo.UseQ then
if myHero:CanUseSpell(AlZaharNullZone.spellSlot) ~= READY and myHero:CanUseSpell(AlZaharMaleficVision.spellSlot) ~= READY then
CastR()
end
end
if Menu.Combo.UseW and not Menu.Combo.UseQ and not Menu.Combo.UseE then
if myHero:CanUseSpell(AlZaharNullZone.spellSlot) ~= READY then CastR() end
end
if Menu.Combo.UseE and not Menu.Combo.UseQ and not Menu.Combo.UseW then
if myHero:CanUseSpell(AlZaharMaleficVision.spellSlot) ~= READY then CastR() end
end
if Menu.Combo.UseQ and not Menu.Combo.UseW and not Menu.Combo.UseE then
if myHero:CanUseSpell(AlZaharCalloftheVoid.spellSlot) ~= READY then myHero:HoldPosition() CastR() end
end
end
end
end
end
function GetBestCombo()
local spelllist ={ }
if MeuAlvo ~= nil then
if myHero:CanUseSpell(AlZaharCalloftheVoid.spellSlot) == READY then table.insert(spelllist, "Q") end
if myHero:CanUseSpell(AlZaharNullZone.spellSlot) == READY then table.insert(spelllist, "W") end
if myHero:CanUseSpell(AlZaharMaleficVision.spellSlot) == READY then table.insert(spelllist, "E") end
if myHero:CanUseSpell(AlZaharNetherGrasp.spellSlot) == READY then table.insert(spelllist, "R") end
local TotalDamage = 0
for a, ListSpell in pairs(spelllist) do
TotalDamage = TotalDamage + getDmg(ListSpell, MeuAlvo, myHero)
end
if MeuAlvo.health <= TotalDamage then
for b, ListCombo in pairs(spelllist) do
if ListCombo == "Q" then
CastQ()
end
if ListCombo == "W" then
CastW()
end
if ListCombo == "E" then
CastE()
end
if ListCombo == "R" then
myHero:HoldPosition()
CastR()
end
end
else
return false
end
end
end
function GetBestComboText()
local spelllist ={ }
if MeuAlvo ~= nil then
if myHero:CanUseSpell(AlZaharCalloftheVoid.spellSlot) == READY then table.insert(spelllist, "Q") end
if myHero:CanUseSpell(AlZaharNullZone.spellSlot) == READY then table.insert(spelllist, "W") end
if myHero:CanUseSpell(AlZaharMaleficVision.spellSlot) == READY then table.insert(spelllist, "E") end
if myHero:CanUseSpell(AlZaharNetherGrasp.spellSlot) == READY then table.insert(spelllist, "R") end
local TotalDamage = 0
for a, ListSpell in pairs(spelllist) do
TotalDamage = TotalDamage + getDmg(ListSpell, MeuAlvo, myHero)
end
if MeuAlvo.health >= TotalDamage then
--table.concat(spelllist, "+")
return "Not killable"
else
return "Killable"
end
end
end
function CastHarass()
if usandoR then return end
if Menu.Harass.StopTurret and UnderTurret(myHero, true) then return end
if Menu.Harass.UseQ then CastQ() end
if Menu.Harass.UseW then CastW() end
if Menu.Harass.UseE then CastE() end
end
--[[SKILLS END]]--
--[[SPELLS]]--
function CastIgnite()
if IgniteSpell.iSlot ~= nil and myHero:CanUseSpell(IgniteSpell.iSlot) == READY and MeuAlvo ~= nil and GetDistance(MeuAlvo) < IgniteSpell.range then
if Menu.Items.AntiDoubleIgnite and TargetHaveBuff("SummonerDot", MeuAlvo) then return end
if Menu.Items.AntiDoubleIgnite and not TargetHaveBuff("SummonerDot", MeuAlvo) then
if Menu.General.UsePacket then
Packet('S_CAST', { spellId = IgniteSpell.iSlot, targetNetworkId = MeuAlvo.networkID }):send()
else
CastSpell(IgniteSpell.iSlot, MeuAlvo)
end
else
if Menu.General.UsePacket then
Packet('S_CAST', { spellId = IgniteSpell.iSlot, targetNetworkId = MeuAlvo.networkID }):send()
else
CastSpell(IgniteSpell.iSlot, MeuAlvo)
end
end
end
end
function CastDFG()
if Menu.Items.UseDfgR and not myHero:CanUseSpell(AlZaharNetherGrasp.spellSlot) == READY then return end
--if Alvo.target ~= nil and Menu.Items.UseDfgRrange and not GetDistance(Alvo.target) <= AlZaharNetherGrasp.range then return end
if MeuAlvo ~= nil then
if Menu.Items.UseDfgRrange and GetDistance(MeuAlvo) > AlZaharNetherGrasp.range then return end
if DFG.slot ~= nil and myHero:CanUseSpell(DFG.slot) == READY and not UsandoR then
if Menu.General.UsePacket then
Packet('S_CAST', { spellId = DFG.slot, targetNetworkId = MeuAlvo.networkID }):send()
else
CastSpell(DFG.slot, MeuAlvo)
end
end
end
end
function CastZhonia()
local VidaParaUsarZhonia = myHero.maxHealth * (Menu.Items.ZhoniaPorcentagem / 100)
if myHero.health <= VidaParaUsarZhonia and ZHONIA.slot ~= nil and myHero:CanUseSpell(ZHONIA.slot) == READY and not UsandoR then
if Menu.General.UsePacket then
Packet('S_CAST', { spellId = ZHONIA.slot, targetNetworkId = myHero.networkID }):send()
else
CastSpell(ZHONIA.slot)
end
--[[
else
if Menu.Items.ZhoniaCC and RecebeuCC then
if Menu.General.UsePacket then
Packet('S_CAST', { spellId = ZHONIA.slot, targetNetworkId = myHero.networkID }):send()
else
CastSpell(ZHONIA.slot)
end
end
]]--
end
end
function CastBarreira()
local VidaParaUsarBarreira = (myHero.maxHealth * (Menu.Items.BarreiraPorcentagem / 100))
if BarreiraSpell.bSlot ~= nil and myHero:CanUseSpell(BarreiraSpell.bSlot) == READY and not InFountain() then
if myHero.health <= VidaParaUsarBarreira then
CastSpell(BarreiraSpell.bSlot)
end
end
end
function CastHPPotion()
local VidaParaUsarPotionHP = (myHero.maxHealth * ( Menu.Items.AutoHPPorcentagem / 100))
if Hppotion.slot ~= nil and myHero:CanUseSpell(Hppotion.slot) == READY and not UsandoHP and not InFountain() then
if myHero.health <= VidaParaUsarPotionHP then
CastSpell(Hppotion.slot)
end
end
end
function CastManaPotion()
local ManaParaUsarPotion = (myHero.maxMana * ( Menu.Items.AutoMANAPorcentagem / 100))
if Manapotion.slot ~= nil and myHero:CanUseSpell(Manapotion.slot) == READY and not UsandoMana and not InFountain() then
if myHero.mana <= ManaParaUsarPotion then
CastSpell(Manapotion.slot)
end
end
end
function CastSeraph()
local VidaParaUsarSeraph = (myHero.maxHealth * ( Menu.Items.SeraphPorcentagem / 100))
if Seraph.slot ~= nil and myHero:CanUseSpell(Seraph.slot) == READY and not InFountain() then
if myHero.health <= VidaParaUsarSeraph then
CastSpell(Seraph.slot)
end
end
end
--[[END]]--
--[[OTHER]]--
function AutoSkillLevel()
if myHero:GetSpellData(_Q).level + myHero:GetSpellData(_W).level + myHero:GetSpellData(_E).level + myHero:GetSpellData(_R).level < myHero.level then
local spellSlot = { SPELL_1, SPELL_2, SPELL_3, SPELL_4, }
local level = { 0, 0, 0, 0 }
for i = 1, myHero.level, 1 do
level[SequenciaHabilidades1[i]] = level[SequenciaHabilidades1[i]] + 1
end
for i, v in ipairs({ myHero:GetSpellData(_Q).level, myHero:GetSpellData(_W).level, myHero:GetSpellData(_E).level, myHero:GetSpellData(_R).level }) do
if v < level[i] then LevelSpell(spellSlot[i]) end
end
end
end
--[[END]]--
function AtualizaItems()
--[[ITEMS]]--
DFG.slot = GetInventorySlotItem(DFG.id)
ZHONIA.slot = GetInventorySlotItem(ZHONIA.id)
Seraph.slot = GetInventorySlotItem(Seraph.id)
Hppotion.slot = GetInventorySlotItem(Hppotion.id)
Manapotion.slot = GetInventorySlotItem(Manapotion.id)
MinionsInimigos:update()
--if MeuAlvoSelecionado == false then MeuAlvo = Alvo.target else MeuAlvo = EsteAlvo end
MeuAlvo = GetCustomTarget()
if UsandoR then
if _G.MMA_Loaded then
myHero:HoldPosition()
--_G.MMA_Orbwalker = false
--_G.MMA_HybridMode = false
--_G.MMA_LaneClear = false
_G.MMA_AbleToMove = false
_G.MMA_AttackAvailable = false
end
if _G.AutoCarry then
myHero:HoldPosition()
--_G.AutoCarry.Orbwalker = false
_G.AutoCarry.CanMove = false
_G.AutoCarry.CanAttack = false
end
else
if _G.MMA_Loaded then
_G.AutoCarry.CanMove = true
_G.AutoCarry.CanAttack = true
end
if _G.AutoCarry then
_G.AutoCarry.CanMove = true
_G.AutoCarry.CanAttack = true
end
end
end
function GetCustomTarget()
Alvo:update()
if _G.MMA_Target and _G.MMA_Target.type == myHero.type then return _G.MMA_Target end
if _G.AutoCarry and _G.AutoCarry.Crosshair and _G.AutoCarry.Attack_Crosshair and _G.AutoCarry.Attack_Crosshair.target and _G.AutoCarry.Attack_Crosshair.target.type == myHero.type then return _G.AutoCarry.Attack_Crosshair.target end
return Alvo.target
end
--End Credit Trees
--[[SPELLS END]]--
function OnTick()
if Menu.LigarScript and not myHero.dead then
AtualizaItems()
Alvo:update()
MeuAlvo = GetCustomTarget()
--if Menu.General.UseOrb then Menu.General.MoveToMouse = false end
--if Menu.General.MoveToMouse then Menu.General.UseOrb = false end
--if Menu.Paint.EnemyDamage then MeuDano() end
if Menu.Combo.ComboSystem then
CastCombo()
end
if Menu.Harass.HarassSystem then
if Menu.Harass.AutoHarass and ((myHero.mana / myHero.maxMana * 100)) >= Menu.Harass.ParaComManaBaixa and not UsandoR and not UsandoRecall and not Menu.Harass.HarassKey then
CastHarass()
else
if Menu.Harass.HarassKey and ((myHero.mana / myHero.maxMana * 100)) >= Menu.Harass.ParaComManaBaixa and not Menu.Harass.AutoHarass and not UsandoR and not UsandoRecall then
CastHarass()
end
end
end
if Menu.Items.ItemsSystem then
if Menu.Items.UseBarreira then CastBarreira() end
if Menu.Items.AutoHP then CastHPPotion() end
if Menu.Items.AutoMANA then CastManaPotion() end
if Menu.Items.UseZhonia then CastZhonia() end
if Menu.Items.UseSeraph then CastSeraph() end
end
if Menu.Farmerr.FarmerrSystem and not UsandoR then
if Menu.Farmerr.LastHit then
LastHitLikeBoss()
end
if Menu.Farmerr.FarmSettings.Gota then
CastQTear()
CastWTear()
end
if Menu.Farmerr.JungleKey then
JungleFarm()
end
if Menu.Farmerr.FarmSettings.Steal then
RoubarJungle()
end
if Menu.Farmerr.LaneClearKey then
LaneClear()
end
end
if Menu.General.LevelSkill then
AutoSkillLevel()
end
end
if UsandoR then
if _G.MMA_Loaded then
myHero:HoldPosition()
_G.MMA_Orbwalker = false
--_G.MMA_HybridMode = false
--_G.MMA_LaneClear = false
_G.MMA_AbleToMove = false
_G.MMA_AttackAvailable = false
end
if _G.AutoCarry then
myHero:HoldPosition()
--_G.AutoCarry.Orbwalker = false
_G.AutoCarry.CanMove = false
_G.AutoCarry.CanAttack = false
end
else
if _G.MMA_Loaded then
_G.AutoCarry.CanMove = true
_G.AutoCarry.CanAttack = true
end
if _G.AutoCarry then
_G.AutoCarry.CanMove = true
_G.AutoCarry.CanAttack = true
end
end
end
function OnSendPacket(packet)
if UsandoR then
local myPacket = Packet(p)
if myPacket:get('S_CAST') or myPacket:get('S_MOVE') then
myPacket:Block()
end
end
end
-- if UsandoR then
-- if packet.header == 113 then
-- local aux = packet.DecodeF(packet)
-- local type = packet.Decode1(packet)
-- if type == 5 or type == 2 or type == 3 or type == 7 and TargetHaveBuff("alzaharnethergraspsound", MeuAlvo) or TargetHaveBuff("AlzaharNetherGrasp", MeuAlvo) then
-- --if (not (SpellData.Q.ready and SpellData.E.ready and SpellData.R.ready)) then
-- packet:Block()
-- -- end
-- end
-- end
-- end
-- end
--[[target]]
--[[
function OnWndMsg(Msg, Key)
if Msg == WM_LBUTTONDOWN then
Alvo:update()
for i, Alvos_ in ipairs(GetEnemyHeroes()) do
if ValidTarget(Alvos_) and GetDistance(Alvos_) <= AlZaharCalloftheVoid.range + 200 then
EsteAlvo = Alvos_
PrintChat("<font color=\"#FF0000\">Target selected:"..EsteAlvo.charName.."</font>")
MeuAlvoSelecionado = true
end
end
else
if EsteAlvo == nil then
EsteAlvo = Alvo.target
MeuAlvoSelecionado = false
end
end
end
]]
--[[ULTIMATE/BUFFS CONTROL]]--
function OnGainBuff(unit, buff)
if unit.isMe then
--rintChat(tostring(buff.name))
if buff.name:lower():find("alzaharnethergraspsound") then
UsandoR = true
--PrintChat("GAIN BUFF: Usando Ultimate")
end
if buff.name:lower():find("regenerationpotion") then
UsandoHP = true
end
if buff.name:lower():find("flaskofcrystalwater") then
UsandoMana = true
end
if buff.name:lower():find("alzaharsummonvoidling") then
TemVoid = true
end
if buff.name:lower():find("recall") then
UsandoRecall = true
end
end
end
function OnLoseBuff(unit, buff)
if unit.isMe then
--PrintChat(tostring(buff.name))
if buff.name:lower():find("alzaharnethergraspsound") then
UsandoR = false
--PrintChat("LOSE BUFF: NAO Usando Ultimate")
end
if buff.name:lower():find("regenerationpotion") then
UsandoHP = false
end
if buff.name:lower():find("flaskofcrystalwater") then
UsandoMana = false
end
--if buff.type == 5 or 7 or 19 or 21 or 24 then
-- RecebeuCC = false
--end
if buff.name:lower():find("alzaharsummonvoidling") then
TemVoid = false
end
if buff.name:lower():find("recall") then
UsandoRecall = false
end
end
end
--[[
function OnCreateObj(obj)
if obj.name == "AlzaharNetherGrasp_tar.troy" then
UsandoR = true
end
end
function OnDeleteObj(obj)
if obj.name == "AlzaharNetherGrasp_tar.troy" then
UsandoR = false
end
end
]]
--[[END]]--
--[[MY TARGET SELECTOR]]--
--[[
function MelhorAlvo(Range) --ADICIONAR DELAY
local DanoParaMatar = 100
local Alvo = nil
if Menu.General.SelecionarAlvo == 1 then --less_cast
for i, enemy in ipairs(GetEnemyHeroes()) do
if ValidTarget(enemy, Range) then
local DanoNoInimigo = myHero:CalcMagicDamage(enemy, 200)
local ParaMatar = enemy.health / DanoNoInimigo
if ParaMatar < DanoParaMatar then
Alvo = enemy
end
end
end
end
if Menu.General.SelecionarAlvo == 2 then --low_HP
for i, enemy in ipairs(GetEnemyHeroes()) do
if ValidTarget(enemy, Range) then
local DanoNoInimigo = myHero:CalcMagicDamage(enemy, 200)
local ParaMatar = enemy.health / enemy.health - DanoNoInimigo
if ParaMatar < DanoParaMatar then
Alvo = enemy
end
end
end
end
return Alvo
end
]]
--[[ORBWALK]]--
function OnProcessSpell(object, spell)
if object == myHero then
if spell.name:lower():find("attack") then
lastAttack = GetTickCount() - GetLatency() / 2
lastWindUpTime = spell.windUpTime * 1000
lastAttackCD = spell.animationTime * 1000
end
-- if spell.name:find("AlZaharNetherGrasp") then
-- UsandoR = true
-- --PrintChat("PROCESS SPEL: Usando Ultimate = true")
-- end
end
end
function _OrbWalk(MeuAlvo)
if UsandoR then return end
if MeuAlvo ~= nil and GetDistance(MeuAlvo) <= myTrueRange then
if timeToShoot() then
myHero:Attack(MeuAlvo)
elseif heroCanMove() then
moveToCursor()
end
else
moveToCursor()
end
end
function heroCanMove()
return ( GetTickCount() + GetLatency() / 2 > lastAttack + lastWindUpTime + 20 )
end
function timeToShoot()
return ( GetTickCount() + GetLatency() / 2 > lastAttack + lastAttackCD )
end
function moveToCursor()
if GetDistance(mousePos) > 1 or lastAnimation == "Idle1" then
local moveToPos = myHero + (Vector(mousePos) - myHero):normalized() * 260
myHero:MoveTo(moveToPos.x, moveToPos.z)
end
end
--[[ORBWALK END]]--
--[[Credits to barasia, vadash and viseversa for anti-lag circles]]--
function DrawCircleNextLvl(x, y, z, radius, width, color, chordlength)
radius = radius or 300
quality = math.max(8,math.floor(180/math.deg((math.asin((chordlength/(2*radius)))))))
quality = 2 * math.pi / quality
radius = radius*.92
local points = {}
for theta = 0, 2 * math.pi + quality, quality do
local c = WorldToScreen(D3DXVECTOR3(x + radius * math.cos(theta), y, z - radius * math.sin(theta)))
points[#points + 1] = D3DXVECTOR2(c.x, c.y)
end
DrawLines2(points, width or 1, color or 4294967295)
end
function DrawCircle2(x, y, z, radius, color)
local vPos1 = Vector(x, y, z)
local vPos2 = Vector(cameraPos.x, cameraPos.y, cameraPos.z)
local tPos = vPos1 - (vPos1 - vPos2):normalized() * radius
local sPos = WorldToScreen(D3DXVECTOR3(tPos.x, tPos.y, tPos.z))
if OnScreen({ x = sPos.x, y = sPos.y }, { x = sPos.x, y = sPos.y }) then
DrawCircleNextLvl(x, y, z, radius, 1, color, 75)
end
end
--[[END]]--
--[[DRAW]]--
function OnDraw()
if myHero.dead or not Menu.Paint.DrawSystem then return end
if Menu.Paint.PaintQ then
DrawCircle2(myHero.x, myHero.y, myHero.z, AlZaharCalloftheVoid.range, ARGB(255, 255, 000, 000))
end
if Menu.Paint.PaintW then
DrawCircle2(myHero.x, myHero.y, myHero.z, AlZaharNullZone.range, ARGB(255, 000, 000, 255))
end
if Menu.Paint.PaintE then
DrawCircle2(myHero.x, myHero.y, myHero.z, AlZaharMaleficVision.range, ARGB(255, 000, 255, 000))
end
if Menu.Paint.PaintR then
DrawCircle2(myHero.x, myHero.y, myHero.z, AlZaharNetherGrasp.range, ARGB(255, 255, 255, 000))
end
if Menu.Paint.PaintFlash then
DrawCircle2(myHero.x, myHero.y, myHero.z, IgniteSpell.range, ARGB(255, 000, 000, 255))
end
if Menu.Paint.PaintAA then
DrawCircle2(myHero.x, myHero.y, myHero.z, 550, ARGB(255,255,255,255))
end
if Menu.Paint.EnemyDamage then
if MeuAlvo ~= nil then
DrawText3D(tostring(GetBestComboText()), MeuAlvo.x, MeuAlvo.y, MeuAlvo.z, 16, ARGB(255,255,255,000), true)
DrawText3D(MeuDano(), myHero.x, myHero.y + 100, myHero.z, 16, ARGB(255,255,000,000), true)
end
end
if Menu.Paint.PaintMinion then
MinionsInimigos:update()
if MinionsInimigos ~= nil then
local DamageArcane1 = myHero.ap * 0.05
local DamageButcher1 = 2
local MasteryDamage1 = 0
if Menu.Farmerr.FarmSettings.ArcaneON then
MasteryDamage1 = MasteryDamage1 + DamageArcane1
end
if Menu.Farmerr.FarmSettings.ButcherON then
MasteryDamage1 = MasteryDamage1 + DamageButcher1
end
for i, Minion in pairs(MinionsInimigos.objects) do
if Minion ~= nil and not Minion.dead then
if ValidTarget(Minion, 1200) and Minion.health <= getDmg("AD", Minion, myHero) + MasteryDamage1 then
DrawCircle2(Minion.pos.x, Minion.pos.y, Minion.pos.z, 85, ARGB(255, 255, 255, 000))
end
end
end
end
end
if Menu.Paint.PaintTurrent then
local turrets = GetTurrets();
local targetTurret = nil;
local hitsToTurret = 0;
for i, turret in pairs(turrets) do
if turret ~= nil and turret.team ~= myHero.team then
targetTurret = turret.object
hitsToTurret = Arredondar(turret.object.health / getDmg("AD", targetTurret, myHero))
if hitsToTurret ~= 0 then
local pos= WorldToScreen(D3DXVECTOR3(targetTurret.x, targetTurret.y, targetTurret.z))
local posX = pos.x - 35
local posY = pos.y - 50
DrawText("AA Hits: "..hitsToTurret + 1,15,posX ,posY ,ARGB(255,0,255,0))
if Menu.Paint.PaintTurrentRange then
DrawCircle2(targetTurret.x, targetTurret.y, targetTurret.z, 930, ARGB(255,0,255,0))
end
end
end
end
end