|
发表于 2018-11-15 11:54:09
|
显示全部楼层
不会ZMUD,我的MUSH的发你参考下
enabled="y"
group="宋远桥"
lines_to_match="5"
match="^▇▇▇▇▇$"
regexp="y"
send_to="12"
sequence="100"
>
local code = ""
local line_num = GetLinesInBufferCount()
local styles_num = GetLineInfo(line_num,11)
for i = 1,styles_num do
local jiefei_color = GetStyleInfo(line_num,i,14)
local jiefei_color_ch = RGBColourToName(jiefei_color)
--print(GetStyleInfo(line_num,i,1),jiefei_color_ch)
code = code..GetStyleInfo(line_num,i,1)..jiefei_color_ch
end
if #job.expect < 5 then
table.insert(job.expect, code)
return
end
if #job.answer < 5 then
table.insert(job.answer, code)
end
if #job.answer == 5 then
if table.concat(job.expect) == table.concat(job.answer) then
Execute("bl off;guancha")
end
job.answer={}
end
|
|