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.

Still new to it...

Featured Replies

Hello again

 

I have decided to start making my own private scripts.

 

Still extremely new, so I am using open source scripts to kind of tinker with, to try and get a feel for.

 

I am stuck with a problem to which most developers could fix in 1 second:

 

Time until level...

 

I currently have this:                    

 

 

 

                    int xpGained = this.client.getSkills().getExperience(Skill.AGILITY) - this.startXp;
                    int xpPerHour = (int)(xpGained * 3600000.0D / (System.currentTimeMillis() - this.startTime));

 

                   

                    g.drawString("Runtime: "+hours+":"+minutes+":"+seconds, 381, 280);
                    g.drawString("Xp Gained: " + xpGained, 381, 295);
                    g.drawString("Xp / Hour: " + xpPerHour, 381, 310);

 

 

How would I add a time until level int?

 

Mathematically I know it is exp/hour / exp needed.

 

 

Can someone help me real quick with this?

 

 

 

 

 

Thank you smile.png

Edited by Sk00n

  • Author

mathematically it is exp needed/ exp/hour

 

Typed it backwards :D

 

On topic, where could I find it in the API?

  • Author

Not sure if it is in API.

Looks like it is not.

 

My problem is figuring out how to write the exp needed

 

To make that, it is: Next level exp - current level exp.

 

How do I write that correctly? :\

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.