Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to sell the whole amount of an item in the GE?

Featured Replies

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.

Have you tried 

grandExchange.sellItem(439, 30, inventory.getAmount(439));

Edited by Slut

  • 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.

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.

  • 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.

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 by progamerz

  • 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 by trainux

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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.