From ef759fd5eb134d9bf6246d77d2d5240c649f6640 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 17 五月 2019 17:47:52 +0800
Subject: [PATCH] 1 MissionDir命令增加输出DescriptionIndex

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCInfo.py |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCInfo.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCInfo.py
index f45e967..647b353 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCInfo.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCInfo.py
@@ -22,6 +22,10 @@
 import SkillCommon
 import PrintBuff
 import GMCommon
+import FamilyRobBoss
+import ShareDefine
+import ChConfig
+
 import random
 #---------------------------------------------------------------------
 ##查看点选的NPC仇恨列表
@@ -47,8 +51,12 @@
     
     npcID = curNPC.GetNPCID()
     GameWorld.DebugAnswer(curPlayer, "-----------------------%s" % random.randint(0, 100))
-    GameWorld.DebugAnswer(curPlayer, "ObjID: %s, NPCID: %s, %s" % (curNPC.GetID(), npcID, curNPC.GetName()))
-    GameWorld.DebugAnswer(curPlayer, "表等级: %s, 成长等级: %s" % (curNPC.GetLV(), curNPC.GetCurLV()))
+    GameWorld.DebugAnswer(curPlayer, "ObjID: %s, NPCID: %s, %s, Type: %s" % (curNPC.GetID(), npcID, curNPC.GetName(), curNPC.GetType()))
+    if FamilyRobBoss.IsHorsePetRobBoss(npcID):
+        strengthenPlayerCnt = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_HorsePetRobBossPlayerCount)
+        GameWorld.DebugAnswer(curPlayer, "表等级: %s, 成长等级: %s, 参与人数: %s" % (curNPC.GetLV(), curNPC.GetCurLV(), strengthenPlayerCnt))
+    else: 
+        GameWorld.DebugAnswer(curPlayer, "表等级: %s, 成长等级: %s" % (curNPC.GetLV(), curNPC.GetCurLV()))
     GameWorld.DebugAnswer(curPlayer, "生命: %s / %s" % (GameObj.GetHP(curNPC), GameObj.GetMaxHP(curNPC)))
     GameWorld.DebugAnswer(curPlayer, "攻击: %s ~ %s" % (curNPC.GetMinAtk(), curNPC.GetMaxAtk()))
     GameWorld.DebugAnswer(curPlayer, "防御: %s" % (curNPC.GetDef()))
@@ -62,7 +70,7 @@
 
 def PrintNPCBuff(curPlayer, curNPC):
     for buffType in range(IPY_GameWorld.bfBuff, IPY_GameWorld.btBufMax):
-        if buffType in [IPY_GameWorld.bfIncBuff, IPY_GameWorld.btPassiveBuf, IPY_GameWorld.bfEquipBuff, IPY_GameWorld.bfMapBuff]:
+        if buffType in ChConfig.Def_BuffType_OnlyPlayer:
             continue
         PrintBuffState(curPlayer, curNPC, buffType)
     return

--
Gitblit v1.8.0