Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Hecarim Helper 1.2.1 by HeX ]]--
- if myHero.charName ~= "Hecarim" then return end
- --[[ Ranges ]]--
- local qRange = 350
- local wRange = 525
- local rRange = 1000
- local rSpeed = 1.6
- --[[ Items ]]--
- local ignite, ghost = nil, nil
- local QREADY, WREADY, EREADY, RREADY = false, false, false, false
- local DFGREADY, BRKREADY, HXGREADY, BWCREADY, SRRREADY, YGBREADY = false, false, false, false, false, false
- local DFGSlot, BRKSlot, HXGSlot, BWCSlot, SRRSlot, YGBSlot = nil, nil, nil, nil, nil, nil
- function OnLoad()
- PrintChat("<font color='#CCCCCC'> >> Hecarim Helper 1.2.1 loaded! <<</font>")
- HHConfig = scriptConfig("Hecarim Helper", "HecarimHelper")
- HHConfig:addParam("scriptActive", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, 32)
- HHConfig:addParam("speedBurst", "Speed Burst", SCRIPT_PARAM_ONKEYDOWN, false, 90)
- HHConfig:addParam("useR", "Use Ultimate in combo", SCRIPT_PARAM_ONOFF, true)
- HHConfig:addParam("autoignite", "Ignite when Killable", SCRIPT_PARAM_ONOFF, true)
- HHConfig:addParam("drawcirclesSelf", "Draw Circles - Self", SCRIPT_PARAM_ONOFF, false)
- HHConfig:addParam("drawcirclesEnemy", "Draw Circles - Enemy", SCRIPT_PARAM_ONOFF, false)
- HHConfig:permaShow("scriptActive")
- HHConfig:permaShow("speedBurst")
- HHConfig:permaShow("useR")
- ts = TargetSelector(TARGET_LOW_HP, wRange+50, DAMAGE_MAGIC)
- ts.name = "Hecarim"
- HHConfig:addTS(ts)
- if myHero:GetSpellData(SUMMONER_1).name:find("SummonerDot") then ignite = SUMMONER_1
- elseif myHero:GetSpellData(SUMMONER_2).name:find("SummonerDot") then ignite = SUMMONER_2
- end
- if myHero:GetSpellData(SUMMONER_1).name:find("SummonerHaste") then ghost = SUMMONER_1
- elseif myHero:GetSpellData(SUMMONER_2).name:find("SummonerHaste") then ghost = SUMMONER_2
- end
- end
- function OnTick()
- ts:update()
- if ts.target ~= nil and not myHero.dead then
- travelDuration = (GetDistance(ts.target, myHero)/rSpeed)
- end
- if ts.target ~= nil and RREADY and travelDuration ~= nil then
- predic = GetPredictionPos(ts.target, travelDuration)
- end
- if predic ~= nil and ts.target ~= nil then
- TargetPos = Vector(predic.x, predic.y, predic.z)
- MyPos = Vector(myHero.x, myHero.y, myHero.z)
- UltPos = TargetPos + (TargetPos-MyPos)*((200/GetDistance(ts.target)))
- end
- DFGSlot, BRKSlot, HXGSlot, BWCSlot, SRRSlot, YGBSlot = GetInventorySlotItem(3153), GetInventorySlotItem(3128), GetInventorySlotItem(3146), GetInventorySlotItem(3144), GetInventorySlotItem(3069), GetInventorySlotItem(3142)
- DFGREADY = (DFGSlot ~= nil and myHero:CanUseSpell(DFGSlot) == READY)
- BRKREADY = (BRKSlot ~= nil and myHero:CanUseSpell(BRKSlot) == READY)
- HXGREADY = (HXGSlot ~= nil and myHero:CanUseSpell(HXGSlot) == READY)
- BWCREADY = (BWCSlot ~= nil and myHero:CanUseSpell(BWCSlot) == READY)
- SRRREADY = (SRRSlot ~= nil and myHero:CanUseSpell(SRRSlot) == READY)
- YGBREADY = (YGBSlot ~= nil and myHero:CanUseSpell(YGBSlot) == READY)
- IREADY = (ignite ~= nil and myHero:CanUseSpell(ignite) == READY)
- GREADY = (ghost ~= nil and myHero:CanUseSpell(ghost) == READY)
- QREADY = (myHero:CanUseSpell(_Q) == READY)
- WREADY = (myHero:CanUseSpell(_W) == READY)
- EREADY = (myHero:CanUseSpell(_E) == READY)
- RREADY = (myHero:CanUseSpell(_R) == READY)
- --[[ Auto Ignite ]]--
- if HHConfig.autoignite then
- if IREADY then
- local ignitedmg = 0
- for i = 1, heroManager.iCount, 1 do
- local enemyhero = heroManager:getHero(i)
- if ValidTarget(enemyhero,600) then
- ignitedmg = 50 + 20 * myHero.level
- if enemyhero.health <= ignitedmg then
- CastSpell(ignite, enemyhero)
- end
- end
- end
- end
- end
- --[[ Speed Burst ]]--
- if HHConfig.speedBurst then
- if SRRREADY then CastSpell(SRRSlot) end
- if GREADY then CastSpell(ghost) end
- if EREADY then CastSpell(_E) end
- if YGBREADY then CastSpell(YGBSlot) end
- end
- --[[ Basic Combo ]]--
- if ts.target ~= nil and HHConfig.scriptActive then
- --[[ Items ]]--
- if GetDistance(ts.target) < 550 then
- if DFGREADY then CastSpell(DFGSlot, ts.target) end
- if BRKREADY then CastSpell(BRKSlot, ts.target) end
- if HXGREADY then CastSpell(HXGSlot, ts.target) end
- if BWCREADY then CastSpell(BWCSlot, ts.target) end
- if YGBREADY then CastSpell(YGBSlot) end
- end
- --[[ Abilities ]]--
- if QREADY and GetDistance(ts.target) <= qRange then
- CastSpell(_Q)
- end
- if WREADY and GetDistance(ts.target) <= wRange then
- CastSpell(_W)
- end
- if RREADY and UltPos ~= nil and GetDistance(predic) < rRange and HHConfig.useR then
- CastSpell(_R, UltPos.x, UltPos.z)
- end
- --[[ Attacks ]]--
- --[[ Nothing Yet ]]--
- end
- end
- function OnDraw()
- if HHConfig.drawcirclesSelf and not myHero.dead then
- DrawCircle(myHero.x, myHero.y, myHero.z, qRange, 0x00FF00)
- DrawCircle(myHero.x, myHero.y, myHero.z, rRange, 0x00FFFF)
- end
- if ts.target ~= nil and HHConfig.drawcirclesEnemy then
- for j=0, 10 do
- DrawCircle(ts.target.x, ts.target.y, ts.target.z, 40 + j*1.5, 0x00FF00)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment