Jump to content

Easier way to get buy price + 5/10%?


osDude

Recommended Posts

Hi, 

I'm trying to buy a shark but for +5% or 1 up arrow click. But I was curious if there was an easier/cleaner method besides doing the math 20x and saving it in different variables?

Or do I have to do this for every item I have?

Right now I have, 

buySharksPrice = sharksPrice + (sharksPrice * .05);

               getGrandExchange().buyItem(sharkID, "Shark", buySharksPrice, 1);

 

Link to comment
Share on other sites

1 hour ago, osDude said:

Hi, 

I'm trying to buy a shark but for +5% or 1 up arrow click. But I was curious if there was an easier/cleaner method besides doing the math 20x and saving it in different variables?

Or do I have to do this for every item I have?

Right now I have, 


buySharksPrice = sharksPrice + (sharksPrice * .05);

               getGrandExchange().buyItem(sharkID, "Shark", buySharksPrice, 1);

 

just click on the up arrow widget lol

  • Boge 1
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.
Note: Your post will require moderator approval before it will be visible.

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