|  |  |  | 
|---|
|  |  |  | import PyDataManager | 
|---|
|  |  |  | import CrossRealmMsg | 
|---|
|  |  |  | import GameXiangong | 
|---|
|  |  |  | import GameWorship | 
|---|
|  |  |  | import GameWorld | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def OnActStart(actNum, ipyData): | 
|---|
|  |  |  | 
|---|
|  |  |  | accID = curPlayer.GetAccID() | 
|---|
|  |  |  | playerName = curPlayer.GetName() | 
|---|
|  |  |  | job = curPlayer.GetJob() | 
|---|
|  |  |  | face = curPlayer.GetFace() | 
|---|
|  |  |  | facePic = curPlayer.GetFacePic() | 
|---|
|  |  |  | realmLV = curPlayer.GetOfficialRank() | 
|---|
|  |  |  | _, updLotteryScore, isRelationCrossAct = dataMsg | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | if isRelationCrossAct: | 
|---|
|  |  |  | #同步跨服 | 
|---|
|  |  |  | playerInfo = {"playerID":playerID, "playerName":playerName, "accID":accID, "job":job, "realmLV":realmLV, | 
|---|
|  |  |  | "playerLotteryScore":updLotteryScore} | 
|---|
|  |  |  | "playerLotteryScore":updLotteryScore, "face":face, "facePic":facePic} | 
|---|
|  |  |  | SyncXianXiaMJToCrossServer(curPlayer, playerInfo) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | accID = playerInfo["accID"] | 
|---|
|  |  |  | realmLV = playerInfo["realmLV"] | 
|---|
|  |  |  | playerLotteryScore = playerInfo["playerLotteryScore"] | 
|---|
|  |  |  | face = playerInfo.get("face", 0) | 
|---|
|  |  |  | facePic = playerInfo.get("facePic", 0) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | groupValue1 = zoneID | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if playerLotteryScore >= personlLimit: | 
|---|
|  |  |  | name2, type2, value1, value2 = accID, job, realmLV, 0 | 
|---|
|  |  |  | CrossBillboard.UpdCrossBillboard(ShareDefine.Def_CBT_XianXiaMJScore, groupValue1, playerID, playerName, | 
|---|
|  |  |  | name2, type2, value1, value2, playerLotteryScore, autoSort=False) | 
|---|
|  |  |  | name2, type2, value1, value2, playerLotteryScore, autoSort=False, value3=face, value4=facePic) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def OnCrossActIDChange(cfgID, zoneID, ipyData, state): | 
|---|
|  |  |  | 
|---|
|  |  |  | if not orderIpyDataList: | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | worshipType = ShareDefine.Def_WorshipType_CrossXianXiaMJ | 
|---|
|  |  |  | syncNewWorshipList = [] | 
|---|
|  |  |  | syncNewXiangongDict = {} | 
|---|
|  |  |  | rankPre = 0 | 
|---|
|  |  |  | billboardIndex = 0 | 
|---|
|  |  |  | 
|---|
|  |  |  | billboardIndex += 1 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | GameXiangong.AddXiangongPlayer(xiangongID, playerID, serverIDRangeList, playerRank, syncNewXiangongDict) | 
|---|
|  |  |  | GameWorship.AddWorshipPlayer(worshipType, playerRank, playerID, serverIDRangeList, syncList=syncNewWorshipList) | 
|---|
|  |  |  | GameWorship.SendNewWorshipPlayer(syncNewWorshipList) | 
|---|
|  |  |  | GameXiangong.SendNewXiangongPlayerToClientServer(syncNewXiangongDict) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|