| | |
| | | import PyDataManager
|
| | | import PyGameData
|
| | | import PlayerTalk
|
| | | import PlayerStore
|
| | |
|
| | | import time
|
| | | import datetime
|
| | |
| | | callName = pack.GetCallName()
|
| | | resultName = pack.GetResultName() #[queryid, 人气值, 物品ID]
|
| | |
|
| | | if callName == 'SendMail':
|
| | | title, content, getDays, playerIDList, addItemList, gold, goldPaper, silver = eval(resultName)
|
| | | if callName == "SendMail":
|
| | | title, content, getDays, playerIDList, addItemList, gold, goldPaper, silver, detail = eval(resultName)
|
| | | limitTime = str(GameWorld.GetDatetimeByDiffDays(getDays))
|
| | | limitTime = limitTime.split(".")[0]
|
| | | PlayerCompensation.SendPersonalItemMail(title, content, limitTime, playerIDList, addItemList, gold, goldPaper, silver)
|
| | | PlayerCompensation.SendPersonalItemMail(title, content, limitTime, playerIDList, addItemList, gold, goldPaper, silver, detail=detail)
|
| | | return
|
| | |
|
| | | if callName == 'SendMailBatch':
|
| | | if callName == "SendMailBatch":
|
| | | PlayerCompensation.SendPersonalItemMailBatch(eval(resultName))
|
| | | return
|
| | |
|
| | |
| | |
|
| | | # 世界boss状态
|
| | | if callName =="GameWorldBossState":
|
| | | GameWorldBoss.DoGameWorldBossOnReborn(eval(resultName), tick)
|
| | | GameWorldBoss.OnGameWorldBossStateChange(eval(resultName), tick)
|
| | | return
|
| | | |
| | | # 仙盟归属boss信息同步
|
| | | if callName =="FamilyOwnerBossInfo":
|
| | | GameWorldBoss.MapServer_FamilyOwnerBossInfo(eval(resultName))
|
| | | return
|
| | |
|
| | | # 骑宠争夺伤血玩家同步
|
| | | if callName =="HorsePetRobBossHurtPlayer":
|
| | | GameWorldBoss.MapServer_HorsePetRobBossHurtPlayer(eval(resultName))
|
| | | return
|
| | |
|
| | | # 全局掉落CD
|
| | |
| | | # 全局击杀数换算掉落概率
|
| | | if callName =="GlobalDropRate":
|
| | | GameWorldProcess.UpdGlobalDropRate(eval(resultName))
|
| | | return
|
| | | # 全局击杀数统计
|
| | | if callName =="GlobalKillCount":
|
| | | GameWorldProcess.UpdGlobalKillCount(eval(resultName))
|
| | | return
|
| | |
|
| | | # 自定义商店全服限购次数清空
|
| | |
| | | return
|
| | | #通知神兽副本NPC刷新时间
|
| | | if callName =="DogzNPCTime":
|
| | | GameWorldBoss.Sync_DogzNPCRefreshTime(eval(resultName))
|
| | | PyGameData.g_dogzNPCRefreshTimeDict = eval(resultName)
|
| | | GameWorldBoss.Sync_DogzNPCRefreshTime()
|
| | | return
|
| | | #---return分割线-----------------------------------------------------------------
|
| | |
|
| | |
|
| | | #---有可能return-----------------------------------------------------------------
|
| | | #商城全服购买限制
|
| | | if callName == "GetStoreServerBuyCnt":
|
| | | curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID)
|
| | | if not curPlayer:
|
| | | return
|
| | | ret = PlayerStore.DoStoreServerBuyQueryResult(curPlayer, eval(resultName))
|
| | | resultName = '%s' % ret
|
| | | |
| | | #玩家等级奖励
|
| | | if callName == "GetPlayerLVAward":
|
| | | curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(srcPlayerID)
|