Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -->> Sejuani <<--
- -- Space - Q -> AA -> W -> E -> R(Optional)
- if myHero.charName ~= "Sejuani" then return end
- local qRange = 650
- local wRange = 350
- local eRange = 1000
- local rRange = 1175
- if VIP_USER then
- qp = TargetPredictionVIP(qRange, 1800, 0.15)
- rp = TargetPredictionVIP(rRange, 1300, 0.20)
- PrintChat("Sejuani Combo - VIP Prediction Used")
- else
- qp = TargetPrediction(qRange, 1.4, 150)
- rp = TargetPrediction(rRange, 1.3, 200)
- PrintChat("Sejuani Combo - Basic Prediction Used")
- end
- local Items = {
- DFG = { id = 3128, range = 750, reqTarget = true, slot = nil },
- HXG = { id = 3146, range = 700, reqTarget = true, slot = nil },
- BWC = { id = 3144, range = 500, reqTarget = true, slot = nil },
- BRK = { id = 3153, range = 500, reqTarget = true, slot = nil },
- SOD = { id = 3131, range = 500, reqTarget = false, slot = nil}
- }
- function OnLoad()
- SejuaniConfig = scriptConfig("Sejuani Combo", "SejuaniCombo")
- SejuaniConfig:addParam("fullCombo", "Full Combo", SCRIPT_PARAM_ONKEYDOWN, false, 32)
- SejuaniConfig:addParam("useUlt", "Use Ultimate", SCRIPT_PARAM_ONOFF, true)
- SejuaniConfig:addParam("drawCircles", "Draw Circles", SCRIPT_PARAM_ONOFF, true)
- SejuaniConfig:permaShow("fullCombo")
- ts = TargetSelector(TARGET_LOW_HP_PRIORITY, rRange+100, DAMAGE_MAGIC, false)
- ts.name = "Sejuani"
- SejuaniConfig:addTS(ts)
- end
- function OnTick()
- ts:update()
- if ts.target and SejuaniConfig.fullCombo then
- useItems(ts.target)
- fullCombo(ts.target) -- Q -> AA -> W -> E -> R(Optional)
- end
- end
- function OnDraw()
- if SejuaniConfig.drawCircles and not myHero.dead then
- DrawCircle(myHero.x,myHero.y,myHero.z,qRange,0x00FF00)
- DrawCircle(myHero.x,myHero.y,myHero.z,rRange,0x00FFFF)
- end
- end
- function CanCast(Spell)
- return (player:CanUseSpell(Spell) == READY)
- end
- function useItems(target)
- if target == nil then return end
- for _,item in pairs(Items) do
- item.slot = GetInventorySlotItem(item.id)
- if item.slot ~= nil then
- if item.reqTarget and GetDistance(target) <= item.range then
- CastSpell(item.slot, target)
- end
- if item.reqTarget == false and GetDistance(target) <= item.range then
- CastSpell(item.slot)
- end
- end
- end
- end
- function fullCombo(target)
- local qPred = qp:GetPrediction(target)
- local rPred = rp:GetPrediction(target)
- if qPred and CanCast(_Q) and ValidTarget(target, qRange) then
- if VIP_USER and qp:GetHitChance(target) > 0.5 then
- CastSpell(_Q, qPred.x, qPred.z)
- elseif not VIP_USER then
- CastSpell(_Q, qPred.x, qPred.z)
- end
- end
- if CanCast(_W) and ValidTarget(target, wRange) then
- myHero:Attack(target)
- CastSpell(_W)
- end
- if CanCast(_E) and ValidTarget(target, eRange) then
- CastSpell(_E, target)
- end
- if SejuaniConfig.useUlt and rPred and CanCast(_R) and ValidTarget(target, rRange) then
- if VIP_USER and rp:GetHitChance(target) > 0.5 then
- CastSpell(_R, rPred.x, rPred.z)
- elseif not VIP_USER then
- CastSpell(_R, rPred.x, rPred.z)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment