From d7f8d55a035e5351c6af9f6c49ec5339c844d903 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 04 十一月 2019 21:12:40 +0800
Subject: [PATCH] 8321 【主干】【后端】GM工具优化(非禁言状态时上线也通知)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SummonNPC.py |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SummonNPC.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SummonNPC.py
index 6d274af..635c596 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SummonNPC.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SummonNPC.py
@@ -16,6 +16,7 @@
 import ChConfig
 import GameWorld
 import NPCCommon
+import ShareDefine
 
 #
 #逻辑实现
@@ -26,8 +27,9 @@
 #  @remarks 函数详细说明.
 def OnExec(curPlayer, paramList):
     #输入命令格式错误
-    if not paramList or len(paramList) > 2:
+    if not paramList:
         GameWorld.DebugAnswer(curPlayer, "SummonNPC npcID 个数")
+        GameWorld.DebugAnswer(curPlayer, "SummonNPC npcID 个数  血量")
         return
     
     #NPC对象ID
@@ -40,7 +42,10 @@
     
     npcType = npcData.GetType()
     if npcType in [ChConfig.ntPriWoodPilePVE, ChConfig.ntPriWoodPilePVP]:
-        NPCCommon.SummonPriWoodPile(curPlayer, npcID, npcCount)
+        setHP = paramList[2] if len(paramList) > 2 else 0
+        hp = setHP % ShareDefine.Def_PerPointValue
+        hpEx = setHP / ShareDefine.Def_PerPointValue
+        NPCCommon.SummonPriWoodPile(curPlayer, npcID, npcCount, hp, hpEx)
         return
     
     for _ in range(npcCount):

--
Gitblit v1.8.0