Exemple #1
0
        static void Game_OnNotify(GameNotifyEventArgs args)
        {
            if (args.NetworkId == Player.NetworkId && args.EventId == GameEventId.OnDie)
                LastOrder = null;

            if (args.NetworkId != Player.NetworkId && Menu.SubMenu("Event").Item("OnKilled").GetValue<bool>() && args.EventId == GameEventId.OnChampionKill)
            {
                Console.WriteLine("Someone died");
                if (Enemy.Contains(args.NetworkId))
                {
                    Console.WriteLine("Enemy died and spam now");
                    Spam();
                }

            }

            if (args.NetworkId != Player.NetworkId) return;

            switch (args.EventId)
            {
                case GameEventId.OnChampionPentaKill:
                    if (Menu.SubMenu("Event").Item("OnPenta").GetValue<bool>()) Spam();
                    break;
                case GameEventId.OnChampionQuadraKill:
                    if (Menu.SubMenu("Event").Item("OnPenta").GetValue<bool>()) Spam();
                    break;
                case GameEventId.OnChampionTripleKill:
                    if (Menu.SubMenu("Event").Item("OnTriple").GetValue<bool>()) Spam();
                    break;
                case GameEventId.OnKillWard:
                    if (Menu.SubMenu("Event").Item("OnKillWard").GetValue<bool>()) Spam();
                    break;
            }
        }
Exemple #2
0
        static void Game_OnGameLoad(EventArgs args)
        {
            InitMenu();

            foreach (var hero in ObjectManager.Get<Obj_AI_Hero>().Where(h => h.IsEnemy))
                Enemy.Add(hero.NetworkId);

            Game.OnUpdate += Game_OnUpdate;
            Game.OnNotify += Game_OnNotify;

            Obj_AI_Hero.OnIssueOrder += Obj_AI_Hero_OnIssueOrder;
            Obj_AI_Hero.OnTeleport += (sender, arg) => { if (sender.NetworkId == Player.NetworkId) LastOrder = null; };
            Obj_AI_Hero.OnCreate += (sender, arg) => { if (sender.NetworkId == Player.NetworkId) LastOrder = null; };
            Obj_AI_Hero.OnDelete += (sender, arg) => { if (sender.NetworkId == Player.NetworkId) LastOrder = null; };

            Notifications.AddNotification("EmoteSpammerPlus - Loaded", 5);
        }
Exemple #3
0
        static void Obj_AI_Hero_OnIssueOrder(Obj_AI_Base sender, GameObjectIssueOrderEventArgs args)
        {
            if (sender.NetworkId != Player.NetworkId) return;

            LastOrder = new IssuedOrder() { IsAttackMove = args.IsAttackMove, Order = args.Order, Process = args.Process, Target = args.Target, TargetPos = args.TargetPosition };
        }