Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.mythicscape.batclient.interfaces.*;
- import java.util.regex.*;
- import java.util.ArrayList;
- import java.text.*;
- import java.awt.font.TextAttribute;
- SCRIPT_NAME = "destroyer";
- Color light_weight = new Color(255,255,255);
- Color light_blue = new Color(0,0,255);
- Color light_green = new Color(0,255,0);
- Color light_cyan = new Color(0,255,255);
- Color light_red = new Color(255,0,0);
- Color light_magenta = new Color(225,0,255);
- Color light_yellow = new Color(255,255,0);
- Color blue = new Color(0,0,127);
- Color white = new Color(195,195,195);
- Color green = new Color(0,127,0);
- Color cyan = new Color(0,127,127);
- Color red = new Color(127,0,0);
- Color magenta = new Color(127,0,127);
- Color yellow = new Color(127,127,0);
- Color black = new Color(0,0,0);
- // Change here the colours for regmons and aggrmons if you are using a different ansi setting
- // ansi list
- Color regmons = light_green;
- Color aggrmons = light_red;
- //
- Pattern p_danger;
- ParsedResult pr;
- void bootup()
- {
- ArrayList l = new ArrayList();
- l.add(new ParsedAttribute(TextAttribute.WEIGHT, TextAttribute.WEIGHT_BOLD, 9,22));
- l.add(new ParsedAttribute(TextAttribute.FOREGROUND, new Color(0xFFFFFF),9,22));
- l.add(new ParsedAttribute(TextAttribute.BACKGROUND, new Color(0x800080),9,22));
- pr = new ParsedResult(" >>>DANGER<<<<\n",l);
- p_danger = Pattern.compile("^(" +
- "a big mummy is bashing around with his sword \\(undead\\)" +
- // "|Mortis stands here behind the desk \\(almost undead\\)" + // mostly harmless, just for testing
- "|a gray beholder is floating here \\(evil\\)" +
- "|a green beholder is floating here \\(nasty\\)" +
- "|Warl Su, the jailed samurai" +
- "|Edward Amberley, the family priest" +
- "|Grandmother Elizabeth Amberley" +
- "|Gilljam, elite soldier and universal beauty" +
- "|Aviel, commander of the imperial elite forces" +
- "|Erik Fzurrp-Fjongabolos, the Auctioneer" +
- "|Doc the Bank Robber" +
- "|Greedy the Bank Robber" +
- "|Lefty the Bank Robber" +
- "|Netrunner the Bank Robber" +
- "|Righty the Bank Robber" +
- "|Sleazy the Bank Robber" +
- "|Smelly the Bank Robber" +
- "|Sneezy the Bank Robber" +
- "|Sarah Greenpond the old widow" +
- "|Walith Kediralath, trying to hide in the shadows" +
- "|an infernal knight vowed to guard the vault \\(undead\\)" +
- "|a dark shade of a corrupted paladin \\(undead\\)" +
- "|a pile of gold coins nudges closer" +
- "|Elven chef preparing dinner" +
- "|Rudolf the smith" +
- "|Petrus the very quiet Donaru librarian" +
- "|This is the hillgiant's wife,she is drawing water from the well" +
- "|There is a very old man with shiny white oozing eyes" +
- "|The queen is pacing around, looking for something to do" +
- "|Dark Knight is grinning here" +
- "|Odo, the brave hunter" +
- "|Kizarwexius the moondragon sways above you, smoke rising from her nostrils and acid dripping from her fangs" +
- "|Dag Dag Schwingenator, ruler of Magerathia" +
- "|Melcross, the deadly demon leader" +
- "|Zeltjin the head warlock of Tiamat" +
- "|Pelitar the old retired village wizard" +
- "|Julius, the king of the castle" +
- "|\\(smoke demon\\)" +
- "|Molly, Despana's little bundle of joy" +
- "|Pedro, Despana's pride and joy" +
- "|Icalia, the ice demon" +
- "|Alena, the acquisitionist" +
- "|A small impish demon" +
- "|Ditianna, the bride of Tomtor" +
- "|Reddist the lord of Reavers" +
- "|The Master Sorcerer of the Temple of Sarku is meditating here." +
- "|the wight of Dentirion \\(evil\\) (undead)" +
- "|a spherical floating beast with one gigantic eye is gazing at you" +
- "|an ethereal being is silently hovering in the air" +
- "|the captain of a ship" +
- "|The High Priestess of the temple" +
- "|An urvile loremaster is preparing to crush the resistance" +
- "|Elder Petron has rallied some defenders" +
- "|a nasty looking witch" +
- "|The boatman of the River Styx" +
- "|A Gray Slaad-Lord is hopping around here \\(undead\\)" +
- "|A HUGE lizardman torturer is here, attacking YOU!" +
- "|A man wearing a white coat sits behind a desk" +
- "|A middle-aged nurse stands here waiting for you" +
- "|A young, fresh out of school medic stands here" +
- "|A old comfortable looking woman is looking at you" +
- "|A old lecherous doctor, reminds you of someone from old Vienna" +
- "|Lacramobo the rentkeeper leans against a desk looking bored" +
- "|Morden the Shadowman" +
- "|Galigord the slightly overweight rentkeeper is on his break" +
- "|The Master of the Arena, a humanoid giving off a black aura" +
- "|The Demilich Ogaitnas Iuqnarf" +
- "|An ancient lich stares at you with hatred \\(undead\\)" +
- "|Krystanimyth, the Dreaded Dracolich, the Ever Dragon" +
- "|the supreme urvile loremaster rests in his cave" +
- "|Bzatah, the psionlich \\(undead\\)" +
- "|Thulanic, the gatelich \\(undead\\)" +
- "|Uruthmatium, the darklich \\(undead\\)" +
- "|Threumathuran, the deathlich \\(undead\\)" +
- "|An old-looking hermit" +
- "|The high Lord Despana" +
- "|Gotryt the mighty lich king stands here \\(undead\\)" +
- "|Zifnab's Gigantic Dragon" +
- "|Chesire the rentkeeper is purring silently here" +
- "|The Beholder, the Warden, 'Grrzzaaah' of Prison complex" +
- "|A large sperical beholder hovers here" +
- "|Killusia, the mistress of pain and misery" +
- "|A handsome ghostly humanoid is hovering over here \\(undead\\)" +
- "|A beautiful ghostly humanoid hovers over here. \\(undead\\)" +
- "|The Zhentorian Captain is planning here" +
- "|a shy leopard-furred catfolk walks by very slowly" +
- "|A robed drow is standing here calmly" +
- "|Ceche the neuter Gatekeeper of the mansion" +
- "|an orc in ceremonial garb stands here" +
- "|Puff of fiery smoke" +
- "|A Cloak Enshrouded Figure Blocks the Stairway" +
- "|Skeleton guard clad in heavy armour" +
- "|A pitfiend grinning wickedly at your misery" +
- "|A pitfiend-king is lolling and wobbling raunchily here at your misery" +
- "|fire elemental" +
- "|The Lizardman Captain is here, attacking YOU" +
- "|Axidia, Master of undeads" +
- "|A minion of Axidia tries to steal your soul \\(undead\\)" +
- "|a dark figure of a knight enveloped by darkness \\(undead\\)" +
- "|a Mob" +
- "|Alena, the acquisitionist" +
- "|A small orc is hiding in the shadows, trying to steal something" +
- "|A meanie guenon digging the bones" +
- "|Liezeb the druid" +
- "|Ninja's \\(various colours\\)" + // possible broken
- "|Reverend B'zarre, former highpriest of the Twilight \\(undead\\)" +
- "|Trilloch Haz-gon the grey Elf" +
- "|A jumper from the sphere of time" +
- "|Rogue" +
- "|Baaz Draconian" +
- ")");
- }
- public ParsedResult trigger() {
- String line = argument.getStrippedText();
- if(line.length() == 0) return argument;
- line = line.substring(0,line.length()-1);
- ArrayList attrs = argument.getAttributes();
- if(!line.startsWith("'") && (attrs.get(0).getValue().equals(regmons) || attrs.get(0).getValue().equals(aggrmons)))
- {
- Matcher m_danger = p_danger.matcher(line);
- if(m_danger.find()) {
- clientGUI.printAttributedStringToWindow("Generic",pr,false);
- }
- }
- return argument;
- }
Advertisement
Add Comment
Please, Sign In to add comment