Doubt with regexp
Posted: 15 Sep 2017, 17:57
I have the following automacro
The macro works fine except if the entered text is "asp" or "aspe" (forgot to try with "holy"). The same happens with an automacro that buffs, it works with many variations except, for example, "agi". Is there any way to make it work with "asp", etc?
Thanks.
Code: Select all
automacro AspersioOthers {
console /\[dist=(.*)\] (.*) \((\d+)\): \*asp|aspersio|holy|asper|aspe\*$/
status Blessing
status Increase AGI
sp > 30%
run-once 1
timeout 30
exclusive 1
overrideAI 1
call {
do ai manual
$dist = $.lastMatch1
if ($dist > 6) stop
$name = $.lastMatch2
$PlayerID = $.lastMatch3
pause 1
do sp 68 $PlayerID 5
log Finish macro: AspersioOthers at $.datetime
pause 1
do ai on
release AspersioOthers
}
}
Thanks.