Pug Posted May 9, 2014 Share Posted May 9, 2014 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. ^_^ Link to comment Share on other sites More sharing options...
Axis Posted May 9, 2014 Share Posted May 9, 2014 That is a pretty intuitive idea provided the user is near the computer/sound enabled. Link to comment Share on other sites More sharing options...
Epsilon Posted May 9, 2014 Share Posted May 9, 2014 Would be a good idea, but I guess only for babysitters. Maybe an option for both? Link to comment Share on other sites More sharing options...
DonPedersen Posted May 9, 2014 Share Posted May 9, 2014 Might be a stupid question but how does I do to use it Link to comment Share on other sites More sharing options...
Pug Posted May 9, 2014 Author Share Posted May 9, 2014 Might be a stupid question but how does I do to use it 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. Link to comment Share on other sites More sharing options...
ajuf954 Posted May 9, 2014 Share Posted May 9, 2014 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 Link to comment Share on other sites More sharing options...
Purple Posted May 9, 2014 Share Posted May 9, 2014 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. Link to comment Share on other sites More sharing options...
Pug Posted May 9, 2014 Author Share Posted May 9, 2014 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 Link to comment Share on other sites More sharing options...
lodsl Posted May 9, 2014 Share Posted May 9, 2014 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. Link to comment Share on other sites More sharing options...
Sex Posted May 9, 2014 Share Posted May 9, 2014 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. Link to comment Share on other sites More sharing options...
flaxspinner Posted May 9, 2014 Share Posted May 9, 2014 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. Link to comment Share on other sites More sharing options...
Noterickho123 Posted May 10, 2014 Share Posted May 10, 2014 do u even toolkit Link to comment Share on other sites More sharing options...
Dog_ Posted May 11, 2014 Share Posted May 11, 2014 do u even toolkitalready mentioned Toolkit.getDefaultToolkit().beep() but post got deleted .-. Link to comment Share on other sites More sharing options...
Pug Posted May 11, 2014 Author Share Posted May 11, 2014 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. Link to comment Share on other sites More sharing options...
Noterickho123 Posted May 11, 2014 Share Posted May 11, 2014 (edited) . Edited May 11, 2014 by Noterickho123 Link to comment Share on other sites More sharing options...