From 75b4c0b6bb7e82cc4b4376a39f4bb2e96239271d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 05 五月 2019 13:49:15 +0800
Subject: [PATCH] 3281 【1.6】【2.0】仙盟联赛开启后服务器时间回调,导致进入异常

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCInfo.py |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 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..10c33ba 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,9 @@
 import SkillCommon
 import PrintBuff
 import GMCommon
+import FamilyRobBoss
+import ShareDefine
+
 import random
 #---------------------------------------------------------------------
 ##查看点选的NPC仇恨列表
@@ -47,8 +50,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()))

--
Gitblit v1.8.0