Jump to content

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


Recommended Posts

Posted

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);

 

Posted
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

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