Exemple #1
0
 private static void Main(string[] args)
 {
     CustomEvents.Game.OnGameLoad += Game_OnGameLoad;
     Console.WriteLine("I HATE CC LOADED");
     BuffMngr.BuffMngrInit();
     BuffMngr.OnGainBuff += BuffGained;
 }
Exemple #2
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Player = ObjectManager.Player;
            if (Player.BaseSkinName != ChampionName)
            {
                return;
            }
            Console.WriteLine("ResetsAllTheWay loaded");
            BuffMngr.BuffMngrInit();
            BuffMngr.OnGainBuff += BuffGained;
            BuffMngr.OnLoseBuff += BuffLost;

            //Create the spells
            Q          = new Spell(SpellSlot.Q, 675);
            W          = new Spell(SpellSlot.W, 400);
            E          = new Spell(SpellSlot.E, 700);
            R          = new Spell(SpellSlot.R, 550);
            IgniteSlot = ObjectManager.Player.GetSpellSlot("SummonerDot");
            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            //Create the menu
            Config = new Menu(ChampionName, ChampionName, true);

            var targetSelectorMenu = new Menu("Target Selector", "Target Selector");

            SimpleTs.AddToMenu(targetSelectorMenu);
            Config.AddSubMenu(targetSelectorMenu);



            Config.AddSubMenu(new Menu("HotKeys:", "hotkeys"));
            Config.SubMenu("hotkeys").AddItem(new MenuItem("ComboActive", "Combo!").SetValue(new KeyBind(32, KeyBindType.Press)));
            Config.SubMenu("hotkeys").AddItem(new MenuItem("HarassActive", "Harass!").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));

            Config.AddSubMenu(new Menu("Harass Options:", "harassspells"));
            Config.SubMenu("harassspells").AddItem(new MenuItem("useQHarass", "Use - Bouncing Blades (Q)").SetValue(true));
            Config.SubMenu("harassspells").AddItem(new MenuItem("useWHarass", "Use - Sinister Steel (W)").SetValue(true));
            Config.SubMenu("harassspells").AddItem(new MenuItem("useEHarass", "Use - Shunpo (E)").SetValue(true));

            Config.AddSubMenu(new Menu("Drawings", "Drawings"));
            var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Draw damage after Combo").SetValue(true);

            Utility.HpBarDamageIndicator.DamageToUnit += hero => (float)CalculateDamageDrawing(hero);

            Utility.HpBarDamageIndicator.Enabled = dmgAfterComboItem.GetValue <bool>();
            dmgAfterComboItem.ValueChanged      += delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>();
            };
            Config.SubMenu("Drawings").AddItem(dmgAfterComboItem);
            Config.SubMenu("Drawings").AddItem(new MenuItem("QRange", "Q range").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Config.SubMenu("Drawings").AddItem(new MenuItem("WRange", "W range").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Config.SubMenu("Drawings").AddItem(new MenuItem("ERange", "E range").SetValue(new Circle(false, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Config.SubMenu("Drawings").AddItem(new MenuItem("RRange", "R range").SetValue(new Circle(false, System.Drawing.Color.FromArgb(255, 255, 255, 255))));

            Config.AddSubMenu(new Menu("Misc", "Misc"));
            Config.SubMenu("Misc").AddItem(new MenuItem("ignite", "Use Ignite")).SetValue(true);
            Config.SubMenu("Misc").AddItem(new MenuItem("dfg", "Use DFG")).SetValue(true);
            Config.SubMenu("Misc").AddItem(new MenuItem("wDelay", "Delay W to proc mark")).SetValue(false);

            Config.AddToMainMenu();

            //Add the events we are going to use:
            Drawing.OnDraw        += Drawing_OnDraw;
            Game.OnGameUpdate     += Game_OnGameUpdate;
            Game.OnGameSendPacket += GameOnOnGameSendPacket;
        }