Advertisement
Guest User

Untitled

a guest
Oct 27th, 2015
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. if GetObjectName(GetMyHero()) ~= "Rengar" then return end
  2.  
  3.  
  4. local Config = Menu("Rengar", "Rengar")
  5. Config:SubMenu("c", "Combo")
  6. Config.c:Boolean("Q", "EMP Q", true)
  7. Config.c:Boolean("W", "EMP W", false)
  8. Config.c:Boolean("E", "EMP E", true)
  9.  
  10. PrintChat("Headhunter Rengar by Musti")
  11. OnDraw(function(myHero)
  12. taa = GetCurrentTarget()
  13. tQ = GetCurrentTarget()
  14. tW = GetCurrentTarget()
  15. tE = GetCurrentTarget()
  16. renpos = GetOrigin(myHero)
  17. textpos = WorldToScreen(1, renpos.x, renpos.y, renpos.z)
  18. if Config.c.Q and (not Config.c.W and not Config.c.E) then
  19. DrawText("Q", 20, textpos.x, textpos.y, 0xffffffff)
  20. end
  21. if Config.c.W and (not Config.c.Q and not Config.c.E) then
  22. DrawText("W", 20, textpos.x, textpos.y, 0xffffffff)
  23. end
  24. if Config.c.E and (not Config.c.Q and not Config.c.W) then
  25. DrawText("E", 20, textpos.x, textpos.y, 0xffffffff)
  26. end
  27. if GetCurrentHP(myHero) < 350 and GetCurrentMana(myHero) == 5 then
  28. CastSpell(_W)
  29. end
  30. if KeyIsDown(0x20) then
  31. if GotBuff(myHero, "rengarpassivebuff") == 0 then
  32. if GetCurrentHP(myHero) > 350 then
  33. if (CanUseSpell(myHero, _Q) == 0 or CanUseSpell(myHero, _W) == 0 or CanUseSpell(myHero, _E) == 0) then
  34. end
  35. end
  36. if GetCurrentMana(myHero) <= 4 then
  37. if GotBuff(myHero, "rengarqbase") == 1 or GotBuff(myHero, "rengarqemp") == 1 then
  38. end
  39. if CanUseSpell(myHero, _E) == 0 then
  40. CastE(tE)
  41. end
  42. if CanUseSpell(myHero, _W) == 0 then
  43. CastW(tW)
  44. end
  45. if CanUseSpell(myHero, _Q) == 0 then
  46. CastQ(tQ)
  47. end
  48. end
  49. if GetCurrentMana(myHero) == 5 then
  50. if GetCurrentHP(myHero) >= 500 then
  51. if Config.c.Q then
  52. CastQ(tQ)
  53. end
  54. if Config.c.E then
  55. CastEE(tE)
  56. end
  57. end
  58. if Config.c.W then
  59. CastW(tW)
  60. end
  61. end
  62. end
  63. if GotBuff(myHero, "rengarpassivebuff") == 1 then
  64. if GetCurrentMana(myHero) <= 4 then
  65. if CanUseSpell(myHero, _Q) == 0 then
  66. CastQQ(tE)
  67. end
  68. end
  69. if GetCurrentMana(myHero) == 5 then
  70. if Config.c.Q then
  71. CastQQ(tE)
  72. end
  73. end
  74. end
  75. end
  76. end)
  77.  
  78. function CastQ(unit)
  79. if ValidTarget(unit, 250) then
  80. CastSpell(_Q)
  81. end
  82. end
  83.  
  84. function CastQQ(unit)
  85. if ValidTarget(unit, 950) then
  86. CastSpell(_Q)
  87. end
  88. end
  89.  
  90. function CastW(unit)
  91. if ValidTarget(unit, 400) then
  92. CastSpell(_W)
  93. end
  94. end
  95.  
  96. function CastE(unit)
  97. if ValidTarget(unit, 1000) then
  98. local pe = GetPredictionForPlayer(GetOrigin(GetMyHero()), unit, GetMoveSpeed(unit), 2000, 300, 1000, 80, false, true)
  99. if pe.HitChance == 1 then
  100. CastSkillShot(_E, pe.PredPos.x, pe.PredPos.y, pe.PredPos.z)
  101. end
  102. end
  103. end
  104.  
  105. function CastEE(unit)
  106. if ValidTarget(unit, 1000) then
  107. local pe = GetPredictionForPlayer(GetOrigin(GetMyHero()), unit, GetMoveSpeed(unit), 2000, 300, 1000, 80, true, true)
  108. if pe.HitChance == 1 then
  109. CastSkillShot(_E, pe.PredPos.x, pe.PredPos.y, pe.PredPos.z)
  110. end
  111. end
  112. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement