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.

Why is my paint not working?

Featured Replies

Hey,

 

I've just come back to make bot scripts again and i was wondering why my paint is not working anymore.. I haven't seen in other scripts the code is any different from mine:

 

public void onPaint(Graphics g)
{
Graphics2D gr = (Graphics2D)g;
gr.setColor(Color.RED);
gr.setFont(new Font("Arial", Font.PLAIN,20));
 
gr.drawString("Ores Mined: " + ore, 215,  50);
g
gr.drawString("Time running: " + uuren(runTime3.getElapsed()) + ":" + minuuten(runTime2.getElapsed()) + ":" + secoonden(runTime.getElapsed()) + ".", 25,  190);
 
gr.drawString("Status: " + status, 25,  210);
 
}
 
Probs im overlooking something... Hope you can help me. 
 
Thanks in regard,
 
Redeye

onPaint takes Graphics2D now instead of Graphics, thats why tongue.png

op override the onPaint in your script. But the said code under it and remember to use Graphics2D as the arugment. Then it should work

  • Author

Hey,

 

Thank you very much all for the feedback! Indeed a lot has haha, but will get there :D Some good API's i saw tho!

 

 

Guest
This topic is now closed to further replies.

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.