Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. if myHero.charName == "Ahri" then
  2. class "Ahri"
  3. function Ahri:__init()
  4.  
  5. self.Q = {Type = _G.SPELLTYPE_LINE, Delay = 0.25, Range = 880, Speed = 1700, Collision = true, MaxCollision = 0, CollisionTypes = {_G.COLLISION_MINION, _G.COLLISION_ENEMYHERO}}
  6. self.W = {Type = _G.SPELLTYPE_CIRCLE, Delay = 0, Radius = 725, Collision = true, MaxCollision = 0, CollisionTypes = {_G.COLLISION_MINION, _G.COLLISION_ENEMYHERO}}
  7. self.E = {Type = _G.SPELLTYPE_LINE, Delay = 0, Radius = 0, Range = 975, Speed = 1600, Collision = true, MaxCollision = 1, CollisionTypes = {_G.COLLISION_MINION, _G.COLLISION_ENEMYHERO}}
  8. OnAllyHeroLoad(function(hero)
  9. Allys[hero.networkID] = hero
  10. end)
  11.  
  12. OnEnemyHeroLoad(function(hero)
  13. Enemys[hero.networkID] = hero
  14. end)
  15.  
  16. Callback.Add("Tick", function() self:Tick() end)
  17. Callback.Add("Draw", function() self:Draw() end)
  18.  
  19. orbwalker:OnPreMovement(
  20. function(args)
  21. if lastMove + 180 > GetTickCount() then
  22. args.Process = false
  23. else
  24. args.Process = true
  25. lastMove = GetTickCount()
  26. end
  27. end
  28. )
  29. end
  30.  
  31. function Ahri:LoadMenu()
  32. self.MomzMenu = MenuElement({type = MENU, id = "MomzAIO", name = "Ahri Momz"})
  33. self.MomzMenu:MenuElement({type = MENU, id = "combo", name = "Combo"})
  34. self.MomzMenu.combo:MenuElement({id = "Q", name = "Use Q in Combo", value = true})
  35. self.MomzMenu.combo:MenuElement({id = "W", name = "Use W in Combo", value = true})
  36. self.MomzMenu.combo:MenuElement({id = "E", name = "Use E in Combo", value = true})
  37. self.MomzMenu:MenuElement({type = MENU, id = "jungleclear", name = "Jungle Clear"})
  38. self.MomzMenu.jungleclear:MenuElement({id = "UseQ", name = "Use Q in Jungle Clear", value = true})
  39. self.MomzMenu.jungleclear:MenuElement({id = "UseE", name = "Use E in Jungle Clear", value = true})
  40. --self.MomzMenu:MenuElement({type = MENU, id = "jungleclear", name = "Jungle Clear"})
  41. end
  42.  
  43. function Ahri:Draw()
  44.  
  45. end
  46.  
  47. function Ahri:Tick()
  48. if myHero.dead or Game.IsChatOpen() or (ExtLibEvade and ExtLibEvade.Evading == true) then
  49. return
  50. end
  51.  
  52. function Ahri:Combo()
  53. local QPred = GamsteronPrediction:GetPrediction(target, self.Q, myHero)
  54. local target = TargetSelector:GetTarget(self.Q.Range, 1)
  55. if Ready(_Q) and target and IsValid(target) then
  56. if self.MomzMenu.combo.Q:Value() then
  57. --Control.CastSpell(HK_Q, target)
  58. self:CastQ(target)
  59. end
  60. end
  61.  
  62. local Wactive = false;
  63. if myHero:GetSpellData(_W).name == 'Fox-Fire' then
  64. Wactive = true
  65. else
  66. Wactive = false
  67. end
  68. local target = TargetSelector:GetTarget(self.W.Range, 1)
  69. if Ready(_W) and target and IsValid(target) and Wactive == false then
  70. if self.MomzMenu.combo.W:Value() then
  71. Control.KeyDown(HK_W)
  72. Control.KeyUp(HK_W)
  73. end
  74. end
  75.  
  76. local target = TargetSelector:GetTarget(self.E.Range - 100, 1)
  77. if Ready(_E) and target and IsValid(target) then
  78. if self.MomzMenu.combo.E:Value() then
  79. Control.CastSpell(HK_E, target)
  80. --self:CastSpell(HK_Etarget)
  81. end
  82. end
  83.  
  84. end
  85.  
  86. function Ahri:jungleclear()
  87. if self.MomzMenu.jungleclear.UseQ:Value() then
  88. for i = 1, Game.MinionCount() do
  89. local obj = Game.Minion(i)
  90. if obj.team ~= myHero.team then
  91. if obj ~= nil and obj.valid and obj.visible and not obj.dead then
  92. if Ready(_Q) and self.MomzMenu.jungleclear.UseQ:Value() and obj and obj.team == 300 and obj.valid and obj.visible and not obj.dead and (obj.pos:DistanceTo(myHero.pos) < 800) then
  93. Control.CastSpell(HK_Q, obj);
  94. end
  95. end
  96. end
  97. if Ready(_E) and self.MomzMenu.jungleclear.UseE:Value() and obj and obj.team == 300 and obj.valid and obj.visible and not obj.dead and obj.pos:DistanceTo(myHero.pos) < 125 + myHero.boundingRadius then
  98. Control.CastSpell(HK_E, obj);
  99. end
  100. end
  101. end
  102. end
  103.  
  104. function Ahri:CastQ(target)
  105. if Ready(_Q) and lastQ + 350 < GetTickCount() and orbwalker:CanMove() then
  106. local Pred = GamsteronPrediction:GetPrediction(target, self.Q, myHero)
  107. if Pred.Hitchance >= _G.HITCHANCE_NORMAL then
  108. Control.CastSpell(HK_Q, Pred.CastPosition)
  109. lastQ = GetTickCount()
  110. end
  111. end
  112. end
  113. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement