| | |
| | | import ChItem
|
| | | import GameLogic_Tianzi
|
| | | import PlayerGoldInvest
|
| | | import PlayerCrossRealmPK
|
| | | import PlayerCrossChampionship
|
| | | import PlayerCostRebate
|
| | | import CrossActCTGBillboard
|
| | | import CrossActAllRecharge
|
| | | import PlayerActCollectWords
|
| | | import PlayerActTotalRecharge
|
| | | import PlayerActLianqi
|
| | | import PlayerActGodGift
|
| | | import PlayerActFamilyGCZ
|
| | | import PlayerActFamilyCTGAssist
|
| | | import PlayerActRechargeRebateGold
|
| | | import PlayerActManyDayRecharge
|
| | | import PlayerActSingleRecharge
|
| | | import PlayerActRechargePrize
|
| | | import PlayerActGrowupBuy
|
| | | import PlayerActTurntable
|
| | | import PlayerActBuyOne
|
| | | import PlayerSpringSale
|
| | | import PlayerWeekParty
|
| | | import PlayerFeastWeekParty
|
| | | import PlayerFeastLogin
|
| | | import PlayerFeastWish
|
| | | import PlayerActTask
|
| | |
| | | import PlayerFlashGiftbag
|
| | | import PlayerDailyGiftbag
|
| | | import PlayerOfflineSupport
|
| | | import PlayerLuckyCloudBuy
|
| | | import PlayerLuckyTreasure
|
| | | import PlayerTongTianLing
|
| | | import PlayerFlashSale
|
| | | import PlayerWishingWell
|
| | | import CrossPlayerData
|
| | | import PlayerTreasure
|
| | | import PlayerZhanling
|
| | | import PlayerLove
|
| | |
| | | if playerEventValue == centerEventValue:
|
| | | return
|
| | |
|
| | | centerEventTime = GameWorld.ChangeStrToDatetime("%s:%02d:%02d" % centerEventValue, ChConfig.TYPE_Time_Format_YmdHMS)
|
| | | playerEventTime = GameWorld.ChangeStrToDatetime("%s:%02d:%02d" % playerEventValue, ChConfig.TYPE_Time_Format_YmdHMS)
|
| | | centerEventTime = GameWorld.ChangeStrToDatetime("%s" % centerEventValue, ChConfig.TYPE_Time_Format_YmdH)
|
| | | playerEventTime = GameWorld.ChangeStrToDatetime("%s" % playerEventValue, ChConfig.TYPE_Time_Format_YmdH)
|
| | |
|
| | | center_Day = centerEventTime.day
|
| | | center_Month = centerEventTime.month
|
| | |
| | | PlayerFreeGoods.OnDay(curPlayer)
|
| | | #采集次数重置
|
| | | NPCCommon.PlayerOnDay(curPlayer)
|
| | | #跨服竞技场
|
| | | PlayerCrossRealmPK.DoPlayerOnDay(curPlayer)
|
| | | #跨服排位
|
| | | PlayerCrossChampionship.DoPlayerOnDay(curPlayer)
|
| | | #竞技场
|
| | | PlayerArena.OnDayEx(curPlayer)
|
| | | #特殊时间点过天的,一般是游戏功能,此时立即同步一次跨服玩家数据
|
| | | CrossPlayerData.SendMergePlayerDataNow(curPlayer)
|
| | |
|
| | | # 以下为支持两种重置模式切换配置的
|
| | | FBCommon.FBOnDay(curPlayer, onEventType)
|
| | | #许愿池
|
| | | PlayerWishingWell.OnDay(curPlayer)
|
| | | #通天令
|
| | | PlayerTongTianLing.OnDay(curPlayer, onEventType)
|
| | | #任务活动
|
| | | PlayerActTask.OnDay(curPlayer)
|
| | | #登录活动
|
| | |
| | | if actionName == ShareDefine.OperationActionName_ExpRate:
|
| | | PlayerControl.RefreshOperationAction_ExpRate()
|
| | |
|
| | | elif actionName == ShareDefine.OperationActionName_CostRebate:
|
| | | PlayerCostRebate.RefreshCostRebateActionInfo(actNum)
|
| | | |
| | | elif actionName == ShareDefine.OperationActionName_TotalRecharge:
|
| | | PlayerActTotalRecharge.RefreshTotalRechargeActionInfo(actNum)
|
| | |
|
| | |
| | | elif actionName == ShareDefine.OperationActionName_CollectWords:
|
| | | PlayerActCollectWords.RefreshActCollectWordsInfo(actNum)
|
| | |
|
| | | elif actionName == ShareDefine.OperationActionName_WeekParty:
|
| | | PlayerWeekParty.RefreshOperationAction_WeekParty()
|
| | | |
| | | elif actionName == ShareDefine.OperationActionName_BuyCountGift:
|
| | | PlayerActBuyCountGift.RefreshBuyCountGiftActionInfo(actNum)
|
| | |
|
| | |
| | | elif actionName == ShareDefine.OperationActionName_FeastWish:
|
| | | PlayerFeastWish.RefreshFeastWishActionInfo()
|
| | |
|
| | | elif actionName == ShareDefine.OperationActionName_FeastWeekParty:
|
| | | PlayerFeastWeekParty.RefreshOperationAction_FeastWeekParty()
|
| | | |
| | | elif actionName == ShareDefine.OperationActionName_LuckyTreasure:
|
| | | PlayerLuckyTreasure.RefreshLuckyTreasureAction()
|
| | |
|
| | | elif actionName == ShareDefine.OperationActionName_RechargePrize:
|
| | | PlayerActRechargePrize.RefreshRechargePrizeActionInfo()
|
| | | |
| | | elif actionName == ShareDefine.OperationActionName_GrowupBuy:
|
| | | PlayerActGrowupBuy.RefreshGrowupBuyActionInfo()
|
| | | |
| | | elif actionName == ShareDefine.OperationActionName_RechargeRebateGold:
|
| | | PlayerActRechargeRebateGold.RefreshRechargeRebateGoldActionInfo()
|
| | |
|
| | | return
|
| | |
|
| | |
| | | #GameWorld.DebugLog("跨服服务器地图,不处理")
|
| | | return
|
| | |
|
| | | if actionName == ShareDefine.CrossActName_CTGBillboard:
|
| | | CrossActCTGBillboard.RefreshCrossActCTGBillboardInfo()
|
| | | |
| | | elif actionName == ShareDefine.CrossActName_AllRecharge:
|
| | | CrossActAllRecharge.RefreshCrossActAllRechargeInfo()
|
| | | |
| | | elif actionName == ShareDefine.CrossActName_Lianqi:
|
| | | PlayerActLianqi.RefreshCrossActLianqiInfo()
|
| | | |
| | | elif actionName == ShareDefine.CrossActName_FamilyGCZ:
|
| | | PlayerActFamilyGCZ.RefreshActFamilyGCZInfo()
|
| | | |
| | | return
|
| | |
|
| | | if key == ShareDefine.Def_Notify_WorldKey_CrossZoneName:
|
| | | PyGameData.g_crossZoneName = msgValue
|
| | | return
|
| | | |
| | | # 幸运云购
|
| | | if key == ShareDefine.Def_Notify_WorldKey_LuckyCloudBuyInfo:
|
| | | PyGameData.g_luckyCloudBuyInfo = eval(msgValue)
|
| | | PlayerLuckyCloudBuy.OnLuckyCloudBuyChange()
|
| | | return
|
| | |
|
| | | if msgValue.isdigit():
|
| | |
| | | # elif key == ShareDefine.Def_Notify_WorldKey_MapServerScriptReloadVersion:
|
| | | # ReloadModule.DoMapServerScriptReload(value, tick)
|
| | | #===============================================================================================
|
| | | |
| | | # 跨服PK
|
| | | elif key == ShareDefine.Def_Notify_WorldKey_CrossPKSeasonID:
|
| | | PlayerCrossRealmPK.OnCrossRealmPKSeasonChange(value)
|
| | | |
| | | #通用设置
|
| | | befValue = gameWorldMgr.GetGameWorldDictByKey(key)
|
| | | gameWorldMgr.SetGameWorldDict(key, value)
|