View difference between Paste ID: ZYk4WkuT and QiUHgMjt
SHOW: | | - or go back to the newest paste.
1
--[[
2
         _____                  ___           ___      _   _            _    
3
        |_   _|__ __ _ _ __    / _ \ _ _  ___| _ )_  _| |_| |_ ___ _ _ ( )___
4
          | |/ -_) _` | '  \  | (_) | ' \/ -_) _ \ || |  _|  _/ _ \ ' \|/(_-<
5
          |_|\___\__,_|_|_|_|  \___/|_||_\___|___/\_,_|\__|\__\___/_||_| /__/
6
   _   _ _ ___      ___              ___ _                      ___         _      _   
7
  /_\ | | |_ _|_ _ / _ \ _ _  ___   / __| |_  __ _ _ __  _ __  / __| __ _ _(_)_ __| |_ 
8
 / _ \| | || || ' \ (_) | ' \/ -_) | (__| ' \/ _` | '  \| '_ \ \__ \/ _| '_| | '_ \  _|
9
/_/ \_\_|_|___|_||_\___/|_||_\___|  \___|_||_\__,_|_|_|_| .__/ |___/\__|_| |_| .__/\__|
10
                                                        |_|                  |_|       
11
--]]
12
13
--Currently Supported Champions are - 
14
--Akali
15
--Brand
16
--Diana
17
--Dr Mundo
18
--Graves
19
--Kayle
20
--Pantheon
21
--Rengar
22
--Shen Credits: IPJ
23
--Talon
24
--Tristana
25
--Volibear
26
--Xerath
27
--Yorick Credits: IPJ
28
29
--Config Settings
30
31
--Mundo
32
local MundoTooLow = 15
33
-- tooLow is the point at which it will stop casting spells
34
local MundoUltHP = 30
35
--MundoUltHP is the percent of hp that it will cast it's ULT
36
local MundoWToggled = false
37
38
--Kayle
39
local healPlease = 80
40
--% HP that Kayle will Auto heal herself
41
local ultiPlease = 20
42
--% HP that Kayle will auto Ult herself
43
44
--Shen
45
--Utilizes auto-shielding pro-sauce.
46
local saveMeee = 20
47
--% HP you will ulti to allies.
48
49
--Yorick
50
--Utilizes auto-respawning pro-sauce.
51
local ghoulmeh = 15
52
--% HP you will ulti to allies.
53
																							
54
require "Utils" 
55
56
printtext("\nTeam OneButton's AllInOne Script\n")
57
58
local myHero = GetSelf()	
59
local iHero = GetSelf()	
60
local target  
61
local doAttack = false  
62
local toggle_timer=os.clock()
63
local script_loaded=0
64
local wUsedAt = 0
65
local waUsedAt = 0
66
local vUsedAt = 0
67
local timer=os.clock()
68
local bluePill = nil
69
70
if myHero.name == "Akali" then
71
	function OnTick()
72
	AkaliDraw()
73
	DrawText("Team OneButton's Akali", 105, 25, Color.Green)						
74
	target = GetWeakEnemy('MAGIC',800,"NEARMOUSE")
75
		if AIOConfig.AkaliCombo then	
76
		if target == nil then
77
			MoveToMouse() 	
78
	    end			
79
			if target ~= nil then	
80
				DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
81
				CustomCircle(100,5,2,target)
82
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
83
				UtilityFunction()
84
				AttackTarget(target)
85
					if GetDistance(myHero, target) < 600 then 	
86
						AkaliQ(target)
87
					end		
88
					if GetDistance(myHero, target) < 800 then	
89
						AkaliR(target)
90
					end	
91
					if GetDistance(myHero, target) < 325 then 	
92
						AkaliE(target)
93
					end	
94
			end
95
		end		
96
	end
97
end
98
99
if myHero.name == "Brand" then
100
	local targetbuff = 0
101
	function OnTick()
102
		BrandDraw()
103
		DrawText("Team OneButton's Brand", 105, 25, Color.Green)					
104
		target = GetWeakEnemy('MAGIC',900,"NEARMOUSE")
105
		if AIOConfig.BrandCombo then 
106
			if target == nil then
107
				MoveToMouse() 	
108
			end			
109
			if target ~= nil then	
110
				DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
111
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
112
				UtilityFunction()
113
				BrandE(target)
114
				BrandW(target)
115
				BrandQ(target)
116
				BrandR(target)
117
				AttackTarget(target)
118
			end
119
		end	
120
		if AIOConfig.BrandHarass then 
121
			if target == nil then
122
				MoveToMouse() 	
123
			end			
124
			if target ~= nil then	
125
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
126
				UtilityFunction()
127
				BrandE(target)
128
				BrandW(target)
129
				BrandQ(target)
130
				AttackTarget(target)
131
			end
132
		end	
133
	end
134
end
135
136
if myHero.name == "Diana" then
137
	function OnTick()
138
	local Moonlight = 0
139
	DianaDraw()
140
	DrawText("xXGeminiXx's OneButton Diana", 105, 25, Color.Green)
141
	target = GetWeakEnemy('MAGIC',830,"NEARMOUSE")  
142
		if AIOConfig.DianaCombo then		
143
			if target == nil then
144
				MoveToMouse() 	
145
			end		
146
			if target ~= nil then
147
				DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
148
				CustomCircle(100,5,2,target)
149
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
150
				UtilityFunction()
151
				DianaQ(target) 
152
				DianaW(target)
153
				DianaE(target)
154
				DianaR(target)
155
				AttackTarget(target)
156
			end
157
		end
158
		if AIOConfig.DianaHarass then		
159
			if target == nil then
160
				MoveToMouse() 	
161
			end		
162
			if target ~= nil then
163
				CustomCircle(100,5,2,target)
164
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
165
				UtilityFunction()
166
				DianaQ(target) 
167
				AttackTarget(target)
168
			end
169
		end
170
	end
171
end
172
173
if myHero.name == "DrMundo" then
174
	function OnTick()
175
	local percent = ((myHero.health / myHero.maxHealth)*100)
176
	MundoDraw()	
177
	DrawText("Team OneButton's Mundo", 105, 25, Color.Green)
178
	--DrawText("HP" .. percent, 105, 50, Color.Red)						
179
	target = GetWeakEnemy('MAGIC',1000,"NEARMOUSE")
180
		if AIOConfig.MundoCombo then 
181
			if target == nil then
182
				MoveToMouse() 	
183
			end			
184
			if target ~= nil then	
185
				DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
186
				CustomCircle(100,5,2,target)
187
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
188
				AttackTarget(target)
189
				UtilityFunction()
190
					if percent >= MundoTooLow then
191
						MundoQ(target) 
192
						MundoW(target) 
193
						MundoE(target) 
194
						else
195
						DrawText("HP BELOW " .. MundoTooLow .. "%", 165, 80, Color.Red)
196
						end
197
			else
198
				MundoWToggled = false
199
			end 
200
		end
201
		if percent <= MundoUltHP then
202
			MundoR(target)
203
		end	
204
	end
205
end
206
207
if myHero.name == "Graves" then
208
	function OnTick()
209
	DrawText("Boom headshot!", 105, 25, Color.Green) 		
210
	GravesDraw()	
211
	target = GetWeakEnemy('PHYS',900,"NEARMOUSE")
212
		if AIOConfig.GravesCombo then	
213
			if target == nil then
214
				MoveToMouse() 	
215
			end		
216
			if target ~= nil then			
217
				DrawSphere(50,25,3,target.x,target.y+300,target.z)			
218
				DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
219
				UtilityFunction()
220
				end
221
				if GetDistance(myHero, target) < 900 then 	
222
					GravesQ()
223
				end	
224
				if GetDistance(myHero, target) < 900 then 	
225
					GravesW()
226
				end						
227
				if GetDistance(myHero, target) < 900 then	
228
					GravesR()
229
				end	
230
				if ValidTarget(target) then 
231
				AttackTarget(target)
232
				end
233
		end
234
		if AIOConfig.GravesHarass then	
235
			if target == nil then
236
				MoveToMouse() 	
237
			end		
238
			if target ~= nil then			
239
				DrawSphere(50,25,3,target.x,target.y+300,target.z)			
240
				UtilityFunction()
241
				end
242
				if GetDistance(myHero, target) < 900 then 	
243
					GravesQ()
244
				end	
245
				if GetDistance(myHero, target) < 900 then 	
246
					GravesW()
247
				end						
248
				if ValidTarget(target) then 
249
				AttackTarget(target)
250
				end
251
		end
252
	end
253
end
254
255
if myHero.name == "Kayle" then
256
	function OnTick()
257
	local script_loaded=1
258
	target = GetWeakEnemy('MAGIC',650)
259
	HP()
260
	Ultibot()
261
	DrawCircleObject(myHero, 650, 0x02)
262
	DrawText("Kaylebot v0.2 Loaded",5,40,0xFF00EE00);
263
	DrawText("AutoUlt v0.2 Activated",5,80,0xFF00EE00);
264
		if AIOConfig.KayleCombo then
265
			if target == nil then
266
				MoveToMouse() 	
267
			end
268
			if target ~= nil then
269
				DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
270
				CustomCircle(100,5,2,target)
271
				UtilityFunction()
272
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
273
					if GetDistance(myHero, target) < 650 then 
274
						CastSpellTarget("Q",target) 
275
					end
276
					if GetDistance(myHero, target) < 650 then 
277
						CastSpellTarget("E", myHero) 
278
					end
279
				AttackTarget(target)
280
			end
281
		end		
282
	end
283
end
284
285
if myHero.name == "Pantheon" then
286
	function OnTick()
287
	local etimer = 0
288
	DrawText("THIS.. IS.. SPARTA!!", 105, 25, Color.Green)
289
	PanthDraw()
290
	target = GetWeakEnemy('PHYS',600)
291
		if AIOConfig.PantheonCombo then
292
			if target == nil then
293
				if GetTickCount() > etimer then	
294
					MoveToMouse()
295
				end
296
			end
297
			if target ~= nil then		
298
					DrawSphere(50,25,3,target.x,target.y+300,target.z)
299
					DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
300
					UtilityFunction()
301-
						if GetTickCount() > etimer then	
301+
						if GetTickCount() > etimer and GetDistance(myHero, target) < 600  then	
302
							PanthQ()
303
						end
304
						if GetDistance(myHero, target) < 600 then 	
305
							PanthW()
306
						end		
307
						if GetDistance(myHero, target) < 600 then	
308
							PanthE()
309
						end
310
						end
311
				end
312
				end
313
			end
314
		
315
	
316
317
if myHero.name == "Rengar" then
318
	function OnTick()
319
	RengarDraw()
320
	DrawText("Leap Frog", 105, 25, Color.Green)					
321
	target = GetWeakEnemy('PHYS',780,"NEARMOUSE")
322
		if AIOConfig.RengarCombo then	
323
			if target == nil then
324
				MoveToMouse() 	
325
			end
326
			if target ~= nil then	
327
				DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
328
				CustomCircle(100,5,2,target)
329
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
330
				AttackTarget(target)
331
				UtilityFunction()
332
					if GetDistance(myHero, target) < 600 then
333
						RengarQ()
334
					end
335
					if GetDistance(myHero, target) < 575 then
336
						RengarE()
337
					end	
338
					if GetDistance(myHero, target) < 500 then
339
						RengarW()
340
					end
341
				end
342
			end
343
		if AIOConfig.RengarHarass then	
344
			if target == nil then
345
				MoveToMouse() 	
346
			end
347
			if target ~= nil then	
348
				CustomCircle(100,5,2,target)
349
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
350
				UtilityFunction()
351
				AttackTarget(target)
352
					if GetDistance(myHero, target) < 575 then
353
						RengarE()
354
					end	
355
					if GetDistance(myHero, target) < 500 then
356
						RengarW()
357
					end
358
			end
359
		end
360
	end        
361
end
362
363
if myHero.name == "Shen" then
364
	function OnTick()
365
	local script_loaded=1
366
	target = GetWeakEnemy('MAGIC',575)
367
	SaveThemAll()
368
	DrawCircleObject(myHero, 575, 0x02)
369
	DrawCircleObject(myHero, 475, 0x02)
370
	DrawText("COME AT ME BRO!",5,40,0xFF00EE00);
371
	DrawText("AutoUlt Activated",5,80,0xFF00EE00);
372
		if AIOConfig.ShenCombo then
373
			if target == nil then
374
				MoveToMouse() 	
375
			end
376
			if target ~= nil then
377
				DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
378
				CustomCircle(100,5,2,target)
379
				UtilityFunction()
380
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
381
					if GetDistance(myHero, target) < 475 then 
382
						CastSpellTarget("Q",target) 
383
					end
384
					if GetDistance(myHero, target) < 575 then 
385
						ShenE() 
386
					end
387
					if GetDistance(myHero, target) < 350 then 
388
						CastSpellTarget("W", myHero) 
389
					end
390
				AttackTarget(target)
391
			end
392
		end		
393
	end
394
end
395
if myHero.name == "Talon" then
396
	function OnTick()
397
	TalonDraw()
398
	DrawText("Do the Chickens have large Talons?", 105, 25, Color.Green)
399
	target = GetWeakEnemy('PHYS',700,"NEARMOUSE")  
400
			if AIOConfig.TalonCombo then
401
				if target == nil or not doAttack then
402
					MoveToMouse()
403
				if target ~= nil then
404
				DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
405
				CustomCircle(100,5,2,target)
406
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
407
				UtilityFunction()
408
				if GetDistance(myHero, target) < 700 then
409
					TalonE(target)
410
				end    
411
				TalonQ(target)
412
				AttackTarget(target)                                   
413
				if GetDistance(myHero, target) < 595 then      
414
					TalonW(target)
415
				end    
416
				TalonR(target)
417
				AttackTarget(target)
418
			end
419
			end
420
		end
421
			if AIOConfig.TalonHarass then
422
				if target == nil or not doAttack then
423
					MoveToMouse()
424
				if target ~= nil then
425
				CustomCircle(100,5,2,target)
426
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
427
				UtilityFunction()
428
				AttackTarget(target)                                   
429
				if GetDistance(myHero, target) < 595 then      
430
					TalonW(target)
431
				end    
432
				AttackTarget(target)
433
			end
434
			end
435
		end		
436
	end
437
end
438
439
if myHero.name == "Tristana" then
440
	function OnTick()
441
	TristDraw()
442
	DrawText("Wanna see the fireworks?", 105, 25, Color.Green)					
443
	target = GetWeakEnemy('MAGIC',900,"NEARMOUSE")
444
		if AIOConfig.TristanaCombo then 
445
			if target == nil or not doAttack then
446
				MoveToMouse() 		
447
			if target ~= nil then	
448
			DrawSphere(50,25,3,target.x,target.y+300,target.z)
449
			DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
450
			UtilityFunction()
451
			if GetDistance(myHero, target) < 900 then 	
452
				TristW()
453
			end	
454
			if GetDistance(myHero, target) < 900 then 	
455
				TristE()
456
			end						
457
			if GetDistance(myHero, target) < 900 then	
458
				TristR()
459
			end		
460
		AttackTarget(target)
461
		end
462
			end
463
		end   
464
		if AIOConfig.TristanaHarass then 
465
			if target == nil or not doAttack then
466
				MoveToMouse() 		
467
			if target ~= nil then	
468
			DrawSphere(50,25,3,target.x,target.y+300,target.z)
469
			UtilityFunction()
470
			if GetDistance(myHero, target) < 900 then 	
471
				TristW()
472
			end	
473
			if GetDistance(myHero, target) < 900 then 	
474
				TristE()
475
			end						
476
		AttackTarget(target)
477
		end
478
			end
479
		end 		
480
	end
481
end
482
483
if myHero.name == "Volibear" then
484
	function OnTick()
485
	VoliDraw()
486
	DrawText("Rolling Thunder", 105, 25, Color.Green)					
487
	target = GetWeakEnemy('PHYS',1500,"NEARMOUSE")
488
		if AIOConfig.VolibearCombo then		
489
			if target == nil or not doAttack then
490
				MoveToMouse() 		
491
				if target ~= nil then	
492
				DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
493
				UtilityFunction()
494
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
495
					if GetDistance(myHero, target) < 1500 then
496
						VoliQ()
497
					end	
498
					if GetDistance(myHero, target) < 900 then
499
						VoliR()
500
					end
501
					if GetDistance(myHero, target) < 425 then
502
						VoliE()
503
					end	
504
					if GetDistance(myHero, target) < 400 then
505
						VoliW()
506
					end
507
				AttackTarget(target)
508
					end
509
				end        		
510
				end
511
			if AIOConfig.VolibearHarass then		
512
			if target == nil or not doAttack then
513
				MoveToMouse() 		
514
				if target ~= nil then	
515
				DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
516
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
517
				UtilityFunction()
518
					if GetDistance(myHero, target) < 1500 then
519
						VoliQ()
520
					end	
521
					if GetDistance(myHero, target) < 425 then
522
						VoliE()
523
					end	
524
					if GetDistance(myHero, target) < 400 then
525
						VoliW()
526
					end
527
				AttackTarget(target)
528
			end
529
		end        		
530
	end
531
end
532
end
533
534
if myHero.name == "Xerath" then
535
	function OnTick()
536
	XerathDraw()
537
	DrawText("I AM the arcane!", 105, 25, Color.Green)					
538
	target = GetWeakEnemy('MAGIC',1300,"NEARMOUSE")
539
		if AIOConfig.XerathCombo then
540
			if target == nil or not doAttack then
541
					MoveToMouse() 		
542
				if target ~= nil then	
543
					UtilityFunction()
544
					DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
545
					CustomCircle(100,4,1,target)
546
					DrawSphere(50,25,3,target.x,target.y+300,target.z)
547
				if GetDistance(myHero, target) < 1000 then 	
548
					XerathE()
549
				end	
550
				if GetDistance(myHero, target) < 1300 then 	
551
					XerathQ()
552
				end						
553
				if GetDistance(myHero, target) < 1300 then	
554
					XerathR()
555
				end	
556
				if ValidTarget(target) then 
557
					AttackTarget(target)
558
				end
559
			end
560
		end
561
		end
562
		if AIOConfig.XerathHarass then
563
			if target == nil or not doAttack then
564
					MoveToMouse() 		
565
				if target ~= nil then	
566
					UtilityFunction()
567
					CustomCircle(100,4,1,target)
568
					DrawSphere(50,25,3,target.x,target.y+300,target.z)
569
				end
570
				if GetDistance(myHero, target) < 1000 then 	
571
					XerathE()
572
				end	
573
				if GetDistance(myHero, target) < 1300 then 	
574
					XerathQ()
575
				end						
576
				if ValidTarget(target) then 
577
					AttackTarget(target)
578
				end
579
			end
580
		end        
581
	end
582
end
583
--New Champs--
584
if myHero.name == "Gragas" then
585
	function OnTick()
586
	GragasDraw()					
587
	target = GetWeakEnemy("Magic", 600, "NEARMOUSE")
588
		if AIOConfig.GragasCombo then
589
			if target == nil then
590
					MoveToMouse() 
591
			end					
592
				if target ~= nil then	
593
					DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
594
					CustomCircle(100,4,1,target)
595
					DrawSphere(50,25,3,target.x,target.y+300,target.z)
596
					UtilityFunction()
597
					if CanCastSpell("Q") and ValidTarget(target) then CastSpellXYZ('Q',GetFireahead(target,1,10)) end
598
					if CanCastSpell("E") and ValidTarget(target) then CastSpellXYZ('E',GetFireahead(target,1,10)) end
599
					if CanCastSpell("R") and ValidTarget(target) then CastSpellTarget('R',target) end
600
					if ValidTarget(target) then 
601
					AttackTarget(target)
602
				end
603
			end
604
		end
605
		if AIOConfig.GragasHarass then
606
			if target == nil then
607
					MoveToMouse() 		
608
				if target ~= nil then	
609
					UtilityFunction()
610
					DrawSphere(50,25,3,target.x,target.y+300,target.z)
611
					CustomCircle(100,4,1,target)
612
					if CanCastSpell("Q") and ValidTarget(target) then CastSpellXYZ('Q',GetFireahead(target,1,10)) end
613
					if CanCastSpell("E") and ValidTarget(target) then CastSpellXYZ('E',GetFireahead(target,1,10)) end			
614
				if ValidTarget(target) then 
615
					AttackTarget(target)
616
				end
617
				end
618
			end
619
		end        
620
	end
621
end
622
623
if myHero.name == "Yorick" then
624
	function OnTick()
625
	local script_loaded=1
626
	target = GetWeakEnemy('MAGIC',600)
627
	YouShallLive()
628
	DrawCircleObject(myHero, 600, 0x02)
629
	DrawCircleObject(myHero, 550, 0x02)
630
	DrawCircleObject(myHero, 150, 0x02)
631
	DrawText("Shovel: Check! Ghouls: Check! GG!",5,40,0xFF00EE00);
632
	DrawText("AutoUlt Activated",5,80,0xFF00EE00);
633
		if AIOConfig.YorickCombo then
634
			if target == nil then
635
				MoveToMouse() 	
636
			end
637
			if target ~= nil then
638
				DrawText("RAPEMODE ENGAGED",5,55,0xFFFF0000)
639
				CustomCircle(100,5,2,target)
640
				UtilityFunction()
641
				DrawSphere(50,25,3,target.x,target.y+300,target.z)
642
					if GetDistance(myHero, target) < 600 then 
643
						CastSpellTarget("E",target) 
644
					end
645
					if GetDistance(myHero, target) < 550 then 
646
						YorickW() 
647
					end
648
					if GetDistance(myHero, target) < 300 then 
649
						CastSpellXYZ("Q",myHero.x,myHero.y,myHero.z)
650
					end
651
					
652
				AttackTarget(target)
653
			end
654
		end		
655
	end
656
end
657
658
if myHero.name == "Leblanc" then
659
	function OnTick()
660
	LeBlancDraw()					
661
	target = GetWeakEnemy("Magic", 600, "NEARMOUSE")
662
		if AIOConfig.LeBlancCombo then
663
			if target == nil then
664
					MoveToMouse() 	
665
			end
666
				if target ~= nil then	
667
					DrawText("Rapemode ENGAGED", 125, 40, Color.Red)
668
					DrawSphere(50,25,3,target.x,target.y+300,target.z)
669
					CustomCircle(100,4,1,target)
670
					UtilityFunction()
671
					if GetDistance(myHero, target) < 700 then leblancQ(target) end		
672
					if GetDistance(myHero, target) < 700 then leblancR(target) end	
673
					if GetDistance(myHero, target) < 600 then leblancW(target) end
674
					if GetDistance(myHero, target) < 100 and GetDistance(myHero, target) > 10 then 	leblancE(target) end	
675
					if ValidTarget(target) then 
676
					AttackTarget(target)
677
				end
678
			end
679
		end
680
		if AIOConfig.LeBlancHarass then
681
			if target == nil then
682
					MoveToMouse() 
683
				end					
684
				if target ~= nil then	
685
					UtilityFunction()
686
					DrawSphere(50,25,3,target.x,target.y+300,target.z)
687
					CustomCircle(100,4,1,target)
688
					if GetDistance(myHero, target) < 700 then leblancQ(target) end
689
					if GetDistance(myHero, target) < 600 then leblancW(target) end			
690
				if ValidTarget(target) then 
691
					AttackTarget(target)
692
				end
693
				end
694
			end
695
	end
696
end        
697
--Leblanc functions
698
function leblancQ(target)	
699
	if target ~= nil and ValidTarget(target) and IsSpellReady("Q") and GetSpellLevel("Q") > 0 then
700
		CastSpellTarget("Q", target) 
701
		lastSpell = "Q"
702
	end
703
end
704
705
function leblancW(target)
706
	if target ~= nil and ValidTarget(target) and  IsSpellReady("Q") == 0 and not ultReady() and IsSpellReady("W") and GetSpellLevel("W") > 0 and GetClock() > wUsedAt + 4000 then
707
		CastSpellTarget("W", target) 	
708
		lastSpell = "W"	
709
		wUsedAt = GetClock()
710
	end
711
end
712
713
function leblancE(target)
714
	if target ~= nil and ValidTarget(target) and not ultReady() and IsSpellReady("E") and GetSpellLevel("E") > 0 then
715
		CastSpellXYZ("E", target.x, target.y, target.z) 
716
		lastSpell = "E"	
717
	end
718
end
719
720
function leblancR(target)	
721
	if target ~= nil and ValidTarget(target) and lastSpell == "Q" and IsSpellReady("Q") == 0 and ultReady() then
722
		CastSpellTarget("R", target) 
723
		lastSpell = "R"	
724
	end
725
end
726
727
function ultReady()
728
	if GetSpellLevel("R") == 0 or IsSpellReady("R") == 0 then return false else return true end
729
end
730
731
function LeBlancDraw()
732
	CustomCircle(600,2,3,myHero)
733
end
734
--Gragass Functions
735
736
function GragasDraw()
737
	CustomCircle(600,2,3,myHero)
738
end
739
740
--Dianas Functions
741
742
function DianaQ(target)
743
        if target ~= nil and GetDistance(myHero, target) < 825 then  
744
                CastSpellXYZ('Q',GetFireahead(target,2,18))
745
                        targetbuff = 1
746
        end
747
end
748
 
749
function DianaW(target)
750
        if IsSpellReady("W") == 1 and GetDistance(myHero, target) < 200 then
751
                CastSpellTarget("W",myHero)
752
        end
753
end
754
 
755
function DianaE(target)
756
        if IsSpellReady("E") and GetDistance(myHero, target) < 249 then
757
                CastSpellTarget("E",myHero)
758
        end
759
end
760
 
761
function DianaR(target)
762
        if IsSpellReady("R") == 1 and GetDistance(myHero, target) < 825 and Moonlight == 1 then
763
                CastSpellTarget("R",target)                                    
764
        end
765
end
766
 
767
function DianaDraw()
768
        CustomCircle(700,2,3,myHero)
769
end  
770
771
--End of Diana functions
772
773
--Akalis Functions
774
function AkaliQ(target)
775
	if IsSpellReady("Q") == 1 then
776
		CastSpellTarget("Q",target)
777
		lastQ = GetTickCount()
778
	end
779
end
780
781
function AkaliW(target)
782
--not used currently
783
	if IsSpellReady("W") == 1 then
784
		CastSpellTarget("W",target)
785
	end
786
end
787
788
function AkaliE(target)
789
	if IsSpellReady("E") == 1 then
790
		if IsSpellReady("Q") == 0 then
791
			CastSpellTarget("E",target)
792
		end
793
	end
794
end
795
796
function AkaliR(target)
797
	if IsSpellReady("R") == 1 then
798
		CastSpellTarget("R",target)					
799
	end
800
end
801
802
function AkaliDraw()
803
	CustomCircle(800,2,3,myHero)
804
end
805
--End Akali Functions
806
807
--Dr Mundo Functions
808
function MundoQ(target)
809
--Shortened Q distance a tad to ensure hit due to projectile speed+movespeed
810
	if target ~= nil and GetDistance(myHero, target) < 990 and CreepBlock(myHero.x,myHero.y,myHero.z,GetFireahead(target,2,20)) == 0 then
811
		CastSpellXYZ('Q',GetFireahead(target,2,20))
812
	end
813
end
814
815
function MundoW(target)
816
--Cast W on self if it's ready, it's not toggled, and they're close enough to burn
817
	if IsSpellReady("W") == 1 and MundoWToggled == false and GetDistance(myHero, target) < 325 then
818
		CastSpellTarget("W",myHero)
819
		MundoWToggled = true
820
	end
821
--Cast W on self (to toggle off) if the spell is ready, it's on, and they're not close enough to burn.
822
	if IsSpellReady("W") == 1 and MundoWToggled == true and GetDistance(myHero, target) > 400 then
823
		CastSpellTarget("W",myHero)
824
		MundoWToggled = false
825
	end
826
end
827
828
function MundoE(target)
829
	if IsSpellReady("E") == 1 and GetDistance(myHero, target) > 325 then
830
		CastSpellTarget("E",myHero)
831
	end
832
end
833
834
function MundoR(target)
835
	if IsSpellReady("R") == 1 then
836
		CastSpellTarget("R",myHero)					
837
	end
838
end
839
840
function MundoDraw()
841
	CustomCircle(1000,2,3,myHero)
842
end
843
--End Dr Mundo Functions
844
845
--Graves Functions
846
function GravesQ()
847
	if ValidTarget(target) and CanCastSpell("Q") then
848
		CastSpellXYZ('Q',GetFireahead(target,2,20))
849
	end
850
end
851
852
function GravesW()
853
	if CanCastSpell("W") then
854
		CastSpellXYZ("W",GetFireahead(target,2,20))
855
	end
856
end
857
858
function GravesR()
859
	if CanCastSpell("R") then
860
		CastSpellXYZ('R',GetFireahead(target,2,20))
861
	end
862
end	
863
864
function GravesDraw()
865
	CustomCircle(900,2,3,myHero)
866
end
867
--End Graves Functions
868
869
--Kayle Functions
870
function HP()
871
local percent = ((myHero.health / myHero.maxHealth)*100)
872
local healMe = healPlease
873
	if IsSpellReady("W") and percent <= healMe then CastSpellTarget("W",myHero) end
874
end
875
876
function Ultibot()
877
    CLOCK=os.clock()
878
    local key=112;
879
    local UltiMe = ultiPlease
880
    local percent = ((myHero.health / myHero.maxHealth)*100)
881
    
882
	if CLOCK-toggle_timer>0.2 then
883
		toggle_timer=CLOCK
884
		script_loaded= ((script_loaded+1)%2)
885
	end
886
		if (script_loaded==1) then
887
			if (CLOCK-toggle_timer<1) then
888
				--DrawText("Press F1 to toggle",5,90,0xFF00EE00);
889
			end
890
		else
891
           -- DrawText("SAVEMEBOT unloaded",5,80,0xFFFFFF00);
892
            return
893
        end
894
		if CanUseSpell("R") and percent <= UltiMe then 
895
			CastSpellTarget("R",myHero) 
896
		end
897
end
898
--End Kayle Functions
899
900
--Rengar Functions
901
function RengarE()
902
	if CanCastSpell("E") then
903
		CastSpellTarget('E',target)
904
	end
905
end
906
907
function RengarW()
908
	if CanCastSpell("W")then
909
		CastSpellTarget("W",target)
910
	end
911
end
912
913
function RengarQ()
914
	if CanCastSpell("Q")then
915
		CastSpellTarget("Q",target)
916
	end
917
end
918
919
function RengarR()
920
	if CanCastSpell("R")then
921
		CastSpellTarget("R",myHero)
922
	end
923
end	
924
925
function RengarDraw()
926
	CustomCircle(780,4,3,myHero)
927
end
928
--End Rengar Functions
929
930
--Shen Functions
931
function ShenE()
932
	if CanCastSpell("E") then
933
		CastSpellXYZ('E',GetFireahead(target,2,14))
934
	end
935
end
936
function SaveThemAll()
937
    for i = 1, objManager:GetMaxHeroes() do
938
        local ally = objManager:GetHero(i)
939
		local percent2 = ((ally.health / ally.maxHealth)*100)
940
    CLOCK=os.clock()
941
    local key=112;
942
    local savethemall = saveMeee
943
    
944
	if CLOCK-toggle_timer>0.2 then
945
		toggle_timer=CLOCK
946
		script_loaded= ((script_loaded+1)%2)
947
	end
948
		if (script_loaded==1) then
949
			if (CLOCK-toggle_timer<1) then
950
				--DrawText("Press F1 to toggle",5,90,0xFF00EE00);
951
			end
952
		else
953
           -- DrawText("SAVEMEBOT unloaded",5,80,0xFFFFFF00);
954
            return
955
        end
956
		if CanUseSpell("R") and percent2 <= savethemall and ally.team == myHero.team then 
957
			CastSpellTarget("R",ally) 
958
		end
959
                
960
    end
961
end
962
--End Shen Functions
963
--Tristana Functions
964
function TristW()
965
	if CanCastSpell("W") then
966
		CastSpellXYZ('W',GetFireahead(target,2,12))
967
	end
968
end
969
function TristE()
970
	if CanCastSpell("E") then
971
		CastSpellTarget("E",target)
972
	end
973
end
974
975
function TristR()
976
	if CanCastSpell("R") then
977
		CastSpellTarget("R",target)	
978
	end
979
end	
980
981
function TristDraw()
982
	CustomCircle(800,2,3,myHero)
983
end
984
--End Tristana Functions
985
986
--Volibear Functions
987
function VoliE()
988
	if CanCastSpell("E") then
989
		CastSpellXYZ('E',GetFireahead(target,2,20))
990
	end
991
end
992
993
function VoliQ()
994
	if CanCastSpell("Q") then
995
		CastSpellTarget("Q",target)
996
	end
997
end
998
999
function VoliW()
1000
	if CanCastSpell("W")then
1001
		CastSpellTarget("W",target)
1002
	end
1003
end	
1004
1005
function VoliR()
1006
	if CanCastSpell("R")then
1007
		CastSpellTarget("R",myHero)
1008
	end
1009
end	
1010
1011
function VoliDraw()
1012
	CustomCircle(425,2,3,myHero)
1013
end
1014
--End Volibear Functions
1015
1016
--Xerath Functions
1017
function XerathQ()
1018
	if ValidTarget(target) and CanCastSpell("Q") then
1019
		CastSpellXYZ('Q',GetFireahead(target,1,25))
1020
	end
1021
end
1022
1023
function XerathE()
1024
	if ValidTarget(target) and CanCastSpell("E") then
1025
		CastSpellTarget("E",target)
1026
	end
1027
end
1028
1029
function XerathR()
1030
	if ValidTarget(target) and IsSpellReady("R") == 1 then CastSpellXYZ('R',GetFireahead(target,1,20))
1031
	end
1032
end	
1033
1034
function XerathDraw()
1035
	CustomCircle(600,2,3,myHero)
1036
	CustomCircle(1000,3,3,myHero)
1037
	CustomCircle(1300,4,3,myHero)
1038
end
1039
--End Xerath Functions
1040
1041
--Brand Functions
1042
function BrandQ(target)
1043
	if target ~= nil and GetDistance(myHero, target) < 900 and targetbuff == 1 then
1044
		CastSpellXYZ('Q',GetFireahead(target,2,16))
1045
			targetbuff = 0
1046
	end
1047
end
1048
1049
function BrandW(target)
1050
	if IsSpellReady("W") and target ~= nil and GetDistance(myHero, target) < 900 then
1051
		CastSpellXYZ('W',GetFireahead(target,3,96))
1052
	end
1053
end
1054
1055
function BrandE(target)
1056
	if IsSpellReady("E") and target ~= nil and GetDistance(myHero, target) < 625 then
1057
		CastSpellTarget("E",target)
1058
	end
1059
end
1060
1061
function BrandR(target)
1062
	if IsSpellReady("R") and target ~= nil and GetDistance(myHero, target) < 750 then
1063
		CastSpellTarget("R",target)					
1064
	end
1065
end
1066
1067
function BrandDraw()
1068
	if myHero.dead == 0 then
1069
		CustomCircle(600,2,3,myHero)
1070
			if target ~= nil then
1071
			CustomCircle(100, 5, 2, target)
1072
		end
1073
	end
1074
end
1075
--End Brand Functions
1076
1077
--Panth Functions
1078
function PanthE()
1079
        target = GetWeakEnemy("PHYS", 600, "NEARMOUSE")
1080
        if target ~= nil then
1081
			AttackTarget(target)
1082
				if CanCastSpell("E") then CastSpellXYZ('E',GetFireahead(target,2,20))
1083
				etimer = GetTickCount() + 825
1084
				end
1085
        end
1086
end
1087
1088
function PanthW()
1089
	if CanCastSpell("W") then
1090
		CastSpellTarget("W",target)
1091
	end
1092
end
1093
1094
function PanthQ()
1095
	if CanCastSpell("Q") then
1096
		CastSpellTarget("Q",target)	
1097
	end
1098
end	
1099
1100
function PanthDraw()
1101
	CustomCircle(600,2,3,myHero)
1102
end
1103
1104
--End Panth Functions
1105
1106
--Talon Functions
1107
1108
function TalonQ(target)
1109
        if target ~= nil and IsSpellReady("Q") then  
1110
                CastSpellTarget("Q",myHero)  
1111
        end
1112
end
1113
 
1114
function TalonW(target)
1115
        if IsSpellReady("W") == 1 then
1116
                CastSpellTarget("W",target)
1117
        end
1118
end
1119
 
1120
function TalonE(target)
1121
        if target ~= nil and GetDistance(myHero, target) < 700 then
1122
                CastSpellTarget('E',target)
1123
        end
1124
end
1125
 
1126
function TalonR(target)
1127
        if IsSpellReady("R") == 1 then
1128
                CastSpellTarget("R",myHero)                                    
1129
        end
1130
end
1131
 
1132
function TalonDraw()
1133
        CustomCircle(600,2,3,myHero) 
1134
end  
1135
1136
--End Talon Functions
1137
1138
--Yorick Functions
1139
function YorickW()
1140
	if CanCastSpell("W") then
1141
		CastSpellXYZ('W',GetFireahead(target,5,0))
1142
	end
1143
end
1144
function YouShallLive()
1145
    for i = 1, objManager:GetMaxHeroes() do
1146
        local ally = objManager:GetHero(i)
1147
		local percent3 = ((ally.health / ally.maxHealth)*100)
1148
		local myhp = ((myHero.health / myHero.maxHealth)*100)
1149
		local key=112;
1150
		CLOCK=os.clock()
1151
		local ghoulthemall = ghoulmeh
1152
		
1153
    
1154
	if CLOCK-toggle_timer>0.2 then
1155
		toggle_timer=CLOCK
1156
		script_loaded= ((script_loaded+1)%2)
1157
	end
1158
		if (script_loaded==1) then
1159
			if (CLOCK-toggle_timer<1) then
1160
				--DrawText("Press F1 to toggle",5,90,0xFF00EE00);
1161
			end
1162
		else
1163
           -- DrawText("SAVEMEBOT unloaded",5,80,0xFFFFFF00);
1164
            return
1165
        end
1166
		if CanUseSpell("R") and percent3 <= ghoulthemall and ally.team == myHero.team and GetDistance(myHero, ally) <= 900 then 
1167
			CastSpellTarget("R",ally) 
1168
		end
1169
		if CanUseSpell("R") and myhp <= ghoulthemall then 
1170
			CastSpellXYZ("R",myHero.x,myHero.y,myHero.z)
1171
		end
1172
               
1173
    end
1174
end
1175
--End Yorick Functions
1176
1177
--Utility Functions
1178
function OnProcessSpell(obj,spell)
1179
	if obj ~= nil and obj.name == myHero.name then
1180
		if string.find(spell.name,"dr_mundo_burning_agony") then
1181
			MundoWToggled = true
1182
		end
1183
	end
1184
end	
1185
1186
function OnCreateObj(obj)
1187
	if target ~= nil then
1188
		if obj ~= nil then
1189
			if string.find(obj.charName,'BrandFireMark') ~= nil then
1190
				targetbuff = 1
1191
			end
1192
			if string.find(obj.charName,'Diana_Q_moonlight') ~= nil then
1193
				Moonlight = 1
1194
			end
1195
		end
1196
	end
1197
end
1198
1199
function DrawSphere(radius,thickness,color,x,y,z)
1200
    for j=1, thickness do
1201
        local ycircle = (j*(radius/thickness*2)-radius)
1202
        local r = math.sqrt(radius^2-ycircle^2)
1203
        ycircle = ycircle/1.3
1204
        DrawCircle(x,y+ycircle,z,r,color)
1205
    end
1206
end
1207
1208
function redElixir()
1209
	if AIOConfig.Elixir then
1210
	UseItemOnTarget(2037, myHero)
1211
end
1212
end
1213
1214
function GetTick()
1215
	return GetClock()
1216
end
1217
1218
function usePotion()
1219
	GetInventorySlot(2003)
1220
	UseItemOnTarget(2003,iHero)
1221
end
1222
1223
function useFlask()
1224
	GetInventorySlot(2041)
1225
	UseItemOnTarget(2041,iHero)
1226
end
1227
1228
function useBiscuit()
1229
	GetInventorySlot(2009)
1230
	UseItemOnTarget(2009,iHero)
1231
end
1232
1233
function potion() --Thank you kyuuketsuuki for this, you're an amazing scripter.
1234
	if AIOConfig.Potion and bluePill == nil then
1235
		if iHero.health < iHero.maxHealth * AIOConfig.PotionValue and AIOConfig.HpPotion and GetClock() > waUsedAt + 15000 then
1236
			usePotion()
1237
			waUsedAt = GetTick()
1238
		elseif iHero.health < iHero.maxHealth * AIOConfig.FlaskValue and AIOConfig.Flask and GetClock() > vUsedAt + 10000 then 
1239
			useFlask()
1240
			vUsedAt = GetTick()
1241
		elseif iHero.health < iHero.maxHealth * AIOConfig.BiscuitValue and AIOConfig.Biscuit then
1242
			useBiscuit()
1243
		end
1244
	end
1245
	if (os.clock() < timer + 5000) then
1246
		bluePill = nil 
1247
	end
1248
end
1249
1250
function UtilityFunction()
1251
	redElixir()
1252
	UseAllItems(target)
1253
end
1254
1255
1256
function Killsteals()
1257
	if myHero.name == "Akali" and AIOConfig.KSteal then
1258
	CastHotkey("SPELLR:WEAKENEMY ONESPELLHIT=((spellr_level*75)+25+((player_ap*5)/10))")
1259
	end
1260
	if myHero.name == "Brand" and AIOConfig.KSteal then
1261
	CastHotkey("SPELLE:WEAKENEMY ONESPELLHIT=((spelle_level*35)+35+((player_ap*55)/100))")
1262
	end
1263
	if myHero.name == "Diana" and AIOConfig.KSteal then
1264
	CastHotkey("SPELLR:WEAKENEMY ONESPELLHIT=((spellr_level*60)+40+((player_ap*6)/10))")
1265
	end
1266
	if myHero.name == "Dr Mundo" and AIOConfig.KSteal then
1267
	CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=#(((spellq_level*50)+30)>((target_hp*((spellq_level*3)/100))+((target_hp*12)/100))")
1268
	end
1269
	if myHero.name == "Gragas" and AIOConfig.KSteal then
1270
	CastHotkey("SPELLE:WEAKENEMY ONESPELLHIT=((spelle_level*40)+40+((player_ap*5)/10)+((player_ad*66/100))")
1271
	end
1272
	if myHero.name == "Graves" and AIOConfig.KSteal then
1273
	CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*35)+25+((player_ad*8)/10))")
1274
	end
1275
	if myHero.name == "Kayle" and AIOConfig.KSteal then
1276
	CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*50)+10+player_ap+player_bonusad)")
1277
	end
1278
	if myHero.name == "Leblanc" and AIOConfig.KSteal then
1279
	CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*40)+30+((player_ap*60)/100))")
1280
	end
1281
	if myHero.name == "Pantheon" and AIOConfig.KSteal then
1282
	CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*40)+25+((player_bonusad*14)/10))")
1283
	end
1284
	if myHero.name == "Rengar" and AIOConfig.KSteal then
1285
	CastHotkey("SPELLE:WEAKENEMY ONESPELLHIT=((spelle_level*45)+10+((player_bonusad*7)/10))")
1286
	end
1287
	if myHero.name == "Talon" and AIOConfig.KSteal then
1288
	CastHotkey("SPELLW:WEAKENEMY ONESPELLHIT=((spellw_level*50)+10+((player_bonusad*12)/10))")
1289
	end
1290
	if myHero.name == "Tristana" and AIOConfig.KSteal then
1291
	CastHotkey("SPELLR:WEAKENEMY ONESPELLHIT=((spellr_level*100)+200+((player_ap*15)/10))")
1292
	end
1293
	if myHero.name == "Volibear" and AIOConfig.KSteal then
1294
	CastHotkey("SPELLW:WEAKENEMY COOLDOWN RANGE=400 ONESPELLHIT=#((35+45*spellw_level+(player_hpmax-440-(1548*player_level/18))*15/100)*(2-target_hp/target_hpmax)) PHYSICAL LEASTHP")
1295
	end
1296
	if myHero.name == "Xerath" and AIOConfig.KSteal then
1297
	CastHotkey("SPELLQ:WEAKENEMY ONESPELLHIT=((spellq_level*40)+35+((player_ap*6)/10))")
1298
	end
1299
end
1300
1301
AIOConfig = scriptConfig("AIO Collective", "AIOConfig")
1302
if myHero.name == "Akali" then
1303
	AIOConfig:addParam("AkaliCombo", "Akali Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1304
end
1305
if myHero.name == "Brand" then
1306
	AIOConfig:addParam("BrandCombo", "Brand Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1307
	AIOConfig:addParam("BrandHarass", "Brand Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
1308
end
1309
if myHero.name == "Diana" then
1310
	AIOConfig:addParam("DianaCombo", "Diana Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1311
	AIOConfig:addParam("DianaHarass", "Diana Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
1312
end
1313
if myHero.name == "Dr Mundo" then
1314
	AIOConfig:addParam("MundoCombo", "Mundo Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1315
end
1316
if myHero.name == "Gragas" then
1317
	AIOConfig:addParam("GragasCombo", "Gragas Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1318
	AIOConfig:addParam("GragasHarass", "Gragas Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
1319
end
1320
if myHero.name == "Graves" then
1321
	AIOConfig:addParam("GravesCombo", "Graves Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1322
	AIOConfig:addParam("GravesHarass", "Graves Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
1323
end
1324
if myHero.name == "Kayle" then
1325
	AIOConfig:addParam("KayleCombo", "Kayle Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1326
end
1327
if myHero.name == "Leblanc" then
1328
	AIOConfig:addParam("LeBlancCombo", "LeBlanc Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1329
	AIOConfig:addParam("LeBlancHarass", "LeBlanc Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
1330
end
1331
if myHero.name == "Pantheon" then
1332
	AIOConfig:addParam("PantheonCombo", "Pantheon Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1333
end
1334
if myHero.name == "Rengar" then
1335
	AIOConfig:addParam("RengarCombo", "Rengar Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1336
	AIOConfig:addParam("RengarHarass", "Rengar Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
1337
end
1338
if myHero.name == "Shen" then
1339
	AIOConfig:addParam("ShenCombo", "Shen Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1340
end
1341
if myHero.name == "Talon" then
1342
	AIOConfig:addParam("TalonCombo", "Talon Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1343
	AIOConfig:addParam("TalonHarass", "Talon Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
1344
end
1345
if myHero.name == "Tristana" then
1346
	AIOConfig:addParam("TristanaCombo", "Tristana Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1347
	AIOConfig:addParam("TristanaHarass", "Tristana Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
1348
end
1349
if myHero.name == "Volibear" then
1350
	AIOConfig:addParam("VolibearCombo", "Volibear Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1351
	AIOConfig:addParam("VolibearHarass", "Volibear Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
1352
end
1353
if myHero.name == "Xerath" then
1354
	AIOConfig:addParam("XerathCombo", "Xerath Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1355
	AIOConfig:addParam("XerathHarass", "Xerath Harass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
1356
end
1357
if myHero.name == "Yorick" then
1358
	AIOConfig:addParam("YorickCombo", "Yorick Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
1359
end
1360
AIOConfig:addParam("KSteal", "Killsteal", SCRIPT_PARAM_ONOFF, true)
1361
AIOConfig:addParam("Elixir", "Auto Red Elixir", SCRIPT_PARAM_ONOFF, true)
1362
AIOConfig:addParam("Potion", "Script Toggle", SCRIPT_PARAM_ONKEYTOGGLE, true, 117)
1363
AIOConfig:addParam("HpPotion", "Potion Toggle", SCRIPT_PARAM_ONOFF, true)
1364
AIOConfig:addParam("Flask", "Flask Toggle", SCRIPT_PARAM_ONOFF, true)
1365
AIOConfig:addParam("Biscuit", "Biscuit Toggle", SCRIPT_PARAM_ONOFF, true)
1366
AIOConfig:addParam("PotionValue", "Potion Trigger HP", SCRIPT_PARAM_NUMERICUPDOWN, 0.75, 103, 0, 1, .1)
1367
AIOConfig:addParam("FlaskValue", "Flask Trigger HP", SCRIPT_PARAM_NUMERICUPDOWN, 0.74, 100, 0, 1, .1)
1368
AIOConfig:addParam("BiscuitValue", "Biscuit Trigger HP", SCRIPT_PARAM_NUMERICUPDOWN, 0.60, 97, 0, 1, .1)
1369
AIOConfig:addParam("ElixirValue", "Elixir Trigger HP", SCRIPT_PARAM_NUMERICUPDOWN, 0.30, 96, 0, 1, .1)
1370
1371
SetTimerCallback("OnTick")
1372
SetTimerCallback("potion")