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