| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
|   | 
| ##@package GivePlayerExpSelf  | 
| # ¸øÓë×ÔÉí¾Ñé <¾ÑéÊýÖµ>  | 
| #  | 
| # @author Mark  | 
| # @date 2010-4-22  | 
| # @version 1.0  | 
| #  | 
| # ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ  | 
| # VER = "2010-05-12 18:30" zhengyang Ìí¼Ó×¢ÊÍ  | 
| #  | 
| # Ä£¿éÏêϸ˵Ã÷  | 
|   | 
| import PlayerControl  | 
| import GameWorld  | 
| ## GMÃüÁîÖ´ÐÐÈë¿Ú  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param list ²ÎÊýÁбí [ExpValue]  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec(curPlayer, list):  | 
| #===============================================================================  | 
| #    #¼ì²âµ±Ç°Íæ¼ÒÊÇ·ñÓÐȨÏÞ  | 
| #    #if   | 
| #    #µÚÒ»½×¶Î²»´¦Àí  | 
| #===============================================================================  | 
|       | 
|     #ÊäÈëÃüÁî¸ñʽ´íÎó  | 
|     if len(list)!=1:  | 
|         return  | 
|       | 
|     #ÉèÖþÑéÖµ  | 
|     ExpValue=list[0]  | 
|     addExp = PlayerControl.PlayerControl(curPlayer).AddExp(ExpValue)  | 
|     GameWorld.DebugAnswer(curPlayer, "addExp=%s" % (addExp))  | 
|     return  | 
|   | 
|   | 
|      |