on $*:text:/.*buffalo was milked (\n+)\s*(?:min|sec)(?:\s*(\n+)\s*sec)\s*ago/i:*: {
set %sec $iif($regml(2),$regml(2),$regml(1)
set %min $iif($regml(2),$regml(1))
}
UNTESTED edit: the above didnt work, this should work (but be warned, people can say buffalo 532424min 64325123456sec (ect) and it changes the values, i suggest using a "if ($nick != nick) return"
Code:
on *:text:*buffalo*:*:{
tokenize 32 $replace($1-,$chr(32),)
if ($regex(min,$1-,/([0-9]+)min/)) {
set %min $regml(min,1)
}
if ($regex(sec,$1-,/([0-9]+)sec/)) {
set %sec $regml(sec,1)
}
}