hxp
2021-11-17 ffa8a645ed6a92a3c723bbf5c7f1eb4d5425c826
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
#!/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