AnS

AnS

25.9k Downloads

Own commodities break sniper buyout

jeykey opened this issue · 4 comments

commented

You can not buy a stack of commodities if it contains your own items within the stack.
Not sure if it is possible to filter out your own items somehow. I tried to add myself to the blacklist but it did not help.

I get following error message:
AnS: Updated total price of commodities is higher than original total purchase price.

commented
commented

Ah, looks like I missed the new api they included. I wasn't sure what it was fo,r but now I know. In SendSearchQuery(itemKey, sort, separateOwnerItems), if separateOwnerItem is true, then the results will separate out your owned items (account / character related etc), from other auctions. For instance if you have 12 winterkiss posted at the lowest with others, then the search query will return your 12 as a separate result from the other winterkiss that may be listed at the same ppu. Combine that with the other two fields provided by the new search result object: containsOwnerItem and containsAccountItem, we can filter out account and owner items without a blacklist.

However, I will go ahead and update the blacklist to support multiple owner check as well.

I have confirmed the above SendSearchQuery with separate and containsOwnerItem and containsAccountItem check works. I have 3 veiled crystals up at the same price of 751 others. Without using the new separateOwnerItems and contains checks returns 754 veiled crystals. However, with the new check it now only returns the 751 others. Will push this update out shortly.

commented

Changes pushed to git and curseforge (may take a few before curseforge approves).

commented

Well that was a quick fix. Thanks!