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.

Experience Tracker

Featured Replies

Well, tried looking to better paint methods (ExperienceTracker api), and I'm not the best @ scripting and Java but I'm positive I did this right...

 

I've already defined ExperienceTracker as: (Don't criticize my naming)

ExperienceTracker  xpTrack= new ExperienceTracker();

So in my onStart method, I have this:

xpTrack.start(Skill.MINING);

Then my paint, as well, these don't even show up:

g.drawString("Experience: " + xpTrack.getGainedXP(Skill.MINING) + " (" + xpTrack.getGainedXPPerHour(Skill.MINING) + ")", 15, 101);
g.drawString("Level: " + this.beginningLevel + " (" + xpTrack.getGainedLevels(Skill.MINING) + ")", 15, 115);

And I wasn't getting any errors... but the log for when I started the script:

[INFO][Bot #1][08/13 07:31:44 PM]: Thanks for using WWFMiner!
[INFO][Bot #1][08/13 07:31:44 PM]: Error in script onExit(): WWFMiner
[INFO][Bot #1][08/13 07:31:44 PM]: Script WWFMiner has exited!

I'm guessing you need to call

 

xpTrack.exchangeContext(this);

 

Also you should post these into the scripting help section so others (ie starting scripters) can benefit from this too

  • Author

I'm guessing you need to call

 

xpTrack.exchangeContext(this);

 

Also you should post these into the scripting help section so others (ie starting scripters) can benefit from this too

 

Oop, true. I'll move it there, and I'll see if that is the problem.

I'm guessing you need to call

 

xpTrack.exchangeContext(this);

 

Also you should post these into the scripting help section so others (ie starting scripters) can benefit from this too

 

 

Oop, true. I'll move it there, and I'll see if that is the problem.

 

noobs

 

initialize your global instance using the getter method from method provider do it on the onStart

ExperienceTracker  xpTrack;

onStart() {
this.xpTrack = getExperienceTracker();
}

Edited by jos3dpay

 

noobs

 

initialize your global instance using the getter method from method provider do it on the onStart

ExperienceTracker  xpTrack;

onStart() {
this.xpTrack = getExperienceTracker();
}

 

No. Don't do eet.

  • Author

 

noobs

 

initialize your global instance using the getter method from method provider do it on the onStart

ExperienceTracker  xpTrack;

onStart() {
this.xpTrack = getExperienceTracker();
}

 

Much thank.

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.