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

Deazer

Head Developer
Staff member
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" />
        <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" />
        <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.
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:
if someone puts this setting there is a problem, anyone not in a clan can't enter!!
how can i prevent this from happening?
 
I'm writing it here so you don't forget, because you definitely have a lot to do since the tickets for the classic alone are over 200.
 
Back
Top