|
发表于 2017-4-1 13:44:23
|
显示全部楼层
帮你改一下,不用改矿石名了:p
- create_trigger_t('hp21',"^(> )*(\\D*)矿石在炉火中化为一块\\D*落在地上,被你拣起收进背囊。",'','refinekuang')
- SetTriggerOption("hp21","group","hp")
- function refinekuang(n,l,w)
- if w[2] == '铁' then
- return check_busy(function() exe("refine tiekuang shi") end)
- elseif w[2] == '金' then
- return check_busy(function() exe("refine jinkuang shi") end)
- elseif w[2] == '银' then
- return check_busy(function() exe("refine yinkuang shi") end)
- elseif w[2] == '铜' then
- return check_busy(function() exe("refine tongkuang shi") end)
- end
- end
复制代码 |
|