What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

BuyItem core function does not function for items with higher quantities...

namednoob

Community Developer
Joined
Apr 25, 2014
Messages
1,097
Reaction score
23
Usually I would report this to either the Bug Report or Feedback threads at the main forum stickies however those are currently closed.

I've found a issue with a core function where it does not let you buy items that hold multiple quantities, an example is the Draenic Dust, that is sold at the Trading Post by one of the daily spawned NPC's for example Trader Yula.

What happens is that the Draenic Dust sold by those NPC's come in the quantities of 5 and the method available within MerchantFrame Class called BuyItem, does not seem to work for that purpose.

If you run BuyItem with the item index and quantity, it will tell you that you cannot buy that amount of that item in the wow window in red letters.

What I believe the issue is, is that, that method does not take into account the item quantity and rather tries to buy the quantity of 1, 5 times which is the cause of the in-game warning in red letters.

I would like to request the BuyItem to be updated so that we are able to further use it to safely buy items from Trading Post, Honor NPC's and alike that sell mats in different quantities.

I am aware that I can buy those using a LUA call like such:
Code:
/script BuyMerchantItem(itemSlot, itemQuantity)

And unhappily since i have no access to the source of BuyItem I can't say why it would be better or not to have that method updated other than assume that it possible hooks to internal game calls to execute the item purchase rather than a LUA code making it safer to use specially on repeated amount of purchases?

I would like to leave here my request to update that method so that it properly functions for any purchase methods available within the game which from what it seems this was the one missing...

Thanks.
 
Hi, Namednoob, and many thanks for the report,

For future reference, if you take a look at the closed threads you cited, we are now asking for such information to be reported to the current Release thread.

We've opened HB-1895 ("BuyItem core function does not function for items with higher quantities") against this issue. But, so the report can be sharpened, please tell us which BuyItem() API you're having problems with:

  1. Bots.DungeonBuddy.Helpers.ScriptHelpers.BuyItem(uint, int)
  2. Bots.Professionbuddy.Components.BuyItemAction.BuyItem(uint, int)
  3. Styx.CommonBot.Frames.MerchantFrame.BuyItem(int, int)
  4. Styx.CommonBot.Frames.MerchantFrame.BuyItem(string, int)
  5. Styx.CommonBot.Vendors.BuyItems()
cheers,
chinajade
 
Hi, Namednoob, and many thanks for the report,

For future reference, if you take a look at the closed threads you cited, we are now asking for such information to be reported to the current Release thread.

That was indeed my fault there, I didn't checked those threads since they were close for some time now and I apologize for that.

On the other hand, thanks for taking the time to answer here and promptly assign it as a bug.

We've opened HB-1895 ("BuyItem core function does not function for items with higher quantities") against this issue. But, so the report can be sharpened, please tell us which BuyItem() API you're having problems with:

  1. Bots.DungeonBuddy.Helpers.ScriptHelpers.BuyItem(uint, int)
  2. Bots.Professionbuddy.Components.BuyItemAction.BuyItem(uint, int)
  3. Styx.CommonBot.Frames.MerchantFrame.BuyItem(int, int)
  4. Styx.CommonBot.Frames.MerchantFrame.BuyItem(string, int)
  5. Styx.CommonBot.Vendors.BuyItems()
cheers,
chinajade

I was using Styx.CommonBot.Frames.MerchantFrame.BuyItem(int, int) but I believe that Styx.CommonBot.Frames.MerchantFrame.BuyItem(string , int) will have the same issue due to its nature.
 
Last edited:
Back
Top