Difference between revisions of "Triggers"
Jump to navigation
Jump to search
imported>Yuugi (→Chat redirector: Changed the redirector to include outgoing pages and playnet.) |
imported>Yuugi |
||
| Line 16: | Line 16: | ||
<pre>The*'s furious charge drives you out of your hiding place.</pre> | <pre>The*'s furious charge drives you out of your hiding place.</pre> | ||
<pre>fight berserk</pre> | <pre>fight berserk</pre> | ||
<?xml version="1.0" encoding="iso-8859-1"?> | ===Chat redirector=== | ||
Save this as a .xml file. I put it in Worlds/Plugins as Chat Redirector.xml Then the easiest way to activate it (In MUSHclient) is ctr-shift-p | |||
<pre><?xml version="1.0" encoding="iso-8859-1"?> | |||
<!DOCTYPE muclient> | <!DOCTYPE muclient> | ||
<!-- Saved on Saturday, June 30, 2007, 10:48 --> | <!-- Saved on Saturday, June 30, 2007, 10:48 --> | ||
| Line 67: | Line 70: | ||
<trigger | <trigger | ||
enabled="y" | enabled="y" | ||
match="^\[ INSERT YOUR CORP SYMBOL HERE \].*$" | |||
match="^\[ | |||
omit_from_output="y" | omit_from_output="y" | ||
regexp="y" | regexp="y" | ||
| Line 178: | Line 171: | ||
enabled="y" | enabled="y" | ||
match="^\[jailnet\].*$" | match="^\[jailnet\].*$" | ||
omit_from_output="y" | omit_from_output="y" | ||
regexp="y" | regexp="y" | ||
| Line 202: | Line 185: | ||
<script> | <script> | ||
<![CDATA[ | <![CDATA[ | ||
chat_world = " | chat_world = "chats" | ||
local first_time = true | local first_time = true | ||
| Line 237: | Line 220: | ||
</muclient> | </muclient></pre> | ||
Occasionally a blurrnet chat will slip through. I will try and update this later.. | |||
Don't forget to replace the "INSERT YOUR CORP SYMBOL HERE" part. I think I like my corpchat in the main window and bold green thank you! | |||
Revision as of 17:56, 17 October 2012
Useful Triggers
Hide corp contract spam
[ * ]: * contract -- * earned $* for a *.
Leave send blank. Check the Omit from output box on the right side.
Camera Spam
Two Triggers...
[ * ]: HACK ATTEMPT IN PROGRESS: * at *!
[ * ]: gang cam at * counter-hacked from our network by * for *!
Leave send blank for both. Check the Omit from output box on the right side.
Auto spare
[ To accept the *'s offer, type 'spare *'. ]
spare %1
Gun users gambit
The*'s furious charge drives you out of your hiding place.
fight berserk
Chat redirector
Save this as a .xml file. I put it in Worlds/Plugins as Chat Redirector.xml Then the easiest way to activate it (In MUSHclient) is ctr-shift-p
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Saturday, June 30, 2007, 10:48 -->
<!-- MuClient version 4.13 -->
<!-- Plugin "Chat_Redirector" generated by Plugin Wizard -->
<!--
Edit plugin and change "chat_world" variable to be the name of the
world you want chats to go to.
-->
<muclient>
<plugin
name="Chatnet"
author="Nick Gammon"
id="cb84a526b476fffffffffffa"
language="Lua"
purpose="Redirects chat messages to another world"
date_written="2007-06-30 10:45:35"
requires="4.08"
version="1.0"
>
<description trim="y">
<![CDATA[
Redirects chats to the specified world.
Add or modify "chat" triggers to capture different sorts of message.
Change the variable "chat_world" to be the name of the world chats are to go to.
]]>
</description>
</plugin>
<!-- Triggers -->
<triggers>
<trigger
enabled="y"
match="^From your wristpad.*$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
match="^\[ INSERT YOUR CORP SYMBOL HERE \].*$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
match="^\[chatnet\].*$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
match="^\[djnet\].*$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
match="^\[tradenet\].*$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
match="^\[zotnet\].*$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
match="^\[ \].*$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
match="^\[ \* \].*$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
match="^\[ B=D \].*$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
match="^\[ B===D \].*$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
match="^\[B=====D\].*$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
match="^\[jailnet\].*$"
omit_from_output="y"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>
</triggers>
<!-- Script -->
<script>
<![CDATA[
chat_world = "chats"
local first_time = true
function redirect (name, line, wildcards, styles)
-- try to find "chatnet" world
local w = GetWorld (chat_world) -- get "chatnet" world
-- if not found, try to open it
if first_time and not w then
local filename = GetInfo (67) .. chat_world .. ".mcl"
Open (filename)
w = GetWorld (chat_world) -- try again
if not w then
ColourNote ("white", "red", "Can't open chat world file: " .. filename)
first_time = false -- don't repeatedly show failure message
end -- can't find world
end -- can't find world first time around
if w then -- if present
for _, v in ipairs (styles) do
w:ColourTell (RGBColourToName (v.textcolour),
RGBColourToName (v.backcolour),
v.text)
end -- for each style run
w:Note ("") -- wrap up line
end -- world found
end -- function redirect
]]>
</script>
</muclient>
Occasionally a blurrnet chat will slip through. I will try and update this later.. Don't forget to replace the "INSERT YOUR CORP SYMBOL HERE" part. I think I like my corpchat in the main window and bold green thank you!