Jump to content

Explv's Dank Paint Tutorial


Recommended Posts

Posted
5 minutes ago, Antonio Kala said:

Someone told me paint runs on a separate thread regardless of what it is, and thus it's better if avoided?

Paint is on a separate thread yes, but for simple code like multiplying and dividing to get two numbers youd be hard pressed to hit CPU limitations before ram limitations of the bot itself. Also a clean install of an OS still has 500ish give or take threads even with nothing open. By opening and closing OSbot and looking at threads in task Manager OSbot has around 40-50 threads itself.

 

  • Like 1
  • 1 year later...
Posted
10 minutes ago, Bot6669999 said:

        g.drawString("XP Gained: "  + (Skill.THIEVING), 10, 320);
 

Any chance of you telling me the correct drawstring?

Look at the following sections on the tutorial:

  1. Starting the experience tracker
  2. Using the experience tracker

It's very clear, you start the experience tracker in onStart, and then you use the getGainedXP function in your onPaint to get the gained XP
 

Posted
4 minutes ago, Explv said:

Look at the following sections on the tutorial:

  1. Starting the experience tracker
  2. Using the experience tracker

It's very clear, you start the experience tracker in onStart, and then you use the getGainedXP function in your onPaint to get the gained XP
 

Yeah I cracked it after a while just took some patience

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...