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.

Completed my first script- pick it apart please

Featured Replies

https://github.com/adc1/Osbot-Scripts/tree/master/src

 

Anyone with experience is welcome to tell me what I did wrong, what I did right, and how to improve smile.png

 

Once I'm happy with it I'll be converting it to Osbot 2 and hopefully put it on the SDN if it works out.

 

looks very good for a first script! :o

 

The format time function is pretty long, can be done more easy ^^.

Code:

 public static String format(long ms) {
    long sec = ms / 1000L;
    return String.format("%02d:%02d:%02d",
                                          new Object[] { Long.valueOf(sec / 3600L),
                                          Long.valueOf((sec % 3600L) / 60L),
                                          Long.valueOf(sec % 60L) });}

Well done, keep up the good work.

Hope to see more of you! 

Edited by Khaleesi

  • Author

 

Hey thanks! Yeah, I'm still not 100% familiar with all of the data types of Java, so it didn't occur to me to do it that way, but I'll go ahead and try that out now!

Guest
This topic is now closed to further replies.

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.