Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Riven
- if GetObjectName(GetMyHero()) == "Anivia" then
- --Menu
- Config = scriptConfig("Anivia", "Anivia")
- Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
- --Start
- OnLoop(function(myHero)
- AutoIgnite()
- if Config.Q then
- if GetCastName(myHero, _Q) == "FlashFrost" then
- local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1075,50,true,true)
- if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 1075) and QPred.HitChance == 1 then
- CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
- end
- end
- end
- if IWalkConfig.Combo then
- local unit = GetCurrentTarget()
- if ValidTarget(unit, 1550) then
- --Riven E
- if GetCastName(myHero, _E) == "Frostbite" then
- if Config.E then
- if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 650) then
- CastTargetSpell(unit,_E)
- end
- end
- end
- -- Riven Q
- if GetCastName(myHero, _Q) == "FlashFrost" then
- if Config.Q then
- local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,75,50,true,true)
- if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and GotBuff(target,"Chilled") then
- CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
- end
- end
- -- Riven W
- --if GetCastName(myHero, _W) == "RivenMartyr" then
- if Config.W then
- local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,125,50,false,true)
- if CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and IsInDistance(unit, 125) then
- CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
- end
- end
- end
- --Cast R windslash
- if GetCastName(myHero, _R) == "GlacialStorm" then
- if Config.R then
- local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,625,50,false,true)
- if (GetCurrentHP(unit)/GetMaxHP(unit))<0.3 and
- CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and IsInDistance(unit, 625) and RPred.HitChance == 1 then
- CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
- end
- end
- end
- end
- end
- end
- end)
- end]]
- Config = scriptConfig("Gragas", "Gragas:")
- Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
- DrawingsConfig = scriptConfig("Drawings", "Drawings:")
- DrawingsConfig.addParam("DrawQ","Draw Q", SCRIPT_PARAM_ONOFF, true)
- DrawingsConfig.addParam("DrawE","Draw E", SCRIPT_PARAM_ONOFF, true)
- DrawingsConfig.addParam("DrawR","Draw R", SCRIPT_PARAM_ONOFF, true)
- myIAC = IAC()
- OnLoop(function(myHero)
- Drawings()
- if IWalkConfig.Combo then
- local target = GetTarget(1000, DAMAGE_MAGIC)
- if ValidTarget(target, 1000) then
- local QPred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),1100,250,GetCastRange(myHero,_Q),275,false,false)
- if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and ValidTarget(target, GetCastRange(myHero,_Q)) and Config.Q then
- CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
- end
- if CanUseSpell(myHero, _W) == READY and IsInDistance(target, 500) and Config.W then
- CastTargetSpell(myHero,_W)
- end
- local EPred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),950,0,GetCastRange(myHero,_E),200,true,true)
- if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 and ValidTarget(target, GetCastRange(myHero,_E)) and Config.E then
- CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
- end
- local RPred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),1200,250,GetCastRange(myHero,_R),375,false,false)
- if CanUseSpell(myHero, _R) == READY and QPred.HitChance == 1 and ValidTarget(target, GetCastRange(myHero,_R)) and Config.R then
- CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
- end
- end
- end
- end)
- function Drawings()
- myHeroPos = GetOrigin(myHero)
- if CanUseSpell(myHero, _Q) == READY and DrawingsConfig.DrawQ then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_Q),3,100,0xff00ff00) end
- if CanUseSpell(myHero, _E) == READY and DrawingsConfig.DrawE then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_E),3,100,0xff00ffc0) end
- if CanUseSpell(myHero, _R) == READY and DrawingsConfig.DrawR then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_R),3,100,0xff00ffd0) end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement