Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Hero
- if GetObjectName(GetMyHero()) ~= "Garen" then return end
- --Load Libs
- require ("DamageLib")
- --[[--Auto Update
- local ver = "0.01"
- function AutoUpdate(data)
- if tonumber(data) > tonumber(ver) then
- print("<font color=\"#FE2EC8\"><b>[Garen]: </b></font><font color=\"#FFFFFF\"> New version found!</font>")
- print("<font color=\"#FE2EC8\"><b>[Garen]: </b></font><font color=\"#FFFFFF\"> Downloading update, please wait...</font>")
- DownloadFileAsync("https://raw.githubusercontent.com/BluePrinceEB/GoS/master/Swain.lua", SCRIPT_PATH .. "Swain.lua", function() print("<font color=\"#FF1493\"><b>[Garen]:</b></font><font color=\"#FFFFFF\"> Update Complete, please 2x F6!</font>") return end)
- else
- print("<font color=\"#FE2EC8\"><b>[Garen]: </b></font><font color=\"#FFFFFF\"> No Updates Found!</font>")
- end
- end
- GetWebResultAsync("https://raw.githubusercontent.com/BluePrinceEB/GoS/master/Swain.version", AutoUpdate)]]--
- --Main Menu
- GMenu = Menu("G", "Garen")
- --Combo Menu
- GMenu:SubMenu("c", "Combo")
- GMenu.c:Boolean("Q", "Use Q", true)
- GMenu.c:Slider("Qrange", "Min. range for use Q", 300, 0, 1000, 10)
- GMenu.c:Boolean("E", "Use E", true)
- --Ultimate Menu
- GMenu:SubMenu("u", "Ultimate")
- GMenu.u:Boolean("R", "Use R")
- GMenu.u:SubMenu("black", "Ultimate Black List")
- --Auto Menu
- GMenu:SubMenu("a", "Auto")
- GMenu.a:Boolean("W", "Use W", true)
- GMenu.a:Slider("Whp", "Use W if HP(%) <= X", 70, 0, 100, 5)
- --LastHit Menu
- GMenu:SubMenu("l", "Last Hit")
- GMenu.l:Boolean("Q", "Use Q", true)
- --Harass Menu
- GMenu:SubMenu("h", "Harass")
- --Clear Menu
- GMenu:SubMenu("j", "Clear")
- --Locals
- local LoL = "6.19"
- local _skin = 0
- local Enemies, C = { }, 0
- --Spells
- local Garen_E = { range = 300 }
- local Garen_R = { range = 400 }
- --Mode
- function Mode()
- if _G.IOW_Loaded and IOW:Mode() then
- return IOW:Mode()
- elseif _G.PW_Loaded and PW:Mode() then
- return PW:Mode()
- elseif _G.DAC_Loaded and DAC:Mode() then
- return DAC:Mode()
- elseif _G.AutoCarry_Loaded and DACR:Mode() then
- return DACR:Mode()
- elseif _G.SLW_Loaded and SLW:Mode() then
- return SLW:Mode()
- end
- end
- --Start
- OnTick(function (myHero)
- if not IsDead(myHero) then
- --Locals
- local target = GetCurrentTarget()
- --Functions
- OnCombo(target)
- OnLastHit()
- CastR()
- end
- end)
- OnDraw(function(myHero)
- --Text
- for x,unit in pairs(GetEnemyHeroes()) do
- if ValidTarget(unit,20000) then
- if Ready(_R) then
- DrawText("R Damage: "..getdmg("R",unit,myHero), 16, GetHPBarPos(unit).x, GetHPBarPos(unit).y-58, GoS.Yellow)
- end
- if not Ready(_R) then
- DrawText("R Damage: Not Ready", 16, GetHPBarPos(unit).x, GetHPBarPos(unit).y-58, GoS.Yellow)
- end
- DrawText("Current HP: "..math.round(GetCurrentHP(unit)), 16, GetHPBarPos(unit).x, GetHPBarPos(unit).y-43, GoS.Red)
- if Ready(_R) and GetCurrentHP(unit) + GetDmgShield(unit) < getdmg("R",unit,myHero) then
- DrawText("Finish Him!", 20, GetHPBarPos(unit).x, GetHPBarPos(unit).y+150, GoS.Red)
- end
- end
- end
- end)
- --Functions
- function OnCombo(target)
- if Mode() == "Combo" then
- --Q
- if Ready(_Q) and GMenu.c.Q:Value() and ValidTarget(target, GMenu.c.Qrange:Value()) then
- CastSpell(_Q)
- end
- --E
- if Ready(_E) and GMenu.c.E:Value() and ValidTarget(target, Garen_E.range) and GetCastName(myHero, _E) == "GarenE" then
- CastSpell(_E)
- end
- end
- end
- function OnLastHit()
- if Mode() == "LastHit" then
- for _, minion in pairs(minionManager.objects) do
- if GetTeam(minion) == MINION_ENEMY then
- if GMenu.l.Q:Value() and Ready(_Q) and ValidTarget(minion, 400) then
- if getdmg("Q",minion,myHero) > GetCurrentHP(minion) then
- CastSpell(_Q)
- end
- end
- end
- end
- end
- end
- function CastR()
- for _,unit in pairs(GetEnemyHeroes()) do
- GMenu.u.black:Boolean(unit.charName, "Don't use on :"..unit.charName)
- if GMenu.u.R:Value() and Ready(_R) and ValidTarget(unit, Garen_R.range) and GetCurrentHP(unit) + GetDmgShield(unit) < getdmg("R",unit,myHero) then
- if GMenu.u.black[unit.charName]:Value() then
- CastTargetSpell(unit,_R)
- end
- end
- end
- end
- OnProcessSpell(function(unit,spellProc)
- if unit.isMe and spellProc.name:lower():find("attack") then
- if GMenu.a.W:Value() and Ready(_W) and GetPercentHP(myHero) < GMenu.a.Whp:Value() then
- CastSpell(_W)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement