#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#-------------------------------------------------------------------------------  
 | 
#  
 | 
#-------------------------------------------------------------------------------  
 | 
#  
 | 
##@package GM.Commands.SetTotalExp  
 | 
#  
 | 
# @todo:ÉèÖõ±Ç°¾Ñé  
 | 
# @author hxp  
 | 
# @date 2016-3-7  
 | 
# @version 1.0  
 | 
#  
 | 
# ÏêϸÃèÊö: ÉèÖõ±Ç°¾Ñé  
 | 
#  
 | 
#---------------------------------------------------------------------  
 | 
"""Version = 2016-3-7 18:00"""  
 | 
#---------------------------------------------------------------------  
 | 
  
 | 
import PlayerControl  
 | 
import GameWorld  
 | 
  
 | 
## GMÃüÁîÖ´ÐÐÈë¿Ú  
 | 
#  @param curPlayer µ±Ç°Íæ¼Ò  
 | 
#  @param list ²ÎÊýÁбí [ExpValue]  
 | 
#  @return None  
 | 
#  @remarks º¯ÊýÏêϸ˵Ã÷.  
 | 
def OnExec(curPlayer, paramList):  
 | 
      
 | 
    #ÊäÈëÃüÁî¸ñʽ´íÎó  
 | 
    if len(paramList) <= 0:  
 | 
        return  
 | 
      
 | 
    #ÉèÖþÑéÖµ  
 | 
    totalExp = paramList[0]  
 | 
    PlayerControl.SetPlayerTotalExp(curPlayer, totalExp)  
 | 
    tExp = curPlayer.GetTotalExp()  
 | 
    expPoint = curPlayer.GetExpPoint()  
 | 
    GameWorld.DebugAnswer(curPlayer, "expPoint=%s,exp=%s,totalExp=%s" % (expPoint, tExp, totalExp))           
 | 
    return  
 | 
  
 | 
  
 |