hxp
2025-05-28 09fef77b16601ee5b0f53f34ccb23804b8448c8c
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
#!/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