diff --git a/src/actions/GmAction.lua b/src/actions/GmAction.lua index 77a57dc..0fc90ce 100644 --- a/src/actions/GmAction.lua +++ b/src/actions/GmAction.lua @@ -366,6 +366,20 @@ function _M.email(role, pms) return "成功" end +function _M.cguide(role, pms) + local id = tonum(pms.pm1, 0) + if id == 0 then + role:updateProperties({ + newerGuide = "1=1", + funcGuide = "", + }, notNotify) + elseif id == 1 then + role:updateProperty({field = "newerGuide", value = "1=1"}) + elseif id == 2 then + role:updateProperty({field = "funcGuide", value = ""}) + end +end + function _M.helpRpc(agent, data) SendPacket(actionCodes.Gm_helpRpc, MsgPack.pack({help = helpDes})) return true -- libgit2 0.21.2