示例#1
0
        public static void Init()
        {
            if (EliseMenu.CheckBox(EliseMenu.Misc, "SkinHack"))
            {
                foreach (var x in ObjectManager.Get <Obj_AI_Minion>().Where(x => x.Name.Equals("Spiderling") && x.IsValid && !x.IsDead))
                {
                    x.SetSkinId(EliseMenu.Slider(EliseMenu.Misc, "SkinID"));
                }

                Player.Instance.SetSkinId(EliseMenu.Slider(EliseMenu.Misc, "SkinID"));

                if (Player.Instance.GetAutoAttackRange() > 225)
                {
                    if (Player.Instance.Model == "EliseSpider")
                    {
                        Player.Instance.SetModel("Elise");
                    }
                }
                else if (Player.Instance.GetAutoAttackRange() < 230)
                {
                    if (Player.Instance.Model == "Elise")
                    {
                        Player.Instance.SetModel("EliseSpider");
                    }
                }
            }

            if (EliseMenu.Keybind(EliseMenu.Misc, "Reset"))
            {
                Player.Instance.SetModel(Player.Instance.ChampionName);
            }
        }
示例#2
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != Champion.Elise)
            {
                return;
            }

            EliseMenu.Init();
            Elise.Init();
            Drawing.OnDraw += Drawing_OnDraw;
        }
示例#3
0
        private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
        {
            if (sender.IsEnemy && sender.IsValid)
            {
                if (EliseMenu.CheckBox(EliseMenu.Misc, "Interrupter"))
                {
                    if (CheckForm())
                    {
                        if (E.IsReady())
                        {
                            var EPred = E.GetPrediction(sender);

                            if (EPred.HitChancePercent >= EliseMenu.Slider(EliseMenu.Principal, "EPred"))
                            {
                                E.Cast(EPred.UnitPosition);
                            }
                        }
                    }
                }
            }
        }
示例#4
0
        private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
        {
            if (sender.IsEnemy && sender.IsValid)
            {
                if (EliseMenu.CheckBox(EliseMenu.Misc, "Gapcloser"))
                {
                    if (CheckForm())
                    {
                        if (E.IsReady())
                        {
                            var EPred = E.GetPrediction(sender);

                            if (EPred.HitChancePercent >= EliseMenu.Slider(EliseMenu.Principal, "EPred"))
                            {
                                E.Cast(EPred.UnitPosition);
                            }
                        }
                    }
                }
            }
        }
示例#5
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            // Human Form

            if (Elise.Q.IsReady() && EliseMenu.CheckBox(EliseMenu.Draw, "Q"))
            {
                Circle.Draw(Color.DeepSkyBlue, Elise.Q.Range, Player.Instance.Position);
            }

            if (Elise.W.IsReady() && EliseMenu.CheckBox(EliseMenu.Draw, "W"))
            {
                Circle.Draw(Color.DeepSkyBlue, Elise.W.Range, Player.Instance.Position);
            }

            if (Elise.E.IsReady() && EliseMenu.CheckBox(EliseMenu.Draw, "E"))
            {
                Circle.Draw(Color.DeepSkyBlue, Elise.E.Range, Player.Instance.Position);
            }

            // Spider Form

            if (Elise.Q2.IsReady() && EliseMenu.CheckBox(EliseMenu.Draw, "Q2"))
            {
                Circle.Draw(Color.DeepSkyBlue, Elise.Q2.Range, Player.Instance.Position);
            }

            if (Elise.E2.IsReady() && EliseMenu.CheckBox(EliseMenu.Draw, "E2"))
            {
                Circle.Draw(Color.DeepSkyBlue, Elise.E2.Range, Player.Instance.Position);
            }

            // Cooldown

            if (EliseMenu.CheckBox(EliseMenu.Draw, "Cooldowns"))
            {
                var Center = Drawing.WorldToScreen(Player.Instance.Position);

                if (!Elise.CheckForm())
                {
                    //Drawing.DrawLine(PosX, PosX + 150, 3, System.Drawing.Color.Red);

                    if (Cooldowns._HQCD == 0)
                    {
                        Drawing.DrawText(Center[0] - 60, Center[1], System.Drawing.Color.LimeGreen, "Human (Q) - OK");
                    }
                    else
                    {
                        Drawing.DrawText(Center[0] - 60, Center[1], System.Drawing.Color.Orange, "Human (Q) - " + Cooldowns._HQCD.ToString("0.0"));
                    }

                    if (Cooldowns._HWCD == 0)
                    {
                        Drawing.DrawText(Center[0] - 30, Center[1] + 30, System.Drawing.Color.LimeGreen, "Human (W) - OK");
                    }
                    else
                    {
                        Drawing.DrawText(Center[0] - 30, Center[1] + 30, System.Drawing.Color.Orange, "Human (W) - " + Cooldowns._HWCD.ToString("0.0"));
                    }

                    if (Cooldowns._HECD == 0)
                    {
                        Drawing.DrawText(Center[0] + 60, Center[1], System.Drawing.Color.LimeGreen, "Human (E) - OK");
                    }
                    else
                    {
                        Drawing.DrawText(Center[0] + 60, Center[1], System.Drawing.Color.Orange, "Human (E) - " + Cooldowns._HECD.ToString("0.0"));
                    }
                }
                else
                {
                    if (Cooldowns._SQCD == 0)
                    {
                        Drawing.DrawText(Center[0] - 60, Center[1], System.Drawing.Color.LimeGreen, "Spider (Q) - OK");
                    }
                    else
                    {
                        Drawing.DrawText(Center[0] - 60, Center[1], System.Drawing.Color.Orange, "Spider (Q) - " + Cooldowns._SQCD.ToString("0.0"));
                    }

                    if (Cooldowns._SWCD == 0)
                    {
                        Drawing.DrawText(Center[0] - 30, Center[1] + 30, System.Drawing.Color.LimeGreen, "Spider (W) - OK");
                    }
                    else
                    {
                        Drawing.DrawText(Center[0] - 30, Center[1] + 30, System.Drawing.Color.Orange, "Spider (W) - " + Cooldowns._SWCD.ToString("0.0"));
                    }

                    if (Cooldowns._SECD == 0)
                    {
                        Drawing.DrawText(Center[0] + 60, Center[1], System.Drawing.Color.LimeGreen, "Spider (E) - OK");
                    }
                    else
                    {
                        Drawing.DrawText(Center[0] + 60, Center[1], System.Drawing.Color.Orange, "Spider (E) - " + Cooldowns._SECD.ToString("0.0"));
                    }
                }
            }
        }