June 23, 20187 yr 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.
June 23, 20187 yr Have you tried grandExchange.sellItem(439, 30, inventory.getAmount(439)); Edited June 23, 20187 yr by Slut
June 23, 20187 yr Author 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.
June 23, 20187 yr 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.
June 23, 20187 yr Author 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.
June 23, 20187 yr 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, 20187 yr by progamerz
June 26, 20187 yr Author 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, 20187 yr by trainux
June 26, 20187 yr 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().
Create an account or sign in to comment