| | |
| | | import PlayerHero
|
| | | import PlayerOnline
|
| | | import PlayerBeauty
|
| | | import PlayerTravel
|
| | | import TurnAttack
|
| | | import PlayerHJG
|
| | | import ObjPool
|
| | |
| | | PlayerActivity.OnPlayerLogin(curPlayer)
|
| | | PlayerLLMJ.OnPlayerLogin(curPlayer)
|
| | | PlayerBeauty.OnPlayerLogin(curPlayer)
|
| | | PlayerTravel.OnPlayerLogin(curPlayer)
|
| | |
|
| | | # 上线查询一次充值订单
|
| | | curPlayer.SendDBQueryRecharge()
|
| | |
| | | curPlayer.Syn_OfflineTimeQueryResult() # 通知客服端离线时间
|
| | | return
|
| | |
|
| | |
|
| | | #//B0 24 领取家族悬赏奖励 #tagReceiveFamilyArrestAward
|
| | | #
|
| | | #struct tagReceiveFamilyArrestAward
|
| | | #
|
| | | #{
|
| | | # tagHead Head;
|
| | | # DWORD ArrestID; //悬赏任务ID
|
| | | #};
|
| | | ## 领取家族悬赏奖励
|
| | | # @param index: 玩家索引
|
| | | # @param clientData: 封包结构体
|
| | | # @param tick: 时间戳
|
| | | # @return: None
|
| | | def ReceiveFamilyArrestAward(index, clientData, tick):
|
| | | return
|
| | |
|
| | |
|
| | | #//B0 26 请求家族悬赏奖励领取情况 #tagQueryFamilyArrestAwardReceiveState
|
| | | #
|
| | | #struct tagQueryFamilyArrestAwardReceiveState
|
| | | #
|
| | | #{
|
| | | # tagHead Head;
|
| | | #};
|
| | | ## 请求家族悬赏奖励领取情况
|
| | | # @param index: 玩家索引
|
| | | # @param clientData: 封包结构体
|
| | | # @param tick: 时间戳
|
| | | # @return: None
|
| | | def QueryFamilyArrestAwardReceiveState(index, clientData, tick):
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | Sync_FamilyArrestAwardReceiveState(curPlayer)
|
| | | return
|
| | |
|
| | |
|
| | | ## 通知客户端家族悬赏任务奖励领取情况
|
| | | # @param curPlayer: 玩家实例
|
| | | # @return: None
|
| | | def Sync_FamilyArrestAwardReceiveState(curPlayer):
|
| | | awardReceiveState = ChPyNetSendPack.tagFamilyArrestAwardReceiveState()
|
| | | awardReceiveState.Clear()
|
| | | |
| | | state = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FamilyArrestAwardState)
|
| | | awardReceiveState.ReceiveState = state
|
| | | NetPackCommon.SendFakePack(curPlayer, awardReceiveState)
|
| | | return
|
| | |
|
| | | def PlayerOnDay(curPlayer):
|
| | | #玩法前瞻奖励
|
| | | gameNoticeAwardState = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GameNoticeAwardState)
|
| | |
| | | elif adAwardType == 3:
|
| | | treasureType = adAwardValue
|
| | | PlayerTreasure.DoTreasure(curPlayer, treasureType, PlayerTreasure.CostType_ADFree)
|
| | | # 游历体力
|
| | | elif adAwardType == 4:
|
| | | PlayerTravel.AddTravelEnergy(curPlayer, adAwardValue)
|
| | | return
|
| | |
|
| | | def ADCntOnDay(curPlayer):
|