How to make a zone a limited number of players inside

Deazer

Разработчик
Команда форума
#1
Path:
data/zone

For example, we choose any standard zone:
data/zone/peace_zone.xml

XML:
<zone name="[primeval_peace1]" type="peace_zone" >
        <polygon> <!-- 원시의 섬 선착장(20_17) -->
            <coords loc="10408 -27395 -4290 -1290" />
            <coords loc="12065 -25334 -4290 -1290" />
            <coords loc="12223 -23159 -4290 -1290" />
            <coords loc="10424 -22340 -4290 -1290" />
            <coords loc="9566 -23131 -4290 -1290" />
            <coords loc="9290 -24261 -4290 -1290" />
        </polygon>
    </zone>
And now we modify the zone so that when entering it there will be a restriction on the number of players that can be located within this zone.
Example:
XML:
<zone name="[primeval_peace1]" type="peace_zone" >
        <set name="restrictPlayerCapacityValue" val="10" />
        <set name="restrictPlayerCapacityBackLoc" val="-25464 172424 -4203" />
        <polygon> <!-- 원시의 섬 선착장(20_17) -->
            <coords loc="10408 -27395 -4290 -1290" />
            <coords loc="12065 -25334 -4290 -1290" />
            <coords loc="12223 -23159 -4290 -1290" />
            <coords loc="10424 -22340 -4290 -1290" />
            <coords loc="9566 -23131 -4290 -1290" />
            <coords loc="9290 -24261 -4290 -1290" />
        </polygon>
    </zone>
Where:
<set name="restrictPlayerCapacityValue" val="10" /> - The number of players who can enter, in your case, this limit is 10.
<set name="restrictPlayerCapacityBackLoc" val="-25464 172424 -4203" /> - Coordinate to which players will be sent that exceed the limit of the number of possible.
If you do not specify the restrictPlayerCapacityBackLoc parameter, players will be sent to the nearest city.
Restrictions do not apply to GM Players.

This option is made to limit the "zerg" on those or other game events like RB farm and etc.
 
Вверх