Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- all credit to unlimited, Burn and veers13
- -- code taken from LeeSin Combo / Ward Jump SBTW
- -- thanks to leepap for the Q/E stats
- -- I know this script is super messy and some stuff in here is not used at all
- if myHero.charName ~= "Ahri" then return end
- require "AllClass"
- local qrange = 880
- local qspeed = 1.25
- local qdelay = 250
- local qradius = 25
- local qtravelDuration = 400
- local etravelDuration = 400
- local wrange = 800
- local espeed = 1.25
- local edelay = 245
- local eradius = 50
- local kill = {}
- local erange = 975
- local ts = TargetSelector(TARGET_LOW_HP,erange,DAMAGE_MAGIC,false)
- local tp = TargetPrediction(qrange, 1.17, 300, 50)
- local pp
- local QREADY, EREADY = false, false
- function OnLoad()
- acConfig = scriptConfig("UnlimitedAhri modified", "AhriCombo")
- acConfig:addParam("LaningCharm", "Charming", SCRIPT_PARAM_ONKEYDOWN, false, 67)
- acConfig:addParam("harass", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, 32)
- acConfig:addParam("drawcircles", "Draw Circles", SCRIPT_PARAM_ONOFF, false)
- acConfig:permaShow("harass")
- ts.name = "Ahri"
- acConfig:addTS(ts)
- end
- function OnTick()
- ts:update()
- QREADY = (myHero:CanUseSpell(_Q) == READY)
- EREADY = (myHero:CanUseSpell(_E) == READY)
- if ts.target ~= nil and not EREADY then
- qtravelDuration = (qdelay + GetDistance(myHero, ts.target)/qspeed)
- ts:SetPrediction(qtravelDuration)
- elseif ts.target ~= nil and EREADY then
- etravelDuration = (edelay + GetDistance(myHero, ts.target)/qspeed)
- ts:SetPrediction(etravelDuration)
- end
- Prediction__OnTick()
- if ts.target ~= nil then predic = ts.nextPosition end
- if tick == nil or GetTickCount()-tick>=100 then
- tick = GetTickCount()
- end
- if ts.target ~= nil and acConfig.LaningCharm then
- if predic ~= nil and GetDistance(ts.target) <= erange and not GetMinionCollision(myHero, ts.nextPosition, 260) then
- CastSpell(_E,predic.x,predic.z)
- end
- end
- if ts.target ~= nil and acConfig.harass then
- if predic ~= nil and GetDistance(ts.target) <= erange and not GetMinionCollision(myHero,ts.nextPosition, 260) then
- CastSpell(_E,predic.x,predic.z)
- end
- if predic ~= nil and GetDistance(ts.target) <= qrange then
- CastSpell(_Q,predic.x,predic.z)
- end
- if ts.target ~= nil and GetDistance(ts.target) <= 800 then
- CastSpell(_W)
- end
- end
- end
- function OnDraw()
- if acConfig.drawcircles and not myHero.dead then
- DrawCircle(myHero.x,myHero.y,myHero.z, qrange, 0xFF80FF00)
- end
- SC__OnDraw()
- end
- --end
- function OnWndMsg(msg,key)
- SC__OnWndMsg(msg,key)
- end
- function OnSendChat(msg)
- TargetSelector__OnSendChat(msg)
- ts:OnSendChat(msg, "pri")
- end
- PrintChat(" >> UnlimitedAhri Loaded!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement