Jump to content

How to add 5 or 10% to a buy offer?


Recommended Posts

Posted

I've been using getGrandExchange().buyItem(itemId:  searchTerm:   price:   quanitity:   ) and tried setting up an integer using getGrandExchange().getOfferPrice() and multiply it by .05 as a separate integer, but its not an acceptable action. It tells me its a double when it requires an int. I've also tried having it interact with the +5% widget, but it doesn't preform the action if I have it before or after the buyItem().

I've also tried directly putting the widget interaction in as the price, but it also has to be an integer.

Whats the best way to do this? Do I need to set up my own GrandExchange function and not use buyItem()?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...