1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/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