6307 【后端】【2.0】多套装备开发单(暂屏蔽首充武器试用)
| | |
| | | if isPass:
|
| | | EventReport.WriteEvent_FB(curPlayer, ChConfig.Def_FBMapID_MagicWeapon, 0, ChConfig.CME_Log_End, 0, 1)
|
| | |
|
| | | if lineID == IpyGameDataPY.GetFuncCfg('FirstGoldTryItem', 3):
|
| | | if not isPass:
|
| | | #副本指定线路失败了,进入首充试用引导
|
| | | if not curPlayer.GetChangeCoinPointTotal() and not curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FirstGoldTry):
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 1)
|
| | | PlayerGoldGift.Sync_FirstGoldInfo(curPlayer)
|
| | | else:
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 0)
|
| | | # if lineID == IpyGameDataPY.GetFuncCfg('FirstGoldTryItem', 3):
|
| | | # if not isPass:
|
| | | # #副本指定线路失败了,进入首充试用引导
|
| | | # if not curPlayer.GetChangeCoinPointTotal() and not curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FirstGoldTry):
|
| | | # PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 1)
|
| | | # PlayerGoldGift.Sync_FirstGoldInfo(curPlayer)
|
| | | # else:
|
| | | # PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FirstGoldTry, 0)
|
| | | return
|
| | |
|
| | |
|
| | |
| | | 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)
|