From 7d7d5711266d84749562f8c38eded0342f81b118 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期六, 29 十二月 2018 17:35:38 +0800
Subject: [PATCH] 860312 写死npc类型为功能NPC的话 坐标不按范围随机,配置无效
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index f688ae0..4b8f41f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -3371,7 +3371,12 @@
#范围校验
posMapX = posMap.GetPosX()
posMapY = posMap.GetPosY()
- posMapArea = posMap.GetArea()
+
+ if curNPC.GetType() == IPY_GameWorld.ntFunctionNPC: #功能NPC
+ posMapArea = 0
+ else:
+ posMapArea = posMap.GetArea()
+
#获取范围内一点可以移动的点
posX, poxY = GameMap.GetNearbyPosByDis(posMapX, posMapY, posMapArea)
--
Gitblit v1.8.0