Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- long runTime = 0;
- long seconds = 0;
- long minutes = 0;
- long hours = 0;
- runTime = System.currentTimeMillis() - scriptStartTIME;
- TeaPerHour = (int) (3600000.0 / runTime * teaStolen*16);
- seconds = runTime / 1000;
- if (seconds >= 60) {
- minutes = seconds / 60;
- seconds -= minutes * 60;
- }
- if (minutes >= 60) {
- hours = minutes / 60;
- minutes -= hours * 60;
- }
- g.setColor(new Color(0, 0, 0, 225));
- g.fillRoundRect(520, 0, 245, 168, 10, 10);
- g.setColor(Color.WHITE);
- g.drawString("Task: " + task , 532, 20);
- g.drawString("Run Time: " + hours + ":" + minutes + ":" + seconds , 532, 45);
- g.drawString("Exp gained: " + teaStolen*16 , 532, 70);
- g.drawString("Exp per hour: " + TeaPerHour , 532, 95);
- g.drawString("Tea stolen: " + teaStolen , 532, 120);
- g.drawString("Levels gained: " + levelsGained , 532, 145);
Add Comment
Please, Sign In to add comment