How to add no chat zone

Deazer

Head Developer
Staff member
Path: data/zone
Format: XML
To limit, we take 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 introduce restrictions:
XML:
    <zone name="[queen_ant_epic]" type="epic" >
        <set name="NoChatZone" val="true" />
        <set name="NoChatZoneMinutes" val="10"/>
        <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>
Where:
<set name="NoChatZone" val="true" /> - enable the restriction
<set name="NoChatZoneMinutes" val="10" /> - is restriction time at zone

On zone leave, all restrictions are automatically removed. Also, if player entered the zone with a chat ban and his time is equal to or less than NoChatZoneMinutes, the chat ban will be removed when he leaves the zone. No any limits when enter to zone for GM players.
 
Back
Top