How to create a zone limited by the number of members of the clan "AntiZerg zone"

Path: data/zone
Format: XML

To limit we take any zone, for example:
XML:
<zone name="[queen_ant_epic]" type="epic" >
        <polygon>
            <coords loc="-23176 185080 -6000 -5500" />
            <coords loc="-20104 185080 -6000 -5500" />
            <coords loc="-20104 177928 -6000 -5500" />
            <coords loc="-23176 177928 -6000 -5500" />
        </polygon>
    </zone>

Next, we need to add parameters to it that will add restrictions:
XML:
    <zone name="[queen_ant_epic]" type="epic" >
        <set name="restrictInsideClanCount" val="5" />
        <set name="restrictInsidePerClanPlayerCount" val="10" />
        <set name="restrictClanCapacityBackLoc" val="-25464 172424 -4203" />
        <set name="restrictInsideNonClanCount" val="0" />
        <set name="restrictClanLevelMin" val="0" />
        <polygon>
            <coords loc="-23176 185080 -6000 -5500" />
            <coords loc="-20104 185080 -6000 -5500" />
            <coords loc="-20104 177928 -6000 -5500" />
            <coords loc="-23176 177928 -6000 -5500" />
        </polygon>
    </zone>

If you want to restrict clans and their alliances then you use another parameter:
*Clans without ally can pass 10 ppls too.
XML:
    <zone name="[queen_ant_epic]" type="epic" >
        <set name="restrictInsideClanCount" val="5" />
        <set name="restrictInsidePerAlliancePlayerCount" val="10" />
        <set name="restrictClanCapacityBackLoc" val="-25464 172424 -4203" />
        <set name="restrictInsideNonClanCount" val="0" />
        <set name="restrictClanLevelMin" val="0" />
        <polygon>
            <coords loc="-23176 185080 -6000 -5500" />
            <coords loc="-20104 185080 -6000 -5500" />
            <coords loc="-20104 177928 -6000 -5500" />
            <coords loc="-23176 177928 -6000 -5500" />
        </polygon>
    </zone>


Description of parameters:
<set name="restrictInsideClanCount" val="5" /> - then the maximum number of clans within the zone
<set name="restrictClanCapacityBackLoc" val="-25464 172424 -4203" /> - the coordinate to which the participants will be sent that do not meet the conditions
<set name="restrictInsidePerClanPlayerCount" val="10" /> - then the maximum number of participants in one clan - members.
<set name="restrictClanLevelMin" val="0" /> - clan level limit in zone. 0 by default - any clan member can enter.
<set name="restrictInsideNonClanCount" val="0" /> - the number of players WITHOUT a clan who will be allowed into the zone. Default 0 - don't let anyone in without clan
AND (if you need limit ally members too)
<set name="restrictInsidePerAlliancePlayerCount" val="10" /> - then the maximum number of participants in one clan and players inside ally clans - members.
 
Last edited:
para manter as pessoas sem clã dentro da área você deve colocar
: <set name="restrictInsideNonClanCount" val="1500" />

Configurei para permitir a entrada de 2 membros de cada clã, para testar se estava funcionando corretamente, mas 4 entraram e ninguém foi expulso (mesmo com uma tag).
 
<zone name="[toi13]" type="fun" >
<set name="enabled" val="true" />
<set name="restrictInsideClanCount" val="10" />
<set name="restrictInsidePerAlliancePlayerCount" val="2" />
<set name="restrictClanCapacityBackLoc" val="81920 149188 -3472 0" />
<set name="restrictInsideNonClanCount" val="1" />
<set name="restrictClanLevelMin" val="0" />
<set name="uniqHwidLimit" val="2" />
<polygon>
<coords loc="124353 6936 7993 16301" />
<coords loc="102469 6481 7993 16301" />
<coords loc="101093 29467 7993 16301" />
<coords loc="124591 30447 7993 16301" />
</polygon>
</zone>
 
<set name="restrictInsidePerAlliancePlayerCount" val="2" />
In this case, I put that line in to test if I would get kicked out. I entered with 4 members of the same clan and they all stayed.
 
<set name="restrictInsidePerAlliancePlayerCount" val="2" />
In this case, I put that line in to test if I would get kicked out. I entered with 4 members of the same clan and they all stayed.
Coloca a restrição de 2 players no clan também e testa
 
Back
Top