trainux Posted June 23, 2018 Share Posted June 23, 2018 How to sell the whole amount of an item in the GE? Guiding me from the API GrandExchange Sell Item I try in the following way: grandExchange.sellItem(439, 30, 0); Automatically places to sell a single item. I put "0" at the end, assuming that it interprets that they are all those that are in the inventory. I would like to sell them all in one sale. Quote Link to comment Share on other sites More sharing options...
Hel Posted June 23, 2018 Share Posted June 23, 2018 (edited) Have you tried grandExchange.sellItem(439, 30, inventory.getAmount(439)); Edited June 23, 2018 by Slut 1 Quote Link to comment Share on other sites More sharing options...
trainux Posted June 23, 2018 Author Share Posted June 23, 2018 1 minute ago, Slut said: Have you tried grandExchange.sellItem(439, 30, ); Assuming you say "null", then "eclipse" tells me that it is not an allowed parameter. Quote Link to comment Share on other sites More sharing options...
Hel Posted June 23, 2018 Share Posted June 23, 2018 17 hours ago, trainux said: Assuming you say "null", then "eclipse" tells me that it is not an allowed parameter. re read it, I had to edit it because my web browser is rooted atm. Quote Link to comment Share on other sites More sharing options...
trainux Posted June 23, 2018 Author Share Posted June 23, 2018 15 minutes ago, Slut said: re read it, I had to edit it because my web browser is rooted atm. Yeah! good idea to solve the amount. Thank you thank you very much. Solved. Quote Link to comment Share on other sites More sharing options...
progamerz Posted June 23, 2018 Share Posted June 23, 2018 (edited) 1 hour ago, trainux said: Yeah! good idea to solve the amount. Thank you thank you very much. Solved. Or, u can just select the item whenever ge is open, assuming its note/stacked, it would automatically set the amount in ge to full. if(item != null){ //checks and etc. if(item.interact()){ //conditionalsleep } } Edited June 23, 2018 by progamerz 1 Quote Link to comment Share on other sites More sharing options...
trainux Posted June 26, 2018 Author Share Posted June 26, 2018 (edited) On 6/23/2018 at 2:19 AM, progamerz said: Or, u can just select the item whenever ge is open, assuming its note/stacked, it would automatically set the amount in ge to full. if(item != null){ //checks and etc. if(item.interact()){ //conditionalsleep } } Thanks :D Edited June 26, 2018 by trainux 1 Quote Link to comment Share on other sites More sharing options...
Canidae Posted June 26, 2018 Share Posted June 26, 2018 On 6/23/2018 at 6:31 AM, trainux said: Assuming you say "null", then "eclipse" tells me that it is not an allowed parameter. An integer can never be null. The best way is to just do getInventory().getAmount(). 1 Quote Link to comment Share on other sites More sharing options...