#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
#-------------------------------------------------------------------------------
|
#
|
##@package GM.Commands.SetGreatMasterPoint
|
#
|
# @todo:ÉèÖôóʦÌ츳µã
|
# @author hxp
|
# @date 2015-2-27
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: ÉèÖôóʦÌ츳µã
|
#
|
#---------------------------------------------------------------------
|
"""Version = 2015-2-27 21:00"""
|
|
import PlayerGreatMaster
|
import GameWorld
|
#---------------------------------------------------------------------
|
#È«¾Ö±äÁ¿
|
#---------------------------------------------------------------------
|
|
#---------------------------------------------------------------------
|
#Â߼ʵÏÖ
|
## GMÃüÁîÖ´ÐÐÈë¿Ú
|
# @param curPlayer µ±Ç°Íæ¼Ò
|
# @param list ²ÎÊýÁбí [npcID]
|
# @return None
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def OnExec(curPlayer, list):
|
if len(list) <= 0:
|
GameWorld.DebugAnswer(curPlayer, "²ÎÊý´íÎó: SetGreatMasterPoint ¿ÉÓÃÌ츳µã")
|
return
|
|
freePoint = list[0]
|
PlayerGreatMaster.SetGreatMasterFreeSkillPoint(curPlayer, freePoint)
|
PlayerGreatMaster.Sync_GreatMasterFreeSkillPoint(curPlayer)
|
GameWorld.DebugAnswer(curPlayer, "ÉèÖôóʦÌ츳µã[%s]OK!" % freePoint)
|
return
|
|