<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Wednesday, July 26, 2006, 7:22 AM -->
<!-- MuClient version 3.74 -->

<!-- Plugin "Aardwolf_Attributes_ReportLUA" generated by Plugin Wizard -->

<muclient>
<plugin
   name="Aardwolf_Attributes_ReportLUA"
   author="Onoitsu2"
   id="d3c23c552b5b3df37ba6b9b4"
   language="Lua"
   purpose="Reports to set channel your attributes"
   date_written="2006-07-26 07:19:43"
   requires="3.65"
   version="1.1"
   >
<description trim="n">
<![CDATA[
Aardwolf_Attributes_ReportLUA Helpfile

attrrep CHANNEL    - reports the output of the attributes command to specified channel (gtell, ftalk, tell NAME, etc.)
]]>
</description>

</plugin>


<!--  Get our standard constants -->

<include name="constants.lua"/>

<!--  Triggers  -->

<triggers>
  <trigger
   enabled="n"
   expand_variables="y"
   group="attributes"
   ignore_case="y"
   keep_evaluating="y"
   match="^Str \:\[\s*(\d+)\/\s*(\d+)\]  Int \:\[\s*(\d+)\/\s*(\d+)\]  Wis \:\[\s*(\d+)\/\s*(\d+)\]  Hr \:\[\s*(\d+)\]$"
   omit_from_output="y"
   regexp="y"
   repeat="y"
   script="str_int_wis_hr"
   sequence="100"
  >
  </trigger>
  <trigger
   enabled="n"
   expand_variables="y"
   group="attributes"
   ignore_case="y"
   keep_evaluating="y"
   match="^Trains\: \[\s*(\d+)\]  Pracs\: \[\s*(\d+)\]  Saves\: \[\s*(\d+)\]   AC\: \[\s*(\d+)\/(\d+)\/(\d+)\/(\d+)\s*\]$"
   omit_from_output="y"
   regexp="y"
   repeat="y"
   script="train_prac_saves_ac"
   sequence="100"
  >
  </trigger>
  <trigger
   enabled="n"
   expand_variables="y"
   group="attributes"
   ignore_case="y"
   keep_evaluating="y"
   match="^(\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-|Your main attributes are\:|)$"
   omit_from_output="y"
   regexp="y"
   repeat="y"
   sequence="100"
  >
  </trigger>
  <trigger
   enabled="n"
   expand_variables="y"
   group="attributes"
   ignore_case="y"
   keep_evaluating="y"
   match="^Hp\:\[\s*(\d+)\/\s*(\d+)\]  Mn\:\[\s*(\d+)\/\s*(\d+)\]  Mv\:\[\s*(\d+)\/\s*(\d+)\]$"
   omit_from_output="y"
   regexp="y"
   repeat="y"
   script="hp_mn_mv"
   sequence="100"
  >
  </trigger>
  <trigger
   enabled="n"
   expand_variables="y"
   group="attributes"
   ignore_case="y"
   keep_evaluating="y"
   match="^Dex \:\[\s*(\d+)\/\s*(\d+)\]  Con \:\[\s*(\d+)\/\s*(\d+)\]  Luck\:\[\s*(\d+)\/\s*(\d+)\]  Dr \:\[\s*(\d+)\]$"
   omit_from_output="y"
   regexp="y"
   repeat="y"
   script="dex_con_luck_dr"
   sequence="100"
  >
  </trigger>
  <trigger
   enabled="n"
   expand_variables="y"
   group="attributes"
   ignore_case="y"
   keep_evaluating="y"
   match="^\(Use \'SCORE\' and \'WHOIS\' to see more details on your character\)$"
   omit_from_output="y"
   regexp="y"
   repeat="y"
   script="attrepsend"
   sequence="100"
  >
  </trigger>
</triggers>

<!--  Aliases  -->

<aliases>
  <alias
   match="^attrrep (.*?)$"
   enabled="y"
   omit_from_command_history="y"
   regexp="y"
   script="attrep"
   send_to="12"
   sequence="100"
  >
  </alias>
</aliases>

<!--  Plugin help  -->

<aliases>
  <alias
   script="OnHelp"
   match="attrrep help"
   enabled="y"
  >
  </alias>
</aliases>

<script>
channel = "gt"
str1 = ""
str2 = ""
int1 = ""
int2 = ""
wis1 = ""
wis2 = ""
hr = ""
dex1 = ""
dex2 = ""
con1 = ""
con2 = ""
luck1 = ""
luck2 = ""
dr = ""
hp1 = ""
hp2 = ""
mn1 = ""
mn2 = ""
mv1 = ""
mv2 = ""
trains = ""
practices = ""
saves = ""
ac1 = ""
ac2 = ""
ac3 = ""
ac4 = ""

<![CDATA[
function attrep(sName,sLine,wildcards)
channel = wildcards[1]
world.EnableTriggerGroup("attributes",true)
SendNoEcho("attributes")
end -- attrep

function attrepsend(sName,sLine,wildcards)
local sendmsg1, sendmsg2, sendmsg3, sendmsg4, sendmsg5
sendmsg1 = "My STR-INT-WIS-HR: Str(" .. str1 .. ") Int(" .. int1 .. ") Wis(" .. wis1 .. ") HR(" .. hr .. ")"
sendmsg2 = "My DEX-CON-LUCK-DR: Dex(" .. dex1 .. ") Con(" .. con1 .. ") Luck(" .. luck1 .. ") DR(" .. dr .. ")"
sendmsg3 = "My HP-MN-MV: HP(" .. hp1 .. "/" .. hp2 .. ") MN(" .. mn1 .. "/" .. mn2 .. ") MV(" .. mv1 .. "/" .. mv2 .. ")"
sendmsg4 = "My TRAIN-PRACTICE-SAVES: Trains(" .. trains .. ") Practices(" .. practices .. ") Saves(" .. saves .. ")"
sendmsg5 = "My Armor Is: Pierce(" .. ac1 .. ") Bash(" .. ac2 .. ") Slash(" .. ac3 .. ") Exotic(" .. ac4 .. ")"
SendNoEcho(channel .. " " .. sendmsg1)
SendNoEcho(channel .. " " .. sendmsg2)
SendNoEcho(channel .. " " .. sendmsg3)
SendNoEcho(channel .. " " .. sendmsg4)
SendNoEcho(channel .. " " .. sendmsg5)
DoAfterSpecial(1,'EnableTriggerGroup("attributes",false)',12)
end -- attrepsend

function str_int_wis_hr(sName,sLine,wildcards)
str1 = wildcards[1]
str2 = wildcards[2]
int1 = wildcards[3]
int2 = wildcards[4]
wis1 = wildcards[5]
wis2 = wildcards[6]
hr = wildcards[7]
end -- str_int_wis_hr

function dex_con_luck_dr(sName,sLine,wildcards)
dex1 = wildcards[1]
dex2 = wildcards[2]
con1 = wildcards[3]
con2 = wildcards[4]
luck1 = wildcards[5]
luck2 = wildcards[6]
dr = wildcards[7]
end -- dex_con_luck_dr

function hp_mn_mv(sName,sLine,wildcards)
hp1 = wildcards[1]
hp2 = wildcards[2]
mn1 = wildcards[3]
mn2 = wildcards[4]
mv1 = wildcards[5]
mv2 = wildcards[6]
end -- hp_mn_mv

function train_prac_saves_ac(sName,sLine,wildcards)
trains = wildcards[1]
practices = wildcards[2]
saves = wildcards[3]
ac1 = wildcards[4]
ac2 = wildcards[5]
ac3 = wildcards[6]
ac4 = wildcards[7]
end -- train_prac_saves_ac

function OnPluginInstall()
OnHelp()
end -- OnPluginInstall

function OnHelp ()
  world.Note (world.GetPluginInfo (world.GetPluginID (), 3))
end
]]>
</script> 

</muclient>
