This is in a trigger with the perl regex chosen.
Code: Select all
^H:(\d+) M:(\d+) XP:(\d+)%
Code: Select all
H:1600 M:1755 XP:66% [eb]
Code: Select all
CurrentHealth = matches[1]
CurrentMana = matches[2]
if CurrentHealth >= 1300 then
send("sip health")
end
CurrentMana = nil
CurrentHealth = nil