| | |
| | | import PlayerDienstgrad
|
| | | import PlayerFreeGoods
|
| | | import PlayerRecover
|
| | | import PlayerEquipDecompose
|
| | | import PlayerCrossRealmPK
|
| | | import PlayerCrossChampionship
|
| | | import GameFuncComm
|
| | |
| | | # 通知设置的被动功法
|
| | | #PassiveBuffEffMng.OnLoginGFPassive(curPlayer)
|
| | | PlayerOnlinePrize.OnPlayerLogin(curPlayer)
|
| | | #装备分解
|
| | | #PlayerEquipDecompose.PlayerLogin(curPlayer)
|
| | | # 极品白拿
|
| | | PlayerFreeGoods.OnLogin(curPlayer)
|
| | | # BOSS复活活动
|
| | |
| | | #PlayerControl.SetRealmDifficulty(curPlayer, clientData.RealmDifficulty)
|
| | | return
|
| | |
|
| | | #// A0 08 查看通用记录 #tagCSViewGameRec
|
| | | #
|
| | | #struct tagCSViewGameRec
|
| | | #{
|
| | | # tagHead Head;
|
| | | # WORD RecType; //记录类型
|
| | | # DWORD RecID; //自定义记录ID
|
| | | #};
|
| | | def OnViewGameRec(index, clientData, tick):
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | recType = clientData.RecType
|
| | | recID = clientData.RecID
|
| | | if recType not in ShareDefine.Def_GameRecTypeList:
|
| | | return
|
| | | if recType in ShareDefine.Def_ViewGameRecSelfList:
|
| | | recID = curPlayer.GetPlayerID()
|
| | | recTypeIDMgr = DBDataMgr.GetGameRecMgr().GetRecTypeIDMgr(recType, recID)
|
| | | SyncGameRecInfo(curPlayer, recType, recID, recTypeIDMgr.GetDataList())
|
| | | return
|
| | |
|
| | | def SyncGameRecInfo(curPlayer, recType, recID, recDataList):
|
| | | recList = []
|
| | | for recData in recDataList:
|
| | | if not recData:
|
| | | continue
|
| | | rec = ChPyNetSendPack.tagSCGameRec()
|
| | | rec.Time = recData.GetTime()
|
| | | rec.Value1 = recData.GetValue1()
|
| | | rec.Value2 = recData.GetValue2()
|
| | | rec.Value3 = recData.GetValue3()
|
| | | rec.Value4 = recData.GetValue4()
|
| | | rec.Value5 = recData.GetValue5()
|
| | | rec.Value6 = recData.GetValue6()
|
| | | rec.Value7 = recData.GetValue7()
|
| | | rec.Value8 = recData.GetValue8()
|
| | | rec.UserData = recData.GetUserData()
|
| | | rec.UserDataLen = len(rec.UserData)
|
| | | recList.append(rec)
|
| | | |
| | | clientPack = ChPyNetSendPack.tagSCGameRecInfo()
|
| | | clientPack.Clear()
|
| | | clientPack.RecType = recType
|
| | | clientPack.RecID = recID
|
| | | clientPack.RecList = recList
|
| | | clientPack.Count = len(clientPack.RecList)
|
| | | NetPackCommon.SendFakePack(curPlayer, clientPack)
|
| | | return
|