From 7d1895023c1a5263f5997979fc583a06f5e7e786 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 04 九月 2024 16:16:46 +0800
Subject: [PATCH] 10249 【越南】【砍树】仙宫(新增仙宫系统;跨服boss历练、跨服仙匣秘境、跨服骑宠养成;跨服古宝养成、跨服排位赛个人排行榜结算支持晋升仙宫;)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
index 5e021b1..2fe7019 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
@@ -34,6 +34,7 @@
 import PlayerFairyCeremony
 import PlayerActBossTrial
 import PlayerMagicWeapon
+import PlayerXiangong
 import IpyGameDataPY
 import DataRecordPack
 import PlayerGubao
@@ -1138,6 +1139,14 @@
                 PlayerGubao.AddGubaoPiece(curPlayer, gubaoID, tagItemCount, itemID)
                 tagItem.Clear()
                 return True
+        #气运
+        if itemEff.GetEffectID() == ChConfig.Def_Effect_TiandaoQiyun:
+            isAutoUse = itemEff.GetEffectValue(1)
+            if isAutoUse:
+                addQiyun = itemEff.GetEffectValue(0) * tagItemCount
+                PlayerXiangong.AddTiandaoQiyun(curPlayer, addQiyun, {"ItemID":itemID, "ItemCount":tagItemCount, "isAutoUse":1})
+                tagItem.Clear()
+                return True
         #直升VIP
         if itemEff.GetEffectID() == ChConfig.Def_Effect_VIPLVCard:
             isAutoUse = itemEff.GetEffectValue(1)

--
Gitblit v1.8.0