<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<muclient>
<plugin
name="harvester"
author="blah blah"
id="296e69a0bd32701b106930ad"
language="Jscript"
purpose="harvesting"
save_state="y"
date_written="2006-01-22 16:54:19"
requires="3.66"
version="1.0"
>
</plugin>
<!-- Triggers -->
<triggers>
<trigger
enabled="y"
group="balances"
match="^You have recovered balance on all limbs\.$"
name="getbal"
regexp="y"
send_to="12"
sequence="100"
>
<send>if(world.GetVariable("no_of_herbs"
!= 0)
{
world.Send("harvest " + world.GetVariable("herb"
);
world.SetVariable("no_of_herbs", world.GetVariable("no_of_herbs"
- 1);
}</send>
</trigger>
</triggers>
<!-- Aliases -->
<aliases>
<alias
match="harvoff"
send_to="12"
enabled="y"
sequence="100"
>
<send>world.SetVariable("no_of_herbs", 0);</send>
</alias>
<alias
match="harv * *"
send_to="12"
enabled="y"
sequence="100"
>
<send>world.SetVariable("herb", "%2"
;
world.SetVariable("no_of_herbs", %1 - 1);
world.Send("harvest " + "%2"
;</send>
</alias>
</aliases>
<!-- Variables -->
<variables>
<variable name="no_of_herbs">0</variable>
<variable name="herb"></variable>
</variables>
</muclient>