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
47
48
49
50
51
52
53
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
#
##@package ResetBaseAttr.py
#
# @todo: ÖØÉèÍæ¼ÒÊôÐÔ
# @author wdb
# @date 2013-06-21
# @version 1.0
#
# @note: 
# ÏêϸÃèÊö:
#------------------------------------------------------------------------------
import GameWorld
import PlayerControl
#------------------------------------------------------------------------------ 
"""Version = 2013-06-21 14:30"""
 
## GMÃüÁîÖ´ÐÐÈë¿Ú
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param list ²ÎÊýÁбí
#  @return None
def OnExec(curPlayer, cmdlist):    
    
    if curPlayer.GetLV() > 1:
        GameWorld.DebugAnswer(curPlayer, "LV can not greater than 1")
        return
    
    playerJob = curPlayer.GetJob()
    
    initBaseAttrPoint = (0, 0, 0, 0)
    # »ñÈ¡´´½¨Ê±µÄ»ù´¡ÊôÐÔ
    baseSTR, basePNE, basePHY, baseCON = PlayerControl.GetPlayerBasePoint(playerJob)
    
    # »ñÈ¡´´½¨Ê±µÄ»ù´¡ÊôÐÔ´íÎ󣬠·µ»Ø
    if (baseSTR, basePNE, basePHY, baseCON) == initBaseAttrPoint:
        return initBaseAttrPoint
 
    curPlayer.SetBaseSTR(baseSTR)
    curPlayer.SetBasePNE(basePNE)
    curPlayer.SetBasePHY(basePHY)
    curPlayer.SetBaseCON(baseCON)
 
    #Ë¢ÐÂÈËÎïËùÓÐ״̬
    playerControl = PlayerControl.PlayerControl(curPlayer)
    playerControl.RefreshAllState()  
    return