| | |
| | | import GMCommon
|
| | | import ChConfig
|
| | | import GameWorld
|
| | | #import GMShell
|
| | | import GMShell
|
| | |
|
| | |
|
| | | ## 执行逻辑
|
| | |
| | | playerFind = gmCmdDict.get(GMCommon.Def_GMKey_PlayerFind, '')
|
| | | titleID = GameWorld.ToIntDef(gmCmdDict.get('titleID', ''), 0)
|
| | | expireTime = GameWorld.ToIntDef(gmCmdDict.get('expireTime', ''), 0)
|
| | | setValue = GameWorld.ToIntDef(gmCmdDict.get('setValue', ''), 0)
|
| | | opType = gmCmdDict.get('opType', '')
|
| | |
|
| | | if titleID <= 0:
|
| | |
| | | return
|
| | |
|
| | | if not tagPlayer:
|
| | | GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_PlayerOfLine)
|
| | | # # 玩家不在线,先记录,等玩家上线后处理
|
| | | # GMShell.AddOfflinePlayerGMTInfo(orderId, queryType, playerFind, gmCmdDict)
|
| | | # 玩家不在线,先记录,等玩家上线后处理
|
| | | GMShell.AddOfflinePlayerGMTInfo(orderId, queryType, playerFind, gmCmdDict)
|
| | | return
|
| | |
|
| | | isOnlineGMT = True # 是否是在线接收的GM工具命令
|
| | | GMCommon.GMTool_MapServer_Query(queryType, orderId, playerFind, gmCmdDict, "GMTAddTitle", [orderId, isOnlineGMT, titleID, expireTime, opType], False)
|
| | | GMCommon.GMTool_MapServer_Query(queryType, orderId, playerFind, gmCmdDict, "GMTAddTitle", [orderId, isOnlineGMT, titleID, expireTime, opType, setValue], False)
|
| | | return
|
| | |
|
| | | #def OnOfflineGMTInfo(curPlayer, tagMapID, gmCmdDict):
|
| | | # orderId = gmCmdDict.get('orderId', '')
|
| | | # titleID = GameWorld.ToIntDef(gmCmdDict.get('titleID', ''), 0)
|
| | | # expireTime = GameWorld.ToIntDef(gmCmdDict.get('expireTime', ''), 0)
|
| | | # isOnlineGMT = False # 是否是在线接收的GM工具命令
|
| | | # cmdStr = str([orderId, isOnlineGMT, titleID, expireTime])
|
| | | # GameWorld.GetPlayerManager().MapServer_QueryPlayer(0, 0, curPlayer.GetPlayerID(), tagMapID, 'GMTAddTitle',
|
| | | # cmdStr, len(cmdStr), curPlayer.GetRouteServerIndex())
|
| | | # return
|
| | | def OnOfflineGMTInfo(curPlayer, tagMapID, gmCmdDict):
|
| | | orderId = gmCmdDict.get('orderId', '')
|
| | | titleID = GameWorld.ToIntDef(gmCmdDict.get('titleID', ''), 0)
|
| | | expireTime = GameWorld.ToIntDef(gmCmdDict.get('expireTime', ''), 0)
|
| | | setValue = GameWorld.ToIntDef(gmCmdDict.get('setValue', ''), 0)
|
| | | opType = gmCmdDict.get('opType', '')
|
| | | isOnlineGMT = False # 是否是在线接收的GM工具命令
|
| | | cmdStr = str([orderId, isOnlineGMT, titleID, expireTime, opType, setValue])
|
| | | GameWorld.GetPlayerManager().MapServer_QueryPlayer(0, 0, curPlayer.GetPlayerID(), tagMapID, 'GMTAddTitle',
|
| | | cmdStr, len(cmdStr), curPlayer.GetRouteServerIndex())
|
| | | return
|
| | |
|
| | |
|