#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#-------------------------------------------------------------------------------  
 | 
#  
 | 
#-------------------------------------------------------------------------------  
 | 
#  
 | 
##@package GM.Commands.AddSuccess  
 | 
#  
 | 
# @todo:Ôö¼Ó³É¾Í½ø¶ÈÊý¾Ý  
 | 
# @author hxp  
 | 
# @date 2014-11-13  
 | 
# @version 1.0  
 | 
#  
 | 
# ÏêϸÃèÊö: Ôö¼Ó³É¾Í½ø¶ÈÊý¾Ý  
 | 
#  
 | 
#---------------------------------------------------------------------  
 | 
"""Version = 2014-11-13 20:30"""  
 | 
  
 | 
import PlayerSuccess  
 | 
import ShareDefine  
 | 
import GameWorld  
 | 
  
 | 
#Â߼ʵÏÖ  
 | 
## GMÃüÁîÖ´ÐÐÈë¿Ú  
 | 
#  @param curPlayer µ±Ç°Íæ¼Ò  
 | 
#  @param msgList ²ÎÊýÁбí [npcID]  
 | 
#  @return None  
 | 
#  @remarks º¯ÊýÏêϸ˵Ã÷.  
 | 
def OnExec(curPlayer, msgList):  
 | 
      
 | 
    if len(msgList) < 2:  
 | 
        GameWorld.DebugAnswer(curPlayer, "²ÎÊý´íÎó: AddSuccess ³É¾ÍÀàÐÍ Ôö¼Ó½ø¶È ¸½¼ÓÌõ¼þ(Ñ¡Ìî)")  
 | 
        return  
 | 
      
 | 
    successType = msgList[0]  
 | 
    addCnt = msgList[1]  
 | 
    condition = []  
 | 
      
 | 
    if successType not in ShareDefine.SuccessTypeList:  
 | 
        GameWorld.DebugAnswer(curPlayer, "¸Ã³É¾ÍÀàÐͲ»´æÔÚ!")  
 | 
        return  
 | 
      
 | 
    if addCnt < 1:  
 | 
        return  
 | 
      
 | 
    if len(msgList) > 2:  
 | 
        condition = msgList[2:]  
 | 
          
 | 
    PlayerSuccess.DoAddSuccessProgress(curPlayer, successType, addCnt, condition)  
 | 
    return  
 | 
  
 |