#!/usr/bin/python # -*- coding: GBK -*- ##@package GetProMovement # Êý¾Ý¿âGMÃüÁîÖ´ÐÐ->»î¶¯²éѯ # # @author mark # @date 2010-3-31 # @version 1.0 # # ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ # @change: "2011-09-15 10:50" jiang ɾ³ýÌØÊâ»î¶¯µÄÅж¨ # # Ä£¿éÏêϸ˵ #Êý¾Ý¿âGMÃüÁîÖ´ÐÐ->»î¶¯²éѯ #--------------------------------------------------------------------- """Version = 2011-09-15 10:50""" #--------------------------------------------------------------------- #µ¼Èë import IPY_GameServer import GMCommon import ChConfig import GameWorld #--------------------------------------------------------------------- #È«¾Ö±äÁ¿ #--------------------------------------------------------------------- #--------------------------------------------------------------------- #Âß¼­ÊµÏÖ(ÕâÀïcurPlayer = None) ## Ö´ÐÐÂß¼­ # @param curPlayer µ±Ç°Íæ¼Ò # @param gmList [cmdIndex gmAccID] # @return None # @remarks º¯ÊýÏêϸ˵Ã÷. def OnExec(curPlayer, gmList): cmdIndex = gmList[0] gmAccID = gmList[1] eventManager = GameWorld.GetGameWorldEventManager() activeEventDisc = {} #ÒѾ­¼¤»îµÄ»î¶¯Áбí isActiveIDList = [] for index in range( eventManager.GetActiveEventCount()): event = eventManager.GetActiveEventByIndex(index) eventID = event.GetEventID() if eventID in [ChConfig.Def_GY_GM_Game_DoubleExp , ChConfig.Def_GY_GM_Game_Broadcast]: #ÌØÊâ»î¶¯,²»Í¨Öª continue isActiveIDList.append(eventID) activeEventDisc.update( { eventID : [1 , event.GetStartTime() , event.GetEndTime() , event.GetAccID()] } ) #È«²¿µÄ»î¶¯ for evID in GMCommon.GetGameServer_GM_GameID(): #ÆäËûδ¼¤»îµÄ»î¶¯Õý³£´¦Àí if evID not in isActiveIDList: activeEventDisc.update( { evID : [0] } ) GMCommon.Send_DataServer_GMCommandResult(cmdIndex, ChConfig.Def_GMTool_Succeed , '%s'%activeEventDisc) return