You are on page 1of 61

if myHero.

charName ~= "Veigar" then return end


local version = 3.44
--[GLOBALS]-local DFG = nil
local ignite = nil
local qRange = 650
local lastFarmCheck = 0
local farmCheckTick = 100
local int1 = 0
local int2 = 0
local int3 = 0
local int4 = 0
local int5 = 0
local int6 = 0
local int7 = 0
local eTarget = nil
local CT = 1000
local Comboing = false
local ComboTick = 0
local znaReady = 0
local wgtReady = 0
local expos
local prodstatus = false
local lastSkin = 0
local ctarget = nil
local rtarg = nil
local m = nil
local lx = nil
local lz = nil
local ftarget = nil
local tt = nil
local dd = nil
local tenff = nil
local tenvar = nil
--[KEYS]-local autoFarmKey = string.byte("J")
local AutoBuy = string.byte("P")
--[[Orbwalker]]
local LastAttack = 0
local LastWindUp = 0
local LastAnimationT = 0
--[SKILL INFO]-local Q = 0
local W = 0
local E = 0
local R = 0
local ignitos = 0
local DFGI = 0
local QQ = 0
local WW = 0
local EE = 0
local RR = 0
local ignitoss = 0
local DFGII = 0
--[SKILL LVLS]-local Qlevel = 0
local Wlevel = 0

local Elevel = 0
local Rlevel = 0
--[Skill attributes]-local qrange = 650
local ignrange = 600
local wcastspeed = 1.25
local wrange = 900
local wradius = 230
local eradius = 330
local erange = 600
local ecastspeed = 0.34
local aarange = 525
local xprange = 1400
local eradius = 330
local erange = 600
local wRange = 900
local Edelay = 0.2
local Ewidth = 10
local Wdelay = 1.25
local aatrange = nil
local aatcount = nil
--[MANACOSTS]-local QMana = {60, 65, 70, 75, 80}
local WMana = {70, 80, 90, 100, 110}
local EMana = { 80, 90, 100, 110, 120}
local RMana = {125, 175, 225}
local ComboMana = GetSpellData(_Q).mana + GetSpellData(_W).mana + GetSpellData(_
E).mana + GetSpellData(_R).mana
--[AUTO POTIONS]-local hppot = 0
local mppot = 0
local elixir = 0
local flaskk = 0
local Biscuit = 0
local
local
local
local
local
local
local

hppot = GetInventorySlotItem(2003)
mppot = GetInventorySlotItem(2004)
elixir = GetInventorySlotItem(2037)
flaskk = GetInventorySlotItem(2041)
Biscuit = GetInventorySlotItem(2010)
zhonya = GetInventorySlotItem(3157)
wooglet = GetInventorySlotItem(3090)

--[AUTOLEVEL]-local abilitySequence
local qOff, wOff, eOff, rOff = 0,0,0,0
--[LAG
local
local
local

FREE INFO]-eCircleColor = ARGB(255,255,0,255)--0xB820C3 -- purple by default


wCircleColor = ARGB(255,255,0,0)--0xEA3737 -- orange by default
qCircleColor = ARGB(255,0,255,0)--0x19A712 --green by default

--[V2 STUN]-local cageSpellRange = 650


local cageItselfRange = 375
local cageDiff = 50
local cageRange = cageSpellRange + (cageItselfRange/2) - cageDiff -- spell range

+ range of cage
local enemyMinions = minionManager(MINION_ENEMY, 650, player, function(a, b) ret
urn a.expBonus > b.expBonus end)
local AGCLIST = {
["Aatrox"] = {gcName = "AatroxQ"},
["Ahri"] = {gcName = "AhriTumble"},
["Alistar"] = {gcName = "Headbutt"},
["Corki"] = {gcName = "CarpetBomb"},
["Diana"] = {gcName = "DianaTeleport"},
["Ezreal"] = {gcName = "EzrealArcaneShift"},
["Fiora"] = {gcName = "FioraQ"},
["Fizz"] = {gcName = "FizzPiercingStrike"},
["Gnar"] = {gcName = "GnarE", "gnarbige"},
["Gragas"] = {gcName = "GragasE"},
["Graves"] = {gcName = "GravesMove"},
["Hecarim"] = {gcName = "HecarimUlt"},
["Irelia"] = {gcName = "IreliaGatotsu"},
["JarvanIV"] = {gcName = "JarvanIVDragonStrike"},
["Jax"] = {gcName = "JaxLeapStrike"},
["Khazix"] = {gcName = "KhazixE"},
["Leblanc"] = {gcName = "LeblancSlide", "LeblancSlideM"},
["LeeSin"] = {gcName = "blindmonkqtwodash"},
["Leona"] = {gcName = "LeonaZenithBlade"},
["Lucian"] = {gcName = "LucianE"},
["Maokai"] = {gcName = "MaokaiUnstableGrowth"},
["MonkeyKing"] = {gcName = "MonkeyKingNimbus"},
["Nautilus"] = {gcName = "NautilusAnchorDrag"},
["Nidalee"] = {gcName = "Pounce"},
["Pantheon"] = {gcName = "PantheonW"},
["Poppy"] = {gcName = "PoppyHeroicCharge"},
["Quinn"] = {gcName = "QuinnE", "QuinnValorE"},
["Renekton"] = {gcName = "RenektonSliceAndDice"},
["Riven"] = {gcName = "RivenTriCleave"},
["Sejuani"] = {gcName = "SejuaniArcticAssault"},
["Shen"] = {gcName = "ShenShadowDash"},
["Thresh"] = {gcName = "threshqleap"},
["Tristana"] = {gcName = "RocketJump"},
["Tryndamere"] = {gcName = "slashCast"},
["Vi"] = {gcName = "ViQ"},
["Volibear"] = {gcName = "VolibearQ"},
["XinZhao"] = {gcName = "XenZhaoSweep"},
["Yasuo"] = {gcName = "YasuoDashWrapper"},
["Zac"] = {gcName = "ZacE"},
}
local CCBUFFS = {
["aatroxqknockup"] = true,
["ahriseducedoom"] = true,
["powerfistslow"] = true,
["braumstundebuff"] = true,
["rupturetarget"] = true,
["EliseHumanE"] = true,
["Flee"] = true,
["HowlingGaleSpell"] = true,
["jarvanivdragonstrikeph2"] = true,
["karmaspiritbindroot"] = true,
["LuxLightBindingMis"] = true,
["lissandrawfrozen"] = true,
["maokaiunstablegrowthroot"] = true,

["DarkBindingMissile"] = true,
["namiqdebuff"] = true,
["nautilusanchordragroot"] = true,
["RunePrison"] = true,
["Taunt"] = true,
["Stun"] = true,
["swainshadowgrasproot"] = true,
["threshqfakeknockup"] = true,
["velkozestun"] = true,
["virdrunkstun"] = true,
["viktorgravitationfieldstun"] = true,
["supression"] = true,
["yasuoq3mis"] = true,
["zyragraspingrootshold"] = true,
["VeigarStun"] = true,
}
local AGCSPELLS = {
["SummonerFlash"] = true,
}
local TELESPELLS = {
["PantheonRFall"] = true,
--["LeblancSlide"] = true,
--["LeblancSlideM"] = true,
["gate"] = true,
["Crowstorm"] = true,
}
--[Interuptions]-local InterruptList = {"CaitlynAceintheHole", "Crowstorm", "DrainChannel
", "GalioIdolOfDurand", "KatarinaR", "InfiniteDuress", "AbsoluteZero", "MissFort
uneBulletTime", "AlZaharNetherGrasp", "DariusExecute", "AhriTumble", "FallenOne"
, "LucianR", "SoulShackles", "UndyingRage", "GrandSkyfall", "VolibearQ", "Monkey
KingSpinToWin", "XerathLocusOfPower2", "ZacR"}
--[MAIN PART]
function OnLoad()
player = myHero
PrintChat("<font color=\"#ffffff\">You are using Veigar Little Helper ["
..version.."] by DedToto.</font>")
enemyMinions = minionManager(MINION_ENEMY, qrange, myHero, MINION_SORT_H
EALTH_ASC)
player = GetMyHero()
UpdateCheck()
IgniteSlot()
MakeAGCTable()
spaceHK = 32
VeigarConfig = scriptConfig("Veigar, the Tiny Master Of Evil", "littlehe
lper")
VeigarConfig:addSubMenu("Combo","combo")
VeigarConfig.combo:addSubMenu("Auto R/Q/IGN Killable","a
utokillf")
VeigarConfig.combo.autokillf:addParam("autokill", "Auto
ULT/Q/IGN killable", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.combo.autokillf:addParam("user", "Use R", S
CRIPT_PARAM_ONOFF, false)
VeigarConfig.combo.autokillf:addParam("useq", "Use Q", S
CRIPT_PARAM_ONOFF, true)
VeigarConfig.combo.autokillf:addParam("usedfg", "Use DFG

", SCRIPT_PARAM_ONOFF, false)


VeigarConfig.combo.autokillf:addParam("useign", "Use IGN
", SCRIPT_PARAM_ONOFF, false)
VeigarConfig.combo.autokillf:addParam("saveab", "Don't w
aste spells if OverDmg is > than", SCRIPT_PARAM_ONOFF, false)
VeigarConfig.combo.autokillf:addParam("saveabsl", "OverD
amage config ", SCRIPT_PARAM_SLICE, 1, 1, 1000, 0)
VeigarConfig.combo:addParam("table","------------------Settings-------------",SCRIPT_PARAM_INFO,"")
if VIP_USER then VeigarConfig.combo:addParam("packet", "
Use Packets to Cast Skills", SCRIPT_PARAM_ONOFF, false) end
VeigarConfig.combo:addParam("newts", "Left Click LOCK Ta
rget", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.combo:addParam("newtsr", "Auto remove lock
from dead target", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.combo:addParam("ShowMana", "Show Time for c
ombo mana regen", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.combo:addParam("showsecs", "Show Time left
for kill combo[TEST]", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.combo:addParam("showsecsc", "Show Time if n
eeded CD is <", SCRIPT_PARAM_SLICE, 15, 1, 190, 0)
VeigarConfig.combo:addParam("savedfg", "Only use DFG in
all-in like combos", SCRIPT_PARAM_ONOFF, false)
VeigarConfig.combo:addParam("tryq", "Always try to lasth
it enemy with Q", SCRIPT_PARAM_ONOFF, false)
VeigarConfig.combo:addParam("wf", "Always use W first",
SCRIPT_PARAM_ONOFF, false)
VeigarConfig.combo:addParam("moveway", "Select Combo Mov
ement way", SCRIPT_PARAM_LIST, 1, { "None", "Move To Mouse","OrbWalk"})
VeigarConfig.combo:addParam("table","------------------Combos-------------",SCRIPT_PARAM_INFO,"")
VeigarConfig.combo:addParam("lightcombo", "Light Combo E
+W+Q", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("Z"))
VeigarConfig.combo:addParam("wasteall", "Cast everything
in target", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("C"))
VeigarConfig.combo:addParam("spacebarActive", "SpaceToWi
n(SmartCombo)", SCRIPT_PARAM_ONKEYDOWN, false, spaceHK)
VeigarConfig:addSubMenu("E and W","ew")
VeigarConfig.ew:addParam("stunv", "Select E logic", SCRI
PT_PARAM_LIST, 3, { "Logic A", "Logic B","Logic C"})
VeigarConfig.ew:addParam("eCastActive", "Use E+W", SCRIP
T_PARAM_ONKEYDOWN, false, string.byte("E"))
VeigarConfig.ew:addParam("cageTeamActive", "Cage Team",
SCRIPT_PARAM_ONKEYDOWN, false, string.byte("G"))
VeigarConfig.ew:addParam("stuncl", "Stun Closest Enemy",
SCRIPT_PARAM_ONKEYDOWN, false, string.byte("A"))
VeigarConfig.ew:addParam("forcestun", "Always cast E(eve
n for Q+R kill)", SCRIPT_PARAM_ONOFF, false)
VeigarConfig.ew:addParam("wppl", "Use W on any CC'ed ene
mies", SCRIPT_PARAM_ONOFF, false)
if VIP_USER then VeigarConfig.ew:addParam("stuntt", "Stu
n Enemies attacked by turret", SCRIPT_PARAM_ONOFF, true) end
VeigarConfig.ew:addParam("interrupt", "Use E to interrup
t channeled ultimates", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.ew:addParam("stuntp", "Use E on End Positio
n of TP spells[TEST]", SCRIPT_PARAM_ONOFF, false)
VeigarConfig.ew:addSubMenu("Interrupt list", "List")

for i, spell in ipairs(InterruptList) do


VeigarConfig.ew.List:addParam(spell, "Interrupt "..spell
, SCRIPT_PARAM_ONOFF, true)
end
VeigarConfig:addSubMenu("Drawing","draw")
VeigarConfig.draw:addParam("table","------------------MyHero Rel
ated--------------",SCRIPT_PARAM_INFO,"")
VeigarConfig.draw:addParam("Erange", "Draw E,Q,R range",
SCRIPT_PARAM_ONOFF, true)
VeigarConfig.draw:addParam("ErangeMax", "Draw E rangeMax
", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.draw:addParam("Wrange", "Draw W range", SCR
IPT_PARAM_ONOFF, false)
VeigarConfig.draw:addParam("AArange", "Draw AA range", S
CRIPT_PARAM_ONOFF, false)
VeigarConfig.draw:addParam("XPrange", "Draw XP range", S
CRIPT_PARAM_ONOFF, false)
VeigarConfig.draw:addParam("drawKillableMinions", "Draw
Circle around killable minions", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.draw:addParam("LifeSaverRange", "Draw LifeS
aver range", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.draw:addParam("table1","------------------Enemies R
elated-------------",SCRIPT_PARAM_INFO,"")
VeigarConfig.draw:addParam("drawvar", "Select drawings l
ocation", SCRIPT_PARAM_LIST, 1, { "Near HP bar", "In the middle of a champ"})
--VeigarConfig.draw:addParam("showkt", "Show Kill table"
, SCRIPT_PARAM_ONKEYDOWN, false, string.byte("226"))
VeigarConfig.draw:addParam("warnab", "Warn if E stun < W
cast time", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.draw:addParam("targg", "Mark Target with ci
rcle", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.draw:addParam("targ", "Draw line to Target(
for team fights)", SCRIPT_PARAM_ONOFF, false)
VeigarConfig.draw:addParam("ExtraInfo", "Draw best combo
for kill", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.draw:addParam("MainCalc", "Draw Extra/Neede
d damage", SCRIPT_PARAM_ONOFF, true)
VeigarConfig.draw:addParam("drawLagFree","Lag free circles", SCRIPT_PARA
M_ONOFF, true)
VeigarConfig.draw:addParam("chordLength","Lag Free Chord Length", SCRIPT
_PARAM_SLICE, 75, 75, 2000, 0)
VeigarConfig:addSubMenu("AutoFarm","farm")
VeigarConfig.farm:addParam("autoFarm", "Auto farm with Q", SCRIP
T_PARAM_ONKEYTOGGLE, false, autoFarmKey)
VeigarConfig.farm:addParam("EnabledW", "Auto farm with W", SCRIP
T_PARAM_ONKEYTOGGLE, false, string.byte("K"))
VeigarConfig.farm:addParam("manasavep", "Mana % to conserve", SC
RIPT_PARAM_SLICE, 1, 1, 100, 0)
VeigarConfig.farm:addParam("manasave", "Conserve mana during far
m", SCRIPT_PARAM_ONOFF,false)
VeigarConfig.farm:addParam("SaveE", "Dont farm if Mana < EManaCo
st", SCRIPT_PARAM_ONOFF, false)
VeigarConfig.farm:addParam("orbw", "Move To Mouse when farming",
SCRIPT_PARAM_ONOFF, false)
VeigarConfig.farm:addParam("farmm", "Select Q farming way prefer

ence", SCRIPT_PARAM_LIST, 1, { "Turn ON/OFF", "Hold and farm"})


VeigarConfig.farm:addParam("farmmm", "Select W farming way prefe
rence", SCRIPT_PARAM_LIST, 2, { "Turn ON/OFF", "Hold and farm"})
VeigarConfig:addSubMenu("Harras","harras")
VeigarConfig.harras:addParam("Qharras", "Harras enemy in range w
ith Q", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("V"))
VeigarConfig.harras:addParam("manasaveQP", "Mana % to conserve",
SCRIPT_PARAM_SLICE, 1, 1, 100, 0)
VeigarConfig.harras:addParam("moveto", "MoveToMouse when harrasi
ng", SCRIPT_PARAM_ONOFF,false)
VeigarConfig.harras:addParam("manasaveQ", "Conserve mana during
harras", SCRIPT_PARAM_ONOFF,false)
VeigarConfig:addSubMenu("Auto Potions","AP")
VeigarConfig.AP:addParam("pots", "Use autopotions", SCRIPT_PARAM
_ONOFF, false)
VeigarConfig.AP:addParam("hp", "Use potions when HP < %", SCRIPT
_PARAM_SLICE, 60, 0, 100, 0)
VeigarConfig.AP:addParam("mp", "Use potions when Mana < %", SCRI
PT_PARAM_SLICE, 15, 0, 100, 0)
VeigarConfig.AP:addParam("elixir", "Auto Elixir of Fortitude whe
n < %", SCRIPT_PARAM_SLICE, 0, 1, 100, 0)
VeigarConfig:addSubMenu("Life Saver","LifeSaver")
VeigarConfig.LifeSaver:addParam("LifeSaver", "Stun enemies Who c
ome too close", SCRIPT_PARAM_ONOFF, false)
VeigarConfig.LifeSaver:addSubMenu("Anti-Gap closer settings", "l
istSub")
VeigarConfig.LifeSaver.listSub:addParam("gapc", "Stun enemies wh
o use gap closers[TEST]", SCRIPT_PARAM_ONOFF, false)
VeigarConfig.LifeSaver.listSub:addParam("gapcr", "Range in which
stun gapc users", SCRIPT_PARAM_SLICE, 650, 10, 1000, 0)
for _, enemy in ipairs(GetEnemyHeroes()) do
VeigarConfig.LifeSaver.listSub:addParam(enemy.ch
arName, "Use AntiGapClose on:"..enemy.charName, SCRIPT_PARAM_ONOFF, true)
end
VeigarConfig.LifeSaver:addParam("LifeSaverRange","Range of LifeS
aver", SCRIPT_PARAM_SLICE, 400, 1, 800, 0)
VeigarConfig.LifeSaver:addParam("usew", "Use W on enemies caught
in LifeSaver", SCRIPT_PARAM_ONOFF, false)
VeigarConfig.LifeSaver:addParam("zwsave", "Auto activate Zhonyas
/Wooglets/Seraph", SCRIPT_PARAM_ONOFF, false)
VeigarConfig.LifeSaver:addParam("zwhealth", "HP% Zhonyas/Wooglet
s/Seraph", SCRIPT_PARAM_SLICE, 15, 5, 100, 0)
VeigarConfig.LifeSaver:addParam("antign", "Auto Pots when ignite
d/morde R", SCRIPT_PARAM_ONOFF, true)
VeigarConfig:addSubMenu("Other","other")
if VIP_USER then VeigarConfig.other:addParam("skin", "Use change
skin", SCRIPT_PARAM_ONOFF, false) end
if VIP_USER then VeigarConfig.other:addParam("skin1", "Skin chan
ge(VIP)", SCRIPT_PARAM_SLICE, 5, 1, 8) end
if VeigarConfig.other.skin and VIP_USER then
GenModelPacket("Veigar", VeigarConfig.other.skin1)
lastSkin = VeigarConfig.other.skin1
end
VeigarConfig.other:addParam("AutoBuy", "Buy Starting Items", SCR
IPT_PARAM_ONKEYDOWN, false, AutoBuy)
VeigarConfig.other:addParam("Autolvl", "Auto level up skills", S

CRIPT_PARAM_ONOFF, false)
VeigarConfig.other:addParam("lvlup", "Select skill sequence", SC
RIPT_PARAM_LIST, 1, { "Q>W>E", "W>Q>E", "W>E>Q" })
VeigarConfig.other:addParam("Death", "Show Info After Death", SC
RIPT_PARAM_ONOFF, false)
VeigarConfig.other:addParam("tsremove", "Remove Current Lock", S
CRIPT_PARAM_ONKEYDOWN, false, string.byte("L"))
VeigarConfig:addParam("info",">> Version "..version.."",SCRIPT_PARAM_INF
O,"")
VeigarConfig.combo:permaShow("spacebarActive")
VeigarConfig.combo:permaShow("wasteall")
VeigarConfig.combo:permaShow("lightcombo")
VeigarConfig.farm:permaShow("autoFarm")
VP = VPrediction(true)
NSOW = SOW(VP)
ts = TargetSelector(TARGET_LOW_HP, 1525, DAMAGE_MAGIC)
ts.name = "Veigar"
EnemyMinions = minionManager(MINION_ENEMY, qrange, myHero, MINION_SORT_H
EALTH_ASC)
EnemyMinions2 = minionManager(MINION_ENEMY, wrange, myHero, MINION_SORT_
HEALTH_ASC)
VeigarConfig:addTS(ts)
VeigarConfig:addSubMenu("["..myHero.charName.." - OrbWalking]", "OrbWalk
ing")
NSOW:LoadToMenu(VeigarConfig.OrbWalking)
startsprite = GetWebSprite("http://puu.sh/be5pB/4f7556bc18.png")
end
function _drawstartsprite()
if startsprite and GetInGameTimer() >= 1 and GetInGameTimer() <= 20 then
local chPos = WorldToScreen(D3DXVECTOR3(myHero.x, myHero.y, myHero.z))
startsprite:Draw(WINDOW_W*0.83, WINDOW_H*0.33, 255)
end
end
function OnTick()
Checks()
AutoBuyy()
autoFarm()
ManaCosts()
AutoWharrasQ()
EWandCage()
Potions()
AutoLevel()
LifeSaver()
freecheck()
autokiller()
if VeigarConfig.other.skin and VIP_USER and skinChanged() then
GenModelPacket("Veigar", VeigarConfig.other.skin1)
lastSkin = VeigarConfig.other.skin1
end
aa()
enemyMinions:update()
end
function OnDraw()

_drawstartsprite()
ManaRegenSec()
if not myHero.dead or VeigarConfig.other.Death then
DamageCalculator()
ExtraInformation()
Drawing()
end
end
--[END OF THE MAIN PART]
--[[
function OnReady()
BuyItem(1004)
BuyItem(2003)
BuyItem(2003)
BuyItem(2003)
BuyItem(2003)
BuyItem(2003)
BuyItem(2004)
BuyItem(2004)
BuyItem(2004)
BuyItem(3340)
end
--]]
local NegativBuffTypes = {
[5] = true, --stun
}
function OnGainBuff(unit, buff) --vip only
if unit and unit.valid and BuffIsValid(buff) and NegativBuffTypes[buff.t
ype] and unit.type == myHero.type and unit.team ~= myHero.team then
if VeigarConfig.combo.lightcombo or VeigarConfig.combo.wasteall
or VeigarConfig.combo.spacebarActive or VeigarConfig.ew.cageTeamActive or Veigar
Config.ew.eCastActive then
if rtarg ~= nil and unit.name == rtarg.name then
if not VeigarConfig.ew.wppl then ProdictionWCall
back(unit, unit, _W) else if IsOnCC(unit) then ProdictionWCallback(unit, unit, _
W) end end
end
end
end
end
function IsOnCC(target)
assert(type(target) == 'userdata', "IsOnCC: Wrong type. Expected userdat
a got: "..tostring(type(target)))
for i = 1, target.buffCount do
tBuff = target:getBuff(i)
if VeigarConfig.ew.wppl then
if BuffIsValid(tBuff) and CCBUFFS[tBuff.name] then
return true
end
else
if BuffIsValid(tBuff) and tBuff.name == "VeigarStun" then
return true
end
end
end
return false
end

function freecheck()
for i, enemy in ipairs(GetEnemyHeroes()) do
if IsOnCC(enemy) then
if VeigarConfig.combo.lightcombo or VeigarConfig.combo.w
asteall or VeigarConfig.combo.spacebarActive or VeigarConfig.ew.cageTeamActive o
r VeigarConfig.ew.eCastActive then
if rtarg ~= nil and enemy.name == rtarg.name and
IsOnCC(rtarg) then
ProdictionWCallback(enemy, enemy, _W)
end
end
end
end
end
function GetHPBarPos(enemy)
enemy.barData = {PercentageOffset = {x = -0.05, y = 0}}
local barPos = GetUnitHPBarPos(enemy)
local barPosOffset = GetUnitHPBarOffset(enemy)
local barOffset = { x = enemy.barData.PercentageOffset.x, y = enemy.barD
ata.PercentageOffset.y }
local barPosPercentageOffset = { x = enemy.barData.PercentageOffset.x, y
= enemy.barData.PercentageOffset.y }
local BarPosOffsetX = -50
local BarPosOffsetY = 46
local CorrectionY = 39
local StartHpPos = 31
barPos.x = math.floor(barPos.x + (barPosOffset.x - 0.5 + barPosPercentag
eOffset.x) * BarPosOffsetX + StartHpPos)
barPos.y = math.floor(barPos.y + (barPosOffset.y - 0.5 + barPosPercentag
eOffset.y) * BarPosOffsetY + CorrectionY)
local StartPos = Vector(barPos.x , barPos.y, 0)
local EndPos = Vector(barPos.x + 108 , barPos.y , 0)
return Vector(StartPos.x, StartPos.y, 0), Vector(EndPos.x, EndPos.y, 0)
end
function MakeAGCTable()
for _, enemy in ipairs(GetEnemyHeroes()) do
if AGCLIST[enemy.charName] then
AGCSPELLS[AGCLIST[enemy.charName].gcName] = true
end
end
end
function MouseOnMinimap()
return CursorIsUnder(GetMinimapX(0), GetMinimapY(14527), WINDOW_W - GetMinim
apX(0), WINDOW_H - GetMinimapY(14527))
end
function OnWndMsg(Msg, Key)
if Msg == WM_LBUTTONDOWN and VeigarConfig.combo.newts then
local minD = 0
local starget = nil
for i, enemy in ipairs(GetEnemyHeroes()) do
if ValidTarget(enemy) then
if GetDistance(enemy, mousePos) <= minD or starg
et == nil then

minD = GetDistance(enemy, mousePos)


starget = enemy
end
end
end
if starget and minD < 500 and not MouseOnMinimap() then
if ftarg ~= nil and starget.charName == ftarg.charName t
hen
ftarg = nil
else
ftarg = starget
end
end
end
end
function skinChanged()
return VeigarConfig.other.skin1 ~= lastSkin
end
function OnTowerFocus(tower, unit)
targt = unit
if GetDistance(player, targt) < (erange + eradius) then
if targt.type == myHero.type and VeigarConfig.ew.stuntt then
useStun(targt)
end
end
end
function OnProcessSpell(unit, spell)
if VeigarConfig.ew.interrupt and E ~= 0 then
if VeigarConfig.ew.List[spell.name] and unit.team ~= myHero.team
then
if (eradius + erange) >= GetDistance(unit) then
ProdictionECallback(Vector(unit.x, 0, unit.z), V
ector(unit.x, 0, unit.z), _E)
PrintChat("<font color=\"#FF0000\">Trying to int
errupt: " .. spell.name.."</font>")
end
end
end
if VeigarConfig.ew.stuntp and TELESPELLS[spell.name] and unit.team ~= my
Hero.team and GetDistanceSqr(myHero, spell.endPos) <= 1000 then
f = 1
fx = spell.endPos.x
fz = spell.endPos.z
if VeigarConfig.ew.stuntp then
castESpellOnTarget(unit)
end
end
if unit.isMe then
if spell.name:lower():find("attack") then
LastWindUp = spell.windUpTime
LastAnimationT = spell.animationTime
LastAttack = os.clock() - GetLatency()/2000
end
end
end

function performLightCombo()
targ = rtarg
UseSpell(_E, targ)
if VeigarConfig.combo.wf then if W ~= 1 then UseSpell(_Q, targ)
end else UseSpell(_Q, targ) end
end
function aa()
if VeigarConfig.autoattack and ValidTarget(rtarg) and GetDistance(rtarg,
myHero) <= 1000 then
myHero:Attack(rtarg)
end
end
function interrupt()
if myHero:CanUseSpell(_E) == READY then
for i, spell in ipairs(spells) do
if VeigarConfig.AutoInterrupt[spell.name] then
for j, LastCast in pairs(LastCastedSpell) do
if LastCast.name == spell.name:lower() and (os.clock() - Las
tCast.time) < 3 and GetDistance(LastCast.caster.visionPos, myHero.visionPos) < e
range + 330 and ValidTarget(LastCast.caster) then
UseSpell(_E,LastCast.caster)
break
end
end
end
end
end
end
function DamageCalculator()
if VeigarConfig.draw.MainCalc then
for i, enemy in ipairs(GetEnemyHeroes()) do
if ValidTarget(enemy) then
local Qdmg = getDmg("Q", enemy, myHero)
local Wdmg = getDmg("W", enemy, myHero)
local Rdmg = getDmg("R", enemy, myHero)
local AAdmg = (getDmg("AD", enemy, myHero))
local DFGdmg = 0
local IGNITEdmg = 0
local DMG = 0 + AAdmg
if ignitos ~= 0 then IGNITEdmg = 50 + 20 * myHero.level
end
if DFGI ~= 0 then DFGdmg = getDmg("DFG", enemy ,myHero)
end
if DFGI ~= 0 then
local DFGDMG = 0
if CanUseSpell(_Q) == READY then DFGDMG = DFGDMG + Qdmg
end
if CanUseSpell(_W) == READY then DFGDMG = DFGDMG + Wdmg
end
if CanUseSpell(_R) == READY then DFGDMG = DFGDMG + Rdmg
end
DFGDMG = DFGDMG * 1.2
DMG = DMG + DFGDMG
if ignitos ~= 0 then DMG = DMG + IGNITEdmg end

DMG = DMG + DFGdmg


else
if CanUseSpell(_Q) == READY then DMG = DMG + Qdmg end
if CanUseSpell(_W) == READY then DMG = DMG + Wdmg end
if CanUseSpell(_R) == READY then DMG = DMG + Rdmg end
if ignitos ~= 0 then DMG = DMG + IGNITEdmg end
end
dd = DMG
end
end
end
end
function autokiller()
for i, enemy in ipairs(GetEnemyHeroes()) do
if ValidTarget(enemy) then
local Qdmg = getDmg("Q", enemy, myHero)
local Wdmg = getDmg("W", enemy, myHero)
local Rdmg = getDmg("R", enemy, myHero)
local AAdmg = (getDmg("AD", enemy, myHero))
local DFGdmg = 0
local IGNITEdmg = 0
local DMG = 0 + AAdmg
local Qdmgi = Qdmg * 1.2
local Wdmgi = Wdmg * 1.2
local Rdmgi = Rdmg * 1.2
if ignitos ~= 0 then IGNITEdmg = 50 + 20 * myHer
o.level end
if DFGI ~= 0 then DFGdmg = getDmg("DFG", enemy ,
myHero) end
if VeigarConfig.combo.autokillf.autokill and not
VeigarConfig.combo.spacebaractive then
if (enemy.health < Qdmg and Q ~= 0 and G
etDistance(enemy) < qrange and VeigarConfig.combo.autokillf.useq) then
UseSpell(_Q, enemy)
elseif (enemy.health < IGNITEdmg
and ignitos ~= 0 and GetDistance(enemy) < ignrange and VeigarConfig.combo.autok
illf.useign) then
if VeigarConfig.combo.autokillf.
saveab then
if (enemy.health - IGNIT
Edmg) > VeigarConfig.combo.autokillf.saveabsl then return end
else
UseSpell(ignite, enemy)
end
elseif (enemy.health < Rdmg and
R ~= 0 and GetDistance(enemy) < qrange and VeigarConfig.combo.autokillf.user) th
en
if VeigarConfig.combo.autokillf.
saveab then
if (enemy.health - Rdmg)
> VeigarConfig.combo.autokillf.saveabsl then return end
else
UseSpell(_R, enemy)
end

elseif (enemy.health < (Qdmg + I


GNITEdmg) and Q ~= 0 and ignitos ~= 0 and GetDistance(enemy) < ignrange and Veig
arConfig.combo.autokillf.useign and VeigarConfig.combo.autokillf.useq) then
if VeigarConfig.combo.autokillf.
saveab then
if (enemy.health - (Qdmg
+ IGNITEdmg)) > VeigarConfig.combo.autokillf.saveabsl then return end
else
UseSpell(ignite, enemy)
UseSpell(_Q, enemy)
end
elseif (enemy.health < (Rdmg + I
GNITEdmg) and R ~= 0 and ignitos ~= 0 and GetDistance(enemy) < ignrange and Veig
arConfig.combo.autokillf.useign and VeigarConfig.combo.autokillf.user) then
if VeigarConfig.combo.autokillf.
saveab then
if (enemy.health - (Rdmg
+ IGNITEdmg)) > VeigarConfig.combo.autokillf.saveabsl then return end
else
UseSpell(_R, enemy)
UseSpell(ignite, enemy)
end
elseif (enemy.health < (Qdmg + R
dmg) and Q ~= 0 and R ~= 0 and GetDistance(enemy) < qrange and VeigarConfig.comb
o.autokillf.useq and VeigarConfig.combo.autokillf.user) then
if VeigarConfig.combo.autokillf.
saveab then
if (enemy.health - (Rdmg
+ Qdmg)) > VeigarConfig.combo.autokillf.saveabsl then return end
else
UseSpell(_R, enemy)
UseSpell(_Q, enemy)
end
elseif (enemy.health < (Qdmgi +
DFGdmg) and Q ~= 0 and DFGI ~= 0 and VeigarConfig.combo.autokillf.usedfg and Get
Distance(enemy) < qrange and VeigarConfig.combo.autokillf.useq) then
if VeigarConfig.combo.autokillf.
saveab then
if (enemy.health - (DFGd
mg + Qdmgi)) > VeigarConfig.combo.autokillf.saveabsl then return end
else
DFG = GetInventorySlotItem(3128)
UseSpell(DFG, enemy)
UseSpell(_Q, enemy)
end
elseif (enemy.health < (IGNITEdm
g + DFGdmg) and ignitos ~= 0 and DFGI ~= 0 and VeigarConfig.combo.autokillf.used
fg and GetDistance(enemy) < ignrange and VeigarConfig.combo.autokillf.useign and
VeigarConfig.combo.autokillf.usedfg ) then
if VeigarConfig.combo.autokillf.
saveab then
if (enemy.health - (DFGd
mg + IGNITEdmg)) > VeigarConfig.combo.autokillf.saveabsl then return end
else
DFG = GetInventorySlotItem(3128)
UseSpell(DFG, enemy)
UseSpell(ignite, enemy)
end
elseif (enemy.health < (Rdmgi +
DFGdmg) and R ~= 0 and DFGI ~= 0 and VeigarConfig.combo.autokillf.usedfg and Get

Distance(enemy) < qrange and VeigarConfig.combo.autokillf.user) then


if VeigarConfig.combo.autokillf.
saveab then
if (enemy.health - (DFGd
mg + Rdmgi)) > VeigarConfig.combo.autokillf.saveabsl then return end
else
DFG = GetInventorySlotItem(3128)
UseSpell(DFG, enemy)
UseSpell(_R, enemy)
end
elseif (enemy.health < (DFGdmg +
Qdmgi + IGNITEdmg) and Q ~= 0 and DFGI ~= 0 and ignitos ~= 0 and VeigarConfig.c
ombo.autokillf.usedfg and GetDistance(enemy) < ignrange and VeigarConfig.combo.a
utokillf.useq and VeigarConfig.combo.autokillf.useign) then
if VeigarConfig.combo.autokillf.
saveab then
if (enemy.health - (DFGd
mg + Qdmgi + IGNITEdmg)) > VeigarConfig.combo.autokillf.saveabsl then return end
else
DFG = GetInventorySlotItem(3128)
UseSpell(DFG, enemy)
UseSpell(ignite, enemy)
UseSpell(_Q, enemy)
end
elseif (enemy.health < (DFGdmg +
Rdmgi + IGNITEdmg) and R ~= 0 and DFGI ~= 0 and ignitos ~= 0 and VeigarConfig.c
ombo.autokillf.usedfg and GetDistance(enemy) < ignrange and VeigarConfig.combo.a
utokillf.user and VeigarConfig.combo.autokillf.useign) then
if VeigarConfig.combo.autokillf.
saveab then
if (enemy.health - (DFGd
mg + Rdmgi + IGNITEdmg)) > VeigarConfig.combo.autokillf.saveabsl then return end
else
DFG = GetInventorySlotItem(3128)
UseSpell(DFG, enemy)
UseSpell(_R, enemy)
UseSpell(ignite, enemy)
end
elseif (enemy.health < (Qdmgi +
Rdmgi + DFGdmg) and Q ~= 0 and R ~= 0 and DFGI ~= 0 and VeigarConfig.combo.autok
illf.usedfg and GetDistance(enemy) < qrange and VeigarConfig.combo.autokillf.use
q and VeigarConfig.combo.autokillf.user ) then
if VeigarConfig.combo.autokillf.
saveab then
if (enemy.health - (DFGd
mg + Qdmgi + Rdmgi)) > VeigarConfig.combo.autokillf.saveabsl then return end
else
DFG = GetInventorySlotItem(3128)
UseSpell(DFG, enemy)
UseSpell(_R, enemy)
UseSpell(_Q, enemy)
end
elseif (enemy.health < (Qdmgi +
Rdmgi + DFGdmg + IGNITEdmg) and Q ~= 0 and R ~= 0 and DFGI ~= 0 and ignitos ~= 0
and VeigarConfig.combo.autokillf.usedfg and GetDistance(enemy) < ignrange and V
eigarConfig.combo.autokillf.useq and VeigarConfig.combo.autokillf.user and Veiga
rConfig.combo.autokillf.useign) then
if VeigarConfig.combo.autokillf.
saveab then
if (enemy.health - (DFGd

mg + Qdmgi + Rdmgi + IGNITEdmg)) > VeigarConfig.combo.autokillf.saveabsl then re


turn end
else
DFG = GetInventorySlotItem(3128)
UseSpell(DFG, enemy)
UseSpell(_R, enemy)
UseSpell(ignite, enemy)
UseSpell(_Q, enemy)
end
end
end
end
end
end
function ExtraInformation()
if VeigarConfig.draw.ExtraInfo then
for i, enemy in ipairs(GetEnemyHeroes()) do
if ValidTarget(enemy) then
local Qdmg = getDmg("Q", enemy, myHero)
local Wdmg = getDmg("W", enemy, myHero)
local Rdmg = getDmg("R", enemy, myHero)
local AAdmg = (getDmg("AD", enemy, myHero))
local DFGdmg = 0
local IGNITEdmg = 0
local DMG = 0 + AAdmg
local Qdmgi = Qdmg * 1.2
local Wdmgi = Wdmg * 1.2
local Rdmgi = Rdmg * 1.2
local kill = nil
if ignitos ~= 0 then IGNITEdmg = 50 + 20 * myHer
o.level end
if DFGI ~= 0 then DFGdmg = getDmg("DFG", enemy ,
myHero) end
local HPBAR = GetHPBarPos(enemy)
if VeigarConfig.draw.drawvar == 1 then
if VeigarConfig.combo.showsecs then
if (enemy.health < (Qdmg)) then
--Q
if Q ~= 0 then
DrawText("Q",19, HPBAR.x - 127, HPBAR.y
- 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ) < VeigarConfig.combo.sho
wsecsc and math.max(QQ) > 0 then DrawText("Q("..math.max(QQ)..")s",19, HPBAR.x
- 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end
elseif (enemy.health < (Qdmg + AAdmg)) t
hen
--Q+AA
if Q ~= 0 then
DrawText(("Q+AA"),19, HPBAR.x - 127, HPB
AR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ) < VeigarConfig.combo.sho
wsecsc and math.max(QQ) > 0 then DrawText("Q+AA("..math.max(QQ)..")s",19, HPBAR.
x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end

elseif (enemy.health < (Qdmgi + DFGdmg))


then
--DFG Q
if Q ~= 0 and DFGI ~= 0 then
DrawText(("|DFG|Q"),19, HPBAR.x - 127, H
PBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,DFGII)
< VeigarConfig.combo.showsecsc and math.max(QQ,DFGII) > 0 then DrawText("|DFG|Q(
"..math.max(QQ,DFGII)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255))
else kill = 0 end else kill = 0 end
end
elseif (enemy.health < (Qdmgi + AAdmg +
DFGdmg) and Q ~= 0 and DFGI ~= 0) then
--DFG Q+AA
if Q ~= 0 and DFGI ~= 0 then
DrawText(("|DFG|Q+AA"),19, HPBAR.x - 127
, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,DFGII)
< VeigarConfig.combo.showsecsc and math.max(QQ,DFGII) > 0 then DrawText("|DFG|Q+
AA("..math.max(QQ,DFGII)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255
)) else kill = 0 end else kill = 0 end
end
elseif (enemy.health <= (Wdmg )) then
--W
if W ~= 0 and E ~= 0 then
DrawText(("W"),19, HPBAR.x - 127, HPBAR.
y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(WW,EE) < VeigarConfig.combo.
showsecsc and math.max(WW,EE) > 0 then DrawText("W("..math.max(WW,EE)..")s",19,
HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end
elseif (enemy.health <= (Wdmg + AAdmg) a
nd W ~= 0 and E ~= 0) then
--W+AA
if W ~= 0 and E ~= 0 then
DrawText(("W+AA"),19, HPBAR.x - 127, HPB
AR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(WW,EE) < VeigarConfig.combo.
showsecsc and math.max(WW,EE) > 0 then DrawText("WW+AA("..math.max(WW,EE)..")s",
19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end
elseif (enemy.health <= (Wdmg + DFGdmg )
) then
--DFG W
if W ~= 0 and E ~= 0 and DFGI ~= 0 then
DrawText(("|DFG|W"),19, HPBAR.x - 127, H
PBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(WW,EE,DFGI
I) < VeigarConfig.combo.showsecsc and math.max(WW,EE,DFGII) > 0 then DrawText("|
DFG|W("..math.max(WW,EE,DFGII)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 25

5, 255)) else kill = 0 end else kill = 0 end


end
elseif (enemy.health <= (Wdmg + DFGdmg +
AAdmg)) then
--DFG W+AA
if W ~= 0 and E ~= 0 and DFGI ~= 0 then
DrawText(("|DFG|W+AA"),19, HPBAR.x - 127
, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(WW,EE,DFGI
I) < VeigarConfig.combo.showsecsc and math.max(WW,EE,DFGII) > 0 then DrawText("|
DFG|W+AA("..math.max(WW,EE,DFGII)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255,
255, 255)) else kill = 0 end else kill = 0 end
end
elseif (enemy.health <= (IGNITEdmg)) the
n
--IGN
if ignitos ~= 0 then
DrawText(("IGN"),19, HPBAR.x - 127, HPBA
R.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(ignitoss) < VeigarConfig.com
bo.showsecsc and math.max(ignitoss) > 0 then DrawText("IGN("..math.max(ignitoss)
..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end
elseif (enemy.health <= (IGNITEdmg + AAd
mg)) then
--IGN+AA
if ignitos ~= 0 then
DrawText(("IGN+AA"),19, HPBAR.x - 127, H
PBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(ignitoss) < VeigarConfig.com
bo.showsecsc and math.max(ignitoss) > 0 then DrawText("IGN+AA("..math.max(ignito
ss)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end
elseif (enemy.health < (Qdmg + Wdmg )) t
hen
--Q+W
if Q ~= 0 and W ~= 0 then
DrawText(("Q+W"),19, HPBAR.x - 127, HPBA
R.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ,WW) < VeigarConfig.combo.
showsecsc and math.max(QQ,WW) > 0 then DrawText("Q+W("..math.max(QQ,WW)..")s",19
, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end
elseif (enemy.health < (Qdmg + Wdmg + AA
dmg)) then
--Q+W+AA
if Q ~= 0 and W ~= 0 then
DrawText(("Q+W+AA"),19, HPBAR.x - 127, H
PBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ,WW) < VeigarConfig.combo.

showsecsc and math.max(QQ,WW) > 0 then DrawText("Q+W+AA("..math.max(QQ,WW)..")s"


,19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end
elseif (enemy.health < (Qdmgi + Wdmgi +
DFGdmg)) then
--DFG Q+W
if Q ~= 0 and W ~= 0 and DFGI ~= 0 then
DrawText(("|DFG|Q+W"),19, HPBAR.x - 127,
HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,WW,DFGI
I) < VeigarConfig.combo.showsecsc and math.max(QQ,WW,DFGII) > 0 then DrawText("|
DFG|Q+W("..math.max(QQ,WW,DFGII)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255,
255, 255)) else kill = 0 end else kill = 0 end
end
elseif (enemy.health < (Qdmgi + Wdmgi +
AAdmg + DFGdmg)) then
--DFG Q+W+AA
if Q ~= 0 and W ~= 0 and DFGI ~= 0 then
DrawText(("|DFG|Q+W+AA"),19, HPBAR.x - 1
27, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,WW,DFGI
I) < VeigarConfig.combo.showsecsc and math.max(QQ,WW,DFGII) > 0 then DrawText("|
DFG|Q+W+AA("..math.max(QQ,WW,DFGII)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(25
5, 255, 255)) else kill = 0 end else kill = 0 end
end
elseif (enemy.health < (Qdmg + Wdmg + IG
NITEdmg)) then
--Q+W+IGN
if Q ~= 0 and W ~= 0 and ignitos ~= 0 th
en
DrawText(("Q+W+IGN"),19, HPBAR.x - 127,
HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ,WW,ignitoss) < VeigarConf
ig.combo.showsecsc and math.max(QQ,WW,ignitoss) > 0 then DrawText("Q+W+IGN("..ma
th.max(QQ,WW,ignitoss)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255))
else kill = 0 end
end
elseif (enemy.health < (Qdmg + Wdmg + IG
NITEdmg + AAdmg)) then
--Q+W+IGN+AA
if Q ~= 0 and W ~= 0 and ignitos ~= 0 th
en
DrawText(("Q+W+IGN+AA"),19, HPBAR.x - 12
7, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ,WW,ignitoss) < VeigarConf
ig.combo.showsecsc and math.max(QQ,WW,ignitoss) > 0 then DrawText("Q+W+IGN+AA(".
.math.max(QQ,WW,ignitoss)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 25
5)) else kill = 0 end
end
elseif (enemy.health < (Qdmgi + Wdmgi +
IGNITEdmg + DFGdmg)) then
--DFG Q+W+IGN

if Q ~= 0 and W ~= 0 and DFGI ~= 0 and i


gnitos ~= 0 then
DrawText(("|DFG|Q+W+IGN"),19, HPBAR.x 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,WW,igni
toss,DFGII) < VeigarConfig.combo.showsecsc and math.max(QQ,WW,ignitoss,DFGII) >
0 then DrawText("|DFG|Q+W+IGN("..math.max(QQ,WW,ignitoss,DFGI)..")s",19, HPBAR.x
- 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end else kill = 0 end
end
elseif (enemy.health < (Qdmgi + Wdmgi +
IGNITEdmg + AAdmg + DFGdmg)) then
--DFG Q+W+IGN+AA
if Q ~= 0 and W ~= 0 and DFGI ~= 0 and i
gnitos ~= 0 then
DrawText(("|DFG|Q+W+IGN+AA"),19, HPBAR.x
- 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,WW,igni
toss,DFGII) < VeigarConfig.combo.showsecsc and math.max(QQ,WW,ignitoss,DFGII) >
0 then DrawText("|DFG|Q+W+IGN+AA("..math.max(QQ,WW,ignitoss,DFGI)..")s",19, HPBA
R.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end else kill = 0 end
end
elseif (enemy.health < (Rdmg )) then
--R
if R ~= 0 then
DrawText(("R"),19, HPBAR.x - 127, HPBAR.
y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(RR) < VeigarConfig.combo.sho
wsecsc and math.max(RR) > 0 then DrawText("R("..math.max(RR)..")s",19, HPBAR.x 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end
elseif (enemy.health < (Rdmg + AAdmg) an
d R ~= 0) then
--R+AA
if R ~= 0 then
DrawText(("R+AA"),19, HPBAR.x - 127, HPB
AR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(RR) < VeigarConfig.combo.sho
wsecsc and math.max(RR) > 0 then DrawText("R+AA("..math.max(RR)..")s",19, HPBAR.
x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end
elseif (enemy.health < (Qdmg + Rdmg)) t
hen
--Q+R
if R ~= 0 and Q ~= 0 then
DrawText(("Q+R"),19, HPBAR.x - 127, HPBA
R.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ,RR) < VeigarConfig.combo.
showsecsc and math.max(QQ,RR) > 0 then DrawText("Q+R("..math.max(RR,QQ)..")s",19
, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end

elseif (enemy.health < (Qdmg + AAdmg + R


dmg)) then
--Q+R+AA
if R ~= 0 and Q ~= 0 then
DrawText(("Q+R+AA"),19, HPBAR.x - 127, H
PBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ,RR) < VeigarConfig.combo.
showsecsc and math.max(QQ,RR) > 0 then DrawText("Q+R+AA("..math.max(RR,QQ)..")s"
,19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end
elseif (enemy.health < (Qdmgi + DFGdmg
+ Rdmgi)) then
--DFG Q+R
if R ~= 0 and Q ~= 0 and DFGI ~= 0 then
DrawText(("|DFG|Q+R"),19, HPBAR.x - 127,
HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,RR,DFGI
I) < VeigarConfig.combo.showsecsc and math.max(QQ,RR,DFGII) > 0 then DrawText("|
DFG|Q+R("..math.max(RR,QQ,DFGII)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255,
255, 255)) else kill = 0 end else kill = 0 end
end
elseif (enemy.health < (Qdmgi + AAdmg +
DFGdmg + Rdmgi)) then
--DFG Q+R+AA
if R ~= 0 and Q ~= 0 and DFGI ~= 0 then
DrawText(("|DFG|Q+R+AA"),19, HPBAR.x - 1
27, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,RR,DFGI
I) < VeigarConfig.combo.showsecsc and math.max(QQ,RR,DFGII) > 0 then DrawText("|
DFG|Q+R+AA("..math.max(RR,QQ,DFGII)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(25
5, 255, 255)) else kill = 0 end else kill = 0 end
end
elseif (enemy.health < (Qdmg + IGNITEdmg
+ Rdmg)) then
--Q+R+IGN
if Q ~= 0 and R ~= 0 and ignitos ~= 0 th
en
DrawText(("Q+R+IGN"),19, HPBAR.x - 127,
HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ,RR,ignitoss) < VeigarConf
ig.combo.showsecsc and math.max(QQ,RR,ignitoss) > 0 then DrawText("Q+R+IGN("..ma
th.max(RR,QQ,ignitoss)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255))
else kill = 0 end
end
elseif (enemy.health < (Qdmg + IGNITEdmg
+ AAdmg + Rdmg)) then
--Q+R+IGN+AA
if Q ~= 0 and R ~= 0 and ignitos ~= 0 th
en
DrawText(("Q+R+IGN+AA"),19, HPBAR.x - 12
7, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1

else
if math.max(QQ,RR,ignitoss) < VeigarConf
ig.combo.showsecsc and math.max(QQ,RR,ignitoss) > 0 then DrawText("Q+R+IGN+AA(".
.math.max(RR,QQ,ignitoss)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 25
5)) else kill = 0 end
end
elseif (enemy.health < (Qdmgi + IGNITEdm
g + DFGdmg + Rdmgi)) then
--DFG Q+R+IGN
if Q ~= 0 and R ~= 0 and ignitos ~= 0 an
d DFGI ~= 0 then
DrawText(("|DFG|Q+R+IGN"),19, HPBAR.x 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,RR,DFGI
I,ignitoss) < VeigarConfig.combo.showsecsc and math.max(QQ,RR,ignitoss,DFGII) >
0 then DrawText("|DFG|Q+R+IGN("..math.max(RR,QQ,DFGII,ignitoss)..")s",19, HPBAR.
x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end else kill = 0 end
end
elseif (enemy.health < (Qdmgi + IGNITEdm
g + AAdmg + DFGdmg + Rdmgi)) then
--DFG Q+R+IGN+AA
if Q ~= 0 and R ~= 0 and ignitos ~= 0 an
d DFGI ~= 0 then
DrawText(("|DFG|Q+R+IGN+AA"),19, HPBAR.x
- 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,RR,DFGI
I,ignitoss) < VeigarConfig.combo.showsecsc and math.max(QQ,RR,ignitoss,DFGII) >
0 then DrawText("|DFG|Q+R+IGN+AA("..math.max(RR,QQ,DFGII,ignitoss)..")s",19, HPB
AR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end else kill = 0 end
end
elseif (enemy.health < (Qdmg + Wdmg + Rd
mg )) then
--Q+W+R
if Q ~= 0 and W ~= 0 and R ~= 0 then
DrawText(("Q+W+R"),19, HPBAR.x - 127, HP
BAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ,RR,WW) < VeigarConfig.com
bo.showsecsc and math.max(QQ,RR,WW) > 0 then DrawText("Q+W+R("..math.max(RR,QQ,W
W)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end
end
elseif (enemy.health < (Qdmg + Wdmg + Rd
mg + AAdmg )) then
--Q+W+R+AA
if Q ~= 0 and W ~= 0 and R ~= 0 then
DrawText(("Q+W+R+AA"),19, HPBAR.x - 127,
HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ,RR,WW) < VeigarConfig.com
bo.showsecsc and math.max(QQ,RR,WW) > 0 then DrawText("Q+W+R+AA("..math.max(RR,Q
Q,WW)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 en
d
end
elseif (enemy.health < (Qdmgi + Wdmgi +

Rdmgi + DFGdmg )) then


--DFG Q+W+R
if Q ~= 0 and W ~= 0 and R ~= 0 and DFGI
~= 0 then
DrawText(("|DFG|Q+W+R"),19, HPBAR.x - 12
7, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,RR,DFGI
I,WW) < VeigarConfig.combo.showsecsc and math.max(QQ,RR,DFGII,WW) > 0 then DrawT
ext("|DFG|Q+W+R("..math.max(RR,QQ,DFGII,WW)..")s",19, HPBAR.x - 127, HPBAR.y - 4
0,RGB(255, 255, 255)) else kill = 0 end else kill = 0 end
end
elseif (enemy.health < (Qdmgi + Wdmgi +
Rdmgi + AAdmg + DFGdmg )) then
--DFG Q+W+R+AA
if Q ~= 0 and W ~= 0 and R ~= 0 and DFGI
~= 0 then
DrawText(("|DFG|Q+W+R+AA"),19, HPBAR.x 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,RR,DFGI
I,WW) < VeigarConfig.combo.showsecsc and math.max(QQ,RR,DFGII,WW) > 0 then DrawT
ext("|DFG|Q+W+R+AA("..math.max(RR,QQ,DFGII,WW)..")s",19, HPBAR.x - 127, HPBAR.y
- 40,RGB(255, 255, 255)) else kill = 0 end else kill = 0 end
end
elseif (enemy.health < (Qdmg + Wdmg + Rd
mg + IGNITEdmg )) then
--Q+W+R+IGN
if Q ~= 0 and W ~= 0 and R ~= 0 and igni
tos ~= 0 then
DrawText(("Q+W+R+IGN"),19, HPBAR.x - 127
, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ,RR,ignitoss,WW) < VeigarC
onfig.combo.showsecsc and math.max(QQ,RR,ignitoss,WW) > 0 then DrawText("Q+W+R+I
GN("..math.max(RR,QQ,ignitoss,WW)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255,
255, 255)) else kill = 0 end
end
elseif (enemy.health < (Qdmg + Wdmg + Rd
mg + IGNITEdmg + AAdmg )) then
--Q+W+R+IGN+AA
if Q ~= 0 and W ~= 0 and R ~= 0 and igni
tos ~= 0 then
DrawText(("Q+W+R+IGN+AA"),19, HPBAR.x 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if math.max(QQ,RR,ignitoss,WW) < VeigarC
onfig.combo.showsecsc and math.max(QQ,RR,ignitoss,WW) > 0 then DrawText("Q+W+R+I
GN+AA("..math.max(RR,QQ,ignitoss,WW)..")s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(2
55, 255, 255)) else kill = 0 end
end
elseif (enemy.health < (Qdmgi + Wdmgi +
Rdmgi + IGNITEdmg + DFGdmg)) then
--DFG Q+W+R+IGN
if Q ~= 0 and W ~= 0 and R ~= 0 and igni
tos ~= 0 and DFGI ~= 0 then

DrawText(("|DFG|Q+W+R+IGN"),19, HPBAR.x
- 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
else
if int2 ~= 0 then if math.max(QQ,RR,igni
toss,DFGII,WW) < VeigarConfig.combo.showsecsc and math.max(QQ,RR,WW,ignitoss,DFG
II) > 0 then DrawText("|DFG|Q+W+R+IGN("..math.max(RR,QQ,DFGII,ignitoss,WW)..")s"
,19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end else kill
= 0 end
end
elseif (enemy.health < (Qdmgi + Wdmgi +
Rdmgi + IGNITEdmg + AAdmg + DFGdmg)) then
--DFG Q+W+R+IGN+AA
if Q ~= 0 and W ~= 0 and R ~= 0 and igni
tos ~= 0 and DFGI ~= 0 then
DrawText(("|DFG|Q+W+R+IGN+AA"),19, HPBAR
.x - 127, HPBAR.y - 40,RGB(255, 255, 255))
else
if int2 ~= 0 then if math.max(QQ,RR,igni
toss,DFGII,WW) < VeigarConfig.combo.showsecsc and math.max(QQ,RR,WW,ignitoss,DFG
II) > 0 then DrawText("|DFG|Q+W+R+IGN+AA("..math.max(RR,QQ,DFGII,ignitoss,WW).."
)s",19, HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255)) else kill = 0 end else k
ill = 0 end
end
else
kill = 0
end
else
if (enemy.health < (Qdmg) and Q ~= 0 ) then
--Q
DrawText("Q",19, HPBAR.x - 127, HPBAR.y
- 40,RGB(255, 255, 255))
elseif (enemy.health < (Qdmg + AAdmg) an
d Q ~= 0 ) then
--Q+AA
DrawText(("Q+AA"),19, HPBAR.x - 127, HPB
AR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmgi + DFGdmg)
and Q ~= 0 and DFGI ~= 0) then
--DFG Q
DrawText(("|DFG|Q"),19, HPBAR.x - 127, H
PBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmgi + AAdmg +
DFGdmg) and Q ~= 0 and DFGI ~= 0) then
--DFG Q+AA
DrawText(("|DFG|Q+AA"),19, HPBAR.x - 127
, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health <= (Wdmg ) and W ~=
0 and E ~= 0) then
--W
DrawText(("W"),19, HPBAR.x - 127, HPBAR.
y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health <= (Wdmg + AAdmg) a
nd W ~= 0 and E ~= 0) then
--W+AA
DrawText(("W+AA"),19, HPBAR.x - 127, HPB

AR.y - 40,RGB(255, 255, 255))


kill = 1
elseif (enemy.health <= (Wdmg + DFGdmg )
and W ~= 0 and E ~= 0 and DFGI ~= 0) then
--DFG W
DrawText(("|DFG|W"),19, HPBAR.x - 127, H
PBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health <= (Wdmg + DFGdmg +
AAdmg) and W ~= 0 and E ~= 0 and DFGI ~= 0) then
--DFG W+AA
DrawText(("|DFG|W+AA"),19, HPBAR.x - 127
, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health <= (IGNITEdmg) and
ignitos ~= 0) then
--IGN
DrawText(("IGN"),19, HPBAR.x - 127, HPBA
R.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health <= (IGNITEdmg + AAd
mg) and ignitos ~= 0) then
--IGN+AA
DrawText(("IGN+AA"),19, HPBAR.x - 127, H
PBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmg + Wdmg ) an
d Q ~= 0 and W ~= 0 ) then
--Q+W
DrawText(("Q+W"),19, HPBAR.x - 127, HPBA
R.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmg + Wdmg + AA
dmg) and Q ~= 0 and W ~= 0 ) then
--Q+W+AA
DrawText(("Q+W+AA"),19, HPBAR.x - 127, H
PBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmgi + Wdmgi +
DFGdmg) and Q ~= 0 and W ~= 0 and DFGI ~= 0) then
--DFG Q+W
DrawText(("|DFG|Q+W"),19, HPBAR.x - 127,
HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmgi + Wdmgi +
AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and DFGI ~= 0) then
--DFG Q+W+AA
DrawText(("|DFG|Q+W+AA"),19, HPBAR.x - 1
27, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmg + Wdmg + IG
NITEdmg ) and Q ~= 0 and W ~= 0 and ignitos ~= 0 ) then
--Q+W+IGN
DrawText(("Q+W+IGN"),19, HPBAR.x - 127,
HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmg + Wdmg + IG
NITEdmg + AAdmg) and Q ~= 0 and W ~= 0 and ignitos ~= 0 ) then
--Q+W+IGN+AA
DrawText(("Q+W+IGN+AA"),19, HPBAR.x - 12

7, HPBAR.y - 40,RGB(255, 255, 255))


kill = 1
elseif (enemy.health < (Qdmgi + Wdmgi +
IGNITEdmg + DFGdmg) and Q ~= 0 and W ~= 0 and ignitos ~= 0 and DFGI ~= 0) then
--DFG Q+W+IGN
DrawText(("|DFG|Q+W+IGN"),19, HPBAR.x 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmgi + Wdmgi +
IGNITEdmg + AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and ignitos ~= 0 and DFGI ~= 0
) then
--DFG Q+W+IGN+AA
DrawText(("|DFG|Q+W+IGN+AA"),19, HPBAR.x
- 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Rdmg ) and R ~=
0) then
--R
DrawText(("R"),19, HPBAR.x - 127, HPBAR.
y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Rdmg + AAdmg) an
d R ~= 0) then
--R+AA
DrawText(("R+AA"),19, HPBAR.x - 127, HPB
AR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmg + Rdmg) an
d Q ~= 0 and R ~= 0 ) then
--Q+R
DrawText(("Q+R"),19, HPBAR.x - 127, HPBA
R.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmg + AAdmg + R
dmg) and Q ~= 0 and R ~= 0 ) then
--Q+R+AA
DrawText(("Q+R+AA"),19, HPBAR.x - 127, H
PBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmgi + DFGdmg
+ Rdmgi) and Q ~= 0 and R ~= 0 and DFGI ~= 0) then
--DFG Q+R
DrawText(("|DFG|Q+R"),19, HPBAR.x - 127,
HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmgi + AAdmg +
DFGdmg + Rdmgi) and Q ~= 0 and R ~= 0 and DFGI ~= 0) then
--DFG Q+R+AA
DrawText(("|DFG|Q+R+AA"),19, HPBAR.x - 1
27, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmg + IGNITEdmg
+ Rdmg) and Q ~= 0 and R ~= 0 and ignitos ~= 0 ) then
--Q+R+IGN
DrawText(("Q+R+IGN"),19, HPBAR.x - 127,
HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmg + IGNITEdmg
+ AAdmg + Rdmg) and Q ~= 0 and R ~= 0 and ignitos ~= 0 ) then
--Q+R+IGN+AA

DrawText(("Q+R+IGN+AA"),19, HPBAR.x - 12
7, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmgi + IGNITEdm
g + DFGdmg + Rdmgi) and Q ~= 0 and R ~= 0 and ignitos ~= 0 and DFGI ~= 0) then
--DFG Q+R+IGN
DrawText(("|DFG|Q+R+IGN"),19, HPBAR.x 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmgi + IGNITEdm
g + AAdmg + DFGdmg + Rdmgi) and Q ~= 0 and R ~= 0 and ignitos ~= 0 and DFGI ~= 0
) then
--DFG Q+R+IGN+AA
DrawText(("|DFG|Q+R+IGN+AA"),19, HPBAR.x
- 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmg + Wdmg + Rd
mg ) and Q ~= 0 and W ~= 0 and R ~= 0 ) then
--Q+W+R
DrawText(("Q+W+R"),19, HPBAR.x - 127, HP
BAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmg + Wdmg + Rd
mg + AAdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 ) then
--Q+W+R+AA
DrawText(("Q+W+R+AA"),19, HPBAR.x - 127,
HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmgi + Wdmgi +
Rdmgi + DFGdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and DFGI ~= 0) then
--DFG Q+W+R
DrawText(("|DFG|Q+W+R"),19, HPBAR.x - 12
7, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmgi + Wdmgi +
Rdmgi + AAdmg + DFGdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and DFGI ~= 0) then
--DFG Q+W+R+AA
DrawText(("|DFG|Q+W+R+AA"),19, HPBAR.x 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmg + Wdmg + Rd
mg + IGNITEdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and ignitos ~= 0 ) then
--Q+W+R+IGN
DrawText(("Q+W+R+IGN"),19, HPBAR.x - 127
, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmg + Wdmg + Rd
mg + IGNITEdmg + AAdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and ignitos ~= 0 ) the
n
--Q+W+R+IGN+AA
DrawText(("Q+W+R+IGN+AA"),19, HPBAR.x 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1
elseif (enemy.health < (Qdmgi + Wdmgi +
Rdmgi + IGNITEdmg + DFGdmg) and Q ~= 0 and W ~= 0 and R ~= 0 and ignitos ~= 0 a
nd DFGI ~= 0) then
--DFG Q+W+R+IGN
DrawText(("|DFG|Q+W+R+IGN"),19, HPBAR.x
- 127, HPBAR.y - 40,RGB(255, 255, 255))
kill = 1

elseif (enemy.health < (Qdmgi + Wdmgi +


Rdmgi + IGNITEdmg + AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and R ~= 0 and ignitos
~= 0 and DFGI ~= 0) then
--DFG Q+W+R+IGN+AA
DrawText(("|DFG|Q+W+R+IGN+AA"),19, HPBAR
.x - 127, HPBAR.y - 40,RGB(255, 255, 255))
else
kill = 0
end
end
else
if (enemy.health < (Qdmg) and Q ~= 0 ) then
--Q
DrawText3D(("Q"), enemy.x, enemy.y + 120
, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmg + AAdmg) an
d Q ~= 0 ) then
--Q+AA
DrawText3D(("Q+AA"), enemy.x, enemy.y +
120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + DFGdmg)
and Q ~= 0 and DFGI ~= 0) then
--DFG Q
DrawText3D(("|DFG|Q"), enemy.x, enemy.y
+ 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + AAdmg +
DFGdmg) and Q ~= 0 and DFGI ~= 0) then
--DFG Q+AA
DrawText3D(("|DFG|Q+AA"), enemy.x, enemy
.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health <= (Wdmg ) and W ~=
0 and E ~= 0) then
--W
DrawText3D(("W"), enemy.x, enemy.y + 120
, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health <= (Wdmg + AAdmg) a
nd W ~= 0 and E ~= 0) then
--W+AA
DrawText3D(("W+AA"), enemy.x, enemy.y +
120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health <= (Wdmg + DFGdmg )
and W ~= 0 and E ~= 0 and DFGI ~= 0) then
--DFG W
DrawText3D(("|DFG|W"), enemy.x, enemy.y
+ 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health <= (Wdmg + DFGdmg +
AAdmg) and W ~= 0 and E ~= 0 and DFGI ~= 0) then
--DFG W+AA
DrawText3D(("|DFG|W+AA"), enemy.x, enemy
.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health <= (IGNITEdmg) and
ignitos ~= 0) then
--IGN
DrawText3D(("IGN"), enemy.x, enemy.y + 1
20, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health <= (IGNITEdmg + AAd
mg) and ignitos ~= 0) then
--IGN+AA
DrawText3D(("IGN+AA"), enemy.x, enemy.y
+ 120, enemy.z, 20, RGB(255, 255, 255), true)

elseif (enemy.health < (Qdmg + Wdmg ) an


d Q ~= 0 and W ~= 0 ) then
--Q+W
DrawText3D(("Q+W"), enemy.x, enemy.y + 1
20, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmg + Wdmg + AA
dmg) and Q ~= 0 and W ~= 0 ) then
--Q+W+AA
DrawText3D(("Q+W+AA"), enemy.x, enemy.y
+ 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + Wdmgi +
DFGdmg) and Q ~= 0 and W ~= 0 and DFGI ~= 0) then
--DFG Q+W
DrawText3D(("|DFG|Q+W"), enemy.x, enemy.
y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + Wdmgi +
AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and DFGI ~= 0) then
--DFG Q+W+AA
DrawText3D(("|DFG|Q+W+AA"), enemy.x, ene
my.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmg + Wdmg + IG
NITEdmg ) and Q ~= 0 and W ~= 0 and ignitos ~= 0 ) then
--Q+W+IGN
DrawText3D(("Q+W+IGN"), enemy.x, enemy.y
+ 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmg + Wdmg + IG
NITEdmg + AAdmg) and Q ~= 0 and W ~= 0 and ignitos ~= 0 ) then
--Q+W+IGN+AA
DrawText3D(("Q+W+IGN+AA"), enemy.x, enem
y.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + Wdmgi +
IGNITEdmg + DFGdmg) and Q ~= 0 and W ~= 0 and ignitos ~= 0 and DFGI ~= 0) then
--DFG Q+W+IGN
DrawText3D(("|DFG|Q+W+IGN"), enemy.x, en
emy.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + Wdmgi +
IGNITEdmg + AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and ignitos ~= 0 and DFGI ~= 0
) then
--DFG Q+W+IGN+AA
DrawText3D(("|DFG|Q+W+IGN+AA"), enemy.x,
enemy.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Rdmg ) and R ~=
0) then
--R
DrawText3D(("R"), enemy.x, enemy.y + 120
, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Rdmg + AAdmg) an
d R ~= 0) then
--R+AA
DrawText3D(("R+AA"), enemy.x, enemy.y +
120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmg + Rdmg) an
d Q ~= 0 and R ~= 0 ) then
--Q+R
DrawText3D(("Q+R"), enemy.x, enemy.y + 1
20, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmg + AAdmg + R
dmg) and Q ~= 0 and R ~= 0 ) then
--Q+R+AA
DrawText3D(("Q+R+AA"), enemy.x, enemy.y

+ 120, enemy.z, 20, RGB(255, 255, 255), true)


elseif (enemy.health < (Qdmgi + DFGdmg
+ Rdmgi) and Q ~= 0 and R ~= 0 and DFGI ~= 0) then
--DFG Q+R
DrawText3D(("|DFG|Q+R"), enemy.x, enemy.
y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + AAdmg +
DFGdmg + Rdmgi) and Q ~= 0 and R ~= 0 and DFGI ~= 0) then
--DFG Q+R+AA
DrawText3D(("|DFG|Q+R+AA"), enemy.x, ene
my.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmg + IGNITEdmg
+ Rdmg) and Q ~= 0 and R ~= 0 and ignitos ~= 0 ) then
--Q+R+IGN
DrawText3D(("Q+R+IGN"), enemy.x, enemy.y
+ 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmg + IGNITEdmg
+ AAdmg + Rdmg) and Q ~= 0 and R ~= 0 and ignitos ~= 0 ) then
--Q+R+IGN+AA
DrawText3D(("Q+R+IGN+AA"), enemy.x, enem
y.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + IGNITEdm
g + DFGdmg + Rdmgi) and Q ~= 0 and R ~= 0 and ignitos ~= 0 and DFGI ~= 0) then
--DFG Q+R+IGN
DrawText3D(("|DFG|Q+R+IGN"), enemy.x, en
emy.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + IGNITEdm
g + AAdmg + DFGdmg + Rdmgi) and Q ~= 0 and R ~= 0 and ignitos ~= 0 and DFGI ~= 0
) then
--DFG Q+R+IGN+AA
DrawText3D(("|DFG|Q+R+IGN+AA"), enemy.x,
enemy.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmg + Wdmg + Rd
mg ) and Q ~= 0 and W ~= 0 and R ~= 0 ) then
--Q+W+R
DrawText3D(("Q+W+R"), enemy.x, enemy.y +
120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmg + Wdmg + Rd
mg + AAdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 ) then
--Q+W+R+AA
DrawText3D(("Q+W+R+AA"), enemy.x, enemy.
y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + Wdmgi +
Rdmgi + DFGdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and DFGI ~= 0) then
--DFG Q+W+R
DrawText3D(("|DFG|Q+W+R"), enemy.x, enem
y.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + Wdmgi +
Rdmgi + AAdmg + DFGdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and DFGI ~= 0) then
--DFG Q+W+R+AA
DrawText3D(("|DFG|Q+W+R+AA"), enemy.x, e
nemy.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmg + Wdmg + Rd
mg + IGNITEdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and ignitos ~= 0 ) then
--Q+W+R+IGN
DrawText3D(("Q+W+R+IGN"), enemy.x, enemy
.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmg + Wdmg + Rd
mg + IGNITEdmg + AAdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and ignitos ~= 0 ) the
n

--Q+W+R+IGN+AA
DrawText3D(("Q+W+R+IGN+AA"), enemy.x, en
emy.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + Wdmgi +
Rdmgi + IGNITEdmg + DFGdmg) and Q ~= 0 and W ~= 0 and R ~= 0 and ignitos ~= 0 a
nd DFGI ~= 0) then
--DFG Q+W+R+IGN
DrawText3D(("|DFG|Q+W+R+IGN"), enemy.x,
enemy.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health < (Qdmgi + Wdmgi +
Rdmgi + IGNITEdmg + AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and R ~= 0 and ignitos
~= 0 and DFGI ~= 0) then
--DFG Q+W+R+IGN+AA
DrawText3D(("|DFG|Q+W+R+IGN+AA"), enemy.
x, enemy.y + 120, enemy.z, 20, RGB(255, 255, 255), true)
elseif (enemy.health > (Qdmgi + Wdmgi +
Rdmgi + IGNITEdmg + AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and R ~= 0 and ignitos
~= 0 and DFGI ~= 0) then
--unkillable
end
end
if VeigarConfig.draw.drawvar == 1 then
local HPBARM = GetHPBarPos(myHero)
if ftarg ~= nil then DrawText("Lock on:"..ftarg.
charName.."",15, HPBARM.x - 76, HPBARM.y - 5,RGB(55, 255, 55)) end
if VeigarConfig.draw.MainCalc then if enemy.heal
th <= dd then DrawText(""..math.floor((dd - enemy.health)+0.5).." Extra !!",20,
HPBAR.x - 127, HPBAR.y - 3,RGB(255, 0, 0)) else DrawText(""..math.floor((enemy.h
ealth - dd)+0.5).." More !!",20, HPBAR.x - 127, HPBAR.y - 3,RGB(255, 255, 255))
end end
if kill == 1 then
DrawText(""..enemy.charName.." Killable with:",2
0, HPBAR.x - 127, HPBAR.y - 55,RGB(255, 255, 255))
if ftarg ~= nil and enemy == ftarg then DrawText
("(L)",20, HPBAR.x - 150, HPBAR.y - 55,RGB(51, 250, 51)) end
if tt ~= nil and enemy == tt then if enemy == ft
arg then DrawText("(T)",20, HPBAR.x - 170, HPBAR.y - 60,RGB(255, 0, 0)) else Dra
wText("(T)",20, HPBAR.x - 150, HPBAR.y - 60,RGB(255, 0, 0)) end end
elseif kill == 0 then
DrawText(""..enemy.charName..": Unkillable",20,
HPBAR.x - 127, HPBAR.y - 40,RGB(255, 255, 255))
if ftarg ~= nil and enemy == ftarg then DrawText
("(L)",20, HPBAR.x - 150, HPBAR.y - 40,RGB(51, 250, 51)) end
if tt ~= nil and enemy == tt then if enemy == ft
arg then DrawText("(T)",20, HPBAR.x - 170, HPBAR.y - 40,RGB(255, 0, 0)) else Dra
wText("(T)",20, HPBAR.x - 150, HPBAR.y - 40,RGB(255, 0, 0)) end end
end
if VeigarConfig.draw.warnab then
if GetInventoryHaveItem(3111, enemy) ==
true or GetInventoryHaveItem(3170, enemy) == true or GetInventoryHaveItem(3172,
enemy) == true then
if myHero:GetSpellData(_E).level
~= nil and myHero:GetSpellData(_W).level ~= nil then
if getelvl() < 1.25 then
DrawText("Warn:E
<W("..getelvl()..")s",15, HPBAR.x - 127, HPBAR.y + 12,RGB(255, 0, 0))
end
end
end

end
else
local HPBARM = GetHPBarPos(myHero)
if ftarg ~= nil then DrawText("Lock on:"..ftarg.
charName.."",15, HPBARM.x - 76, HPBARM.y - 5,RGB(55, 255, 55)) end
if VeigarConfig.draw.MainCalc then if enemy.heal
th <= dd then DrawText3D(""..math.floor((dd - enemy.health)+0.5).." Extra !!", e
nemy.x, enemy.y, enemy.z, 25, RGB(255, 0, 0), true) else DrawText3D(""..math.flo
or((enemy.health - dd)+0.5).." More !!", enemy.x, enemy.y, enemy.z, 25, RGB(255,
255, 255), true) end end
end
end
end
end
end
function getelvl()
local am = 0
if myHero:GetSpellData(_E).level == 1 then
am = 1
elseif myHero:GetSpellData(_E).level == 2 then
am = 1.1
elseif myHero:GetSpellData(_E).level == 3 then
am = 1.3
elseif myHero:GetSpellData(_E).level == 4 then
am = 1.5
elseif myHero:GetSpellData(_E).level == 5 then
am = 1.6
end
return am
end
function autoFarm()
local usedQ = false
if VeigarConfig.farm.autoFarm and GetTickCount() > lastFarmCheck + farmC
heckTick then
if not VeigarConfig.combo.spacebarActive and not VeigarConfig.ew
.eCastActive and not VeigarConfig.harras.Qharras and not VeigarConfig.ew.cageTea
mActive and not VeigarConfig.combo.wasteall and not VeigarConfig.combo.lightcomb
o then
if (VeigarConfig.farm.manasave and manaPct() > VeigarCon
fig.farm.manasavep) or not VeigarConfig.farm.manasave then
if myHero.mana > ComboManaCost({_Q, _E}) or not
VeigarConfig.farm.SaveE then
if VeigarConfig.farm.orbw then moveToMouse() end
if CanUseSpell(_Q) then
for _, minion in pairs(enemyMini
ons.objects) do
if not usedQ then
if minion ~= nil
and minion.name:find("mechcannon") and minion.team ~= myHero.team and minion.de
ad == false and GetDistance(minion) < qRange then
local qD
amage = getDmg("Q",minion,myHero)
if qDama
ge >= minion.health then
--UseSpell(_Q, minion)

CastSpell(_Q, minion)
usedQ = true
end
end
if minion ~= nil
and minion.name:find("Minion_") and minion.team ~= myHero.team and minion.dead
== false and GetDistance(minion) < qRange then
local qD
amage = getDmg("Q",minion,myHero)
if qDama
ge >= minion.health then
--UseSpell(_Q, minion)
CastSpell(_Q, minion)
usedQ = true
end
end
end
end
end
lastFarmCheck = GetTickCount()
end
end
end
end
if VeigarConfig.farm.EnabledW then
Max = 0
local MaxPos
EnemyMinions2:update()
for i, minion in pairs(EnemyMinions2.objects) do
if (GetDistance(minion) < wrange) and (minion.charName:f
ind("Wizard") or minion.charName:find("Caster")) then
Count = GetNMinionsHit(minion, wradius)
if Count > Max then
Max = Count
MaxPos = Vector(minion.x, 0, minion.z)
if (Max > 4) and (myHero.mana > ComboMan
aCost({_Q, _E})) or not VeigarConfig.farm.SaveE and MaxPos ~= 0 then
CastSpell(_W, MaxPos.x, MaxPos.z
)
end
end
end
end
end
end
function AutoWharrasQ()
for i, enemy in ipairs(GetEnemyHeroes()) do
if ValidTarget(enemy) then
if VeigarConfig.harras.moveto and VeigarConfig.harras.Qh
arras then moveToMouse() end
if VeigarConfig.harras.Qharras and IsGoodTarget(enemy, q

Range) then
if (VeigarConfig.harras.manasaveQ and manaPct()
> VeigarConfig.harras.manasaveQP) or not VeigarConfig.harras.manasaveQ then
UseSpell(_Q, enemy) -- cast spell
return
end
end
end
end
end
function EWandCage()
local players = heroManager.iCount
if VeigarConfig.ew.eCastActive == true and not player.dead then
if eTarget then
if not targetvalid(eTarget) then
eTarget = nil
end
end
if eTarget == nil then
if rtarg then
eTarget = rtarg
else
for i = 1, heroManager.iCount, 1 do
local testTarget = heroManager:getHero(i)
if targetvalid(testTarget) then
eTarget = testTarget
end
end
end
end
if eTarget then
UseSpell(_E,eTarget)
end
end

if VeigarConfig.ew.cageTeamActive == true and rtarg ~= nil and not player.dead


then
local spellPos = FindGroupCenterFromNearestEnemies(eradius, erange)
if spellPos ~= nil then
CastSpell(_E, spellPos.center.x, spellPos.center.z)
end
end
end
function Drawing()
if VeigarConfig.draw.Erange then
CustomDrawCircle(player.x, player.y, player.z, qrange, qCircleCo
lor)
end
if VeigarConfig.draw.ErangeMax then
CustomDrawCircle(player.x, player.y, player.z, erange + eradius,
eCircleColor)
end

if VeigarConfig.draw.Wrange then
CustomDrawCircle(player.x, player.y, player.z, wRange, wCircleCo
lor)
end
if VeigarConfig.draw.AArange then
CustomDrawCircle(player.x, player.y, player.z, aarange, qCircleC
olor)
end
if VeigarConfig.draw.XPrange then
CustomDrawCircle(player.x, player.y, player.z, xprange, qCircleC
olor)
end
if VeigarConfig.draw.LifeSaverRange and VeigarConfig.LifeSaver.LifeSaver
then
CustomDrawCircle(player.x, player.y, player.z, VeigarConfig.Life
Saver.LifeSaverRange, wCircleColor)
end
if VeigarConfig.draw.targg and ValidTarget(ts.target) then
targe = ts.target
DrawCircle(targe.x, targe.y, targe.z, 100, ARGB(250, 253, 33, 33))
end
if VeigarConfig.combo.newts and ValidTarget(ftarg) then
targggg = ftarg
DrawCircle(targggg.x, targggg.y, targggg.z, 100, ARGB(250, 51, 250, 51))
end
if VeigarConfig.draw.targ and ValidTarget(rtarg) and GetDistance(rtarg,m
yHero) <= 1550 then
targ = rtarg
DrawLine3D(myHero.x, myHero.y, myHero.z, targ.x, targ.y, targ.z,
5, ARGB(250,235,33,33))
end
if VeigarConfig.draw.drawKillableMinions then
enemyMinions:update()
if enemyMinions.objects[1] then
local targetMinion = enemyMinions.objects[1]
if ValidTarget(targetMinion, erange+eradius) and string.find(targetMinio
n.name, "Minion_") then
if targetMinion.health < player:CalcMagicDamage(targetMinion, 45 * (pl
ayer:GetSpellData(_Q).level - 1) + 80 + (.6 * player.ap)) then
DrawCircle(targetMinion.x,targetMinion.y,targetMinion.z, 75, qCircleC
olor)
end
end
end
end
end
function useStun(object)
local spellPos, hitchance
if player:CanUseSpell(_E) == READY and not object.dead then
castESpellOnTarget(object)

end
end
function targetvalid(target)
return target ~= nil and target.team ~= player.team and target.visible and not
target.dead and GetDistanceTo(player, target) <= (erange + eradius)
end
function GetDistanceTo(target1, target2)
local dis
if target2 ~= nil and target1 ~= nil then
dis = math.sqrt((target2.x - target1.x) ^ 2 + (target2.z - target1.z) ^ 2)
end
return dis
end
function castESpellOnTarget(object)
if player:CanUseSpell(_E) then
local
local
local
for j

target1 = object
CircX, CircZ, returnTarget
players = heroManager.iCount
= 1, players, 1 do

local target2 = heroManager:getHero(j)


if targetvalid(target1) and targetvalid(target2) and target1.name ~= targe
t2.name then --make sure both targets are valid enemies and in spell range
if targetsinradius(target1, target2) and CircX == nil and CircZ == nil t
hen --true if a double stun is possible
CircX, CircZ = calcdoublestun(target1, target2) --calculates coords fo
r stun
if CircX and CircZ then
break
end
end
end
end
if CircX == nil or CircZ == nil then --true if double stun coords were not f
ound
if targetvalid(object) then
CircX, CircZ = calcsinglestun() --calculate stun coords for a single tar
get
end
end
if CircX and CircZ then --true if any coords were found
CastSpell(_E, CircX, CircZ)
end
end
end
function targetsinradius(target1, target2)
local dis, dis1, dis2, predicted1, predicted2, hitchance1, hitchance2
predicted1, hitchance1 = VP:GetPredictedPos(target1, ecastspeed)
predicted2, hitchance2 = VP:GetPredictedPos(target2, ecastspeed)
if predicted1 and predicted2 then

dis = math.sqrt((predicted2.x - predicted1.x) ^ 2 + (predicted2.z - predicte


d1.z) ^ 2) --find the distance between the two targets
dis1 = math.sqrt((predicted1.x - player.x)
2) --distance from player to predicted target
dis2 = math.sqrt((predicted2.x - player.x)
2) --distance from player to predicted target
end

^ 2 + (predicted1.z - player.z) ^
1
^ 2 + (predicted2.z - player.z) ^
2

return dis ~= nil and dis <= (eradius * 2) and dis1 <= (eradius + erange) and
dis2 <= (eradius + erange)
end
function calcsinglestun()
if (rtarg ~= nil) and player:CanUseSpell(SPELL_3) == READY then
local predicted, hitchance1
predicted, hitchance1 = VP:GetPredictedPos(rtarg, ecastspeed)
if predicted and (hitchance1 >=2) then
local CircX, CircZ
local dis = math.sqrt((player.x - predicted.x) ^ 2 + (player.z - predicted
.z) ^ 2)
if l ~= 1 then
CircX = predicted.x + eradius * ((player.x - predicted.x) / dis)
CircZ = predicted.z + eradius * ((player.z - predicted.z) / dis)
else
CircX = lx + eradius * ((player.x - predicted.x) / dis)
CircZ = lz + eradius * ((player.z - predicted.z) / dis)
end
lx = nil
lz = nil
l = 0
return CircX, CircZ
end
end
end
function calcdoublestun(target1, target2)
local CircX, CircZ, predicted1, predicted2, hitchance1, hitchance2
predicted1, hitchance1 = VP:GetPredictedPos(target1, ecastspeed)
predicted2, hitchance2 = VP:GetPredictedPos(target2, ecastspeed)
if predicted1 and predicted2 and (hitchance1 >=2) and (hitchance2 >=2) then
local
local
local
local

h1
k1
h2
k2

=
=
=
=

predicted1.x
predicted1.z
predicted2.x
predicted2.z

local u = (h1) ^ 2 + (h2) ^ 2 - 2 * (h1) * (h2) - (k1) ^ 2 + (k2) ^ 2


local w = k1 - k2
local v = h2 - h1
local a = 4 * (w ^ 2 + v ^ 2)

local b = 4 * (u * w - 2 * ((v) ^ 2) * (k1))


local c = (u) ^ 2 - 4 * ((v ^ 2)) * (eradius ^ 2 - k1 ^ 2)
local Z1 = ((-b) + math.sqrt((b) ^ 2 - 4 * a * c)) / (2 * a) --Z coord for f
irst solution
local Z2 = ((-b) - math.sqrt((b) ^ 2 - 4 * a * c)) / (2 * a) --Z coord for s
econd solution
local d = (Z1 - k1) ^ 2 - (eradius) ^ 2
local e = (Z1 - k2) ^ 2 - (eradius) ^ 2
local X1 = ((h2) ^ 2 - (h1) ^ 2 - d + e) / (2 * v) -- X Coord for first solu
tion
local p = (Z2 - k1) ^ 2 - (eradius) ^ 2
local q = (Z2 - k2) ^ 2 - (eradius) ^ 2
local X2 = ((h2) ^ 2 - (h1) ^ 2 - p + q) / (2 * v) --X Coord for second solu
tion
--determine if these 2 points are within range, and which is closest
local dis1 = math.sqrt((X1 - player.x) ^ 2 + (Z1 - player.z) ^ 2)
local dis2 = math.sqrt((X2 - player.x) ^ 2 + (Z2 - player.z) ^ 2)
if dis1 <= (eradius + erange) and dis1 <= dis2 then
CircX = X1
CircZ = Z1
end
if dis2 <= (eradius + erange) and dis2 < dis1 then
CircX = X2
CircZ = Z2
end
end
return CircX, CircZ
end
function UseSpell(Spell,target)
if Spell == _Q then
if VeigarConfig.combo.packet then
Packet("S_CAST", {spellId = Spell, targetNetworkId = tar
get.networkID}):send()
else
CastSpell(Spell, target)
end
elseif Spell == _W then
--Only on stunned
elseif Spell == _E then
if VeigarConfig.ew.stunv == 1 then useStun(ctarget) elseif Veiga
rConfig.ew.stunv == 2 then UseStunV2() elseif VeigarConfig.ew.stunv == 3 then Us
eStunV3() end
elseif Spell == _R then
if VeigarConfig.combo.packet then
Packet("S_CAST", {spellId = Spell, targetNetworkId = tar
get.networkID}):send()
else
CastSpell(Spell, target)
end

elseif Spell == DFG then


if VeigarConfig.combo.packet then
Packet("S_CAST", {spellId = Spell, targetNetworkId = tar
get.networkID}):send()
else
CastSpell(DFG, rtarg)
end
elseif Spell == ignite then
if VeigarConfig.combo.packet then
--Packet("S_CAST", {spellId = Spell, targetNetworkId = t
arget.networkID}):send()
CastSpell(Spell, target)
else
CastSpell(Spell, target)
end
end
end
function AutoBuyy()
if VeigarConfig.other.AutoBuy and int1 ~= 1 then
--You can change these items but don't touch int1.
BuyItem(1004)
BuyItem(2003)
BuyItem(2003)
BuyItem(2003)
BuyItem(2003)
BuyItem(2003)
BuyItem(2004)
BuyItem(2004)
BuyItem(2004)
BuyItem(3340)
int1 = 1
end
end
function ManaRegenSec()
if VeigarConfig.combo.ShowMana then
if not myHero.dead or VeigarConfig.other.Death then
local HPBARM = GetHPBarPos(myHero)
if myHero.mana < ComboManaCost({_Q}) then
timetoregen = (ComboManaCost({_Q}) - myHero.mana
) / myHero.mpRegen
mvar = "Q"
if ftarg == nil then DrawText("NoMana:"..mvar.."
("..math.floor(timetoregen).."s)",15, HPBARM.x - 78, HPBARM.y - 4,RGB(51, 255, 2
55)) else DrawText("No Mana for:"..mvar.."("..math.floor(timetoregen).."s)",15,
HPBARM.x - 76, HPBARM.y + 8,RGB(51, 255, 255)) end
elseif myHero.mana < ComboManaCost({_W, _E}) then
timetoregen = (ComboManaCost({_W, _E}) - myHero.
mana) / myHero.mpRegen
mvar = "E+W"
if ftarg == nil then DrawText("NoMana:"..mvar.."
("..math.floor(timetoregen).."s)",15, HPBARM.x - 78, HPBARM.y - 4,RGB(51, 255, 2
55)) else DrawText("No Mana for:"..mvar.."("..math.floor(timetoregen).."s)",15,
HPBARM.x - 76, HPBARM.y + 8,RGB(51, 255, 255)) end
elseif myHero.mana < ComboManaCost({_Q, _W, _E}) then
timetoregen = (ComboManaCost({_Q, _W, _E}) - myH
ero.mana) / myHero.mpRegen
mvar = "E+W+Q"
if ftarg == nil then DrawText("NoMana:"..mvar.."

("..math.floor(timetoregen).."s)",15, HPBARM.x - 78, HPBARM.y - 4,RGB(51, 255, 2


55)) else DrawText("No Mana for:"..mvar.."("..math.floor(timetoregen).."s)",15,
HPBARM.x - 76, HPBARM.y + 8,RGB(51, 255, 255)) end
elseif myHero.mana < ComboManaCost({_Q, _W, _E, _R}) the
n
timetoregen = (ComboManaCost({_Q, _W, _E, _R}) myHero.mana) / myHero.mpRegen
mvar = "E+W+Q+R"
if ftarg == nil then DrawText("NoMana:"..mvar.."
("..math.floor(timetoregen).."s)",15, HPBARM.x - 78, HPBARM.y - 4,RGB(51, 255, 2
55)) else DrawText("No Mana for:"..mvar.."("..math.floor(timetoregen).."s)",15,
HPBARM.x - 76, HPBARM.y + 8,RGB(51, 255, 255)) end
end
end
end
end
function ManaCosts()
Qlevel = myHero:GetSpellData(_Q).level
Wlevel = myHero:GetSpellData(_W).level
Elevel = myHero:GetSpellData(_E).level
Rlevel = myHero:GetSpellData(_R).level
end
function DrawNoMana()
timetoregen = (ComboManaCost({_Q, _W, _E, _R}) - myHero.mana) / myHero.m
pRegen
end
function UpdateCheck()
local AUTOUPDATE = true
local SCRIPT_NAME = "Veigar Little Helper"
local SOURCELIB_URL = "https://raw.github.com/TheRealSource/public/master/common
/SourceLib.lua"
local SOURCELIB_PATH = LIB_PATH.."SourceLib.lua"
local DownloadSourceLib = false
if FileExist(SOURCELIB_PATH) then
require("SourceLib")
else
DownloadSourceLib = true
DownloadFile(SOURCELIB_URL, SOURCELIB_PATH, function() PrintChat
("SourceLib downloaded, please reload (F9)") end)
end
if DownloadSourceLib then print("Downloading required libraries, please
wait...") return end
if AUTOUPDATE then
SourceUpdater(SCRIPT_NAME, version, "raw.github.com", "/DedToto/
Veigar-Little-Helper/master/Veigar Little Helper.lua", SCRIPT_PATH .. GetCurrent
Env().FILE_NAME, "/DedToto/Veigar-Little-Helper/master/"..SCRIPT_NAME..".version
"):CheckUpdate()
end
local libDownload = Require("SourceLib")
libDownload:Add("vPrediction", "https://raw.github.com/Hellsing/BoL/mast
er/common/VPrediction.lua")
libDownload:Add("SOW", "https://raw.github.com/Hellsing/BoL/master/commo

n/SOW.lua")
libDownload:Check()
if libDownload.downloadNeeded == true then return end
---BOL TRACKER--local ScriptKey = "OBEAJEBECHB" -- Veigar the Tiny Master Of Evil auth key
assert(load(Base64Decode("G0x1YVIAAQQEBAgAGZMNChoKAAAAAAAAAAAAAQIKAAAABgBAAEFAAA
AdQAABBkBAAGUAAAAKQACBBkBAAGVAAAAKQICBHwCAAAQAAAAEBgAAAGNsYXNzAAQJAAAAQm9sQm9vc3
QABAcAAABfX2luaXQABAkAAABTZW5kU3luYwACAAAAAgAAAAoAAAADAAs/AAAAxgBAAAZBQABAAYAAHY
EAAViAQAIXQAGABkFAAEABAAEdgQABWIBAAhcAAIADQQAAAwGAAEHBAADdQIABCoAAggpAgILGwEEAAY
EBAN2AAAEKwACDxgBAAAeBQQAHAUICHQGAAN2AAAAKwACExoBCAAbBQgBGAUMAR0HDAoGBAwBdgQABhg
FDAIdBQwPBwQMAnYEAAcYBQwDHQcMDAQIEAN2BAAEGAkMAB0JDBEFCBAAdggABRgJDAEdCwwSBggQAXY
IAAVZBggIdAQAB3YAAAArAgITMwEQAQwGAAN1AgAHGAEUAJQEAAN1AAAHGQEUAJUEAAN1AAAEfAIAAFg
AAAAQHAAAAYXNzZXJ0AAQFAAAAdHlwZQAEBwAAAHN0cmluZwAEHwAAAEJvTGIwMHN0OiBXcm9uZyBhcm
d1bWVudCB0eXBlLgAECAAAAHZlcnNpb24ABAUAAABya2V5AAQHAAAAc29ja2V0AAQIAAAAcmVxdWlyZQ
AEBAAAAHRjcAAEBQAAAGh3aWQABA0AAABCYXNlNjRFbmNvZGUABAkAAAB0b3N0cmluZwAEAwAAAG9zAA
QHAAAAZ2V0ZW52AAQVAAAAUFJPQ0VTU09SX0lERU5USUZJRVIABAkAAABVU0VSTkFNRQAEDQAAAENPTV
BVVEVSTkFNRQAEEAAAAFBST0NFU1NPUl9MRVZFTAAEEwAAAFBST0NFU1NPUl9SRVZJU0lPTgAECQAAAF
NlbmRTeW5jAAQUAAAAQWRkQnVnc3BsYXRDYWxsYmFjawAEEgAAAEFkZFVubG9hZENhbGxiYWNrAAIAAA
AJAAAACQAAAAAAAwUAAAAFAAAADABAAIMAAAAdQIABHwCAAAEAAAAECQAAAFNlbmRTeW5jAAAAAAABAA
AAAQAQAAAAQG9iZnVzY2F0ZWQubHVhAAUAAAAJAAAACQAAAAkAAAAJAAAACQAAAAAAAAABAAAABQAAAH
NlbGYACgAAAAoAAAAAAAMFAAAABQAAAAwAQACDAAAAHUCAAR8AgAABAAAABAkAAABTZW5kU3luYwAAAA
AAAQAAAAEAEAAAAEBvYmZ1c2NhdGVkLmx1YQAFAAAACgAAAAoAAAAKAAAACgAAAAoAAAAAAAAAAQAAAA
UAAABzZWxmAAEAAAAAABAAAABAb2JmdXNjYXRlZC5sdWEAPwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAw
AAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAw
AAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAUAAAAFAAAABQAAAAUAAAAFAAAABQAAAAYAAAAGAAAABg
AAAAYAAAAHAAAABwAAAAcAAAAHAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAABQ
AAAAUAAAAIAAAACAAAAAgAAAAIAAAACQAAAAkAAAAJAAAACgAAAAoAAAAKAAAACgAAAAMAAAAFAAAAc2
VsZgAAAAAAPwAAAAIAAABhAAAAAAA/AAAAAgAAAGIAAAAAAD8AAAABAAAABQAAAF9FTlYACwAAABIAAA
ACAA8iAAAAhwBAAIxAQAEBgQAAQcEAAJ1AAAJbAAAAF0AAgApAQYIXAACACoBBgocAQACMwEEBAQECAE
dBQgCBgQIAxwFBAAGCAgBGwkIARwLDBIGCAgDHQkMAAYMCAEeDQwCBwwMAFoEDAp1AgAGHAEAAjABEAQ
FBBACdAIEBRwFAAEyBxAJdQQABHwCAABMAAAAEBAAAAHRjcAAECAAAAGNvbm5lY3QABA0AAABib2wuYj
Awc3QuZXUAAwAAAAAAAFRABAcAAAByZXBvcnQABAIAAAAwAAQCAAAAMQAEBQAAAHNlbmQABA0AAABHRV
QgL3VwZGF0ZS0ABAUAAABya2V5AAQCAAAALQAEBwAAAG15SGVybwAECQAAAGNoYXJOYW1lAAQIAAAAdm
Vyc2lvbgAEBQAAAGh3aWQABCIAAAAgSFRUUC8xLjANCkhvc3Q6IGJvbC5iMDBzdC5ldQ0KDQoABAgAAA
ByZWNlaXZlAAQDAAAAKmEABAYAAABjbG9zZQAAAAAAAQAAAAAAEAAAAEBvYmZ1c2NhdGVkLmx1YQAiAA
AACwAAAAsAAAALAAAACwAAAAsAAAALAAAACwAAAAwAAAAMAAAADAAAAA0AAAANAAAADQAAAA0AAAAOAA
AADwAAABAAAAAQAAAAEAAAABEAAAARAAAAEQAAABIAAAASAAAAEgAAAA0AAAASAAAAEgAAABIAAAASAA
AAEgAAABIAAAASAAAAEgAAAAUAAAAFAAAAc2VsZgAAAAAAIgAAAAIAAABhAAAAAAAiAAAAAgAAAGIAHg
AAACIAAAACAAAAYwAeAAAAIgAAAAIAAABkAB4AAAAiAAAAAQAAAAUAAABfRU5WAAEAAAABABAAAABAb2
JmdXNjYXRlZC5sdWEACgAAAAEAAAABAAAAAQAAAAIAAAAKAAAAAgAAAAsAAAASAAAACwAAABIAAAAAAA
AAAQAAAAUAAABfRU5WAA=="), nil, "bt", _ENV))() BolBoost( ScriptKey, version )
---END OF THE BOL TRACKER--end
function IgniteSlot()
if myHero:GetSpellData(SUMMONER_1).name:find("summonerdot") then
return SUMMONER_1
elseif myHero:GetSpellData(SUMMONER_2).name:find("summonerdot") then
return SUMMONER_2
else
return nil
end
end
function DrawCircleNextLvl(x, y, z, radius, width, color, chordlength)
chordlength = chorlength or VeigarConfig.draw.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 - rad
ius * math.sin(theta)))
points[#points + 1] = D3DXVECTOR2(c.x, c.y)
end
DrawLines2(points, width or 1, color or 4294967295)
end
function CustomDrawCircle(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 not VeigarConfig.draw.drawLagFree then
return DrawCircle(x, y, z, radius, color)
end
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
function ComboManaCost(Combo)
local Result = 0
for i, spell in ipairs(Combo) do
Result = Result + ManaCost(spell)
end
return Result
end
function manaPct()
return math.round((myHero.mana / myHero.maxMana)*100)
end
function IsGoodTarget(target, range)
return player:GetDistance(target) < range and target.valid and target.de
ad == false
and target.bMagicImunebMagicImune ~= true and target.bInvulnerable ~= tr
ue and target.visible
end
function moveToMouse()
--myHero:MoveTo(mousePos.x, mousePos.z)
MouseMove = Vector(myHero) + (Vector(mousePos) - Vector(myHero)):normali
zed() * 300
myHero:MoveTo(MouseMove.x, MouseMove.z)
end
function ManaCost(Spell)
if Spell == _Q and Qlevel ~= 0 then
return QMana[Qlevel]
elseif Spell == _W and Wlevel ~= 0 then
return WMana[Wlevel]
elseif Spell == _E and Elevel ~= 0 then
return EMana[Elevel]

elseif Spell == _R and Rlevel ~= 0 then


return RMana[Rlevel]
end
return 0
end
class'Circle'
function Circle:__init(center, radius)
assert((VectorType(center) or center == nil) and (type(radius) == "number" or
radius == nil), "Circle: wrong argument types (expected <Vector> or nil, <number
> or nil)")
self.center = Vector(center) or Vector()
self.radius = radius or 0
end
function Circle:Contains(v)
assert(VectorType(v), "Contains: wrong argument types (expected <Vector>)")
return math.close(self.center:dist(v), self.radius)
end
function Circle:__tostring()
return "{center: " .. tostring(self.center) .. ", radius: " .. tostring(self.r
adius) .. "}"
end
function Potions()
if VeigarConfig.LifeSaver.zwsave and myHero.health < (myHero.max
Health * (VeigarConfig.LifeSaver.zwhealth / 100)) then
if znaReady then
CastSpell(zhonya)
end
if wgtReady then
CastSpell(wooglet)
end
if seraph ~= nil and myHero:CanUseSpell(seraph) == READY
then
CastSpell(seraph)
end
end
if TargetHaveBuff("SummonerDot", myHero) or TargetHaveBuff("Mor
dekaiserChildrenOfTheGrave", myHero) and not InFountain() and VeigarConfig.LifeS
aver.antign then
if hppot ~= nil and not TargetHaveBuff("RegenerationPoti
on", myHero) then
CastSpell(hppot)
end
if flaskk ~= nil then
CastSpell(flaskk)
end
if elixir ~= nil then
CastSpell(elixir)
end
end
if VeigarConfig.AP.pots then
if not TargetHaveBuff("Recall", myHero) and not TargetHaveBuff("Summoner

Teleport", myHero) and not TargetHaveBuff("RecallImproved", myHero) and not InFo


untain() then
if VeigarConfig.AP.hp and hppot ~= nil then
if ((myHero.health/myHero.maxHealth)*100) < VeigarConfig
.AP.hp and not TargetHaveBuff("RegenerationPotion", myHero) then
CastSpell(hppot)
end
end
if VeigarConfig.AP.hp and Biscuit ~= nil then
if ((myHero.health/myHero.maxHealth)*100) < VeigarConfig
.AP.hp and not TargetHaveBuff("ItemMiniRegenPotion", myHero) then
CastSpell(Biscuit)
end
end
if VeigarConfig.AP.mp and mppot ~= nil then
if ((myHero.mana/myHero.maxMana)*100) < VeigarConfig.AP.
mp and not TargetHaveBuff("FlaskOfCrystalWater", myHero) then
CastSpell(mppot)
end
end
if VeigarConfig.AP.flask and flaskk ~= nil then
if ((myHero.health/myHero.maxHealth)*100) < VeigarConfig
.AP.hp and not TargetHaveBuff("ItemCrystalFlask", myHero) then
CastSpell(flaskk)
end
end
if VeigarConfig.AP.elixir and elixir ~= nil then
if ((myHero.health/myHero.maxHealth)*100) < VeigarConfig
.AP.elixir then
CastSpell(elixir)
end
end
end
end
end
function performWasteCombo()
targ = rtarg
local DFG = GetInventorySlotItem(3128)
UseSpell(_E, targ)
if DFGI ~= 0 then UseSpell(DFG, targ) end
if VeigarConfig.combo.tryq then
if R ~= 0 then UseSpell(_R, targ) end
if ignitos ~= 0 then UseSpell(ignite, targ) end
if Q ~= 0 then UseSpell(_Q, targ) end
else
if Q ~= 0 then UseSpell(_Q, targ) end
if R ~= 0 then UseSpell(_R, targ) end
if ignitos ~= 0 then UseSpell(ignite, targ) end
end
end
function performSmartCombo()
targ = rtarg
combo = dmgCalc(targ, false)

if aLock[targ.name] == 0 or aTime[targ.name] == nil then


aLock[targ.name] = 1
aTime[targ.name] = GetTickCount()
end
if combo == 1 then
performcombo1()
elseif combo == 2 then
performcombo2()
elseif combo == 17 then
performcombo17()
elseif combo == 18 then
performcombo18()
elseif combo == 19 then
performcombo19()
elseif combo == 3 then
performcombo3()
elseif combo == 4 then
performcombo4()
elseif combo == 5 then
performcombo5()
elseif combo == 6 then
performcombo6()
elseif combo == 16 then
performcombo16()
elseif combo == 7 then
performcombo7()
elseif combo == 8 then
performcombo8()
elseif combo == 9 then
performcombo9()
elseif combo == 10 then
performcombo10()
elseif combo == 11 then
performcombo11()
elseif combo == 12 then
performcombo12()
elseif combo == 13 then
performcombo13()
elseif combo == 14 then
performcombo14()
elseif combo == 15 then

performcombo15()
end
end
aCombo = {}
aTime = {}
aLock = {}
function dmgCalc(drawtarget)
if drawtarget ~= nil and drawtarget.team ~= player.team and drawtarget.v
isible and not drawtarget.dead then
if aTime[drawtarget.name]~= nil and GetTickCount() - aTime[drawt
arget.name] < 2000 then
return aCombo[drawtarget.name]
end
aLock[drawtarget.name] = 0
local Qdmg = getDmg("Q", drawtarget, myHero)
local Wdmg = getDmg("W", drawtarget, myHero)
local Rdmg = getDmg("R", drawtarget, myHero)
local AAdmg = (getDmg("AD", drawtarget, myHero))
local DFGdmg = 0
local IGNITEdmg = 50 + 20 * myHero.level
local DMG = 0 + AAdmg
local Qdmgi = Qdmg * 1.2
local Wdmgi = Wdmg * 1.2
local Rdmgi = Rdmg * 1.2
if DFGI ~= 0 then DFGdmg = getDmg("DFG", drawtarget,myHero) end
if VeigarConfig.combo.savedfg then
if (drawtarget.health <= (Qdmg + AAdmg)
and Q ~= 0 ) then
--Q
aCombo[drawtarget.name] = 1
return 1
--elseif (drawtarget.health <= (
Qdmgi + AAdmg + DFGdmg) and Q ~= 0 and DFGI ~= 0) then
--DFG Q
--aCombo[drawtarget.name] = 2
--return 2
--int5 = 1
elseif (drawtarget.health <= (Wd
mg + AAdmg) and W ~= 0 and E ~= 0) then
--W
aCombo[drawtarget.name] = 17
int5 = 17
return 17
elseif (drawtarget.health <= (Wd
mgi + DFGdmg + AAdmg) and W ~= 0 and E ~= 0 and DFGI ~= 0) then
--DFG W
--W
aCombo[drawtarget.name] = 17
int5 = 18
return 18
elseif (drawtarget.health <= (IG
NITEdmg) and ignitos ~= 0) then
--IGNITE
int5 = 19
return 19
elseif (drawtarget.health <= (Qd
mg + Wdmg + AAdmg) and Q ~= 0 and W ~= 0 and E ~= 0) then
--Q+W
aCombo[drawtarget.name] = 3

return 3
--elseif (drawtarget.health <= (
Qdmgi + Wdmgi + AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and DFGI ~= 0 and E ~= 0)
then
--DFG Q+W
--aCombo[drawtarget.name] = 4
--return 4
--int5 = 3
elseif (drawtarget.health <= (Qd
mg + Wdmg + IGNITEdmg + AAdmg) and Q ~= 0 and W ~= 0 and ignitos ~= 0 and E ~= 0
) then
--Q+W+IGN
aCombo[drawtarget.name] = 5
return 5
--int5 = 5
--elseif (drawtarget.health <= (
Qdmgi + Wdmgi + IGNITEdmg + AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and ignitos ~=
0 and DFGI ~= 0 and E ~= 0) then
--DFG Q+W+IGN
--aCombo[drawtarget.name] = 6
--return 6
elseif (drawtarget.health <= (Rd
mg + AAdmg) and R ~= 0) then
--R
aCombo[drawtarget.name] = 16
return 16
--int5 = 16
elseif (drawtarget.health <= (Qd
mg + AAdmg + Rdmg) and Q ~= 0 and R ~= 0 ) then
--Q+R
aCombo[drawtarget.name] = 7
return 7
--int5 = 7
--elseif (drawtarget.health <= (
Qdmgi + AAdmg + DFGdmg + Rdmgi) and Q ~= 0 and R ~= 0 and DFGI ~= 0) then
--DFG Q+R
--aCombo[drawtarget.name] = 8
--return 8
elseif (drawtarget.health <= (Qd
mg + IGNITEdmg + AAdmg + Rdmg) and Q ~= 0 and R ~= 0 and ignitos ~= 0 ) then
--Q+R+IGN
aCombo[drawtarget.name] = 9
return 9
--int5 = 9
--elseif (drawtarget.health <= (
Qdmgi + IGNITEdmg + AAdmg + DFGdmg + Rdmgi) and Q ~= 0 and R ~= 0 and ignitos ~=
0 and DFGI ~= 0) then
--DFG Q+R+IGN
--aCombo[drawtarget.name] = 10
--return 10
elseif (drawtarget.health <= (Qd
mg + Wdmg + Rdmg + AAdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and E ~= 0) then
--Q+W+R
aCombo[drawtarget.name] = 11
return 11
--int5 = 11
elseif (drawtarget.health <= (Qd
mgi + Wdmgi + Rdmgi + AAdmg + DFGdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and DFGI
~= 0 and E ~= 0) then
--DFG Q+W+R

aCombo[drawtarget.name] = 12
return 12
--int5 = 12
elseif (drawtarget.health <= (Qd
mg + Wdmg + Rdmg + IGNITEdmg + AAdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and igni
tos ~= 0 and E ~= 0 ) then
--Q+W+R+IGN
aCombo[drawtarget.name] = 13
return 13
--int5 = 13
elseif (drawtarget.health <= (Qd
mgi + Wdmgi + Rdmgi + IGNITEdmg + AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and R ~=
0 and ignitos ~= 0 and DFGI ~= 0 and E ~= 0) then
--DFG Q+W+R+IGN
aCombo[drawtarget.name] = 14
return 14
--int5 = 14
elseif (drawtarget.health > (Qdm
gi + Wdmgi + Rdmgi + IGNITEdmg + AAdmg + DFGdmg) and Q ~= 0) then
--unkillable
aCombo[drawtarget.name] = 15
return 15
--int5 = 15
end
else
if (drawtarget.health <= (Qdmg + AAdmg)
and Q ~= 0 ) then
--Q
aCombo[drawtarget.name] = 1
int5 = 1
return 1
elseif (drawtarget.health <= (Qd
mgi + AAdmg + DFGdmg) and Q ~= 0 and DFGI ~= 0) then
--DFG Q
aCombo[drawtarget.name] = 2
int5 = 2
return 2
elseif (drawtarget.health <= (Wd
mg + AAdmg) and W ~= 0 and E ~= 0) then
--W
aCombo[drawtarget.name] = 17
int5 = 17
return 17
elseif (drawtarget.health <= (Wd
mgi + DFGdmg + AAdmg) and W ~= 0 and E ~= 0 and DFGI ~= 0) then
--DFG W
--W
aCombo[drawtarget.name] = 17
int5 = 18
return 18
elseif (drawtarget.health <= (IG
NITEdmg) and ignitos ~= 0) then
--IGNITE
int5 = 19
return 19
elseif (drawtarget.health <= (Qd
mg + Wdmg + AAdmg) and Q ~= 0 and W ~= 0 and E ~= 0) then
--Q+W
aCombo[drawtarget.name] = 3
int5 = 3
return 3

elseif (drawtarget.health <= (Qd


mgi + Wdmgi + AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and DFGI ~= 0 and E ~= 0) th
en
--DFG Q+W
aCombo[drawtarget.name] = 4
int5 = 4
return 4
elseif (drawtarget.health <= (Qd
mg + Wdmg + IGNITEdmg + AAdmg) and Q ~= 0 and W ~= 0 and ignitos ~= 0 and E ~= 0
) then
--Q+W+IGN
aCombo[drawtarget.name] = 5
int5 = 5
return 5
elseif (drawtarget.health <= (Qd
mgi + Wdmgi + IGNITEdmg + AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and ignitos ~= 0
and DFGI ~= 0 and E ~= 0) then
--DFG Q+W+IGN
aCombo[drawtarget.name] = 6
int5 = 6
return 6
elseif (drawtarget.health <= (Rd
mg + AAdmg) and R ~= 0) then
--R
aCombo[drawtarget.name] = 16
int5 = 16
return 16
elseif (drawtarget.health <= (Qd
mg + AAdmg + Rdmg) and Q ~= 0 and R ~= 0 ) then
--Q+R
aCombo[drawtarget.name] = 7
int5 = 7
return 7
elseif (drawtarget.health <= (Qd
mgi + AAdmg + DFGdmg + Rdmgi) and Q ~= 0 and R ~= 0 and DFGI ~= 0) then
--DFG Q+R
aCombo[drawtarget.name] = 8
int5 = 8
return 8
elseif (drawtarget.health <= (Qd
mg + IGNITEdmg + AAdmg + Rdmg) and Q ~= 0 and R ~= 0 and ignitos ~= 0 ) then
--Q+R+IGN
aCombo[drawtarget.name] = 9
int5 = 9
return 9
elseif (drawtarget.health <= (Qd
mgi + IGNITEdmg + AAdmg + DFGdmg + Rdmgi) and Q ~= 0 and R ~= 0 and ignitos ~= 0
and DFGI ~= 0) then
--DFG Q+R+IGN
aCombo[drawtarget.name] = 10
int5 = 10
return 10
elseif (drawtarget.health <= (Qd
mg + Wdmg + Rdmg + AAdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and E ~= 0) then
--Q+W+R
aCombo[drawtarget.name] = 11
int5 = 11
return 11
elseif (drawtarget.health <= (Qd
mgi + Wdmgi + Rdmgi + AAdmg + DFGdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and DFGI

~= 0 and E ~= 0) then
--DFG Q+W+R
aCombo[drawtarget.name] = 12
int5 = 12
return 12
elseif (drawtarget.health <= (Qd
mg + Wdmg + Rdmg + IGNITEdmg + AAdmg ) and Q ~= 0 and W ~= 0 and R ~= 0 and igni
tos ~= 0 and E ~= 0 ) then
--Q+W+R+IGN
aCombo[drawtarget.name] = 13
int5 = 13
return 13
elseif (drawtarget.health <= (Qd
mgi + Wdmgi + Rdmgi + IGNITEdmg + AAdmg + DFGdmg) and Q ~= 0 and W ~= 0 and R ~=
0 and ignitos ~= 0 and DFGI ~= 0 and E ~= 0) then
--DFG Q+W+R+IGN
aCombo[drawtarget.name] = 14
int5 = 14
return 14
elseif Q ~= 0 then
--unkillable
aCombo[drawtarget.name] = 15
int5 = 15
return 15
end
end
aCombo[drawtarget.name] = 0
int5 = 0
return 0
end
end
function performcombo1()
if rtarg ~= nil and GetDistance(rtarg, myHero) <= 650 then
targ = rtarg
if VeigarConfig.ew.forcestun then UseSpell(_E, targ) end
UseSpell(_Q, targ)
end
end
function performcombo2()
if rtarg ~= nil and GetDistance(rtarg, myHero) <= 650 then
local DFG = GetInventorySlotItem(3128)
targ = rtarg
if VeigarConfig.ew.forcestun then UseSpell(_E, targ) end
UseSpell(DFG, targ)
UseSpell(_Q, targ)
end
end
function performcombo3()
if rtarg ~= nil and GetDistance(rtarg, myHero) <= 1000 then
targ = rtarg
UseSpell(_E,targ)
if W ~= 1 then
UseSpell(_Q, targ)
end
end

end
function performcombo4()
if rtarg ~= nil then
local DFG = GetInventorySlotItem(3128)
targ = rtarg
UseSpell(_E, targ)
if W ~= 1 then
UseSpell(DFG, targ)
UseSpell(_Q, targ)
end
end
end
function performcombo5()
if rtarg ~= nil then
targ = rtarg
UseSpell(_E, targ)
if W ~= 1 then
if VeigarConfig.combo.tryq then
UseSpell(ignite, targ)
UseSpell(_Q, targ)
else
UseSpell(_Q, targ)
UseSpell(ignite, targ)
end
end
end
end
function performcombo6()
if rtarg ~= nil then
local DFG = GetInventorySlotItem(3128)
targ = rtarg
UseSpell(_E, targ)
if W ~= 1 then
UseSpell(DFG, targ)
if VeigarConfig.combo.tryq then
UseSpell(ignite, targ)
UseSpell(_Q, targ)
else
UseSpell(_Q, targ)
UseSpell(ignite, targ)
end
end
end
end
function performcombo7()
if rtarg ~= nil then
targ = rtarg
if VeigarConfig.ew.forcestun then UseSpell(_E, targ) end
if VeigarConfig.combo.tryq then
UseSpell(_R, targ)
UseSpell(_Q, targ)
else
UseSpell(_Q, targ)
UseSpell(_R, targ)
end

end
end
function performcombo8()
if rtarg ~= nil then
local DFG = GetInventorySlotItem(3128)
targ = rtarg
if VeigarConfig.ew.forcestun then UseSpell(_E, targ) end
UseSpell(DFG, targ)
if VeigarConfig.combo.tryq then
UseSpell(_R, targ)
UseSpell(_Q, targ)
else
UseSpell(_Q, targ)
UseSpell(_R, targ)
end
end
end
function performcombo9()
if rtarg ~= nil then
targ = rtarg
if VeigarConfig.ew.forcestun then UseSpell(_E, targ) end
if VeigarConfig.combo.tryq then
UseSpell(_R, targ)
UseSpell(ignite, targ)
UseSpell(_Q, targ)
else
UseSpell(_Q, targ)
UseSpell(_R, targ)
UseSpell(ignite, targ)
end
end
end
function performcombo10()
if rtarg ~= nil then
local DFG = GetInventorySlotItem(3128)
targ = rtarg
UseSpell(_E, targ)
UseSpell(DFG, targ)
if VeigarConfig.combo.tryq then
UseSpell(_R, targ)
UseSpell(ignite, targ)
UseSpell(_Q, targ)
else
UseSpell(_Q, targ)
UseSpell(_R, targ)
UseSpell(ignite, targ)
end
end
end
function performcombo11()
if rtarg ~= nil then
targ = rtarg
UseSpell(_E, targ)
if W ~= 1 then
if VeigarConfig.combo.tryq then
UseSpell(_R, targ)

UseSpell(_Q, targ)
else
UseSpell(_Q, targ)
UseSpell(_R, targ)
end
end
end
end
function performcombo12()
if rtarg ~= nil then
local DFG = GetInventorySlotItem(3128)
targ = rtarg
UseSpell(_E, targ)
if W ~= 1 then
UseSpell(DFG, targ)
if VeigarConfig.combo.tryq then
UseSpell(_R, targ)
UseSpell(_Q, targ)
else
UseSpell(_Q, targ)
UseSpell(_R, targ)
end
end
end
end
function performcombo13()
if rtarg ~= nil then
targ = rtarg
UseSpell(_E, targ)
if W ~= 1 then
if VeigarConfig.combo.tryq then
UseSpell(_R, targ)
UseSpell(ignite, targ)
UseSpell(_Q, targ)
else
UseSpell(_Q, targ)
UseSpell(_R, targ)
UseSpell(ignite, targ)
end
end
end
end
function performcombo14()
if rtarg ~= nil then
local DFG = GetInventorySlotItem(3128)
targ = rtarg
UseSpell(_E, targ)
if W ~= 1 then
UseSpell(DFG, targ)
if VeigarConfig.combo.tryq then
UseSpell(_R, targ)
UseSpell(ignite, targ)
UseSpell(_Q, targ)
else
UseSpell(_Q, targ)
UseSpell(_R, targ)
UseSpell(ignite, targ)

end
end
end
end
function performcombo15()
if rtarg ~= nil and GetDistance(rtarg, myHero) <= 650 then
targ = rtarg
if VeigarConfig.ew.forcestun then UseSpell(_E, targ) end
UseSpell(_Q, targ)
end
end
function performcombo16()
if rtarg ~= nil then
targ = rtarg
if VeigarConfig.ew.forcestun then UseSpell(_E, targ) end
UseSpell(_R, targ)
end
end
function performcombo17()
if rtarg ~= nil then
targ = rtarg
UseSpell(_E, targ)
end
end
function performcombo18()
if rtarg ~= nil then
local DFG = GetInventorySlotItem(3128)
targ = rtarg
UseSpell(_E, targ)
if targ.canMove ~= true then
UseSpell(DFG, targ)
end
end
end
function performcombo19()
if rtarg ~= nil then
local DFG = GetInventorySlotItem(3128)
targ = rtarg
if VeigarConfig.ew.forcestun then UseSpell(_E, targ) end
UseSpell(ignite, targ)
end
end
function AutoLevel()
if VeigarConfig.other.lvlup == 1 then
abilitySequence = { 1, 3, 1, 2, 1, 4, 1, 3, 2, 1, 4, 2, 2, 3, 2,
4, 3, 3, }
elseif VeigarConfig.other.lvlup == 2 then
abilitySequence = { 1, 3, 2, 1, 2, 4, 2, 3, 2, 1, 4, 2, 1, 3, 1,
4, 1, 3, }
elseif VeigarConfig.other.lvlup == 3 then

abilitySequence = { 1, 3, 2, 3, 2, 4, 3, 2, 3, 2, 4, 3, 2, 1, 1,
4, 1, 1, }
end
if VeigarConfig.other.Autolvl then
local qL, wL, eL, rL = player:GetSpellData(_Q).level + qOff, pla
yer:GetSpellData(_W).level + wOff, player:GetSpellData(_E).level + eOff, player:
GetSpellData(_R).level + rOff
if qL + wL + eL + rL < player.level then
local spellSlot = { SPELL_1, SPELL_2, SPELL_3, SPELL_4,
}
local level = { 0, 0, 0, 0 }
for i = 1, player.level, 1 do
level[abilitySequence[i]] = level[abilitySequenc
e[i]] + 1
end
for i, v in ipairs({ qL, wL, eL, rL }) do
if v < level[i] then LevelSpell(spellSlot[i]) en
d
end
end
end
end
function LifeSaver()
if VeigarConfig.LifeSaver.LifeSaver then
local closestEnemy = findClosestEnemy()
if closestEnemy ~= nil and CanUseSpell(_E) == READY and not myHe
ro.dead and GetDistance(closestEnemy) < VeigarConfig.LifeSaver.LifeSaverRange th
en
UseSpell(_E,closestEnemy)
end
end
end
function findClosestEnemy()
local closestEnemy = nil
local currentEnemy = nil
for i=1, heroManager.iCount do
currentEnemy = heroManager:GetHero(i)
if currentEnemy.team ~= myHero.team and not currentEnemy.dead an
d currentEnemy.visible then
if closestEnemy == nil then
closestEnemy = currentEnemy
elseif GetDistance(currentEnemy) < GetDistance(closestEn
emy) then
closestEnemy = currentEnemy
end
end
end
return closestEnemy
end
function UseStunV2()
local lowest = nil
local lowPos = nil
for i=0, heroManager.iCount, 1 do
local enemy = heroManager:GetHero(i)
local position = CagePosition(player, ctarget, true)

if position ~= nil then


lowPos = position
lowest = ctarget
end
end
if lowest ~= nil and player:CanUseSpell(_E) == READY then
CastSpell(_E, lowPos.x, lowPos.z)
end
end
function UseStunV3()
minD = 0
minE = nil
for i, enemy in ipairs(GetEnemyHeroes()) do
if ValidTarget(enemy, erange+eradius) then
if GetDistance(enemy) < minD or minE == nil then
minD = GetDistance(enemy)
minE = enemy
end
end
end
if minE ~= nil then
if VeigarConfig.ew.stuncl and GetDistance(minE, myHero)
<= 1000 then UseE(minE) elseif GetDistance(rtarg, myHero) <= 1000 then UseE(rta
rg) end
end
end
function UseE(target)
local CastPosition, HitChance, Position = VP:GetCircularCastPosition(t
arget, Edelay, Ewidth, math.huge)
ProdictionECallback(target, Position, _E)
end
function ProdictionECallback(unit, pos, spell)
if not E == 1 then return end
local PredictedPosition = Vector(pos.x, 0, pos.z)
local myPos = Vector(myHero.x, 0, myHero.z)
local Targets = {}
for i, enemy in ipairs(GetEnemyHeroes()) do
if ValidTarget(enemy) and (enemy.charName ~= unit.charNa
me) then
local CastPosition, HitChance, Position = VP:G
etCircularCastPosition(enemy, Edelay, Ewidth, math.huge)
if Position and (GetDistance(Position) <= erange
+ eradius) then
table.insert(Targets, Position)
end
end
end
--[[At the moment only 2 targets supported]]
while #Targets > 1 do
table.remove(Targets, 1)
end
--[[The main target and another 1]]

if #Targets == 1 then
PredictedTargetPos = PredictedPosition -- for debugging
SecondaryPos = Vector(Targets[1].x, 0, Targets[1].z)
if (GetDistance(PredictedPosition, SecondaryPos) <= erad
ius * 2) and (GetDistance(PredictedPosition, SecondaryPos) ~= 0) then
--Get the point(s) to get the two targets
Solution1, Solution2 = CalculateEcastPoints(Seco
ndaryPos, PredictedPosition)
if GetDistance(Solution1) <= erange then
ECastPosition = Solution1
elseif GetDistance(Solution2) <= erange then
ECastPosition = Solution2
else--[[Solutions out of range, calculate the so
lution for the main target]]
table.remove(Targets, 1)
end
else --Cant get the two targets, calculate the solution
for the main target
table.remove(Targets, 1)
end
end
--[[Only 1 target in range, cast E in our direction]]
if #Targets == 0 then
local DirectionVector = eradius * (myPos - PredictedPosition):no
rmalized()
ECastPosition = Vector(PredictedPosition.x + DirectionVector.x,
0, PredictedPosition.z + DirectionVector.z)
end
if ECastPosition and (GetDistance(ECastPosition) < erange) then
CastSpell(_E, ECastPosition.x, ECastPosition.z)
end
end
function ProdictionWCallback(unit, pos, spell)
local PredictedPosition = Vector(pos.x, 0, pos.z)
local myPos = Vector(myHero.x, 0, myHero.z)
if (GetDistance(PredictedPosition) < (wrange + wradius)) and W ~
= 0 then
local DirectionVector = wrange * (PredictedPosition - my
Pos):normalized()
if GetDistance(PredictedPosition) <= wrange then
CastSpell(_W, PredictedPosition.x, PredictedPosi
tion.z)
else
CastSpell(_W, myPos.x + DirectionVector.x, myPos
.z + DirectionVector.z)
end
end
end
function CalculateEcastPoints(target1, target2)
local CenterPoint = Vector((target1.x + target2.x)/2,0,(target1.z + targ
et2.z)/2)
local Perpendicular = Vector(target1.x - target2.x, 0, target1.z - targe
t2.z):normalized():perpendicular()
local D = GetDistance(target1, target2) / 2
local A = math.sqrt(eradius * eradius - D * D)

local S1 = CenterPoint + A * Perpendicular


local S2 = CenterPoint - A * Perpendicular
return S1, S2
end
function CagePosition(player, enemy, prediction)
if IsGoodTarget(enemy, cageRange) and OtherTeam(enemy) then
local enemyPred = nil
if prediction == true then
enemyPred = GetPredictionPos(enemy, 500)
else
enemyPred = enemy
end
-- calculation of cage position
local a = (enemyPred.z - player.z) / (enemyPred.x - player.x)
local b = player.z - a * player.x
local pos = { }
pos.x = player.x + 1
pos.z = a * pos.x + b
local plusX = (GetDistance(player, enemyPred) - cageItselfRange
+ cageDiff) / GetDistance(player, pos)
if GetDistance(enemyPred, pos) < GetDistance(enemyPred, player)
then
pos.x = player.x + plusX
else
pos.x = player.x - plusX
end
pos.z = a * pos.x + b
pos.y = player.y
return pos
else
return nil
end
end
function OtherTeam(target)
return target.team ~= player.team
end
function round(num, idp)
return (string.format("%." .. (idp or 0) .. "f", num))
end
function Checks()
if ts.target ~= nil then tt = ts.target else tt = nil end
if VeigarConfig.combo.newtsr then if ftarg ~= nil and ftarg.dead == true then ft
arg = nil end end
ts:update()
--DFG CHECK-if GetInventorySlotItem(3128) ~= nil then
int2 = 1
else
int2 = 0

end
if int2 ~= 0 then
local DFG = GetInventorySlotItem(3128)
if DFG ~= nil and myHero:CanUseSpell(DFG) == READY then
DFGI = 1
else
DFGI = 0
DFGII = round(GetSpellData(DFG).currentCd, 1)
end
end
--Q,W,E,R,IGNITE CHECK-if CanUseSpell(_Q) == READY then
Q = 1
else
Q = 0
QQ = round(GetSpellData(_Q).currentCd, 1)
end
if CanUseSpell(_W) == READY then
W = 1
else
W = 0
WW = round(GetSpellData(_W).currentCd, 1)
end
if CanUseSpell(_R) == READY then
R = 1
else
R = 0
RR = round(GetSpellData(_R).currentCd, 1)
end
ignite = IgniteSlot()
if (ignite ~= nil) and (myHero:CanUseSpell(ignite) == READY) then
ignitos = 1
else
ignitos = 0
if ignite ~= nil then ignitoss = round(GetSpellData(ignite).currentCd, 1
) end
end
if CanUseSpell(_E) == READY then
E = 1
else
E = 0
EE = round(GetSpellData(_E).currentCd, 1)
end
if rtarg ~= nil and rtarg.dead == true then rtarg = nil end
--Farm way check-if VeigarConfig.farm.farmm == 1 then SetMode = SCRIPT_PARAM_ONKEYTOGGLE
else SetMode = SCRIPT_PARAM_ONKEYDOWN end
VeigarConfig.farm._param[1].pType = SetMode
if VeigarConfig.farm.farmmm == 1 then SetMode1 = SCRIPT_PARAM_ONKEYTOGGL
E else SetMode1 = SCRIPT_PARAM_ONKEYDOWN end
VeigarConfig.farm._param[2].pType = SetMode1
--Zhonya&Wooglet check-znaReady = (zhonya ~= nil and myHero:CanUseSpell(zhonya) == READY)
wgtReady = (wooglet ~= nil and myHero:CanUseSpell(wooglet) == READY)

--COMBO CHECKS-ctarget = rtarg


if VeigarConfig.combo.spacebarActive and ValidTarget(rtarg) then
performSmartCombo()
end
if VeigarConfig.combo.wasteall and ValidTarget(rtarg) and GetDistance(rt
arg, myHero) <= 1000 then
performWasteCombo()
end
if VeigarConfig.combo.lightcombo and ValidTarget(rtarg) and GetDistance(
rtarg, myHero) <= 1000 then
performLightCombo()
end
for i, enemy in ipairs(GetEnemyHeroes()) do
expos = enemy.pos
end
if VeigarConfig.ew.stuncl then
UseStunV3()
end
if VeigarConfig.other.tsremove then ftarg = nil end
if not VeigarConfig.combo.newts then ftarg = nil end
if ftarg ~= nil and VeigarConfig.combo.newts then rtarg = ftarg elseif t
s.target ~= nil then rtarg = ts.target end
--SLOT CHECKS-hppot = GetInventorySlotItem(2003)
mppot = GetInventorySlotItem(2004)
elixir = GetInventorySlotItem(2037)
flaskk = GetInventorySlotItem(2041)
Biscuit = GetInventorySlotItem(2010)
zhonya = GetInventorySlotItem(3157)
wooglet = GetInventorySlotItem(3090)
seraph = GetInventorySlotItem(3040)
DFG = GetInventorySlotItem(3128)
if VeigarConfig.combo.spacebarActive or VeigarConfig.combo.lightcombo or
VeigarConfig.combo.wasteall or VeigarConfig.ew.stuncl or VeigarConfig.ew.cageTe
amActive or VeigarConfig.harras.Qharras or VeigarConfig.ew.eCastActive then
if VeigarConfig.combo.moveway == 1 then return end
if VeigarConfig.combo.moveway == 2 then if VIP_USER then Packet(
'S_MOVE', {type = 2, x = mousePos.x, y = mousePos.z}):send() else moveToMouse()
end
elseif VeigarConfig.combo.moveway == 3 and VIP_USER then
local Otarget = rtarg
if Otarget then
if os.clock() + GetLatency()/2000 > LastAttack + LastAnimationT
and GetDistance(Otarget) < 550 and not _G.evade then
Packet('S_MOVE', {type = 3, targetNetworkId=Otarget.netw
orkID}):send()
elseif os.clock() + GetLatency()/2000 > LastAttack + LastWindUp
+ 0.05 and not _G.evade then
Packet('S_MOVE', {type = 2, x = mousePos.x, y =
mousePos.z}):send()
end
elseif not _G.evade then

Packet('S_MOVE', {type = 2, x = mousePos.x, y = mousePos


.z}):send()
end
elseif VeigarConfig.combo.moveway == 3 and FREE_USER then
moveToMouse()
end
end
end

function GetNMinionsHit(Pos, radius)


local count = 0
for i, minion in pairs(EnemyMinions2.objects) do
if GetDistance(minion, Pos) < (radius + 50) then
count = count + 1
end
end
return count
end
-- Change skin function, made by Shalzuth
function GenModelPacket(champ, skinId)
p = CLoLPacket(0x97)
p:EncodeF(myHero.networkID)
p.pos = 1
t1 = p:Decode1()
t2 = p:Decode1()
t3 = p:Decode1()
t4 = p:Decode1()
p:Encode1(t1)
p:Encode1(t2)
p:Encode1(t3)
p:Encode1(bit32.band(t4,0xB))
p:Encode1(1)--hardcode 1 bitfield
p:Encode4(skinId)
for i = 1, #champ do
p:Encode1(string.byte(champ:sub(i,i)))
end
for i = #champ + 1, 64 do
p:Encode1(0)
end
p:Hide()
RecvPacket(p)
end

You might also like