From 9734ca380d9e594e7e5766383e1101ea454b87de Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期五, 15 三月 2019 19:12:22 +0800 Subject: [PATCH] 6307 【后端】【2.0】多套装备开发单(暂屏蔽首充武器试用) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py index d057876..56a5da5 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py @@ -513,7 +513,11 @@ itemObj = ItemCommon.GetMailItemDict(curItem) PlayerControl.SendMailByKey('', [curPlayer.GetID()], [itemObj]) ItemCommon.DelItem(curPlayer, curItem, 1, False) - + else: + result = ItemControler.PlayerItemControler(curPlayer).UnEquipItem(equipPlace, spaceIndex) + if not result: + GameWorld.Log(' 试用首充武器 卸下原装备失败!!', curPlayer.GetID()) + return tryItem = ItemControler.GetOutPutItemObj(tryItemID) if ChEquip.DoPlayerEquipItem(curPlayer, tryItem, ItemCommon.GetEquipPackIndex(tryItem), tick): PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 2) -- Gitblit v1.8.0