From 0653ad4d4c926216aa742d505ef638024131b5f1 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 26 二月 2019 16:52:35 +0800
Subject: [PATCH] 6256 子 【开发】【2.0】神秘商店开发 / 【后端】【2.0】神秘商店(重置次数)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
index 8fb8a5e..672170c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
@@ -205,6 +205,8 @@
SyncMysticalLimitShopInfo(curPlayer)
SyncShopItemTodayBuyCount(curPlayer)
SyncSuperGiftInfo(curPlayer)
+ if not curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MysticalShopGoods % 0):
+ __DoMysticalShopRefresh(curPlayer, True, GameWorld.GetGameWorld().GetTick())
SyncMysticalShopInfo(curPlayer)
return
@@ -452,9 +454,18 @@
GameWorld.DebugLog('神秘商店刷新特殊规则,等级段:%s,updLVRefreshCnt=%s,specialGoodsID=%s'%(curLVDan, updLVRefreshCnt, specialGoodsID))
GameWorld.DebugLog('神秘商店刷新isFree=%s,goldGoodsCnt=%s,sliverGoodsCnt=%s,goodsResultList=%s'%(isFree, goldGoodsCnt, sliverGoodsCnt, goodsResultList))
+ syncIndexList = []
for i in xrange(maxCnt):
goodsID = goodsResultList[i] if i < len(goodsResultList) else 0
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_MysticalShopGoods % i, goodsID)
+
+ dayBuyCntKey = ChConfig.Def_PDict_ShopItemDayBuyCnt % goodsID
+ curDayBuyCnt = curPlayer.NomalDictGetProperty(dayBuyCntKey)
+ if curDayBuyCnt:
+ PlayerControl.NomalDictSetProperty(curPlayer, dayBuyCntKey, 0)
+ syncIndexList.append(goodsID)
+ if syncIndexList:
+ SyncShopItemTodayBuyCount(curPlayer, syncIndexList, True)
#通知
SyncMysticalShopInfo(curPlayer)
return
--
Gitblit v1.8.0