From 1cf37b4b51fc287ca3e443afb72604ec88f72cc4 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期三, 09 七月 2025 19:33:55 +0800 Subject: [PATCH] 0312 玩家物品支持DWORD数量 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py | 33 ++------------------------------- 1 files changed, 2 insertions(+), 31 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py index d4a30f2..80eeaa9 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/GMShell.py @@ -28,7 +28,6 @@ import PlayerControl import ReadChConfig import traceback -import PlayerTJG import FBLogic import GameObj #--------------------------------------------------------------------- @@ -38,7 +37,6 @@ GameWorld.ImportAll("Script\\GM\\" , "Commands") GameWorld.ImportAll("Script\\GM\\" , "") -TestPlatformList = ["test", "yun"] #--------------------------------------------------------------------- ## 重新导入GM全部命令 # @param tick 当前时间 @@ -75,7 +73,7 @@ # curIP = curPlayer.GetIP() # if (curIP.find('10.30.') == 0 or curIP.find('192.168.') == 0) and playerPF == "173on_lan": #测试修改 - if playerPF in TestPlatformList: + if GameWorld.IsTestPlatform(playerPF): curPlayer.SetGMLevel(gmLV) GameWorld.DebugAnswer(curPlayer, "SetGMLevel %s" % gmLV) else: @@ -179,10 +177,7 @@ if value == None: GameWorld.DebugAnswer(curPlayer, "参数错误, 必须为纯数字!") return - if callFunName == "SetHappyPoint": - PlayerTJG.SetTJGTime(curPlayer, value) - else: - callObj(value) + callObj(value) else: GameWorld.DebugAnswer(curPlayer, "不支持该命令!curPlayer.%s" % callFunName) return @@ -228,30 +223,6 @@ if curPlayer_GMLV == 90: #内部测试人员,不限制 return True - - GMLVPowerDict = ReadChConfig.GetEvalChConfig("GMLVPower") - if curPlayer_GMLV in GMLVPowerDict: - powerList = GMLVPowerDict[curPlayer_GMLV] - if not powerList or callFunName in powerList: - return True - - #验证权限 - if callFunName in ChConfig.Def_GMPower_Disc: - gmPowerList = ChConfig.Def_GMPower_Disc[callFunName] - - if curPlayer_GMLV not in gmPowerList: - #GM等级异常 - GameWorld.Log("###使用GM命令 = %s,GM等级 = %s异常"%(callFunName , curPlayer_GMLV) , curPlayer.GetPlayerID()) - return - - if not gmPowerList[curPlayer_GMLV]: - GameWorld.Log("###使用GM命令 = %s,权限 = %s不足"%(callFunName , curPlayer_GMLV) , curPlayer.GetPlayerID()) - return - - #内部测试用GM命令 - else: - GameWorld.Log("###非内部人员, 使用调试GM命令 = %s,权限 = %s不足"%(callFunName , curPlayer_GMLV) , curPlayer.GetPlayerID()) - return return True -- Gitblit v1.8.0