Page 1 of 1

MUSHClient - Highlighted Paging

PostPosted: Sun May 01, 2016 5:36 pm
by Temarius
I noticed that private messages can be simply missed because they have default text color and they can be inconspicuous among very big amount of colored messages such as battle messages etc.

So, there is a simple MUSHclient plugin, which highlights private messages.

If you have any ideas/suggestions feel free to say it. Also, I'm not very good in Regular Expressions so I'll appreciate any opmtimisation advice.

Code: Select all
<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE muclient>

   purpose="Highlits page messages"
   date_written="2016-05-01 11:02:12"
<description trim="y">
Highlits page messages.


<!--  Triggers  -->

   match='^(?:(\S+ page(?:,|s,|-mail|-pose,) ")(.*?)(" to \S+)|(In a page-pose to you, )(.*))$'

<!--  Script  -->

function highlightPaging (name, line, wildcards, styles)
  if wildcards[1] ~= "" then
    world.ColourTell ("magenta", "", wildcards[1])
    world.ColourTell ("magenta", "", wildcards[2])
    world.ColourNote ("magenta", "", wildcards[3])
    world.ColourTell ("magenta", "", wildcards[4])
    world.ColourNote ("yellow", "", wildcards[5])


Re: MUSHClient - Highlighted Paging

PostPosted: Sun May 15, 2016 3:29 pm
by Temarius
New version: 1.0.1

  • Fixed highlighting of message parts, now it splits message correctly
  • Added highlighting for page-mail messages
  • Regex pattern optimized