| | |
| | | ctgInfoList.append(gmCmdDict)
|
| | | PyGameData.g_gmtOfflinePlayerInfo[key] = ctgInfoList
|
| | | GameWorld.Log("离线玩家添加GMT: g_gmtOfflinePlayerInfo=%s" % str(PyGameData.g_gmtOfflinePlayerInfo))
|
| | | GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_Success, "Player is off line.")
|
| | | GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_Success, "玩家不在线,将在上线后自动处理")
|
| | | return
|
| | |
|
| | | def OnPlayerLogin(curPlayer):
|
| | |
| | | if not pack_type:
|
| | | continue
|
| | |
|
| | | callFunc = GameWorld.GetExecFunc(Commands, "%s.%s"%(pack_type, "OnOfflineCTGInfo"))
|
| | | callFunc = GameWorld.GetExecFunc(Commands, "%s.%s"%(pack_type, "OnOfflineGMTInfo"))
|
| | | if callFunc:
|
| | | GameWorld.Log("玩家上线执行GMT: %s, tagMapID=%s, %s" % (pack_type, tagMapID, gmCmdDict), curPlayer.GetPlayerID())
|
| | | callFunc(curPlayer, tagMapID, gmCmdDict)
|