#!/usr/bin/python # -*- coding: GBK -*- #------------------------------------------------------------------------------- # ##@package GM.Commands.LuckyCloudBuy # # @todo:ÐÒÔËÔÆ¹º # @author hxp # @date 2021-10-21 # @version 1.0 # # ÏêϸÃèÊö: ÐÒÔËÔÆ¹º # #------------------------------------------------------------------------------- #"""Version = 2021-10-21 17:00""" #------------------------------------------------------------------------------- import GameWorld import PlayerControl import PlayerLuckyCloudBuy import ChConfig ## GMÃüÁîÖ´ÐÐÈë¿Ú # @param curPlayer µ±Ç°Íæ¼Ò # @param msgList ²ÎÊýÁбí [addSkillID] # @return None # @remarks º¯ÊýÏêϸ˵Ã÷. def OnExec(curPlayer, msgList): if not msgList: GameWorld.DebugAnswer(curPlayer, "ÖØÖÃËùÓÐÊý¾Ý: LuckyCloudBuy 0") GameWorld.DebugAnswer(curPlayer, "ÖØÖñ¾ÈËÊý¾Ý: LuckyCloudBuy 0 1") GameWorld.DebugAnswer(curPlayer, "Ìí¼ÓÔÆ¹º¼Ç¼: LuckyCloudBuy 1 ·ÝÊý") return isSendGameServer = False value1 = msgList[0] if value1 == 0: # ÖØÖÃËùÓÐ if len(msgList) == 1: PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LuckyCloudBuy_RoundID, 0) PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LuckyCloudBuy_BuyCount, 0) isSendGameServer = True # ÖØÖñ¾ÈËÊý¾Ý elif len(msgList) == 2 and msgList[1] == 1: PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LuckyCloudBuy_RoundID, 0) PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LuckyCloudBuy_BuyCount, 0) elif value1 == 1: isSendGameServer = True return isSendGameServer PlayerLuckyCloudBuy.Sync_LuckyCloudBuyPlayerInfo(curPlayer) return isSendGameServer