Prompt line failure
Posted: Mon Sep 14, 2009 9:41 pm
I'm trying to create an autosipper, and I'm starting with the bare bones basic as I'm learning lua as I go.
I had it so the first two echos were firing, but now none of them are and everything below "the trigger worked twice." has never worked. Not sure what I'm doing wrong (I know that nothing will actually HAPPEN as far as curing goes at this point) so any help would be great!
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