|
楼主 |
发表于 2019-3-2 14:10:39
|
显示全部楼层
因为mush和插件之间互通搞不定,mush又写了个触发
自己删掉zja_cd 和@Q_name部分,你可以理解为示范或者其它什么的(就是我懒得删)
enabled="y"
expand_variables="y"
group="Status"
lines_to_match="3"
keep_evaluating="y"
match="\#(.*)\,[-]*(\d+)\,(\d+)\,[-]*(\d+)\,(\d+)\,(\d+)\n\#(\d+)\,(\d+)\,(\d+)\,(\d+)\,(\d+)\,(\d+)\n\#(\d+)\,(\d+)\,[-]*(\d+)\,[-]*(\d+)\,(\S+)\,(\S+)\Z"
multi_line="y"
regexp="y"
send_to="12"
sequence="100"
>
hpbrief_status("%1","%2","%3","%4","%5","%6","%7","%8","%9","%<10>","%<11>","%<12>","%<13>","%<14>","%<15>","%<16>","%<17>","%<18>")
if busy_sc == nil then
Execute("pfm_all;heal_sc")
end
if zja_cd then
if zja_cd >0 and zja_cd< 900 then
zja_cd = zja_cd -1
end
end
if "@Q_name" == "谍报" then
if combat_sc == nil and db_suc == 3 then
db_suc = "回复"
busy_cmd2 = "quickon;h;gt yujie"
EnableGroup("check_busy2",1)
Execute("checkbusy;check_busy2")
SetVariable ("Q_status","回复")
end
end
上面那触发需要脚本里加上下面这个,mush变量和lua都有是历史遗留问题,你可以只留一份
function hpbrief_status(h_exp,h_qianneng,h_maxnl,h_nl,h_maxjing,h_jing,h_max_qi,h_maxqi,h_qi,h_max_shen,h_maxshen,h_shen,h_zhenqi,h_zhanyi,h_shiwu,h_yinshui,h_combat,h_busy)
status = {}
SetVariable("exp",h_exp)
if string.find (h_exp,"M") then
status.exp=tonumber(string.sub (h_exp,1,-2))*1000000
elseif string.find (h_exp,"K") then
status.exp=tonumber(string.sub (h_exp,1,-2))*1000
end
SetVariable("qianneng",tonumber(h_qianneng))
status.qianneng = tonumber(h_qianneng)
SetVariable("maxli",tonumber(h_maxnl))
status.maxnl = tonumber(h_maxnl)
SetVariable("li",tonumber(h_nl))
status.nl = tonumber(h_nl)
SetVariable("maxjing",tonumber(h_maxjing))
status.maxjing = tonumber(h_maxjing)
SetVariable("jing",tonumber(h_jing))
status.jing = tonumber(h_jing)
SetVariable("perqi", tonumber(h_maxqi)/tonumber(h_max_qi)*100)
status.perqi = tonumber(h_maxqi)/tonumber(h_max_qi)*100
SetVariable("pershen", tonumber(h_maxshen)/tonumber(h_max_shen)*100)
status.pershen = tonumber(h_maxshen)/tonumber(h_max_shen)*100
SetVariable("maxqi", tonumber(h_maxqi))
status.maxqi = tonumber(h_maxqi)
SetVariable("qi", tonumber(h_qi))
status.qi = tonumber(h_qi)
SetVariable("maxshen", tonumber(h_maxshen))
status.maxshen = tonumber(h_maxshen)
SetVariable("shen", tonumber(h_shen))
status.shen = tonumber(h_shen)
SetVariable("zhenqi", tonumber(h_zhenqi))
status.zhenqi = tonumber(h_zhenqi)
SetVariable("zhanyi", tonumber(h_zhanyi))
status.zhanyi = tonumber(h_zhanyi)
SetVariable("shiwu", tonumber(h_shiwu))
status.shiwu = tonumber(h_shiwu)
SetVariable("yinshui", tonumber(h_yinshui))
status.yinshui = tonumber(h_yinshui)
if h_combat == "战斗" then
if combat_sc == nil then
combat_sc = 1
ColourNote("yellow","","************开始战斗************")
end
elseif h_combat == "非战斗" then
if combat_sc == 1 then
combat_sc = nil
ColourNote("yellow","","************战斗结束************")
end
end
if h_busy == "忙" then
busy_sc = 1
if combat_sc == 1 then
ColourNote("red","","************正在BUSY中************")
end
elseif h_busy == "不忙" then
busy_sc = nil
end
end |
|