Mush chatsplugin

From Unofficial Ansalon Wiki

Jump to: navigation, search

Chat Capture Script

<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE muclient> <!-- Saved on Friday, September 07, 2007, 8:42 AM --> <!-- MuClient version 4.14 --> <!-- Plugin "AnsyConvoCap_v1" generated by Plugin Wizard --> <muclient> <plugin name="AnsyConvoCap_v1" author="Lothoemas" id="883fea8f75b543b4cd9a8ba0" language="Lua" purpose="To capture conversations." date_written="2007-09-07 08:41:27" requires="4.14" version="1.0" > </plugin> <!-- Get our standard constants --> <include name="constants.lua"/> <!-- Triggers --> <triggers> <trigger enabled="y" group="ConvoCapture" match="You have become better at *!" send_to="14" sequence="100" > <send>local w = GetWorld ("chats") -- get "chat" world if w then -- if present for _, v in ipairs (TriggerStyleRuns) do w:ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end -- for each style run w:Note ("") -- wrap up line end -- world found</send> </trigger> <trigger enabled="y" group="ConvoCapture" match="You tell the group '*'" match_text_colour="y" send_to="14" sequence="100" text_colour="15" > <send>local w = GetWorld ("chats") -- get "chat" world if w then -- if present for _, v in ipairs (TriggerStyleRuns) do w:ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end -- for each style run w:Note ("") -- wrap up line end -- world found</send> </trigger> <trigger enabled="y" group="ConvoCapture" match="[*] *: *" match_text_colour="y" send_to="14" sequence="100" text_colour="15" > <send>local w = GetWorld ("chats") -- get "chat" world if w then -- if present for _, v in ipairs (TriggerStyleRuns) do w:ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end -- for each style run w:Note ("") -- wrap up line end -- world found</send> </trigger> <trigger enabled="y" group="ConvoCapture" match="^\* *" match_text_colour="y" regexp="y" send_to="14" sequence="100" text_colour="10" > <send>local w = GetWorld ("chats") -- get "chat" world if w then -- if present for _, v in ipairs (TriggerStyleRuns) do w:ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end -- for each style run w:Note ("") -- wrap up line end -- world found</send> </trigger> <trigger enabled="y" group="ConvoCapture" match="* * '*'" match_text_colour="y" send_to="14" sequence="100" text_colour="15" > <send>local w = GetWorld ("chats") -- get "chat" world if w then -- if present for _, v in ipairs (TriggerStyleRuns) do w:ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end -- for each style run w:Note ("") -- wrap up line end -- world found</send> </trigger> <trigger enabled="y" group="ConvoCapture" match="* [*]: '*'" match_text_colour="y" send_to="14" sequence="100" text_colour="11" > <send>local w = GetWorld ("chats") -- get "chat" world if w then -- if present for _, v in ipairs (TriggerStyleRuns) do w:ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end -- for each style run w:Note ("") -- wrap up line end -- world found</send> </trigger> <trigger enabled="y" group="ConvoCapture" match="* has joined channel [*]" match_text_colour="y" send_to="14" sequence="100" text_colour="11" > <send>local w = GetWorld ("chats") -- get "chat" world if w then -- if present for _, v in ipairs (TriggerStyleRuns) do w:ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end -- for each style run w:Note ("") -- wrap up line end -- world found</send> </trigger> <trigger enabled="y" group="ConvoCapture" match="* has left channel [*]" match_text_colour="y" send_to="14" sequence="100" text_colour="11" > <send>local w = GetWorld ("chats") -- get "chat" world if w then -- if present for _, v in ipairs (TriggerStyleRuns) do w:ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end -- for each style run w:Note ("") -- wrap up line end -- world found</send> </trigger> <trigger enabled="y" group="ConvoCapture" match="* tells the group '*'" match_text_colour="y" send_to="14" sequence="100" text_colour="15" > <send>local w = GetWorld ("chats") -- get "chat" world if w then -- if present for _, v in ipairs (TriggerStyleRuns) do w:ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end -- for each style run w:Note ("") -- wrap up line end -- world found</send> </trigger> <trigger enabled="y" group="ConvoCapture" match="*: *" match_text_colour="y" send_to="14" sequence="100" text_colour="14" > <send>local w = GetWorld ("chats") -- get "chat" world if w then -- if present for _, v in ipairs (TriggerStyleRuns) do w:ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end -- for each style run w:Note ("") -- wrap up line end -- world found</send> </trigger> </triggers> </muclient>

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox