Commit 59701355b426e0b2de62ac4cf45309033d26cedd

Authored by chenyueqi
1 parent 6afea142

增加清除引导记录的命令

Showing 1 changed file with 14 additions and 0 deletions   Show diff stats
src/actions/GmAction.lua
... ... @@ -366,6 +366,20 @@ function _M.email(role, pms)
366 366 return "成功"
367 367 end
368 368  
  369 +function _M.cguide(role, pms)
  370 + local id = tonum(pms.pm1, 0)
  371 + if id == 0 then
  372 + role:updateProperties({
  373 + newerGuide = "1=1",
  374 + funcGuide = "",
  375 + }, notNotify)
  376 + elseif id == 1 then
  377 + role:updateProperty({field = "newerGuide", value = "1=1"})
  378 + elseif id == 2 then
  379 + role:updateProperty({field = "funcGuide", value = ""})
  380 + end
  381 +end
  382 +
369 383 function _M.helpRpc(agent, data)
370 384 SendPacket(actionCodes.Gm_helpRpc, MsgPack.pack({help = helpDes}))
371 385 return true
... ...