Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Hestia's Urgot 1.0
- Credits: Hestia, PwnNinja, HeX
- Hot Keys:
- -Basic Combo: Spacebar
- Features:
- -Basic Combo: Spam Q on target
- -Manual E in combo ON/OFF option in ingame menu.
- -Target configuration, Press shift to configure.
- -Auto ignite and/or Ulti killable enemy ON/OFF option in ingame menu.
- -Q range on toggle.
- ]]--
- if myHero.charName ~= "Urgot" then return end
- --[[ Ranges ]]--
- local qRange = 1000
- local eRange = 900
- --[[ Prediction ]]--
- local ep = TargetPrediction(900, 1.44, 250)
- local poisonedtimets = 0
- local poisonedtime = {}
- local poisontime = 0
- --[[ Ignite ]]--
- local ignite = nil
- local QREADY, EREADY = false, false
- function OnLoad()
- PrintChat("<font color='#CCCCCC'> >> Hestia's Urgot 1.0 loaded! <<</font>")
- UrgotConfig = scriptConfig("Urgot Settings", "Q Spammer")
- UrgotConfig:addParam("scriptActive", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, 32)
- UrgotConfig:addParam("toggleE", "Manual E", SCRIPT_PARAM_ONOFF, true, 85)
- UrgotConfig:addParam("autoignite", "Ignite when Killable", SCRIPT_PARAM_ONOFF, true)
- UrgotConfig:addParam("drawcirclesSelf", "Draw Circles - Self", SCRIPT_PARAM_ONOFF, false)
- UrgotConfig:permaShow("scriptActive")
- UrgotConfig:permaShow("toggleE")
- ts = TargetSelector(TARGET_LOW_HP,eRange,DAMAGE_PHYSICAL)
- ts.name = "Urgot"
- UrgotConfig:addTS(ts)
- for i=1, heroManager.iCount do
- poisonedtime[i] = 0
- end
- 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 OnCreateObj(obj)
- if obj ~= nil and string.find(obj.name, "UrgotCorrosiveDebuff_buf") then
- for i=1, heroManager.iCount do
- local enemy = heroManager:GetHero(i)
- if enemy.team ~= myHero.team and GetDistance(obj,enemy) < 80 then
- poisonedtime[i] = GetTickCount()
- end
- end
- end
- end
- function OnTick()
- ts:update()
- if ts.target ~= nil then
- ePred = ep:GetPrediction(ts.target)
- end
- IREADY = (ignite ~= nil and myHero:CanUseSpell(ignite) == READY)
- QREADY = (myHero:CanUseSpell(_Q) == READY)
- EREADY = (myHero:CanUseSpell(_E) == READY)
- if ts.target ~= nil then
- for i=1, heroManager.iCount do
- local enemy = heroManager:GetHero(i)
- if enemy.team ~= player.team and enemy.charName == ts.target.charName then
- poisonedtimets = poisonedtime[i]
- end
- end
- end
- --[[ Auto Ignite ]]--
- if UrgotConfig.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
- --[[ Combo ]]--
- if ts.target ~= nil and UrgotConfig.scriptActive then
- if EREADY and not UrgotConfig.toggleE and ePred ~= nil and GetDistance(ts.target) < eRange then
- CastSpell(_E, ePred.x, ePred.z)
- end
- if UrgotConfig.scriptActive and ts.target ~= nil and myHero:GetDistance(ts.target) < qRange and GetTickCount()-poisonedtimets < 5000 then
- CastSpell(_Q, ts.target.x, ts.target.z)
- end
- end
- end
- function OnDraw()
- if UrgotConfig.drawcirclesSelf and not myHero.dead then
- DrawCircle(myHero.x,myHero.y,myHero.z, qRange, 0x00FF00)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement