HobbezG2 Beginner
Joined: 01 Mar 2012 Posts: 17
|
Posted: Fri Mar 02, 2012 4:02 am
Dark and Shattered Lands (DSL) Clan Highlighter v4.01 (zMud 7.21) |
Dark and Shattered Lands
dsl-mud.org:4000
www.dsl-mud.org
WHAT THIS HIGHLIGHTER DOES:
It auto-highlights all Clans, (including Chaos, Dragon, and Loner) and codes
them with an array of colors that best fit that entity. Several Aliases have
been added for easy use to both add names automatically (UpdateTag), or
manually, in addition to the means to remove them manually (Untag).
Eventually, I'll add aliases to more easily change colors but as of now,
you'll have to do them manually.
This is a highly evolved highlighter that takes into account for all flags
that might upset or wrongfully highlight words/names that shouldn't be
highlighted, such as (WANTED),(Hostile), and all Priest/Pirate Ranks.
NOTE: Giants are considered Loners, and therefore are added automatically to
the Loner list.
CREDIT:
This was originally a tweak from EndTasked's original build, but has since
evolved into what it is today. That said, credit goes to him for the original
build as always, and inspiring me to make a "better", more evolved version of
his classic age-old highlighter script. I suggest examining both codes in
order to figure out which one works best for you and your needs.
A thanks goes out to Charneus from the Zuggsoft Forums for originally helping
me fix the issues with improper highlighting errors regarding Dragon lists,
and partial Loner issues.
Last but not least, a big thanks to Libertarian for pretty much fixing
everything that I was too incompetent to fix myself, in addition to offering
solutions to countless other fixes to problems I never even knew I had yet.
Some of these include how to get around the Loner +
Priest/Pirate/WANTED/Hostile issues and help designing a far superior overall
build. Thanks!
NOTES ON COLORS:
I used the built in zMUD "Color Picker" which can be found on the Help Tab or
the shortcut, Ctrl+I, and enables you a near limitless selection of colors.
Feel free to customize further to your liking.
HOW TO INSTALL:
1) Copy the below provided script code into a notepad txt file.
2) Settings --> Import --> Script (ASCII) --> then select above file
3) Voila
HOW TO USE: (Alias Commands)
To REMOVE a name from ANY list:
UnTag (name)
ex: untag Rochford
To ADD ALL available names to the CLAN lists:
UpdateTag
ex: UpdateTag
To MANUALLY ADD any SINGLE name to a CLAN list:
Shadow: AddShadow (name)
Bloodlust: AddLust (name)
Knighthood: AddKnight (name)
Jusiice: AddJustice (name)
Wargar: AddWargar (name)
Shalonesti: AddShalo (name)
Slayers: AddSlayer (name)
Red Robe: AddRed (name)
White Robe: AddWhite (name)
Black Robe: AddBlack (name)
Chaos: AddChaos (name)
Loner: AddLoner (name)
Dragon: AddDragon (name)
ex: AddShadow Rochford
AddLust Qilue
NOTE: I didn't incorporate Demons, Angels, or Balanx due to their rarity.
Personally, I just add them manually to the Loner list. Perhaps next I see an
Angel and a Balanx, I'll copy/paste their string and incorporate them into the
script too. If anyone wants to reply to a copy/paste of an old log of one on
the who list, I might add them sooner.
KNOWN ISSUES and/or ERRORS:
Bullet proof until I decide to add something broken.
NOW FOR THE SCRIPT!!!
Code: |
#CLASS {Highlighter V4}
#CLASS 0
#CLASS {Highlighter V4|Highlight_Aliases}
#ALIAS UnTag {#DELITEM blackmemb {%1};#DELITEM justmemb {%1};#DELITEM khoodmemb {%1};#DELITEM lustmemb {%1};#DELITEM redmemb {%1};#DELITEM shadmemb {%1};#DELITEM shalomemb {%1};#DELITEM slaymemb {%1};#DELITEM wargmemb {%1};#DELITEM whitememb {%1};#DELITEM chaosmemb {%1};#DELITEM lonermemb {%1};#DELITEM dragonmemb {%1}}
#ALIAS UpdateTag {#CLASS Highlight_Trigs 1;whoc justice;whoc conclave;whoc knight;whoc slayers;whoc wargar;whoc shalonesti;whoc blood;whoc shadow;whoc chaos;whoc dragon;who loner;#WAIT 5000;#CLASS Highlight_Trigs 0;untagrank;untagrank}
#ALIAS AddDragon {#additem dragonmemb %1}
#ALIAS AddLoner {#additem lonermemb %1}
#ALIAS AddChaos {#additem chaosmemb %1}
#ALIAS AddShadow {#additem shadmemb %1}
#ALIAS AddLust {#additem lustmemb %1}
#ALIAS AddKnight {#additem khoodmemb %1}
#ALIAS AddJustice {#additem justmemb %1}
#ALIAS AddShalo {#additem shalomemb %1}
#ALIAS AddWargar {#additem wargmemb %1}
#ALIAS AddSlayer {#additem slaymemb %1}
#ALIAS AddRed {#additem redmemb %1}
#ALIAS AddWhite {#additem whitememb %1}
#ALIAS AddBlack {#additem blackmemb %1}
#ALIAS UntagRank {untag Cabin;untag Pirate;untag Dread;untag Renown;untag Notorious;untag Captain;untag Novitiate;untag Deacon;untag Priest;untag Bishop;untag Cardinal;untag Abbott;untag Monsignor;untag High;untag WANTED;untag (WANTED); untag Hostile; untag (Hostile)}
#CLASS 0
#CLASS {Highlighter V4|Highlight_Lists}
#VAR clan {}
#VAR title {#NO| Cabin Person | ~~(WANTED~~) Cabin Person | ~~(Hostile~~) Cabin Person | ~~(WANTED~~) ~~(Hostile~~) Cabin Person | Pirate | ~~(WANTED~~) Pirate | ~~(Hostile~~) Pirate | ~~(WANTED~~) ~~(Hostile~~) Pirate | Renown Pirate | ~~(WANTED~~) Renown Pirate | ~~(Hostile~~) Renown Pirate | ~~(WANTED~~) ~~(Hostile~~) Renown Pirate | Dread Pirate | ~~(WANTED~~) Dread Pirate | ~~(Hostile~~) Dread Pirate | ~~(WANTED~~) ~~(Hostile~~) Dread Pirate | Notorious Pirate | ~~(WANTED~~) Notorious Pirate | ~~(Hostile~~) Notorious Pirate | ~~(WANTED~~) ~~(Hostile~~) Notorious Pirate | Captain | ~~(WANTED~~) Captain | ~~(Hostile~~) Captain | ~~(WANTED~~) ~~(Hostile~~) Captain | Novitiate | ~~(WANTED~~) Novitiate | ~~(Hostile~~) Novitiate | ~~(WANTED~~) ~~(Hostile~~) Novitiate | Deacon | ~~(WANTED~~) Deacon | ~~(Hostile~~) Deacon | ~~(WANTED~~) ~~(Hostile~~) Deacon | Priest | ~~(WANTED~~) Priest | ~~(Hostile~~) Priest | ~~(WANTED~~) ~~(Hostile~~) Priest | Bishop | ~~(WANTED~~) Bishop | ~~(Hostile~~) Bishop | ~~(WANTED~~) ~~(Hostile~~) Bishop | Cardinal | ~~(WANTED~~) Cardinal | ~~(Hostile~~) Cardinal | ~~(WANTED~~) ~~(Hostile~~) Cardinal | Abbot | ~~(WANTED~~) Abbot | ~~(Hostile~~) Abbot | ~~(WANTED~~) ~~(Hostile~~) Abbot | Monsignor | ~~(WANTED~~) Monsignor | ~~(Hostile~~) Monsignor | ~~(WANTED~~) ~~(Hostile~~) Monsignor | High Priest | ~~(WANTED~~) High Priest | ~~(Hostile~~) High Priest | ~~(WANTED~~) ~~(Hostile~~) High Priest | | | | | | | |#NO} {_nodef} "Highlighter V4|Highlight_Lists"
#VAR shadmemb {Lanival}
#VAR lustmemb {Qilue}
#VAR khoodmemb {Datai}
#VAR justmemb {Rilien}
#VAR shalomemb {Cline}
#VAR wargmemb {Betha}
#VAR slaymemb {Ys'llaggra}
#VAR redmemb {Prazle}
#VAR whitememb {Grech}
#VAR blackmemb {Bodrum}
#VAR chaosmemb {Enduriel}
#VAR lonermemb {Perrinn}
#VAR dragonmemb {Jormungander}
#CLASS 0
#CLASS {Highlighter V4|Highlight_Trigs}
#TRIGGER {^{~[|~[ }*~] {~[|~(} &clan {~]|~)}{@title}([a-z'])} {
#IF (@clan = "Knighthood") {#additem khoodmemb %2}
#IF (@clan = "Justice") {#additem justmemb %2}
#IF (@clan = "Shalonesti") {#additem shalomemb %2}
#IF (@clan = "Shadow") {#additem shadmemb %2}
#IF (@clan = "Bloodlust") {#additem lustmemb %2}
#IF (@clan = "Wargar") {#additem wargmemb %2}
#IF (@clan = "Slayers") {#additem slaymemb %2}
#IF (@clan = "Black Robes") {#additem blackmemb %2}
#IF (@clan = "White Robes") {#additem whitememb %2}
#IF (@clan = "Red Robes") {#additem redmemb %2}
#IF (@clan = "Chaos") {#additem chaosmemb %2}
#IF (@clan = "Loner") {#additem lonermemb %2}
#IF (@clan = "Dragon") {#additem dragonmemb %2}
}
#CLASS 0
#CLASS {Highlighter V4|Highlight_Colors}
#TRIGGER {{@blackmemb}} {#cw #FF48A4} "" {case}
#TRIGGER {{@chaosmemb}} {#cw #FFFFFF} "" {case}
#TRIGGER {{@dragonmemb}} {#cw #00FD7E} "" {case}
#TRIGGER {{@justmemb}} {#cw #5702B5} "" {case}
#TRIGGER {{@khoodmemb}} {#cw #4646FF} "" {case}
#TRIGGER {{@lonermemb}} {#cw #FFFFFF} "" {case}
#TRIGGER {{@lustmemb}} {#cw #DD0000} "" {case}
#TRIGGER {{@redmemb}} {#cw #FF48A4} "" {case}
#TRIGGER {{@shadmemb}} {#cw 8} "" {case}
#TRIGGER {{@shalomemb}} {#cw #008000} "" {case}
#TRIGGER {{@slaymemb}} {#cw #F0F000} "" {case}
#TRIGGER {{@wargmemb}} {#cw #00ECEC} "" {case}
#TRIGGER {{@whitememb}} {#cw #FF48A4} "" {case}
#TRIGGER {{@rankmemb}} {#cw clNONE} "" {case|disable}
#CLASS 0
|
|
|