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.

Show current OSBot users using your script via a website!

Featured Replies

Would u be able to make it show the information more neatly in a nice table or something?

in the wrong hands this can cost alot of passwords?

  • Author

in the wrong hands this can cost alot of passwords?

 

From what i know the OSBot API doesn't give access to stored account passwords.

All of your account information is stored on your computer.

 

This merely grabs information from OSBot database via your user you created on OSBot.

This script will allow you to show what OSBot users are currently using your scripts via a website.

 

Setup is required and you will need website hosting and a MySQL database.

 

MySQL

 

Create a MySQL database, write down all the connection information and then run the following query:

CREATE TABLE `online` (`id` int(11) NOT NULL AUTO_INCREMENT, 
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`script` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`time` int(11) NOT NULL,
`ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci

PHP

 

Upload the following package to your website and edit the 'include/database.php' file: http://uppit.com/8q7nlo4h998w/online.zip

Note: Edit the key in the index.php file.

 

Java 

 

Add a class to your script called: Online.java

and paste the following code in it: http://pastebin.com/raw.php?i=2j9TDdHW

Note: Don't forget to edit the key and php information.

 

Now, add the following imports to your script:

import java.util.Timer;
import java.util.TimerTask;

Add the following at the start of your scripts class:

Timer timer = new Timer();
String script = "SCRIPT NAME";

Add the following to the start of your onStart method:

log(Online.add_user(client.getBot().getUsername(), script));
		timer.scheduleAtFixedRate(new TimerTask() {
			@Override
			public void run() {
				Online.add_user(client.getBot().getUsername(), script);
			}
		}, 0, 60000);

And the following to your onExit method:

log(Online.remove_user(client.getBot().getUsername(), script));
timer.cancel();

Usage!

$online = json_decode(file_get_contents('http://YOURSITE.COM/online/index.php'), TRUE);

//show every user and the script they are using
foreach($online as $user) {
    echo $user['username'] . " : " . $user['script'];
}

//show total online user count
echo count($online);

Note!

 

It's 3am, i'm tired and iv probably made a few mistakes.

Please just post if you notice any errors or mistakes so i can get them sorted out.

 

 

You didnt update the hyperlink dude :P

 

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.