pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

mushclient private pastebin - collaborative debugging tool What's a private pastebin?


Posted by Nitro on Wed 9 Sep 12:56
report abuse | download | new post

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE muclient>
  3. <!-- Saved on Wednesday, September 09, 2009, 2:21 PM -->
  4. <!-- MuClient version 4.43 -->
  5.  
  6. <!-- Plugin "Monk_Prompt" generated by Plugin Wizard -->
  7.  
  8. <muclient>
  9. <plugin
  10.    name="Monk_Prompt"
  11.    author="Nitro Uruuva"
  12.    id="23e882ee14d5d1ff9db00fba"
  13.    language="Lua"
  14.    purpose="Shiny Monk Prompt"
  15.    date_written="2009-09-09 14:20:56"
  16.    requires="4.43"
  17.    version="0.1"
  18.    >
  19.  
  20. </plugin>
  21.  
  22. <script><![CDATA[
  23.  
  24.  
  25. prompt = {
  26. data = false,
  27. changed = false,
  28. }
  29.  
  30. monk = {
  31. stance = "no",
  32. }
  33.  
  34.  
  35. prompt.draw = function ()
  36.   if prompt.data and prompt.changed then
  37.     DeleteLines (1)
  38.     for k,v in ipairs (prompt.data) do
  39.       ColourTell (RGBColourToName (v.textcolour),
  40.                   RGBColourToName (v.backcolour),
  41.                   v.text)
  42.     end
  43.     Note("")
  44.   end
  45.   prompt.changed = false
  46. end
  47.  
  48.  
  49. prompt.add = function (ptext,ptextcolour,pbackcolour)
  50.         if prompt.data then
  51.                 i = table.getn(prompt.data)+1
  52.                         tempdata = {}
  53.                         tempdata.text = ptext
  54.                 tempdata.textcolour = ptextcolour
  55.                 tempdata.backcolour = pbackcolour
  56.                 prompt.data[i] = tempdata
  57.                 prompt.changed = true
  58.         end
  59. end
  60.  
  61.  
  62. ]]></script>
  63.  
  64. <triggers>
  65. <trigger enabled="y" match="^\d+h, \d+m [cexkdb@]*-(?:(\++)--)?$" regexp="y" send_to="12" sequence="1">
  66.                         <send>
  67.                        
  68.    prompt.data = TriggerStyleRuns
  69.    for _,v in ipairs (prompt.data) do
  70.       v.text = string.gsub(v.text, "\++-+", "")
  71.    end
  72.    prompt.add("[", 16777215, 0)
  73.    if monk.stance == "no" then
  74.         prompt.add(monk.stance, 16777215, 255)
  75.    else
  76.         prompt.add(monk.stance, 16777215, 32768)
  77.    end
  78.    prompt.add("]", 16777215, 0)
  79.    if  string.len("%1")
  80.  > 0 then
  81.         prompt.add("[", 16777215, 0)
  82.         prompt.add("%1", 65535, 0)
  83.         prompt.add("]", 16777215, 0)
  84.    end
  85.    prompt.draw()
  86.  
  87.    </send>
  88.                 </trigger>
  89.  
  90.  
  91. <trigger enabled="y" match="^You ease yourself out of the \w+ stance\.$" regexp="y" send_to="12" sequence="100">
  92.                         <send>
  93.                 monk.stance = "no"
  94.    </send>
  95.                 </trigger>
  96.                
  97.  
  98. <trigger enabled="y" match="^You allow the form of the Dragon to fill your mind and govern your actions\.$" regexp="y" send_to="12" sequence="100">
  99.                         <send>
  100.                 monk.stance = "drs"
  101.    </send>
  102.                 </trigger>
  103.                
  104.  
  105. <trigger enabled="y" match="^You sink back into the menacing stance of the Scorpion\.$" regexp="y" send_to="12" sequence="100">
  106.                         <send>
  107.                 monk.stance = "scs"
  108.    </send>
  109.                 </trigger>
  110.                
  111.  
  112. <trigger enabled="y" match="^You draw yourself up to full height and roar aloud, adopting the Bear stance\.$" regexp="y" send_to="12" sequence="100">
  113.                         <send>
  114.                 monk.stance = "brs"
  115.    </send>
  116.                 </trigger>
  117.                
  118. <trigger enabled="y" match="^You drop your legs into a sturdy Horse stance\.$" regexp="y" send_to="12" sequence="100">
  119.                         <send>
  120.                 monk.stance = "hrs"
  121.    </send>
  122.                 </trigger>
  123.                
  124. <trigger enabled="y" match="^You draw back and balance into the Eagle stance\.$" regexp="y" send_to="12" sequence="100">
  125.                         <send>
  126.                 monk.stance = "egs"
  127.    </send>
  128.                 </trigger>
  129.                
  130. <trigger enabled="y" match="^You tense your muscles and look about sharply as you take the stance of the Cat\.$" regexp="y" send_to="12" sequence="100">
  131.                         <send>
  132.                 monk.stance = "cts"
  133.    </send>
  134.                 </trigger>
  135.                
  136. <trigger enabled="y" match="^You take the Rat stance\.$" regexp="y" send_to="12" sequence="100">
  137.                         <send>
  138.                 monk.stance = "rts"
  139.    </send>
  140.                 </trigger>
  141.  
  142.  
  143. </triggers>
  144.  
  145. <include name="constants.lua"/>
  146.  
  147. </muclient>

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post