#!/usr/bin/python # -*- coding: GBK -*- #------------------------------------------------------------------------------- # ##@package GM.Commands.Tuijinbi # # @todo:ÍÆ½ð±Ò # @author hxp # @date 2024-12-13 # @version 1.0 # # ÏêϸÃèÊö: ÍÆ½ð±Ò # #------------------------------------------------------------------------------- #"""Version = 2024-12-13 18:00""" #------------------------------------------------------------------------------- import GameWorld import PlayerControl import PlayerSuperDiscount import ChConfig ## GMÃüÁîÖ´ÐÐÈë¿Ú # @param curPlayer µ±Ç°Íæ¼Ò # @param msgList ²ÎÊýÁбí # @return None # @remarks º¯ÊýÏêϸ˵Ã÷. def OnExec(curPlayer, msgList): if not msgList: GameWorld.DebugAnswer(curPlayer, "ÖØÖÃÍÆ½ð±Ò: Tuijinbi 0 [ÐÂÀÏÍæ¼Ò±ê¼Ç]") GameWorld.DebugAnswer(curPlayer, "ÉèÖÃÌ¨ÃæÖµ: Tuijinbi p ÀàÐÍ ÊýÁ¿ ÀàÐÍ ÊýÁ¿") GameWorld.DebugAnswer(curPlayer, "ÐÂÀÏÍæ¼Ò±ê¼Ç: 1-ÐÂÍæ¼Ò; 2-ÀÏÍæ¼Ò") return value = msgList[0] if value == 0: sign = msgList[1] if len(msgList) > 1 else PlayerSuperDiscount.Sign_NewVerPlayer PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TuiJinbiSign, sign) PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TuiJinbiCnt, 0) for moneyType in PlayerSuperDiscount.PrizeMoneyTypeList: PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TuiJinbiMoney % moneyType, 0) for prizeType in [PlayerSuperDiscount.PrizeType_Gold, PlayerSuperDiscount.PrizeType_Xianyu]: PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TuiJinbiPool % prizeType, 0) PlayerSuperDiscount.SyncTuijinbiInfo(curPlayer) GameWorld.DebugAnswer(curPlayer, "ÖØÖÃÍÆ½ð±ÒÍæ¼Ò±ê¼Ç:%s" % sign) elif value == "p": setValueList = msgList[1:] for index in range(len(setValueList) / 2): prizeType = setValueList[index * 2] prizeValue = setValueList[index * 2 + 1] PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TuiJinbiPool % prizeType, prizeValue) GameWorld.DebugAnswer(curPlayer, "ÉèÖÃÌ¨ÃæType:%s,¸öÊý:%s" % (prizeType, prizeValue)) PlayerSuperDiscount.SyncTuijinbiInfo(curPlayer) return