Jump to content

Explv's Dank Paint Tutorial


Explv

Recommended Posts

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
Link to comment
Share on other sites

  • 1 year later...
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
 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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