#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#-------------------------------------------------------------------------------  
 | 
#  
 | 
##@package GM.Commands.TrainRealmLV  
 | 
#  
 | 
# @todo:ÅàÑø¾³½ç  
 | 
# @author hxp  
 | 
# @date 2024-08-14  
 | 
# @version 1.0  
 | 
#  
 | 
# ÏêϸÃèÊö: ÅàÑø¾³½ç  
 | 
#  
 | 
#-------------------------------------------------------------------------------  
 | 
#"""Version = 2024-08-14 16:30"""  
 | 
#-------------------------------------------------------------------------------  
 | 
  
 | 
import GameWorld  
 | 
import PlayerControl  
 | 
  
 | 
## GMÃüÁîÖ´ÐÐÈë¿Ú  
 | 
#  @param curPlayer µ±Ç°Íæ¼Ò  
 | 
#  @param msgList ²ÎÊýÁÐ±í  
 | 
#  @return None  
 | 
#  @remarks º¯ÊýÏêϸ˵Ã÷.  
 | 
def OnExec(curPlayer, msgList):  
 | 
      
 | 
    if not msgList:  
 | 
        GameWorld.DebugAnswer(curPlayer, "ÉèÖÃÅàÑø¿¨¾³½ç: TrainRealmLV ÅàÑø¹¦ÄÜ ¾³½ç")  
 | 
        GameWorld.DebugAnswer(curPlayer, "ÅàÑø¹¦ÄÜ: 1-×øÆï£¬2-Áé³è£¬3-ÁéÆ÷")  
 | 
        return  
 | 
    funcType = msgList[0]  
 | 
    trainRealmLV = msgList[1] if len(msgList) > 1 else 0  
 | 
    PlayerControl.SetTrainRealmLV(curPlayer, funcType, trainRealmLV)  
 | 
    GameWorld.DebugAnswer(curPlayer, "ÉèÖÃÅàÑø¿¨¾³½ç: funcType:%s,¾³½ç:%s" % (funcType, trainRealmLV))  
 | 
    return  
 |