| | |
| | | import PlayerXMZZ
|
| | | import PlayerFamilySWRH
|
| | | import GameWorldBoss
|
| | | import PlayerFamilyRedPacket
|
| | | import PlayerFairyCeremony
|
| | | import PlayerNewFairyCeremony
|
| | | import GameWorldProcess
|
| | |
| | | ipyData = operationActionDict[ShareDefine.OperationActionName_RealmPoint][0]
|
| | | if ipyData:
|
| | | Sync_OperationAction_RealmPoint(ipyData, curPlayer)
|
| | | # 节日红包活动进行中
|
| | | if ShareDefine.OperationActionName_FeastRedPacket in operationActionDict:
|
| | | ipyData = operationActionDict[ShareDefine.OperationActionName_FeastRedPacket][0]
|
| | | if ipyData:
|
| | | PlayerFamilyRedPacket.Sync_FeastRedPacket(ipyData, curPlayer)
|
| | | |
| | | return
|
| | |
|
| | | def SendMapServerOperationActionState():
|
| | |
| | |
|
| | | dbOperationActIDKey = PlayerDBGSEvent.Def_OperationActID % actName
|
| | | curActID = sendMapServerMsgDict.get(ShareDefine.ActKey_ID)
|
| | | dayIndex = sendMapServerMsgDict.get(ShareDefine.ActKey_DayIndex, 0)
|
| | | if curActID and PlayerDBGSEvent.GetDBGSTrig_ByKey(dbOperationActIDKey) != curActID:
|
| | | PlayerDBGSEvent.SetDBGSTrig_ByKey(dbOperationActIDKey, curActID)
|
| | | if actName in ShareDefine.NeedWorldLVOperationActNameList:
|
| | |
| | | elif actName == ShareDefine.OperationActionName_NewFairyCeremony:
|
| | | #重置仙界盛典
|
| | | PlayerNewFairyCeremony.ResetNewFairyCeremony()
|
| | | elif actName == ShareDefine.OperationActionName_FeastRedPacket:
|
| | | #重置节日红包
|
| | | if ipyData and dayIndex == 0:
|
| | | PlayerFamilyRedPacket.OnResetFeastRedPacket(ipyData)
|
| | | elif actName == ShareDefine.OperationActionName_FlashSale:
|
| | | #限时抢购重置购买次数 本次活动每场不能重复
|
| | | #dayIndex = sendMapServerMsgDict.get(ShareDefine.ActKey_DayIndex, 0)
|
| | |
| | | elif actName == ShareDefine.OperationActionName_RealmPoint:
|
| | | if isReload and ipyData:
|
| | | Sync_OperationAction_RealmPoint(ipyData)
|
| | | |
| | | elif actName == ShareDefine.OperationActionName_FeastRedPacket:
|
| | | if isReload and ipyData:
|
| | | PlayerFamilyRedPacket.Sync_FeastRedPacket(ipyData)
|
| | |
|
| | | #通知Mapserver,设置字典
|
| | | #GameWorld.SendMapServerMsgEx(dictName, state) # 运营活动不单独通知活动状态,需与活动信息整合后一起通知
|