| | |
| | | import FunctionNPCCommon
|
| | | import PlayerGoldGift
|
| | | import PlayerActivity
|
| | | import PlayerTeHui
|
| | | import PlayerBindJadeWheel
|
| | | import PlayerAction
|
| | | import FBCommon
|
| | | import PlayerSuccess
|
| | | import PlayerFreeGoods
|
| | | import PlayerMagicWeapon
|
| | | import ShopItemManage
|
| | | import ChItem
|
| | | import PlayerGoldInvest
|
| | | import PlayerNewGuyCard
|
| | |
| | | import PlayerFamilyRedPacket
|
| | | import GameLogic_FamilyInvade
|
| | | import GameLogic_ElderBattlefield
|
| | | import GameLogic_AllFamilyBoss
|
| | | import GameLogic_HorsePetBoss
|
| | | import GameLogic_FamilyBoss
|
| | | import GameLogic_FamilyWar
|
| | | import GameLogic_Dogz
|
| | | import OpenServerCampaign
|
| | | import PlayerCostRebate
|
| | | import PlayerActTotalRecharge
|
| | | import PlayerSpringSale
|
| | | import PlayerBossReborn
|
| | | import PlayerWeekParty
|
| | | import PlayerFeastWeekParty
|
| | | import PlayerActLogin
|
| | | import PlayerFlashGiftbag
|
| | | import PlayerFairyCeremony
|
| | | import PlayerNewFairyCeremony
|
| | | import PlayerFeastRedPacket
|
| | | import PlayerLuckyTreasure
|
| | | import PlayerRefineStove
|
| | | import PlayerFlashSale
|
| | | import PlayerWishingWell
|
| | |
| | | pack = IPY_GameWorld.IPY_MBroadcastMsg()
|
| | | msg = pack.GetMsg()
|
| | |
|
| | | if not msg.startswith(ShareDefine.Def_Notify_WorldKey_GameWorldBossReborn[:-2]):
|
| | | if not msg.startswith(ShareDefine.Def_Notify_WorldKey_GameWorldBossReborn[:-3]):
|
| | | GameWorld.Log('GameServer_BroadcastMsg msg = %s'%(msg))
|
| | | #---接收世界服务器发来的消息---
|
| | |
|
| | |
| | |
|
| | | elif actionName == ShareDefine.OperationActionName_FairyCeremony:
|
| | | PlayerFairyCeremony.RefreshOperationAction_FairyCeremony()
|
| | | |
| | | |
| | | elif actionName == ShareDefine.OperationActionName_NewFairyCeremony:
|
| | | PlayerNewFairyCeremony.RefreshOperationAction_NewFairyCeremony()
|
| | | |
| | | elif actionName == ShareDefine.OperationActionName_FlashSale:
|
| | | PlayerFlashSale.RefreshflashSaleActionInfo()
|
| | |
|
| | |
| | |
|
| | | elif actionName == ShareDefine.OperationActionName_WeekParty:
|
| | | PlayerWeekParty.RefreshOperationAction_WeekParty()
|
| | | |
| | | |
| | | elif actionName == ShareDefine.OperationActionName_LoginAward:
|
| | | PlayerActLogin.RefreshOperationAction_LoginAward()
|
| | | |
| | | elif actionName == ShareDefine.OperationActionName_FeastWeekParty:
|
| | | PlayerFeastWeekParty.RefreshOperationAction_FeastWeekParty()
|
| | | |
| | | elif actionName == ShareDefine.OperationActionName_FeastRedPacket:
|
| | | PlayerFeastRedPacket.RefreshOperationAction_FeastRedPacket()
|
| | | |
| | | elif actionName == ShareDefine.OperationActionName_LuckyTreasure:
|
| | | PlayerLuckyTreasure.RefreshLuckyTreasureAction()
|
| | | return
|
| | | |
| | | if key == ShareDefine.Def_Notify_WorldKey_CrossZoneName:
|
| | | PyGameData.g_crossZoneName = msgValue
|
| | | return
|
| | |
|
| | | if msgValue.isdigit():
|
| | |
| | | # ReloadModule.DoMapServerScriptReload(value, tick)
|
| | | #===============================================================================================
|
| | |
|
| | | #领地争夺战
|
| | | #elif key == ShareDefine.Def_Notify_WorldKey_ManorWar:
|
| | | # GameLogic_ManorWar.OnManorWarStateChange(value, tick)
|
| | |
|
| | | #定时商店刷新
|
| | | elif key.startswith(ShareDefine.Def_Notify_WorldKey_TimeShopRefreshTime[:-2]):
|
| | | ShopItemManage.OnTimeShopRefresh(key, value, tick)
|
| | | |
| | | # 跨服PK
|
| | | elif key == ShareDefine.Def_Notify_WorldKey_CrossPKSeasonID:
|
| | | PlayerCrossRealmPK.OnCrossRealmPKSeasonChange(value)
|
| | |
| | | elif key == ShareDefine.Def_Notify_WorldKey_FBFuncState % ChConfig.Def_FBMapID_ElderBattlefield:
|
| | | if gameWorldMgr.GetGameWorldDictByKey(key) != value:
|
| | | GameLogic_ElderBattlefield.OnElderBattlefieldStateChange(value, tick)
|
| | | # 多仙盟BOSS
|
| | | elif key in [ShareDefine.Def_Notify_WorldKey_DailyActionState % ShareDefine.DailyActionID_FamilyBoss1]:
|
| | | if gameWorldMgr.GetGameWorldDictByKey(key) != value:
|
| | | GameLogic_AllFamilyBoss.OnAllFamilyBossStateChange(value, tick)
|
| | | # 骑宠BOSS
|
| | | elif key == ShareDefine.Def_Notify_WorldKey_DailyActionState % ShareDefine.DailyActionID_HorsePetBoss:
|
| | | if gameWorldMgr.GetGameWorldDictByKey(key) != value:
|
| | | GameLogic_HorsePetBoss.OnHorsePetBossStateChange(value, tick)
|
| | | |
| | | # OnDayEx
|
| | | elif key == ShareDefine.Def_Notify_WorldKey_OnDayEx:
|
| | | if value and gameWorldMgr.GetGameWorldDictByKey(key) != value:
|
| | |
| | | # 王者仙盟
|
| | | elif key == ShareDefine.Def_Notify_WorldKey_ChampionFamilyID:
|
| | | GameLogic_FamilyWar.OnChampionFamilyIDChange()
|
| | | |
| | | # 特惠活动
|
| | | elif key in ShareDefine.TeHuiTypeKeyDict.values():
|
| | | PlayerTeHui.ChangeTeHuiActionState(key)
|
| | |
|
| | | # 活动buff状态变更
|
| | | elif key.startswith(ShareDefine.Def_Notify_WorldKey_ActionBuffState[:-2]): |
| | | PlayerAction.OnActionBuffStateChange(key, tick)
|
| | | #boss刷新时间参数
|
| | | elif key.startswith(ShareDefine.Def_Notify_WorldKey_BossOnlineHeroCnt[:-2]):
|
| | | GameLogic_Dogz.OnOnlineCntChange(key, tick)
|
| | | |
| | | #===============================================================================
|
| | | # ---修改为上述的 统一字典处理
|
| | | # if msg == ChConfig.Def_Notify_Key_PurTalk:
|