nicozo 11 Posted June 7, 2017 Share Posted June 7, 2017 Hello, does anyone know the runcode to put an item in the list: "Do not Sell List" plzzz Thanks in advance ;p Link to comment Share on other sites More sharing options...
Arcangelo 105 Posted June 7, 2017 Share Posted June 7, 2017 In advance settings, in buy/sell there are a "do not sell" list Link to comment Share on other sites More sharing options...
Droidz 2733 Posted June 7, 2017 Share Posted June 7, 2017 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); saleh and happiness7 1 1 Link to comment Share on other sites More sharing options...
nicozo 11 Posted June 7, 2017 Author Share Posted June 7, 2017 Thank a lot droidz This is what I was looking for <3 Link to comment Share on other sites More sharing options...
joseocnejo 0 Posted August 21, 2017 Share Posted August 21, 2017 Where can I run the code? Is not there one that allows me to automatically add everything I have in the bag? Link to comment Share on other sites More sharing options...
Droidz 2733 Posted August 23, 2017 Share Posted August 23, 2017 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") Link to comment Share on other sites More sharing options...
joseocnejo 0 Posted August 23, 2017 Share Posted August 23, 2017 Very ty Link to comment Share on other sites More sharing options...
saleh 13 Posted May 4, 2022 Share Posted May 4, 2022 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 Link to comment Share on other sites More sharing options...
saleh 13 Posted May 4, 2022 Share Posted May 4, 2022 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); Link to comment Share on other sites More sharing options...
saleh 13 Posted May 5, 2022 Share Posted May 5, 2022 45 minutes ago, Sye24 said: the i in .add needs to upper case Link to comment Share on other sites More sharing options...
Droidz 2733 Posted May 5, 2022 Share Posted May 5, 2022 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); } saleh 1 Link to comment Share on other sites More sharing options...
saleh 13 Posted May 5, 2022 Share Posted May 5, 2022 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now