| | |
| | | #---------------------------------------------------------------------
|
| | | import GameWorld
|
| | | import IPY_GameServer
|
| | | import MergeBroadcast
|
| | | import IpyGameDataPY
|
| | | import CrossRealmMsg
|
| | | import ShareDefine
|
| | |
| | | GameWorld.GetPlayerManager().CountryNotifyCode(country, msgMark, __GetNotifyCodeList(msgParamList))
|
| | | notifyDict = {"country":country, "msgMark":msgMark, "msgParamList":msgParamList, "lineID":lineID,
|
| | | "mergeMinOSD":mergeMinOSD, "mergeMaxOSD":mergeMaxOSD, "mergeMapInfo":mergeMapInfo}
|
| | | MergeBroadcast.SendBroadcastMerge(ChConfig.Def_MergeWorldNotify, 0, notifyDict, False)
|
| | | #.SendBroadcastMerge(ChConfig.Def_MergeWorldNotify, 0, notifyDict, False)
|
| | | return
|
| | |
|
| | | ## 世界广播
|
| | |
| | | # @return 无返回值
|
| | | # @remarks
|
| | | def WorldNotify(country, msgMark, msgParamList=[]):
|
| | | if GameWorld.IsMergeServer():
|
| | | if GameWorld.IsCrossServer():
|
| | | MergeWorldNotify(country, msgMark, msgParamList)
|
| | | else:
|
| | | GameWorld.GetPlayerManager().CountryNotifyCode(country, msgMark, __GetNotifyCodeList(msgParamList))
|
| | |
| | |
|
| | |
|
| | | #------------------------------------------------------------------------------
|
| | | ## 设置玩家跨服预赛排位
|
| | | # @param curPlayer: 玩家实例
|
| | | # @param value: 威望值
|
| | | # @return: |
| | | def SetMergeWarRank(curPlayer, value):
|
| | | return
|
| | |
|
| | |
|
| | | ## 获取玩家跨服预赛排位
|
| | | # @param curPlayer: 玩家实例
|
| | | # @return: 威望值
|
| | | def GetMergeWarRank(curPlayer):
|
| | | return 0
|
| | |
|
| | | ## 职业阶数
|
| | | def GetJobRank(curPlayer): return curPlayer.GetExAttr1()
|
| | |
| | | curPlayer.MapServer_QueryPlayerResult(0, 0, "SetLeaveFamilyTime", sysMsg, len(sysMsg))
|
| | | return
|
| | | def GetLeaveFamilyTime(curPlayer):return curPlayer.GetExAttr12()
|
| | |
|
| | | ## 玩家所属服务器组ID
|
| | | def GetPlayerServerGroupID(curPlayer): return curPlayer.GetExAttr13()
|
| | |
|
| | | ## 是否脱机挂机状态
|
| | | def GetIsTJG(curPlayer):
|
| | |
| | | SetMapServerPlayerAttrValue(curPlayer, "SetVsRoomId", roomID)
|
| | | return
|
| | |
|
| | | ## 跨服状态: 0-非跨服状态,1-跨服状态
|
| | | def GetCrossRealmState(curPlayer): return curPlayer.GetExAttr5()
|
| | | def SetCrossRealmState(curPlayer, value):
|
| | | ''' 设置玩家跨服状态
|
| | | @param isExitCrossRealm: 非跨服状态时是否通知前端退出跨服服务器
|
| | | '''
|
| | | ## 跨服状态所在地图ID: 0-非跨服状态,非0-跨服状态对应的地图ID
|
| | | def GetCrossMapID(curPlayer): return curPlayer.GetExAttr5()
|
| | | def SetCrossMapID(curPlayer, value):
|
| | | curPlayer.SetExAttr5(value)
|
| | | SetMapServerPlayerAttrValue(curPlayer, "SetExAttr5", value)
|
| | | return
|