MUSHClient - Highlighted Paging

MUSHClient - Highlighted Paging

Postby Temarius » Sun May 01, 2016 5:36 pm

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>

<muclient>
<plugin
   name="FSNoticeablePaging"
   author="Temarius"
   id="36e75e5c438fcd6f6c9f9949"
   language="Lua"
   purpose="Highlits page messages"
   date_written="2016-05-01 11:02:12"
   requires="3.46"
   version="1.0.1"
   >
<description trim="y">
<![CDATA[
Highlits page messages.
]]>
</description>

</plugin>

<!--  Triggers  -->

<triggers>
  <trigger
   enabled="y"
   ignore_case="y"
   omit_from_output="y"
   match='^(?:(\S+ page(?:,|s,|-mail|-pose,) ")(.*?)(" to \S+)|(In a page-pose to you, )(.*))$'
   regexp="y"
   script="highlightPaging"
   sequence="60"
  >
  </trigger>
</triggers>

<!--  Script  -->

<script>
<![CDATA[
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])
  else
    world.ColourTell ("magenta", "", wildcards[4])
    world.ColourNote ("yellow", "", wildcards[5])
  end
end
]]>
</script>

</muclient>
Attachments
FSNoticeablePaging.jpg
FSNoticeablePaging.jpg (57.83 KiB) Viewed 2073 times
Temarius
 
Posts: 2
Joined: Wed Apr 27, 2016 1:19 pm

Re: MUSHClient - Highlighted Paging

Postby Temarius » Sun May 15, 2016 3:29 pm

New version: 1.0.1

Changelog:
  • Fixed highlighting of message parts, now it splits message correctly
  • Added highlighting for page-mail messages
  • Regex pattern optimized
Temarius
 
Posts: 2
Joined: Wed Apr 27, 2016 1:19 pm


Return to General Chat

Who is online

Users browsing this forum: No registered users and 0 guests