コード例 #1
0
        private static void EventsOnOnLoad(object sender, EventArgs eventArgs)
        {
            MenuManager.Init();
            HeroChecker.Init();
            DrawingMiniMap.Init();
            Others.Init();
            Resolution.Init();
            TeleportVision.Init();

            Roshan_Dead             = false;
            Roshan_Respawn_Min_Time = 480;
            Roshan_Respawn_Max_Time = 660;
            A_Timer           = new Timer(1000);
            A_Timer.Elapsed  += OnTimedEvent;
            A_Timer.AutoReset = true;
            A_Timer.Enabled   = true;

            me = ObjectManager.LocalHero;
            Entity.OnParticleEffectAdded += OnParticleEvent;
            Unit.OnModifierAdded         += HeroOnOnModifierAdded;
            Events.OnLoad    -= EventsOnOnLoad;
            Game.OnFireEvent += Game_OnGameEvent;
        }
コード例 #2
0
 public static void Item()
 {
     DrawingMiniMap.Position_Item.Add(BeAwarePlus.MiniMapPosition);
     DrawingMiniMap.Remover2(BeAwarePlus.MiniMapPosition);
 }
コード例 #3
0
 public static void BTTeleportStartEnemy()
 {
     DrawingMiniMap.Position_BT_Enemy.Add(BeAwarePlus.MiniMapPosition);
     DrawingMiniMap.Remover2(BeAwarePlus.MiniMapPosition);
 }
コード例 #4
0
        public static void Hero()
        {
            try
            {
                if (ObjectManager.GetPlayerById(0).Hero.Name == BeAwarePlus.HeroColor)
                {
                    DrawingMiniMap.Position_0.Add(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.HeroColor_0 = (Color) new Vector3(0.2f, 0.4588236f, 1);
                }

                if (ObjectManager.GetPlayerById(1).Hero.Name == BeAwarePlus.HeroColor)
                {
                    DrawingMiniMap.Position_1.Add(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.HeroColor_1 = (Color) new Vector3(0.4f, 1, 0.7490196f);
                }

                if (ObjectManager.GetPlayerById(2).Hero.Name == BeAwarePlus.HeroColor)
                {
                    DrawingMiniMap.Position_2.Add(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.HeroColor_2 = (Color) new Vector3(0.7490196f, 0, 0.7490196f);
                }

                if (ObjectManager.GetPlayerById(3).Hero.Name == BeAwarePlus.HeroColor)
                {
                    DrawingMiniMap.Position_3.Add(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.HeroColor_3 = (Color) new Vector3(0.9529412f, 0.9411765f, 0.04313726f);
                }

                if (ObjectManager.GetPlayerById(4).Hero.Name == BeAwarePlus.HeroColor)
                {
                    DrawingMiniMap.Position_4.Add(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.HeroColor_4 = (Color) new Vector3(1, 0.4196079f, 0);
                }

                if (ObjectManager.GetPlayerById(5).Hero.Name == BeAwarePlus.HeroColor)
                {
                    DrawingMiniMap.Position_5.Add(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.HeroColor_5 = (Color) new Vector3(0.9960785f, 0.5254902f, 0.7607844f);
                }

                if (ObjectManager.GetPlayerById(6).Hero.Name == BeAwarePlus.HeroColor)
                {
                    DrawingMiniMap.Position_6.Add(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.HeroColor_6 = (Color) new Vector3(0.6313726f, 0.7058824f, 0.2784314f);
                }

                if (ObjectManager.GetPlayerById(7).Hero.Name == BeAwarePlus.HeroColor)
                {
                    DrawingMiniMap.Position_7.Add(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.HeroColor_7 = (Color) new Vector3(0.3960785f, 0.8509805f, 0.9686275f);
                }

                if (ObjectManager.GetPlayerById(8).Hero.Name == BeAwarePlus.HeroColor)
                {
                    DrawingMiniMap.Position_8.Add(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.HeroColor_8 = (Color) new Vector3(0, 0.5137255f, 0.1294118f);
                }

                if (ObjectManager.GetPlayerById(9).Hero.Name == BeAwarePlus.HeroColor)
                {
                    DrawingMiniMap.Position_9.Add(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                    DrawingMiniMap.HeroColor_9 = (Color) new Vector3(0.6431373f, 0.4117647f, 0);
                }
            }
            catch
            {
                return;
            }
        }
コード例 #5
0
        public static void OnParticleEvent(Entity hero, ParticleEffectAddedEventArgs args)
        {
            //Smoke of Deceit
            if (args.Name.Contains("smoke_of_deceit") && Utils.SleepCheck("smoke_of_deceit") && MenuManager.Menu.Item("smoke_of_deceit").GetValue <bool>())
            {
                DelayAction.Add(50, () =>
                {
                    var anyAllyWithSmokeEffect =
                        Heroes.GetByTeam(me.Team).Any(x => x.HasModifier("modifier_smoke_of_deceit"));
                    if (!anyAllyWithSmokeEffect)
                    {
                        if (MenuManager.Menu.Item("smoke_of_deceit_msg").GetValue <bool>())
                        {
                            MessageCreator.MessageItemCreator("default2", "smoke_of_deceit");
                        }
                        if (MenuManager.Menu.Item("smoke_of_deceit_sound").GetValue <bool>())
                        {
                            Sound.PlaySound("item_smoke_of_deceit_" + Addition[GetLangId] + ".wav");
                        }
                        if (MenuManager.Menu.Item("smoke_of_deceit_minimap").GetValue <bool>())
                        {
                            MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                            Helper.Item();
                        }
                        Utils.Sleep(5000, "smoke_of_deceit");
                    }
                });
            }

            //Ancient Apparition Ice Blast
            if (args.Name.Contains("ancient_apparition_ice_blast_final") && HeroChecker.Ancient_Apparition_IsHere && MenuManager.Menu.Item("ancient_apparition_ice_blast").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("ancient_apparition_ice_blast_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("ancient_apparition", "ancient_apparition_ice_blast");
                }
                if (MenuManager.Menu.Item("ancient_apparition_ice_blast_sound").GetValue <bool>())
                {
                    Sound.PlaySound("ancient_apparition_ice_blast_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("ancient_apparition_ice_blast_minimap").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_ancient_apparation";
                        Helper.Hero();
                    }
                });
            }

            //Mirana Moonlight Shadow
            if (args.Name.Contains("mirana_moonlight_cast") && args.ParticleEffect.Owner.Team != me.Team && MenuManager.Menu.Item("mirana_invis").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("mirana_invis_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("mirana", "mirana_invis");
                }
                if (MenuManager.Menu.Item("mirana_invis_sound").GetValue <bool>())
                {
                    Sound.PlaySound("moonlight_shadow_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("mirana_invis_minimap_mirana").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_mirana";
                        Helper.Hero();
                    }
                });
            }

            //Mirana Moonlight Shadow All Mini Map Heroes
            if (args.Name.Contains("mirana_moonlight_recipient") && args.ParticleEffect.Owner.Team != me.Team && MenuManager.Menu.Item("mirana_invis").GetValue <bool>())
            {
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("mirana_invis_minimap_all_heroes").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_mirana";
                        Helper.Hero();
                    }
                });
            }

            //Sandking Epicenter
            if (args.Name.Contains("sandking_epicenter") && args.ParticleEffect.Owner.Team != me.Team && MenuManager.Menu.Item("sandking_epicenter").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("sandking_epicenter_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("sand_king", "sandking_epicenter");
                }
                if (MenuManager.Menu.Item("sandking_epicenter_sound").GetValue <bool>())
                {
                    Sound.PlaySound("default_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("sandking_epicenter_minimap").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_sand_king";
                        Helper.Hero();
                    }
                });
            }

            //Nature's Prophet Teleportation Start
            if (args.Name.Contains("furion_teleport") && args.ParticleEffect.Owner.Team != me.Team && MenuManager.Menu.Item("furion_teleportation").GetValue <bool>())
            {
                FurionFix = true;
                if (MenuManager.Menu.Item("furion_teleportation_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("furion", "furion_teleportation");
                }
                if (MenuManager.Menu.Item("furion_teleportation_sound").GetValue <bool>())
                {
                    Sound.PlaySound("furion_teleportation_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("furion_teleportation_minimap_start").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = ("npc_dota_hero_furion");
                        Helper.Hero();
                        FurionFix = false;
                    }
                });
            }

            //Nature's Prophet Teleportation End
            if (args.Name.Contains("furion_teleport_end") && HeroChecker.Furion_IsHere && MenuManager.Menu.Item("furion_teleportation").GetValue <bool>())
            {
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("furion_teleportation_minimap_end").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(1));
                        HeroColor       = "npc_dota_hero_furion";
                        DrawingMiniMap.NamePositionSpell.Add(MiniMapPosition);
                        DrawingMiniMap.HeroNameSpell      = ("Nature's Prophet");
                        DrawingMiniMap.HeroNamePosSpell   = (int)(("Nature's Prophet").Length * 3.84f);
                        DrawingMiniMap.HeroNameColorSpell = Color.Red;
                        DrawingMiniMap.Remover2(MiniMapPosition);
                        Helper.Hero();
                    }
                });
            }

            //Nature's Prophet Wrath of Nature
            if (args.Name.Contains("furion_wrath_of_nature") && args.ParticleEffect.Owner.Team != me.Team && MenuManager.Menu.Item("furion_wrath_of_nature").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("furion_wrath_of_nature_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("furion", "furion_wrath_of_nature");
                }
                if (MenuManager.Menu.Item("furion_wrath_of_nature_sound").GetValue <bool>())
                {
                    Sound.PlaySound("furion_wrath_of_nature_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("furion_wrath_of_nature_minimap").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_furion";
                        Helper.Hero();
                    }
                });
            }

            //Alchemist Unstable Concoction
            if (args.Name.Contains("alchemist_unstableconc") && args.ParticleEffect.Owner.Team != me.Team && MenuManager.Menu.Item("alchemist_unstable_concoction").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("alchemist_unstable_concoction_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("alchemist", "alchemist_unstable_concoction");
                }
                if (MenuManager.Menu.Item("alchemist_unstable_concoction_sound").GetValue <bool>())
                {
                    Sound.PlaySound("unstable_concoction_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("alchemist_unstable_concoction_minimap").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_alchemist";
                        Helper.Hero();
                    }
                });
            }

            //Bounty Hunter Shadow Walk
            if (args.Name.Contains("bounty_hunter_windwalk") && HeroChecker.Bounty_Hunter_IsHere && MenuManager.Menu.Item("bounty_hunter_wind_walk").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("bounty_hunter_wind_walk_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("bounty_hunter", "bounty_hunter_wind_walk");
                }
                if (MenuManager.Menu.Item("bounty_hunter_wind_walk_sound").GetValue <bool>())
                {
                    Sound.PlaySound("bounty_hunter_wind_walk_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("bounty_hunter_wind_walk_minimap").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_bounty_hunter";
                        Helper.Hero();
                    }
                });
            }

            //Clinkz Skeleton Walk
            if (args.Name.Contains("clinkz_windwalk") && HeroChecker.Clinkz_IsHere && MenuManager.Menu.Item("clinkz_wind_walk").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("clinkz_wind_walk_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("clinkz", "clinkz_wind_walk");
                }
                if (MenuManager.Menu.Item("clinkz_wind_walk_sound").GetValue <bool>())
                {
                    Sound.PlaySound("clinkz_wind_walk_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("clinkz_wind_walk_minimap").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_clinkz";
                        Helper.Hero();
                    }
                });
            }

            //Nyx Assassin Vendetta
            if (args.Name.Contains("nyx_assassin_vendetta_start") && HeroChecker.Nyx_Assassin_IsHere && MenuManager.Menu.Item("nyx_assassin_vendetta").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("nyx_assassin_vendetta_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("nyx_assassin", "nyx_assassin_vendetta");
                }
                if (MenuManager.Menu.Item("nyx_assassin_vendetta_sound").GetValue <bool>())
                {
                    Sound.PlaySound("nyx_assassin_vendetta_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("nyx_assassin_vendetta_minimap").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_nyx_assassin";
                        Helper.Hero();
                    }
                });
            }

            //Wisp Relocate Start
            if (args.Name.Contains("wisp_relocate_channel") && args.ParticleEffect.Owner.Team != me.Team && MenuManager.Menu.Item("wisp_relocate").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("wisp_relocate_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("wisp", "wisp_relocate");
                }
                if (MenuManager.Menu.Item("wisp_relocate_sound").GetValue <bool>())
                {
                    Sound.PlaySound("wisp_relocate_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("wisp_relocate_minimap_start").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_wisp";
                        Helper.Hero();
                    }
                });
            }

            //Wisp Relocate End
            if (args.Name.Contains("wisp_relocate_marker_endpoint") && HeroChecker.Wisp_IsHere && MenuManager.Menu.Item("wisp_relocate").GetValue <bool>())
            {
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("wisp_relocate_minimap_end").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_wisp";
                        Helper.Hero();
                    }
                });
            }

            //Morphling Replicate
            if (args.Name.Contains("morphling_replicate") && HeroChecker.Morphling_IsHere && MenuManager.Menu.Item("morphling_replicate").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("morphling_replicate_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("morphling", "morphling_replicate");
                }
                if (MenuManager.Menu.Item("morphling_replicate_sound").GetValue <bool>())
                {
                    Sound.PlaySound("morphling_replicate_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("morphling_replicate_minimap").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_wisp";
                        Helper.Hero();
                    }
                });
            }

            //Troll Warlord Battle Trance
            if (args.Name.Contains("troll_warlord_battletrance_cast") && args.ParticleEffect.Owner.Team != me.Team && MenuManager.Menu.Item("troll_warlord_battle_trance").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("troll_warlord_battle_trance_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("troll_warlord", "troll_warlord_battle_trance");
                }
                if (MenuManager.Menu.Item("troll_warlord_battle_trance_sound").GetValue <bool>())
                {
                    Sound.PlaySound("troll_warlord_battle_trance_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("troll_warlord_battle_trance_minimap").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_troll_warlord";
                        Helper.Hero();
                    }
                });
            }

            //Ursa Enrage
            if (args.Name.Contains("ursa_enrage_buff") && args.ParticleEffect.Owner.Team != me.Team && MenuManager.Menu.Item("ursa_enrage").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("ursa_enrage_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("ursa", "ursa_enrage");
                }
                if (MenuManager.Menu.Item("ursa_enrage_sound").GetValue <bool>())
                {
                    Sound.PlaySound("ursa_enrage_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("ursa_enrage_minimap").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_ursa";
                        Helper.Hero();
                    }
                });
            }

            //Spirit Breaker Charge Start
            if (args.Name.Contains("spirit_breaker_charge_start") && args.ParticleEffect.Owner.Team != me.Team && MenuManager.Menu.Item("spirit_breaker_charge_of_darkness").GetValue <bool>())
            {
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("spirit_breaker_charge_of_darkness_minimap_start").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(0));
                        HeroColor       = "npc_dota_hero_spirit_breaker";
                        Helper.Hero();
                    }
                });
            }

            //Monkey King Tree Dance
            if (args.Name.Contains("monkey_king_jump_trail") && args.ParticleEffect.Owner.Team != me.Team && MenuManager.Menu.Item("monkey_king_tree_dance").GetValue <bool>())
            {
                if (MenuManager.Menu.Item("monkey_king_tree_dance_msg").GetValue <bool>())
                {
                    MessageCreator.MessageEnemyCreator("monkey_king", "monkey_king_tree_dance");
                }
                if (MenuManager.Menu.Item("monkey_king_tree_dance_sound").GetValue <bool>())
                {
                    Sound.PlaySound("default_" + Addition[GetLangId] + ".wav");
                }
                DelayAction.Add(50, () =>
                {
                    if (MenuManager.Menu.Item("monkey_king_tree_dance_minimap").GetValue <bool>())
                    {
                        MiniMapPosition = HUDInfo.WorldToMinimap(args.ParticleEffect.GetControlPoint(1));
                        HeroColor       = "npc_dota_hero_monkey_king";
                        Helper.Hero();
                    }
                });
            }
        }
コード例 #6
0
 public static void TPTeleportStart()
 {
     try
     {
         if (0 == BeAwarePlus.HeroID)
         {
             DrawingMiniMap.Position_0.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_0 = (Color) new Vector3(0.2f, 0.4588236f, 1);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
         }
         if (1 == BeAwarePlus.HeroID)
         {
             DrawingMiniMap.Position_1.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_1 = (Color) new Vector3(0.4f, 1, 0.7490196f);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
         }
         if (2 == BeAwarePlus.HeroID)
         {
             DrawingMiniMap.Position_2.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_2 = (Color) new Vector3(0.7490196f, 0, 0.7490196f);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
         }
         if (3 == BeAwarePlus.HeroID)
         {
             DrawingMiniMap.Position_3.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_3 = (Color) new Vector3(0.9529412f, 0.9411765f, 0.04313726f);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
         }
         if (4 == BeAwarePlus.HeroID)
         {
             DrawingMiniMap.Position_4.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_4 = (Color) new Vector3(1, 0.4196079f, 0);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
         }
         if (5 == BeAwarePlus.HeroID)
         {
             DrawingMiniMap.Position_5.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_5 = (Color) new Vector3(0.9960785f, 0.5254902f, 0.7607844f);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
         }
         if (6 == BeAwarePlus.HeroID)
         {
             DrawingMiniMap.Position_6.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_6 = (Color) new Vector3(0.6313726f, 0.7058824f, 0.2784314f);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
         }
         if (7 == BeAwarePlus.HeroID)
         {
             DrawingMiniMap.Position_7.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_7 = (Color) new Vector3(0.3960785f, 0.8509805f, 0.9686275f);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
         }
         if (8 == BeAwarePlus.HeroID)
         {
             DrawingMiniMap.Position_8.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_8 = (Color) new Vector3(0, 0.5137255f, 0.1294118f);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
         }
         if (9 == BeAwarePlus.HeroID)
         {
             DrawingMiniMap.Position_9.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_9 = (Color) new Vector3(0.6431373f, 0.4117647f, 0);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
         }
     }
     catch
     {
         return;
     }
 }
コード例 #7
0
        public static void TPTeleportEnd()
        {
            try
            {
                if (0 == BeAwarePlus.HeroID)
                {
                    DrawingMiniMap.Position_0.Add(BeAwarePlus.MiniMapPosition);
                    if (MenuManager.Menu.Item("tpscroll_teleport_hero_name").GetValue <bool>())
                    {
                        DrawingMiniMap.NamePosition_0.Add(BeAwarePlus.MiniMapPosition);
                    }
                    DrawingMiniMap.HeroName_0      = (BeAwarePlus.RealName);
                    DrawingMiniMap.HeroNamePos_0   = (int)(BeAwarePlus.HeroNameLength * 3.84f);
                    DrawingMiniMap.HeroNameColor_0 = (Color) new Vector3(0.2f, 0.4588236f, 1);
                    DrawingMiniMap.HeroColor_0     = (Color) new Vector3(0.2f, 0.4588236f, 1);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                }
                if (1 == BeAwarePlus.HeroID)
                {
                    DrawingMiniMap.Position_1.Add(BeAwarePlus.MiniMapPosition);
                    if (MenuManager.Menu.Item("tpscroll_teleport_hero_name").GetValue <bool>())
                    {
                        DrawingMiniMap.NamePosition_1.Add(BeAwarePlus.MiniMapPosition);
                    }
                    DrawingMiniMap.HeroName_1      = (BeAwarePlus.RealName);
                    DrawingMiniMap.HeroNamePos_1   = (int)(BeAwarePlus.HeroNameLength * 3.84f);
                    DrawingMiniMap.HeroNameColor_1 = (Color) new Vector3(0.4f, 1, 0.7490196f);
                    DrawingMiniMap.HeroColor_1     = (Color) new Vector3(0.4f, 1, 0.7490196f);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                }
                if (2 == BeAwarePlus.HeroID)
                {
                    DrawingMiniMap.Position_2.Add(BeAwarePlus.MiniMapPosition);
                    if (MenuManager.Menu.Item("tpscroll_teleport_hero_name").GetValue <bool>())
                    {
                        DrawingMiniMap.NamePosition_2.Add(BeAwarePlus.MiniMapPosition);
                    }
                    DrawingMiniMap.HeroName_2      = (BeAwarePlus.RealName);
                    DrawingMiniMap.HeroNamePos_2   = (int)(BeAwarePlus.HeroNameLength * 3.84f);
                    DrawingMiniMap.HeroNameColor_2 = (Color) new Vector3(0.7490196f, 0, 0.7490196f);
                    DrawingMiniMap.HeroColor_2     = (Color) new Vector3(0.7490196f, 0, 0.7490196f);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                }
                if (3 == BeAwarePlus.HeroID)
                {
                    DrawingMiniMap.Position_3.Add(BeAwarePlus.MiniMapPosition);
                    if (MenuManager.Menu.Item("tpscroll_teleport_hero_name").GetValue <bool>())
                    {
                        DrawingMiniMap.NamePosition_3.Add(BeAwarePlus.MiniMapPosition);
                    }
                    DrawingMiniMap.HeroName_3      = (BeAwarePlus.RealName);
                    DrawingMiniMap.HeroNamePos_3   = (int)(BeAwarePlus.HeroNameLength * 3.84f);
                    DrawingMiniMap.HeroNameColor_3 = (Color) new Vector3(0.9529412f, 0.9411765f, 0.04313726f);
                    DrawingMiniMap.HeroColor_3     = (Color) new Vector3(0.9529412f, 0.9411765f, 0.04313726f);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                }
                if (4 == BeAwarePlus.HeroID)
                {
                    DrawingMiniMap.Position_4.Add(BeAwarePlus.MiniMapPosition);
                    if (MenuManager.Menu.Item("tpscroll_teleport_hero_name").GetValue <bool>())
                    {
                        DrawingMiniMap.NamePosition_4.Add(BeAwarePlus.MiniMapPosition);
                    }
                    DrawingMiniMap.HeroName_4      = (BeAwarePlus.RealName);
                    DrawingMiniMap.HeroNamePos_4   = (int)(BeAwarePlus.HeroNameLength * 3.84f);
                    DrawingMiniMap.HeroNameColor_4 = (Color) new Vector3(1, 0.4196079f, 0);
                    DrawingMiniMap.HeroColor_4     = (Color) new Vector3(1, 0.4196079f, 0);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                }
                if (5 == BeAwarePlus.HeroID)
                {
                    DrawingMiniMap.Position_5.Add(BeAwarePlus.MiniMapPosition);
                    if (MenuManager.Menu.Item("tpscroll_teleport_hero_name").GetValue <bool>())
                    {
                        DrawingMiniMap.NamePosition_5.Add(BeAwarePlus.MiniMapPosition);
                    }
                    DrawingMiniMap.HeroName_5      = (BeAwarePlus.RealName);
                    DrawingMiniMap.HeroNamePos_5   = (int)(BeAwarePlus.HeroNameLength * 3.84f);
                    DrawingMiniMap.HeroNameColor_5 = (Color) new Vector3(0.9960785f, 0.5254902f, 0.7607844f);
                    DrawingMiniMap.HeroColor_5     = (Color) new Vector3(0.9960785f, 0.5254902f, 0.7607844f);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                }
                if (6 == BeAwarePlus.HeroID)
                {
                    DrawingMiniMap.Position_6.Add(BeAwarePlus.MiniMapPosition);
                    if (MenuManager.Menu.Item("tpscroll_teleport_hero_name").GetValue <bool>())
                    {
                        DrawingMiniMap.NamePosition_6.Add(BeAwarePlus.MiniMapPosition);
                    }
                    DrawingMiniMap.HeroName_6      = (BeAwarePlus.RealName);
                    DrawingMiniMap.HeroNamePos_6   = (int)(BeAwarePlus.HeroNameLength * 3.84f);
                    DrawingMiniMap.HeroNameColor_6 = (Color) new Vector3(0.6313726f, 0.7058824f, 0.2784314f);
                    DrawingMiniMap.HeroColor_6     = (Color) new Vector3(0.6313726f, 0.7058824f, 0.2784314f);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                }
                if (7 == BeAwarePlus.HeroID)
                {
                    DrawingMiniMap.Position_7.Add(BeAwarePlus.MiniMapPosition);
                    if (MenuManager.Menu.Item("tpscroll_teleport_hero_name").GetValue <bool>())
                    {
                        DrawingMiniMap.NamePosition_7.Add(BeAwarePlus.MiniMapPosition);
                    }
                    DrawingMiniMap.HeroName_7      = (BeAwarePlus.RealName);
                    DrawingMiniMap.HeroNamePos_7   = (int)(BeAwarePlus.HeroNameLength * 3.84f);
                    DrawingMiniMap.HeroNameColor_7 = (Color) new Vector3(0.3960785f, 0.8509805f, 0.9686275f);
                    DrawingMiniMap.HeroColor_7     = (Color) new Vector3(0.3960785f, 0.8509805f, 0.9686275f);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                }
                if (8 == BeAwarePlus.HeroID)
                {
                    DrawingMiniMap.Position_8.Add(BeAwarePlus.MiniMapPosition);
                    if (MenuManager.Menu.Item("tpscroll_teleport_hero_name").GetValue <bool>())
                    {
                        DrawingMiniMap.NamePosition_8.Add(BeAwarePlus.MiniMapPosition);
                    }
                    DrawingMiniMap.HeroName_8      = (BeAwarePlus.RealName);
                    DrawingMiniMap.HeroNamePos_8   = (int)(BeAwarePlus.HeroNameLength * 3.84f);
                    DrawingMiniMap.HeroNameColor_8 = (Color) new Vector3(0, 0.5137255f, 0.1294118f);
                    DrawingMiniMap.HeroColor_8     = (Color) new Vector3(0, 0.5137255f, 0.1294118f);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                }

                if (9 == BeAwarePlus.HeroID)
                {
                    DrawingMiniMap.Position_9.Add(BeAwarePlus.MiniMapPosition);
                    if (MenuManager.Menu.Item("tpscroll_teleport_hero_name").GetValue <bool>())
                    {
                        DrawingMiniMap.NamePosition_9.Add(BeAwarePlus.MiniMapPosition);
                    }
                    DrawingMiniMap.HeroName_9      = (BeAwarePlus.RealName);
                    DrawingMiniMap.HeroNamePos_9   = (int)(BeAwarePlus.HeroNameLength * 3.84f);
                    DrawingMiniMap.HeroNameColor_9 = (Color) new Vector3(0.6431373f, 0.4117647f, 0);
                    DrawingMiniMap.HeroColor_9     = (Color) new Vector3(0.6431373f, 0.4117647f, 0);
                    DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
                }
            }
            catch
            {
                return;
            }
        }
コード例 #8
0
 public static void Hero()
 {
     try
     {
         var HeroCheckColor_0 = ObjectManager.GetPlayerById(0);
         var HeroName_0       = (HeroCheckColor_0.Hero.Name);
         if (HeroName_0 == Color)
         {
             DrawingMiniMap.Position_0.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_0 = (Color) new Vector3(0.2f, 0.4588236f, 1);
         }
         var HeroCheckColor_1 = ObjectManager.GetPlayerById(1);
         var HeroName_1       = (HeroCheckColor_1.Hero.Name);
         if (HeroName_1 == Color)
         {
             DrawingMiniMap.Position_1.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_1 = (Color) new Vector3(0.4f, 1, 0.7490196f);
         }
         var HeroCheckColor_2 = ObjectManager.GetPlayerById(2);
         var HeroName_2       = (HeroCheckColor_2.Hero.Name);
         if (HeroName_2 == Color)
         {
             DrawingMiniMap.Position_2.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_2 = (Color) new Vector3(0.7490196f, 0, 0.7490196f);
         }
         var HeroCheckColor_3 = ObjectManager.GetPlayerById(3);
         var HeroName_3       = (HeroCheckColor_3.Hero.Name);
         if (HeroName_3 == Color)
         {
             DrawingMiniMap.Position_3.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_3 = (Color) new Vector3(0.9529412f, 0.9411765f, 0.04313726f);
         }
         var HeroCheckColor_4 = ObjectManager.GetPlayerById(4);
         var HeroName_4       = (HeroCheckColor_4.Hero.Name);
         if (HeroName_4 == Color)
         {
             DrawingMiniMap.Position_4.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_4 = (Color) new Vector3(1, 0.4196079f, 0);
         }
         var HeroCheckColor_5 = ObjectManager.GetPlayerById(5);
         var HeroName_5       = (HeroCheckColor_5.Hero.Name);
         if (HeroName_5 == Color)
         {
             DrawingMiniMap.Position_5.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_5 = (Color) new Vector3(0.9960785f, 0.5254902f, 0.7607844f);
         }
         var HeroCheckColor_6 = ObjectManager.GetPlayerById(6);
         var HeroName_6       = (HeroCheckColor_6.Hero.Name);
         if (HeroName_6 == Color)
         {
             DrawingMiniMap.Position_6.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_6 = (Color) new Vector3(0.6313726f, 0.7058824f, 0.2784314f);
         }
         var HeroCheckColor_7 = ObjectManager.GetPlayerById(7);
         var HeroName_7       = (HeroCheckColor_7.Hero.Name);
         if (HeroName_7 == Color)
         {
             DrawingMiniMap.Position_7.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_7 = (Color) new Vector3(0.3960785f, 0.8509805f, 0.9686275f);
         }
         var HeroCheckColor_8 = ObjectManager.GetPlayerById(8);
         var HeroName_8       = (HeroCheckColor_8.Hero.Name);
         if (HeroName_8 == Color)
         {
             DrawingMiniMap.Position_8.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_8 = (Color) new Vector3(0, 0.5137255f, 0.1294118f);
         }
         var HeroCheckColor_9 = ObjectManager.GetPlayerById(9);
         var HeroName_9       = (HeroCheckColor_9.Hero.Name);
         if (HeroName_9 == Color)
         {
             DrawingMiniMap.Position_9.Add(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.Remover(BeAwarePlus.MiniMapPosition);
             DrawingMiniMap.HeroColor_9 = (Color) new Vector3(0.6431373f, 0.4117647f, 0);
         }
     }
     catch
     {
         return;
     }
 }