Dogerina 330 Share Posted September 4, 2015 the dreambot api has a timer and a skill tracker for a reason fam edit: just saw that you were already told about it, but it'd still be a good idea to reference it in your original post Link to comment Share on other sites More sharing options...
chandlerethan 26 Share Posted September 8, 2015 public void onMouse(MouseEvent e) { p = e.getPoint(); if (close.contains(p) && !hide) { hide = true; } else if (open.contains(p) && hide) { hide = false; } } can be changed to public void onMouse(MouseEvent e) { p = e.getPoint(); if (close.contains(p)) { hide = !hide; } } for the same effect. Link to comment Share on other sites More sharing options...
Sin 0 Share Posted January 2, 2016 Can you show how to make colorful cursors for scripts? Link to comment Share on other sites More sharing options...
JoieDeVivre 33 Share Posted January 23, 2016 Hey Pug, for some reason I can't get a custom image to display on my game window. I've followed your example under the "adding a background" section. Here's what I have in my main class: private final Image bg = getImage( "http://s7.postimg.org/ghg9yybiz/Jdv_Woodcutter.png"); public void onPaint(Graphics g){ g.drawImage(bg, 100, 100, null); timeTracker.onPaint(g); logTracker.onPaint(g); levelTracker.onPaint(g); } private Image getImage(String url) { try { return ImageIO.read(new URL(url)); } catch (IOException e) { } return null; } Are there any problems you can see with this that might be causing the image to not be displayed? Thanks. Link to comment Share on other sites More sharing options...
Juggles 18 Share Posted April 3, 2016 Thanks! This came in handy when adding paint to my script. I am wondering how to add items looted/hour Link to comment Share on other sites More sharing options...
Ekrem 2 Share Posted May 10, 2016 love u mayneg, imma make a sweet ass script Link to comment Share on other sites More sharing options...
Pug 130 Author Share Posted May 11, 2016 love u mayneg, imma make a sweet ass script snow worries Link to comment Share on other sites More sharing options...
lihany 1 Share Posted November 26, 2019 THANKS! Bumping so that It never gets lost Link to comment Share on other sites More sharing options...
Smokeyjay 1 Share Posted August 4, 2021 This is very helpful. Thanks for making this public bro. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.