From 59701355b426e0b2de62ac4cf45309033d26cedd Mon Sep 17 00:00:00 2001 From: chenyueqi <1056825054@qq.com> Date: Thu, 5 Mar 2020 15:39:18 +0800 Subject: [PATCH] 增加清除引导记录的命令 --- src/actions/GmAction.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+), 0 deletions(-) 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