我们先定一个扬州逛街路径
Hclua.HC.queue([[
#t+ walk
#print 开始遍历,请点击next按钮
#pause
w
s
s
s
s
n
n
n
n
#print 等待3秒
#wait 3000
w
e
n
n
s
s
e
#resume
#print 遍历结束
#t- walk
]])
然后做一个下一步的按钮/别名
print('剩余'..#(Hclua.HC.sender:queue(true))..'步')
Hclua.HC.sender:resumeNext()
再做一个重发的指令
Hclua.HC.sender:wait(1):resend()
就能实现一个简单的手动点next按钮/输入#next的遍历了
mush还可以直接用如下lua
Hclua.HC.eventBus:bindEvent('core.metronome.sent',function (m)
InfoClear()
Info(table.concat(m:queue(true),';'))
end)实现在信息栏打印队列剩余内容的功能
队列跑起来如图
很明显。
如果你把整个扬州的路径加进去,再加上判断npc的判断,你就能实现一个简单的自动遍历了。
详细文档见
https://github.com/hellclient-scripts/hc-lua/blob/main/doc/modules.md
打完收工
页:
1
[2]