-
Notifications
You must be signed in to change notification settings - Fork 199
/
Copy pathKarthus Backup
185 lines (159 loc) · 5.63 KB
/
Karthus Backup
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
--[[
___ _ _______ ______ _______ __ __ __ __ _______ _______
| | | || _ || _ | | || | | || | | || || |
| |_| || |_| || | || |_ _|| |_| || | | || _____||____ |
| _|| || |_||_ | | | || |_| || |_____ ____| |
| |_ | || __ | | | | || ||_____ || ______|
| _ || _ || | | | | | | _ || | _____| || |_____
|___| |_||__| |__||___| |_| |___| |__| |__||_______||_______||_______|
by DeadDevil2. Enjoy!
Chanelog:
v1.0 inital release
]]
if myHero.charName ~= "Karthus" then
return
end
require 'VPrediction'
local version = 1.0
local AUTOUPDATE = true
local SCRIPT_NAME = "deadkarthus"
local HWID
local ID
local id
local Edelay, orbwalk, check = true, true, true
local VP = nil
local SOURCELIB_URL = "https://raw.github.com/TheRealSource/public/master/common/SourceLib.lua"
local SOURCELIB_PATH = LIB_PATH.."SourceLib.lua"
if FileExist(SOURCELIB_PATH) then
require("SourceLib")
else
DONLOADING_SOURCELIB = true
DownloadFile(SOURCELIB_URL, SOURCELIB_PATH, function() print("Required libraries downloaded successfully, please reload") end)
end
if DOWNLOADING_SOURCELIB then print("Downloading required libraries, please wait...") return end
local RequireI = Require("SourceLib")
RequireI:Check()
if AUTOUPDATE then
SourceUpdater(SCRIPT_NAME, version, "raw.github.com", "/dd2repo/BoL/master/"..SCRIPT_NAME..".lua", SCRIPT_PATH .. GetCurrentEnv().FILE_NAME, "/dd2repo/BoL/master/"..SCRIPT_NAME..".version"):CheckUpdate()
end
function OnLoad()
Vars()
Menu()
end
function Vars()
ts = TargetSelector(TARGET_LESS_CAST_PRIORITY,950)
VP = VPrediction()
m = scriptConfig("DEADSERIES - KARTHUS", "deadkarthus")
end
function Menu()
m:addSubMenu("Combo Settings", "combosettings")
m.combosettings:addParam("useq", "Use Q", SCRIPT_PARAM_ONOFF, true)
m.combosettings:addParam("usew", "Use W", SCRIPT_PARAM_ONOFF, true)
m.combosettings:addParam("usee", "Use E", SCRIPT_PARAM_ONOFF, true)
m:addSubMenu("Harass Settings", "harasssettings")
m.harasssettings:addParam("usehq", "Use Q", SCRIPT_PARAM_ONOFF, true)
m.harasssettings:addParam("usehw", "Use W", SCRIPT_PARAM_ONOFF, true)
m.harasssettings:addParam("mana", "Stop Harass if Mana under -> %", SCRIPT_PARAM_SLICE, 10, 0, 100, 0)
m:addSubMenu("Legit Settings", "legit")
m.legit:addParam("lmode", "Legit Mode", SCRIPT_PARAM_ONKEYTOGGLE, false, string.byte("N"))
m.legit:addParam("orbing", "Orbwalking", SCRIPT_PARAM_ONOFF, true)
m.legit:addParam("stutter", "Stutterstep after every E", SCRIPT_PARAM_ONOFF, false)
m.legit:addParam("edelaym", "Delay between E's", SCRIPT_PARAM_SLICE, 1, 0.5, 2, 2)
m:addSubMenu("Item Settings", "items")
m.items:addParam("enableautozhonya", "Auto Zhonya's", SCRIPT_PARAM_ONOFF, false)
m.items:addParam("autozhonya", "Zhonya's if Health under -> %", SCRIPT_PARAM_SLICE, 10, 0, 100, 0)
m:addSubMenu("Drawings", "draws")
m.draws:addParam("drawq", "Draw Q & W range", SCRIPT_PARAM_ONOFF, false)
m.draws:addParam("drawe", "Draw E range", SCRIPT_PARAM_ONOFF, false)
m.draws:addParam("drawr", "Draw R range", SCRIPT_PARAM_ONOFF, false)
m:addSubMenu("Kill Steal", "ks")
m.ks:addParam("kse", "KS with E", SCRIPT_PARAM_ONOFF, false)
m.ks:addParam("ksr", "KS with R", SCRIPT_PARAM_ONOFF, false)
m:addParam("combokey", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, 32)
m:addParam("harass", "Toogle Auto Harass", SCRIPT_PARAM_ONKEYTOGGLE, false, string.byte("C"))
m:addTS(ts)
ts.name = "Legit"
PrintChat ("<font color='#4ECB65'>Legit Cassiopeia v1.0 by DeadDevil2 Loaded! </font>")
end
function OnTick()
checks()
Combo()
walk()
autokill()
Harass()
autozhonya()
end
function checks()
ts:update()
Qready = (myHero:CanUseSpell(_Q) == READY)
Wready = (myHero:CanUseSpell(_W) == READY)
Eready = (myHero:CanUseSpell(_E) == READY)
Rready = (myHero:CanUseSpell(_R) == READY)
target = ts.target
end
function OnGainBuff(unit, buff)
if buff.name == '' and unit.isMe then
usinge = true
end
end
function OnLoseBuff(unit, buff)
if buff.name == '' and unit.isMe then
usinge = false
end
end
function CastPreQ(unit)
local CastPosition, HitChance, Position = VP:GetCircularCastPosition(target, 0.5, 90, 925, 1800, myHero)
if HitChance >= 2 then
CastSpell(_Q, CastPosition.x, CastPosition.z)
end
end
function CountEnemyHeroInRange(range)
local enemyInRange = 0
for i = 1, heroManager.iCount, 1 do
local hero = heroManager:getHero(i)
if ValidTarget(hero,range) then
enemyInRange = enemyInRange + 1
end
end
return enemyInRange
end
function Combo()
if not target then return
end
if m.combokey then
if Qready and m.combosettings.useq and target then
CastPreQ(target)
end
if Wready and m.combosettings.usew and target then
CastSpell(_W, target)
end
if CountEnemyHeroInRange(315) >= 1
function autozhonya()
if m.items.enableautozhonya then
if myHero.health <= (myHero.maxHealth * m.items.autozhonya / 100) then CastItem(3157)
end
end
end
function Harass()
if not target then return
end
if m.harass and (myHero.maxMana * m.harasssettings.mana / 100) <= myHero.mana then
if Qready and m.harasssettings.usehq and target then
CastPreQ(target)
end
if Wready and m.harasssettings.usehw and target then
CastPreW(target)
end
end
end
function OnDraw()
if m.draws.drawq then
DrawCircle(myHero.x, myHero.y, myHero.z, 925, ARGB(255, 255, 255, 255))
end
if m.draws.drawe then
DrawCircle(myHero.x, myHero.y, myHero.z, 690, ARGB(255, 255, 255, 255))
end
if m.draws.drawr then
DrawCircle(myHero.x, myHero.y, myHero.z, 850, ARGB(255, 255, 255, 255))
end
end