From ae9f73d422020a792b2615d7f094d629d81c5123 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 15 三月 2019 19:54:27 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode --- 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