#!/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
|
|
|