Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="iso-8859-1"?>
- <!DOCTYPE muclient>
- <!-- Saved on Thursday, January 09, 2014, 11:23 PM -->
- <!-- MuClient version 4.84 -->
- <!-- Plugin "Chat_Redirector" generated by Plugin Wizard -->
- <muclient>
- <plugin
- name="Chat_Redirector"
- author="Mike MacKenzie"
- id="7f15aad4db0be9a6bed8d9f6"
- language="Lua"
- purpose="New chat redirector"
- date_written="2014-01-09 23:19:39"
- requires="4.84"
- version="1.0"
- >
- <description trim="y">
- <![CDATA[
- Redirect chats and gains into different worlds, and have mute options on main world. "mute <#>" or "unmute <#>", Please note that by default nothing is muted, To automatically mute groups, have a login trigger, with send to world(immediate) with "mute <number of the desired mute>" as the send text, to fire the alias and mute the respective group.
- ]]>
- </description>
- </plugin>
- <!-- Get our standard constants -->
- <include name="constants.lua"/>
- --[[
- Okay so there are 3 mute toggles. You turn them on and off by doing "mute 1-3", or "unmute 1-3".
- Here are lists of what each toggle controls.
- mute 1: will mute stat gains, bonus gains, etc
- mute 2: will mute snet, ask, say, group, clan
- mute 3: wiznet, whisper, tells, info
- --]]
- <!-- Triggers -->
- <triggers>
- --[[
- This is the default trigger section. This group is on by default, because it is set to the top layer. When the other groups are turned on, it overlaps these triggers with duplicate triggers with a lower sequence, that still redirect to the same spot, but they omit from output. Also, please note group 0 is used for triggers that never omit from output.
- --]]
- Raditz (Quote)s,
- <trigger
- enabled="y"
- group="Gags"
- match="Raditz (Quote)s,*"
- omit_from_output="y"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Gags"
- match="(SNET 1) Dartz:*"
- omit_from_output="y"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Gags"
- match="Rodimus (Quote)s,*"
- omit_from_output="y"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="\[Wiznet\] (.*?)$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?) \((.*?)\)\: (.*?)$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)[A-Za-z]+ whispers to you, \'(.*?)\'$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)\You whisper to (.*?)\, \'(.*?)\'$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)[A-Za-z]+ (sends a scouter transmission to you), \'(.*?)\'$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)\You send a transmission to (.*?)\, \'(.*?)\'$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?) sends a transmission to you\, \'(.*?)\'(.*?)$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)\[Info\]\: (.*?)$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?) RP Chats\: \'(.*?)\'$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="You RP Chat\: \'(.*?)\'$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)\[A-Za-z]+ asks, \'(.*?)\?'$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)[A-Za-z]+ tells the group, \'(.*?)\'$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)\[A-Za-z]+ (exclaim)s, \'(.*?)\!'$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)\[A-Za-z]+ exclaims, \'(.*?)\'$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)\You (say|chat|exclaim|mutter|ask|yell|\[Newbie\]|\[OOC\]|send a scouter transmission to|\(Holler\)|\(Shout\)|\(Roleplay\)|\(Quote\)|\(Congrat\)|\(Quest\)|OOC say|tell the group), \'(.*?)\'$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)[A-Za-z]+ (say|chat|mutter||\[Newbie\]|exclaim|ask|yell|\[OOC\]|sends a scouter transmission to|\(Holler\)|\(Shout\)|\(Roleplay\)|\(Quote\)|\(Congrat\)|\(Quest\)|OOC say|)s, \'(.*?)\'$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)\((.*?)\)\: (.*?)|\(SNET (.*?)\) (.*?)\: (.*?)$$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="\[(?:(.*?) )Bonus(?: \+(\d+))?\]$"
- regexp="y"
- script="redirect2"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(\[(.*?) Bonus (.*?)\]|\[(.*?) Bonus\](.*?)\.|\[Rage Loss \-1\]|(.*?)AFK flag is now (on|off)\.|(.*?) appears with an ear\-splitting bang\.|RANDOM BOT CHECK\!\[(.*?) Bonus\](.*?)|(.*?) drops Essence of (.*?)|You get Essence of (.*?))$"
- regexp="y"
- script="redirect2"
- sequence="100"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages4"
- match="^(.*?)\[(.*?)\]\: (.*?)$"
- regexp="y"
- script="redirect"
- sequence="100"
- >
- </trigger>
- --[[
- This section is for group3 triggers, other channels.
- --]]
- <trigger
- group="Messages3"
- match="\[Wiznet\] (.*?)$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages3"
- match="^(.*?) \((.*?)\)\: (.*?)$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages3"
- match="^(.*?)[A-Za-z]+ whispers to you, \'(.*?)\'$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages3"
- match="^(.*?)\You whisper to (.*?)\, \'(.*?)\'$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages3"
- match="^(.*?)[A-Za-z]+ (sends a scouter transmission to you), \'(.*?)\'$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages3"
- match="^(.*?)\You send a transmission to (.*?)\, \'(.*?)\'$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages3"
- match="^(.*?) sends a transmission to you\, \'(.*?)\'(.*?)$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages3"
- match="^(.*?)\[Info\]\: (.*?)$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- --[[
- This section is for group2 triggers, spammy channels, can be muted.
- --]]
- <trigger
- group="Messages2"
- match="^(.*?) RP Chats\: \'(.*?)\'$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages2"
- omit_from_output="y"
- match="You RP Chat\: \'(.*?)\'$"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages2"
- match="^(.*?)\[A-Za-z]+ asks, \'(.*?)\?'$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages2"
- match="^(.*?)[A-Za-z]+ tells the group, \'(.*?)\'$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages2"
- match="^(.*?)\[A-Za-z]+ (exclaim)s, \'(.*?)\!'$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages2"
- match="^(.*?)\[A-Za-z]+ exclaims, \'(.*?)\'$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages2"
- match="^(.*?)\You (say|chat|exclaim|mutter|ask|yell|\[OOC\]|send a scouter transmission to|\(Holler\)|\(Shout\)|sing|\(Roleplay\)|\(Quote\)|\(Congrat\)|\(Quest\)|OOC say|tell the group), \'(.*?)\'$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages2"
- match="^(.*?)[A-Za-z]+ (say|chat|mutter|exclaim|ask|yell|\[OOC\]|sends a transmission to|\(Holler\)|\(Shout\)|sing|\(Roleplay\)|\(Quote\)|\(Congrat\)|\(Quest\)|OOC say|)s, \'(.*?)\'$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages2"
- match="^(.*?)\((.*?)\)\: (.*?)|\(SNET (.*?)\) (.*?)\: (.*?)$$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages2"
- match="^(.*?)\[(.*?)\]\: (.*?)$"
- omit_from_output="y"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- --[[
- This section is for group1 triggers, spammiest channels, can be muted.
- --]]
- <trigger
- group="Messages1"
- match="\[(?:(.*?) )Bonus(?: \+(\d+))?\]$"
- omit_from_output="y"
- regexp="y"
- script="redirect2"
- sequence="90"
- >
- </trigger>
- <trigger
- group="Messages1"
- match="^(\[(.*?) Bonus (.*?)\]|\[(.*?) Bonus\](.*?)\.|\[Rage Loss \-1\]|(.*?)AFK flag is now (on|off)\.|(.*?) appears with an ear\-splitting bang\.|RANDOM BOT CHECK\!\[(.*?) Bonus\](.*?)|(.*?) drops Essence of (.*?)|You get Essence of (.*?))$"
- omit_from_output="y"
- regexp="y"
- script="redirect2"
- sequence="90"
- >
- </trigger>
- --[[
- This section is for group0 triggers, ones that never get muted. Note that most of these go to the 2nd window.
- --]]
- <trigger
- enabled="y"
- group="Messages0"
- match="You get Namekian (One|Two|Three|Four|Five|Six|Seven) Star Dragonball.$"
- regexp="y"
- script="redirect2"
- sequence="90"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages0"
- match="^(.*?) drops Namekian (One|Two|Three|Four|Five|Six|Seven) Star Dragonball.$"
- regexp="y"
- script="redirect2"
- sequence="90"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages0"
- match="^\[System Error -1 Upgrade\]$"
- regexp="y"
- script="redirect2"
- sequence="90"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages0"
- match="You Have 2 minutes to 'say' the three numbers displayed above!"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages0"
- match="RANDOM BOT CHECK!"
- regexp="y"
- script="redirect"
- sequence="90"
- >
- </trigger>
- <trigger
- enabled="y"
- group="Messages0"
- match="^(.*?) drops Essence of (Fate|Power|Mind).$"
- send_to="12"
- regexp="y"
- script="redirect2"
- sequence="90"
- >
- <send>
- Note("+++++ ESSENCE DROP +++++")
- Note("+++++ YOU GOT AN ESSENCE DROP! +++++")
- </send>
- </trigger>
- </triggers>
- <!-- Aliases -->
- --[[
- mute 1: will mute stat gains, bonus gains, etc
- mute 2: will mute snet, ask, say, group, clan
- mute 3: wiznet, whisper, tells, info
- --]]
- <aliases>
- <alias
- enabled="y"
- match="unmute 1"
- send_to="12"
- sequence="100"
- >
- <send>
- EnableTriggerGroup("Messages1", false)
- Note("++Bonus Gains, and the like, are now unmuted.")
- </send>
- </alias>
- <alias
- enabled="y"
- match="mute 1"
- send_to="12"
- sequence="100"
- >
- <send>
- EnableTriggerGroup("Messages1", true)
- Note("--Bonus Gains, and the like, are now muted.")
- </send>
- </alias>
- <alias
- enabled="y"
- match="unmute 2"
- send_to="12"
- sequence="100"
- >
- <send>
- EnableTriggerGroup("Messages2", false)
- Note("++Snet, Ask, Say, Group, And Clan unmuted.")
- </send>
- </alias>
- <alias
- enabled="y"
- match="mute 2"
- send_to="12"
- sequence="100"
- >
- <send>
- EnableTriggerGroup("Messages2", true)
- Note("--Snet, Ask, Say, Group, And Clan muted.")
- </send>
- </alias>
- <alias
- enabled="y"
- match="unmute 3"
- send_to="12"
- sequence="100"
- >
- <send>
- EnableTriggerGroup("Messages3", false)
- Note("++Wiznet, Whisper, Tells, and Info are now unmuted.")
- </send>
- </alias>
- <alias
- enabled="y"
- match="mute 3"
- send_to="12"
- sequence="100"
- >
- <send>
- EnableTriggerGroup("Messages3", true)
- Note("--Wiznet, Whisper, Tells, and Info are now muted.")
- </send>
- </alias>
- </aliases>
- <script>
- <![CDATA[
- chat_world = "DBE Chats"
- local first_time = true
- function redirect (name, line, wildcards, styles)
- -- try to find "chat" world
- local w = GetWorld (chat_world) -- get "chat" 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>
- <script>
- <![CDATA[
- chat_world2 = "DBE Gains"
- local first_time = true
- function redirect2 (name, line, wildcards, styles)
- -- try to find "chat" world
- local w = GetWorld (chat_world2) -- get "chat" world
- -- if not found, try to open it
- if first_time and not w then
- local filename = GetInfo (67) .. chat_world2 .. ".mcl"
- Open (filename)
- w = GetWorld (chat_world2) -- try again
- if not w then
- ColourNote ("white", "red", "Can't open gain 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 redirect2
- ]]>
- </script>
- </muclient>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement