|

楼主 |
发表于 2009-11-4 11:30:45
|
显示全部楼层
比如说这样 我怎么能在触发器里实现时间等待?
match="begin_learn"
enabled="y"
echo_alias="y"
regexp="n"
send_to="12"
sequence="100"
>
do local t = coroutine.create(function (t)
repeat
Send("learn master force 1")
line, wildcards = waitforregexp (t,
"^(你听了(.+?)的指导,似乎有些心得。|然而你今天太累了,无法再进行任何学习了。)$")
until line == "然而你今天太累了,无法再进行任何学习了。"
Send("sleep")
end)
assert (coroutine.resume (t, t)) end
|
|