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.
^_^