| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package GM.Commands.SetAlchemy  | 
| #  | 
| # @todo:ÉèÖÃÁ¶µ¤  | 
| # @author hxp  | 
| # @date 2017-11-16  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: ÉèÖÃÁ¶µ¤  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #"""Version = 2017-11-16 21:00"""  | 
| #-------------------------------------------------------------------------------  | 
|   | 
|   | 
|   | 
| import GameWorld  | 
| import PlayerControl  | 
| import ChConfig  | 
| import PlayerRefineStove  | 
|   | 
|   | 
| ## Â߼ʵÏÖ  | 
| #  @param curPlayer  | 
| #  @param cmdList ²ÎÊýÁÐ±í  | 
| #  @return None  | 
| def OnExec(curPlayer, cmdList):  | 
|     if not cmdList:  | 
|         GameWorld.DebugAnswer(curPlayer, "ÉèÖÃÁ¶µ¤ÐÅÏ¢: SetAlchemy µÈ¼¶ ¾Ñé")  | 
|         return  | 
|       | 
|     alchemyLV = cmdList[0]  | 
|     alchemyExp = cmdList[1] if len(cmdList) > 1 else 0  | 
|       | 
|     PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_AlchemyLV, alchemyLV)  | 
|     PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_AlchemyExp, alchemyExp)  | 
|     PlayerRefineStove.RefreshStoveAttr(curPlayer)  | 
|     PlayerRefineStove.Sycn_AlchemyMsg(curPlayer)  | 
|     GameWorld.DebugAnswer(curPlayer, "ÉèÖÃÁ¶µ¤³É¹¦£¡alchemyLV=%s,alchemyExp=%s" % (alchemyLV, alchemyExp))  | 
|     return  |