Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Requires
- require('twgank')
- require('IAC')
- --Menu
- Config = scriptConfig("INidalee", "Nidalee.lua")
- 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)
- Config.addParam("Q2", "Use Q2", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("W2", "Use W2", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("E2", "Use E2", SCRIPT_PARAM_ONOFF, true)
- --Start
- OnLoop(function(myHero)
- AutoIgnite()
- if IWalkConfig.Combo then
- local unit = GetCurrentTarget()
- if ValidTarget(unit, 1200) then
- -- Nidalee Human Trap
- if GetCastName(myHero, _W) == "NidaleeHumanW" then
- local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,950,55,true,true)
- if Config.W then
- if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
- CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
- end
- end
- end
- -- Nidalee human spear
- if GetCastName(myHero, _Q) == "NidaleeHumanQ" then
- local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,950,55,true,true)
- if Config.Q then
- if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
- CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
- end
- end
- end
- -- Nidalee human heal
- if GetCastName(myHero, _E) == "PrimalSurge" then
- if Config.E then
- if CanUseSpell(myHero, _E) == READY then
- CastTargetSpell(myHero, _E)
- end
- end
- end
- -- Tansform to cougar
- if GetCastName(myHero, _R) == "AspectOfTheCougar" then
- if Config.R then
- if unit ~= nil then
- if CanUseSpell(myHero, _R) == READY and CanUseSpell(myHero, _W) ~= READY and CanUseSpell(myHero, _Q) ~= READY and IsInDistance(unit, 750) then
- CastTargetSpell(myHero, _R)
- end
- end
- end
- end
- -- Cougar attack Q
- if GetCastName(myHero, _Q) == "NidaleeQCast" then
- if Config.Q2 then
- if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 475) then
- CastTargetSpell(unit, _Q)
- end
- end
- end
- -- Cougar pounce W
- if GetCastName(myHero, _W) == "NidaleeCougarW" then
- if Config.W2 then
- if CanUseSpell(myHero, _W) == READY and IsInDistance(unit, 375) then
- CastSkillshot(myHero, _W)
- end
- end
- end
- -- E cast in cougar form
- if GetCastName(myHero, _E) == "NidaleeCougarEInitial" then
- if Config.E2 then
- if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 300) then
- CastTargetSpell(unit, _E)
- end
- end
- end
- -- Transform back
- if GetCastName(myHero, _R) == "AspectOfTheCougar" then
- if Config.R then
- if unit ~= nil then
- if CanUseSpell(myHero, _R) == READY and CanUseSpell(myHero, _W) ~= READY and CanUseSpell(myHero, _Q) ~= READY then
- CastSpell(_R)
- end
- end
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement