- <?xml version="1.0" encoding="iso-8859-1"?>
- <!DOCTYPE muclient>
- <!-- Saved on Wednesday, September 09, 2009, 2:21 PM -->
- <!-- MuClient version 4.43 -->
- <!-- Plugin "Monk_Prompt" generated by Plugin Wizard -->
- <muclient>
- <plugin
- name="Monk_Prompt"
- author="Nitro Uruuva"
- id="23e882ee14d5d1ff9db00fba"
- language="Lua"
- purpose="Shiny Monk Prompt"
- date_written="2009-09-09 14:20:56"
- requires="4.43"
- version="0.1"
- >
- </plugin>
- <script><![CDATA[
- prompt = {
- data = false,
- changed = false,
- }
- monk = {
- stance = "no",
- }
- prompt.draw = function ()
- if prompt.data and prompt.changed then
- DeleteLines (1)
- for k,v in ipairs (prompt.data) do
- ColourTell (RGBColourToName (v.textcolour),
- RGBColourToName (v.backcolour),
- v.text)
- end
- Note("")
- end
- prompt.changed = false
- end
- prompt.add = function (ptext,ptextcolour,pbackcolour)
- if prompt.data then
- i = table.getn(prompt.data)+1
- tempdata = {}
- tempdata.text = ptext
- tempdata.textcolour = ptextcolour
- tempdata.backcolour = pbackcolour
- prompt.data[i] = tempdata
- prompt.changed = true
- end
- end
- ]]></script>
- <triggers>
- <trigger enabled="y" match="^\d+h, \d+m [cexkdb@]*-(?:(\++)--)?$" regexp="y" send_to="12" sequence="1">
- <send>
- prompt.data = TriggerStyleRuns
- for _,v in ipairs (prompt.data) do
- v.text = string.gsub(v.text, "\++-+", "")
- end
- prompt.add("[", 16777215, 0)
- if monk.stance == "no" then
- prompt.add(monk.stance, 16777215, 255)
- else
- prompt.add(monk.stance, 16777215, 32768)
- end
- prompt.add("]", 16777215, 0)
- if string.len("%1")
- > 0 then
- prompt.add("[", 16777215, 0)
- prompt.add("%1", 65535, 0)
- prompt.add("]", 16777215, 0)
- end
- prompt.draw()
- </send>
- </trigger>
- <trigger enabled="y" match="^You ease yourself out of the \w+ stance\.$" regexp="y" send_to="12" sequence="100">
- <send>
- monk.stance = "no"
- </send>
- </trigger>
- <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">
- <send>
- monk.stance = "drs"
- </send>
- </trigger>
- <trigger enabled="y" match="^You sink back into the menacing stance of the Scorpion\.$" regexp="y" send_to="12" sequence="100">
- <send>
- monk.stance = "scs"
- </send>
- </trigger>
- <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">
- <send>
- monk.stance = "brs"
- </send>
- </trigger>
- <trigger enabled="y" match="^You drop your legs into a sturdy Horse stance\.$" regexp="y" send_to="12" sequence="100">
- <send>
- monk.stance = "hrs"
- </send>
- </trigger>
- <trigger enabled="y" match="^You draw back and balance into the Eagle stance\.$" regexp="y" send_to="12" sequence="100">
- <send>
- monk.stance = "egs"
- </send>
- </trigger>
- <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">
- <send>
- monk.stance = "cts"
- </send>
- </trigger>
- <trigger enabled="y" match="^You take the Rat stance\.$" regexp="y" send_to="12" sequence="100">
- <send>
- monk.stance = "rts"
- </send>
- </trigger>
- </triggers>
- <include name="constants.lua"/>
- </muclient>