Example #1
0
        private void GameOnLoad()
        {
            Game.PrintChat("<font color = \"#FFB6C1\">xSalice's Ressurected AIO</font> by <font color = \"#00FFFF\">xSalice</font>");
            Game.PrintChat("<font color = \"#87CEEB\">Feel free to donate via Paypal to:</font> <font color = \"#FFFF00\">[email protected]</font>");

            menu = new Menu(Player.ChampionName, Player.ChampionName, true);

            //Info
            menu.AddSubMenu(new Menu("General", "General"));
            menu.SubMenu("General").AddItem(new MenuItem("Author", "By xSalice"));
            menu.SubMenu("General").AddItem(new MenuItem("Paypal", "Donate: [email protected]"));
            menu.SubMenu("General").AddItem(new MenuItem("OrbwalkingMode", "Mode (Require f5 reload): ").SetValue(new StringList(new[] { "xSaliceWalker", "Common" })));

            //Target selector
            var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
            TargetSelector.AddToMenu(targetSelectorMenu);
            menu.AddSubMenu(targetSelectorMenu);

            //Orbwalker submenu
            if (Player.ChampionName.ToLower() == "azir")
            {
                menu.AddSubMenu(OrbwalkerMenu);
                AzirOrb = new AzirManager(OrbwalkerMenu);
            }
            else
            {
                menu.AddSubMenu(OrbwalkerMenu);

                if (menu.Item("OrbwalkingMode").GetValue<StringList>().SelectedIndex == 1)
                    Orbwalker = new Orbwalking.Orbwalker(OrbwalkerMenu);
                else
                    xSaliceWalker.AddToMenu(OrbwalkerMenu);
            }

            //Item Menu
            var itemMenu = new Menu("Items and Summoners", "Items");
            ItemManager.AddToMenu(itemMenu);
            menu.AddSubMenu(itemMenu);
            
            menu.AddToMainMenu();
            new PluginLoader();

            //debug
            //Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCastEvent;
            //Obj_AI_Base.OnBuffAdd += ObjAiBaseOnOnBuffAdd;
            //Obj_AI_Base.OnBuffRemove += ObjAiBaseOnOnBuffRemove;
            //GameObject.OnCreate += GameObject_OnCreateEvent;
            //GameObject.OnDelete += GameObject_OnDeleteEvent;
        }
Example #2
0
        private void GameOnLoad()
        {
            Game.PrintChat("<font color = \"#FFB6C1\">xSalice's Ressurected AIO</font> by <font color = \"#00FFFF\">xSalice</font>, imsosharp version");

            menu = new Menu(Player.ChampionName, Player.ChampionName, true);

            //Orbwalker submenu
            if (Player.ChampionName.ToLower() == "azir")
            {
                menu.AddSubMenu(OrbwalkerMenu);
                AzirOrb = new AzirManager(OrbwalkerMenu);
            }
            else
            {
                menu.AddSubMenu(OrbwalkerMenu);
                Orbwalker = new Orbwalking.Orbwalker(OrbwalkerMenu);
            }

            //Item Menu
            var itemMenu = new Menu("Activator", "Items");
            ItemManager.AddToMenu(itemMenu);
            menu.AddSubMenu(itemMenu);

            menu.AddToMainMenu();
            new PluginLoader();

            //debug
            //Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCastEvent;
            //Obj_AI_Base.OnBuffAdd += ObjAiBaseOnOnBuffAdd;
            //Obj_AI_Base.OnBuffRemove += ObjAiBaseOnOnBuffRemove;
            //GameObject.OnCreate += GameObject_OnCreateEvent;
            //GameObject.OnDelete += GameObject_OnDeleteEvent;
        }