Advertisement
Cloudhax23

Untitled

Jul 31st, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. require('analyze')
  2. --Menu
  3. Config = scriptConfig("Nidalee", "Nidalee.lua")
  4. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  5. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  6. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  7. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  8. Config.addParam("Q2", "Use Q2", SCRIPT_PARAM_ONOFF, true)
  9. Config.addParam("W2", "Use W2", SCRIPT_PARAM_ONOFF, true)
  10. Config.addParam("E2", "Use E2", SCRIPT_PARAM_ONOFF, true)
  11. --Start
  12. OnLoop(function(myHero)
  13. AutoIgnite()
  14. if IWalkConfig.Combo then
  15. local unit = GetCurrentTarget()
  16. if ValidTarget(unit, 1500) then
  17.  
  18. -- Nidalee Human Trap
  19. if GetCastName(myHero, _W) == "Bushwhack" then
  20. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,900,50,true,true)
  21. if Config.W then
  22. if CanUseSpell(myHero, _W) == READY and WPred.HitChance == 1 then
  23. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  24. end
  25. end
  26. end
  27. -- Nidalee human spear
  28. if GetCastName(myHero, _Q) == "JavelinToss"then
  29. -- GetPredictionForPlayer(startPosition, targetUnit, targetUnitMoveSpeed, spellTravelSpeed, spellDelay, spellRange, spellWidth, collision, addHitBox)
  30. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,1500,55,true,true)
  31. if Config.Q then
  32. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  33. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  34. end
  35. end
  36. end
  37. -- Nidalee human heal
  38. if GetCastName(myHero, _E) == "PrimalSurge" then
  39. if Config.E then
  40. if CanUseSpell(myHero, _E) == READY then
  41. CastTargetSpell(myHero, _E)
  42. end
  43. end
  44. end
  45. -- Tansform to cougar
  46. if GetCastName(myHero, _R) == "AspectOfTheCougar" then
  47. if Config.R then
  48. if unit ~= nil then
  49. if CanUseSpell(myHero, _R) == READY and CanUseSpell(myHero, _W) ~= READY and CanUseSpell(myHero, _Q) ~= READY and IsInDistance(unit, 750) then
  50. CastTargetSpell(myHero, _R)
  51. end
  52. end
  53. end
  54. end
  55. -- Cougar attack Q
  56. if GetCastName(myHero, _Q) == "Takedown" then
  57. if Config.Q2 then
  58. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 475) then
  59. CastTargetSpell(unit, _Q)
  60. end
  61. end
  62. end
  63. -- Cougar pounce W
  64. if GetCastName(myHero, _W) == "Pounce" then
  65. if Config.W2 then
  66. if CanUseSpell(myHero, _W) == READY and IsInDistance(unit, 375) then
  67. CastSkillshot(myHero, _W)
  68. end
  69. end
  70. end
  71. -- E cast in cougar form
  72. if GetCastName(myHero, _E) == "Swipe" then
  73. if Config.E2 then
  74. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 300) then
  75. CastTargetSpell(unit, _E)
  76. end
  77. end
  78. end
  79. -- Transform back
  80. if GetCastName(myHero, _R) == "AspectOfTheCougar" then
  81. if Config.R then
  82. if unit ~= nil then
  83. if CanUseSpell(myHero, _R) == READY and CanUseSpell(myHero, _W) ~= READY and CanUseSpell(myHero, _Q) ~= READY then
  84. CastSpell(_R)
  85. end
  86. end
  87. end
  88. end
  89.  
  90. end
  91. end
  92. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement