示例#1
0
        private static void OnGameUpdate(EventArgs args)
        {
            try
            {
                if (Khazix.orbwalker.ActiveMode.ToString() == "Combo")
                {
                    Obj_AI_Hero target = SimpleTs.GetTarget(Khazix.getBestRange(), SimpleTs.DamageType.Physical);

                    Khazix.checkUpdatedSpells();


                    Khazix.doCombo(target);
                    //Console.WriteLine(target.NetworkId);
                }
                if (Config.Item("harassBtn").GetValue <KeyBind>().Active)
                {
                    Obj_AI_Hero target = SimpleTs.GetTarget(Khazix.getBestRange(), SimpleTs.DamageType.Physical);


                    Khazix.doHarass(target);
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
示例#2
0
        private static void onLoad(EventArgs args)
        {
            Game.PrintChat("Khazix - Sharp by DeTuKs");

            try
            {
                Config = new Menu("KhazixSharp", "Khazix", true);
                //Orbwalker
                Config.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
                Khazix.orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker"));
                //TS
                var TargetSelectorMenu = new Menu("Target Selector", "Target Selector");
                SimpleTs.AddToMenu(TargetSelectorMenu);
                Config.AddSubMenu(TargetSelectorMenu);
                //Combo
                Config.AddSubMenu(new Menu("Combo Sharp", "combo"));
                Config.SubMenu("combo").AddItem(new MenuItem("comboItems", "Use Items")).SetValue(true);

                //LastHit
                Config.AddSubMenu(new Menu("LastHit Sharp", "lHit"));

                //LaneClear
                Config.AddSubMenu(new Menu("LaneClear Sharp", "lClear"));

                //Harass
                Config.AddSubMenu(new Menu("Harass Sharp", "harass"));
                Config.SubMenu("harass").AddItem(new MenuItem("harassBtn", "Harass Target")).SetValue(new KeyBind('A', KeyBindType.Press, false));

                //Extra
                Config.AddSubMenu(new Menu("Extra Sharp", "extra"));


                //Debug
                Config.AddSubMenu(new Menu("Debug", "debug"));
                Config.SubMenu("debug").AddItem(new MenuItem("db_targ", "Debug Target")).SetValue(new KeyBind('T', KeyBindType.Press, false));


                Config.AddToMainMenu();
                Drawing.OnDraw    += onDraw;
                Game.OnGameUpdate += OnGameUpdate;

                GameObject.OnCreate            += OnCreateObject;
                GameObject.OnDelete            += OnDeleteObject;
                GameObject.OnPropertyChange    += OnPropertyChange;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;

                Game.OnGameSendPacket    += OnGameSendPacket;
                Game.OnGameProcessPacket += OnGameProcessPacket;

                Khazix.setSkillshots();
            }
            catch
            {
                Game.PrintChat("Oops. Something went wrong with KhazixSharp");
            }
        }
示例#3
0
 private static void onDraw(EventArgs args)
 {
     foreach (
         var enemy in
         ObjectManager.Get <Obj_AI_Hero>()
         .Where(ene => !ene.IsDead && ene.IsEnemy && ene.IsVisible))
     {
         hpi.unit = enemy;
         hpi.drawDmg(Khazix.fullComboDmgOn(enemy), Color.Yellow);
     }
 }
示例#4
0
 private static void onDraw(EventArgs args)
 {
     foreach (
         var enemy in
         ObjectManager.Get <Obj_AI_Hero>()
         .Where(ene => !ene.IsDead && ene.IsEnemy && ene.IsVisible))
     {
         hpi.unit = enemy;
         hpi.drawDmg(Khazix.fullComboDmgOn(enemy), Color.Yellow);
     }
     Drawing.DrawCircle(Khazix.Player.Position, Khazix.Q.Range, Color.Pink);
     Drawing.DrawCircle(Khazix.Player.Position, Khazix.W.Range, Color.Pink);
     Drawing.DrawCircle(Khazix.Player.Position, Khazix.E.Range, Color.Pink);
 }
示例#5
0
        private static void onLoad()
        {
            Chat.Print("Khazix - Sharp by DeTuKs");

            try
            {
                Config = new Menu("KhazixSharp", "Khazix", true);
                //Orbwalker
                Config.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
                Khazix.orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker"));
                //TS
                var TargetSelectorMenu = new Menu("Target Selector", "Target Selector");
                TargetSelector.AddToMenu(TargetSelectorMenu);
                Config.AddSubMenu(TargetSelectorMenu);
                //Combo
                Config.AddSubMenu(new Menu("Combo Sharp", "combo"));
                Config.SubMenu("combo").AddItem(new MenuItem("comboItems", "Use Items")).SetValue(true);

                //LastHit
                Config.AddSubMenu(new Menu("LastHit Sharp", "lHit"));

                //LaneClear
                Config.AddSubMenu(new Menu("LaneClear Sharp", "lClear"));

                //Harass
                Config.AddSubMenu(new Menu("Harass Sharp", "harass"));
                Config.SubMenu("harass").AddItem(new MenuItem("harassBtn", "Harass Target")).SetValue(new KeyBind('A', KeyBindType.Press, false));

                //Extra
                Config.AddSubMenu(new Menu("Extra Sharp", "extra"));


                //Debug
                Config.AddSubMenu(new Menu("Debug", "debug"));
                Config.SubMenu("debug").AddItem(new MenuItem("db_targ", "Debug Target")).SetValue(new KeyBind('T', KeyBindType.Press, false));


                Config.AddToMainMenu();
                Drawing.OnDraw += onDraw;
                Game.OnUpdate  += OnGameUpdate;

                Khazix.setSkillshots();
            }
            catch
            {
                Chat.Print("Oops. Something went wrong with KhazixSharp");
            }
        }