From 1ac8d91fff458521fd77dcfdb74cfbc7da894c00 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 19 三月 2021 16:28:11 +0800
Subject: [PATCH] 4990 【主干】【bt】【bt2】【btzf】【工具】GM工具新增纠正世界等级功能
---
ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_RefixWorldLV.py | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 53 insertions(+), 0 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_RefixWorldLV.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_RefixWorldLV.py
new file mode 100644
index 0000000..a770d1d
--- /dev/null
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_RefixWorldLV.py
@@ -0,0 +1,53 @@
+#!/usr/bin/python
+# -*- coding: GBK -*-
+#-------------------------------------------------------------------------------
+#
+##@package GM.Commands.GMT_RefixWorldLV
+#
+# @todo:纠正世界等级
+# @author hxp
+# @date 2021-03-19
+# @version 1.0
+#
+# 详细描述: 纠正世界等级
+#
+#-------------------------------------------------------------------------------
+#"""Version = 2021-03-19 17:00"""
+#-------------------------------------------------------------------------------
+
+import GMCommon
+import ShareDefine
+import PlayerDBGSEvent
+import GameWorldAverageLv
+
+## 执行逻辑
+# @param curPlayer 当前玩家
+# @param gmCmdDict: 命令字典
+# @return None
+# @remarks 函数详细说明.
+def OnExec(orderId, gmCmdDict):
+
+ beforeWorldLV = PlayerDBGSEvent.GetDBGSTrig_ByKey(ShareDefine.Def_Notify_WorldKey_WorldAverageLv)
+
+ # 重置然后直接重刷
+ PlayerDBGSEvent.SetDBGSTrig_ByKey(ShareDefine.Def_Notify_WorldKey_WorldAverageLv, 0)
+ GameWorldAverageLv.OpenWorldAverageLv()
+
+ afterWorldLV = PlayerDBGSEvent.GetDBGSTrig_ByKey(ShareDefine.Def_Notify_WorldKey_WorldAverageLv)
+
+ retMsg = {"beforeWorldLV":beforeWorldLV, "afterWorldLV":afterWorldLV}
+ GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_Success, retMsg)
+ return
+
+
+
+
+
+
+
+
+
+
+
+
+
--
Gitblit v1.8.0