Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

Recommended Posts

Hello all, help please, need code to  sell items to vendor 
 

if (wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWith(Npc npc, bool skipIfCannotMakePath = false, 
BooleanDelegate conditionExit = null, bool acceptNpcDead = false))
            {
                wManager.Wow.Helpers.Vendor.SellItems(List<String> itemSell, List<string> itemNoSell, 
List<Enums.WoWItemQuality> itemQuality);
            }

this code dont work

Share this post


Link to post
Share on other sites

need  code to sell items after interract to vendor ,  i want to full manualy selling items for 100% work, 
pulse csharp or runcode
exist code?any help

i use interractwithnpc   and next step need code to sell all items without dinotselllist items

Share this post


Link to post
Share on other sites

i put this code in runcode and have string error 

wManager.Wow.Helpers.Vendor.SellItems(List<String> itemSell, List<string> itemNoSell, 
List<Enums.WoWItemQuality> itemQuality);

Share this post


Link to post
Share on other sites
1 minute ago, BetterSister said:
wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWith

 

can't be used as boolean

i about this,   

wManager.Wow.Helpers.Vendor.SellItems(List<String> itemSell, List<string> itemNoSell, 
List<Enums.WoWItemQuality> itemQuality);

Share this post


Link to post
Share on other sites
Just now, zatvorgt said:

maybe exist another code to manual selling who have dontsellist

Is it because there are specific items you want to sell, or is it a specific vendor you want to use?

Share this post


Link to post
Share on other sites

specific vendor   ,
i interract with him wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc
and next step need code to selling him all items and save donotselllist items

Share this post


Link to post
Share on other sites
4 minutes ago, zatvorgt said:

specific vendor   ,
i interract with him wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc
and next step need code to selling him all items and save donotselllist items

You can just go to that vendor and call ToTown, it should use the nearest vendor?

Edit: I mean go to the vendor, open his trade window.

Edited by Ordush

Share this post


Link to post
Share on other sites
4 hours ago, Ordush said:

You can just go to that vendor and call ToTown, it should use the nearest vendor? 

Edit: I mean go to the vendor, open his trade window.

As far as i know, not every vendor is working like this. Wrobot is ignoring some vendors completely. He interacts, open trade window, do nothing, close trade window and then repeat.

Share this post


Link to post
Share on other sites
41 minutes ago, Findeh said:

Насколько я знаю, не каждый продавец работает так. Wrobot полностью игнорирует некоторые производители. Он взаимодействует, открывает окно торговли, ничего не делает, закрывает окно торговли, а затем повторяется.

yes,  need manual code to sell items 

Share this post


Link to post
Share on other sites
Just now, zatvorgt said:

i search this code, work good, maybe resolve my problem, will see tomorrow

wManager.Wow.Bot.States.ToTown.ForceToTown = true;

But.. That is what i started telling you to use 😛

Share this post


Link to post
Share on other sites
int bagSlots = 4;
if (Lua.LuaDoString<bool>("show=MerchantFrame:IsShown();", "show"))
{
  for (int i = 0; i < bagSlots; i++)
  {
    int numSlots = Lua.LuaDoString<int>("bagSlots=GetContainerNumSlots(" + i + ");", "bagSlots");
    for (int a = 1; a < numSlots; a++)
    {
      string itemLink = Lua.LuaDoString<string>("itemLink=GetContainerItemLink(" + i + ", " + a + ");", "itemLink");
      if (!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(System.Text.RegularExpressions.Regex.Match(itemLink, @"\[([^)]*)\]").Groups[1].Value) &&
          itemLink != "nil")
      {
        Logging.WriteDebug("Selling " + System.Text.RegularExpressions.Regex.Match(itemLink, @"\[([^)]*)\]").Groups[1].Value);
        Lua.LuaDoString("UseContainerItem(" + i + ", " + a + ");");
      }
      Thread.Sleep(500);
    }
  }
}

 

Share this post


Link to post
Share on other sites
List<WoWItemQuality> quality = new List<WoWItemQuality> // Quality items to sell
{ WoWItemQuality.Common, 
WoWItemQuality.Poor, 
WoWItemQuality.Rare, 
WoWItemQuality.Epic, 
WoWItemQuality.Uncommon 
};
var Sellitems = new List<string>();

if (wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new robotManager.Helpful.Vector3(-2978.95f, 4033.11f, 3.574616f, "Flying"), 19056)) // interact with npc code 
{
                        foreach(var item in Bag.GetBagItem())
                        {
                            if (item != null && !wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(item.Name))
                            {
                                Sellitems.Add(item.Name);
                            }
                        }
                        Vendor.SellItems(Sellitems , wManager.wManagerSetting.CurrentSetting.DoNotSellList, quality);
                        Vendor.RepairAllItems();
}
Thread.Sleep(10000);

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...