Jump to content
Dab in a Lab

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

Recommended Posts

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()?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...