| | |
| | | #参数不正确
|
| | | GameWorld.DebugAnswer(curPlayer, Lang.GBText("参数不正确"))
|
| | | GameWorld.DebugAnswer(curPlayer, "1-仙玉;2-绑玉;3-铜钱;6-战盟贡献度;10-战盟仓库积分;13-境界修行点;14-符印融合石;15-仙盟活跃令")
|
| | | GameWorld.DebugAnswer(curPlayer, "16-助战积分;23-符印精华;24-符印碎片;25-寻宝积分;26-集市额度;27-丹精")
|
| | | GameWorld.DebugAnswer(curPlayer, "16-助战积分;18-荣誉;23-符印精华;24-符印碎片;25-寻宝积分;26-集市额度;27-丹精;28-魂尘;")
|
| | | GameWorld.DebugAnswer(curPlayer, "29-聚魂碎片;30-核心环")
|
| | | return
|
| | | #钱币类型
|
| | | moneyType = List[0]
|
| | |
| | | #0文不处理
|
| | | if moneyCount < 0:
|
| | | return
|
| | | isOK = False
|
| | | playerMoney = PlayerControl.GetMoney(curPlayer, moneyType)
|
| | | if playerMoney > moneyCount:
|
| | | PlayerControl.PayMoney(curPlayer, moneyType, playerMoney - moneyCount, ChConfig.Def_Cost_GM, {ChConfig.Def_Cost_Reason_SonKey:"SetMoney"})
|
| | | isOK = PlayerControl.PayMoney(curPlayer, moneyType, playerMoney - moneyCount, ChConfig.Def_Cost_GM, {ChConfig.Def_Cost_Reason_SonKey:"SetMoney"})
|
| | | elif playerMoney < moneyCount:
|
| | | PlayerControl.GiveMoney(curPlayer, moneyType, moneyCount - playerMoney, ChConfig.Def_GiveMoney_GM, {ChConfig.Def_Give_Reason_SonKey:"SetMoney"})
|
| | | isOK = PlayerControl.GiveMoney(curPlayer, moneyType, moneyCount - playerMoney, ChConfig.Def_GiveMoney_GM, {ChConfig.Def_Give_Reason_SonKey:"SetMoney"})
|
| | | else:
|
| | | isOK = True
|
| | | if not isOK:
|
| | | GameWorld.DebugAnswer(curPlayer, "设置玩家货币失败,详见日志或流向")
|
| | |
|
| | | return
|
| | |
|