--╔═══╗╔══╗╔═╗╔═╗╔═══╗╔╗ ╔═══╗ ╔═══╗╔═══╗╔════╗╔══╗╔╗──╔╗╔═══╗╔════╗╔═══╗╔═══╗
--║╔═╗║╚╣─╝║║╚╝║║║╔═╗║║║ ║╔══╝ ║╔═╗║║╔═╗║║╔╗╔╗║╚╣─╝║╚╗╔╝║║╔═╗║║╔╗╔╗║║╔═╗║║╔═╗║
--║╚══╗ ║║ ║╔╗╔╗║║╚═╝║║║ ║╚══╗ ║║ ║║║║ ╚╝╚╝║║╚╝ ║║ ╚╗║║╔╝║║ ║║╚╝║║╚╝║║ ║║║╚═╝║
--╚══╗║ ║║ ║║║║║║║╔══╝║║ ╔╗║╔══╝ ║╚═╝║║║ ╔╗ ║║ ║║ ║╚╝║ ║╚═╝║ ║║ ║║ ║║║╔╗╔╝
--║╚═╝║╔╣─╗║║║║║║║║ ║╚═╝║║╚══╗ ║╔═╗║║╚═╝║ ║║ ╔╣─╗ ╚╗╔╝ ║╔═╗║ ║║ ║╚═╝║║║║╚╗
--╚═══╝╚══╝╚╝╚╝╚╝╚╝ ╚═══╝╚═══╝ ╚╝ ╚╝╚═══╝ ╚╝ ╚══╝ ╚╝ ╚╝─╚╝ ╚╝ ╚═══╝╚╝╚═╝
-- V1.03 Changelog
-- +Support Mode is added. (Support: IOW/DAC/PW/DACR/SLW)
--
-- V1.02 Changelog
-- +QSS added.
--
-- V1.01 Changelog
-- +Some error fixed.
--
-- V1.0 Changelog
-- +Released to GoS
-- [[ Lib ]]
require("Inspired")
require("DamageLib")
function SimpleActivatorPrint(msg)
print("[SimpleActivator]: "..msg.."")
end
SimpleActivatorPrint("Loaded!")
SimpleActivatorPrint("Made by EweEwe")
-- [[ Update ]]
local version = "1.03"
function AutoUpdate(data)
if tonumber(data) > tonumber(version) then
PrintChat("New version found!" .. data)
PrintChat("Downloading update, please wait...")
DownloadFileAsync("https://raw.githubusercontent.com/EweWexD/SimpleActivator/master/SimpleActivator.lua", SCRIPT_PATH .. "SimpleActivator.lua", function() PrintChat("Update Complete, please 2x F6!") return end)
else
PrintChat("No updates found!")
end
end
GetWebResultAsync("https://raw.githubusercontent.com/EweWexD/SimpleActivator/master/SimpleActivator.version", AutoUpdate)
-- [[ Menu ]]
local SAMenu = Menu("Activator", "Simple Activator")
-- [[ Summoner Spells ]]
SAMenu:SubMenu("Sum", "[SA] Summoner Spells")
SAMenu.Sum:Boolean("Heal", "Use Heal", true)
SAMenu.Sum:Boolean("SHeal", "Use Heal to save Ally", true)
SAMenu.Sum:Boolean("Barrier", "Use Barrier", true)
SAMenu.Sum:Boolean("Ignite", "Use Smite to kill steal", true)
SAMenu.Sum:Slider("HealI", "HP to Heal me", 20, 0, 100, 5)
SAMenu.Sum:Slider("HealA", "HP to Heal ally", 20, 0, 100, 5)
SAMenu.Sum:Slider("BarrierI", "HP to Barrier me", 20, 0, 100, 5)
-- [[ Items ]]
SAMenu:SubMenu("ItemsDMG", "[SA] Items to DMG")
SAMenu.ItemsDMG:Boolean("BOTRK", "Use BOTRK", true)
SAMenu.ItemsDMG:Boolean("HG", "Use Hextech Gunblade", true)
SAMenu.ItemsDMG:Boolean("BC", "Use Bilfewater Cutlass", true)
SAMenu.ItemsDMG:Slider("Wm", "HP to use this items", 50, 0, 100, 5)
SAMenu:SubMenu("ItemsFlee", "[SA] Items to Flee")
SAMenu.ItemsFlee:Boolean("MS", "Use Mercurial Scimitar", true)
SAMenu.ItemsFlee:Boolean("QS", "Use Quicksliver Sash", true)
-- [[ SupportMode ]]
SAMenu:SubMenu("SupportMode", "[SA] Support Mode")
SAMenu.SupportMode:Boolean("AA", "Enable Support Mode", false)
-- [[ AutoSmite ]]
-- Soon
-- [[ Tick ]]
OnTick(function(myHero)
target = GetCurrentTarget()
Summoners()
ItemsDMG()
ItemsFlee()
end)
-- [[ Summoners ]]
Barrier = (GetCastName(myHero,SUMMONER_1):lower():find("summonerbarrier") and SUMMONER_1 or (GetCastName(myHero,SUMMONER_2):lower():find("summonerbarrier") and SUMMONER_2 or nil))
Heal = (GetCastName(myHero,SUMMONER_1):lower():find("summonerheal") and SUMMONER_1 or (GetCastName(myHero,SUMMONER_2):lower():find("summonerheal") and SUMMONER_2 or nil))
Ignite = (GetCastName(myHero,SUMMONER_1):lower():find("summonerdot") and SUMMONER_1 or (GetCastName(myHero,SUMMONER_2):lower():find("summonerdot") and SUMMONER_2 or nil))
-- [[ Orbwalker ]]
function Mode()
if _G.IOW_Loaded and IOW:Mode() then
if SAMenu.SupportMode.AA:Value() and IOW:Mode() == "LaneClear" then
IOW.attacksEnabled = false
else
IOW.attacksEnamble = true
end
return IOW:Mode()
elseif _G.PW_Loaded and PW:Mode() then
if SAMenu.SupportMode.AA:Value() and PW:Mode() == "LaneClear" then
PW.attacksEnabled = false
else
PW.attacksEnamble = true
end
return PW:Mode()
elseif _G.DAC_Loaded and DAC:Mode() then
if SAMenu.SupportMode.AA:Value() and DAC:Mode() == "LaneClear" then
DAC.attacksEnabled = false
else
DAC.attacksEnamble = true
end
return DAC:Mode()
elseif _G.AutoCarry_Loaded and DACR:Mode() then
if SAMenu.SupportMode.AA:Value() and DACR:Mode() == "LaneClear" then
DACR.attacksEnabled = false
else
DACR.attacksEnamble = true
end
return DACR:Mode()
elseif _G.SLW_Loaded and SLW:Mode() then
if SAMenu.SupportMode.AA:Value() and SLW:Mode() == "LaneClear" then
SLW.attacksEnabled = false
else
SLW.attacksEnamble = true
end
return SLW:Mode()
elseif GoSWalkLoaded and GoSWalk.CurrentMode then
return ({"Combo", "Harass", "LaneClear", "LastHit"})[GoSWalk.CurrentMode+1]
end
end
function Summoners()
-- [[ Ignite ]]
if SAMenu.Sum.Ignite:Value() then
if Ignite then
for _, enemy in pairs(GetEnemyHeroes()) do
if 20*GetLevel(myHero)+50 > GetCurrentHP(enemy)+GetHPRegen(enemy)*3 and ValidTarget(enemy, 600) then
DrawText("Burn!",30,enemy.pos2D.x-30,enemy.pos2D.y-40,0xFFFF0000)
CastTargetSpell(enemy, Ignite)
end
end
end
end
-- [[ Heal for me ]]
if SAMenu.Sum.HealI:Value() then
if Heal then
if (GetCurrentHP(myHero)/GetMaxHP(myHero))*100 <= SAMenu.Sum.HealI:Value() then
CastSpell(Heal)
end
end
end
-- [[ Heal for ally ]]
if SAMenu.Sum.SHeal:Value() then
if Heal then
for _,ally in pairs(GetAllyHeroes()) do
if ValidTarget(ally, 850) then
if (GetCurrentHP(ally)/GetMaxHP(ally))*100 <= SAMenu.Sum.HealA:Value() then
CasTargetSpell(ally, Heal)
end
end
end
end
end
-- [[ Barrier ]]
if SAMenu.Sum.Barrier:Value() then
if Barrier then
if (GetCurrentHP(myHero)/GetMaxHP(myHero))*100 <= SAMenu.Sum.BarrierI:Value() then
CastSpell(Barrier)
end
end
end
end
-- [[ Items ]]
function ItemsDMG()
if Mode() == "Combo" then
if (GetCurrentHP(target)/GetMaxHP(target))*100 <= SAMenu.ItemsDMG.Wm:Value() then
if SAMenu.ItemsDMG.BOTRK:Value() then
if GetItemSlot(myHero, 3153) >= 1 and ValidTarget(target, 550) then
if CanUseSpell(myHero, GetItemSlot(myHero, 3153)) then
CastTargetSpell(target, GetItemSlot(myHero, 3153))
end
end
end
if SAMenu.ItemsDMG.HG:Value() then
if GetItemSlot(myHero, 3146) >= 1 and ValidTarget(target, 700) then
if CanUseSpell(myHero, GetItemSlot(myHero, 3146)) then
CastTargetSpell(target, GetItemSlot(myHero, 3146))
end
end
end
if SAMenu.ItemsDMG.BC:Value() then
if GetItemSlot(myHero, 3144) >= 1 and ValidTarget(target, 550) then
if CanUseSpell(myHero, GetItemSlot(myHero, 3144)) then
CastTargetSpell(target, GetItemSlot(myHero, 3144))
end
end
end
end
end
end
function ItemsFlee()
if SAMenu.ItemsFlee.QS:Value() then
if GetItemSlot(myHero, 3140) >= 1 then
if CanUseSpell(myHero, GetItemSlot(myHero, 3140)) then
if GotBuff(myHero, "veigareventhorizonstun") > 0 or GotBuff(myHero, "stun") > 0 or GotBuff(myHero, "taunt") > 0 or GotBuff(myHero, "slow") > 0 or GotBuff(myHero, "snare") > 0 or GotBuff(myHero, "charm") > 0 or GotBuff(myHero, "suppression") > 0 or GotBuff(myHero, "flee") > 0 or GotBuff(myHero, "knockup") > 0 then
CastTargetSpell(myHero, GetItemSlot(myHero, 3140))
end
end
end
end
if SAMenu.ItemsFlee.MS:Value() then
if GetItemSlot(myHero, 3139) >= 1 then
if CanUseSpell(myHero, GetItemSlot(myHero, 3139)) then
if GotBuff(myHero, "veigareventhorizonstun") > 0 or GotBuff(myHero, "stun") > 0 or GotBuff(myHero, "taunt") > 0 or GotBuff(myHero, "slow") > 0 or GotBuff(myHero, "snare") > 0 or GotBuff(myHero, "charm") > 0 or GotBuff(myHero, "suppression") > 0 or GotBuff(myHero, "flee") > 0 or GotBuff(myHero, "knockup") > 0 then
CastTargetSpell(myHero, GetItemSlot(myHero, 3139))
end
end
end
end
end