Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if myHero.charName == "Ahri" then
- class "Ahri"
- function Ahri:__init()
- self.Q = {Type = _G.SPELLTYPE_LINE, Delay = 0.25, Range = 880, Speed = 1700, Collision = true, MaxCollision = 0, CollisionTypes = {_G.COLLISION_MINION, _G.COLLISION_ENEMYHERO}}
- self.W = {Type = _G.SPELLTYPE_CIRCLE, Delay = 0, Radius = 725, Collision = true, MaxCollision = 0, CollisionTypes = {_G.COLLISION_MINION, _G.COLLISION_ENEMYHERO}}
- 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}}
- OnAllyHeroLoad(function(hero)
- Allys[hero.networkID] = hero
- end)
- OnEnemyHeroLoad(function(hero)
- Enemys[hero.networkID] = hero
- end)
- Callback.Add("Tick", function() self:Tick() end)
- Callback.Add("Draw", function() self:Draw() end)
- orbwalker:OnPreMovement(
- function(args)
- if lastMove + 180 > GetTickCount() then
- args.Process = false
- else
- args.Process = true
- lastMove = GetTickCount()
- end
- end
- )
- end
- function Ahri:LoadMenu()
- self.MomzMenu = MenuElement({type = MENU, id = "MomzAIO", name = "Ahri Momz"})
- self.MomzMenu:MenuElement({type = MENU, id = "combo", name = "Combo"})
- self.MomzMenu.combo:MenuElement({id = "Q", name = "Use Q in Combo", value = true})
- self.MomzMenu.combo:MenuElement({id = "W", name = "Use W in Combo", value = true})
- self.MomzMenu.combo:MenuElement({id = "E", name = "Use E in Combo", value = true})
- self.MomzMenu:MenuElement({type = MENU, id = "jungleclear", name = "Jungle Clear"})
- self.MomzMenu.jungleclear:MenuElement({id = "UseQ", name = "Use Q in Jungle Clear", value = true})
- self.MomzMenu.jungleclear:MenuElement({id = "UseE", name = "Use E in Jungle Clear", value = true})
- --self.MomzMenu:MenuElement({type = MENU, id = "jungleclear", name = "Jungle Clear"})
- end
- function Ahri:Draw()
- end
- function Ahri:Tick()
- if myHero.dead or Game.IsChatOpen() or (ExtLibEvade and ExtLibEvade.Evading == true) then
- return
- end
- function Ahri:Combo()
- local QPred = GamsteronPrediction:GetPrediction(target, self.Q, myHero)
- local target = TargetSelector:GetTarget(self.Q.Range, 1)
- if Ready(_Q) and target and IsValid(target) then
- if self.MomzMenu.combo.Q:Value() then
- --Control.CastSpell(HK_Q, target)
- self:CastQ(target)
- end
- end
- local Wactive = false;
- if myHero:GetSpellData(_W).name == 'Fox-Fire' then
- Wactive = true
- else
- Wactive = false
- end
- local target = TargetSelector:GetTarget(self.W.Range, 1)
- if Ready(_W) and target and IsValid(target) and Wactive == false then
- if self.MomzMenu.combo.W:Value() then
- Control.KeyDown(HK_W)
- Control.KeyUp(HK_W)
- end
- end
- local target = TargetSelector:GetTarget(self.E.Range - 100, 1)
- if Ready(_E) and target and IsValid(target) then
- if self.MomzMenu.combo.E:Value() then
- Control.CastSpell(HK_E, target)
- --self:CastSpell(HK_Etarget)
- end
- end
- end
- function Ahri:jungleclear()
- if self.MomzMenu.jungleclear.UseQ:Value() then
- for i = 1, Game.MinionCount() do
- local obj = Game.Minion(i)
- if obj.team ~= myHero.team then
- if obj ~= nil and obj.valid and obj.visible and not obj.dead then
- 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
- Control.CastSpell(HK_Q, obj);
- end
- end
- end
- 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
- Control.CastSpell(HK_E, obj);
- end
- end
- end
- end
- function Ahri:CastQ(target)
- if Ready(_Q) and lastQ + 350 < GetTickCount() and orbwalker:CanMove() then
- local Pred = GamsteronPrediction:GetPrediction(target, self.Q, myHero)
- if Pred.Hitchance >= _G.HITCHANCE_NORMAL then
- Control.CastSpell(HK_Q, Pred.CastPosition)
- lastQ = GetTickCount()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement