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.

Gambling Script Timestamp needed!

Featured Replies

I have a dicing script that does commands when you use a "!" for example !roll,!flower,!dd etc


 


so for example right now when a player does the command !roll, the bot will say "username rolled a 58 on the percentile dice".


 


But I would like there to be a timestamp at the end which reads:


 


"[username] rolled a [58] on the percentile dice @ [04:23:12]"


 


also if you could include the parenthesis like that it would be very helpful too!


 


Since this is a small fix, im willing to pay 5m osrs/$5, negotiable!


Add me on skype. VAG.RS

 

I will do this.

  • Author

im very interested in seeing how this works, please send me a snippet in pm biggrin.png

 Erm, seems i can't PM you haha

  • Author

BUMP - I will buy a new script if needed.

Wait someone still hasn't helped this guy?

I did via PM.

For anyone else who wants to know:

Create a new SimpleDateFormat object:

SimpleDateFormat formatter = new SimpleDateFormat("hh:mm:ss");

Each time you want a new timestamp, simply format a new Date object:

String time = formatter.format(new Date());

This is not thread-safe. Let me know if someone needs a thread-safe alternative.

Edited by fixthissite

  • Author

Im not a coder myself, but thanks for the help!

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.