Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Jarvan Helper by HeX 1.1.5 ]]--
- if myHero.charName ~= "JarvanIV" then return end
- --[[ Ranges ]]--
- local Range = 800
- local wRange = 600
- local eDelay = 200
- local eBuffer = 50
- --[[ Code ]]--
- local Dstandard
- local ignite = nil
- local QREADY, WREADY, EREADY = false, false, false
- local BRKSlot, DFGSlot, HXGSlot, BWCSlot, TMTSlot, RAHSlot, RNDSlot = nil, nil, nil, nil, nil, nil, nil
- local BRKREADY, DFGREADY, HXGREADY, BWCREADY, TMTREADY, RAHREADY, RNDREADY = false, false, false, false, false, false, false
- function OnLoad()
- PrintChat("<font color='#CCCCCC'> >> Jarvan Helper 1.1.5 loaded! <<</font>")
- JHConfig = scriptConfig("Jarvan Helper", "JarvanHelper")
- JHConfig:addParam("scriptActive", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, 32)
- JHConfig:addParam("escape", "Escape Mode", SCRIPT_PARAM_ONKEYDOWN, false, 71)
- JHConfig:addParam("Harass", "Harass", SCRIPT_PARAM_ONKEYTOGGLE, false, 90)
- JHConfig:addParam("mouseCombo", "Aim at mouse in Combo", SCRIPT_PARAM_ONOFF, false)
- JHConfig:addParam("autoignite", "Auto Ignite Killable", SCRIPT_PARAM_ONOFF, true)
- JHConfig:addParam("drawcirclesSelf", "Draw Circles - Self", SCRIPT_PARAM_ONOFF, false)
- JHConfig:addParam("drawcirclesEnemy", "Draw Circles - Enemy", SCRIPT_PARAM_ONOFF, false)
- JHConfig:permaShow("scriptActive")
- JHConfig:permaShow("Harass")
- ts = TargetSelector(TARGET_LOW_HP, Range+50, DAMAGE_PHYSICAL)
- ts.name = "JarvanIV"
- JHConfig: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
- end
- function OnTick()
- ts:update()
- BRKSlot, DFGSlot, HXGSlot, BWCSlot, TMTSlot, RAHSlot, RNDSlot = GetInventorySlotItem(3153), GetInventorySlotItem(3128), GetInventorySlotItem(3146), GetInventorySlotItem(3144), GetInventorySlotItem(3077), GetInventorySlotItem(3074), GetInventorySlotItem(3143)
- DFGREADY = (DFGSlot ~= nil and myHero:CanUseSpell(DFGSlot) == READY)
- HXGREADY = (HXGSlot ~= nil and myHero:CanUseSpell(HXGSlot) == READY)
- BWCREADY = (BWCSlot ~= nil and myHero:CanUseSpell(BWCSlot) == READY)
- BRKREADY = (BRKSlot ~= nil and myHero:CanUseSpell(BRKSlot) == READY)
- TMTREADY = (TMTSlot ~= nil and myHero:CanUseSpell(TMTSlot) == READY)
- RAHREADY = (RAHSlot ~= nil and myHero:CanUseSpell(RAHSlot) == READY)
- RNDREADY = (RNDSlot ~= nil and myHero:CanUseSpell(RNDSlot) == READY)
- IREADY = (ignite ~= nil and myHero:CanUseSpell(ignite) == READY)
- QREADY = (myHero:CanUseSpell(_Q) == READY)
- WREADY = (myHero:CanUseSpell(_W) == READY)
- EREADY = (myHero:CanUseSpell(_E) == READY)
- --[[ Auto Ignite ]]--
- if JHConfig.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
- --[[ Prediction ]]--
- if ts.target ~= nil then
- predic = GetPredictionPos(ts.target, eDelay)
- end
- if predic ~= nil and not myHero.dead and ts.target ~= nil then
- TargetPos = Vector(predic.x, predic.y, predic.z)
- MyPos = Vector(myHero.x, myHero.y, myHero.z)
- TruePos = TargetPos + (TargetPos-MyPos)*((eBuffer/GetDistance(ts.target)))
- end
- --[[ Harass ]]--
- if JHConfig.Harass then
- if ts.target ~= nil and GetDistance(ts.target) < Range then
- CastSpell(_Q, ts.target.x, ts.target.z)
- end
- end
- --[[ Combo ]]--
- if ts.target ~= nil and JHConfig.scriptActive then
- --[[ Items ]]--
- if GetDistance(ts.target) < wRange then
- if DFGREADY then CastSpell(DFGSlot, ts.target) end
- if HXGREADY then CastSpell(HXGSlot, ts.target) end
- if BWCREADY then CastSpell(BWCSlot, ts.target) end
- if BRKREADY then CastSpell(BRKSlot, ts.target) end
- if TMTREADY and GetDistance(ts.target) < 275 then CastSpell(TMTSlot) end
- if RAHREADY and GetDistance(ts.target) < 275 then CastSpell(RAHSlot) end
- if RNDREADY and GetDistance(ts.target) < 275 then CastSpell(RNDSlot) end
- end
- --[[ Abilities ]]--
- if TruePos ~= nil and EREADY and GetDistance(TruePos) < Range and not JHConfig.mouseCombo then
- CastSpell(_E,TruePos.x,TruePos.z)
- elseif EREADY and GetDistance(mousePos) < Range and JHConfig.mouseCombo then
- CastSpell(_E, mousePos.x, mousePos.z)
- end
- if Dstandard ~= nil then
- if QREADY and GetDistance(Dstandard) < Range then
- CastSpell(_Q, Dstandard.x, Dstandard.z)
- Dstandard = nil
- end
- end
- if WREADY and GetDistance(ts.target) < wRange then
- CastSpell(_W)
- end
- end
- --[[ Escape ]]--
- if JHConfig.escape then
- if EREADY and QREADY and GetDistance(mousePos) < Range then
- CastSpell(_E, mousePos.x, mousePos.z)
- end
- if Dstandard ~= nil then
- if QREADY and GetDistance(Dstandard) < Range then
- CastSpell(_Q, Dstandard.x, Dstandard.z)
- Dstandard = nil
- end
- end
- end
- end
- function OnCreateObj(obj)
- if obj ~= nil and string.find(obj.name, "JarvanDemacianStandard_buf") then
- Dstandard = obj
- end
- end
- function OnDeleteObj(obj)
- if obj ~= nil and string.find(obj.name, "JarvanDemacianStandard_buf") then
- Dstandard = nil
- end
- end
- function OnDraw()
- if JHConfig.drawcirclesSelf and not myHero.dead then
- DrawCircle(myHero.x, myHero.y, myHero.z, Range, 0x00FF00)
- DrawCircle(myHero.x, myHero.y, myHero.z, wRange, 0x00FFFF)
- end
- if ts.target ~= nil and JHConfig.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