Advertisement
Cloudhax23

Untitled

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