<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Sunday, August 27, 2006, 10:08 AM -->
<!-- MuClient version 3.79 -->

<!-- Plugin "setentity_test" generated by Plugin Wizard -->

<muclient>
<plugin
   name="setentity_test"
   author="Nick Gammon"
   id="21b95afea32ccef5862307c8"
   language="Lua"
   purpose="Testing OnPluginMXPsetEntity"
   date_written="2006-08-27 10:07:28"
   requires="3.79"
   version="1.0"
   >

</plugin>


<!--  Aliases  -->

<aliases>
  <alias
   match="test"
   enabled="y"
   send_to="12"
   keep_evaluating="y"
   sequence="100"
  >
  <send>t = { 
    fruit = "apple", 
    vegetable = "potato", 
    spice = "pepper", 
    herb = "parsley",
    } 
result = utils.multilistbox (
    "Choose a food", 
    "Foods ...", 
    t, 
    {fruit = true, spice = true }
    )

if result then
  print (string.rep ("=", 10))
  print "result = "
  tprint (result)
  print (string.rep ("-", 10))
end

if result then
  print ("You chose:")
  for k in pairs (result) do
    print (k, " = ", t [k])
  end -- for
else
  print "Nothing chosen"
end -- if</send>
  </alias>
</aliases>

<!--  Timers  -->

<timers>
  <timer second="0.25"    send_to="2"
>
  <send>tick</send>

  </timer>
</timers>

<!--  Script  -->


<script>
<![CDATA[
function OnPluginMXPsetEntity (s)
  print (s)
end -- function
]]>
</script>


</muclient>
