Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if myHero.charName ~= "Nidalee" then return end
- require "Collision"
- function OnLoad()
- qp = TargetPredictionVIP(1500, 1300, 0.100, 80)
- wp = TargetPredictionVIP(900, math.huge, 0.400, 80)
- col = Collision(1500, 1300, 0.100, 80)
- NidaleeConfig = scriptConfig("The Bestial Huntress", "Nidalee")
- NidaleeConfig:addParam("AutoQ", "Spear To The Face", SCRIPT_PARAM_ONKEYTOGGLE, false, string.byte("T"))
- NidaleeConfig:addParam("Combo", "Rip Their Heart Out", SCRIPT_PARAM_ONKEYDOWN, false, 32)
- NidaleeConfig:addParam("Heal", "Auto Heal", SCRIPT_PARAM_ONKEYTOGGLE, true, string.byte("Z"))
- NidaleeConfig:addParam("SelfHeal", "Self Heal", SCRIPT_PARAM_ONKEYTOGGLE, false, string.byte("C"))
- NidaleeConfig:addParam("FHeal", "Force Heal", SCRIPT_PARAM_ONKEYTOGGLE, false, string.byte("X"))
- NidaleeConfig:permaShow("AutoQ")
- NidaleeConfig:permaShow("Combo")
- NidaleeConfig:permaShow("FHeal")
- NidaleeConfig:permaShow("Heal")
- ts = TargetSelector(TARGET_NEAR_MOUSE, 2000, DAMAGE_MAGICAL, false)
- ts.name = "Nidalee"
- NidaleeConfig:addTS(ts)
- PrintChat("<font color='#CCCCCC'> >> Nidalee - by Pain loaded! <<</font>")
- end
- function OnTick()
- Checks()
- if NidaleeConfig.SelfHeal and HUMAN == true then SelfHeal() end
- if NidaleeConfig.Heal and HUMAN == true then Heal() end
- if NidaleeConfig.FHeal and NidaleeConfig.Heal and COUGAR == true then FHeal() end
- if ts.target then
- spear = qp:GetPrediction(ts.target)
- trap = wp:GetPrediction(ts.target)
- if NidaleeConfig.Combo and HUMAN == true then HCombo() end
- if NidaleeConfig.Combo and COUGAR == true then CCombo() end
- if NidaleeConfig.AutoQ and HUMAN == true then Spear() end
- end
- end
- function HCombo()
- if HUMAN == true then
- if spear and not col:GetMinionCollision(ts.target) and qp:GetHitChance(ts.target) > 0.5 then
- CastSpell(_Q, spear.x, spear.z)
- end
- if trap then
- CastSpell(_W, trap.x, trap.z)
- end
- CastSpell(_R)
- end
- end
- function CCombo()
- if COUGAR == true then
- myHero:Attack(ts.target)
- CastSpell(_W)
- if GetDistance(ts.target) < 280 then CastSpell(_E) end
- if ts.target.health < (ts.target.maxHealth*0.50) then CastSpell(_Q) end
- end
- end
- function SelfHeal()
- if HUMAN == true then
- if myHero.health < (myHero.maxHealth*0.50) and myHero:CanUseSpell(_E) == READY then
- CastSpell(_E, myHero)
- end
- end
- end
- function Heal()
- if HUMAN == true then
- for i=1, heroManager.iCount do
- local allytarget = heroManager:GetHero(i)
- if allytarget.team == myHero.team and not allytarget.dead and GetDistance(allytarget) <= 600 and allytarget.health < (allytarget.maxHealth*0.70) and myHero:CanUseSpell(_E) == READY then
- CastSpell(_E, allytarget)
- end
- end
- end
- end
- function FHeal()
- if COUGAR == true then
- CastSpell(_R)
- end
- end
- function Spear()
- if HUMAN == true then
- if spear and qp:GetHitChance(ts.target) > 0.5 and not col:GetMinionCollision(ts.target) then
- CastSpell(_Q, spear.x, spear.z)
- end
- end
- end
- function Checks()
- ts:update()
- if myHero:GetSpellData(_Q).name == "JavelinToss" or myHero:GetSpellData(_W).name == "Bushwhack" or myHero:GetSpellData(_E).name == "PrimalSurge" then
- HUMAN = true
- COUGAR = false
- end
- if myHero:GetSpellData(_Q).name == "Takedown" or myHero:GetSpellData(_W).name == "Pounce" or myHero:GetSpellData(_E).name == "Swipe" then
- COUGAR = true
- HUMAN = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment