hch
2018-12-29 7d7d5711266d84749562f8c38eded0342f81b118
860312  写死npc类型为功能NPC的话 坐标不按范围随机,配置无效
1个文件已修改
7 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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)