SCRIPT_NAME = "litemin"; SCRIPT_DESC = "Sets on the fly lites"; SCRIPT_OFF = false; String lited_minerals = ""; // For inline coloration String RESET = "\u001b[0m"; String BOLD = "\u001b[1m"; String YELLOW = "\u001b[33m"; String WHITE = "\u001b[37m"; void bootup() { help(); } // Change the color in the trigger HERE or live with the default bright yellow void do_mineral_lite() { triggerManager.removeTrigger("litemin"); triggerManager.newTrigger("litemin", lited_minerals, "",false,false,true,new Color[]{new Color(255,255,0)},Font.PLAIN); } void run() { if (argument == null) { clientGUI.printText("general", "*** Mineral lite is: " + lited_minerals + " ***\n", "FFFF00"); } else if (argument.equals("clear")) { lited_minerals = ""; clientGUI.printText("general", "*** Cleared Mineral lite ***\n", "FFFF00"); do_mineral_lite(); } else if (argument.equals("help")) { help(); } else { lited_minerals = argument; clientGUI.printText("general", "*** Mineral lite is: " + lited_minerals + " ***\n", "FFFF00"); do_mineral_lite(); } } void help() { clientGUI.printText("general", BOLD + YELLOW +"[litemin]: " + RESET + BOLD + WHITE + "This script will allow you to easily set on-the-fly lites." + RESET + "\n"); clientGUI.printText("general", BOLD + YELLOW +"[litemin]: " + RESET + BOLD + WHITE + "The color is defaulted to bright yellow, but you can change" + RESET + "\n"); clientGUI.printText("general", BOLD + YELLOW +"[litemin]: " + RESET + BOLD + WHITE + "this by editing the new Color in the do_mineral_lite method" + RESET + "\n"); clientGUI.printText("general", BOLD + YELLOW +"[litemin]: " + RESET + BOLD + WHITE + "Text to be lited must be contained inside () and is case-sensitive" + RESET + "\n"); clientGUI.printText("general", BOLD + YELLOW +"[litemin]: " + RESET + BOLD + WHITE + "Usage: $litemin (word)" + RESET + "\n"); clientGUI.printText("general", BOLD + YELLOW +"[litemin]: " + RESET + BOLD + WHITE + " $litemin (multiple words)" + RESET + "\n"); clientGUI.printText("general", BOLD + YELLOW +"[litemin]: " + RESET + BOLD + WHITE + " $litemin (word|Word|word two|three)" + RESET + "\n"); clientGUI.printText("general", BOLD + YELLOW +"[litemin]: " + RESET + BOLD + WHITE + "To clear any lites:" + RESET + "\n"); clientGUI.printText("general", BOLD + YELLOW +"[litemin]: " + RESET + BOLD + WHITE + " $litemin clear" + RESET + "\n"); }