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
38
39
40
41
42
43
44
45
46
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
#
##@package GM.Commands.ActiveHorse
#
# @todo:¼¤»î×øÆï
# @author xdh
# @date 2015-3-22
# @version 1.0
#
# ÏêϸÃèÊö: ¼¤»î×øÆï
#
#---------------------------------------------------------------------
"""Version = 2015-03-22 23:00"""
#---------------------------------------------------------------------
 
import ShareDefine
import GameWorld
import OpenFunc
import PlayerHorse
 
 
#---------------------------------------------------------------------
#Âß¼­ÊµÏÖ
 
## GMÃüÁîÖ´ÐÐÈë¿Ú
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param msgList ²ÎÊýÁбí
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def OnExec(curPlayer, msgList):
    if not msgList:
        GameWorld.DebugAnswer(curPlayer, "ActiveHorse µÚ¼¸Ö»×øÆï ½×¼¶ ¾­Ñé")
        GameWorld.DebugAnswer(curPlayer, "½×¼¶ ¾­Ñé Ñ¡Ìî")
        return
    OpenFunc.DoGMOpenFunc(curPlayer, ShareDefine.GameFuncID_Horse)
    index = msgList[0]
    classlv = msgList[1] if len(msgList) > 1 else 1
    exp = msgList[2] if len(msgList) > 2 else None
    PlayerHorse.DoHorseActivate(curPlayer, index, classlv, exp)
    return