public static void BTTeleportStartEnemy() { DrawingMiniMap.Position_BT_Enemy.Add(BeAwarePlus.MiniMapPosition); DrawingMiniMap.Remover2(BeAwarePlus.MiniMapPosition); }
public static void Item() { DrawingMiniMap.Position_Item.Add(BeAwarePlus.MiniMapPosition); DrawingMiniMap.Remover2(BeAwarePlus.MiniMapPosition); }
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(); } }); } }