BlackFeeder.Entry.OnLoad C# (CSharp) Method

OnLoad() public static method

public static OnLoad ( EventArgs args ) : void
args System.EventArgs
return void
        public static void OnLoad(EventArgs args)
        {
            try
            {
                deaths = new[]
                         {
                             "/all XD", "kek", "sorry lag", "/all gg", "help pls", "nooob wtf", "team???", "/all gg my team sucks",
                             "/all matchmaking sucks", "i can't carry dis", "wtf how?", "wow rito nerf pls",
                             "/all report enemys for drophacks", "tilidin y u do dis", "kappa", "amk", "/all einfach mal leben genießen amk"
                         };

                player = ObjectManager.Player;
                ghostSlot = player.GetSpellSlot("SummonerHaste");
                healSlot = player.GetSpellSlot("SummonerHeal");

                if (player.Gold >= 0)
                {
                    realTime = Game.ClockTime;
                }

                ShowNotification("BlackFeeder by blacky - Loaded", Color.Crimson, 10000);

                InitializeMenu.Load();
                SRShopAI.Main.Init(); //Credits to Insensitivity for his amazing "ARAMShopAI" assembly
                Game.OnUpdate += OnUpdate;
                Game.OnEnd += OnEnd;
                Obj_AI_Base.OnIssueOrder += OnIssueOrder;
            }
            catch (Exception e)
            {
                Console.WriteLine("An error occurred: '{0}'", e);
            }
        }

Usage Example

Example #1
0
 private static void Main(string[] args)
 {
     try
     {
         Entry.OnLoad();
     }
     catch (Exception e)
     {
         Console.WriteLine("An error occurred: '{0}'", e);
     }
 }