hxp
2019-03-05 79a23de6692781dfe4b18fdb57bc4b3e69f34014
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
37
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
#
##@package GM.Commands.SetClientType
#
# @todo:ÉèÖÿͻ§¶ËµÇ¼ÀàÐÍ
# @author hxp
# @date 2014-08-14
# @version 1.0
#
# ÏêϸÃèÊö: ÉèÖÿͻ§¶ËµÇ¼ÀàÐÍ
#
#---------------------------------------------------------------------
"""Version = 2014-08-14 11:00"""
import GameWorld
 
## Ö´ÐÐÂß¼­
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param gmList []
#  @return None
def OnExec(curPlayer, gmList):
    
    if len(gmList) != 1:
        GameWorld.DebugAnswer(curPlayer, "²ÎÊý¸öÊý²»ºÏ·¨£ºSetClientType µÇ¼ÀàÐÍ(1-ä¯ÀÀÆ÷£»3-΢¶Ë)")
        return
    
    clientType = gmList[0]
    # µÇ¼¿Í»§¶ËÀàÐÍ
    resultName = str([clientType])
    curPlayer.MapServer_QueryPlayerResult(0, 0, "LoginData", resultName, len(resultName))
    GameWorld.DebugAnswer(curPlayer, "SetClientType %s OK!" % clientType)
    return