Beispiel #1
0
        private void Initialize()
        {
            if (Utility.Map.GetMap().Type == Utility.Map.MapType.SummonersRift)
            {
                // Blue: Blue Buff
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Blue", 300, new Vector3(3388.2f, 8400f, 55.2f),
                        new[] { "SRU_Blue1.1.1", "SRU_BlueMini1.1.2", "SRU_BlueMini21.1.3" }, 1));

                // Blue: Wolves
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Murkwolf", 100, new Vector3(3415.8f, 6950f, 55.6f),
                        new[] { "SRU_Murkwolf2.1.1", "SRU_MurkwolfMini2.1.2", "SRU_MurkwolfMini2.1.3" }, 2));

                // Blue: Chicken
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Razorbeak", 100, new Vector3(6500f, 5900f, 60f),
                        new[]
                {
                    "SRU_Razorbeak3.1.1", "SRU_RazorbeakMini3.1.2", "SRU_RazorbeakMini3.1.3", "SRU_RazorbeakMini3.1.4"
                }, 3));

                // Blue: Red Buff
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Red", 300, new Vector3(7300.4f, 4600.1f, 56.9f),
                        new[] { "SRU_Red4.1.1", "SRU_RedMini4.1.2", "SRU_RedMini4.1.3" }, 4));

                // Blue: Krug
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Krug", 100, new Vector3(7700.2f, 3200f, 54.3f),
                        new[] { "SRU_Krug5.1.2", "SRU_KrugMini5.1.1" }, 5));

                // Blue: Gromp
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Gromp", 100, new Vector3(1900.1f, 9200f, 54.9f), new[] { "SRU_Gromp13.1.1" }, 6));

                // Red: Blue Buff
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Blue", 300, new Vector3(10440f, 7500f, 54.9f),
                        new[] { "SRU_Blue7.1.1", "SRU_BlueMini7.1.2", "SRU_BlueMini27.1.3" }, 7));

                // Red: Wolves
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Murkwolf", 100, new Vector3(10350f, 9000f, 65.5f),
                        new[] { "SRU_Murkwolf8.1.1", "SRU_MurkwolfMini8.1.2", "SRU_MurkwolfMini8.1.3" }, 8));

                // Red: Chicken
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Razorbeak", 100, new Vector3(7100f, 10000f, 55.5f),
                        new[]
                {
                    "SRU_Razorbeak9.1.1", "SRU_RazorbeakMini9.1.2", "SRU_RazorbeakMini9.1.3", "SRU_RazorbeakMini9.1.4"
                }, 9));

                // Red: Red Buff
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Red", 300, new Vector3(6450.2f, 11400f, 54.6f),
                        new[] { "SRU_Red10.1.1", "SRU_RedMini10.1.2", "SRU_RedMini10.1.3" }, 10));

                // Red: Krug
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Krug", 100, new Vector3(6005f, 13000f, 39.6f),
                        new[] { "SRU_Krug11.1.2", "SRU_KrugMini11.1.1" }, 11));

                // Red: Gromp
                _jungleCamps.Add(
                    new JungleCamp("SRU_Gromp", 100, new Vector3(12000f, 7000f, 54.8f), new[] { "SRU_Gromp14.1.1" }, 12));

                // Neutral: Dragon
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Dragon", 360, new Vector3(9300.8f, 4200.5f, -60.3f), new[] { "SRU_Dragon6.1.1" }, 13));

                // Neutral: Baron
                _jungleCamps.Add(
                    new JungleCamp(
                        "SRU_Baron", 420, new Vector3(4300.1f, 11600.7f, -63.1f), new[] { "SRU_Baron12.1.1" }, 14));

                // Dragon: Crab
                _jungleCamps.Add(
                    new JungleCamp("Sru_Crab", 180, new Vector3(10600f, 5600.5f, -60.3f), new[] { "Sru_Crab15.1.1" }, 15));

                // Baron: Crab
                _jungleCamps.Add(
                    new JungleCamp("Sru_Crab", 180, new Vector3(4200.1f, 9900.7f, -63.1f), new[] { "Sru_Crab16.1.1" }, 16));
            }
            else if (Utility.Map.GetMap().Type == Utility.Map.MapType.TwistedTreeline)
            {
                // Blue: Wraiths
                _jungleCamps.Add(
                    new JungleCamp(
                        "TT_NWraith", 50, new Vector3(3550f, 6250f, 60f),
                        new[] { "TT_NWraith1.1.1", "TT_NWraith21.1.2", "TT_NWraith21.1.3" }, 1));

                // Blue: Golems
                _jungleCamps.Add(
                    new JungleCamp(
                        "TT_NGolem", 50, new Vector3(4500f, 8550f, 60f),
                        new[] { "TT_NGolem2.1.1", "TT_NGolem22.1.2" }, 2));

                // Blue: Wolves
                _jungleCamps.Add(
                    new JungleCamp(
                        "TT_NWolf", 50, new Vector3(5600f, 6400f, 60f),
                        new[] { "TT_NWolf3.1.1", "TT_NWolf23.1.2", "TT_NWolf23.1.3" }, 3));

                // Red: Wraiths
                _jungleCamps.Add(
                    new JungleCamp(
                        "TT_NWraith", 50, new Vector3(10300f, 6250f, 60f),
                        new[] { "TT_NWraith4.1.1", "TT_NWraith24.1.2", "TT_NWraith24.1.3" }, 4));

                // Red: Golems
                _jungleCamps.Add(
                    new JungleCamp(
                        "TT_NGolem", 50, new Vector3(9800f, 8550f, 60f),
                        new[] { "TT_NGolem5.1.1", "TT_NGolem25.1.2" }, 5));

                // Red: Wolves
                _jungleCamps.Add(
                    new JungleCamp(
                        "TT_NWolf", 50, new Vector3(8600f, 6400f, 60f),
                        new[] { "TT_NWolf6.1.1", "TT_NWolf26.1.2", "TT_NWolf26.1.3" }, 6));

                // Neutral: Vilemaw
                _jungleCamps.Add(
                    new JungleCamp(
                        "TT_Spiderboss", 300, new Vector3(7150f, 11100f, 60f),
                        new[] { "TT_Spiderboss8.1.1" }, 7));
            }
            if (_jungleCamps.Count > 0)
            {
                foreach (var camp in _jungleCamps)
                {
                    DrawText pos = new DrawText(camp);
                    _DrawText.Add(pos);
                }
                Game.OnGameUpdate  += OnGameUpdate;
                Drawing.OnEndScene += Drawing_OnEndScene;
            }
            else
            {
                Game.PrintChat("Jungle Timer only supports SummonersRift and TwistedTreeline maps.");
            }
        }
Beispiel #2
0
        private void TimersLoaded(object o)
        {
            try
            {
                if (o is Timers && (o as Timers).Menu != null)
                {
                    _timers = (o as Timers);

                    Menu = new Menu(Name, Name);

                    Menu.AddItem(new MenuItem(Name + "Format", "Format Time mm:ss").SetValue(false));

                    Menu.AddItem(new MenuItem(Name + "Enabled", "Enabled").SetValue(true));

                    _timers.Menu.AddSubMenu(Menu);

                    if (Utility.Map.GetMap().Type == Utility.Map.MapType.SummonersRift)
                    {
                        // Blue: Blue Buff
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Blue", 300, new Vector3(3388.2f, 8400f, 55.2f),
                                new[] { "SRU_Blue1.1.1", "SRU_BlueMini1.1.2", "SRU_BlueMini21.1.3" }, 1));

                        // Blue: Wolves
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Murkwolf", 100, new Vector3(3415.8f, 6950f, 55.6f),
                                new[] { "SRU_Murkwolf2.1.1", "SRU_MurkwolfMini2.1.2", "SRU_MurkwolfMini2.1.3" }, 2));

                        // Blue: Chicken
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Razorbeak", 100, new Vector3(6500f, 5900f, 60f),
                                new[]
                        {
                            "SRU_Razorbeak3.1.1", "SRU_RazorbeakMini3.1.2", "SRU_RazorbeakMini3.1.3", "SRU_RazorbeakMini3.1.4"
                        }, 3));

                        // Blue: Red Buff
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Red", 300, new Vector3(7300.4f, 4600.1f, 56.9f),
                                new[] { "SRU_Red4.1.1", "SRU_RedMini4.1.2", "SRU_RedMini4.1.3" }, 4));

                        // Blue: Krug
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Krug", 100, new Vector3(7700.2f, 3200f, 54.3f),
                                new[] { "SRU_Krug5.1.2", "SRU_KrugMini5.1.1" }, 5));

                        // Blue: Gromp
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Gromp", 100, new Vector3(1900.1f, 9200f, 54.9f), new[] { "SRU_Gromp13.1.1" }, 6));

                        // Red: Blue Buff
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Blue", 300, new Vector3(10440f, 7500f, 54.9f),
                                new[] { "SRU_Blue7.1.1", "SRU_BlueMini7.1.2", "SRU_BlueMini27.1.3" }, 7));

                        // Red: Wolves
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Murkwolf", 100, new Vector3(10350f, 9000f, 65.5f),
                                new[] { "SRU_Murkwolf8.1.1", "SRU_MurkwolfMini8.1.2", "SRU_MurkwolfMini8.1.3" }, 8));

                        // Red: Chicken
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Razorbeak", 100, new Vector3(7100f, 10000f, 55.5f),
                                new[]
                        {
                            "SRU_Razorbeak9.1.1", "SRU_RazorbeakMini9.1.2", "SRU_RazorbeakMini9.1.3", "SRU_RazorbeakMini9.1.4"
                        }, 9));

                        // Red: Red Buff
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Red", 300, new Vector3(6450.2f, 11400f, 54.6f),
                                new[] { "SRU_Red10.1.1", "SRU_RedMini10.1.2", "SRU_RedMini10.1.3" }, 10));

                        // Red: Krug
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Krug", 100, new Vector3(6005f, 13000f, 39.6f),
                                new[] { "SRU_Krug11.1.2", "SRU_KrugMini11.1.1" }, 11));

                        // Red: Gromp
                        _jungleCamps.Add(
                            new JungleCamp("SRU_Gromp", 100, new Vector3(12000f, 7000f, 54.8f), new[] { "SRU_Gromp14.1.1" }, 12));

                        // Neutral: Dragon
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Dragon", 360, new Vector3(9300.8f, 4200.5f, -60.3f), new[] { "SRU_Dragon6.1.1" }, 13));

                        // Neutral: Baron
                        _jungleCamps.Add(
                            new JungleCamp(
                                "SRU_Baron", 420, new Vector3(4300.1f, 11600.7f, -63.1f), new[] { "SRU_Baron12.1.1" }, 14));

                        // Dragon: Crab
                        _jungleCamps.Add(
                            new JungleCamp("Sru_Crab", 180, new Vector3(10600f, 5600.5f, -60.3f), new[] { "Sru_Crab15.1.1" }, 15));

                        // Baron: Crab
                        _jungleCamps.Add(
                            new JungleCamp("Sru_Crab", 180, new Vector3(4200.1f, 9900.7f, -63.1f), new[] { "Sru_Crab16.1.1" }, 16));
                    }
                    if (Utility.Map.GetMap().Type == Utility.Map.MapType.TwistedTreeline)
                    {
                        // Blue: Wraiths
                        _jungleCamps.Add(
                            new JungleCamp(
                                "TT_NWraith", 50, new Vector3(3550f, 6250f, 60f),
                                new[] { "TT_NWraith1.1.1", "TT_NWraith21.1.2", "TT_NWraith21.1.3" }, 1));

                        // Blue: Golems
                        _jungleCamps.Add(
                            new JungleCamp(
                                "TT_NGolem", 50, new Vector3(4500f, 8550f, 60f),
                                new[] { "TT_NGolem2.1.1", "TT_NGolem22.1.2" }, 2));

                        // Blue: Wolves
                        _jungleCamps.Add(
                            new JungleCamp(
                                "TT_NWolf", 50, new Vector3(5600f, 6400f, 60f),
                                new[] { "TT_NWolf3.1.1", "TT_NWolf23.1.2", "TT_NWolf23.1.3" }, 3));

                        // Red: Wraiths
                        _jungleCamps.Add(
                            new JungleCamp(
                                "TT_NWraith", 50, new Vector3(10300f, 6250f, 60f),
                                new[] { "TT_NWraith4.1.1", "TT_NWraith24.1.2", "TT_NWraith24.1.3" }, 4));

                        // Red: Golems
                        _jungleCamps.Add(
                            new JungleCamp(
                                "TT_NGolem", 50, new Vector3(9800f, 8550f, 60f),
                                new[] { "TT_NGolem5.1.1", "TT_NGolem25.1.2" }, 5));

                        // Red: Wolves
                        _jungleCamps.Add(
                            new JungleCamp(
                                "TT_NWolf", 50, new Vector3(8600f, 6400f, 60f),
                                new[] { "TT_NWolf6.1.1", "TT_NWolf26.1.2", "TT_NWolf26.1.3" }, 6));

                        // Neutral: Vilemaw
                        _jungleCamps.Add(
                            new JungleCamp(
                                "TT_Spiderboss", 300, new Vector3(7150f, 11100f, 60f),
                                new[] { "TT_Spiderboss8.1.1" }, 7));
                    }
                    if (_jungleCamps.Count > 0)
                    {
                        foreach (var camp in _jungleCamps)
                        {
                            DrawText pos = new DrawText(camp);
                            _DrawText.Add(pos);
                        }
                        Game.OnGameUpdate  += OnGameUpdate;
                        Drawing.OnEndScene += Drawing_OnEndScene;
                    }
                    else
                    {
                        Game.PrintChat("Jungle Timer only supports SummonersRift and TwistedTreeline maps.");
                    }
                    Initialized = true;
                }
            }
            catch (Exception ex)
            {
                Logger.WriteBlock(ex.Message, ex.ToString());
            }
        }