hxp
2025-10-21 ec19547ca0985de3f1c4045411ee6c171204e535
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package GM.Commands.LLMJ
#
# @todo:ÀúÁ·ÃØóÅ
# @author hxp
# @date 2025-10-20
# @version 1.0
#
# ÏêϸÃèÊö: ÀúÁ·ÃØóÅ
#
#-------------------------------------------------------------------------------
#"""Version = 2025-10-20 15:00"""
#-------------------------------------------------------------------------------
 
import ChConfig
import PlayerControl
import IpyGameDataPY
import PlayerLLMJ
import GameWorld
 
def OnExec(curPlayer, cmdList):
    if not cmdList:
        GameWorld.DebugAnswer(curPlayer, "ÖØÖÃÃØóÅ: LLMJ 0")
        GameWorld.DebugAnswer(curPlayer, "ÃØóŵȼ¶: LLMJ l µÈ¼¶ [ÀÛ¼ÆÏûºÄÕ½´¸]")
        GameWorld.DebugAnswer(curPlayer, "½ñÈÕÀÛ¼Æ: LLMJ d ÀۼƶîÍâ¾­Ñé ¶îÍâ·Ö½â")
        return
    
    value1 = cmdList[0]
    if value1 == 0:
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LLMJLVInfo, 0)
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LLMJExp, 0)
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LLMJDecompose, 0)
        GameWorld.DebugAnswer(curPlayer, "ÖØÖÃÀúÁ·ÃØóÅ")
        
    elif value1 == "l":
        mjLV = cmdList[1] if len(cmdList) > 1 else 0
        zhanchui = cmdList[2] if len(cmdList) > 2 else 0
        ipyData = IpyGameDataPY.GetIpyGameData("LLMJ", mjLV)
        if not ipyData:
            GameWorld.DebugAnswer(curPlayer, "ÀúÁ·ÃØóŵȼ¶²»´æÔÚ! %s" % mjLV)
            return
        zhanchui = max(ipyData.GetCostWarhammer(), zhanchui)
        PlayerLLMJ.SetMJLVInfo(curPlayer, mjLV, zhanchui)
        GameWorld.DebugAnswer(curPlayer, "ÀúÁ·ÃØóŵȼ¶:%s, ÏûºÄÕ½´¸:%s" % (mjLV, zhanchui))
        
    elif value1 == "d":
        expEx = cmdList[1] if len(cmdList) > 1 else 0
        decomposeEx = cmdList[2] if len(cmdList) > 2 else 0
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LLMJExp, expEx)
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LLMJDecompose, decomposeEx)
        GameWorld.DebugAnswer(curPlayer, "ÀúÁ·ÃØóÅÀۼƾ­Ñé:%s, ·Ö½â:%s" % (expEx, decomposeEx))
        
    else:
        return
    
    PlayerLLMJ.SyncLLMJInfo(curPlayer)
    return