How to add no chat zone

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.
 
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.
i added to my custom zone event, we are inside the event and inside the zone, i alredy checked whit //zone_check, and nochat not works. we can chat normally. take a check @Deazer

Code:
    <zone name="[custom_tvt_zone]" type="battle_zone" >
        <set name="default" val="false" />
        <set name="enabled" val="false"/>
        <set name="NoChatZone" val="true" />
        <set name="NoChatZoneMinutes" val="10"/>
        <polygon>
            <coords loc="-85880 -19192 -5000 -1000" />
            <coords loc="-78600 -19192 -5000 -1000" />
            <coords loc="-78712 -13176 -5000 -1000" />
            <coords loc="-84856 -13048 -5000 -1000" />
        </polygon>
    </zone>

i need it to take banchat to all inside the event to prevent agreement and coordination in the event via all existing chats for players.
 
all of this type zone work only at real world or at Reflection, it doesn't work in instances
 
Back
Top