Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

succesfull first proggy

Featured Replies

you should definitely get a runtime set up in there

public void onStart() {
	startTime = System.currentTimeMillis();
}
public String format(long time) {
	StringBuilder string = new StringBuilder();

	long totalSeconds = time / 1000L;
	long totalMinutes = totalSeconds / 60L;
	long totalHours = totalMinutes / 60L;

	int seconds = (int)totalSeconds % 60;
	int minutes = (int)totalMinutes % 60;
	int hours = (int)totalHours % 24;

	if (hours > 0) {
		string.append(hours + "h ");
	}
	if (minutes > 0) {
		string.append(minutes + "m ");
	}
	string.append(seconds +"s");
	return string.toString();
	}
g.drawString("Runtime: " + format((System.currentTimeMillis()-startTime)), 555, 418);

Edited by Reminiscence

  • Author

 

you should definitely get a runtime set up in there

public void onStart() {
	startTime = System.currentTimeMillis();
}
public String format(long time) {
	StringBuilder string = new StringBuilder();

	long totalSeconds = time / 1000L;
	long totalMinutes = totalSeconds / 60L;
	long totalHours = totalMinutes / 60L;

	int seconds = (int)totalSeconds % 60;
	int minutes = (int)totalMinutes % 60;
	int hours = (int)totalHours % 24;

	if (hours > 0) {
		string.append(hours + "h ");
	}
	if (minutes > 0) {
		string.append(minutes + "m ");
	}
	string.append(seconds +"s");
	return string.toString();
	}
g.drawString("Runtime: " + format((System.currentTimeMillis()-startTime)), 555, 418);

true lmao, thanks :P

Nice work ^_^

 

Good luck with the rest of your work!

 

you should definitely get a runtime set up in there

public void onStart() {
	startTime = System.currentTimeMillis();
}
public String format(long time) {
	StringBuilder string = new StringBuilder();

	long totalSeconds = time / 1000L;
	long totalMinutes = totalSeconds / 60L;
	long totalHours = totalMinutes / 60L;

	int seconds = (int)totalSeconds % 60;
	int minutes = (int)totalMinutes % 60;
	int hours = (int)totalHours % 24;

	if (hours > 0) {
		string.append(hours + "h ");
	}
	if (minutes > 0) {
		string.append(minutes + "m ");
	}
	string.append(seconds +"s");
	return string.toString();
	}
g.drawString("Runtime: " + format((System.currentTimeMillis()-startTime)), 555, 418);

 

Or since it's skill training:

formatTime(expTracker.getElapsed(Skill.WOODCUTTING)) 

And to format the time:

public static String formatTime(long ms) {
    long s = ms / 1000, m = s / 60, h = m / 60;
    s %= 60; m %= 60; h %= 24;
    return String.format("%02d:%02d:%02d", h, m, s);
}

Edited by lisabe96

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.