Hello Guys,
I'm looking for a way to implement functions in which the offers on a certain item are returned as a string. I'm well aware of the existing market functions such as below:
Code:buyitemsmarket ( string itemname , number price , number amount , optional bool createoffer , optional bool offeranonymous )But by the way I see it, neither them nor any other routine exists that allows me to obtain, as example, the highest existing offer price or the amount of the highest existing order.Code:sellitemsmarket ( string itemname , number price , number amount , optional bool createoffer , optional bool offeranonymous )
Perhaps you guys could give me an idea of how to make that kind of function or perhaps the only way to do so would be in the part of the WB code we can't actually access, therefore some help of @Leonardo @Lucas Terra and @Raphael would be more than welcome.
Another kind of function that, yet not strictly necessary, would help me out a lot on the code I'm thinking of, would be to access "My Offers" also making possible to obtain the list of items I currently have on market.
A non ideal but functional solution would be if the existing Buy and Sell functions returned the a reporting value, such as the amount of items that it were able to sell or even a true or false statement pointing if it sold anything. That could be somewhat implemented in the existing functions when you want to accept an existing offer through the handling of $balance values, but not when you want to create offers.
Thanks in advance guys