#!/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