Beasty

From LSWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 11:25, 10 December 2008 (edit)
Beasty (Talk | contribs)

← Previous diff
Revision as of 23:03, 11 January 2009 (edit)
Beasty (Talk | contribs)

Next diff →
Line 16: Line 16:
* My Drake, Bill, was at death's door recently and Gavadel was kind enough to heal him. I thank him on her behalf (Yup, Bill's a female but I just live for Cognitive Dissonance...) * My Drake, Bill, was at death's door recently and Gavadel was kind enough to heal him. I thank him on her behalf (Yup, Bill's a female but I just live for Cognitive Dissonance...)
 +
 +
 +
 +****** In case you need to see what I use for a chat window on mushClient...
 +
 +
 +
 +<?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="Chat_Redirector"
 + author="Nick Gammon"
 + id="cb84a526b476f69f403517da"
 + language="Lua"
 + purpose="Redirects chat messages to another world"
 + date_written="2007-06-30 10:45:35"
 + requires="4.08"
 + version="2.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="^.+\[OOC .+"
 + regexp="y"
 + script="chat_redirect"
 + omit_from_output="y"
 + sequence="100"
 + >
 + </trigger>
 +
 + <trigger
 + enabled="y"
 + match="^\[OOC .+"
 + regexp="y"
 + script="chat_redirect"
 + omit_from_output="y"
 + sequence="100"
 + >
 + </trigger>
 +
 +
 + <trigger
 + enabled="y"
 + match="^.+ =--.+"
 + regexp="y"
 + script="chat_redirect"
 + omit_from_output="y"
 + sequence="100"
 + >
 + </trigger>
 +
 + <trigger
 + enabled="y"
 + match="^.+ OOC.+"
 + regexp="y"
 + script="chat_redirect"
 + omit_from_output="y"
 + sequence="100"
 + >
 + </trigger>
 +
 +
 +
 + <trigger
 + enabled="y"
 + match="^.+ You (crackle|tell|whisper), .+"
 + regexp="y"
 + script="chat_redirect"
 + omit_from_output="y"
 + sequence="100"
 + >
 + </trigger>
 +
 + <trigger
 + enabled="n"
 + match="*"
 + script="chat_redirect"
 + name="multi_line_chat"
 + omit_from_output="y"
 + sequence="10"
 + >
 + </trigger>
 +
 +
 +</triggers>
 +
 +<!-- Script -->
 +
 +
 +<script>
 +<![CDATA[
 +chat_world = "Lost Souls chat"
 +who_world = "Who List"
 +
 +local tried_to_open = {} -- set flag if can't open world
 +
 +function send_to_window (world_name, styles)
 +
 + -- try to find "chat" world
 + local w = GetWorld (world_name) -- get "chat" world
 +
 + -- if not found, try to open it
 + if not tried_to_open [world_name] and not w then
 + local filename = GetInfo (67) .. world_name .. ".mcl"
 + Open (filename)
 + w = GetWorld (world_name) -- try again
 + if not w then
 + ColourNote ("white", "red", "Can't open chat world file: " .. filename)
 + tried_to_open [world_name] = true -- 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
 +
 +local filename = GetInfo (67) .. "Lost Souls.mcl"
 +Open (filename)
 +
 +
 +end -- send_to_window
 +
 +-- chat redirector
 +function chat_redirect (name, line, wildcards, styles)
 +
 + send_to_window (chat_world, styles)
 +
 + -- if ends with quote, end of multi-line chat
 + if (line:sub (-1) == '"' or line:sub (-1) == ']' or line:sub (-1) == '.') then
 + EnableTrigger ("multi_line_chat", false) -- no more lines to go
 + else
 + EnableTrigger ("multi_line_chat", true) -- capture subsequent lines
 + end -- if
 +
 +end -- function chat_redirect
 +
 +-- who list redirector
 +function who_list_redirect (name, line, wildcards, styles)
 +
 + if string.match (line, "^%d+h,") then
 + EnableTrigger ("multi_line_who", false) -- no more lines to go
 + return -- don't copy line
 + else
 + EnableTrigger ("multi_line_who", true) -- capture subsequent lines
 + end -- if
 +
 + send_to_window (who_world, styles)
 +
 +end -- function who_list_redirect
 +
 +]]>
 +</script>
 +</muclient>

Revision as of 23:03, 11 January 2009

Background

Current Exploits

Future Plans

Acknowledgements

This MUD is just too absorbing that it's difficult for me to tear myself away from my awful MUDclient to writing anything of consequence.

However, I will attempt to keep a log of the kindness of strangers I encounter

  • I had been visiting my supposed home town of Tlaxcala when I was wiped out by some Hyperion(I think) guys at the top of the temple. After they kept killing me upon recorporealization, Dyne was nice enough to come and wipe them out in return. After tracking down and returning my preferred weapons (sunfury sai), I developed the fine art of kicking corpses for therapy. Not very effective in the game but very useful for my family life.
  • I had taken to hanging around Mycenae and taking on the minotaurs. Very risky, but effective because they just keep coming. This has led to many messy demises but many thanks to Dyne for collecting my remains
  • My Drake, Bill, was at death's door recently and Gavadel was kind enough to heal him. I thank him on her behalf (Yup, Bill's a female but I just live for Cognitive Dissonance...)


            • In case you need to see what I use for a chat window on mushClient...


<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE muclient>


<muclient> <plugin

  name="Chat_Redirector"
  author="Nick Gammon"
  id="cb84a526b476f69f403517da"
  language="Lua"
  purpose="Redirects chat messages to another world"
  date_written="2007-06-30 10:45:35"
  requires="4.08"
  version="2.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>


 <trigger
  enabled="y"
  match="^.+\[OOC .+"
  regexp="y"
  script="chat_redirect"
  omit_from_output="y"
  sequence="100"
 >
 </trigger>
 <trigger
  enabled="y"
  match="^\[OOC .+"
  regexp="y"
  script="chat_redirect"
  omit_from_output="y"
  sequence="100"
 >
 </trigger>


 <trigger
  enabled="y"
  match="^.+  =--.+"
  regexp="y"
  script="chat_redirect"
  omit_from_output="y"
  sequence="100"
 >
 </trigger>
 <trigger
  enabled="y"
  match="^.+ OOC.+"
  regexp="y"
  script="chat_redirect"
  omit_from_output="y"
  sequence="100"
 >
 </trigger>


 <trigger
  enabled="y"
  match="^.+ You (crackle|tell|whisper), .+"
  regexp="y"
  script="chat_redirect"
  omit_from_output="y"
  sequence="100"
 >
 </trigger>
 <trigger
  enabled="n"
  match="*"
  script="chat_redirect"
  name="multi_line_chat"
  omit_from_output="y"
  sequence="10"
 >
 </trigger>


</triggers>


<script> <![CDATA[ chat_world = "Lost Souls chat" who_world = "Who List"

local tried_to_open = {} -- set flag if can't open world

function send_to_window (world_name, styles)

 -- try to find "chat" world
 local w = GetWorld (world_name)  -- get "chat" world
 -- if not found, try to open it
 if not tried_to_open [world_name] and not w then
   local filename = GetInfo (67) .. world_name .. ".mcl"
   Open (filename)
   w = GetWorld (world_name)  -- try again
   if not w then
     ColourNote ("white", "red", "Can't open chat world file: " .. filename)
     tried_to_open [world_name] = true -- 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

local filename = GetInfo (67) .. "Lost Souls.mcl" Open (filename)


end -- send_to_window

-- chat redirector function chat_redirect (name, line, wildcards, styles)

 send_to_window (chat_world, styles)
 -- if ends with quote, end of multi-line chat
 if (line:sub (-1) == '"' or line:sub (-1) == ']' or line:sub (-1) == '.') then
   EnableTrigger ("multi_line_chat", false)  -- no more lines to go
 else
   EnableTrigger ("multi_line_chat", true)  -- capture subsequent lines
 end -- if

end -- function chat_redirect

-- who list redirector function who_list_redirect (name, line, wildcards, styles)

 if string.match (line, "^%d+h,") then
   EnableTrigger ("multi_line_who", false)  -- no more lines to go
   return -- don't copy line
 else
   EnableTrigger ("multi_line_who", true)  -- capture subsequent lines
 end -- if
 send_to_window (who_world, styles)

end -- function who_list_redirect

]]> </script> </muclient>

Personal tools