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.

Pug - Play sound when mod is near

Featured Replies

was looking in the snippets section earlier for something unrelated and came across the snippet by another user [enter name here] sorry i forgot your name. Anyway i thought instead of logging out or saying something it would be better to play a sound to alert the script user to come back to the pc.

So if anyone wants, here:

	// Mod Alert
		public void findMod() throws InterruptedException {
			List<Player> players = client.getLocalPlayers();
			
		    for(Player p : players) {
		        
		        String currentuser = p.getName();
		        
		        if(currentuser.startsWith("Mod ")) {
		    		try {
		    				java.applet.AudioClip clip = 
		    				java.applet.Applet.newAudioClip(
		    				new java.net.URL("http://www.runeinfinity.com/railroadCrossingBell.wav"));
		    				clip.play();
		    				warn("THERE IS A MOD IN THE AREA, KEEP A CLOSE EYE ON YOUR SCREEN FOR A FEW MINUTES PLEASE.");
		    				sleep(10000);
		    				clip.stop();
		    			} 
		    			catch (java.net.MalformedURLException murle) 
		    			{
		    				System.out.println(murle);
		    			}
		        }
		    }
		}

thoughts welcome.

trolls  will be reported.

 

^_^

That is a pretty intuitive idea provided the user is near the computer/sound enabled.

Would be a good idea, but I guess only for babysitters. Maybe an option for both?

  • Author

Might be a stupid question but how does I do to use it smile.png

 

the most basic way would be to just call it in your on loop method like:

	public int onLoop()
		    throws InterruptedException
	{
		findMod();
                return 10;
        }

but im sure others can comeup with better ways to implement this. just idea on a basic concept i had an hour ago :)

Would be a good idea, but I guess only for babysitters. Maybe an option for both?

 

yah i thought this, i myself am usually using the other screen for scripting whilst botting on my spare screen. So im always near the computer. what about an email alternative for those who are out ? idk.

good idea, but only for babysitters, which i never understood. If ur gonna bot, fking bot and be gone the whole day  come back with hefty xp/cash. Isnt that the reason we bot? cause were to busy to play this game

If you are going to do something like this, then you should probably have it running on a separate thread s your bot doesn't just sit there doing nothing. Might be more realistic than just straight up logging out when a JMod is around, but it still doesn't look good if all bots in one area just stood still. 

  • Author

If you are going to do something like this, then you should probably have it running on a separate thread s your bot doesn't just sit there doing nothing. Might be more realistic than just straight up logging out when a JMod is around, but it still doesn't look good if all bots in one area just stood still. 

 

this is how i have it set up in my script, just thought i would provide the idea :) will be up to others how they want to use it,

 

thanks for the feedback though Purple :)

I support this, mainly because all the botting i do is when i'm around the computer and would help tremendously if I could hear a mod/playermod nearby.

This is only good for people that babysit 24/7, but for people who are away most of the time this is useless, thanks though.

Nice idea, although I don't see how this is better than programming the script to log out, pause for a few minutes log back into check and if mod is still their repeat.

do u even toolkit

already mentioned Toolkit.getDefaultToolkit().beep() but post got deleted .-.
  • Author

do u even toolkit

 

do you even use the java libraries? you should have a look at the java docs and extend your knowledge, you will find you dont need tool kits then.

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.