June 7, 20178 yr Hello, does anyone know the runcode to put an item in the list: "Do not Sell List" plzzz Thanks in advance ;p
June 7, 20178 yr Hello, wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add("item name"); But to avoid duplicate: var itemName = "item name"; if (!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(itemName)) wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(itemName);
August 21, 20178 yr Where can I run the code? Is not there one that allows me to automatically add everything I have in the bag?
August 23, 20178 yr On 21/08/2017 at 6:38 PM, joseocnejo said: Where can I run the code? Is not there one that allows me to automatically add everything I have in the bag? foreach (var woWItem in wManager.Wow.Helpers.Bag.GetBagItem()) { if (!string.IsNullOrWhiteSpace(woWItem.Name) && !wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(woWItem.Name)) wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(woWItem.Name); } You can run this code in quester profile, custom profile, plugin, ...., or in "dev... tools" (tab "Tools")
May 4, 20223 yr On 6/7/2017 at 3:01 PM, Droidz said: Hello, wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add("item name"); But to avoid duplicate: var itemName = "item name"; if (!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(itemName)) wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(itemName); can i add loop option to add multi objects ? Thanks
May 4, 20223 yr 3 hours ago, Sye24 said: List<String> ItemNames = new List<string> { "First Item", "second Item", //etc }; foreach (string ItemName in ItemNames) { if(!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(ItemName)) wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(itemName); } add your time to the list and run this as RunCode List<String> ItemNames = new List<string> { "Hearthstone", "Linen Cloth", "Lesser Healing Potion", "Minor Healing Potion", }; foreach (string ItemName in ItemNames) { if(!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(ItemName)) wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(itemName); } it give me that error , On 6/7/2017 at 3:01 PM, Droidz said: Hello, wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add("item name"); But to avoid duplicate: var itemName = "item name"; if (!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(itemName)) wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(itemName);
May 5, 20223 yr List<String> ItemNames = new List<string> { "First Item", "second Item", //etc }; foreach (string ItemName in ItemNames) { if(!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(ItemName)) wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(ItemName); }
May 5, 20223 yr 3 hours ago, Droidz said: List<String> ItemNames = new List<string> { "First Item", "second Item", //etc }; foreach (string ItemName in ItemNames) { if(!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(ItemName)) wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(ItemName); } Thank you Work Perfect
Create an account or sign in to comment