IDontEB Posted August 9, 2017 Share Posted August 9, 2017 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. 1 Quote Link to comment Share on other sites More sharing options...
TutIslander Posted September 23, 2018 Share Posted September 23, 2018 So how would I go about displaying XP Gained? Quote Link to comment Share on other sites More sharing options...
Explv Posted September 23, 2018 Author Share Posted September 23, 2018 3 minutes ago, Bot6669999 said: So how would I go about displaying XP Gained? Look at the following sections on the tutorial: Drawing text on screen Starting the experience tracker Using the experience tracker (optional) Formatting money and XP Quote Link to comment Share on other sites More sharing options...
TutIslander Posted September 23, 2018 Share Posted September 23, 2018 22 minutes ago, Explv said: Look at the following sections on the tutorial: Drawing text on screen Starting the experience tracker Using the experience tracker (optional) Formatting money and XP I have multiple times it just doesn't make it very clear Quote Link to comment Share on other sites More sharing options...
TutIslander Posted September 23, 2018 Share Posted September 23, 2018 g.drawString("XP Gained: " + (Skill.THIEVING), 10, 320); Any chance of you telling me the correct drawstring? Quote Link to comment Share on other sites More sharing options...
Explv Posted September 23, 2018 Author Share Posted September 23, 2018 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: Starting the experience tracker 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 Quote Link to comment Share on other sites More sharing options...
TutIslander Posted September 23, 2018 Share Posted September 23, 2018 4 minutes ago, Explv said: Look at the following sections on the tutorial: Starting the experience tracker 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 1 Quote Link to comment Share on other sites More sharing options...