Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -->> Zyra Combo <<--
- if myHero.charName ~= "Zyra" then return end
- require "AoE_Skillshot_Position"
- local qRange, wRange, eRange, rRange, pRange = 825, 825, 1150, 700, 1450
- function OnLoad()
- --> Combo Menu
- comboMenu()
- --> Main Menu
- mainMenu()
- Prediction()
- ts = TargetSelector(TARGET_LESS_CAST_PRIORITY, eRange+50, DAMAGE_MAGIC)
- ps = TargetSelector(TARGET_LOW_HP, 1450, DAMAGE_MAGIC)
- ts.name = "Ability Target"
- ZyraCombo:addTS(ts)
- --> Ignite
- igniteSlot = ((myHero:GetSpellData(SUMMONER_1).name:find("SummonerDot") and SUMMONER_1) or (myHero:GetSpellData(SUMMONER_2).name:find("SummonerDot") and SUMMONER_2) or nil)
- end
- function OnTick()
- Checks()
- if ZyraCombo.scriptActive and ts.target then
- itemTick()
- if ZyraConfig.useR and RREADY then castR(ts.target) end
- if ZyraConfig.useE and EREADY then castE(ts.target) end
- if ZyraConfig.useW and WREADY then castW(ePred) end
- if ZyraConfig.useQ and QREADY then castQ(ts.target) end
- if ZyraConfig.useW and WREADY then castW(qPred) end
- end
- if ZyraCombo.Qharass and ts.target then
- if QREADY then castQ(ts.target) end
- if WREADY and QREADY and ZyraConfig.harassW then castW(qPred) end
- end
- if ZyraCombo.Eharass and ts.target then
- if EREADY then castE(ts.target) end
- if WREADY and EREADY and ZyraConfig.harassW then castW(ePred) end
- end
- if ZyraCombo.autoIgnite then autoIgnite() end
- if ZyraCombo.bloomKS then bloomKS() end
- if ZyraConfig.useP and ps.target then castP(ps.target) end
- end
- function OnDraw()
- if not myHero.dead then
- if ZyraConfig.drawQ then
- DrawCircle(myHero.x, myHero.y, myHero.z, qRange, 0x00FFFF)
- end
- if ZyraConfig.drawR then
- DrawCircle(myHero.x, myHero.y, myHero.z, rRange, 0x00FF00)
- end
- end
- end
- --> Deadly Bloom Cast
- function castQ(target)
- if qPred and GetDistance(qPred) <= qRange then
- if VIP_USER then
- if qp:GetHitChance(target) >= ZyraConfig.hitChance/100 then
- CastSpell(_Q, qPred.x, qPred.z)
- end
- else CastSpell(_Q, qPred.x, qPred.z) end
- end
- end
- --> Rampant Growth Cast
- function castW(pos)
- if pos and GetDistance(pos) <= wRange then
- CastSpell(_W, pos.x, pos.z)
- end
- end
- --> Grasping Roots
- function castE(target)
- if ePred and GetDistance(ePred) <= eRange then
- if VIP_USER then
- if ep:GetHitChance(target) >= ZyraConfig.hitChance/100 then
- CastSpell(_E, ePred.x, ePred.z)
- end
- else CastSpell(_E, ePred.x, ePred.z) end
- end
- end
- function CountEnemies(point, range)
- local ChampCount = 0
- for j = 1, heroManager.iCount, 1 do
- local enemyhero = heroManager:getHero(j)
- if myHero.team ~= enemyhero.team and ValidTarget(enemyhero, rRange+150) then
- if enemyhero and GetDistance(enemyhero, point) <= range then
- ChampCount = ChampCount + 1
- end
- end
- end
- return ChampCount
- end
- --> Stranglethorns Cast
- function castR(target)
- if ZyraConfig.rMEC then
- local ultPos = GetAoESpellPosition(500, target)
- if ultPos and GetDistance(ultPos) <= rRange then
- if CountEnemies(ultPos, 500) >= ZyraConfig.rEnemies then
- CastSpell(_R, ultPos.x, ultPos.z)
- end
- end
- elseif GetDistance(target) <= rRange then
- CastSpell(_R, target.x, target.z)
- end
- end
- --> Rise of Thorns Cast
- function castP(target)
- if pPred and GetDistance(pPred) <= pRange then
- if myHero:GetSpellData(_Q).name == myHero:GetSpellData(_W).name or myHero:GetSpellData(_W).name == myHero:GetSpellData(_E).name then
- if VIP_USER then
- if pp:GetHitChance(target) >= ZyraConfig.hitChance/100 then
- CastSpell(_Q, pPred.x, pPred.z)
- end
- else
- CastSpell(_Q, pPred.x, pPred.z)
- end
- end
- end
- end
- --> Deadly Bloom KS
- function bloomKS()
- for i, enemy in ipairs(GetEnemyHeroes()) do
- if enemy and not enemy.dead and enemy.health < getDmg("Q", enemy, myHero) then
- castQ(enemy)
- end
- end
- end
- --> Auto Ignite
- function autoIgnite()
- for i, enemy in ipairs(GetEnemyHeroes()) do
- if igniteSlot and enemy and GetDistance(enemy) <= 600 and enemy.health < getDmg("IGNITE", enemy, myHero) then
- CastSpell(igniteSlot, enemy)
- end
- end
- end
- function Prediction()
- if VIP_USER then
- pp = TargetPredictionVIP(pRange, 1875, 0.375, 60)
- qp = TargetPredictionVIP(qRange, math.huge, 0.7, 85)
- ep = TargetPredictionVIP(eRange, 1150, 250, 70)
- PrintChat("<font color='#CCCCCC'> >> VIP - Zyra Combo loaded! <<</font>")
- else
- pp = TargetPrediction(pRange, 1.875, 375, 60)
- qp = TargetPrediction(qRange, math.huge, 700)
- ep = TargetPrediction(eRange, 1.15, 250)
- PrintChat("<font color='#CCCCCC'> >> Basic - Zyra Combo loaded! <<</font>")
- end
- end
- --> Combo Menu
- function comboMenu()
- ZyraCombo = scriptConfig("Zyra - Combo Menu", "ZyraComboMenu")
- ZyraCombo:addParam("sep", "-- Combo Options --", SCRIPT_PARAM_INFO, "")
- ZyraCombo:addParam("scriptActive", "Full Combo", SCRIPT_PARAM_ONKEYDOWN, false, 32)
- ZyraCombo:addParam("Qharass", "Deadly Bloom Harass", SCRIPT_PARAM_ONKEYDOWN, false, 71)
- ZyraCombo:addParam("Eharass", "Grasping Roots Harass", SCRIPT_PARAM_ONKEYDOWN, false, 84)
- ZyraCombo:addParam("autoIgnite", "Auto Ignite Killable", SCRIPT_PARAM_ONOFF, true)
- ZyraCombo:addParam("bloomKS", "Kill with Deadly Bloom", SCRIPT_PARAM_ONOFF, true)
- end
- --> Main Menu
- function mainMenu()
- ZyraConfig = scriptConfig("Zyra - Options Menu", "ZyraMainMenu")
- ZyraConfig:addParam("sep1", "-- Spell Cast Options --", SCRIPT_PARAM_INFO, "")
- ZyraConfig:addParam("useP", "Use Rise of Thorns", SCRIPT_PARAM_ONOFF, true)
- ZyraConfig:addParam("useQ", "Use Deadly Bloom", SCRIPT_PARAM_ONOFF, true)
- ZyraConfig:addParam("useW", "Use Rampant Growth", SCRIPT_PARAM_ONOFF, true)
- ZyraConfig:addParam("useE", "Use Grasping Roots", SCRIPT_PARAM_ONOFF, true)
- ZyraConfig:addParam("useR", "Use Stranglethorns", SCRIPT_PARAM_ONOFF, true)
- ZyraConfig:addParam("sep2", "-- Cast Options --", SCRIPT_PARAM_INFO, "")
- if VIP_USER then
- ZyraConfig:addParam("hitChance", "Ability Hitchance", SCRIPT_PARAM_SLICE, 60, 0, 100, 0)
- end
- ZyraConfig:addParam("rEnemies", "Stranglethorns - Min Enemies",SCRIPT_PARAM_SLICE, 2, 1, 5, 0)
- ZyraConfig:addParam("rMEC", "MEC - Stranglethorns", SCRIPT_PARAM_ONOFF, true)
- ZyraConfig:addParam("harassW", "Harass - Use Rampant Growth", SCRIPT_PARAM_ONOFF, true)
- ZyraConfig:addParam("sep3", "-- Draw Options --", SCRIPT_PARAM_INFO, "")
- ZyraConfig:addParam("drawQ", "Draw - Deadly Bloom", SCRIPT_PARAM_ONOFF, false)
- ZyraConfig:addParam("drawR", "Draw - Stranglethorns", SCRIPT_PARAM_ONOFF, false)
- end
- --> Item Table
- local items =
- {
- {name = "Deathfire Grasp", menu = "DFG", id=3128, range = 750, reqTarget = true, slot = nil },
- {name = "Hextech Gunblade", menu = "HGB", id=3146, range = 400, reqTarget = true, slot = nil },
- }
- --> Item Casts
- function itemTick(target)
- 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
- end
- end
- end
- --> Checks
- function Checks()
- ts:update()
- ps:update()
- if ts.target then
- qPred = qp:GetPrediction(ts.target)
- ePred = ep:GetPrediction(ts.target)
- end
- if ps.target then pPred = pp:GetPrediction(ps.target) end
- QREADY = (myHero:CanUseSpell(_Q) == READY)
- WREADY = (myHero:CanUseSpell(_W) == READY)
- EREADY = (myHero:CanUseSpell(_E) == READY)
- RREADY = (myHero:CanUseSpell(_R) == READY)
- end
Advertisement
Add Comment
Please, Sign In to add comment