Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved GrandExchange.placeSellOffer() is broken

Joined
Jun 8, 2017
Messages
187
I'm trying to sell 10 Runite bars with GrandExchange.placeSellOffer() but this seems broken. It opens the sell menu, selects to correct item, but then the problems begin.

The quantity of the item is automatically 10, but it still tries to input 10 as a value (not needed).
After this GrandExchange.placeSellOffer() returns false and my bot tries again. But the same problem keeps occuring, it just keeps entering 10 as quantity.

If i first put the quantity on 1, it will do the exact same (change quantity to 10 and return false)

My guess would be that the api fails the pull the quantity in the grandexchange sell offer menu and returns 0, causing a check that says "we failed to change the quantity from 0 to 10".


"BF - Failed to put sell offer" is when GrandExchange.placeSellOffer() returns false;
[GrandExchange] Current screen: OVERVIEW
00:02:25 INFO [GrandExchange] Opening SELL screen.
00:02:25 INFO [GrandExchange] Selecting SpriteItem to sell.
00:02:25 INFO [GrandExchange] Item: Runite bar x10
00:02:26 INFO BF - Failed to put sell offer
00:02:26 INFO [GrandExchange] Current screen: SETUP_SELL_OFFER
00:02:26 INFO [GrandExchange] Selecting SpriteItem to sell.
00:02:26 INFO [GrandExchange] Item: Runite bar x10
00:02:27 INFO [GrandExchange] Configuring values.
00:02:30 INFO BF - Failed to put sell offer
00:02:31 INFO [GrandExchange] Current screen: SETUP_SELL_OFFER
00:02:31 INFO [GrandExchange] Configuring values.
00:02:33 INFO BF - Failed to put sell offer
00:02:34 INFO [GrandExchange] Current screen: SETUP_SELL_OFFER
00:02:34 INFO [GrandExchange] Configuring values.
00:02:36 INFO BF - Failed to put sell offer
00:02:37 INFO [GrandExchange] Current screen: SETUP_SELL_OFFER
00:02:37 INFO [GrandExchange] Configuring values.
00:02:39 INFO BF - Failed to put sell offer
00:02:40 INFO [GrandExchange] Current screen: SETUP_SELL_OFFER
00:02:40 INFO [GrandExchange] Configuring values.
00:02:42 INFO BF - Failed to put sell offer

if (GrandExchange.placeSellOffer("Runite bar", 10, 10000)) {

Execution.delayWhile(() -> GrandExchange.newQuery().sellOffers().itemNames(bot.getCurrentBarType()).completed().results().isEmpty(), 1, 15000);

} else {

bot.logText("Failed to put sell offer", 3);
return;

}
 
Top