Example #1
0
        public static void OnLoad(EventArgs args)
        {
            try
            {
                var smiteSlot =
                    Player.Spellbook.Spells.FirstOrDefault(
                        x => x.Name.ToLower().Contains("smite"));

                if (smiteSlot != null)
                {
                    Game.PrintChat("[00:01] <font color='#CC0000'>BATTLERITE!</font> Join http://aimtec.io for Battlerite scripts! SUPER FUN");
                    SmiteSpell      = new Spell(smiteSlot.Slot, 570f, TargetSelector.DamageType.True);
                    Drawing.OnDraw += OnDraw;
                    Game.OnUpdate  += OnUpdate;

                    gameStartTime = Game.Time;
                }

                InitializeMenu.Load();
            }
            catch (Exception e)
            {
                Console.WriteLine("An error occurred: '{0}'", e);
            }
        }
Example #2
0
        public static void OnLoad(EventArgs args)
        {
            try
            {
                var smiteSlot =
                    Player.Spellbook.Spells.FirstOrDefault(
                        x => x.Name.ToLower().Contains("smite"));

                if (smiteSlot != null)
                {
                    Game.PrintChat("[00:00] <font color='#f9eb0b'>ElSmite:</font> Use ElUtilitySuite for a better and faster smite!");
                    SmiteSpell      = new Spell(smiteSlot.Slot, 570f, TargetSelector.DamageType.True);
                    Drawing.OnDraw += OnDraw;
                    Game.OnUpdate  += OnUpdate;
                }

                InitializeMenu.Load();
            }
            catch (Exception e)
            {
                Console.WriteLine("An error occurred: '{0}'", e);
            }
        }