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
----New series of simple scripts that just work..nothing fancy
--
--
--
--
--
--
--
--
--
--
--
--
-- T@P .s#@@@#c.
-- Y@@@2 9@@@@@@@@@8
-- h@@@@; @@@@@@@@@@@@@
-- C@@@@@P @@@@@@@@@@@@@@@
-- TS 5@, @@@@@@@@@@@@@@@
-- h@7 @@@@@@@@@@@@@@@
-- Cs ;@@@ :@@@@@@@@@@@@@@Y
-- #@@@@9M@@@s @@@@@@@@@@@@@7
-- ;@@Y ;7 ;@ C@@@@@@@@@U. .
-- ;@. Y@@ ;@@@@@@@@7;Cb@@@@@@@ME; Y2;GY
-- , CM7 #@dCG@@@7 0@@@@@@@@@@@@@@@@@@@@@@@P; 7b@@@@@@O
-- Y@@ 1@@@@@@E ;2@@@@@@@@@@@@@@@@@@@@@ZZ@@@@@@@@@@7
-- D@D G@; G@; cM@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@s:
-- 5@@ ;@ ;YFl;;X@@@@@@@@@@@@@@@@@@@@@@@X
-- :@T U. ,#@@@@@@@@@@@@@@@@@@@@@Z
-- @ . .F@@@@@@@@@@@@@@@@@@@@@
-- s . @@@@@@@@@@@@@@@@@@@5
-- 7U 5@@@@@@@@@@@@@@@@@@@T
-- ;E@. .0@@@@@@@@@@@@@@@@@@@;
-- c@@7 .@@@@@@@@@@@@@@@@@@@@b
-- @@: ,s@@@@@@@@@@@@@@@@@@@@@@
-- ,@ 7@@@@@@@@@@@@@@@@@@@@@@@@@#
-- ;E .@@@@@@@@@@@@@@@@@@@@@@@@@@@;
-- 7 Z@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@;
-- .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-- 7@@@@@@@@@@T P@@@@@@@@@@@@@@@@@@
-- s@@@@@@@@@M 7@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XBZr:
-- . .i .UQBQBZQurrBQ K Qi YQjQKZDEDEUQBQgvviBQBBQ7BQBBBQBQBQPJL:. UBBM1srBBQB LBBPu:i:77UQBuBBi:Qd
-- :PQBQ.IP YB E Ki:iBiKSBBBRBddvX: 71Qu7B LQMdBDQQBr: YrX.vbBQjQBBB::QBQBQBQBQi rBBQ2iBQ.
-- :SQQQL5i. r .:ii uii:.UsSQBQM: : .QB EQ QB UBr B : rBQu5BQBBBX.. .BBQB .QBQBQd:Bq
-- .vvBsb7irq. BvrYJv7:7..D Pj QQBr .J7qEDBdr rQ.L. s iZr BQ P.7 1BuBQBBBQBQK7 BBBQ BBBQBQBDSv..LYi
-- :uJriJrr:Y iQ .dr.. .v Dr. :2 .L.JPBBBQPLgQBBBiUr:.i:rQY:BQ BB BQ: LBLXqKSXvIK ..1Li::dQBQBBQ.iJMB: :B
-- v5J7Bqrq7Q25SQ7 B. Prv:irir:i IBBBvi:i .BQBg.iQBBZBMBgBIBQBQP: gv BQ .ruZXs.. iBQBBBQB2 rvJis.BLriii.
-- r7qdUQBYXP2QB qvr:: Q: UK. .. .i7 r:gQ17S. :7BBQ riILrs:: .rBBBY gd QB .DdZbvgDBQ. rKBBUMQZBgb1QQi.v2 ..j7K:iv7:vrriPBE
-- Ri7Y2 RS .: u: Q: j:. . . ir7BPiQ.XY1r:. i: 7s .: UuUi QB:7B. 7vqv 1BQBQBBqLXQi 7i .ri EL BQ
-- Qr7ur:7r:7i.7:gR7sXBQ1BEPg:v2.:ZL.:I B: ruB.. : ...7. :BBBQ .Q B vL :BBBQBQB: P gg ZYE :i 1Q7 SPE7vv.:QU
--:MQSBEgQuKZ7BQBqIS77BQK7vQB vIRYgBBB51grE. .7 B i:v :r.i:vS.i.:.:r:Qi ri. gBBBQBB: 7 .Kii.: i qBKd Y iQrPBQ.
--budQiibU7777.ir7iqIqYbQ7iJX2 vJqM.Q7 RXSI: 1Q 7 :.5 gr :75117s: YBb7v1J:ii.B 7QBBBQBBBQBBB : i .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:SrB:J..Bi IQ.d:5UrBBr7BQBgB7jr2vB:2:
-- . v :. . .
----New series of simple scripts that just work..nothing fancy
if myHero.charName ~= "Darius" then return end
require "DamageLib"
keybindings = { [ITEM_1] = HK_ITEM_1, [ITEM_2] = HK_ITEM_2, [ITEM_3] = HK_ITEM_3, [ITEM_4] = HK_ITEM_4, [ITEM_5] = HK_ITEM_5, [ITEM_6] = HK_ITEM_6}
local castSpell = {state = 0, tick = GetTickCount(), casting = GetTickCount() - 1000, mouse = mousePos}
local barHeight = 8
local barWidth = 103
local barXOffset = 0
local barYOffset = 0
function SetMovement(bool)
	if _G.EOWLoaded then
		EOW:SetMovements(bool)
		EOW:SetAttacks(bool)
	elseif _G.SDK then
		_G.SDK.Orbwalker:SetMovement(bool)
		_G.SDK.Orbwalker:SetAttack(bool)
	else
		GOS.BlockMovement = not bool
		GOS.BlockAttack = not bool
	end
	if bool then
		castSpell.state = 0
	end
end
class "Darius"
local Scriptname,Version,Author,LVersion = "DariusExpress","v1.0","Tocsin","7.17"
function CurrentTarget(range)
	if _G.SDK then
		return _G.SDK.TargetSelector:GetTarget(range, _G.SDK.DAMAGE_TYPE_PHYSICAL);
	elseif _G.EOW then
		return _G.EOW:GetTarget(range)
	else
		return _G.GOS:GetTarget(range,"AD")
	end
end
function Darius:__init()
	
	self:LoadSpells()
	self:LoadMenu()
	Callback.Add("Tick", function() self:Tick() end)
	Callback.Add("Draw", function() self:Draw() end)
	local orbwalkername = ""
	if _G.SDK then
		orbwalkername = "IC'S orbwalker"		
	elseif _G.EOW then
		orbwalkername = "EOW"	
	elseif _G.GOS then
		orbwalkername = "Noddy orbwalker"
	else
		orbwalkername = "Orbwalker not found"
	end
	PrintChat(Scriptname.." "..Version.." - Loaded...."..orbwalkername)
end
function Darius:LoadSpells()
	Q = { range = myHero:GetSpellData(_Q).range, delay = myHero:GetSpellData(_Q).delay, speed = myHero:GetSpellData(_Q).speed, width = myHero:GetSpellData(_Q).width }
	W = { range = myHero:GetSpellData(_W).range, delay = myHero:GetSpellData(_W).delay, speed = myHero:GetSpellData(_W).speed, width = myHero:GetSpellData(_W).width }
	E = { range = myHero:GetSpellData(_E).range, delay = myHero:GetSpellData(_E).delay, speed = myHero:GetSpellData(_E).speed, width = myHero:GetSpellData(_E).width }
	R = { range = myHero:GetSpellData(_R).range, delay = myHero:GetSpellData(_R).delay, speed = myHero:GetSpellData(_R).speed, width = myHero:GetSpellData(_R).width }
end
function Darius:LoadMenu()
	self.Menu = MenuElement({type = MENU, id = "DariusExpress", name = Scriptname})
	self.Menu:MenuElement({id = "ComboMode", name = "Combo", type = MENU})
	self.Menu.ComboMode:MenuElement({id = "UseQ", name = "Q: Decimate", value = true})
	self.Menu.ComboMode:MenuElement({id = "UseW", name = "W: Crippling Strike", value = true})
	self.Menu.ComboMode:MenuElement({id = "UseE", name = "E: Apprehend", value = true})
	self.Menu.ComboMode:MenuElement({id = "UseR", name = "R: Noxian Guillotine", value = true})
	self.Menu.ComboMode:MenuElement({id = "comboActive", name = "Combo key", key = string.byte(" ")})
	self.Menu.ComboMode:MenuElement({id = "UseHYDRA", name = "Use hydra", value = true})
	self.Menu.ComboMode:MenuElement({id = "DrawDamage", name = "Draw damage on HPbar", value = true})
		
	self.Menu:MenuElement({id = "HarassMode", name = "Harass", type = MENU})
	self.Menu.HarassMode:MenuElement({id = "UseQ", name = "Q: Decimate", value = true})
	self.Menu.HarassMode:MenuElement({id = "UseW", name = "W: Crippling Strike", value = true})
	self.Menu.HarassMode:MenuElement({id = "UseE", name = "E: Apprehend", value = true})
	self.Menu.HarassMode:MenuElement({id = "harassActive", name = "Harass key", key = string.byte("C")})
	self.Menu:MenuElement({id = "ClearMode", name = "Clear", type = MENU})
	self.Menu.ClearMode:MenuElement({id = "UseQ", name = "Q: Decimate", value = true})
	self.Menu.ClearMode:MenuElement({id = "UseW", name = "W: Crippling Strike", value = true})
	self.Menu.ClearMode:MenuElement({id = "clearActive", name = "Clear key", key = string.byte("V")})
	self.Menu:MenuElement({id = "CustomSpellCast", name = "Use custom spellcast", tooltip = "Can fix some casting problems with wrong directions and so", value = true})
	self.Menu:MenuElement({id = "delay", name = "Custom spellcast delay", value = 100, min = 0, max = 200, step = 5,tooltip = "increase this one if spells is going completely wrong direction", identifier = ""})
	
	self.Menu:MenuElement({id = "blank", type = SPACE , name = ""})
	self.Menu:MenuElement({id = "blank", type = SPACE , name = "Script Ver: "..Version.. " - LoL Ver: "..LVersion.. ""})
	self.Menu:MenuElement({id = "blank", type = SPACE , name = "by "..Author.. ""})
end
function GetInventorySlotItem(itemID)
		assert(type(itemID) == "number", "GetInventorySlotItem: wrong argument types (<number> expected)")
		for _, j in pairs({ ITEM_1, ITEM_2, ITEM_3, ITEM_4, ITEM_5, ITEM_6}) do
			if myHero:GetItemData(j).itemID == itemID and myHero:GetSpellData(j).currentCd == 0 then return j end
		end
		return nil
	 end
	
	function UseHydra()
		local HTarget = CurrentTarget(125)
		if HTarget then
			local hydraitem = GetInventorySlotItem(3748) or GetInventorySlotItem(3077)
			if hydraitem and myHero.attackData.state == STATE_WINDDOWN then
				Control.CastSpell(keybindings[hydraitem],HTarget.pos)
Control.Attack(HTarget)
			end
		end
	end
function UseHydraminion()
for i = 1, Game.MinionCount() do
	 local minion = Game.Minion(i)
if minion and minion.team == 300 or minion.team ~= myHero.team then
			local hydraitem = GetInventorySlotItem(3748) or GetInventorySlotItem(3077)
			if hydraitem and myHero.attackData.state == STATE_WINDDOWN then
				Control.CastSpell(keybindings[hydraitem])
Control.Attack(minion)
			end
		end
end
	end
function IsRecalling()
	for K, Buff in pairs(GetBuffs(myHero)) do
		if Buff.name == "recall" and Buff.duration > 0 then
			return true
		end
	end
	return false
end
function ValidTarget(target, range)
	range = range and range or math.huge
	return target ~= nil and target.valid and target.visible and not target.dead and target.distance <= range
end
function Darius:Tick()
if myHero.dead or Game.IsChatOpen() == true or IsRecalling() == true then return end
	if self.Menu.HarassMode.harassActive:Value() and self:EnemyInRange(700) then
		self:Harass()
	end
	if self.Menu.ComboMode.comboActive:Value() and self:EnemyInRange(700) then
		self:Combo()
	end
	if self.Menu.ClearMode.clearActive:Value() then
		self:Jungle()
	end
end
function Darius:HasBuff(unit, buffname)
	for i = 0, unit.buffCount do
		local buff = unit:GetBuff(i)
		if buff.name == buffname and buff.count > 0 then
			return true
		end
	end
	return false
end
function Darius:IsReady(spell)
	return Game.CanUseSpell(spell) == 0
end
function Darius:CheckMana(spellSlot)
	return myHero:GetSpellData(spellSlot).mana < myHero.mana
end
function Darius:CanCast(spellSlot)
	return self:IsReady(spellSlot) and self:CheckMana(spellSlot)
end
function EnableMovement()
	SetMovement(true)
end
function ReturnCursor(pos)
	Control.SetCursorPos(pos)
	DelayAction(EnableMovement,0.1)
end
function LeftClick(pos)
	Control.mouse_event(MOUSEEVENTF_LEFTDOWN)
	Control.mouse_event(MOUSEEVENTF_LEFTUP)
	DelayAction(ReturnCursor,0.05,{pos})
end
function Darius:Draw()
local textPos = myHero.pos:To2D()
if self:CanCast(_Q) then Draw.Circle(myHero.pos, 425, 3, Draw.Color(255, 255, 000, 255)) end
--if self:CanCast(_R) then Draw.Circle(myHero.pos, 460, 3, Draw.Color(255, 255, 000, 255)) end
	if self.Menu.ComboMode.DrawDamage:Value() then
		for i, hero in pairs(self:GetEnemyHeroes()) do
			local barPos = hero.hpBar
			if not hero.dead and hero.pos2D.onScreen and barPos.onScreen and hero.visible then
				local QDamage = (self:CanCast(_Q) and getdmg("Q",hero,myHero) or 0)
				local WDamage = (self:CanCast(_W) and getdmg("W",hero,myHero) or 0)
				local EDamage = (self:CanCast(_E) and getdmg("E",hero,myHero) or 0)
				local RDamage = (self:CanCast(_R) and getdmg("R",hero,myHero) or 0)
				local damage = QDamage + WDamage + EDamage + RDamage
				if damage > hero.health then
					Draw.Text("killable", 24, hero.pos2D.x, hero.pos2D.y,Draw.Color(0xFF00FF00))
					
				else
					local percentHealthAfterDamage = math.max(0, hero.health - damage) / hero.maxHealth
					local xPosEnd = barPos.x + barXOffset + barWidth * hero.health/hero.maxHealth
					local xPosStart = barPos.x + barXOffset + percentHealthAfterDamage * 100
					Draw.Line(xPosStart, barPos.y + barYOffset, xPosEnd, barPos.y + barYOffset, 10, Draw.Color(0xFF00FF00))
				end
			end
		end	
	end
end
function Darius:CastSpell(spell,pos)
	local customcast = self.Menu.CustomSpellCast:Value()
	if not customcast then
		Control.CastSpell(spell, pos)
		return
	else
		local delay = self.Menu.delay:Value()
		local ticker = GetTickCount()
		if castSpell.state == 0 and ticker > castSpell.casting then
			castSpell.state = 1
			castSpell.mouse = mousePos
			castSpell.tick = ticker
			if ticker - castSpell.tick < Game.Latency() then
				SetMovement(false)
				Control.SetCursorPos(pos)
				Control.KeyDown(spell)
				Control.KeyUp(spell)
				DelayAction(LeftClick,delay/1000,{castSpell.mouse})
				castSpell.casting = ticker + 500
			end
		end
	end
end
function Darius:Combo()
if self:CanCast(_R) and self:EnemyInRange(458) then
local RTarget = CurrentTarget(458)
		local RDamage = (self:CanCast(_R) and getdmg("R",hero,myHero) or 0)
if self.Menu.ComboMode.UseR:Value() and RTarget then
if RDamage > RTarget.health and myHero.pos:DistanceTo(RTarget.pos) < 458 then
			 Control.CastSpell(HK_R, RTarget)
end
end
end
if self.Menu.ComboMode.UseHYDRA:Value() and self:EnemyInRange(174) then
if myHero.attackData.state == STATE_WINDDOWN and not self:CanCast(_W) then
UseHydra()
end
end
if self:CanCast(_E) and self:EnemyInRange(500) then
		local ETarget = CurrentTarget(500)
		if self.Menu.ComboMode.UseE:Value() and ETarget and not self:CanCast(_Q) then
			if self:EnemyInRange(500) and myHero.pos:DistanceTo(ETarget.pos) < 500 and myHero.pos:DistanceTo(ETarget.pos) > 190 then
castPos = ETarget:GetPrediction(1500, 0.25)
				self:CastSpell(HK_E, castPos)
			end
		end
	end
	if self:CanCast(_Q) and self:EnemyInRange(425) then
		local QTarget = CurrentTarget(425)
		if self.Menu.ComboMode.UseQ:Value() and QTarget then
if self:EnemyInRange(425) and myHero.pos:DistanceTo(QTarget.pos) > 215 then
				self:CastSpell(HK_Q, QTarget)
end
		end
	end
	if self:CanCast(_W) and self:EnemyInRange(175) then
		local WTarget = CurrentTarget(175)
		if self.Menu.ComboMode.UseW:Value() and WTarget then
			if self:EnemyInRange(175) and myHero.attackData.state == STATE_WINDDOWN then
				Control.CastSpell(HK_W, WTarget)
--Control.Attack(WTarget)
			end
		end
	end
end
function Darius:GetEnemyHeroes()
	self.EnemyHeroes = {}
	for i = 1, Game.HeroCount() do
		local Hero = Game.Hero(i)
		if Hero.isEnemy then
			table.insert(self.EnemyHeroes, Hero)
		end
	end
	return self.EnemyHeroes
end
function Darius:EnemyInRange(range)
	local count = 0
	for i, target in ipairs(self:GetEnemyHeroes()) do
		if target.pos:DistanceTo(myHero.pos) < range then
			count = count + 1
		end
	end
	return count
end
function Darius:Harass()
if self.Menu.ComboMode.UseHYDRA:Value() and self:EnemyInRange(174) then
if myHero.attackData.state == STATE_WINDDOWN and not self:CanCast(_W) then
UseHydra()
end
end
if self:CanCast(_E) and self:EnemyInRange(500) then
		local ETarget = CurrentTarget(500)
		if self.Menu.HarassMode.UseE:Value() and ETarget and not self:CanCast(_Q) then
			if self:EnemyInRange(500) and myHero.pos:DistanceTo(ETarget.pos) < 500 and myHero.pos:DistanceTo(ETarget.pos) > 190 then
castPos = ETarget:GetPrediction(1500, 0.25)
				self:CastSpell(HK_E, castPos)
			end
		end
	end
	if self:CanCast(_Q) and self:EnemyInRange(425) then
		local QTarget = CurrentTarget(425)
		if self.Menu.HarassMode.UseQ:Value() and QTarget then
if self:EnemyInRange(425) and myHero.pos:DistanceTo(QTarget.pos) > 215 then
				Control.CastSpell(HK_Q)
end
		end
	end
	if self:CanCast(_W) and self:EnemyInRange(175) then
		local WTarget = CurrentTarget(175)
		if self.Menu.HarassMode.UseW:Value() and WTarget then
			if self:EnemyInRange(175) and myHero.attackData.state == STATE_WINDDOWN then
				Control.CastSpell(HK_W, WTarget)
--Control.Attack(WTarget)
			end
		end
	end
	
end
function Darius:Jungle()
	for i = 1, Game.MinionCount() do
	local minion = Game.Minion(i)
if minion and minion.team == 300 or minion.team ~= myHero.team then
--[[if self:CanCast(_E) and minion then
		if self.Menu.ClearMode.UseE:Value() and self.Menu.ComboMode.Key:Value() == false and not self:HasBuff(myHero, "DariusCounterStrike") then
			if myHero.pos:DistanceTo(minion.pos) < 175 then
				Control.CastSpell(HK_E)
			end
		end
if self.Menu.ClearMode.UseE:Value() and self.Menu.ComboMode.Key:Value() == true and not self:HasBuff(myHero, "DariusCounterStrike") then
			if myHero.pos:DistanceTo(minion.pos) < 700 and self:CanCast(_Q) then
				Control.CastSpell(HK_E)
			end
		end
	end]]
if self.Menu.ComboMode.UseHYDRA:Value() and minion then
if myHero.attackData.state == STATE_WINDDOWN and not self:CanCast(_W) and myHero.pos:DistanceTo(minion.pos) < 170 then
UseHydraminion()
end
end
	if self:CanCast(_Q) and minion then
		if self.Menu.ClearMode.UseQ:Value() and ValidTarget(minion, 425) then
if myHero.pos:DistanceTo(minion.pos) > 210 then
				Control.CastSpell(HK_Q)
end
		end
	end
	if self:CanCast(_W) and minion then
		if self.Menu.ClearMode.UseW:Value() and ValidTarget(minion, 175) then
			if myHero.pos:DistanceTo(minion.pos) < 175 and myHero.attackData.state == STATE_WINDDOWN then
				Control.CastSpell(HK_W)
--Control.Attack(minion)
			end
		end
	end
	end
	end
end
function OnLoad()
	Darius()
end