• 400-123-4567

    工作时间

    周一至周五:9:00-21:00

    周末及节日:9:00-18:00

  • 手机版二维码

    微信公众号

  • 扫描二维码

    关注官方公众号

Close

[教程] 如何检查,重置,新增自定义空间zone!!!

11
回复
3336
查看
[复制链接]
  • 打卡等级:殷海萨
  • 打卡总天数:765
  • 打卡月天数:17
  • 打卡总奖励:5193
发表于 2016-11-23 11:43:29 | 显示全部楼层 |阅读模式
In this guide I will explain step by step how you can check, remove and create your zone. Happy reading 如何检查,重置,新增自定义空间zone!!!
Chapter I - Checking the type of zone (aCis case)

The easiest way to find out the type of zone is to use admin command //zone_check, accessible also from admin panel, //admin -> server -> zone check.

The output

如何检查,重置,新增自定义空间zone!!!
Chapter II - Removing the type of zone

Now, when you know the type(s) of the zone (look above) and you want to remove it, go to the corresponding file (all zones are stored inside /data/xml/zones/). For instance, if you want to remove the peace zone, let's say from Primeval Island, you open the PeaceZone.xml and you search for the record. They are mostly commented <!-- xxx -->, so it's not gonna be hard as you think.
    <zone type="PeaceZone" shape="NPoly" minZ="-4792" maxZ="208"><!-- primeval_peace2 -->        <node X="4850" Y="-4736" />        <node X="7294" Y="-4712" />        <node X="8529" Y="-820" />        <node X="3615" Y="-737" />    </zone>
Simply remove that part of the code, save and voila. The beach is no longer a peaceful zone. Slap some asses 如何检查,重置,新增自定义空间zone!!!
Chapter III - Types of zones

First of all, in order to create new zone, you must know possible shapes. From l2jwiki
Cuboid Zones:-------------Require 2 nodes (vertices), in order to make a Square, for example:O . . . ..       ..       ..       .. . . . OO = Node (vertice)NPoly Zones:------------Require 3 or more nodes (vertices), in order to make a Polygon or another geometrical model, for example:    O   / \  /   \ /     \O - - - OO = Node (vertice)Cylinder Zones:---------------Require 1 node (vertice) and radius, in order to make a Cylinder.          *  *  *      *             *    *                 *  *                     * *                       **                         **                         **            O            **                         **                         * *                       *  *                     *    *                 *      *             *          *  *  *O = Node (vertice)* = Radius
Chapter IV - Creating the new zone
  • Cuboid
Cuboid requires only 2 nodes as it's said on the image above. You must get only 2 nodes/vertices (by typing /loc ingame) and another two will be generated automatically. How? It's simple, when the two lines cross each other, the node is generated.
如何检查,重置,新增自定义空间zone!!!

Good example of the cuboid shape are Arenas. You get two opposite corners and done.
    <zone type="ArenaZone" shape="Cuboid" minZ="-3596" maxZ="0"><!-- dion_monster_pvp -->        <node X="11947" Y="183019" />        <node X="12943" Y="184010" />        <spawn X="12312" Y="182752" Z="-3558" />    </zone>
  • NPoly
With help of NPoly, you can create any shape you imagine, there are no restrictions, but ofc.. You must create it with your "head", no crossing lines and similar crap 如何检查,重置,新增自定义空间zone!!!

如何检查,重置,新增自定义空间zone!!!

Most of the zones uses NPoly, here is an example
    <zone type="JailZone" shape="NPoly" minZ="-2992" maxZ="-2792"> <!-- gm_prison -->        <node X="-116390" Y="-251581" />        <node X="-112756" Y="-251617" />        <node X="-112720" Y="-248199" />        <node X="-116354" Y="-248217" />    </zone>
  • Cylinder
Cylinder requires only one, central point. You declare it's radius with rad="XX". Take the middle point, and simply rush forward, stop in place you want and compare the Y value, that would be your radius. - Image.
如何检查,重置,新增自定义空间zone!!!
    <zone type="ArenaZone" shape="Cylinder" minZ="-2320" maxZ="-2120" rad="700"> <!-- hot springs circle -->        <node X="151555" Y="-127082" />    </zone>
When you decided which shape to use and you have the coords, don't forget the set/change it's type (in case you simply c/p another zone structure). If your new custom zone is called FlagZone, then you must declate it under type=" "
<zone type="FlagZone"
Basically, you can put the zone code to any file you wish, but the best way to keep things organized it to create a new file, in that case, FlagZone.xml - you can copy any existing file, rename it, remove all <zone> records and paste there yours. That way you know where to search if you want to add more zones or remove, extend or whatever.
These are the available shapes. X and Y is obvious, now you wonder what should be the Z value. Well, basically Z value depends of the territory shape, if it's plat or bumpy, are there mountains or not. If it's plat, more or less, you should be fine with +-100 from the basic value generated from /loc. You can add bigger to be 100% sure that when someone ride the strider, fly with wyvern,will not leave your zone.
When you are done with creating the zone, now it's time to see if it's working. Launch the server, go to the new zone and type //zone_check, else go to admin panel -> server -> zone check (chapter 1 screen). In case it's your custom zone, you can press Visualize All to see the shape. The result will be dropped adena on the ground, as you could notice on the screenshot above.


Basically, that's it. If I forgot about any case, let me know, so I will update the guide.

Your, SweeTy 如何检查,重置,新增自定义空间zone!!!

外国大牛写的教程,看的懂的上,看不懂的,感兴趣的自行使用在线翻译,懵懂的看!!!!!

附上原文地址:http://www.maxcheaters.com/topic/188679-how-to-check-remove-and-add-zone/

回复

使用道具 举报

发表于 2018-10-31 12:25:23 | 显示全部楼层
翻译翻译看看
回复

使用道具 举报

发表于 2020-12-17 20:05:08 | 显示全部楼层
感謝大大的分享 非常感謝
回复

使用道具 举报

  • 打卡等级:尐精灵
  • 打卡总天数:1
  • 打卡月天数:0
  • 打卡总奖励:4
发表于 2022-5-5 13:41:27 | 显示全部楼层
路过顶一下!~
回复

使用道具 举报

  • 打卡等级:尐精灵
  • 打卡总天数:13
  • 打卡月天数:0
  • 打卡总奖励:32
发表于 2023-5-10 20:32:11 | 显示全部楼层
感谢楼主分享
回复

使用道具 举报

  • 打卡等级:尐伊娃
  • 打卡总天数:200
  • 打卡月天数:11
  • 打卡总奖励:1623
发表于 2023-5-19 18:49:41 | 显示全部楼层
完全看不懂
回复

使用道具 举报

  • 打卡等级:殷海萨
  • 打卡总天数:765
  • 打卡月天数:17
  • 打卡总奖励:5193
 楼主| 发表于 2023-5-20 10:12:06 | 显示全部楼层

你想做什么? 比如说你想自己建一个什么样的zone???
回复

使用道具 举报

  • 打卡等级:尐伊娃
  • 打卡总天数:200
  • 打卡月天数:11
  • 打卡总奖励:1623
发表于 2023-6-12 19:28:40 | 显示全部楼层
l2fater 发表于 2023-5-20 10:12
你想做什么? 比如说你想自己建一个什么样的zone???

比如说副本
回复

使用道具 举报

  • 打卡等级:殷海萨
  • 打卡总天数:765
  • 打卡月天数:17
  • 打卡总奖励:5193
 楼主| 发表于 2023-6-13 10:11:24 | 显示全部楼层

副本 一般在zones文件夹内有instance这样的文件代表副本的区域,可以参考复制一份然后,修改对应的XYZ轴区域,当然,有的服务端可以直接在游戏里面的GM  admin 菜单里面进行添加instance!!!
回复

使用道具 举报

  • 打卡等级:尐沙哈
  • 打卡总天数:127
  • 打卡月天数:0
  • 打卡总奖励:336
发表于 2024-6-1 16:54:59 | 显示全部楼层
这个是技术的   要慢慢学习才可以
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

全国统一客服电话
400-1234-7788

24x7小时免费咨询

  • 官方在线客服

    QQ客服:杀气丶

    点击交谈
  • 上海市虹口区海伦中心B座4F4055-4056室

  • 手机扫码查看公众号

    手机查找资源更方便

  • 扫一扫官方微信公众号

    关注官方微信公众号

血玫瑰游戏社区制作( 吉ICP备2022002542号 )营业执照|网站地图