| | |
| | | import PlayerFlashSale
|
| | | import PlayerFlashGiftbag
|
| | | import PlayerCostRebate
|
| | | import PlayerActTotalRecharge
|
| | | import PlayerSpringSale
|
| | | import PlayerFairyCeremony
|
| | | import ChNetSendPack
|
| | |
| | |
|
| | | #消费返利
|
| | | PlayerCostRebate.OnPlayerLogin(curPlayer)
|
| | | #累计充值
|
| | | PlayerActTotalRecharge.OnPlayerLogin(curPlayer)
|
| | | #限时特惠
|
| | | PlayerSpringSale.OnPlayerLogin(curPlayer)
|
| | | #限时礼包
|
| | |
| | | GameWorld.DebugLog(" 未购买VIP礼包,无法使用该气泡框!needVIPLVGift=%s" % needVIPLVGift, curPlayer.GetPlayerID())
|
| | | return
|
| | |
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ChatBubbleBoxUseID, useBoxID)
|
| | | SyncChatBubbleBoxState(curPlayer)
|
| | | PlayerControl.SetChatBubbleBox(curPlayer, useBoxID)
|
| | | return
|
| | |
|
| | | def DoActivateChatBubbleBox(curPlayer, boxID):
|
| | |
| | |
|
| | | def SyncChatBubbleBoxState(curPlayer):
|
| | | ## 同步聊天气泡框状态
|
| | | useBoxID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ChatBubbleBoxUseID)
|
| | | boxState = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ChatBubbleBoxState % 0)
|
| | | if not useBoxID and not boxState:
|
| | | if not boxState:
|
| | | return
|
| | | boxStatePack = ChPyNetSendPack.tagMCChatBubbleBoxState()
|
| | | boxStatePack.UseBoxID = useBoxID
|
| | | boxStatePack.BoxState = boxState
|
| | | NetPackCommon.SendFakePack(curPlayer, boxStatePack)
|
| | | return
|
| | |
| | | #@return 返回值无意义
|
| | | #@remarks 客户端封包响应 //03 10 退出副本#tagCExitFB
|
| | | def __Func_ExitFB(curPlayer, tick):
|
| | | if GameWorld.GetMap().GetMapFBType() == IPY_GameWorld.fbtNull:
|
| | | if GameWorld.GetMap().GetMapFBType() == IPY_GameWorld.fbtNull and curPlayer.GetMapID() not in IpyGameDataPY.GetFuncEvalCfg("MapLine", 4):
|
| | | return
|
| | |
|
| | | GameWorld.Log('玩家 = %s , 主动离开副本' % (curPlayer.GetName()) , curPlayer.GetID())
|
| | |
| | | # 领取消费返利奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_CostRebate:
|
| | | PlayerCostRebate.OnGetCostRebateAward(curPlayer, dataEx)
|
| | | # 领取累计充值奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_TotalRecharge:
|
| | | PlayerActTotalRecharge.OnGetTotalRechargeAward(curPlayer, dataEx)
|
| | | # 领取boss复活活动奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_BossReborn:
|
| | | PlayerBossReborn.GetBossRebornActionAward(curPlayer, dataEx)
|