From e34c4366808f9efe488112d978e905e35b42537d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 04 十二月 2020 16:23:15 +0800
Subject: [PATCH] 4881 【主干】【长尾】【BT】符印背包空间不足符印精华领取没有发放。(修改为放入背包支持使用物品获得)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py | 1 +
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_RuneExp.py | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py
index cdd3d6f..2c13293 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py
@@ -706,6 +706,7 @@
ChConfig.Def_ItemType_HPMP:"Item_Add_HPMP", # 补红补篮药剂
ChConfig.Def_ItemType_AddExp:"Item_AddExp", # 给经验道具
ChConfig.Def_ItemType_GiveMoney:"Item_GiveMoney", # 给人物金钱
+ ChConfig.Def_ItemType_RuneExp:"Item_RuneExp", # 给人物符印精华
ChConfig.Def_ItemType_AddLimitBuff:"Item_Add_LimitingBuff", # 给限时buff物品
ChConfig.Def_ItemType_AddLimitBuff2:"Item_Add_LimitingBuff", # 给限时buff物品
ChConfig.Def_ItemType_AddExpBuff:"Item_Add_LimitingBuff", # 给限时buff物品
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_RuneExp.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_RuneExp.py
new file mode 100644
index 0000000..6302301
--- /dev/null
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_RuneExp.py
@@ -0,0 +1,37 @@
+#!/usr/bin/python
+# -*- coding: GBK -*-
+#-------------------------------------------------------------------------------
+#
+##@package UseItem.Item_RuneExp
+#
+# @todo:给符印精华
+# @author hxp
+# @date 2020-12-04
+# @version 1.0
+#
+# 详细描述: 给符印精华
+#
+#-------------------------------------------------------------------------------
+#"""Version = 2020-12-04 16:30"""
+#-------------------------------------------------------------------------------
+
+import ChConfig
+import PlayerControl
+import ShareDefine
+import ItemCommon
+
+def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):
+ ##批量使用物品
+ curEff = curRoleItem.GetEffectByIndex(0)
+ totalRuneExp = curEff.GetEffectValue(0) * useCnt
+ if not totalRuneExp:
+ return
+
+ ItemCommon.DelItem(curPlayer, curRoleItem, useCnt, True, ChConfig.ItemDel_Rune)
+
+ addDataDict = {"totalRuneExp":totalRuneExp, "useCnt":useCnt}
+ PlayerControl.GiveMoney(curPlayer, ShareDefine.TYPE_Price_Rune, totalRuneExp,
+ ChConfig.Def_GiveMoney_UseItem, addDataDict)
+
+ return True, useCnt
+
--
Gitblit v1.8.0