Advertisement
Musti145

Untitled

Oct 7th, 2015
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.02 KB | None | 0 0
  1. LuluMenu = Menu("Lulu", "Lulu:")
  2. LuluMenu:SubMenu("Combo", "Combo")
  3. LuluMenu.Combo:Boolean("Q", "Use Q", true)
  4. LuluMenu.Combo:Boolean("W", "Use W", true)
  5. LuluMenu.Combo:Boolean("EE", "Use Enemy E", false)
  6. LuluMenu.Combo:Boolean("AE", "Use Ally E", true)
  7. LuluMenu.Combo:Boolean("ME", "Use Me E", true)
  8. LuluMenu.Combo:Boolean("AR", "Use Allies R", true)
  9. LuluMenu.Combo:Boolean("MR", "Use Me R", true)
  10.  
  11.  
  12. LuluMenu:SubMenu("Drawings", "Drawings:")
  13. LuluMenu.Drawings:Boolean("Q", "Draw Q", true)
  14. LuluMenu.Drawings:Boolean("W", "Draw W", true)
  15. LuluMenu.Drawings:Boolean("E", "Draw E", true)
  16. LuluMenu.Drawings:Boolean("R", "Draw R", true)
  17.  
  18. LuluMenu:SubMenu("DMG", "Draw DMG")
  19. LuluMenu.DMG:Boolean("Q", "Draw Q Dmg", true)
  20. LuluMenu.DMG:Boolean("E", "Draw E Dmg", false)
  21.  
  22.  
  23.  
  24.  
  25. OnLoop(function(myHero)
  26.  
  27. if IOW:Mode() == "Combo" then
  28.  
  29. local target = GetCurrentTarget()
  30. local QPred = GetPredictionForPlayer(GoS:myHeroPos(),target,GetMoveSpeed(target),1450,250,925,80,false,false)
  31.  
  32.  
  33.  
  34.  
  35. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 and GoS:ValidTarget(target, 1300) and LuluMenu.Combo.Q:Value() then
  36. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  37. end
  38. if CanUseSpell(myHero, _W) == READY and GoS:ValidTarget(target, 700) and LuluMenu.Combo.W:Value() then
  39. CastTargetSpell(target, _W)
  40. end
  41. if CanUseSpell(myHero, _E) == READY and GoS:ValidTarget(target, 1000) and LuluMenu.Combo.EE:Value() then
  42. CastTargetSpell(target, _E)
  43. end
  44. for _, ally in pairs(GoS:GetAllyHeroes()) do
  45. if CanUseSpell(myHero, _E) == READY and GoS:ValidTarget(target, 1000) and (GetCurrentHP(ally)/GetMaxHP(ally))<0.3 and LuluMenu.Combo.AE:Value() then
  46. CastTargetSpell(ally, _E)
  47. end
  48. end
  49. if CanUseSpell(myHero,_E) == READY and GoS:ValidTarget(target, 1000) and (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.15 and LuluMenu.Combo.ME:Value() then
  50. CastTargetSpell(myHero, _E)
  51. end
  52. for _, ally in pairs(GoS:GetAllyHeroes()) do
  53. if LuluMenu.Combo.AR:Value() and GoS:ValidTarget(target, 1000) and (GetCurrentHP(ally)/GetMaxHP(ally))<0.3 and CanUseSpell(myHero, _R) == READY then
  54. CastTargetSpell(ally, _R)
  55. end
  56. end
  57. if LuluMenu.Combo.MR:Value() and GoS:ValidTarget(target, 1000) and (GetCurrentHP(myHero)/GetMaxHP(myHero))<0.3 and CanUseSpell(myHero, _R) == READY then
  58. CastTargetSpell(myHero, _R)
  59. end
  60.  
  61. end
  62.  
  63.  
  64. for i,enemy in pairs(GoS:GetEnemyHeroes()) do
  65.  
  66. if CanUseSpell(myHero,_Q) == READY and GoS:ValidTarget(enemy, 2000) and LuluMenu.DMG.Q:Value() then
  67. local trueDMG = GoS:CalcDamage(myHero, enemy, 0, (45*GetCastLevel(myHero,_Q) + 35 + 0.5*(GetBonusAP(myHero))))
  68. DrawDmgOverHpBar(enemy,GetCurrentHP(enemy),trueDMG,0,0xff0cff00)
  69. end
  70. if CanUseSpell(myHero,_E) == READY and GoS:ValidTarget(enemy, 2000) and LuluMenu.DMG.E:Value() then
  71. local trueDMG = GoS:CalcDamage(myHero, enemy, 0, (30*GetCastLevel(myHero,_E) + 50 + 0.4*(GetBonusAP(myHero))))
  72. DrawDmgOverHpBar(enemy,GetCurrentHP(enemy),trueDMG,0,0xff0cff00)
  73. end
  74.  
  75. end
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82. if LuluMenu.Drawings.Q:Value() then DrawCircle(GoS:myHeroPos().x, GoS:myHeroPos().y, GoS:myHeroPos().z,GetCastRange(myHero,_Q),3,100,0xff00ff00) end
  83. if LuluMenu.Drawings.E:Value() then DrawCircle(GoS:myHeroPos().x, GoS:myHeroPos().y, GoS:myHeroPos().z,GetCastRange(myHero,_E),3,100,0xff00ff00) end
  84. if LuluMenu.Drawings.W:Value() then DrawCircle(GoS:myHeroPos().x, GoS:myHeroPos().y, GoS:myHeroPos().z,GetCastRange(myHero,_W),3,100,0xff00ff00) end
  85.  
  86. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement