| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package GM.Commands.SetRein  | 
| #  | 
| # @todo:ÉèÖÃתÉú  | 
| # @author hxp  | 
| # @date 2016-2-24  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: ÉèÖÃתÉú  | 
| #  | 
| #---------------------------------------------------------------------  | 
| """Version = 2016-2-24 16:00"""  | 
| #---------------------------------------------------------------------  | 
|   | 
| import ReadChConfig  | 
| import PlayerBillboard  | 
| import PlayerControl  | 
| import ChConfig  | 
| import GameWorld  | 
|   | 
| #Â߼ʵÏÖ  | 
| ## GMÃüÁîÖ´ÐÐÈë¿Ú  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param msgList ²ÎÊýÁбí [classLV, starLV, exp]  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec(curPlayer, msgList):  | 
|     #ÊäÈëÃüÁî¸ñʽ´íÎó  | 
|     if len(msgList) < 1:  | 
|         return  | 
|       | 
|     reinLV = msgList[0]  | 
|   | 
|     Reincarnation_Condition = ReadChConfig.GetEvalChConfig("Reincarnation_Condition")  | 
|     if reinLV not in Reincarnation_Condition:  | 
|         GameWorld.DebugAnswer(curPlayer, "²»´æÔÚ¸ÃתÉú!")  | 
|         return  | 
|       | 
|     LV = Reincarnation_Condition[reinLV][0]  | 
|     curPlayer.SetLV(LV + 1)  | 
|       | 
|     curPlayer.SetReincarnationLv(reinLV)  | 
|     PlayerBillboard.UpdatePlayerBillboardOnLeaveServer(curPlayer)  | 
|     #Í¬Ê±ÖØÖý±Àø  | 
|     PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_Reinc_AwardRecord, 0)  | 
|     return  | 
|   |