| | |
| | | import FBLogic
|
| | | import IPY_GameWorld
|
| | | import ChPlayer
|
| | | import GameLogInfo
|
| | | import GameServerRefresh
|
| | | import ShareDefine
|
| | | import PlayerGameWallow
|
| | |
| | | import FunctionNPCCommon
|
| | | import PlayerGoldGift
|
| | | import PlayerActivity
|
| | | import PlayerBindJadeWheel
|
| | | import FBCommon
|
| | | import PlayerSuccess
|
| | | import PlayerFreeGoods
|
| | |
| | | import PlayerFlashGiftbag
|
| | | import PlayerDailyGiftbag
|
| | | import PlayerFairyCeremony
|
| | | import PlayerOfflineSupport
|
| | | import PlayerNewFairyCeremony
|
| | | import PlayerActHorsePetFeast
|
| | | import PlayerFeastRedPacket
|
| | | import PlayerCrossYaomoBoss
|
| | | import PlayerLuckyCloudBuy
|
| | | import PlayerLuckyTreasure
|
| | | import PlayerAuctionHouse
|
| | | import PlayerTongTianLing
|
| | | import PlayerRefineStove
|
| | | import PlayerFlashSale
|
| | |
| | | import PlayerZhanling
|
| | | import PlayerVip
|
| | | import PlayerLove
|
| | | import PlayerDiceEx
|
| | | import IpyGameDataPY
|
| | | import FamilyRobBoss
|
| | | import FBHelpBattle
|
| | |
| | |
|
| | | def DoLogic_OnDay(tick):
|
| | | GameWorld.Log("MapServer -> OnDay!")
|
| | | playerManager = GameWorld.GetPlayerManager()
|
| | | #处理所有玩家信件的onday事件, 把存在时间+1
|
| | | playerManager.ProcessAllPlayerMailOnDay()
|
| | | #清空每日日记记录信息
|
| | | GameLogInfo.ClearGameLogInfo()
|
| | | |
| | | #副本OnDay事件响应
|
| | | FBLogic.OnDay(tick)
|
| | |
|
| | | #删除所有的任务发布
|
| | | missionPubManager = GameWorld.GetGameWorld().GetDBMissionPubManager()
|
| | | missionPubManager.Clear()
|
| | | #仙盟
|
| | | PlayerFamily.FamilyOnDay()
|
| | |
|
| | | PlayerOfflineSupport.OnDay()
|
| | | playerManager = GameWorld.GetPlayerManager()
|
| | | for i in xrange(playerManager.GetPlayerCount()):
|
| | | curPlayer = playerManager.GetPlayerByIndex(i)
|
| | |
|
| | |
| | | PlayerGoldGift.OnDay(curPlayer)
|
| | | #炼丹
|
| | | PlayerRefineStove.OnDay(curPlayer)
|
| | | #绑玉转盘
|
| | | PlayerBindJadeWheel.OnDay(curPlayer)
|
| | | #转盘
|
| | | PlayerActTurntable.PlayerOnDay(curPlayer)
|
| | | #情缘
|
| | |
| | | PlayerRecover.RecoverOnDay(curPlayer)
|
| | | #购买次数清空
|
| | | Operate_PlayerBuyZhenQi.PlayerOnDay(curPlayer)
|
| | | |
| | | #我要太极过天
|
| | | PlayerDiceEx.OnDay(curPlayer)
|
| | | # 世界boss
|
| | | BossHurtMng.OnDay(curPlayer)
|
| | | # 仙盟过天
|
| | |
| | | assistData = eval(msgValue)
|
| | | if GameWorld.GetMap().GetMapID() == assistData[0]:
|
| | | PlayerAssist.GameServer_AssistBossMsg(assistData[1:])
|
| | | return
|
| | | |
| | | if key == ShareDefine.Def_Notify_WorldKey_AddFamilyAuctionItem:
|
| | | mapID, familyAuctionItemDict = eval(msgValue)
|
| | | if GameWorld.GetMap().GetMapID() == mapID:
|
| | | PlayerAuctionHouse.DoAddFamilyAuctionItem(familyAuctionItemDict)
|
| | | return
|
| | | |
| | | if key == ShareDefine.Def_Notify_WorldKey_AddSystemAuctionItem:
|
| | | mapID, sysAuctionItemList = eval(msgValue)
|
| | | if GameWorld.GetMap().GetMapID() == mapID:
|
| | | PlayerAuctionHouse.DoAddSystemAuctionItem(sysAuctionItemList)
|
| | | return
|
| | |
|
| | | if key == ShareDefine.Def_Notify_WorldKey_FairyDomainLimit:
|