Code: Select all
^H:(\d+) M:(\d+) E:(\d+) W:(\d+) <(\w+)(\w+)>$
echo("the trigger worked.")
health = (matches[2])
mana = (matches[3])
equilibrium = (matches[6])
balance = (matches[7])
echo("the trigger worked twice.")
if (maxhealth/3 < health) then
send(dh)
end
if (maxmana/3 < mana) then
echo("worked mana")
end
if balance == ("-") then
balance = (0)
end
if equilibrium == ("-") then
equilibrium = (0)
end