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

experienceTracker for all skills

Featured Replies

Hey right now i can only show xp/hour for a specific skill

 experienceTracker.getGainedXPPerHour(Skill.STRENGTH) 

How can i show all the skills in Xp/hour 

 

 

Hey right now i can only show xp/hour for a specific skill

 experienceTracker.getGainedXPPerHour(Skill.STRENGTH) 

How can i show all the skills in Xp/hour 

 

If i'm understanding your question correctly, just check to ssee what stat is gaining exp. Then, set that as the xp to show, and if they're training on balanced make sure they can all show.

 

du talar svenska?

Edited by Twin

  • Author

If i'm understanding your question correctly, just check to ssee what stat is gaining exp. Then, set that as the xp to show, and if they're training on balanced make sure they can all show.

 

So how do i check what skill the user gets Xp from, sorry for asking to much but i would like to be a good SDN scripter 

Edited by hajar424

So how do i check what skill the user gets Xp from, sorry for asking to much but i would like to be a good SDN scripter

I've never had to do it before, but I'm pretty sure you can just do like

If (strGainedExp > 0)

g.drawString(""+strPerHour,40,290);

getExperienceTracker().startAll()

getExperienceTracker().get(....)

(Written on my phone; double check syntax before using)

Just iterate all skills:

 

int x = 100, y = 80;

for(Skill s : Skill.values()) {
   if(experienceTracker.getGainedXP(s) > 0) {
      g.drawString(s.toString()+": "+experienceTracker.getGainedXP(s), x, y+=20);
   }
}

The skill tracker still sucks. At least in my own class. I have a method that returns an array list of skills that gained experience. Which is what he's looking for.

The skill tracker still sucks. At least in my own class. I have a method that returns an array list of skills that gained experience. Which is what he's looking for.

Nah imo it provides all the stuff 99% of the scripts need. I mean, you don't expect to gain construction xp while fishing or something...

Nah imo it provides all the stuff 99% of the scripts need. I mean, you don't expect to gain construction xp while fishing or something...

I'm talking about the functionality of the class sucks. It's lacking methods in my opinion.

I'm talking about the functionality of the class sucks. It's lacking methods in my opinion.

 

Maybe instead of just writing your opinion you could release your "fixed" version? Would be interested to see it :)

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.