From 234a344ce57628d142a71392cc4727fe92affa40 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 26 二月 2025 18:24:28 +0800
Subject: [PATCH] 10312 【越南】【英文】【bt】【砍树】查看跨服玩家数据向对应子服查询(查看玩家防范报错;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddFBCnt.py |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddFBCnt.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddFBCnt.py
index b1adce6..7a78589 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddFBCnt.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddFBCnt.py
@@ -17,7 +17,6 @@
 
 import ItemCommon
 import FBCommon
-import PlayerControl
 import ChConfig
 
 def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):
@@ -25,14 +24,7 @@
     itemTypeID = curRoleItem.GetItemTypeID()
     curEff = curRoleItem.GetEffectByIndex(0)
     mapID = curEff.GetEffectValue(0)
-    mapID = FBCommon.GetRecordMapID(mapID)
-    itemAddCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ItemAddFbCnt % mapID)
-    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_ItemAddFbCnt % mapID, itemAddCnt+useCnt)
-    
+    FBCommon.AddFBCntByItem(curPlayer, itemTypeID, mapID, useCnt)
     ItemCommon.DelItem(curPlayer, curRoleItem, useCnt, True, ChConfig.ItemDel_AddFBCnt)
-    FBCommon.Sync_FBPlayerFBInfoData(curPlayer, mapID)
-    PlayerControl.NotifyCode(curPlayer, 'AddActivityCount_1', [itemTypeID, mapID, useCnt])
-    
-    FBCommon.OnFBCountChangeEffectRecoverCount(curPlayer, mapID)
     return True, useCnt
 

--
Gitblit v1.8.0