Advertisement
Cloudhax23

Untitled

Aug 7th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. --[[ Riven
  2. if GetObjectName(GetMyHero()) == "Anivia" then
  3. --Menu
  4. Config = scriptConfig("Anivia", "Anivia")
  5. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  6. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  7. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  8. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  9. --Start
  10. OnLoop(function(myHero)
  11. AutoIgnite()
  12. if Config.Q then
  13. if GetCastName(myHero, _Q) == "FlashFrost" then
  14. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,1075,50,true,true)
  15. if CanUseSpell(myHero, _Q) == READY and IsInDistance(unit, 1075) and QPred.HitChance == 1 then
  16. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  17. end
  18. end
  19. end
  20.  
  21. if IWalkConfig.Combo then
  22. local unit = GetCurrentTarget()
  23. if ValidTarget(unit, 1550) then
  24. --Riven E
  25. if GetCastName(myHero, _E) == "Frostbite" then
  26. if Config.E then
  27. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 650) then
  28. CastTargetSpell(unit,_E)
  29. end
  30. end
  31. end
  32. -- Riven Q
  33. if GetCastName(myHero, _Q) == "FlashFrost" then
  34. if Config.Q then
  35. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,75,50,true,true)
  36. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and GotBuff(target,"Chilled") then
  37. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  38. end
  39. end
  40. -- Riven W
  41. --if GetCastName(myHero, _W) == "RivenMartyr" then
  42. if Config.W then
  43. local WPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,250,125,50,false,true)
  44. if CanUseSpell(myHero, _W) == READY and IsObjectAlive(unit) and IsInDistance(unit, 125) then
  45. CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  46. end
  47. end
  48. end
  49. --Cast R windslash
  50. if GetCastName(myHero, _R) == "GlacialStorm" then
  51. if Config.R then
  52. local RPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1700,625,50,false,true)
  53. if (GetCurrentHP(unit)/GetMaxHP(unit))<0.3 and
  54. CanUseSpell(myHero, _R) == READY and IsObjectAlive(unit) and IsInDistance(unit, 625) and RPred.HitChance == 1 then
  55. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  56. end
  57. end
  58. end
  59. end
  60. end
  61. end
  62. end)
  63. end]]
  64. Config = scriptConfig("Gragas", "Gragas:")
  65. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  66. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  67. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  68. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  69. DrawingsConfig = scriptConfig("Drawings", "Drawings:")
  70. DrawingsConfig.addParam("DrawQ","Draw Q", SCRIPT_PARAM_ONOFF, true)
  71. DrawingsConfig.addParam("DrawE","Draw E", SCRIPT_PARAM_ONOFF, true)
  72. DrawingsConfig.addParam("DrawR","Draw R", SCRIPT_PARAM_ONOFF, true)
  73.  
  74.  
  75.  
  76. myIAC = IAC()
  77.  
  78. OnLoop(function(myHero)
  79. Drawings()
  80.  
  81.  
  82. if IWalkConfig.Combo then
  83. local target = GetTarget(1000, DAMAGE_MAGIC)
  84. if ValidTarget(target, 1000) then
  85.  
  86. local QPred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),1100,250,GetCastRange(myHero,_Q),275,false,false)
  87. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and ValidTarget(target, GetCastRange(myHero,_Q)) and Config.Q then
  88. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  89. end
  90. if CanUseSpell(myHero, _W) == READY and IsInDistance(target, 500) and Config.W then
  91. CastTargetSpell(myHero,_W)
  92. end
  93. local EPred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),950,0,GetCastRange(myHero,_E),200,true,true)
  94. if CanUseSpell(myHero, _E) == READY and EPred.HitChance == 1 and ValidTarget(target, GetCastRange(myHero,_E)) and Config.E then
  95. CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
  96. end
  97. local RPred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),1200,250,GetCastRange(myHero,_R),375,false,false)
  98. if CanUseSpell(myHero, _R) == READY and QPred.HitChance == 1 and ValidTarget(target, GetCastRange(myHero,_R)) and Config.R then
  99. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  100. end
  101. end
  102. end
  103. end)
  104.  
  105. function Drawings()
  106. myHeroPos = GetOrigin(myHero)
  107. if CanUseSpell(myHero, _Q) == READY and DrawingsConfig.DrawQ then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_Q),3,100,0xff00ff00) end
  108. if CanUseSpell(myHero, _E) == READY and DrawingsConfig.DrawE then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_E),3,100,0xff00ffc0) end
  109. if CanUseSpell(myHero, _R) == READY and DrawingsConfig.DrawR then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_R),3,100,0xff00ffd0) end
  110. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement