#!/usr/bin/python # -*- coding: GBK -*- #------------------------------------------------------------------------------- # ##@package GM.Commands.SetFBStar # # @todo:ÉèÖøöÈ˸±±¾ÐǼ¶ # @author hxp # @date 2017-03-07 # @version 1.0 # # ÏêϸÃèÊö: ÉèÖøöÈ˸±±¾ÐǼ¶ # #------------------------------------------------------------------------------- #"""Version = 2017-03-07 16:30""" #------------------------------------------------------------------------------- import GameWorld import ChConfig import FBCommon import PlayerControl #--------------------------------------------------------------------- #Âß¼­ÊµÏÖ ## GMÃüÁîÖ´ÐÐÈë¿Ú # @param curPlayer µ±Ç°Íæ¼Ò # @param paramList ²ÎÊýÁбí # @return None # @remarks º¯ÊýÏêϸ˵Ã÷. def OnExec(curPlayer, paramList): if len(paramList) == 3: mapID, lineID, star = paramList # if mapID not in allMapIDList: # GameWorld.DebugAnswer(curPlayer, "¸ÃµØÍ¼ID²»¿ÉÉèÖÃ!") # return GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, star, False, [mapID]) elif len(paramList) == 1: mapID = paramList[0] for keyNum in range(ChConfig.Def_FBStar_MaxKeyCnt): PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId % (mapID, keyNum), 0) else: #GameWorld.DebugAnswer(curPlayer, "ÖØÖÃËùÓи±±¾ÐǼ¶: SetFBStar 0") GameWorld.DebugAnswer(curPlayer, "ÉèÖÃÖ¸¶¨¸±±¾lineIDÐǼ¶: SetFBStar ¸±±¾ID lineID ÐǼ¶") GameWorld.DebugAnswer(curPlayer, "ÖØÖÃÖ¸¶¨¸±±¾ËùÓÐÐǼ¶: SetFBStar ¸±±¾ID") return FBCommon.Sync_FBPlayerFBInfoData(curPlayer, mapID) GameWorld.DebugAnswer(curPlayer, "OK!") return