From 536f78666b3288424ab6adaded137f2bdd044b0d Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期六, 18 八月 2018 16:13:30 +0800 Subject: [PATCH] add:GM命令 SetMWSoul 魂ID 状态(1激活,0未激活) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SetMWSoul.py | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SetMWSoul.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SetMWSoul.py new file mode 100644 index 0000000..79b2741 --- /dev/null +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SetMWSoul.py @@ -0,0 +1,45 @@ +#!/usr/bin/python +# -*- coding: GBK -*- +#------------------------------------------------------------------------------- +# +#------------------------------------------------------------------------------- +# +##@package GM.Commands.SetMWSoul +# +# @todo:设置法宝之魂激活状态 +# @author xdh +# @date 2018-08-18 +# @version 1.0 +# +# 详细描述: 设置法宝之魂激活状态 +# +#--------------------------------------------------------------------- +"""Version = 2018-08-18 16:30""" +#--------------------------------------------------------------------- +import PlayerMagicWeapon +import PlayerControl +import ChConfig +import GameWorld + +#逻辑实现 +## GM命令执行入口 +# @param curPlayer 当前玩家 +# @param list 参数列表 [npcID] +# @return None +# @remarks 函数详细说明. +def OnExec(curPlayer, paramList): + if len(paramList) != 2: + GameWorld.DebugAnswer(curPlayer, "SetMWSoul 魂ID 状态(1激活,0未激活)") + return + soulID = paramList[0] + state = paramList[1] + + GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_PDict_MWSoulActiveState, soulID, state, True) + + PlayerMagicWeapon.CalcMagicWeaponSoulAttr(curPlayer) + PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState() + + #通知 + PlayerMagicWeapon.Sycn_MWPrivilegeData(curPlayer, soulID) + return + -- Gitblit v1.8.0