wafihsn Posted May 14, 2016 Share Posted May 14, 2016 last qustion for today , what methoed used to place a counter on client screen ?lets say counter for how many bones the script already collected or feathers or what ever i want ? Quote Link to comment Share on other sites More sharing options...
LoudPacks Posted May 14, 2016 Share Posted May 14, 2016 Once you figure out the paint this is a good tool that keeps track of inventory updates and is more accurate than some other ways. http://osbot.org/forum/topic/51856-inventory-monitor-keep-live-track-of-your-items/ Quote Link to comment Share on other sites More sharing options...
Qubit Posted May 14, 2016 Share Posted May 14, 2016 (edited) Use the onPaint() method in the script class e.g public void onPaint(Graphics2D g) { if(image != null){ g.drawImage(image, 545, 139, null); } g.drawString(formatTime(timer.getElapsed()), 388, 277); //395 g.drawString("Hides: " + hides, 388, 289); if(buryBones || keepBones)g.drawString("Bones: " + bones, 388, 301); } Graphis2D api https://docs.oracle.com/javase/8/docs/api/java/awt/Graphics2D.html Edited May 14, 2016 by Qubit 1 Quote Link to comment Share on other sites More sharing options...
Chris Posted May 15, 2016 Share Posted May 15, 2016 last qustion for today , what methoed used to place a counter on client screen ? lets say counter for how many bones the script already collected or feathers or what ever i want ? int bones; if condition bones++; //onPaint g2d.drawString("Bones: " + bones, x position, y position); 1 Quote Link to comment Share on other sites More sharing options...
wafihsn Posted May 15, 2016 Author Share Posted May 15, 2016 thanx guys . its already been working thanx alot for ur replays Quote Link to comment Share on other sites More sharing options...