public EntityCollectionViewModelBase() { Limit = LocalSettings.DefaultRecordLimit; OpenViewModels = new List <EntityViewModelBase <TModel> >(); BatchCreateItemsCommand = new CaptionCommand <TModel>(string.Format(Resources.BatchCreate_f, PluralModelTitle), OnBatchCreateItems, CanBatchCreateItems); SortItemsCommand = new CaptionCommand <TModel>(string.Format(Resources.Sort_f, PluralModelTitle), OnSortItems); RemoveLimitCommand = new CaptionCommand <TModel>(Resources.RemoveLimit, OnRemoveLimit); ToggleOrderByIdCommand = new CaptionCommand <TModel>(Resources.ChangeSortOrder, OnToggleOrderById); if (typeof(TViewModel).GetInterfaces().Any(x => x == typeof(IEntityCreator <TModel>))) { CustomCommands.Add(BatchCreateItemsCommand); } CustomCommands.Add(typeof(TModel).GetInterfaces().Any(x => x == typeof(IOrderable)) ? SortItemsCommand : ToggleOrderByIdCommand); _token = EventServiceFactory.EventService.GetEvent <GenericEvent <EntityViewModelBase <TModel> > >().Subscribe(x => { if (x.Topic == EventTopicNames.AddedModelSaved) { if (x.Value is TViewModel) { Items.Add(x.Value as TViewModel); } } if (x.Topic == EventTopicNames.ModelAddedOrDeleted) { foreach (var openViewModel in OpenViewModels) { if (!openViewModel.CanSave()) { openViewModel.RollbackModel(); } } if (x.Value is TViewModel) { Dao.RemoveFromCache(x.Value.Model as ICacheable); _workspace.Update(x.Value.Model); _workspace.CommitChanges(); _workspace.Refresh(x.Value.Model); } } }); _token2 = EventServiceFactory.EventService.GetEvent <GenericEvent <VisibleViewModelBase> >().Subscribe( s => { if (s.Topic == EventTopicNames.ViewClosed) { if (s.Value is EntityViewModelBase <TModel> && OpenViewModels.Contains(s.Value)) { OpenViewModels.Remove(s.Value as EntityViewModelBase <TModel>); } } }); }
public RecipeListViewModel(IInventoryService inventoryService) { _inventoryService = inventoryService; TestRecipesCommand = new CaptionCommand <string>(string.Format(Resources.Find_f, Resources.RequiredRecipes), OnTestRequiredRecipes); TestAllRecipesCommand = new CaptionCommand <string>(string.Format(Resources.Find_f, Resources.MissingRecipes), OnTestMissingRecipes); CustomCommands.Add(TestRecipesCommand); CustomCommands.Add(TestAllRecipesCommand); }
protected virtual void Initialize() { _customCommands = new DialogCommandCollection(); foreach (var cmd in Buttons.GetCommands()) { CustomCommands.Add(cmd); } }
private async Task AddNewCommand() { var cmnd = new CustomCommand(); var dialog = new CustomCommandAddDialog { DataContext = cmnd }; var result = (bool)await DialogHost.Show(dialog); if (result && !string.IsNullOrWhiteSpace(cmnd.Name) && !string.IsNullOrWhiteSpace(cmnd.Channel) && !string.IsNullOrWhiteSpace(cmnd.Message)) { await _context.CustomCommands.AddAsync(cmnd); await _context.SaveChangesAsync(); CustomCommands.Add(cmnd); } }
public override void Initialize() { //Aimsharp.DebugMode(); Aimsharp.PrintMessage("Perfect Simcraft Series: Elemental Shaman - v 1.0", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx Potions", Color.Blue); Aimsharp.PrintMessage("--Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCooldowns", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx LightAOE", Color.Blue); Aimsharp.PrintMessage("--Toggles light AOE mode on/off (3 targets).", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx Prepull 10", Color.Blue); Aimsharp.PrintMessage("--Starts the prepull actions.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.Latency = 150; Aimsharp.QuickDelay = 100; Aimsharp.SlowDelay = 350; MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); RacialPower = GetDropDown("Racial Power"); Spellbook.Add(MajorPower); if (RacialPower == "Orc") { Spellbook.Add("Blood Fury"); } if (RacialPower == "Troll") { Spellbook.Add("Berserking"); } if (RacialPower == "Dark Iron Dwarf") { Spellbook.Add("Fireblood"); } if (RacialPower == "Mag'har Orc") { Spellbook.Add("Ancestral Call"); } Spellbook.Add("Totem Mastery"); Spellbook.Add("Fire Elemental"); Spellbook.Add("Storm Elemental"); Spellbook.Add("Earth Elemental"); Spellbook.Add("Blood Fury"); Spellbook.Add("Berserking"); Spellbook.Add("Fireblood"); Spellbook.Add("Ancestral Call"); Spellbook.Add("Icefury"); Spellbook.Add("Ascendance"); Spellbook.Add("Stormkeeper"); Spellbook.Add("Flame Shock"); Spellbook.Add("Lava Burst"); Spellbook.Add("Elemental Blast"); Spellbook.Add("Liquid Magma Totem"); Spellbook.Add("Lightning Bolt"); Spellbook.Add("Earthquake"); Spellbook.Add("Earth Shock"); Spellbook.Add("Lightning Lasso"); Spellbook.Add("Frost Shock"); Spellbook.Add("Lava Beam"); Spellbook.Add("Chain Lightning"); Spellbook.Add("Call Lightning"); Spellbook.Add("Eye of the Storm"); Buffs.Add("Bloodlust"); Buffs.Add("Heroism"); Buffs.Add("Time Warp"); Buffs.Add("Ancient Hysteria"); Buffs.Add("Netherwinds"); Buffs.Add("Drums of Rage"); Buffs.Add("Resonance Totem"); Buffs.Add("Stormkeeper"); Buffs.Add("Lifeblood"); Buffs.Add("Memory of Lucid Dreams"); Buffs.Add("Icefury"); Buffs.Add("Ascendance"); Buffs.Add("Wind Gust"); Buffs.Add("Lava Surge"); Buffs.Add("Surge of Power"); Buffs.Add("Master of the Elements"); Buffs.Add("Lava Shock"); Buffs.Add("Call Lightning"); Debuffs.Add("Razor Coral"); Debuffs.Add("Conductive Ink"); Debuffs.Add("Flame Shock"); Debuffs.Add("Shiver Venom"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(GetDropDown("Potion Type")); Items.Add("Neural Synapse Enhancer"); Macros.Add(TopTrinket, "/use " + TopTrinket); Macros.Add(BotTrinket, "/use " + BotTrinket); Macros.Add("potion", "/use " + GetDropDown("Potion Type")); Macros.Add("eq cursor", "/cast [@cursor] Earthquake"); Macros.Add("Magma Cursor", "/cast [@cursor] Liquid Magma Totem"); Macros.Add("nse", "/use Neural Synapse Enhancer"); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); CustomCommands.Add("AOE"); CustomCommands.Add("Prepull"); CustomCommands.Add("LightAOE"); }
public override void Initialize() { // Aimsharp.DebugMode(); Aimsharp.PrintMessage("Perfect Simcraft Series: Ret Paladin - v 1.0", Color.Blue); Aimsharp.PrintMessage("Recommended talents: 3313213", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx Potions", Color.Blue); Aimsharp.PrintMessage("--Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCooldowns", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage(" "); // Aimsharp.PrintMessage("/xxxxx Prepull 10", Color.Blue); // Aimsharp.PrintMessage("--Starts the prepull actions.", Color.Blue); // Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.Latency = 0; Aimsharp.QuickDelay = 125; MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); RacialPower = GetDropDown("Racial Power"); Spellbook.Add(MajorPower); if (RacialPower == "Orc") { Spellbook.Add("Blood Fury"); } if (RacialPower == "Troll") { Spellbook.Add("Berserking"); } if (RacialPower == "Dark Iron Dwarf") { Spellbook.Add("Fireblood"); } if (RacialPower == "Mag'har Orc") { Spellbook.Add("Ancestral Call"); } if (RacialPower == "Lightforged Draenei") { Spellbook.Add("Light's Judgment"); } if (RacialPower == "Bloodelf") { Spellbook.Add("Arcane Torrent"); } Spellbook.Add("Rebuke"); Spellbook.Add("Shield of Vengeance"); Spellbook.Add("Crusade"); Spellbook.Add("Avenging Wrath"); Spellbook.Add("Inquisition"); Spellbook.Add("Blade of Justice"); Spellbook.Add("Judgment"); Spellbook.Add("Execution Sentence"); Spellbook.Add("Divine Storm"); Spellbook.Add("Templar's Verdict"); Spellbook.Add("Wake of Ashes"); Spellbook.Add("Hammer of Wrath"); Spellbook.Add("Consecration"); Spellbook.Add("Crusader Strike"); Buffs.Add("Bloodlust"); Buffs.Add("Heroism"); Buffs.Add("Time Warp"); Buffs.Add("Ancient Hysteria"); Buffs.Add("Netherwinds"); Buffs.Add("Drums of Rage"); Buffs.Add("Lifeblood"); Buffs.Add("Memory of Lucid Dreams"); Buffs.Add("Reckless Force"); Buffs.Add("Guardian of Azeroth"); Buffs.Add("Avenging Wrath"); Buffs.Add("Crusade"); Buffs.Add("Seething Rage"); Buffs.Add("Inquisition"); Buffs.Add("Empyrean Power"); Buffs.Add("Divine Purpose"); Debuffs.Add("Razor Coral"); Debuffs.Add("Conductive Ink"); Debuffs.Add("Shiver Venom"); Debuffs.Add("Judgment"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(GetDropDown("Potion Type")); Macros.Add(TopTrinket, "/use " + TopTrinket); Macros.Add(BotTrinket, "/use " + BotTrinket); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); Macros.Add("potion", "/use " + GetDropDown("Potion Type")); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); CustomCommands.Add("AOE"); // CustomCommands.Add("Prepull"); // CustomCommands.Add("LightAOE"); }
public override void Initialize() { Aimsharp.PrintMessage("Simple kick plugin."); Aimsharp.PrintMessage("Do not use this together with the Arena Kicks plugin!"); Aimsharp.PrintMessage("Use this macro to hold your kicks for a number of seconds: /xxxxx SaveKicks #"); Aimsharp.PrintMessage("For example: /xxxxx SaveKicks 5"); Aimsharp.PrintMessage("will make the bot not kick anything for the next 5 seconds."); if (GetDropDown("Class") == "Hunter") { Interrupt = "Counter Shot"; } if (GetDropDown("Class") == "Rogue") { Interrupt = "Kick"; } if (GetDropDown("Class") == "Priest") { Interrupt = "Silence"; } if (GetDropDown("Class") == "Demon Hunter") { Interrupt = "Disrupt"; } if (GetDropDown("Class") == "Shaman") { Interrupt = "Wind Shear"; } if (GetDropDown("Class") == "Paladin") { Interrupt = "Rebuke"; } if (GetDropDown("Class") == "Death Knight") { Interrupt = "Mind Freeze"; } if (GetDropDown("Class") == "Druid") { Interrupt = "Skull Bash"; InterruptTwo = "Solar Beam"; } if (GetDropDown("Class") == "Warlock") { Interrupt = "Spell Lock"; } if (GetDropDown("Class") == "Mage") { Interrupt = "Counterspell"; } if (GetDropDown("Class") == "Monk") { Interrupt = "Spear Hand Strike"; } if (GetDropDown("Class") == "Warrior") { Interrupt = "Pummel"; } Spellbook.Add(Interrupt); Spellbook.Add(InterruptTwo); CustomCommands.Add("SaveKicks"); }
public override void Initialize() { Aimsharp.DebugMode(); Aimsharp.PrintMessage("Vid Marksman - v 1.0", Color.Yellow); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx NoAOE --Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage("/xxxxx Potions --Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage("/xxxxx SaveCooldowns --Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); RacialPower = GetDropDown("Racial Power"); usableitems = GetString("Use item: Case Sens"); AzeritePrimalInstinctsEnabled = GetCheckBox("Azerite Primal Instincts"); AzeriteRapidReloadEnabled = GetCheckBox(("Azerite Rapid Reload")); AzeriteDanceOfDeathRank = GetSlider("Azerite Dance of Death Rank: "); if (RacialPower == "Orc") { Spellbook.Add("Blood Fury"); } if (RacialPower == "Troll") { Spellbook.Add("Berserking"); } if (RacialPower == "Dark Iron Dwarf") { Spellbook.Add("Fireblood"); } if (RacialPower == "Mag'har Orc") { Spellbook.Add("Ancestral Call"); } if (RacialPower == "Lightforged Draenei") { Spellbook.Add("Light's Judgment"); } Spellbook.Add(MajorPower); Spellbook.Add("Bestial Wrath"); Spellbook.Add("Hunter's Mark"); Spellbook.Add("Kill Command"); Spellbook.Add("Cobra Shot"); Spellbook.Add("Multi-Shot"); Spellbook.Add("Barbed Shot"); Spellbook.Add("Barrage"); Spellbook.Add("Dire Beast"); Spellbook.Add("Stampede"); Spellbook.Add("Kill Shot"); Spellbook.Add("Bloodshed"); Spellbook.Add("Exhilaration"); Spellbook.Add("Arcane Shot"); Spellbook.Add("Aspect of the Wild"); Buffs.Add("Lifeblood"); Buffs.Add("Beast Cleave"); Buffs.Add("Trick Shots"); Buffs.Add("Trueshot"); Buffs.Add("Memory of Lucid Dreams"); Debuffs.Add("Razor Coral"); Debuffs.Add("Hunter's Mark"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(usableitems); Macros.Add("ItemUse", "/use " + usableitems); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); CustomCommands.Add("NoAOE"); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); }
public override void Initialize() { Aimsharp.PrintMessage("Perfect Simcraft Series: Fury Warrior - v 1.0", Color.Blue); Aimsharp.PrintMessage("Recommended talents: 2123123", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx Potions", Color.Blue); Aimsharp.PrintMessage("--Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCooldowns", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); // Aimsharp.PrintMessage(" "); // Aimsharp.PrintMessage("/xxxxx Prepull 10", Color.Blue); // Aimsharp.PrintMessage("--Starts the prepull actions.", Color.Blue); // Aimsharp.PrintMessage(" "); // Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.Latency = 100; Aimsharp.QuickDelay = 125; MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); RacialPower = GetDropDown("Racial Power"); Spellbook.Add(MajorPower); if (RacialPower == "Orc") { Spellbook.Add("Blood Fury"); } if (RacialPower == "Troll") { Spellbook.Add("Berserking"); } if (RacialPower == "Dark Iron Dwarf") { Spellbook.Add("Fireblood"); } if (RacialPower == "Mag'har Orc") { Spellbook.Add("Ancestral Call"); } if (RacialPower == "Lightforged Draenei") { Spellbook.Add("Light's Judgment"); } Spellbook.Add("Charge"); Spellbook.Add("Heroic Leap"); Spellbook.Add("Rampage"); Spellbook.Add("Recklessness"); Spellbook.Add("Siegebreaker"); Spellbook.Add("Whirlwind"); Spellbook.Add("Execute"); Spellbook.Add("Furious Slash"); Spellbook.Add("Bladestorm"); Spellbook.Add("Bloodthirst"); Spellbook.Add("Dragon Roar"); Spellbook.Add("Raging Blow"); Buffs.Add("Bloodlust"); Buffs.Add("Heroism"); Buffs.Add("Time Warp"); Buffs.Add("Ancient Hysteria"); Buffs.Add("Netherwinds"); Buffs.Add("Drums of Rage"); Buffs.Add("Lifeblood"); Buffs.Add("Memory of Lucid Dreams"); Buffs.Add("Reckless Force"); Buffs.Add("Guardian of Azeroth"); Buffs.Add("Recklessness"); Buffs.Add("Meat Cleaver"); Buffs.Add("Enrage"); Buffs.Add("Furious Slash"); Buffs.Add("Whirlwind"); Debuffs.Add("Razor Coral"); Debuffs.Add("Conductive Ink"); Debuffs.Add("Shiver Venom"); Debuffs.Add("Siegebreaker"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(GetDropDown("Potion Type")); Macros.Add(TopTrinket, "/use " + TopTrinket); Macros.Add(BotTrinket, "/use " + BotTrinket); Macros.Add("potion", "/use " + GetDropDown("Potion Type")); Macros.Add("leap cursor", "/cast [@cursor] Heroic Leap"); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); CustomCommands.Add("AOE"); }
public override void Initialize() { Aimsharp.PrintMessage("Perfect Simcraft Series: BM Hunter - v 1.0", Color.Blue); Aimsharp.PrintMessage("Recommended talents: 2222212", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx Potions", Color.Blue); Aimsharp.PrintMessage("--Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCooldowns", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx Prepull 6", Color.Blue); Aimsharp.PrintMessage("--Starts prepull rotation (hit it at around 6 seconds before)", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); RacialPower = GetDropDown("Racial Power"); if (RacialPower == "Orc") { Spellbook.Add("Blood Fury"); } if (RacialPower == "Troll") { Spellbook.Add("Berserking"); } if (RacialPower == "Dark Iron Dwarf") { Spellbook.Add("Fireblood"); } if (RacialPower == "Mag'har Orc") { Spellbook.Add("Ancestral Call"); } if (RacialPower == "Lightforged Draenei") { Spellbook.Add("Light's Judgment"); } Spellbook.Add(MajorPower); Spellbook.Add("Aspect of the Wild"); Spellbook.Add("Bestial Wrath"); Spellbook.Add("Barbed Shot"); Spellbook.Add("Stampede"); Spellbook.Add("Kill Command"); Spellbook.Add("Chimaera Shot"); Spellbook.Add("Dire Beast"); Spellbook.Add("Barrage"); Spellbook.Add("Cobra Shot"); Spellbook.Add("Spitting Cobra"); Spellbook.Add("A Murder of Crows"); Spellbook.Add("Multi-Shot"); Buffs.Add("Aspect of the Wild"); Buffs.Add("Bestial Wrath"); Buffs.Add("Frenzy"); Buffs.Add("Lifeblood"); Buffs.Add("Dance of Death"); Buffs.Add("Beast Cleave"); Buffs.Add("Barbed Shot"); Debuffs.Add("Razor Coral"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(GetDropDown("Potion Type")); Macros.Add(TopTrinket, "/use " + TopTrinket); Macros.Add(BotTrinket, "/use " + BotTrinket); Macros.Add("potion", "/use " + GetDropDown("Potion Type")); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); CustomCommands.Add("AOE"); CustomCommands.Add("Prepull"); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); }
public override void Initialize() { Aimsharp.DebugMode(); Aimsharp.PrintMessage("Ice Series: Assassination Rogue - v 1.0", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx Potions", Color.Blue); Aimsharp.PrintMessage("--Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCooldowns", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); //Aimsharp.PrintMessage(" "); // Aimsharp.PrintMessage("/xxxxx Prepull 10", Color.Blue); // Aimsharp.PrintMessage("--Starts the prepull actions.", Color.Blue); // Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.Latency = 50; Aimsharp.QuickDelay = 125; Aimsharp.SlowDelay = 250; MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); RacialPower = GetDropDown("Racial Power"); Spellbook.Add(MajorPower); if (RacialPower == "Orc") { Spellbook.Add("Blood Fury"); } if (RacialPower == "Troll") { Spellbook.Add("Berserking"); } if (RacialPower == "Dark Iron Dwarf") { Spellbook.Add("Fireblood"); } if (RacialPower == "Mag'har Orc") { Spellbook.Add("Ancestral Call"); } if (RacialPower == "Lightforged Draenei") { Spellbook.Add("Light's Judgment"); } if (RacialPower == "Bloodelf") { Spellbook.Add("Arcane Torrent"); } Spellbook.Add("Stealth"); Spellbook.Add("Garrote"); Spellbook.Add("Rupture"); Spellbook.Add("Exsanguinate"); Spellbook.Add("Toxic Blade"); Spellbook.Add("Vendetta"); Spellbook.Add("Marked for Death"); Spellbook.Add("Vanish"); Spellbook.Add("Crimson Tempest"); Spellbook.Add("Envenom"); Spellbook.Add("Fan of Knives"); Spellbook.Add("Blindside"); Spellbook.Add("Mutilate"); Buffs.Add("Bloodlust"); Buffs.Add("Heroism"); Buffs.Add("Time Warp"); Buffs.Add("Ancient Hysteria"); Buffs.Add("Netherwinds"); Buffs.Add("Drums of Rage"); Buffs.Add("Lifeblood"); Buffs.Add("Memory of Lucid Dreams"); Buffs.Add("Reckless Force"); Buffs.Add("Guardian of Azeroth"); Buffs.Add("Stealth"); Buffs.Add("Subterfuge"); Buffs.Add("Vanish"); Buffs.Add("Master Assassin"); Buffs.Add("Blindside"); Debuffs.Add("Razor Coral"); Debuffs.Add("Conductive Ink"); Debuffs.Add("Shiver Venom"); Debuffs.Add("Rupture"); Debuffs.Add("Garrote"); Debuffs.Add("Deadly Poison"); Debuffs.Add("Crippling Poison"); Debuffs.Add("Wound Poison"); Debuffs.Add("Vendetta"); Debuffs.Add("Toxic Blade"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(GetDropDown("Potion Type")); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); Macros.Add("potion", "/use " + GetDropDown("Potion Type")); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); CustomCommands.Add("AOE"); // CustomCommands.Add("Prepull"); }
public MenuItemListViewModel() { CreateBatchMenuItems = new CaptionCommand <string>(Resources.BatchCreteProducts, OnCreateBatchMenuItems); CustomCommands.Add(CreateBatchMenuItems); }
public override void Initialize() { // Aimsharp.DebugMode(); Aimsharp.PrintMessage("Perfect Simcraft Series: Boomkin - v 1.0", Color.Blue); Aimsharp.PrintMessage("Recommended talents: 1333331", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx Potions", Color.Blue); Aimsharp.PrintMessage("--Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCooldowns", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage(" "); // Aimsharp.PrintMessage("/xxxxx Prepull 10", Color.Blue); // Aimsharp.PrintMessage("--Starts the prepull actions.", Color.Blue); // Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.Latency = 50; Aimsharp.QuickDelay = 100; Aimsharp.SlowDelay = 300; MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); RacialPower = GetDropDown("Racial Power"); Spellbook.Add(MajorPower); if (RacialPower == "Orc") { Spellbook.Add("Blood Fury"); } if (RacialPower == "Troll") { Spellbook.Add("Berserking"); } if (RacialPower == "Dark Iron Dwarf") { Spellbook.Add("Fireblood"); } if (RacialPower == "Mag'har Orc") { Spellbook.Add("Ancestral Call"); } if (RacialPower == "Lightforged Draenei") { Spellbook.Add("Light's Judgment"); } if (RacialPower == "Bloodelf") { Spellbook.Add("Arcane Torrent"); } Spellbook.Add("Moonkin Form"); Spellbook.Add("Celestial Alignment"); Spellbook.Add("Incarnation: Chosen of Elune"); Spellbook.Add("Moonfire"); Spellbook.Add("Sunfire"); Spellbook.Add("Stellar Flare"); Spellbook.Add("Thorns"); Spellbook.Add("Warrior of Elune"); Spellbook.Add("Innervate"); Spellbook.Add("Force of Nature"); Spellbook.Add("Fury of Elune"); Spellbook.Add("Starfall"); Spellbook.Add("Starsurge"); Spellbook.Add("New Moon"); Spellbook.Add("Half Moon"); Spellbook.Add("Full Moon"); Spellbook.Add("Lunar Strike"); Spellbook.Add("Solar Wrath"); Buffs.Add("Bloodlust"); Buffs.Add("Heroism"); Buffs.Add("Time Warp"); Buffs.Add("Ancient Hysteria"); Buffs.Add("Netherwinds"); Buffs.Add("Drums of Rage"); Buffs.Add("Lifeblood"); Buffs.Add("Memory of Lucid Dreams"); Buffs.Add("Reckless Force"); Buffs.Add("Guardian of Azeroth"); Buffs.Add("Moonkin Form"); Buffs.Add("Celestial Alignment"); Buffs.Add("Incarnation: Chosen of Elune"); Buffs.Add("Starlord"); Buffs.Add("Warrior of Elune"); Buffs.Add("Lively Spirit"); Buffs.Add("Blessing of Elune"); Buffs.Add("Arcanic Pulsar"); Buffs.Add("Lunar Empowerment"); Buffs.Add("Solar Empowerment"); Debuffs.Add("Razor Coral"); Debuffs.Add("Conductive Ink"); Debuffs.Add("Shiver Venom"); Debuffs.Add("Moonfire"); Debuffs.Add("Sunfire"); Debuffs.Add("Stellar Flare"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(GetDropDown("Potion Type")); Items.Add("Neural Synapse Enhancer"); Macros.Add(TopTrinket, "/use " + TopTrinket); Macros.Add(BotTrinket, "/use " + BotTrinket); Macros.Add("potion", "/use " + GetDropDown("Potion Type")); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); Macros.Add("neural", "/use Neural Synapse Enhancer"); Macros.Add("force cursor", "/cast [@cursor] Force of Nature"); Macros.Add("cancel star", "/cancelaura Starlord"); Macros.Add("starfall cursor", "/cast [@cursor] Starfall"); //Macros.Add("inn player", "/cast [@player] Innervate"); //doesn't work can only hit healers Macros.Add("thorns player", "/cast [@player] Thorns"); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); CustomCommands.Add("AOE"); // CustomCommands.Add("Prepull"); // CustomCommands.Add("LightAOE"); }
public override void Initialize() { Aimsharp.PrintMessage("Kyber Vengenace DH Shadowlands - v 2.3", Color.Blue); Aimsharp.PrintMessage("Recommended talents: 1233221", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx SaveMeta", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of Metamorphosis on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCovenant", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of Covenant abilities on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx Autodisrupt", Color.Blue); Aimsharp.PrintMessage("--Toggles Auto interrupt mode on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx Autoinfernal", Color.Blue); Aimsharp.PrintMessage("--Toggles Auto infernal Strike mode on/off.", Color.Blue); Aimsharp.PrintMessage("will use 1 charge for added dps and save 1 charge for movement.", Color.Purple); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.Latency = 50; Aimsharp.QuickDelay = 125; Aimsharp.SlowDelay = 250; //Main Skills foreach (string skill in VengeanceSpells) { Spellbook.Add(skill); } //Covenant foreach (string Spell in CovenantAbilities) { Spellbook.Add(Spell); } //Buffs foreach (string buff in VengeanceBuffs) { Buffs.Add(buff); } //Debuffs foreach (string debuff in VengeanceDebuffs) { Debuffs.Add(debuff); } foreach (string Buff in BloodlustEffects) { Buffs.Add(Buff); } Items.Add(GetDropDown("Potion name:")); Macros.Add("DPS Pot", "/use " + GetDropDown("Potion name:")); Macros.Add("TopTrinket", "/use 13"); Macros.Add("BottomTrinket", "/use 14"); Macros.Add("sigil self", "/cast [@player] Sigil of Flame"); Macros.Add("infernal self", "/cast [@player] Infernal Strike"); Macros.Add("Elysian self", "/cast [@player] Elysian Decree"); CustomCommands.Add("SaveMeta"); CustomCommands.Add("AOE"); CustomCommands.Add("Autoinfernal"); CustomCommands.Add("Autodisrupt"); CustomCommands.Add("SaveCovenant"); CustomFunctions.Add("GetCovenant", "local spell = 0 local i = 1 while true do local spellName, spellSub = GetSpellBookItemName(i, BOOKTYPE_SPELL) if not spellName then do break end end if spellName == 'Fodder to the Flame' then spell = 4 elseif spellName == 'The Hunt' then spell = 3 elseif spellName == 'Sinful Brand' then spell = 2 elseif spellName == 'Elysian Decree' then spell = 1 end i = i + 1 end return spell"); CustomFunctions.Add("GetLegendarySpellID", "local power = 0 for i=1,15,1 do local xcs = ItemLocation:CreateFromEquipmentSlot(i) if(C_Item.DoesItemExist(xcs)) then if(C_LegendaryCrafting.IsRuneforgeLegendary(xcs)) then local id = C_LegendaryCrafting.GetRuneforgeLegendaryComponentInfo(xcs)[\"powerID\"] power = C_LegendaryCrafting.GetRuneforgePowerInfo(id)[\"descriptionSpellID\"] end end end return power"); }
public override void Initialize() { Aimsharp.DebugMode(); Aimsharp.PrintMessage("Vid Marksman - v 1.0", Color.Yellow); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx NoAOE --Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage("/xxxxx Potions --Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage("/xxxxx SaveCooldowns --Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); RacialPower = GetDropDown("Racial Power"); usableitems = GetString("Use item: Case Sens"); AzeriteFocusedFireEnabled = GetCheckBox("Azerite Focused Fire"); AzeriteSurgingShotsEnabled = GetCheckBox(("Azerite Surging Shots")); AzeriteInTheRythmRank = GetSlider("Azerite In the Rythm Rank: "); if (RacialPower == "Orc") { Spellbook.Add("Blood Fury"); } if (RacialPower == "Troll") { Spellbook.Add("Berserking"); } if (RacialPower == "Dark Iron Dwarf") { Spellbook.Add("Fireblood"); } if (RacialPower == "Mag'har Orc") { Spellbook.Add("Ancestral Call"); } if (RacialPower == "Lightforged Draenei") { Spellbook.Add("Light's Judgment"); } if (RacialPower == "Furry") { Spellbook.Add("Bag of Tricks"); } Spellbook.Add(MajorPower); Spellbook.Add("Rapid Fire"); Spellbook.Add("Hunter's Mark"); Spellbook.Add("Aimed Shot"); Spellbook.Add("Steady Shot"); Spellbook.Add("Multi-Shot"); Spellbook.Add("Trueshot"); Spellbook.Add("Barrage"); Spellbook.Add("Explosive Shot"); Spellbook.Add("Arcane Shot"); Spellbook.Add("Kill Shot"); Spellbook.Add("Bursting Shot"); Spellbook.Add("Exhilaration"); Spellbook.Add("Double Tap"); Spellbook.Add("Chimaera Shot"); Spellbook.Add("A Murder of Crows"); Buffs.Add("Lifeblood"); Buffs.Add("Precise Shots"); Buffs.Add("Trick Shots"); Buffs.Add("Trueshot"); Debuffs.Add("Razor Coral"); Debuffs.Add("Hunter's Mark"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(usableitems); Macros.Add("ItemUse", "/use " + usableitems); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); CustomCommands.Add("NoAOE"); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); }
public override void Initialize() { Aimsharp.PrintMessage("Perfect Simcraft Series: Shadow Priest - v 1.0", Color.Blue); Aimsharp.PrintMessage("Recommended talents: 3111111", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx Potions", Color.Blue); Aimsharp.PrintMessage("--Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCooldowns", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.Latency = 0; Aimsharp.QuickDelay = 125; Aimsharp.SlowDelay = 300; MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); Spellbook.Add(MajorPower); Spellbook.Add("Void Eruption"); Spellbook.Add("Dark Ascension"); Spellbook.Add("Void Bolt"); Spellbook.Add("Mind Sear"); Spellbook.Add("Shadow Word: Death"); Spellbook.Add("Surrender to Madness"); Spellbook.Add("Dark Void"); Spellbook.Add("Mindbender"); Spellbook.Add("Shadowfiend"); Spellbook.Add("Shadow Crash"); Spellbook.Add("Mind Blast"); Spellbook.Add("Void Torrent"); Spellbook.Add("Shadow Word: Pain"); Spellbook.Add("Vampiric Touch"); Spellbook.Add("Mind Flay"); Spellbook.Add("Shadowform"); Spellbook.Add("Shadow Word: Void"); Buffs.Add("Bloodlust"); Buffs.Add("Heroism"); Buffs.Add("Time Warp"); Buffs.Add("Ancient Hysteria"); Buffs.Add("Netherwinds"); Buffs.Add("Drums of Rage"); Buffs.Add("Chorus of Insanity"); Buffs.Add("Lifeblood"); Buffs.Add("Harvested Thoughts"); Buffs.Add("Voidform"); Buffs.Add("Shadowform"); Debuffs.Add("Shadow Word: Pain"); Debuffs.Add("Vampiric Touch"); Debuffs.Add("Shiver Venom"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(GetDropDown("Potion Type")); Macros.Add(TopTrinket, "/use " + TopTrinket); Macros.Add(BotTrinket, "/use " + BotTrinket); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); Macros.Add("potion", "/use " + GetDropDown("Potion Type")); Macros.Add("crash cursor", "/cast [@cursor] Shadow Crash"); CustomCommands.Add("AOE"); CustomCommands.Add("Prepull"); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); }
public override void Initialize() { // Aimsharp.DebugMode(); Aimsharp.PrintMessage("Vid Protection Warrior", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx Potions", Color.Blue); Aimsharp.PrintMessage("--Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCooldowns", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage("/xxxxx StormBolt --Queues Storm Bolt up to be used on the next GCD.", Color.Red); Aimsharp.PrintMessage("/xxxxx RallyingCry --Queues Rallying Cry up to be used on the next GCD.", Color.Red); Aimsharp.PrintMessage("/xxxxx IntimidatingShout --Queues Intimidating SHout up to be used on the next GCD.", Color.Red); //Aimsharp.PrintMessage(" "); // Aimsharp.PrintMessage("/xxxxx Prepull 10", Color.Blue); // Aimsharp.PrintMessage("--Starts the prepull actions.", Color.Blue); // Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.Latency = 50; Aimsharp.QuickDelay = 125; Aimsharp.SlowDelay = 250; MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); RacialPower = GetDropDown("Racial Power"); FiveLetters = GetString("First 5 Letters of the Addon:"); Spellbook.Add(MajorPower); if (RacialPower == "Orc") { Spellbook.Add("Blood Fury"); } if (RacialPower == "Troll") { Spellbook.Add("Berserking"); } if (RacialPower == "Dark Iron Dwarf") { Spellbook.Add("Fireblood"); } if (RacialPower == "Mag'har Orc") { Spellbook.Add("Ancestral Call"); } if (RacialPower == "Lightforged Draenei") { Spellbook.Add("Light's Judgment"); } if (RacialPower == "Bloodelf") { Spellbook.Add("Arcane Torrent"); } Spellbook.Add("Intercept"); Spellbook.Add("Avatar"); Spellbook.Add("Ignore Pain"); Spellbook.Add("Demoralizing Shout"); Spellbook.Add("Last Stand"); Spellbook.Add("Thunder Clap"); Spellbook.Add("Ravager"); Spellbook.Add("Shield Block"); Spellbook.Add("Shield Slam"); Spellbook.Add("Devastate"); Spellbook.Add("Victory Rush"); Spellbook.Add("Revenge"); Spellbook.Add("Intimidating Shout"); Spellbook.Add("Shockwave"); Spellbook.Add("Storm Bolt"); Spellbook.Add("Rallying Cry"); Buffs.Add("Bloodlust"); Buffs.Add("Heroism"); Buffs.Add("Time Warp"); Buffs.Add("Ancient Hysteria"); Buffs.Add("Netherwinds"); Buffs.Add("Drums of Rage"); Buffs.Add("Lifeblood"); Buffs.Add("Memory of Lucid Dreams"); Buffs.Add("Reckless Force"); Buffs.Add("Guardian of Azeroth"); Buffs.Add("Victorious"); Buffs.Add("Avatar"); Buffs.Add("Ignore Pain"); Buffs.Add("Shield Block"); Buffs.Add("Revenge!"); Debuffs.Add("Razor Coral"); Debuffs.Add("Conductive Ink"); Debuffs.Add("Shiver Venom"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(GetDropDown("Potion Type")); Macros.Add(TopTrinket, "/use " + TopTrinket); Macros.Add(BotTrinket, "/use " + BotTrinket); Macros.Add("potion", "/use " + GetDropDown("Potion Type")); Macros.Add("StormBoltOff", "/" + FiveLetters + " StormBolt"); Macros.Add("IntimidatingShoutOff", "/" + FiveLetters + " IntimidatingShout"); Macros.Add("RallyingCryOff", "/" + FiveLetters + " RallyingCry"); Macros.Add("ShockWaveOff", "/" + FiveLetters + " ShockWave"); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); CustomCommands.Add("AOE"); // CustomCommands.Add("Prepull"); CustomCommands.Add("StormBolt"); CustomCommands.Add("RallyingCry"); CustomCommands.Add("IntimidatingShout"); CustomCommands.Add("ShockWave"); Macros.Add("RavageSelf", "/cast [@player] Ravager"); }
private void HandleCommand(string text, string sender, string fromChannel, CommandOutput output, bool isTrustedUser) { string command = text.Split(' ')[0].Substring(1); string parameters = ""; if (text.IndexOf(' ') > 0) { parameters = text.Substring(text.IndexOf(' ')).Trim(); } var matchedCommand = MatchCommand(command); // I want to keep "!add" as a command. if (matchedCommand.Count > 1 && matchedCommand.Contains("add")) { matchedCommand.Clear(); matchedCommand.Add("add"); } if (matchedCommand.Count == 1) { output.MatchedCommand = true; switch (matchedCommand[0]) { case "add": if (sender == "dessyreqt") { var newCommand = parameters.Substring(0, parameters.IndexOf(' ')).Trim(); var newText = parameters.Substring(parameters.IndexOf(' ')).Trim(); CustomCommands.Add(newCommand, newText); } break; case "delete": if (sender == "dessyreqt") { CustomCommands.Delete(parameters); } break; case "drops": if (parameters.Length > 2) { output.Text.AddRange(OutputDrops(parameters)); } break; case "summon": var channel = SummonToChannel(parameters); if (channel != "") { output.Text.Add(SummonToChannel(parameters)); output.Type = CommandType.JoinChannel; } break; case "randnum": case "randomnumber": output.Text.Add(GetRandomNumber(parameters).ToString()); break; case "randlist": case "randomlist": case "randomizelist": output.Text.Add(GetRandomList(parameters)); break; case "fight": output.Text.AddRange(GetFightInfo(parameters)); break; case "addquote": if (isTrustedUser && Quotes.Validate(parameters)) { Quotes.Add(parameters); output.Text.Add(string.Format("Quote added! {0} quotes in the database.", Quotes.GetCount())); } break; case "quote": var quote = Quotes.GetRandom(); int quoteId; if (parameters.Length > 0 && int.TryParse(parameters, out quoteId)) { var tempQuote = new Quote { QuoteId = quoteId, QuoteText = Quotes.Get(quoteId) }; if (tempQuote.QuoteText != null) { quote = tempQuote; } } lastQuote[fromChannel] = quote.QuoteId; output.Text.Add(FormatQuote(quote)); break; case "delquote": if (isTrustedUser) { if (parameters.Length > 0 && int.TryParse(parameters, out quoteId)) { Quotes.Delete(quoteId); output.Text.Add("That terrible quote has been deleted. Good riddance!"); } else if (lastQuote.ContainsKey(fromChannel)) { Quotes.Delete(lastQuote[fromChannel]); output.Text.Add("That terrible quote has been deleted. Good riddance!"); } } break; case "insult": var insultTo = GetInsultTarget(sender, fromChannel, parameters); var insult = Insults.Get(); output.Text.Add(string.Format("{0}, you're nothing but {1}", insultTo, insult)); break; case "compliment": var complimentTo = GetInsultTarget(sender, fromChannel, parameters); var compliment = Insults.Get(); output.Text.Add(string.Format("{0}, you're decent for {1}", complimentTo, compliment)); break; case "listquotes": if (isTrustedUser) { output.Text.Add(ListQuotes()); } break; case "addc": if (isTrustedUser) { var newCommand = string.Format("{0}+{1}", parameters.Substring(0, parameters.IndexOf(' ')).Trim().Replace("+", ""), fromChannel); var newText = parameters.Substring(parameters.IndexOf(' ')).Trim(); CustomCommands.Add(newCommand, newText); } break; case "delc": if (isTrustedUser) { var commandName = string.Format("{0}+{1}", parameters, fromChannel); CustomCommands.Delete(commandName); } break; } } else if (matchedCommand.Count == 0) { var commandOutput = CustomCommands.Get(string.Format("{0}+{1}", command, fromChannel)); if (commandOutput != null) { commandOutput = commandOutput.Replace("{sender}", sender); commandOutput = commandOutput.Replace("{streamer}", fromChannel.Remove(0, 1)); commandOutput = commandOutput.Replace("{oatsavgceres}", OatsCeres.GetAvgTime()); output.Text.Add(commandOutput); } else if ((commandOutput = CustomCommands.Get(command)) != null) { commandOutput = commandOutput.Replace("{sender}", sender); commandOutput = commandOutput.Replace("{streamer}", fromChannel.Remove(0, 1)); output.Text.Add(commandOutput); } } }
public override void Initialize() { Aimsharp.PrintMessage("Kyber Destruction Warlock - v 1.0", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("Recommended talents: 3203012", Color.Blue); Aimsharp.PrintMessage("/xxxxx SaveCovenant", Color.Blue); Aimsharp.PrintMessage("--Toggles using Covenant abilities on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCooldowns", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.PrintMessage("This rotation will use Havoc on your focus target, so please make a macro to set focus quickly.", Color.Blue); Aimsharp.PrintMessage("/focus [@mouseover,nodead,exists]; [@target,exists]", Color.Blue); Aimsharp.Latency = 50; Aimsharp.QuickDelay = 125; Aimsharp.SlowDelay = 250; foreach (string Spell in SpellsList) { Spellbook.Add(Spell); } foreach (string Spell in CovenantAbilities) { Spellbook.Add(Spell); } foreach (string Spell in Racials) { Spellbook.Add(Spell); } foreach (string Buff in GeneralBuffs) { Buffs.Add(Buff); } foreach (string Buff in BuffsList) { Buffs.Add(Buff); } foreach (string Buff in BloodlustEffects) { Buffs.Add(Buff); } foreach (string Debuff in DebuffsList) { Debuffs.Add(Debuff); } foreach (string Debuff in GeneralDebuffs) { Debuffs.Add(Debuff); } foreach (string Totem in TotemsList) { Totems.Add(Totem); } Items.Add(GetString("Potion name:")); Macros.Add("DPS Pot", "/use " + GetString("Potion name:")); Macros.Add("havoc focus", "/cast [@focus] Havoc"); Macros.Add("cata cursor", "/cast [@cursor] Cataclysm"); Macros.Add("rof cursor", "/cast [@cursor] Rain of Fire"); Macros.Add("inf cursor", "/cast [@cursor] Summon Infernal"); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); foreach (string MacroCommand in MacroCommands) { CustomCommands.Add(MacroCommand); } CustomFunctions.Add("GetCovenant", "local spell = 0 local i = 1 while true do local spellName, spellSub = GetSpellBookItemName(i, BOOKTYPE_SPELL) if not spellName then do break end end if spellName == 'Decimating Bolt' then spell = 4 elseif spellName == 'Soul Rot' then spell = 3 elseif spellName == 'Impending Catastrophe' then spell = 2 elseif spellName == 'Scouring Tithe' then spell = 1 end i = i + 1 end return spell"); CustomFunctions.Add("GetLegendarySpellID", "local power = 0 for i=1,15,1 do local xcs = ItemLocation:CreateFromEquipmentSlot(i) if(C_Item.DoesItemExist(xcs)) then if(C_LegendaryCrafting.IsRuneforgeLegendary(xcs)) then local id = C_LegendaryCrafting.GetRuneforgeLegendaryComponentInfo(xcs)[\"powerID\"] power = C_LegendaryCrafting.GetRuneforgePowerInfo(id)[\"descriptionSpellID\"] end end end return power"); }
public override void Initialize() { //Aimsharp.DebugMode(); Aimsharp.PrintMessage("Perfect Simcraft Series: Windwalker Monk - v 1.0", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx Potions", Color.Blue); Aimsharp.PrintMessage("--Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCooldowns", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); //Aimsharp.PrintMessage(" "); // Aimsharp.PrintMessage("/xxxxx Prepull 10", Color.Blue); // Aimsharp.PrintMessage("--Starts the prepull actions.", Color.Blue); // Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.Latency = 50; Aimsharp.QuickDelay = 125; Aimsharp.SlowDelay = 250; MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); RacialPower = GetDropDown("Racial Power"); Spellbook.Add(MajorPower); if (RacialPower == "Orc") { Spellbook.Add("Blood Fury"); } if (RacialPower == "Troll") { Spellbook.Add("Berserking"); } if (RacialPower == "Dark Iron Dwarf") { Spellbook.Add("Fireblood"); } if (RacialPower == "Mag'har Orc") { Spellbook.Add("Ancestral Call"); } if (RacialPower == "Lightforged Draenei") { Spellbook.Add("Light's Judgment"); } if (RacialPower == "Bloodelf") { Spellbook.Add("Arcane Torrent"); } Spellbook.Add("Serenity"); Spellbook.Add("Touch of Death"); Spellbook.Add("Rising Sun Kick"); Spellbook.Add("Fists of Fury"); Spellbook.Add("Spinning Crane Kick"); Spellbook.Add("Fist of the White Tiger"); Spellbook.Add("Blackout Kick"); Spellbook.Add("Tiger Palm"); Spellbook.Add("Chi Wave"); Spellbook.Add("Invoke Xuen, the White Tiger"); Spellbook.Add("Storm, Earth, and Fire"); Spellbook.Add("Whirling Dragon Punch"); Spellbook.Add("Rushing Jade Wind"); Spellbook.Add("Energizing Elixir"); Spellbook.Add("Chi Burst"); Spellbook.Add("Flying Serpent Kick"); Buffs.Add("Bloodlust"); Buffs.Add("Heroism"); Buffs.Add("Time Warp"); Buffs.Add("Ancient Hysteria"); Buffs.Add("Netherwinds"); Buffs.Add("Drums of Rage"); Buffs.Add("Lifeblood"); Buffs.Add("Memory of Lucid Dreams"); Buffs.Add("Reckless Force"); Buffs.Add("Guardian of Azeroth"); Buffs.Add("Serenity"); Buffs.Add("Storm, Earth, and Fire"); Buffs.Add("Rushing Jade Wind"); Buffs.Add("Energizing Elixir"); Buffs.Add("Dance of Chi-Ji"); Buffs.Add("Blackout Kick!"); Debuffs.Add("Razor Coral"); Debuffs.Add("Conductive Ink"); Debuffs.Add("Shiver Venom"); Debuffs.Add("Touch of Death"); Debuffs.Add("Mark of the Crane"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(GetDropDown("Potion Type")); Macros.Add(TopTrinket, "/use " + TopTrinket); Macros.Add(BotTrinket, "/use " + BotTrinket); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); Macros.Add("potion", "/use " + GetDropDown("Potion Type")); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); CustomCommands.Add("AOE"); // CustomCommands.Add("Prepull"); }
public override void Initialize() { Aimsharp.PrintMessage("Kyber Vengenace DH V3.1", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx SaveCovenant", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of Covenant abilities on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveMeta", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of Metamorphosis on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveInfernal", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of Infernal Strike on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveFiery", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of Fiery Brand on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveFelDev", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of Fel Devastation on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx Shriekwing", Color.Blue); Aimsharp.PrintMessage("--Toggles Shriekwing Tanking on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.Latency = 40; Aimsharp.QuickDelay = 100; Aimsharp.SlowDelay = 225; //Main Skills foreach (string skill in VengeanceSpells) { Spellbook.Add(skill); } //Covenant foreach (string Spell in CovenantAbilities) { Spellbook.Add(Spell); } //Buffs foreach (string buff in VengeanceBuffs) { Buffs.Add(buff); } //Debuffs foreach (string debuff in VengeanceDebuffs) { Debuffs.Add(debuff); } foreach (string Buff in BloodlustEffects) { Buffs.Add(Buff); } addonName = GetString("First 5 Letter of your Addon:"); Items.Add(GetString("Potion name:")); Macros.Add("TopTrinket", "/use 13"); Macros.Add("BottomTrinket", "/use 14"); Macros.Add("DPS Pot", "/use " + GetString("Potion name:")); Macros.Add("sigil self", "/cast [@player] Sigil of Flame"); Macros.Add("Elysian self", "/cast [@player] Elysian Decree"); Macros.Add("sigilC", "/cast [@cursor] Sigil of Flame"); Macros.Add("ElysianC", "/cast [@cursor] Elysian Decree"); Macros.Add("infernal self","/cast [@player] Infernal Strike"); Macros.Add("ElysianDisable", "/" + addonName + " UseElysian"); Macros.Add("FieryDisable", "/" + addonName + " UseFiery"); Macros.Add("FelDevDisable", "/" + addonName + " UseFelDev"); Macros.Add("SigilMDisable", "/" + addonName + " UseMisery"); Macros.Add("SigilSDisable", "/" + addonName + " UseSilence"); Macros.Add("SigilCDisable", "/" + addonName + " UseChains"); Macros.Add("SigilMC", "/cast [@cursor] Sigil of Misery"); Macros.Add("SigilMSelf", "/cast [@player] Sigil of Misery"); Macros.Add("SigilSC", "/cast [@cursor] Sigil of Silence"); Macros.Add("SigilSSelf", "/cast [@player] Sigil of Silence"); Macros.Add("SigilCC", "/cast [@cursor] Sigil of Chains"); Macros.Add("SigilCSelf", "/cast [@player] Sigil of Chains"); Macros.Add("BoP Killer", "/cancelaura Blessing of Protection"); CustomCommands.Add("AOE"); CustomCommands.Add("SaveCovenant"); CustomCommands.Add("SaveFiery"); CustomCommands.Add("SaveFelDev"); CustomCommands.Add("UseFiery"); CustomCommands.Add("UseMisery"); CustomCommands.Add("UseSilence"); CustomCommands.Add("UseChains"); CustomCommands.Add("UseElysian"); CustomCommands.Add("UseFelDev"); CustomCommands.Add("SaveMeta"); CustomCommands.Add("SaveInfernal"); CustomCommands.Add("Shriekwing"); CustomFunctions.Add("ThreatStatus", "if (UnitDetailedThreatSituation(\"player\", \"target\"))\nthen\nreturn 1;\nend\nreturn 0;"); CustomFunctions.Add("GetLegendarySpellID", "local power = 0 for i=1,15,1 do local xcs = ItemLocation:CreateFromEquipmentSlot(i) if(C_Item.DoesItemExist(xcs)) then if(C_LegendaryCrafting.IsRuneforgeLegendary(xcs)) then local id = C_LegendaryCrafting.GetRuneforgeLegendaryComponentInfo(xcs)[\"powerID\"] power = C_LegendaryCrafting.GetRuneforgePowerInfo(id)[\"descriptionSpellID\"] end end end return power"); }
public override void Initialize() { //Aimsharp.DebugMode(); Aimsharp.PrintMessage("Vid Shadow - v 1.0", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx NoAOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx Potions", Color.Blue); Aimsharp.PrintMessage("--Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCooldowns", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx CouncilDotsOff", Color.Blue); Aimsharp.PrintMessage("--Will keep SW:P and VT up on focus and Boss 1-4.", Color.Blue); Aimsharp.PrintMessage("/xxxxx StartCombat", Color.Blue); Aimsharp.PrintMessage("--Will initiate combat on by itself.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.Latency = 50; Aimsharp.QuickDelay = 125; Aimsharp.SlowDelay = 250; MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); FiveLetters = GetString("First 5 Letters of the Addon:"); AmountHP = GetSlider("Don't dot below HP Amount"); PercentHP = GetSlider("Don't dot below HP%"); Spellbook.Add(MajorPower); Spellbook.Add("Agony"); Spellbook.Add("Corruption"); Spellbook.Add("Seed of Corruption"); Spellbook.Add("Unstable Affliction"); Spellbook.Add("Summon Darkglare"); Spellbook.Add("Unending Resolve"); Spellbook.Add("Command Demon"); Spellbook.Add("Malefic Rapture"); Spellbook.Add("Siphon Life"); Spellbook.Add("Vile Taint"); Spellbook.Add("Phantom Singularity"); Spellbook.Add("Shadow Bolt"); Spellbook.Add("Drain Soul"); Spellbook.Add("Haunt"); Spellbook.Add("Dark Soul: Misery"); Spellbook.Add("Unending Resolve"); Items.Add("Healthstone"); Buffs.Add("Bloodlust"); Buffs.Add("Heroism"); Buffs.Add("Time Warp"); Buffs.Add("Ancient Hysteria"); Buffs.Add("Netherwinds"); Buffs.Add("Drums of Rage"); Buffs.Add("Lifeblood"); Buffs.Add("Void Miasma"); Debuffs.Add("Concentrated Flame"); Debuffs.Add("Corruption"); Debuffs.Add("Siphon Life"); Debuffs.Add("Agony"); Debuffs.Add("Unstable Affliction"); Debuffs.Add("Vile Taint"); Debuffs.Add("Phantom Singularity"); Debuffs.Add("Seed of Corruption"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(GetDropDown("Potion Type")); Macros.Add(TopTrinket, "/use " + TopTrinket); Macros.Add(BotTrinket, "/use " + BotTrinket); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); Macros.Add("potion", "/use " + GetDropDown("Potion Type")); Macros.Add("Healthstone", "/use Healthstone"); Macros.Add("crash cursor", "/cast [@cursor] Shadow Crash"); Macros.Add("MassDispel", "/cast [@cursor] Mass Dispel"); Macros.Add("MassDispelOff", "/" + FiveLetters + " MassDispel"); Macros.Add("S2MOff", "/" + FiveLetters + " S2M"); Macros.Add("DispelOff", "/" + FiveLetters + " DispelMagic"); Macros.Add("DispersionOff", "/" + FiveLetters + " Dispersion"); Macros.Add("MindControlOff", "/" + FiveLetters + " MindControl"); Macros.Add("PsychicScreamOff", "/" + FiveLetters + " PsychicScream"); Macros.Add("PsychicHorrorOff", "/" + FiveLetters + " PsychicHorror"); Macros.Add("DispelMagicOff", "/" + FiveLetters + " DispelMagic"); Macros.Add("AgonyFocus", "/cast [@focus] Agony"); Macros.Add("AgonyBoss1", "/cast [@boss1] Agony"); Macros.Add("AgonyBoss2", "/cast [@boss2] Agony"); Macros.Add("AgonyBoss3", "/cast [@boss3] Agony"); Macros.Add("AgonyBoss4", "/cast [@boss4] Agony"); Macros.Add("CorruptionFocus", "/cast [@focus] Corruption"); Macros.Add("CorruptionBoss1", "/cast [@boss1] Corruption"); Macros.Add("CorruptionBoss2", "/cast [@boss2] Corruption"); Macros.Add("CorruptionBoss3", "/cast [@boss3] Corruption"); Macros.Add("CorruptionBoss4", "/cast [@boss4] Corruption"); Macros.Add("SLFocus", "/cast [@focus] Siphon Life"); Macros.Add("SLBoss1", "/cast [@boss1] Siphon Life"); Macros.Add("SLBoss2", "/cast [@boss2] Siphon Life"); Macros.Add("SLBoss3", "/cast [@boss3] Siphon Life"); Macros.Add("SLBoss4", "/cast [@boss4] Siphon Life"); CustomCommands.Add("NoAOE"); CustomCommands.Add("Prepull"); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); CustomCommands.Add("MassDispel"); CustomCommands.Add("JustEssences"); CustomCommands.Add("CouncilDotsOff"); CustomCommands.Add("SavePS"); CustomCommands.Add("StartCombat"); CustomFunctions.Add("UACount", "local UACount = 0\nfor i=1,20 do\nlocal unit = \"nameplate\" .. i\nif UnitExists(unit) then\nif UnitCanAttack(\"player\", unit) then\nfor j = 1, 40 do\nlocal name,_,_,_,_,_,source = UnitDebuff(unit, j)\nif name == \"Unstable Affliction\" and source == \"player\" then\nUACount = UACount + 1\nend\nend\nend\nend\nend\nreturn UACount"); CustomFunctions.Add("CorruptionCount", "local CorruptionCount = 0\nfor i=1,20 do\nlocal unit = \"nameplate\" .. i\nif UnitExists(unit) then\nif UnitCanAttack(\"player\", unit) then\nfor j = 1, 40 do\nlocal name,_,_,_,_,_,source = UnitDebuff(unit, j)\nif name == \"Corruption\" and source == \"player\" then\nCorruptionCount = CorruptionCount + 1\nend\nend\nend\nend\nend\nreturn CorruptionCount"); CustomFunctions.Add("CorruptionTargets", "local CorruptionTargets = 0\nfor i=1,20 do\nlocal unit = \"nameplate\" .. i\nif UnitExists(unit) then\nif UnitCanAttack(\"player\", unit) and UnitHealthMax(unit) > 90000 and UnitHealth(unit) > 60000 then\nCorruptionTargets = CorruptionTargets + 1\nend\nend\nend\nreturn CorruptionTargets"); CustomFunctions.Add("SoCCount", "local SoCCount = 0\nfor i=1,20 do\nlocal unit = \"nameplate\" .. i\nif UnitExists(unit) then\nif UnitCanAttack(\"player\", unit) then\nfor j = 1, 40 do\nlocal name,_,_,_,_,_,source = UnitDebuff(unit, j)\nif name == \"Seed of Corruption\" and source == \"player\" then\nSoCCount = SoCCount + 1\nend\nend\nend\nend\nend\nreturn SoCCount"); CustomFunctions.Add("TargetID", "local TargetID = 0;" + "\nif UnitExists(\"target\") then" + "\nTargetID = tonumber(UnitGUID(\"target\"):match(\"-(%d+)-%x+$\"), 10);" + "\nend" + "\nreturn TargetID;" ); CustomFunctions.Add("Boss1ID", "local Boss1ID = 0;" + "\nif UnitExists(\"boss1\") and UnitCanAttack(\"player\", \"boss1\") then" + "\nBoss1ID = tonumber(UnitGUID(\"boss1\"):match(\"-(%d+)-%x+$\"), 10);" + "\nend" + "\nreturn Boss1ID;" ); CustomFunctions.Add("Boss2ID", "local Boss2ID = 0;" + "\nif UnitExists(\"boss2\") and UnitCanAttack(\"player\", \"boss2\") then" + "\nBoss2ID = tonumber(UnitGUID(\"boss2\"):match(\"-(%d+)-%x+$\"), 10);" + "\nend" + "\nreturn Boss2ID;" ); CustomFunctions.Add("Boss3ID", "local Boss3ID = 0;" + "\nif UnitExists(\"boss3\") and UnitCanAttack(\"player\", \"boss3\") then" + "\nBoss3ID = tonumber(UnitGUID(\"boss3\"):match(\"-(%d+)-%x+$\"), 10);" + "\nend" + "\nreturn Boss3ID;" ); CustomFunctions.Add("Boss4ID", "local Boss4ID = 0;" + "\nif UnitExists(\"boss4\") and UnitCanAttack(\"player\", \"boss4\") then" + "\nBoss4ID = tonumber(UnitGUID(\"boss4\"):match(\"-(%d+)-%x+$\"), 10);" + "\nend" + "\nreturn Boss4ID;" ); }
public override void Initialize() { Aimsharp.DebugMode(); Aimsharp.PrintMessage("Vid Fury Warrior 1.02", Color.Yellow); Aimsharp.PrintMessage("Recommended Single Target talents: 2133123", Color.Yellow); Aimsharp.PrintMessage("Recommended Dungeon talents: 3133222", Color.Yellow); Aimsharp.PrintMessage("Default mode: PVE, AOE ON, USE CDs/Pots", Color.Yellow); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Yellow); Aimsharp.PrintMessage("/xxxxx Potions --Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage("/xxxxx SaveCooldowns --Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage("/xxxxx noaoe --Toggles to turn off PVE AOE on/off.", Color.Orange); Aimsharp.PrintMessage("/xxxxx AzeriteBeamOff --Toggles to turn off AzeriteBeam usage.", Color.Orange); Aimsharp.PrintMessage("/xxxxx savepp -- Toggles the use of prepull", Color.Orange); Aimsharp.PrintMessage("/xxxxx StormBolt --Queues Storm Bolt up to be used on the next GCD.", Color.Red); Aimsharp.PrintMessage("/xxxxx RallyingCry --Queues Rallying Cry up to be used on the next GCD.", Color.Red); Aimsharp.PrintMessage("/xxxxx IntimidatingShout --Queues Intimidating SHout up to be used on the next GCD.", Color.Red); Aimsharp.PrintMessage("/xxxxx Bladestorm --Queues Bladestorm up to be used on the next GCD.", Color.Red); Aimsharp.Latency = 100; Aimsharp.QuickDelay = 125; MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); RacialPower = GetDropDown("Racial Power"); usableitems = GetString("Use item: Case Sens"); AzeriteColdSteel = GetSlider("Cold Steel, Hot Blood Trait Number:"); FiveLetters = GetString("First 5 Letters of the Addon:"); Spellbook.Add(MajorPower); if (RacialPower == "Orc") { Spellbook.Add("Blood Fury"); } if (RacialPower == "Troll") { Spellbook.Add("Berserking"); } if (RacialPower == "Dark Iron Dwarf") { Spellbook.Add("Fireblood"); } if (RacialPower == "Mag'har Orc") { Spellbook.Add("Ancestral Call"); } if (RacialPower == "Lightforged Draenei") { Spellbook.Add("Light's Judgment"); } Spellbook.Add("Victory Rush"); Spellbook.Add("Enraged Regeneration"); Spellbook.Add("Avatar"); Spellbook.Add("Battle Shout"); Spellbook.Add("Heroic Throw"); Spellbook.Add("Hamstring"); Spellbook.Add("Rallying Cry"); Spellbook.Add("Defensive Stance"); Spellbook.Add("Charge"); Spellbook.Add("Heroic Leap"); Spellbook.Add("Rampage"); Spellbook.Add("Recklessness"); Spellbook.Add("Siegebreaker"); Spellbook.Add("Whirlwind"); Spellbook.Add("Execute"); Spellbook.Add("Furious Slash"); Spellbook.Add("Bladestorm"); Spellbook.Add("Bloodthirst"); Spellbook.Add("Dragon Roar"); Spellbook.Add("Raging Blow"); Spellbook.Add("Storm Bolt"); Spellbook.Add("Intimidating Shout"); Spellbook.Add("Rallying Cry"); Spellbook.Add("Onslaught"); Spellbook.Add("Enraged Regeneration"); Spellbook.Add("Bloodbath"); Spellbook.Add("Crushing Blow"); Buffs.Add("Bloodlust"); Buffs.Add("Heroism"); Buffs.Add("Time Warp"); Buffs.Add("Ancient Hysteria"); Buffs.Add("Netherwinds"); Buffs.Add("Drums of Rage"); Buffs.Add("Lifeblood"); Buffs.Add("Memory of Lucid Dreams"); Buffs.Add("Reckless Force"); Buffs.Add("Guardian of Azeroth"); Buffs.Add("Bloodlust"); Buffs.Add("Heroism"); Buffs.Add("Time Warp"); Buffs.Add("Ancient Hysteria"); Buffs.Add("Netherwinds"); Buffs.Add("Drums of Rage"); Buffs.Add("Lifeblood"); Buffs.Add("Memory of Lucid Dreams"); Buffs.Add("Reckless Force"); Buffs.Add("Guardian of Azeroth"); Buffs.Add("Recklessness"); Buffs.Add("Meat Cleaver"); Buffs.Add("Enrage"); Buffs.Add("Furious Slash"); Buffs.Add("Whirlwind"); Debuffs.Add("Razor Coral"); Debuffs.Add("Conductive Ink"); Debuffs.Add("Shiver Venom"); Debuffs.Add("Siegebreaker"); Buffs.Add("Berserker Rage"); Buffs.Add("Meat Cleaver"); Buffs.Add("Enrage"); Buffs.Add("Furious Slash"); Buffs.Add("Whirlwind"); Buffs.Add("Test of Might"); Buffs.Add("Avatar"); Buffs.Add("Sharpen Blade"); Buffs.Add("Battle Shout"); Buffs.Add("Overpower"); Buffs.Add("Bladestorm"); Buffs.Add("Defensive Stance"); Buffs.Add("Sweeping Strikes"); Buffs.Add("Sudden Death"); Debuffs.Add("Razor Coral"); Debuffs.Add("Conductive Ink"); Debuffs.Add("Shiver Venom"); Debuffs.Add("Siegebreaker"); Debuffs.Add("Rend"); Debuffs.Add("Hamstring"); Debuffs.Add("Deep Wounds"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(usableitems); Macros.Add("ItemUse", "/use " + usableitems); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); Macros.Add("StormBoltOff", "/" + FiveLetters + " StormBolt"); Macros.Add("IntimidatingShoutOff", "/" + FiveLetters + " IntimidatingShout"); Macros.Add("RallyingCryOff", "/" + FiveLetters + " RallyingCry"); Macros.Add("BladestormOff", "/" + FiveLetters + " Bladestorm"); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); CustomCommands.Add("noaoe"); CustomCommands.Add("pvp"); CustomCommands.Add("savepp"); CustomCommands.Add("StormBolt"); CustomCommands.Add("RallyingCry"); CustomCommands.Add("IntimidatingShout"); CustomCommands.Add("Bladestorm"); CustomCommands.Add("AzeriteBeamOff"); }
public override void Initialize() { Aimsharp.PrintMessage("Perfect Simcraft Series: Havoc DH - v 1.0", Color.Blue); Aimsharp.PrintMessage("Recommended talents: 2313221", Color.Blue); Aimsharp.PrintMessage("These macros can be used for manual control:", Color.Blue); Aimsharp.PrintMessage("/xxxxx Potions", Color.Blue); Aimsharp.PrintMessage("--Toggles using buff potions on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx SaveCooldowns", Color.Blue); Aimsharp.PrintMessage("--Toggles the use of big cooldowns on/off.", Color.Blue); Aimsharp.PrintMessage(" "); Aimsharp.PrintMessage("/xxxxx AOE", Color.Blue); Aimsharp.PrintMessage("--Toggles AOE mode on/off.", Color.Blue); Aimsharp.PrintMessage("--Replace xxxxx with first 5 letters of your addon, lowercase.", Color.Blue); Aimsharp.Latency = 50; Aimsharp.QuickDelay = 125; MajorPower = GetDropDown("Major Power"); TopTrinket = GetDropDown("Top Trinket"); BotTrinket = GetDropDown("Bot Trinket"); Spellbook.Add(MajorPower); Spellbook.Add("Blade Dance"); Spellbook.Add("Metamorphosis"); Spellbook.Add("Nemesis"); Spellbook.Add("Eye Beam"); Spellbook.Add("Dark Slash"); Spellbook.Add("Fel Barrage"); Spellbook.Add("Chaos Strike"); Spellbook.Add("Death Sweep"); Spellbook.Add("Immolation Aura"); Spellbook.Add("Annihilation"); Spellbook.Add("Felblade"); Spellbook.Add("Demon's Bite"); Spellbook.Add("Throw Glaive"); Buffs.Add("Revolving Blades"); Buffs.Add("Metamorphosis"); Buffs.Add("Momentum"); Buffs.Add("Memory of Lucid Dreams"); Buffs.Add("Thirsting Blades"); Buffs.Add("Prepared"); Buffs.Add("Lifeblood"); Debuffs.Add("Razor Coral"); Debuffs.Add("Conductive Ink"); Debuffs.Add("Dark Slash"); Items.Add(TopTrinket); Items.Add(BotTrinket); Items.Add(GetDropDown("Potion Type")); Macros.Add("TopTrink", "/use 13"); Macros.Add("BotTrink", "/use 14"); Macros.Add(TopTrinket, "/use " + TopTrinket); Macros.Add(BotTrinket, "/use " + BotTrinket); Macros.Add("potion", "/use " + GetDropDown("Potion Type")); Macros.Add("meta self", "/cast [@player] Metamorphosis"); CustomCommands.Add("Potions"); CustomCommands.Add("SaveCooldowns"); CustomCommands.Add("AOE"); }
public VoidReasonListViewModel() { CreateBatchVoidReasons = new CaptionCommand <string>(Resources.BatchAddVoidReasons, OnCreateBatchVoidReasons); CustomCommands.Add(CreateBatchVoidReasons); }
public override void Initialize() { Class = GetDropDown("Class"); Aimsharp.PrintMessage("Arena Interrupts Plugin"); Aimsharp.PrintMessage("This plugin will only work inside arenas!"); Aimsharp.PrintMessage("Do not use this together with the normal Kicks plugin!"); Aimsharp.PrintMessage("Use this macro to hold your kicks for a number of seconds: /xxxxx SaveKicks #"); Aimsharp.PrintMessage("For example: /xxxxx SaveKicks 5"); Aimsharp.PrintMessage("will make the bot not kick anything for the next 5 seconds."); if (Class == "Hunter") { Interrupts.Add("Counter Shot"); } if (Class == "Rogue") { Interrupts.Add("Kick"); } if (Class == "Priest") { Interrupts.Add("Silence"); } if (Class == "Demon Hunter") { Interrupts.Add("Disrupt"); } if (Class == "Shaman") { Interrupts.Add("Wind Shear"); Specials.Add("Grounding Totem"); Specials.Add("Lightning Lasso"); } if (Class == "Paladin") { Interrupts.Add("Rebuke"); } if (Class == "Death Knight") { Interrupts.Add("Mind Freeze"); } if (Class == "Druid") { Interrupts.Add("Skull Bash"); Interrupts.Add("Solar Beam"); } if (Class == "Warlock") { Interrupts.Add("Spell Lock"); Specials.Add("Mortal Coil"); } if (Class == "Mage") { Interrupts.Add("Counterspell"); } if (Class == "Monk") { Interrupts.Add("Spear Hand Strike"); } if (Class == "Warrior") { Interrupts.Add("Pummel"); } foreach (string Interrupt in Interrupts) { Spellbook.Add(Interrupt); Macros.Add(Interrupt + "1", "/cast [@arena1] " + Interrupt); Macros.Add(Interrupt + "2", "/cast [@arena2] " + Interrupt); Macros.Add(Interrupt + "3", "/cast [@arena3] " + Interrupt); } foreach (string Special in Specials) { Spellbook.Add(Special); Macros.Add(Special + "1", "/cast [@arena1] " + Special); Macros.Add(Special + "2", "/cast [@arena2] " + Special); Macros.Add(Special + "3", "/cast [@arena3] " + Special); } foreach (string immune in immunes) { Buffs.Add(immune); } foreach (string spell_immune in spell_immunes) { Buffs.Add(spell_immune); } foreach (string physical_immune in physical_immunes) { Buffs.Add(physical_immune); } CustomCommands.Add("SaveKicks"); }
public TableListViewModel() { BatchCreateTables = new CaptionCommand <string>(Resources.AddMultipleTables, OnBatchCreateTablesExecute); CustomCommands.Add(BatchCreateTables); }