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.

Paint XP Drop

Featured Replies

Thanks to @Jack for sparking the idea QwPha8E.png

 

Variables:

int currentXP;
int gainedXP;
int drawXP;
int screenWidth = 520;
int screenHeight = 337;
double yMovement;
int alpha = 255; 

In your onStart method:

currentXP = client.getSkills().getExperience(Skill.YOUR_SKILL);

Code for your onPaint method:

gainedXP = client.getSkills().getExperience(Skill.YOUR_SKILL);

if (gainedXP != currentXP) {
    drawXP = gainedXP - currentXP;
    currentXP = client.getSkills().getExperience(Skill.YOUR_SKILL);
    yMovement = 0;
    alpha = 255;
}
if (drawXP != 0 && alpha > 1) {
    g.setColor(new Color(255, 255, 255, alpha -= 2));
    String drawString = "+ " + drawXP;
    int stringLength = (int) g.getFontMetrics().getStringBounds(drawString, g).getWidth();
    g.drawString(drawString, screenWidth / 2 - stringLength / 2, (int) ((screenHeight / 2) - (yMovement += .7)));
}

If you're drawing other things after this remember to set the color back to what you want!! Here's what it looks like in game:

a1ca5fca8f2d3b4d519e546d5df4222c.gif

Edited by Swizzbeat

  • Author

nice, I hope i helped

I forget what it is you said but it sparked something, so yes you did help and I thank you smile.png added you to OP as well <3

Edited by Swizzbeat

Guest
This topic is now closed to further replies.

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.