Esempio n. 1
1
        public static void Init()
        {
            Map = Utility.Map.GetMap().Type;
            if (Map != Utility.Map.MapType.HowlingAbyss) return;
            Config = new Menu("AIM: " + ObjectManager.Player.ChampionName,
                "autosharp." + ObjectManager.Player.ChampionName, true);
            Config.AddItem(new MenuItem("autosharp.quit", "Quit after Game End").SetValue(true));
            var options = Config.AddSubMenu(new Menu("Options: ", "autosharp.options"));
            options.AddItem(new MenuItem("autosharp.options.healup", "Take Heals?").SetValue(true));
            var orbwalker = Config.AddSubMenu(new Menu("Orbwalker", "autosharp.orbwalker"));

            new PluginLoader();

            Cache.Load();
            Game.OnUpdate += Positioning.OnUpdate;
            Autoplay.Load();
            Game.OnEnd += OnEnd;
            Obj_AI_Base.OnIssueOrder += AntiShrooms;
            Game.OnUpdate += AntiShrooms2;
            Spellbook.OnCastSpell += OnCastSpell;
            Obj_AI_Base.OnDamage += OnDamage;


            Orbwalker = new MyOrbwalker.Orbwalker(orbwalker);

            Utility.DelayAction.Add(
                new Random().Next(1000, 10000), () =>
                {
                    new LeagueSharp.Common.AutoLevel(Utils.AutoLevel.GetSequence().Select(num => num - 1).ToArray());
                    LeagueSharp.Common.AutoLevel.Enable();
                    Console.WriteLine("AutoLevel Init Success!");
                });
        }
Esempio n. 2
0
        public static void Init()
        {
            Map = Utility.Map.GetMap().Type; 
            Config = new Menu("AutoSharp: " + ObjectManager.Player.ChampionName, "autosharp." + ObjectManager.Player.ChampionName, true);
            Config.AddItem(new MenuItem("autosharp.mode", "Mode").SetValue(new StringList(new[] {"AUTO", "SBTW"}))).ValueChanged +=
                (sender, args) =>
                {
                    if (Config.Item("autosharp.mode").GetValue<StringList>().SelectedValue == "AUTO")
                    {
                        Autoplay.Load();
                    }
                    else
                    {
                        Autoplay.Unload();
                        Orbwalker.SetOrbwalkingPoint(Game.CursorPos);
                    }
                };
            Config.AddItem(new MenuItem("autosharp.humanizer", "Humanize Movement by ").SetValue(new Slider(new Random().Next(125, 350), 125, 350)));
            Config.AddItem(new MenuItem("autosharp.quit", "Quit after Game End").SetValue(true));
            Config.AddItem(new MenuItem("autosharp.shop", "AutoShop?").SetValue(true));
            var options = Config.AddSubMenu(new Menu("Options: ", "autosharp.options"));
            options.AddItem(new MenuItem("autosharp.options.healup", "Take Heals?").SetValue(true));
            options.AddItem(new MenuItem("onlyfarm", "Only Farm").SetValue(false));
            if (Map == Utility.Map.MapType.SummonersRift)
            {
                options.AddItem(new MenuItem("recallhp", "Recall if Health% <").SetValue(new Slider(30, 0, 100)));
            }
            var randomizer = Config.AddSubMenu(new Menu("Randomizer", "autosharp.randomizer"));
            var orbwalker = Config.AddSubMenu(new Menu("Orbwalker", "autosharp.orbwalker"));
            randomizer.AddItem(new MenuItem("autosharp.randomizer.minrand", "Min Rand By").SetValue(new Slider(0, 0, 90)));
            randomizer.AddItem(new MenuItem("autosharp.randomizer.maxrand", "Max Rand By").SetValue(new Slider(100, 100, 300)));
            randomizer.AddItem(new MenuItem("autosharp.randomizer.playdefensive", "Play Defensive?").SetValue(true));
            randomizer.AddItem(new MenuItem("autosharp.randomizer.auto", "Auto-Adjust? (ALPHA)").SetValue(true));

            new PluginLoader();

                Cache.Load(); 
                Game.OnUpdate += Positioning.OnUpdate;
                Autoplay.Load();
                Game.OnEnd += OnEnd;
                Obj_AI_Base.OnIssueOrder += AntiShrooms;
                Game.OnUpdate += AntiShrooms2;
                Spellbook.OnCastSpell += OnCastSpell;
                Obj_AI_Base.OnDamage += OnDamage;


            Orbwalker = new MyOrbwalker.Orbwalker(orbwalker);

            Utility.DelayAction.Add(
                    new Random().Next(1000, 10000), () =>
                    {
                        new LeagueSharp.Common.AutoLevel(Utils.AutoLevel.GetSequence().Select(num => num - 1).ToArray());
                        LeagueSharp.Common.AutoLevel.Enable();
                        Console.WriteLine("AutoLevel Init Success!");
                    });
        }
Esempio n. 3
0
 public Camp(float spawnTime,
             float respawnTime,
             Vector3 position,
             List <Mob> mobs,
             bool isBig,
             Utility.Map.MapType mapType,
             GameObjectTeam team)
 {
     SpawnTime       = spawnTime;
     RespawnTime     = respawnTime;
     Position        = position;
     MinimapPosition = Drawing.WorldToMinimap(Position);
     Mobs            = mobs;
     IsBig           = isBig;
     MapType         = mapType;
     Team            = team;
 }
Esempio n. 4
0
        private static void Game_OnGameStart(EventArgs args)
        {
            (_menu = new Menu("BaseUlt22", "BaseUlt2", true)).AddToMainMenu();
            _menu.AddItem(new MenuItem("showRecalls2", "Show Recalls").SetValue(true));
            _menu.AddItem(new MenuItem("baseUlt2", "Base Ult").SetValue(true));
            _menu.AddItem(new MenuItem("extraDelay2", "Extra Delay").SetValue(new Slider(0, -2000, 2000)));
            _menu.AddItem(new MenuItem("panicKey2", "Panic key (hold for disable)").SetValue(new KeyBind(32, KeyBindType.Press))); //32 == space
            _menu.AddItem(new MenuItem("regardlessKey2", "No timelimit (hold)").SetValue(new KeyBind(17, KeyBindType.Press)));     //17 == ctrl
            _menu.AddItem(new MenuItem("debugMode2", "Debug (developer only)").SetValue(false).DontSave());

            var teamUlt = _menu.AddSubMenu(new Menu("Team Baseult Friends", "TeamUlt"));

            List <Obj_AI_Hero> champions = ObjectManager.Get <Obj_AI_Hero>().ToList();

            _ownTeam   = champions.Where(x => x.IsAlly);
            _enemyTeam = champions.Where(x => x.IsEnemy);

            _compatibleChamp = Helper.IsCompatibleChamp(ObjectManager.Player.ChampionName);

            if (_compatibleChamp)
            {
                foreach (Obj_AI_Hero champ in _ownTeam.Where(x => !x.IsMe && Helper.IsCompatibleChamp(x.ChampionName)))
                {
                    teamUlt.AddItem(new MenuItem(champ.ChampionName, champ.ChampionName + " friend with Baseult?").SetValue(false).DontSave());
                }
            }

            _enemySpawnPos = ObjectManager.Get <GameObject>().First(x => x.Type == GameObjectType.obj_SpawnPoint && x.Team != ObjectManager.Player.Team).Position;

            Map = Utility.Map.GetMap()._MapType;

            _playerInfo = _enemyTeam.Select(x => new PlayerInfo(x)).ToList();
            _playerInfo.Add(new PlayerInfo(ObjectManager.Player));

            _ult = new Spell(SpellSlot.R, 20000f);

            Game.OnGameProcessPacket += Game_OnGameProcessPacket;
            Drawing.OnDraw           += Drawing_OnDraw;

            if (_compatibleChamp)
            {
                Game.OnGameUpdate += Game_OnGameUpdate;
            }

            Game.PrintChat("<font color=\"#1eff00\">BaseUlt2.2 -</font> <font color=\"#00BFFF\">Loaded (compatible champ: " + (_compatibleChamp ? "Yes" : "No") + ")</font>");
        }
Esempio n. 5
0
            /// <summary>
            /// Initializes a new instance of the <see cref="JungleCamp" /> class.
            /// </summary>
            /// <param name="respawnTime">The respawn time.</param>
            /// <param name="position">The position.</param>
            /// <param name="mobNames">The mob names.</param>
            /// <param name="mapType">Type of the map.</param>
            /// <param name="team">The team.</param>
            /// <param name="mobsAreChildren">if set to <c>true</c> the mob names need to be dead to respawn.</param>
            public JungleCamp(
                int respawnTime,
                Vector3 position,
                string[] mobNames,
                Utility.Map.MapType mapType,
                GameObjectTeam team, bool mobsAreChildren = true)
            {
                this.RespawnTime     = respawnTime;
                this.Position        = position;
                this.MobNames        = mobNames;
                this.MapType         = mapType;
                this.Team            = team;
                this.MobsAreChildren = mobsAreChildren;

                this.ObjectsDead  = new List <string>();
                this.ObjectsAlive = new List <string>();
            }
Esempio n. 6
0
        public BaseUlt()
        {
            (_menu = new Menu("BaseUlt2", "BaseUlt", true)).AddToMainMenu();
            _menu.AddItem(new MenuItem("showRecalls1", "Show Recalls").SetValue(true));
            _menu.AddItem(new MenuItem("baseUlt1", "Base Ult").SetValue(true));
            _menu.AddItem(new MenuItem("extraDelay1", "Extra Delay").SetValue(new Slider(0, -2000, 2000)));
            _menu.AddItem(new MenuItem("panicKey1", "Panic key (hold for disable)").SetValue(new KeyBind(32, KeyBindType.Press))); //32 == space
            _menu.AddItem(new MenuItem("regardlessKey1", "No timelimit (hold)").SetValue(new KeyBind(17, KeyBindType.Press)));     //17 == ctrl
            _menu.AddItem(new MenuItem("TextColorBU", "Text Color").SetValue(new Circle(true, Color.FromArgb(255, 255, 255, 0))));

            var teamUlt = _menu.AddSubMenu(new Menu("Team Baseult Friends", "TeamUlt"));

            var compatibleChamp = IsCompatibleChamp(ObjectManager.Player.ChampionName);

            if (compatibleChamp)
            {
                foreach (Obj_AI_Hero champ in Program.Helper.OwnTeam.Where(x => !x.IsMe && IsCompatibleChamp(x.ChampionName)))
                {
                    teamUlt.AddItem(new MenuItem(champ.ChampionName, champ.ChampionName + " friend with Baseult?").SetValue(false).DontSave());
                }
            }

            _enemySpawnPos = ObjectManager.Get <GameObject>().First(x => x.Type == GameObjectType.obj_SpawnPoint && x.Team != ObjectManager.Player.Team).Position;

            Map = Utility.Map.GetMap()._MapType;

            _ult = new Spell(SpellSlot.R, 20000f);

            foreach (EnemyInfo enemyInfo in Program.Helper.EnemyInfo)
            {
                enemyInfo.RecallInfo = new RecallInfo(enemyInfo);
            }

            Game.OnGameProcessPacket += Game_OnGameProcessPacket;
            Drawing.OnDraw           += Drawing_OnDraw;

            if (compatibleChamp)
            {
                Game.OnGameUpdate += Game_OnGameUpdate;
            }

            Game.PrintChat("<font color=\"#1eff00\">BaseUlt2 by Beaving - Edited by Detective Squirrel</font> - <font color=\"#00BFFF\">Loaded</font>");
        }
Esempio n. 7
0
        public BaseUlt()
        {
            _menu = Program.Menu.AddSubMenu(new Menu("BaseUlt", "BaseUlt"));
            _menu.AddItem(new MenuItem("showRecalls", "Show Recalls").SetValue(true));
            _menu.AddItem(new MenuItem("baseUlt", "Base Ult").SetValue(true));
            _menu.AddItem(new MenuItem("extraDelay", "Extra Delay").SetValue(new Slider(0, -2000, 2000)));
            _menu.AddItem(new MenuItem("panicKey", "Panic key (hold for disable)").SetValue(new KeyBind(32, KeyBindType.Press))); //32 == space
            _menu.AddItem(new MenuItem("regardlessKey", "No timelimit (hold)").SetValue(new KeyBind(17, KeyBindType.Press)));     //17 == ctrl

            var teamUlt = _menu.AddSubMenu(new Menu("Team Baseult Friends", "TeamUlt"));

            _compatibleChamp = IsCompatibleChamp(ObjectManager.Player.ChampionName);

            if (_compatibleChamp)
            {
                foreach (Obj_AI_Hero champ in Program.Helper.OwnTeam.Where(x => !x.IsMe && IsCompatibleChamp(x.ChampionName)))
                {
                    teamUlt.AddItem(new MenuItem(champ.ChampionName, champ.ChampionName + " friend with Baseult?").SetValue(false).DontSave());
                }
            }

            _enemySpawnPos = ObjectManager.Get <GameObject>().First(x => x.Type == GameObjectType.obj_SpawnPoint && x.Team != ObjectManager.Player.Team).Position;

            Map = Utility.Map.GetMap();

            _ult = new Spell(SpellSlot.R, 20000f);

            foreach (EnemyInfo enemyInfo in Program.Helper.EnemyInfo)
            {
                enemyInfo.RecallInfo = new RecallInfo(enemyInfo);
            }

            Game.OnGameProcessPacket += Game_OnGameProcessPacket;
            Drawing.OnDraw           += Drawing_OnDraw;

            if (_compatibleChamp)
            {
                Game.OnGameUpdate += Game_OnGameUpdate;
            }

            Chat.Print("BaseUlt Loaded!");
        }
Esempio n. 8
0
        public BaseUlt()
        {
            (_menu = new Menu("基地大招", "BaseUlt", true)).AddToMainMenu();
            _menu.AddItem(new MenuItem("showRecalls", "显示回城").SetValue(true));
            _menu.AddItem(new MenuItem("baseUlt", "基地大招").SetValue(true));
            _menu.AddItem(new MenuItem("extraDelay", "额外的延迟").SetValue(new Slider(0, -2000, 2000)));
            _menu.AddItem(new MenuItem("panicKey", "禁用大招按键").SetValue(new KeyBind(32, KeyBindType.Press)));        //32 == space
            _menu.AddItem(new MenuItem("regardlessKey", "任何时间(保持)").SetValue(new KeyBind(17, KeyBindType.Press))); //17 == ctrl

            var teamUlt = _menu.AddSubMenu(new Menu("Team Baseult Friends", "TeamUlt"));

            var compatibleChamp = IsCompatibleChamp(ObjectManager.Player.ChampionName);

            if (compatibleChamp)
            {
                foreach (Obj_AI_Hero champ in Program.Helper.OwnTeam.Where(x => !x.IsMe && IsCompatibleChamp(x.ChampionName)))
                {
                    teamUlt.AddItem(new MenuItem(champ.ChampionName, champ.ChampionName + " friend with Baseult?").SetValue(false).DontSave());
                }
            }

            _enemySpawnPos = ObjectManager.Get <GameObject>().First(x => x.Type == GameObjectType.obj_SpawnPoint && x.Team != ObjectManager.Player.Team).Position;

            Map = Utility.Map.GetMap()._MapType;

            _ult = new Spell(SpellSlot.R, 20000f);

            foreach (EnemyInfo enemyInfo in Program.Helper.EnemyInfo)
            {
                enemyInfo.RecallInfo = new RecallInfo(enemyInfo);
            }

            Game.OnGameProcessPacket += Game_OnGameProcessPacket;
            Drawing.OnDraw           += Drawing_OnDraw;

            if (compatibleChamp)
            {
                Game.OnGameUpdate += Game_OnGameUpdate;
            }

            Game.PrintChat("<font color=\"#1eff00\">BaseUlt2 by Doramio</font> - <font color=\"#00BFFF\">Loaded</font>");
        }
Esempio n. 9
0
        private static void Game_OnGameStart(EventArgs args)
        {
            (_menu = new Menu("BaseUlt2", "BaseUlt", true)).AddToMainMenu();
            _menu.AddItem(new MenuItem("showRecalls", "Show Recalls").SetValue(true));
            _menu.AddItem(new MenuItem("baseUlt", "Base Ult").SetValue(true));
            _menu.AddItem(new MenuItem("extraDelay", "Extra Delay").SetValue(new Slider(0, -2000, 2000)));
            _menu.AddItem(new MenuItem("panicKey", "Panic key (hold for disable)").SetValue(new KeyBind(32, KeyBindType.Press))); //32 == space
            _menu.AddItem(new MenuItem("regardlessKey", "No timelimit (hold)").SetValue(new KeyBind(17, KeyBindType.Press))); //17 == ctrl
            _menu.AddItem(new MenuItem("debugMode", "Debug (developer only)").SetValue(false).DontSave());

            var teamUlt = _menu.AddSubMenu(new Menu("Team Baseult Friends", "TeamUlt"));

            List<Obj_AI_Hero> champions = ObjectManager.Get<Obj_AI_Hero>().ToList();

            _ownTeam = champions.Where(x => x.IsAlly);
            _enemyTeam = champions.Where(x => x.IsEnemy);

            _compatibleChamp = Helper.IsCompatibleChamp(ObjectManager.Player.ChampionName);

            if(_compatibleChamp)
                foreach (Obj_AI_Hero champ in _ownTeam.Where(x => !x.IsMe && Helper.IsCompatibleChamp(x.ChampionName)))
                    teamUlt.AddItem(new MenuItem(champ.ChampionName, champ.ChampionName + " friend with Baseult?").SetValue(false).DontSave());

            _enemySpawnPos = ObjectManager.Get<GameObject>().First(x => x.Type == GameObjectType.obj_SpawnPoint && x.Team != ObjectManager.Player.Team).Position;

            Map = Utility.Map.GetMap();

            _playerInfo = _enemyTeam.Select(x => new PlayerInfo(x)).ToList();
            _playerInfo.Add(new PlayerInfo(ObjectManager.Player));

            _ult = new Spell(SpellSlot.R, 20000f);

            Game.OnGameProcessPacket += Game_OnGameProcessPacket;
            Drawing.OnDraw += Drawing_OnDraw;

            if (_compatibleChamp)
                Game.OnGameUpdate += Game_OnGameUpdate;

            Game.PrintChat("<font color=\"#1eff00\">BaseUlt2 -</font> <font color=\"#00BFFF\">Loaded (compatible champ: " + (_compatibleChamp ? "Yes" : "No") + ")</font>");
        }
Esempio n. 10
0
        public void Load()
        {
            this.Heroes  = ObjectManager.Get <Obj_AI_Hero>().ToList();
            this.Enemies = HeroManager.Enemies.ToList();

            this.EnemyInfo = this.Enemies.Select(x => new EnemyInfo(x)).ToList();
            this.Map       = Utility.Map.GetMap().Type;

            this.Text = new Font(
                Drawing.Direct3DDevice,
                new FontDescription
            {
                FaceName = "Calibri", Height = this.Menu.Item("RecallTracker.FontSize").GetValue <Slider>().Value,
                Width    = 6, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Default
            });

            Obj_AI_Base.OnTeleport += this.Obj_AI_Base_OnTeleport;
            Drawing.OnDraw         += this.Drawing_OnDraw;
            Drawing.OnPreReset     += args => { this.Text.OnLostDevice(); };
            Drawing.OnPostReset    += args => { this.Text.OnResetDevice(); };
            AppDomain.CurrentDomain.DomainUnload += this.CurrentDomainDomainUnload;
            AppDomain.CurrentDomain.ProcessExit  += this.CurrentDomainDomainUnload;
        }
Esempio n. 11
0
        public static void Init()
        {
            Map = Utility.Map.GetMap().Type;
            if (Map != Utility.Map.MapType.HowlingAbyss)
            {
                return;
            }
            Config = new Menu("AIM: " + ObjectManager.Player.ChampionName,
                              "autosharp." + ObjectManager.Player.ChampionName, true);
            Config.AddItem(new MenuItem("autosharp.quit", "Quit after Game End").SetValue(true));
            var options = Config.AddSubMenu(new Menu("Options: ", "autosharp.options"));

            options.AddItem(new MenuItem("autosharp.options.healup", "Take Heals?").SetValue(true));
            var orbwalker = Config.AddSubMenu(new Menu("Orbwalker", "autosharp.orbwalker"));

            new PluginLoader();

            Cache.Load();
            Game.OnUpdate += Positioning.OnUpdate;
            Autoplay.Load();
            Game.OnEnd += OnEnd;
            Obj_AI_Base.OnIssueOrder += AntiShrooms;
            Game.OnUpdate            += AntiShrooms2;
            Spellbook.OnCastSpell    += OnCastSpell;
            Obj_AI_Base.OnDamage     += OnDamage;


            Orbwalker = new MyOrbwalker.Orbwalker(orbwalker);

            Utility.DelayAction.Add(
                new Random().Next(1000, 10000), () =>
            {
                new LeagueSharp.Common.AutoLevel(Utils.AutoLevel.GetSequence().Select(num => num - 1).ToArray());
                LeagueSharp.Common.AutoLevel.Enable();
                Console.WriteLine("AutoLevel Init Success!");
            });
        }
Esempio n. 12
0
        public BaseUlt()
        {
            (_menu = new Menu("L#涓枃绀惧尯-鍥炵▼澶ф嫑", "BaseUlt", true)).AddToMainMenu();
            _menu.AddItem(new MenuItem("showRecalls", "鏄剧ず鍥炲煄").SetValue(true));
            _menu.AddItem(new MenuItem("baseUlt", "鍩哄湴澶ф嫑").SetValue(true));
            _menu.AddItem(new MenuItem("extraDelay", "棰濆鐨勫欢杩熴劎").SetValue(new Slider(0, -2000, 2000)));
            _menu.AddItem(new MenuItem("panicKey", "绂佺敤澶ф嫑鎸夐敭").SetValue(new KeyBind(32, KeyBindType.Press))); //32 == space
            _menu.AddItem(new MenuItem("regardlessKey", "浠讳綍鏃堕棿(淇濇寔)").SetValue(new KeyBind(17, KeyBindType.Press))); //17 == ctrl

            var teamUlt = _menu.AddSubMenu(new Menu("Team Baseult Friends", "TeamUlt"));

            var compatibleChamp = IsCompatibleChamp(ObjectManager.Player.ChampionName);

            if (compatibleChamp)
                foreach (Obj_AI_Hero champ in Program.Helper.OwnTeam.Where(x => !x.IsMe && IsCompatibleChamp(x.ChampionName)))
                    teamUlt.AddItem(new MenuItem(champ.ChampionName, champ.ChampionName + " friend with Baseult?").SetValue(false).DontSave());

            _enemySpawnPos = ObjectManager.Get<GameObject>().First(x => x.Type == GameObjectType.obj_SpawnPoint && x.Team != ObjectManager.Player.Team).Position;

            Map = Utility.Map.GetMap()._MapType;

            _ult = new Spell(SpellSlot.R, 20000f);

            foreach (EnemyInfo enemyInfo in Program.Helper.EnemyInfo)
            {
                enemyInfo.RecallInfo = new RecallInfo(enemyInfo);
            }

            Game.OnGameProcessPacket += Game_OnGameProcessPacket;
            Drawing.OnDraw += Drawing_OnDraw;

            if (compatibleChamp)
                Game.OnGameUpdate += Game_OnGameUpdate;

            Game.PrintChat("<font color=\"#1eff00\">BaseUlt2 by Beaving</font> - <font color=\"#00BFFF\">Loaded</font>");
        }
Esempio n. 13
0
 public JungleCamp(String name, GameObjectTeam team, int campId, int spawnTime, int respawnTime,
     Utility.Map.MapType mapType, Vector3 mapPosition, Vector3 minimapPosition, JungleMob[] creeps)
 {
     Name = name;
     Team = team;
     CampId = campId;
     SpawnTime = spawnTime;
     RespawnTime = respawnTime;
     MapType = mapType;
     MapPosition = mapPosition;
     MinimapPosition = minimapPosition;
     Creeps = creeps;
     NextRespawnTime = 0;
     Called = false;
 }
Esempio n. 14
0
            public Camp(string name,
                        float spawnTime,
                        int respawnTimer,
                        Vector3 position,
                        List <Mob> mobs,
                        Utility.Map.MapType mapType,
                        GameObjectTeam team,
                        Color colour,
                        Timers timer,
                        bool isRanged         = false,
                        int state             = 0,
                        int respawnTime       = 0,
                        int lastChangeOnState = 0,
                        bool shouldping       = true,
                        int lastPing          = 0)
            {
                Name              = name;
                SpawnTime         = spawnTime;
                RespawnTimer      = respawnTimer;
                Position          = position;
                MapPosition       = Drawing.WorldToScreen(Position);
                MinimapPosition   = Drawing.WorldToMinimap(Position);
                Mobs              = mobs;
                MapType           = mapType;
                Team              = team;
                Colour            = colour;
                IsRanged          = isRanged;
                State             = state;
                RespawnTime       = respawnTime;
                LastChangeOnState = lastChangeOnState;
                Timer             = timer;
                ShouldPing        = shouldping;
                LastPing          = lastPing;

                #region Load Text

                TextMinimap = new Render.Text(0, 0, "", Program._menu.Item("timerfontminimap").GetValue <Slider>().Value, Program.White)
                {
                    VisibleCondition =
                        sender =>
                        Program.Timeronminimap && RespawnTime > Environment.TickCount && State == 7,
                    PositionUpdate = delegate
                    {
                        Vector2 v2 = Timer.MinimapPosition;
                        return(v2);
                    },
                    TextUpdate = () => Timer.TextOnMinimap,
                    OutLined   = false,
                    Centered   = true
                };
                TextMinimap.Add();

                TextMap = new Render.Text(0, 0, "", Program._menu.Item("timerfontmap").GetValue <Slider>().Value, Program.White)
                {
                    VisibleCondition =
                        sender =>
                        Program.Timeronmap && RespawnTime > Environment.TickCount && State == 7 && Position.IsOnScreen(),
                    PositionUpdate = delegate
                    {
                        Vector2 v2 = Timer.Position;
                        return(v2);
                    },
                    TextUpdate = () => Timer.TextOnMap,
                    OutLined   = false,
                    Centered   = true
                };
                TextMap.Add();

                #endregion

                //Drawing.OnEndScene += Drawing_OnEndScene;
            }
Esempio n. 15
0
 public HealthObject(Obj_AI_Minion obj)
 {
     Obj = obj;
     if (obj != null && obj.IsValid)
     {
         Position = obj.Position;
     }
     else
     {
         Position = new Vector3();
     }
     SpawnTime = (int)Game.ClockTime;
     if (GMap.Type == Utility.Map.MapType.HowlingAbyss)
     {
         MapType     = Utility.Map.MapType.HowlingAbyss;
         RespawnTime = 60;
     }
     else if (GMap.Type == 0)
     {
         MapType     = 0;
         RespawnTime = 40;
     }
     else if (GMap.Type == Utility.Map.MapType.CrystalScar)
     {
         MapType     = Utility.Map.MapType.CrystalScar;
         RespawnTime = 32;
     }
     else if (GMap.Type == Utility.Map.MapType.TwistedTreeline)
     {
         MapType     = Utility.Map.MapType.TwistedTreeline;
         RespawnTime = 90;
     }
     NextRespawnTime = 0;
     Locked          = false;
     Called          = false;
     TextMinimap     = new Render.Text(0, 0, "", Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").GetValue <Slider>().Value, new ColorBGRA(Color4.White));
     Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").ValueChanged += HealthObject_ValueChanged;
     TextMinimap.TextUpdate = delegate
     {
         return((NextRespawnTime - (int)Game.ClockTime).ToString());
     };
     TextMinimap.PositionUpdate = delegate
     {
         Vector2 sPos = Drawing.WorldToMinimap(Position);
         return(new Vector2(sPos.X, sPos.Y));
     };
     TextMinimap.VisibleCondition = sender =>
     {
         return(IsActive() && (NextRespawnTime - (int)Game.ClockTime) > 0 && MapType == GMap.Type);
     };
     TextMinimap.OutLined = true;
     TextMinimap.Centered = true;
     TextMinimap.Add();
     TextMap            = new Render.Text(0, 0, "", (int)(Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").GetValue <Slider>().Value * 3.5), new ColorBGRA(Color4.White));
     TextMap.TextUpdate = delegate
     {
         return((NextRespawnTime - (int)Game.ClockTime).ToString());
     };
     TextMap.PositionUpdate = delegate
     {
         Vector2 sPos = Drawing.WorldToScreen(Position);
         return(new Vector2(sPos.X, sPos.Y));
     };
     TextMap.VisibleCondition = sender =>
     {
         return(IsActive() && (NextRespawnTime - (int)Game.ClockTime) > 0 && MapType == GMap.Type);
     };
     TextMap.OutLined = true;
     TextMap.Centered = true;
     TextMap.Add();
 }
Esempio n. 16
0
 private JungleMob GetJungleMobByName(string name, Utility.Map.MapType mapType)
 {
     return(JungleMobs.Find(jm => name.Contains(jm.Name) && jm.MapType == mapType));
 }
Esempio n. 17
0
        private void ActivatorsLoaded(object o)
        {
            try
            {
                if (o is Activators && (o as Activators).Menu != null)
                {
                    _activators = (o as Activators);

                    Menu = new Menu("鑷姩鎯╂垝", "Auto Smite");

                    var spellsMenu = new Menu("娉曟湳", Name + "Spells");
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsSmite", "浣跨敤鎯╂垝").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsNunu", "浣跨敤鍔姫Q").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsChogath", "浣跨敤铏氱┖鎭愭儳R").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsOlaf", "浣跨敤濂ユ媺澶珅E").SetValue(true));

                    var drawingMenu = new Menu("鑼冨洿绾垮湀", Name + "Drawing");
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingUseableColor", "鍙敤棰滆壊").SetValue(Color.Blue));
                    drawingMenu.AddItem(
                        new MenuItem(Name + "DrawingUnusableColor", "涓嶅彲鐢ㄩ鑹瞸").SetValue(Color.Gray));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingDamageColor", "鎹熷棰滆壊").SetValue(Color.SkyBlue));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingSmiteRange", "鎯╂垝鑼冨洿").SetValue(true));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingHeroSpellsRange", "鑻遍泟娉曟湳鑼冨洿").SetValue(true));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingDamageTillSmite", "鎯╂垝锛堝彲鏉€姝伙級").SetValue(true));

                    Menu.AddSubMenu(spellsMenu);
                    Menu.AddSubMenu(drawingMenu);

                    Menu.AddItem(new MenuItem(Name + "BigCamps", "澶у洿鍓縷").SetValue(true));
                    Menu.AddItem(new MenuItem(Name + "SmallCamps", "灏忓洿鍓縷").SetValue(false));
                    Menu.AddItem(new MenuItem(Name + "PacketCasting", "灏佸寘浣跨敤|").SetValue(false));
                    Menu.AddItem(
                        new MenuItem(Name + "Enabled", "鎵ц閿綅").SetValue(new KeyBind('N', KeyBindType.Toggle, true)));

                    _activators.Menu.AddSubMenu(Menu);

                    if (IsValidMap)
                    {
                        Utility.Map.MapType map = Utility.Map.GetMap()._MapType;

                        if (map == Utility.Map.MapType.SummonersRift)
                        {
                            _bigMinionNames   = new[] { "AncientGolem", "LizardElder", "Worm", "Dragon" };
                            _smallMinionNames = new[] { "GreatWraith", "Wraith", "GiantWolf", "Golem", "Wight" };
                        }
                        else if (map == Utility.Map.MapType.TwistedTreeline)
                        {
                            _bigMinionNames   = new[] { "TT_Spiderboss" };
                            _smallMinionNames = new[] { "TT_NWraith", "TT_NGolem", "TT_NWolf" };
                        }

                        _smite      = new Smite();
                        _heroSpells = new List <HeroSpell>
                        {
                            new HeroSpell("Nunu", SpellSlot.Q, 155),
                            new HeroSpell("Chogath", SpellSlot.R, 175),
                            new HeroSpell("Olaf", SpellSlot.E, 325)
                        };
                        _heroSpell = _heroSpells.FirstOrDefault(s => s.Available);

                        Game.OnGameUpdate += OnGameUpdate;
                        Drawing.OnDraw    += OnDraw;

                        Initialized = true;
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.WriteBlock(ex.Message, ex.ToString());
            }
        }
Esempio n. 18
0
        private void ActivatorsLoaded(object o)
        {
            try
            {
                if (o is Activators && (o as Activators).Menu != null)
                {
                    _activators = (o as Activators);

                    Menu = new Menu(Name, Name);

                    var spellsMenu = new Menu("法术", Name + "Spells");
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsSmite", "使用击打").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsNunu", "使用努努 Q").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsChogath", "使用大虫子 R").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsOlaf", "使用奥拉夫 E").SetValue(true));

                    var drawingMenu = new Menu("绘制", Name + "Drawing");
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingUseableColor", "可用颜色").SetValue(Color.Blue));
                    drawingMenu.AddItem(
                        new MenuItem(Name + "DrawingUnusableColor", "不可用的颜色").SetValue(Color.Gray));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingDamageColor", "损害颜色").SetValue(Color.SkyBlue));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingSmiteRange", "攻击范围").SetValue(true));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingHeroSpellsRange", "英雄法术范围").SetValue(true));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingDamageTillSmite", "直到伤害").SetValue(true));

                    Menu.AddSubMenu(spellsMenu);
                    Menu.AddSubMenu(drawingMenu);

                    Menu.AddItem(new MenuItem(Name + "BigCamps", "大Camps").SetValue(true));
                    Menu.AddItem(new MenuItem(Name + "SmallCamps", "小Camps").SetValue(false));
                    //                   Menu.AddItem(new MenuItem(Name + "PacketCasting", "封包").SetValue(false));
                    Menu.AddItem(
                        new MenuItem(Name + "Enabled", "启用").SetValue(new KeyBind('N', KeyBindType.Toggle, true)));

                    _activators.Menu.AddSubMenu(Menu);

                    if (IsValidMap)
                    {
                        Utility.Map.MapType map = Utility.Map.GetMap().Type;

                        if (map == Utility.Map.MapType.SummonersRift)
                        {
                            _bigMinionNames   = new[] { "SRU_Blue", "SRU_Red", "SRU_Baron", "SRU_Dragon" };
                            _smallMinionNames = new[] { "SRU_Razorbeak", "SRU_Krug", "SRU_Murkwolf", "SRU_Gromp", "SRU_Crab" };
                        }
                        else if (map == Utility.Map.MapType.TwistedTreeline)
                        {
                            _bigMinionNames   = new[] { "TT_Spiderboss" };
                            _smallMinionNames = new[] { "TT_NWraith", "TT_NGolem", "TT_NWolf" };
                        }

                        _smite      = new Smite();
                        _heroSpells = new List <HeroSpell>
                        {
                            new HeroSpell("Nunu", SpellSlot.Q, 155),
                            new HeroSpell("Chogath", SpellSlot.R, 175),
                            new HeroSpell("Olaf", SpellSlot.E, 325)
                        };
                        _heroSpell = _heroSpells.FirstOrDefault(s => s.Available);

                        Game.OnGameUpdate += OnGameUpdate;
                        Drawing.OnDraw    += OnDraw;

                        Initialized = true;
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.WriteBlock(ex.Message, ex.ToString());
            }
        }
Esempio n. 19
0
 public Altar(String name, Obj_AI_Minion obj)
 {
     Name = name;
     Obj = obj;
     SpawnTime = 185;
     RespawnTime = 90;
     Locked = false;
     NextRespawnTime = 0;
     MapType = Utility.Map.MapType.TwistedTreeline;
     Called = false;
 }
Esempio n. 20
0
        public static void Init(Menu ParentMenu)
        {
            MenuLocal = new Menu("Base Ulti", "BaseUlt3");
            MenuLocal.AddItem(new MenuItem("showRecalls", "Show Recalls").SetValue(true));
            MenuLocal.AddItem(new MenuItem("baseUlt", "Base Ult").SetValue(true));
            MenuLocal.AddItem(new MenuItem("checkCollision", "Check Collision").SetValue(true));
            MenuLocal.AddItem(new MenuItem("panicKey", "No Ult while SBTW").SetValue(new KeyBind(32, KeyBindType.Press)));
                // 32 == space
            MenuLocal.AddItem(
                new MenuItem("regardlessKey", "No timelimit (hold)").SetValue(new KeyBind(17, KeyBindType.Press)));
                // 17 == ctrl
            ParentMenu.AddSubMenu(MenuLocal);
            Heroes = ObjectManager.Get<Obj_AI_Hero>().ToList();
            Enemies = Heroes.Where(x => x.IsEnemy).ToList();
            Allies = Heroes.Where(x => x.IsAlly).ToList();

            EnemyInfo = Enemies.Select(x => new EnemyInfo(x)).ToList();

            bool compatibleChamp = IsCompatibleChamp(ObjectManager.Player.ChampionName);

            TeamUlt = MenuLocal.AddSubMenu(new Menu("Team Baseult Friends", "TeamUlt"));
            DisabledChampions = MenuLocal.AddSubMenu(new Menu("Disabled Champion targets", "DisabledChampions"));

            if (compatibleChamp)
            {
                foreach (Obj_AI_Hero champ in Allies.Where(x => !x.IsMe && IsCompatibleChamp(x.ChampionName)))
                    TeamUlt.AddItem(
                        new MenuItem(champ.ChampionName, "Ally with baseult: " + champ.ChampionName).SetValue(false)
                            .DontSave());

                foreach (Obj_AI_Hero champ in Enemies)
                    DisabledChampions.AddItem(
                        new MenuItem(champ.ChampionName, "Don't shoot: " + champ.ChampionName).SetValue(false)
                            .DontSave());
            }

            var NotificationsMenu = MenuLocal.AddSubMenu(new Menu("Notifications", "Notifications"));

            NotificationsMenu.AddItem(new MenuItem("notifRecFinished", "Recall finished").SetValue(true));
            NotificationsMenu.AddItem(new MenuItem("notifRecAborted", "Recall aborted").SetValue(true));

            var objSpawnPoint = ObjectManager.Get<Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy);
            if (objSpawnPoint != null)
            {
                EnemySpawnPos = objSpawnPoint.Position;
            }
            // ObjectManager.Get<GameObject>().FirstOrDefault(x => x.Type == GameObjectType.obj_SpawnPoint && x.IsEnemy).Position;

            Map = Utility.Map.GetMap().Type;

            Ultimate = new Spell(SpellSlot.R);

            Text = new Font(Drawing.Direct3DDevice,
                new FontDescription
                {
                    FaceName = "Calibri",
                    Height = 13,
                    Width = 6,
                    OutputPrecision = FontPrecision.Default,
                    Quality = FontQuality.Default
                });

            Obj_AI_Base.OnTeleport += Obj_AI_Base_OnTeleport;
            Drawing.OnPreReset += Drawing_OnPreReset;
            Drawing.OnPostReset += Drawing_OnPostReset;
            Drawing.OnDraw += Drawing_OnDraw;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomain_DomainUnload;
            AppDomain.CurrentDomain.ProcessExit += CurrentDomain_DomainUnload;

            if (compatibleChamp)
            {
                Game.OnUpdate += Game_OnUpdate;
            }
        }
Esempio n. 21
0
        public BaseUlt()
        {
            (Menu = new Menu("【初见汉化】基地大招3", "BaseUlt3", true)).AddToMainMenu();
            Menu.AddItem(new MenuItem("showRecalls", "显示回城").SetValue(true));
            Menu.AddItem(new MenuItem("baseUlt", "泉水大招").SetValue(true));
            Menu.AddItem(new MenuItem("checkCollision", "碰撞检测").SetValue(true));
            Menu.AddItem(new MenuItem("panicKey", "禁用大招按键").SetValue(new KeyBind(107, KeyBindType.Press)));         //32 == space
            Menu.AddItem(new MenuItem("regardlessKey", "任何时候 (保持)").SetValue(new KeyBind(109, KeyBindType.Press))); //17 == ctrl
            Menu.AddSubMenu(new Menu("初见汉化", "by chujian"));
            Menu.SubMenu("by chujian").AddItem(new MenuItem("qunhao", "汉化群:386289593"));
            Menu.SubMenu("by chujian").AddItem(new MenuItem("qunhao1", "交流群:333399"));
            Heroes  = ObjectManager.Get <Obj_AI_Hero>().ToList();
            Enemies = Heroes.Where(x => x.IsEnemy).ToList();
            Allies  = Heroes.Where(x => x.IsAlly).ToList();

            EnemyInfo = Enemies.Select(x => new EnemyInfo(x)).ToList();

            bool compatibleChamp = IsCompatibleChamp(ObjectManager.Player.ChampionName);

            TeamUlt           = Menu.AddSubMenu(new Menu("基地大招团队", "TeamUlt"));
            DisabledChampions = Menu.AddSubMenu(new Menu("可击杀目标", "DisabledChampions"));

            if (compatibleChamp)
            {
                foreach (Obj_AI_Hero champ in Allies.Where(x => !x.IsMe && IsCompatibleChamp(x.ChampionName)))
                {
                    TeamUlt.AddItem(new MenuItem(champ.ChampionName, "队友使用基地大招: " + champ.ChampionName).SetValue(false).DontSave());
                }

                foreach (Obj_AI_Hero champ in Enemies)
                {
                    DisabledChampions.AddItem(new MenuItem(champ.ChampionName, "不使用基地大招: " + champ.ChampionName).SetValue(false).DontSave());
                }
            }

            var NotificationsMenu = Menu.AddSubMenu(new Menu("通知", "Notifications"));

            NotificationsMenu.AddItem(new MenuItem("notifRecFinished", "回城完成").SetValue(true));
            NotificationsMenu.AddItem(new MenuItem("notifRecAborted", "回城终止").SetValue(true));

            EnemySpawnPos = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy).Position; //ObjectManager.Get<GameObject>().FirstOrDefault(x => x.Type == GameObjectType.obj_SpawnPoint && x.IsEnemy).Position;

            Map = Utility.Map.GetMap().Type;

            Ultimate = new Spell(SpellSlot.R);

            Text = new Font(Drawing.Direct3DDevice, new FontDescription {
                FaceName = "Calibri", Height = 13, Width = 6, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Default
            });

            Obj_AI_Base.OnTeleport += Obj_AI_Base_OnTeleport;
            Drawing.OnPreReset     += Drawing_OnPreReset;
            Drawing.OnPostReset    += Drawing_OnPostReset;
            Drawing.OnDraw         += Drawing_OnDraw;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomain_DomainUnload;
            AppDomain.CurrentDomain.ProcessExit  += CurrentDomain_DomainUnload;

            if (compatibleChamp)
            {
                Game.OnGameUpdate += Game_OnGameUpdate;
            }

            ShowNotification("BaseUlt3 by Beaving - Loaded", NotificationColor, 3000);
        }
Esempio n. 22
0
        public BaseUlt()
        {
            (Menu = new Menu("花边修复-基地大招3", "BaseUlt3", true)).AddToMainMenu();
            Menu.AddItem(new MenuItem("showRecalls", "显示回城状态").SetValue(true));
            Menu.AddItem(new MenuItem("baseUlt", "启用基地大招").SetValue(true));
            Menu.AddItem(new MenuItem("checkCollision", "检查碰撞").SetValue(true));
            Menu.AddItem(new MenuItem("panicKey", "按键放大").SetValue(new KeyBind(32, KeyBindType.Press))); //32 == space
            Menu.AddItem(new MenuItem("regardlessKey", "按住放大").SetValue(new KeyBind(17, KeyBindType.Press))); //17 == ctrl

            Heroes = ObjectManager.Get<Obj_AI_Hero>().ToList();
            Enemies = Heroes.Where(x => x.IsEnemy).ToList();
            Allies = Heroes.Where(x => x.IsAlly).ToList();

            EnemyInfo = Enemies.Select(x => new EnemyInfo(x)).ToList();

            bool compatibleChamp = IsCompatibleChamp(ObjectManager.Player.ChampionName);

            TeamUlt = Menu.AddSubMenu(new Menu("队伍设置", "TeamUlt"));
            DisabledChampions = Menu.AddSubMenu(new Menu("禁止基地大招目标", "DisabledChampions"));

            if (compatibleChamp)
            {
                foreach (Obj_AI_Hero champ in Allies.Where(x => !x.IsMe && IsCompatibleChamp(x.ChampionName)))
                    TeamUlt.AddItem(new MenuItem(champ.ChampionName, "友军: " + champ.ChampionName).SetValue(false).DontSave());

                foreach (Obj_AI_Hero champ in Enemies)
                    DisabledChampions.AddItem(new MenuItem(champ.ChampionName, "禁止大招: " + champ.ChampionName).SetValue(false).DontSave());
            }

            var NotificationsMenu = Menu.AddSubMenu(new Menu("通知设置", "Notifications"));

            NotificationsMenu.AddItem(new MenuItem("notifRecFinished", "回城结束").SetValue(true));
            NotificationsMenu.AddItem(new MenuItem("notifRecAborted", "回城打断").SetValue(true));

            EnemySpawnPos = ObjectManager.Get<Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy).Position; //ObjectManager.Get<GameObject>().FirstOrDefault(x => x.Type == GameObjectType.obj_SpawnPoint && x.IsEnemy).Position;

            Map = Utility.Map.GetMap().Type;

            Ultimate = new Spell(SpellSlot.R);

            Text = new Font(Drawing.Direct3DDevice, new FontDescription{FaceName = "Calibri", Height = 13, Width = 6, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Default});

            Obj_AI_Base.OnTeleport += Obj_AI_Base_OnTeleport;
            Drawing.OnPreReset += Drawing_OnPreReset;
            Drawing.OnPostReset += Drawing_OnPostReset;
            Drawing.OnDraw += Drawing_OnDraw;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomain_DomainUnload;
            AppDomain.CurrentDomain.ProcessExit += CurrentDomain_DomainUnload;

            if (compatibleChamp)
                Game.OnUpdate += Game_OnUpdate;

            ShowNotification("BaseUlt3 by Beaving - Loaded", NotificationColor, 3000);
            ShowNotification("Fix By NightMoon", NotificationColor, 3000);
        }
Esempio n. 23
0
        public BaseUlt()
        {
            (Menu = new Menu("BaseUlt3 VH", "BaseUlt3", true)).AddToMainMenu();
            Menu.AddItem(new MenuItem("showRecalls", "Hiển thị biến về").SetValue(true));
            Menu.AddItem(new MenuItem("baseUlt", "Ulti Bệ đá cổ").SetValue(true));
            Menu.AddItem(new MenuItem("checkCollision", "Kiểm tra vật chắn").SetValue(true));
            Menu.AddItem(new MenuItem("panicKey", "Không Ulti nhấn").SetValue(new KeyBind(32, KeyBindType.Press))); //32 == space
            Menu.AddItem(new MenuItem("regardlessKey", "Không giới hạn thời gian (giữ)").SetValue(new KeyBind(17, KeyBindType.Press))); //17 == ctrl

            Heroes = ObjectManager.Get<Obj_AI_Hero>().ToList();
            Enemies = Heroes.Where(x => x.IsEnemy).ToList();
            Allies = Heroes.Where(x => x.IsAlly).ToList();

            EnemyInfo = Enemies.Select(x => new EnemyInfo(x)).ToList();

            bool compatibleChamp = IsCompatibleChamp(ObjectManager.Player.ChampionName);

            TeamUlt = Menu.AddSubMenu(new Menu("Ulti Bệ đá cổ cùng bạn", "TeamUlt"));
            DisabledChampions = Menu.AddSubMenu(new Menu("Disabled Champion targets", "DisabledChampions"));

            if (compatibleChamp)
            {
                foreach (Obj_AI_Hero champ in Allies.Where(x => !x.IsMe && IsCompatibleChamp(x.ChampionName)))
                    TeamUlt.AddItem(new MenuItem(champ.ChampionName, "Đồng minh có Ulti: " + champ.ChampionName).SetValue(false).DontSave());

                foreach (Obj_AI_Hero champ in Enemies)
                    DisabledChampions.AddItem(new MenuItem(champ.ChampionName, "Không bắn: " + champ.ChampionName).SetValue(false).DontSave());
            }

            var NotificationsMenu = Menu.AddSubMenu(new Menu("Thông báo", "Notifications"));

            NotificationsMenu.AddItem(new MenuItem("notifRecFinished", "Biến về thành công").SetValue(true));
            NotificationsMenu.AddItem(new MenuItem("notifRecAborted", "Hủy bỏ biến về").SetValue(true));

            EnemySpawnPos = ObjectManager.Get<Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy).Position; //ObjectManager.Get<GameObject>().FirstOrDefault(x => x.Type == GameObjectType.obj_SpawnPoint && x.IsEnemy).Position;

            Map = Utility.Map.GetMap().Type;

            Ultimate = new Spell(SpellSlot.R);

            Text = new Font(Drawing.Direct3DDevice, new FontDescription{FaceName = "Calibri", Height = 13, Width = 6, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Default});

            Obj_AI_Base.OnTeleport += Obj_AI_Base_OnTeleport;
            Drawing.OnPreReset += Drawing_OnPreReset;
            Drawing.OnPostReset += Drawing_OnPostReset;
            Drawing.OnDraw += Drawing_OnDraw;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomain_DomainUnload;
            AppDomain.CurrentDomain.ProcessExit += CurrentDomain_DomainUnload;

            if (compatibleChamp)
                Game.OnUpdate += Game_OnUpdate;

            ShowNotification("BaseUlt3 Việt Hóa by MaddMonkeyy - Đã Load", NotificationColor, 3000);
        }
Esempio n. 24
0
        public static void Init(Menu ParentMenu)
        {
            try
            {
                MenuLocal = new Menu("Base Ulti", "SDK Base Ulit");
                MenuLocal.Add(new MenuBool("showRecalls", "Show Recalls", true));
                MenuLocal.Add(new MenuBool("baseUlt", "Use Base Ult", true));
                MenuLocal.Add(new MenuBool("checkCollision", "Check.Collision", true));
                MenuLocal.Add(new MenuKeyBind("panicKey", "Panic Key", System.Windows.Forms.Keys.Space, LeagueSharp.SDK.Enumerations.KeyBindType.Press));
                MenuLocal.Add(new MenuKeyBind("regardlessKey", "Regar Dless Key", System.Windows.Forms.Keys.CapsLock, LeagueSharp.SDK.Enumerations.KeyBindType.Toggle));
                ParentMenu.Add(MenuLocal);
                Heroes  = ObjectManager.Get <Obj_AI_Hero>().ToList();
                Enemies = Heroes.Where(x => x.IsEnemy).ToList();
                Allies  = Heroes.Where(x => x.IsAlly).ToList();

                EnemyInfo = Enemies.Select(x => new EnemyInfo(x)).ToList();

                bool compatibleChamp = IsCompatibleChamp(ObjectManager.Player.ChampionName);

                TeamUlt           = MenuLocal.Add(new Menu("Team Baseult Friends", "Team Baseult Friends"));
                DisabledChampions = MenuLocal.Add(new Menu("Disabled Champion targets", "Disabled Champion targets"));

                if (compatibleChamp)
                {
                    foreach (Obj_AI_Hero champ in Allies.Where(x => !x.IsMe && IsCompatibleChamp(x.ChampionName)))
                    {
                        TeamUlt.Add(new MenuBool(champ.ChampionName, "Ally with baseult: " + champ.ChampionName, false));
                    }

                    foreach (Obj_AI_Hero champ in Enemies)
                    {
                        DisabledChampions.Add(new MenuBool(champ.ChampionName, "NO Use: " + champ.ChampionName));
                    }
                }

                var NotificationsMenu = MenuLocal.Add(new Menu("Notifications", "Notification"));

                NotificationsMenu.Add(new MenuBool("notifRecFinished", "Notif RecFinished", true));
                NotificationsMenu.Add(new MenuBool("notifRecAborted", "Notif RecAborted", true));

                var objSpawnPoint = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy);
                if (objSpawnPoint != null)
                {
                    EnemySpawnPos = objSpawnPoint.Position;
                }

                Map = Utility.Map.GetMap().Type;

                Ultimate = new Spell(SpellSlot.R);

                Text = new Font(Drawing.Direct3DDevice,
                                new FontDescription
                {
                    FaceName        = "Calibri",
                    Height          = 13,
                    Width           = 6,
                    OutputPrecision = FontPrecision.Default,
                    Quality         = FontQuality.Default
                });

                Obj_AI_Base.OnTeleport += Obj_AI_Base_OnTeleport;
                Drawing.OnPreReset     += Drawing_OnPreReset;
                Drawing.OnPostReset    += Drawing_OnPostReset;
                Drawing.OnDraw         += Drawing_OnDraw;
                AppDomain.CurrentDomain.DomainUnload += CurrentDomain_DomainUnload;
                AppDomain.CurrentDomain.ProcessExit  += CurrentDomain_DomainUnload;

                if (compatibleChamp)
                {
                    Game.OnUpdate += Game_OnUpdate;
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error In BaseUlti" + ex);
            }
        }
Esempio n. 25
0
 public JungleMob(string name, Obj_AI_Minion obj, bool smite, bool buff, bool boss,
     Utility.Map.MapType mapType)
 {
     Name = name;
     Obj = obj;
     Smite = smite;
     Buff = buff;
     Boss = boss;
     MapType = mapType;
 }
Esempio n. 26
0
		private static void Game_OnGameStart(EventArgs args)
		{
			(_menu = new Menu("BaseUlt2", "BaseUlt", true)).AddToMainMenu();
			_menu.AddItem(new MenuItem("showRecalls", "Show Recalls").SetValue<bool>(true));
			_menu.AddItem(new MenuItem("baseUlt", "Base Ult").SetValue<bool>(true));
			_menu.AddItem(new MenuItem("extraDelay", "Extra Delay").SetValue<Slider>(new Slider(0, -2000, 2000)));
			_menu.AddItem(new MenuItem("panicKey", "Panic key (hold for disable)").SetValue<KeyBind>(new KeyBind(32u, KeyBindType.Press, false)));
			_menu.AddItem(new MenuItem("regardlessKey", "No timelimit (hold)").SetValue<KeyBind>(new KeyBind(17u, KeyBindType.Press, false)));
			_menu.AddItem(new MenuItem("debugMode", "Debug (developer only)").SetValue<bool>(false).DontSave());
			Menu menu = _menu.AddSubMenu(new Menu("Team Baseult Friends", "TeamUlt", false));
			List<Obj_AI_Hero> source = ObjectManager.Get<Obj_AI_Hero>().ToList<Obj_AI_Hero>();
			_ownTeam = 
				from x in source
				where x.IsAlly
				select x;
			_enemyTeam = 
				from x in source
				where x.IsEnemy
				select x;
			_compatibleChamp = Helper.IsCompatibleChamp(ObjectManager.Player.ChampionName);
			if (_compatibleChamp)
			{
				foreach (Obj_AI_Hero current in 
					from x in _ownTeam
					where !x.IsMe && Helper.IsCompatibleChamp(x.ChampionName)
					select x)
				{
					menu.AddItem(new MenuItem(current.ChampionName, current.ChampionName + " friend with Baseult?").SetValue<bool>(false).DontSave());
				}
			}
			_enemySpawnPos = ObjectManager.Get<GameObject>().First((GameObject x) => x.Type == GameObjectType.obj_SpawnPoint && x.Team != ObjectManager.Player.Team).Position;
			Map = Utility.Map.GetMap()._MapType;
			_playerInfo = (
				from x in _enemyTeam
				select new PlayerInfo(x)).ToList<PlayerInfo>();
			_playerInfo.Add(new PlayerInfo(ObjectManager.Player));
			_ult = new Spell(SpellSlot.R, 20000f);
			Game.OnGameProcessPacket += new GameProcessPacket(Game_OnGameProcessPacket);
			Drawing.OnDraw += new Draw(Drawing_OnDraw);
			if (_compatibleChamp)
			{
				Game.OnGameUpdate += new GameUpdate(Game_OnGameUpdate);
			}
			Game.PrintChat("<font color=\"#1eff00\">BaseUlt -</font> <font color=\"#00BFFF\">Loaded (compatible champ: " + (_compatibleChamp ? "Yes" : "No") + ")</font>");
		}
Esempio n. 27
0
 public Relic(string name, String objectName, GameObjectTeam team, Obj_AI_Minion obj, int spawnTime,
     int respawnTime, Vector3 mapPosition, Vector3 minimapPosition)
 {
     Name = name;
     ObjectName = objectName;
     Team = team;
     Obj = obj;
     SpawnTime = spawnTime;
     RespawnTime = respawnTime;
     Locked = false;
     MapPosition = mapPosition;
     MinimapPosition = minimapPosition;
     MapType = Utility.Map.MapType.CrystalScar;
     NextRespawnTime = 0;
     Called = false;
 }
Esempio n. 28
0
 public RelicObject(string name, String objectName, GameObjectTeam team, Obj_AI_Minion obj, int spawnTime,
     int respawnTime, Vector3 mapPosition, Vector3 minimapPosition)
 {
     Name = name;
     ObjectName = objectName;
     Team = team;
     Obj = obj;
     SpawnTime = spawnTime;
     RespawnTime = respawnTime;
     Locked = false;
     MapPosition = mapPosition;
     MinimapPosition = minimapPosition;
     MapType = Utility.Map.MapType.CrystalScar;
     NextRespawnTime = 0;
     Called = false;
     TextMinimap = new Render.Text(0, 0, "", Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").GetValue<Slider>().Value, new ColorBGRA(Color4.White));
     Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").ValueChanged += RelicObject_ValueChanged;
     TextMinimap.TextUpdate = delegate
     {
         return (NextRespawnTime - (int)Game.ClockTime).ToString();
     };
     TextMinimap.PositionUpdate = delegate
     {
         Vector2 sPos = Drawing.WorldToMinimap(MinimapPosition);
         return new Vector2(sPos.X, sPos.Y);
     };
     TextMinimap.VisibleCondition = sender =>
     {
         return IsActive() && NextRespawnTime > 0 && MapType == GMap.Type;
     };
     TextMinimap.OutLined = true;
     TextMinimap.Centered = true;
     TextMinimap.Add();
     TextMap = new Render.Text(0, 0, "", (int)(Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").GetValue<Slider>().Value * 3.5), new ColorBGRA(Color4.White));
     TextMap.TextUpdate = delegate
     {
         return (NextRespawnTime - (int)Game.ClockTime).ToString();
     };
     TextMap.PositionUpdate = delegate
     {
         Vector2 sPos = Drawing.WorldToScreen(MapPosition);
         return new Vector2(sPos.X, sPos.Y);
     };
     TextMap.VisibleCondition = sender =>
     {
         return IsActive() && NextRespawnTime > 0 && MapType == GMap.Type;
     };
     TextMap.OutLined = true;
     TextMap.Centered = true;
     TextMap.Add();
 }
Esempio n. 29
0
 public Health(Obj_AI_Minion obj)
 {
     Obj = obj;
     if (obj != null && obj.IsValid)
         Position = obj.Position;
     else
         Position = new Vector3();
     SpawnTime = (int) Game.ClockTime;
     RespawnTime = 40;
     NextRespawnTime = 0;
     Locked = false;
     MapId = Utility.Map.MapType.HowlingAbyss;
     Called = false;
 }
Esempio n. 30
0
 public JungleCamp(String name, GameObjectTeam team, int campId, int spawnTime, int respawnTime,
     Utility.Map.MapType mapType, Vector3 mapPosition, Vector3 minimapPosition, JungleMob[] creeps)
 {
     Name = name;
     Team = team;
     CampId = campId;
     SpawnTime = spawnTime;
     RespawnTime = respawnTime;
     MapType = mapType;
     MapPosition = mapPosition;
     MinimapPosition = minimapPosition;
     Creeps = creeps;
     NextRespawnTime = 0;
     Called = false;
     Dead = false;
     Visible = false;
     TextMinimap = new Render.Text(0, 0, "", Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").GetValue<Slider>().Value, new ColorBGRA(Color4.White));
     Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").ValueChanged += JungleCamp_ValueChanged;
     TextMinimap.TextUpdate = delegate
     {
         return (NextRespawnTime - (int)Game.ClockTime).ToString();
     };
     TextMinimap.PositionUpdate = delegate
     {
         Vector2 sPos = Drawing.WorldToMinimap(MinimapPosition);
         return new Vector2(sPos.X, sPos.Y);
     };
     TextMinimap.VisibleCondition = sender =>
     {
         return IsActive() && NextRespawnTime > 0 && MapType == GMap.Type;
     };
     TextMinimap.OutLined = true;
     TextMinimap.Centered = true;
     TextMinimap.Add();
     TextMap = new Render.Text(0, 0, "", (int)(Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").GetValue<Slider>().Value * 3.5), new ColorBGRA(Color4.White));
     TextMap.TextUpdate = delegate
     {
         return (NextRespawnTime - (int)Game.ClockTime).ToString();
     };
     TextMap.PositionUpdate = delegate
     {
         Vector2 sPos = Drawing.WorldToScreen(MapPosition);
         return new Vector2(sPos.X, sPos.Y);
     };
     TextMap.VisibleCondition = sender =>
     {
         return IsActive() && NextRespawnTime > 0 && MapType == GMap.Type;
     };
     TextMap.OutLined = true;
     TextMap.Centered = true;
     TextMap.Add();
 }
Esempio n. 31
0
 private JungleCamp GetJungleCampByID(int id, Utility.Map.MapType mapType)
 {
     return(JungleCamps.Find(jm => jm.CampId == id && jm.MapType == mapType));
 }
Esempio n. 32
0
 public HealthObject(Obj_AI_Minion obj)
 {
     Obj = obj;
     if (obj != null && obj.IsValid)
         Position = obj.Position;
     else
         Position = new Vector3();
     SpawnTime = (int)Game.ClockTime;
     RespawnTime = 40;
     NextRespawnTime = 0;
     Locked = false;
     MapType = Utility.Map.MapType.HowlingAbyss;
     Called = false;
     TextMinimap = new Render.Text(0, 0, "", Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").GetValue<Slider>().Value, new ColorBGRA(Color4.White));
     Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").ValueChanged += HealthObject_ValueChanged;
     TextMinimap.TextUpdate = delegate
     {
         return (NextRespawnTime - (int)Game.ClockTime).ToString();
     };
     TextMinimap.PositionUpdate = delegate
     {
         Vector2 sPos = Drawing.WorldToMinimap(Position);
         return new Vector2(sPos.X, sPos.Y);
     };
     TextMinimap.VisibleCondition = sender =>
     {
         return Timer.Timers.GetActive() && HealthTimer.GetActive() && NextRespawnTime > 0 && MapType == GMap.Type;
     };
     TextMinimap.OutLined = true;
     TextMinimap.Centered = true;
     TextMinimap.Add();
     TextMap = new Render.Text(0, 0, "", (int)(Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").GetValue<Slider>().Value * 3.5), new ColorBGRA(Color4.White));
     TextMap.TextUpdate = delegate
     {
         return (NextRespawnTime - (int)Game.ClockTime).ToString();
     };
     TextMap.PositionUpdate = delegate
     {
         Vector2 sPos = Drawing.WorldToScreen(Position);
         return new Vector2(sPos.X, sPos.Y);
     };
     TextMap.VisibleCondition = sender =>
     {
         return Timer.Timers.GetActive() && HealthTimer.GetActive() && NextRespawnTime > 0 && MapType == GMap.Type;
     };
     TextMap.OutLined = true;
     TextMap.Centered = true;
     TextMap.Add();
 }
Esempio n. 33
0
		public BaseUlt()
		{
			_menu = Program.Menu.AddSubMenu(new Menu("BaseUlt", "BaseUlt"));
			_menu.AddItem(new MenuItem("showRecalls", "Show Recalls").SetValue(true));
			_menu.AddItem(new MenuItem("baseUlt", "Base Ult").SetValue(true));
			_menu.AddItem(new MenuItem("extraDelay", "Extra Delay").SetValue(new Slider(0, -2000, 2000)));
			_menu.AddItem(new MenuItem("panicKey", "Panic key (hold for disable)").SetValue(new KeyBind(32, KeyBindType.Press))); //32 == space
			_menu.AddItem(new MenuItem("regardlessKey", "No timelimit (hold)").SetValue(new KeyBind(17, KeyBindType.Press))); //17 == ctrl

			var teamUlt = _menu.AddSubMenu(new Menu("Team Baseult Friends", "TeamUlt"));

			var compatibleChamp = IsCompatibleChamp(ObjectManager.Player.ChampionName);

			if(compatibleChamp)
				foreach(Obj_AI_Hero champ in Program.Helper.OwnTeam.Where(x => !x.IsMe && IsCompatibleChamp(x.ChampionName)))
					teamUlt.AddItem(new MenuItem(champ.ChampionName, champ.ChampionName + " friend with Baseult?").SetValue(false).DontSave());

			_enemySpawnPos = ObjectManager.Get<GameObject>().First(x => x.Type == GameObjectType.obj_SpawnPoint && x.Team != ObjectManager.Player.Team).Position;

			Map = Utility.Map.GetMap()._MapType;

			_ult = new Spell(SpellSlot.R, 20000f);

			foreach(EnemyInfo enemyInfo in Program.Helper.EnemyInfo)
			{
				enemyInfo.RecallInfo = new RecallInfo(enemyInfo);
			}

			Game.OnGameProcessPacket += Game_OnGameProcessPacket;
			Drawing.OnDraw += Drawing_OnDraw;

			if(compatibleChamp)
				Game.OnGameUpdate += Game_OnGameUpdate;

			Chat.Print("BaseUlt Loaded!");
		}
Esempio n. 34
0
 public OrbLocation(Vector3 pos, string bushname, Utility.Map.MapType maptype)
 {
     Position = pos;
     BushName = bushname;
     MapType  = maptype;
 }
Esempio n. 35
0
        public BaseUlt()
        {
            (Menu = new Menu("BaseUlt3", "BaseUlt3", true)).AddToMainMenu();
            Menu.AddItem(new MenuItem("showRecalls", "Show Recalls").SetValue(true));
            Menu.AddItem(new MenuItem("baseUlt", "Base Ult").SetValue(true));
            Menu.AddItem(new MenuItem("checkCollision", "Check Collision").SetValue(true));
            Menu.AddItem(new MenuItem("panicKey", "No Ult while SBTW").SetValue(new KeyBind(32, KeyBindType.Press)));        //32 == space
            Menu.AddItem(new MenuItem("regardlessKey", "No timelimit (hold)").SetValue(new KeyBind(17, KeyBindType.Press))); //17 == ctrl

            Heroes  = ObjectManager.Get <Obj_AI_Hero>().ToList();
            Enemies = Heroes.Where(x => x.IsEnemy).ToList();
            Allies  = Heroes.Where(x => x.IsAlly).ToList();

            EnemyInfo = Enemies.Select(x => new EnemyInfo(x)).ToList();

            bool compatibleChamp = IsCompatibleChamp(ObjectManager.Player.ChampionName);

            TeamUlt           = Menu.AddSubMenu(new Menu("Team Baseult Friends", "TeamUlt"));
            DisabledChampions = Menu.AddSubMenu(new Menu("Disabled Champion targets", "DisabledChampions"));

            if (compatibleChamp)
            {
                foreach (Obj_AI_Hero champ in Allies.Where(x => !x.IsMe && IsCompatibleChamp(x.ChampionName)))
                {
                    TeamUlt.AddItem(new MenuItem(champ.ChampionName, "Ally with baseult: " + champ.ChampionName).SetValue(false).DontSave());
                }

                foreach (Obj_AI_Hero champ in Enemies)
                {
                    DisabledChampions.AddItem(new MenuItem(champ.ChampionName, "Don't shoot: " + champ.ChampionName).SetValue(false).DontSave());
                }
            }

            var NotificationsMenu = Menu.AddSubMenu(new Menu("Notifications", "Notifications"));

            NotificationsMenu.AddItem(new MenuItem("notifRecFinished", "Recall finished").SetValue(true));
            NotificationsMenu.AddItem(new MenuItem("notifRecAborted", "Recall aborted").SetValue(true));

            EnemySpawnPos = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy).Position; //ObjectManager.Get<GameObject>().FirstOrDefault(x => x.Type == GameObjectType.obj_SpawnPoint && x.IsEnemy).Position;

            Map = Utility.Map.GetMap().Type;

            Ultimate = new Spell(SpellSlot.R);

            Text = new Font(Drawing.Direct3DDevice, new FontDescription {
                FaceName = "Calibri", Height = 13, Width = 6, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Default
            });

            Obj_AI_Base.OnTeleport += Obj_AI_Base_OnTeleport;
            Drawing.OnPreReset     += Drawing_OnPreReset;
            Drawing.OnPostReset    += Drawing_OnPostReset;
            Drawing.OnDraw         += Drawing_OnDraw;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomain_DomainUnload;
            AppDomain.CurrentDomain.ProcessExit  += CurrentDomain_DomainUnload;

            if (compatibleChamp)
            {
                Game.OnGameUpdate += Game_OnGameUpdate;
            }

            ShowNotification("BaseUlt3 by Beaving - Loaded", NotificationColor, 3000);
        }
Esempio n. 36
0
        private void OnLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args)
        {
            try
            {
                if (!Enabled)
                {
                    return;
                }

                if (!sender.IsValid || !sender.IsMe)
                {
                    return;
                }

                Utility.Map.MapType map = Utility.Map.GetMap()._MapType;
                var points = args.RemainingPoints;

                if ((map == Utility.Map.MapType.SummonersRift || map == Utility.Map.MapType.TwistedTreeline) &&
                    args.NewLevel <= 1)
                {
                    return;
                }

                if ((map == Utility.Map.MapType.CrystalScar || map == Utility.Map.MapType.HowlingAbyss) &&
                    args.NewLevel <= 3)
                {
                    return;
                }

                if (args.NewLevel == 6 || args.NewLevel == 11 || args.NewLevel == 16)
                {
                    ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.R);
                    points--;
                }

                if (Menu.Item(Name + "OnlyR").GetValue <bool>())
                {
                    return;
                }

                var      patternIndex = Menu.Item(Name + "PatternEarly").GetValue <StringList>().SelectedIndex;
                MenuInfo mf           = null;
                switch (args.NewLevel)
                {
                case 2:
                    switch (patternIndex)
                    {
                    case 0:
                    case 1:
                        mf = GetMenuInfoByPriority(2);
                        break;

                    case 2:
                    case 3:
                        mf = GetMenuInfoByPriority(1);
                        break;
                    }
                    break;

                case 3:
                    switch (patternIndex)
                    {
                    case 0:
                    case 2:
                        mf = GetMenuInfoByPriority(3);
                        break;

                    case 1:
                        mf = GetMenuInfoByPriority(1);
                        break;

                    case 3:
                        mf = GetMenuInfoByPriority(2);
                        break;
                    }
                    break;

                case 4:
                    switch (patternIndex)
                    {
                    case 0:
                        mf = GetMenuInfoByPriority(1);
                        break;
                    }
                    break;
                }
                if (mf != null && points > 0)
                {
                    ObjectManager.Player.Spellbook.LevelUpSpell(mf.Slot);
                    points--;
                }
                foreach (MenuInfo mi in GetOrderedList())
                {
                    if (points > 0)
                    {
                        ObjectManager.Player.Spellbook.LevelUpSpell(mi.Slot);
                        points--;
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.WriteBlock(ex.Message, ex.ToString());
            }
        }
Esempio n. 37
0
        public RecallTracker()
        {
            this.Heroes = ObjectManager.Get<Obj_AI_Hero>().ToList();
            this.enemies = this.Heroes.Where(x => x.IsEnemy).ToList();

            this.EnemyInfo = this.enemies.Select(x => new EnemyInfo(x)).ToList();
            this.Map = Utility.Map.GetMap().Type;

            this.Text = new Font(
                Drawing.Direct3DDevice,
                new FontDescription
                    {
                        FaceName = "Calibri", Height = 13, Width = 6, OutputPrecision = FontPrecision.Default,
                        Quality = FontQuality.Default
                    });

            Obj_AI_Base.OnTeleport += this.Obj_AI_Base_OnTeleport;
            Drawing.OnPreReset += this.Drawing_OnPreReset;
            Drawing.OnPostReset += this.Drawing_OnPostReset;
            Drawing.OnDraw += this.Drawing_OnDraw;
            AppDomain.CurrentDomain.DomainUnload += this.CurrentDomainDomainUnload;
            AppDomain.CurrentDomain.ProcessExit += this.CurrentDomainDomainUnload;
        }
Esempio n. 38
0
 public AltarObject(String name, Obj_AI_Minion obj)
 {
     Name = name;
     Obj = obj;
     SpawnTime = 185;
     RespawnTime = 90;
     Locked = false;
     NextRespawnTime = 0;
     MapType = Utility.Map.MapType.TwistedTreeline;
     Called = false;
     TextMinimap = new Render.Text(0, 0, "", Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").GetValue<Slider>().Value, new ColorBGRA(Color4.White));
     Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").ValueChanged += AltarObject_ValueChanged;
     TextMinimap.TextUpdate = delegate
     {
         return (NextRespawnTime - (int)Game.ClockTime).ToString();
     };
     TextMinimap.PositionUpdate = delegate
     {
         if (Obj.ServerPosition.Length().Equals(0.0f))
             return new Vector2(0, 0);
         Vector2 sPos = Drawing.WorldToMinimap(Obj.ServerPosition);
         return new Vector2(sPos.X, sPos.Y);
     };
     TextMinimap.VisibleCondition = sender =>
     {
         return IsActive() && NextRespawnTime > 0 && MapType == GMap.Type && TextMinimap.X != 0;
     };
     TextMinimap.OutLined = true;
     TextMinimap.Centered = true;
     TextMinimap.Add();
     TextMap = new Render.Text(0, 0, "", (int)(Timer.Timers.GetMenuItem("SAssembliesTimersTextScale").GetValue<Slider>().Value * 3.5), new ColorBGRA(Color4.White));
     TextMap.TextUpdate = delegate
     {
         return (NextRespawnTime - (int)Game.ClockTime).ToString();
     };
     TextMap.PositionUpdate = delegate
     {
         if (Obj.ServerPosition.Length().Equals(0.0f))
             return new Vector2(0, 0);
         Vector2 sPos = Drawing.WorldToScreen(Obj.ServerPosition);
         return new Vector2(sPos.X, sPos.Y);
     };
     TextMap.VisibleCondition = sender =>
     {
         return IsActive() && NextRespawnTime > 0 && MapType == GMap.Type && TextMinimap.X != 0;
     };
     TextMap.OutLined = true;
     TextMap.Centered = true;
     TextMap.Add();
 }