Control Room HF

Tarasiuk

Прославленный
Участник
Знаток письма
Старожил I степени
Сообщения
535
Розыгрыши
0
Репутация
30
Реакции
48
Баллы
1 418
Хроники
  1. Chaotic Throne: High Five
Исходники
Отсутствуют
Сборка
L2jdev, Over
Всем доброго времени суток, господа. Столкнулся с проблемой при настройке больших фортов, а именно в отключении необходимости взлома комнаты управления (Control Room), для их захвата игроками.

Идея в том, чтобы игроки могли захватывать большие форты убив только капитанов и генерала, без возни с комнатой управления и подбора паролей. Знаю, что на многих серверах эта функция реализована.

Пробовал "ковырять" файл PowerControlUnitInstance.java , но ничего не получилось, не силен в коде.
Пытался ище хмл ковырнуть, но кроме спавна ниче ненашол, думал слизать с малых фортов и просто убрать лишнее)
Может ктот помочь кому непадлу, буду благодарен :Noooo:
 
Решение
Если речь про неписей Главный Механизм на осаде, то насколкьо помню, достаточно в MainMachineInstance в onSpawn просто выставить вместо
Java:
siegeEvent.barrackAction(3, false);
вот это, что будет означать что при спавне механизм будет сразу же со статусом отключенного
Java:
siegeEvent.barrackAction(3, true);
если не изменяет память достаточно удалить все упоминания о спавне подобного нпс в самой осаде data\events\siege

сравни конфиги осад с фортом без рубки
 
если не изменяет память достаточно удалить все упоминания о спавне подобного нпс в самой осаде data\events\siege

сравни конфиги осад с фортом без рубки
Спасиб, залезу в xml удалю все что связано с Рубкой, но гномов можна оставить) отпишусь как попробую
 
data/events/sieges -> там спавны для осад прописаны.
Ваш КО
Удалил все строки лишниие, не изменял только "upgradeable_doors" у большого форта 6 ид дверей у малого 4, но так как небыло ид дверей рубки я нетрогал, но в результате ничего не помогло(
вот подробно
XML:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE list SYSTEM "events.dtd">
<list>
    <event id="112" name="Floran Fortress" impl="FortressSiege">
        <on_init>
            <init name="upgradeable_doors" />
            <init name="commander_doors" />
            <init name="enter_doors" />
            <init name="machine_doors" />
            <init name="siege_zones" />
            <init name="flag_zones" />
            <spawn name="flag_pole" />

            <spawn name="peace_commanders" />
        </on_init>
        <on_start>
            <despawn name="peace_commanders" />
            <!--Спавним гвардов-->
            <spawn name="default_guards" />
            <spawn name="guards_live_with_c_center" />
            <spawn name="siege_commanders" />
            <spawn name="out_power_units" />
            <spawn name="in_power_units" />
            <if name="old_owner">
                <spawn name="owner_flagdef"/>
                <spawn name="mercenary" />
            </if>
            <else>
                <spawn name="noowner_flagdef" />
            </else>
            <if name="reinforce_1">
                <spawn name="reinforce_1" />
            </if>
            <if name="reinforce_2">
                <spawn name="reinforce_2" />
            </if>
            <if name="dwarvens">
                <spawn name="dwarvens" />
            </if>
            <!--Обновляем двери-->
            <refresh name="enter_doors" />
            <refresh name="upgradeable_doors" />
            <refresh name="commander_doors" />
            <refresh name="machine_doors" />
            <active name="siege_zones" />
            <teleport_players id="attackers"/>
            <teleport_players id="spectators"/>
        </on_start>
        <on_stop>
            <if name="old_owner">
                <despawn name="owner_flagdef"/>
                <despawn name="mercenary" />
            </if>
            <else>
                <despawn name="noowner_flagdef" />
            </else>
            <despawn name="reinforce_1"/>
            <despawn name="reinforce_2"/>
            <despawn name="dwarvens"/>
            <despawn name="default_guards" />
            <despawn name="guards_live_with_c_center" />
            <despawn name="siege_commanders" />
            <despawn name="out_power_units" />
            <despawn name="in_power_units" />

            <!--Капитаны и менчант-->
            <spawn name="peace_commanders" />

            <!--Обновляем двери-->
            <refresh name="enter_doors" />
            <refresh name="upgradeable_doors" />
            <refresh name="commander_doors" />
            <refresh name="machine_doors" />
            <teleport_players id="spectators"/>
            <deactive name="siege_zones" />
        </on_stop>
        <on_time>
            <on time="-3600">
                <announce val="3600" />
            </on>
            <on time="-1800">
                <announce val="1800" />
            </on>
            <on time="-600"> <!--10 min to siege-->
                <announce val="600" />
                <stop name="registration" />
                <despawn name="merchant"/>
            </on>
            <on time="-5">
                <announce val="5" />
            </on>
            <on time="-4">
                <announce val="4" />
            </on>
            <on time="-3">
                <announce val="3" />
            </on>
            <on time="-2">
                <announce val="2" />
            </on>
            <on time="-1">
                <announce val="1" />
            </on>
            <on time="0">
                <start name="event" />
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="98">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="200">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="300">
                <give_item id="-300" count="31" />
            </on>
            <on time="310">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="403">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="512">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="596">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="600">
                <give_item id="-300" count="31" />
            </on>
            <on time="691">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="785">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="883">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="900">
                <give_item id="-300" count="31" />
            </on>
            <on time="978">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="1076">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="1178">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="1200">
                <give_item id="-300" count="31" />
            </on>
            <on time="1288">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="1381">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="1490">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="1500">
                <give_item id="-300" count="31" />
            </on>
            <on time="1574">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="1669">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="1763">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="1800">
                <give_item id="-300" count="31" />
            </on>
            <on time="1861">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="1956">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="2054">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="2100">
                <give_item id="-300" count="31" />
            </on>
            <on time="2156">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="2266">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="2359">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="2400">
                <give_item id="-300" count="31" />
            </on>
            <on time="2468">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="2552">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="2647">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="2700">
                <give_item id="-300" count="31" />
            </on>
            <on time="2741">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="2839">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="2934">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="3000">
                <give_item id="-300" count="31" />
            </on>
            <on time="3032">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="3134">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="3227">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="3300">
                <give_item id="-300" count="31" />
            </on>
            <on time="3320">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="3429">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="3513">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="3600">
                <stop name="event" />
            </on>
        </on_time>
        <objects name="merchant">
            <spawn_ex name="floran_fortress_peace_merchant" />
        </objects>
        <objects name="flag_pole">
            <static_object id="20220500" />
        </objects>
        <objects name="combat_flags">
            <combat_flag x="5342" y="149667" z="-2758" />
            <combat_flag x="5337" y="149759" z="-2758" />
            <combat_flag x="5338" y="149838" z="-2758" />
        </objects>
        <objects name="peace_commanders">
            <spawn_ex name="floran_fortress_peace_commanders" />
        </objects>
        <objects name="siege_commanders">
            <spawn_ex name="floran_fortress_siege_commanders" />
        </objects>
        <objects name="envoy">
            <spawn_ex name="floran_fortress_envoy" />
        </objects>
        <objects name="default_guards"> <!--дефольтные гварды спавнятся при любых условиях-->
            <spawn_ex name="floran_fortress_default_guards" />
        </objects>
        <objects name="guards_live_with_c_center"> <!--гварды которые будут стоят пока не вворвутся в командый центр-->
            <spawn_ex name="floran_fortress_live_with_c_center" />
        </objects>
        <objects name="noowner_flagdef"> <!--гварды охраняемые Флагполе, когда нету овнера-->
            <spawn_ex name="floran_fortress_noowner_flagdef" />
        </objects>
        <objects name="owner_flagdef"> <!--гварды охраняемые Флагполе, когда есть овнера-->
            <spawn_ex name="floran_fortress_owner_flagdef" />
        </objects>
        <objects name="dwarvens">
            <spawn_ex name="floran_fortress_gunner" />
        </objects>
        <objects name="reinforce_1">
            <spawn_ex name="floran_fortress_reinforce_1" />
        </objects>
        <objects name="reinforce_2">
            <spawn_ex name="floran_fortress_reinforce_2" />
        </objects>
        <objects name="enter_doors">
            <door id="20220021" />
            <door id="20220026" />
        </objects>
        <objects name="machine_doors">
            <door id="20220017" />
            <door id="20220018" />
        </objects>
        <objects name="upgradeable_doors">
            <door id="20220019" />
            <door id="20220020" />
            <door id="20220021" />
            <door id="20220026" />
            <door id="20220027" />
            <door id="20220028" />
        </objects>
        <objects name="commander_doors">
            <door id="20220022" />
            <door id="20220023" />
            <door id="20220024" />
            <door id="20220025" />
        </objects>
        <objects name="mercenary_points">
            <point x="11029" y="151068" z="-3296" />
            <point x="10420" y="151338" z="-3288" />
            <point x="9795" y="151380" z="-3304" />
            <point x="9305" y="151383" z="-3216" />
            <point x="8475" y="151377" z="-2912" />
            <point x="8001" y="151305" z="-2880" />
            <point x="7792" y="150861" z="-2888" />
            <point x="7509" y="150739" z="-2888" />
            <point x="6809" y="150746" z="-2888" />
            <point x="6361" y="149761" z="-2888" />
        </objects>
        <objects name="mercenary">
            <spawn_ex name="floran_fortress_mercenary" />
        </objects>
        <objects name="out_power_units">
            <spawn_ex name="floran_fortress_out_power_units" />
        </objects>
        <objects name="in_power_units">
            <spawn_ex name="floran_fortress_in_power_units" />
        </objects>
        <objects name="siege_zones">
            <zone name="[glu_di_fort_siege]" />
        </objects>
        <objects name="flag_zones">
            <zone name="[glu_di_fort_hq]" />
        </objects>
    </event>
</list>
XML:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE list SYSTEM "events.dtd">
<list>
    <event id="112" name="Floran Fortress" impl="FortressSiege">
        <on_init>
            <init name="upgradeable_doors" />
            <init name="commander_doors" />
            <init name="enter_doors" />
            <init name="siege_zones" />
            <init name="flag_zones" />
            <spawn name="flag_pole" />

            <spawn name="peace_commanders" />
        </on_init>
        <on_start>
            <despawn name="peace_commanders" />
            <!--Спавним гвардов-->
            <spawn name="default_guards" />
            <spawn name="guards_live_with_c_center" />
            <spawn name="siege_commanders" />
            <if name="old_owner">
                <spawn name="owner_flagdef"/>
                <spawn name="mercenary" />
            </if>
            <else>
                <spawn name="noowner_flagdef" />
            </else>
            <if name="reinforce_1">
                <spawn name="reinforce_1" />
            </if>
            <if name="reinforce_2">
                <spawn name="reinforce_2" />
            </if>
            <if name="dwarvens">
                <spawn name="dwarvens" />
            </if>
            <!--Обновляем двери-->
            <refresh name="upgradeable_doors" />
            <refresh name="commander_doors" />
            <active name="siege_zones" />
            <teleport_players id="attackers"/>
            <teleport_players id="spectators"/>
        </on_start>
        <on_stop>
            <if name="old_owner">
                <despawn name="owner_flagdef"/>
                <despawn name="mercenary" />
            </if>
            <else>
                <despawn name="noowner_flagdef" />
            </else>
            <despawn name="reinforce_1"/>
            <despawn name="reinforce_2"/>
            <despawn name="dwarvens"/>
            <despawn name="default_guards" />
            <despawn name="guards_live_with_c_center" />
            <despawn name="siege_commanders" />

            <!--Капитаны и менчант-->
            <spawn name="peace_commanders" />

            <!--Обновляем двери-->
            <refresh name="upgradeable_doors" />
            <refresh name="commander_doors" />
            <teleport_players id="spectators"/>
            <deactive name="siege_zones" />
        </on_stop>
        <on_time>
            <on time="-3600">
                <announce val="3600" />
            </on>
            <on time="-1800">
                <announce val="1800" />
            </on>
            <on time="-600"> <!--10 min to siege-->
                <announce val="600" />
                <stop name="registration" />
                <despawn name="merchant"/>
            </on>
            <on time="-5">
                <announce val="5" />
            </on>
            <on time="-4">
                <announce val="4" />
            </on>
            <on time="-3">
                <announce val="3" />
            </on>
            <on time="-2">
                <announce val="2" />
            </on>
            <on time="-1">
                <announce val="1" />
            </on>
            <on time="0">
                <start name="event" />
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="98">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="200">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="300">
                <give_item id="-300" count="31" />
            </on>
            <on time="310">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="403">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="512">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="596">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="600">
                <give_item id="-300" count="31" />
            </on>
            <on time="691">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="785">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="883">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="900">
                <give_item id="-300" count="31" />
            </on>
            <on time="978">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="1076">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="1178">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="1200">
                <give_item id="-300" count="31" />
            </on>
            <on time="1288">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="1381">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="1490">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="1500">
                <give_item id="-300" count="31" />
            </on>
            <on time="1574">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="1669">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="1763">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="1800">
                <give_item id="-300" count="31" />
            </on>
            <on time="1861">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="1956">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="2054">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="2100">
                <give_item id="-300" count="31" />
            </on>
            <on time="2156">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="2266">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="2359">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="2400">
                <give_item id="-300" count="31" />
            </on>
            <on time="2468">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="2552">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="2647">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="2700">
                <give_item id="-300" count="31" />
            </on>
            <on time="2741">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="2839">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="2934">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="3000">
                <give_item id="-300" count="31" />
            </on>
            <on time="3032">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="3134">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="3227">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="3300">
                <give_item id="-300" count="31" />
            </on>
            <on time="3320">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="3429">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="3513">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="3600">
                <stop name="event" />
            </on>
        </on_time>
        <objects name="merchant">
            <spawn_ex name="floran_fortress_peace_merchant" />
        </objects>
        <objects name="flag_pole">
            <static_object id="20220500" />
        </objects>
        <objects name="combat_flags">
            <combat_flag x="5342" y="149667" z="-2758" />
            <combat_flag x="5337" y="149759" z="-2758" />
            <combat_flag x="5338" y="149838" z="-2758" />
        </objects>
        <objects name="peace_commanders">
            <spawn_ex name="floran_fortress_peace_commanders" />
        </objects>
        <objects name="siege_commanders">
            <spawn_ex name="floran_fortress_siege_commanders" />
        </objects>
        <objects name="envoy">
            <spawn_ex name="floran_fortress_envoy" />
        </objects>
        <objects name="default_guards"> <!--дефольтные гварды спавнятся при любых условиях-->
            <spawn_ex name="floran_fortress_default_guards" />
        </objects>
        <objects name="guards_live_with_c_center"> <!--гварды которые будут стоят пока не вворвутся в командый центр-->
            <spawn_ex name="floran_fortress_live_with_c_center" />
        </objects>
        <objects name="noowner_flagdef"> <!--гварды охраняемые Флагполе, когда нету овнера-->
            <spawn_ex name="floran_fortress_noowner_flagdef" />
        </objects>
        <objects name="owner_flagdef"> <!--гварды охраняемые Флагполе, когда есть овнера-->
            <spawn_ex name="floran_fortress_owner_flagdef" />
        </objects>
        <objects name="dwarvens">
            <spawn_ex name="floran_fortress_gunner" />
        </objects>
        <objects name="reinforce_1">
            <spawn_ex name="floran_fortress_reinforce_1" />
        </objects>
        <objects name="reinforce_2">
            <spawn_ex name="floran_fortress_reinforce_2" />
        </objects>
        <objects name="enter_doors">
            <door id="20220021" />
            <door id="20220026" />
        </objects>
        <objects name="upgradeable_doors">
            <door id="20220019" />
            <door id="20220020" />
            <door id="20220021" />
            <door id="20220026" />
            <door id="20220027" />
            <door id="20220028" />
        </objects>
        <objects name="commander_doors">
            <door id="20220022" />
            <door id="20220023" />
            <door id="20220024" />
            <door id="20220025" />
        </objects>
        <objects name="mercenary_points">
            <point x="11029" y="151068" z="-3296" />
            <point x="10420" y="151338" z="-3288" />
            <point x="9795" y="151380" z="-3304" />
            <point x="9305" y="151383" z="-3216" />
            <point x="8475" y="151377" z="-2912" />
            <point x="8001" y="151305" z="-2880" />
            <point x="7792" y="150861" z="-2888" />
            <point x="7509" y="150739" z="-2888" />
            <point x="6809" y="150746" z="-2888" />
            <point x="6361" y="149761" z="-2888" />
        </objects>
        <objects name="mercenary">
            <spawn_ex name="floran_fortress_mercenary" />
        </objects>
        <objects name="siege_zones">
            <zone name="[glu_di_fort_siege]" />
        </objects>
        <objects name="flag_zones">
            <zone name="[glu_di_fort_hq]" />
        </objects>
    </event>
</list>
XML:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE list SYSTEM "events.dtd">
<list>
    <event id="119" name="Aaru Fortress" impl="FortressSiege">
        <on_init>
            <init name="upgradeable_doors" />
            <init name="commander_doors" />
            <init name="enter_doors" />
            <init name="siege_zones" />
            <init name="flag_zones" />
            <spawn name="flag_pole" />

            <spawn name="peace_commanders" />
        </on_init>
        <on_start>
            <despawn name="peace_commanders" />
            <!--Спавним гвардов-->
            <spawn name="default_guards" />
            <spawn name="guards_live_with_c_center" />
            <spawn name="siege_commanders" />
            <if name="old_owner">
                <spawn name="owner_flagdef"/>
                <spawn name="mercenary" />
            </if>
            <else>
                <spawn name="noowner_flagdef" />
            </else>
            <if name="reinforce_1">
                <spawn name="reinforce_1" />
            </if>
            <if name="reinforce_2">
                <spawn name="reinforce_2" />
            </if>
            <if name="dwarvens">
                <spawn name="dwarvens" />
            </if>
            <!--Обновляем двери-->
            <refresh name="upgradeable_doors" />
            <refresh name="commander_doors" />
            <active name="siege_zones" />
            <teleport_players id="attackers"/>
            <teleport_players id="spectators"/>
        </on_start>
        <on_stop>
            <if name="old_owner">
                <despawn name="owner_flagdef"/>
                <despawn name="mercenary" />
            </if>
            <else>
                <despawn name="noowner_flagdef" />
            </else>
            <despawn name="reinforce_1"/>
            <despawn name="reinforce_2"/>
            <despawn name="dwarvens"/>
            <despawn name="default_guards" />
            <despawn name="guards_live_with_c_center" />
            <despawn name="siege_commanders" />

            <!--Капитаны и менчант-->
            <spawn name="peace_commanders" />

            <!--Обновляем двери-->
            <refresh name="upgradeable_doors" />
            <refresh name="commander_doors" />
            <teleport_players id="spectators"/>
            <deactive name="siege_zones" />
        </on_stop>
        <on_time>
            <on time="-3600">
                <announce val="3600" />
            </on>
            <on time="-1800">
                <announce val="1800" />
            </on>
            <on time="-600"> <!--10 min to siege-->
                <announce val="600" />
                <stop name="registration" />
                <despawn name="merchant"/>
            </on>
            <on time="-5">
                <announce val="5" />
            </on>
            <on time="-4">
                <announce val="4" />
            </on>
            <on time="-3">
                <announce val="3" />
            </on>
            <on time="-2">
                <announce val="2" />
            </on>
            <on time="-1">
                <announce val="1" />
            </on>
            <on time="0">
                <start name="event" />
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="98">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="200">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="300">
                <give_item id="-300" count="31" />
            </on>
            <on time="310">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="403">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="512">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="596">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="600">
                <give_item id="-300" count="31" />
            </on>
            <on time="691">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="785">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="883">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="900">
                <give_item id="-300" count="31" />
            </on>
            <on time="978">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="1076">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="1178">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="1200">
                <give_item id="-300" count="31" />
            </on>
            <on time="1288">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="1381">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="1490">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="1500">
                <give_item id="-300" count="31" />
            </on>
            <on time="1574">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="1669">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="1763">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="1800">
                <give_item id="-300" count="31" />
            </on>
            <on time="1861">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="1956">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="2054">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="2100">
                <give_item id="-300" count="31" />
            </on>
            <on time="2156">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="2266">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="2359">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="2400">
                <give_item id="-300" count="31" />
            </on>
            <on time="2468">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="2552">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="2647">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="2700">
                <give_item id="-300" count="31" />
            </on>
            <on time="2741">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="2839">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="2934">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="3000">
                <give_item id="-300" count="31" />
            </on>
            <on time="3032">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="3134">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="3227">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="3300">
                <give_item id="-300" count="31" />
            </on>
            <on time="3320">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="3429">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="3513">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="3600">
                <stop name="event" />
            </on>
        </on_time>
        <objects name="merchant">
            <spawn_ex name="aaru_fortress_peace_merchant" />
        </objects>
        <objects name="flag_pole">
            <static_object id="22230500" />
        </objects>
        <objects name="combat_flags">
            <combat_flag x="72891" y="186169" z="-2450" />
            <combat_flag x="72974" y="186214" z="-2450" />
            <combat_flag x="73046" y="186258" z="-2450" />
        </objects>
        <objects name="peace_commanders">
            <spawn_ex name="aaru_fortress_peace_commanders" />
        </objects>
        <objects name="siege_commanders">
            <spawn_ex name="aaru_fortress_siege_commanders" />
        </objects>
        <objects name="envoy">
            <spawn_ex name="aaru_fortress_envoy" />
        </objects>
        <objects name="default_guards"> <!--дефольтные гварды спавнятся при любых условиях-->
            <spawn_ex name="aaru_fortress_default_guards" />
        </objects>
        <objects name="guards_live_with_c_center"> <!--гварды которые будут стоят пока не вворвутся в командый центр-->
            <spawn_ex name="aaru_fortress_live_with_c_center" />
        </objects>
        <objects name="noowner_flagdef"> <!--гварды охраняемые Флагполе, когда нету овнера-->
            <spawn_ex name="aaru_fortress_noowner_flagdef" />
        </objects>
        <objects name="owner_flagdef"> <!--гварды охраняемые Флагполе, когда есть овнера-->
            <spawn_ex name="aaru_fortress_owner_flagdef" />
        </objects>
        <objects name="dwarvens">
            <spawn_ex name="aaru_fortress_gunner" />
        </objects>
        <objects name="reinforce_1">
            <spawn_ex name="aaru_fortress_reinforce_1" />
        </objects>
        <objects name="reinforce_2">
            <spawn_ex name="aaru_fortress_reinforce_2" />
        </objects>
        <objects name="enter_doors">
            <door id="22230001" />
            <door id="22230008" />
        </objects>
        <objects name="upgradeable_doors">
            <door id="22230001" />
            <door id="22230008" />
            <door id="22230003" />
            <door id="22230002" />
        </objects>
        <objects name="commander_doors">
            <door id="22230004" />
            <door id="22230005" />
            <door id="22230006" />
            <door id="22230007" />
        </objects>
        <objects name="mercenary_points">
            <point x="72637" y="188462" z="-2584" />
            <point x="72662" y="188248" z="-2584" />
            <point x="72843" y="188053" z="-2584" />
            <point x="72962" y="187937" z="-2584" />
            <point x="73126" y="187676" z="-2584" />
            <point x="73213" y="187450" z="-2584" />
            <point x="73137" y="187219" z="-2584" />
            <point x="72939" y="187027" z="-2584" />
            <point x="72652" y="186758" z="-2584" />
            <point x="72713" y="186612" z="-2584" />
        </objects>
        <objects name="mercenary">
            <spawn_ex name="aaru_fortress_mercenary" />
        </objects>
        <objects name="siege_zones">
            <zone name="[inna_gi_fort_siege]" />
        </objects>
        <objects name="flag_zones">
            <zone name="[inna_gi_fort_hq]" />
        </objects>
    </event>
</list>

Может оно лупит проверку гдето в скриптах? если не офнул рубку значит ничего незделаешь, потомучто открывал карту пишет что захвачены казармы 4\5
 
Удалил все строки лишниие, не изменял только "upgradeable_doors" у большого форта 6 ид дверей у малого 4, но так как небыло ид дверей рубки я нетрогал, но в результате ничего не помогло(
вот подробно
XML:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE list SYSTEM "events.dtd">
<list>
    <event id="112" name="Floran Fortress" impl="FortressSiege">
        <on_init>
            <init name="upgradeable_doors" />
            <init name="commander_doors" />
            <init name="enter_doors" />
            <init name="machine_doors" />
            <init name="siege_zones" />
            <init name="flag_zones" />
            <spawn name="flag_pole" />

            <spawn name="peace_commanders" />
        </on_init>
        <on_start>
            <despawn name="peace_commanders" />
            <!--Спавним гвардов-->
            <spawn name="default_guards" />
            <spawn name="guards_live_with_c_center" />
            <spawn name="siege_commanders" />
            <spawn name="out_power_units" />
            <spawn name="in_power_units" />
            <if name="old_owner">
                <spawn name="owner_flagdef"/>
                <spawn name="mercenary" />
            </if>
            <else>
                <spawn name="noowner_flagdef" />
            </else>
            <if name="reinforce_1">
                <spawn name="reinforce_1" />
            </if>
            <if name="reinforce_2">
                <spawn name="reinforce_2" />
            </if>
            <if name="dwarvens">
                <spawn name="dwarvens" />
            </if>
            <!--Обновляем двери-->
            <refresh name="enter_doors" />
            <refresh name="upgradeable_doors" />
            <refresh name="commander_doors" />
            <refresh name="machine_doors" />
            <active name="siege_zones" />
            <teleport_players id="attackers"/>
            <teleport_players id="spectators"/>
        </on_start>
        <on_stop>
            <if name="old_owner">
                <despawn name="owner_flagdef"/>
                <despawn name="mercenary" />
            </if>
            <else>
                <despawn name="noowner_flagdef" />
            </else>
            <despawn name="reinforce_1"/>
            <despawn name="reinforce_2"/>
            <despawn name="dwarvens"/>
            <despawn name="default_guards" />
            <despawn name="guards_live_with_c_center" />
            <despawn name="siege_commanders" />
            <despawn name="out_power_units" />
            <despawn name="in_power_units" />

            <!--Капитаны и менчант-->
            <spawn name="peace_commanders" />

            <!--Обновляем двери-->
            <refresh name="enter_doors" />
            <refresh name="upgradeable_doors" />
            <refresh name="commander_doors" />
            <refresh name="machine_doors" />
            <teleport_players id="spectators"/>
            <deactive name="siege_zones" />
        </on_stop>
        <on_time>
            <on time="-3600">
                <announce val="3600" />
            </on>
            <on time="-1800">
                <announce val="1800" />
            </on>
            <on time="-600"> <!--10 min to siege-->
                <announce val="600" />
                <stop name="registration" />
                <despawn name="merchant"/>
            </on>
            <on time="-5">
                <announce val="5" />
            </on>
            <on time="-4">
                <announce val="4" />
            </on>
            <on time="-3">
                <announce val="3" />
            </on>
            <on time="-2">
                <announce val="2" />
            </on>
            <on time="-1">
                <announce val="1" />
            </on>
            <on time="0">
                <start name="event" />
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="98">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="200">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="300">
                <give_item id="-300" count="31" />
            </on>
            <on time="310">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="403">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="512">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="596">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="600">
                <give_item id="-300" count="31" />
            </on>
            <on time="691">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="785">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="883">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="900">
                <give_item id="-300" count="31" />
            </on>
            <on time="978">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="1076">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="1178">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="1200">
                <give_item id="-300" count="31" />
            </on>
            <on time="1288">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="1381">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="1490">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="1500">
                <give_item id="-300" count="31" />
            </on>
            <on time="1574">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="1669">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="1763">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="1800">
                <give_item id="-300" count="31" />
            </on>
            <on time="1861">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="1956">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="2054">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="2100">
                <give_item id="-300" count="31" />
            </on>
            <on time="2156">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="2266">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="2359">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="2400">
                <give_item id="-300" count="31" />
            </on>
            <on time="2468">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="2552">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="2647">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="2700">
                <give_item id="-300" count="31" />
            </on>
            <on time="2741">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="2839">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="2934">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="3000">
                <give_item id="-300" count="31" />
            </on>
            <on time="3032">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="3134">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="3227">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="3300">
                <give_item id="-300" count="31" />
            </on>
            <on time="3320">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="3429">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="3513">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="3600">
                <stop name="event" />
            </on>
        </on_time>
        <objects name="merchant">
            <spawn_ex name="floran_fortress_peace_merchant" />
        </objects>
        <objects name="flag_pole">
            <static_object id="20220500" />
        </objects>
        <objects name="combat_flags">
            <combat_flag x="5342" y="149667" z="-2758" />
            <combat_flag x="5337" y="149759" z="-2758" />
            <combat_flag x="5338" y="149838" z="-2758" />
        </objects>
        <objects name="peace_commanders">
            <spawn_ex name="floran_fortress_peace_commanders" />
        </objects>
        <objects name="siege_commanders">
            <spawn_ex name="floran_fortress_siege_commanders" />
        </objects>
        <objects name="envoy">
            <spawn_ex name="floran_fortress_envoy" />
        </objects>
        <objects name="default_guards"> <!--дефольтные гварды спавнятся при любых условиях-->
            <spawn_ex name="floran_fortress_default_guards" />
        </objects>
        <objects name="guards_live_with_c_center"> <!--гварды которые будут стоят пока не вворвутся в командый центр-->
            <spawn_ex name="floran_fortress_live_with_c_center" />
        </objects>
        <objects name="noowner_flagdef"> <!--гварды охраняемые Флагполе, когда нету овнера-->
            <spawn_ex name="floran_fortress_noowner_flagdef" />
        </objects>
        <objects name="owner_flagdef"> <!--гварды охраняемые Флагполе, когда есть овнера-->
            <spawn_ex name="floran_fortress_owner_flagdef" />
        </objects>
        <objects name="dwarvens">
            <spawn_ex name="floran_fortress_gunner" />
        </objects>
        <objects name="reinforce_1">
            <spawn_ex name="floran_fortress_reinforce_1" />
        </objects>
        <objects name="reinforce_2">
            <spawn_ex name="floran_fortress_reinforce_2" />
        </objects>
        <objects name="enter_doors">
            <door id="20220021" />
            <door id="20220026" />
        </objects>
        <objects name="machine_doors">
            <door id="20220017" />
            <door id="20220018" />
        </objects>
        <objects name="upgradeable_doors">
            <door id="20220019" />
            <door id="20220020" />
            <door id="20220021" />
            <door id="20220026" />
            <door id="20220027" />
            <door id="20220028" />
        </objects>
        <objects name="commander_doors">
            <door id="20220022" />
            <door id="20220023" />
            <door id="20220024" />
            <door id="20220025" />
        </objects>
        <objects name="mercenary_points">
            <point x="11029" y="151068" z="-3296" />
            <point x="10420" y="151338" z="-3288" />
            <point x="9795" y="151380" z="-3304" />
            <point x="9305" y="151383" z="-3216" />
            <point x="8475" y="151377" z="-2912" />
            <point x="8001" y="151305" z="-2880" />
            <point x="7792" y="150861" z="-2888" />
            <point x="7509" y="150739" z="-2888" />
            <point x="6809" y="150746" z="-2888" />
            <point x="6361" y="149761" z="-2888" />
        </objects>
        <objects name="mercenary">
            <spawn_ex name="floran_fortress_mercenary" />
        </objects>
        <objects name="out_power_units">
            <spawn_ex name="floran_fortress_out_power_units" />
        </objects>
        <objects name="in_power_units">
            <spawn_ex name="floran_fortress_in_power_units" />
        </objects>
        <objects name="siege_zones">
            <zone name="[glu_di_fort_siege]" />
        </objects>
        <objects name="flag_zones">
            <zone name="[glu_di_fort_hq]" />
        </objects>
    </event>
</list>
XML:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE list SYSTEM "events.dtd">
<list>
    <event id="112" name="Floran Fortress" impl="FortressSiege">
        <on_init>
            <init name="upgradeable_doors" />
            <init name="commander_doors" />
            <init name="enter_doors" />
            <init name="siege_zones" />
            <init name="flag_zones" />
            <spawn name="flag_pole" />

            <spawn name="peace_commanders" />
        </on_init>
        <on_start>
            <despawn name="peace_commanders" />
            <!--Спавним гвардов-->
            <spawn name="default_guards" />
            <spawn name="guards_live_with_c_center" />
            <spawn name="siege_commanders" />
            <if name="old_owner">
                <spawn name="owner_flagdef"/>
                <spawn name="mercenary" />
            </if>
            <else>
                <spawn name="noowner_flagdef" />
            </else>
            <if name="reinforce_1">
                <spawn name="reinforce_1" />
            </if>
            <if name="reinforce_2">
                <spawn name="reinforce_2" />
            </if>
            <if name="dwarvens">
                <spawn name="dwarvens" />
            </if>
            <!--Обновляем двери-->
            <refresh name="upgradeable_doors" />
            <refresh name="commander_doors" />
            <active name="siege_zones" />
            <teleport_players id="attackers"/>
            <teleport_players id="spectators"/>
        </on_start>
        <on_stop>
            <if name="old_owner">
                <despawn name="owner_flagdef"/>
                <despawn name="mercenary" />
            </if>
            <else>
                <despawn name="noowner_flagdef" />
            </else>
            <despawn name="reinforce_1"/>
            <despawn name="reinforce_2"/>
            <despawn name="dwarvens"/>
            <despawn name="default_guards" />
            <despawn name="guards_live_with_c_center" />
            <despawn name="siege_commanders" />

            <!--Капитаны и менчант-->
            <spawn name="peace_commanders" />

            <!--Обновляем двери-->
            <refresh name="upgradeable_doors" />
            <refresh name="commander_doors" />
            <teleport_players id="spectators"/>
            <deactive name="siege_zones" />
        </on_stop>
        <on_time>
            <on time="-3600">
                <announce val="3600" />
            </on>
            <on time="-1800">
                <announce val="1800" />
            </on>
            <on time="-600"> <!--10 min to siege-->
                <announce val="600" />
                <stop name="registration" />
                <despawn name="merchant"/>
            </on>
            <on time="-5">
                <announce val="5" />
            </on>
            <on time="-4">
                <announce val="4" />
            </on>
            <on time="-3">
                <announce val="3" />
            </on>
            <on time="-2">
                <announce val="2" />
            </on>
            <on time="-1">
                <announce val="1" />
            </on>
            <on time="0">
                <start name="event" />
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="98">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="200">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="300">
                <give_item id="-300" count="31" />
            </on>
            <on time="310">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="403">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="512">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="596">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="600">
                <give_item id="-300" count="31" />
            </on>
            <on time="691">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="785">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="883">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="900">
                <give_item id="-300" count="31" />
            </on>
            <on time="978">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="1076">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="1178">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="1200">
                <give_item id="-300" count="31" />
            </on>
            <on time="1288">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="1381">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="1490">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="1500">
                <give_item id="-300" count="31" />
            </on>
            <on time="1574">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="1669">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="1763">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="1800">
                <give_item id="-300" count="31" />
            </on>
            <on time="1861">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="1956">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="2054">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="2100">
                <give_item id="-300" count="31" />
            </on>
            <on time="2156">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="2266">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="2359">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="2400">
                <give_item id="-300" count="31" />
            </on>
            <on time="2468">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="2552">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="2647">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="2700">
                <give_item id="-300" count="31" />
            </on>
            <on time="2741">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="2839">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="2934">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="3000">
                <give_item id="-300" count="31" />
            </on>
            <on time="3032">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="3134">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="3227">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="3300">
                <give_item id="-300" count="31" />
            </on>
            <on time="3320">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="3429">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="3513">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="3600">
                <stop name="event" />
            </on>
        </on_time>
        <objects name="merchant">
            <spawn_ex name="floran_fortress_peace_merchant" />
        </objects>
        <objects name="flag_pole">
            <static_object id="20220500" />
        </objects>
        <objects name="combat_flags">
            <combat_flag x="5342" y="149667" z="-2758" />
            <combat_flag x="5337" y="149759" z="-2758" />
            <combat_flag x="5338" y="149838" z="-2758" />
        </objects>
        <objects name="peace_commanders">
            <spawn_ex name="floran_fortress_peace_commanders" />
        </objects>
        <objects name="siege_commanders">
            <spawn_ex name="floran_fortress_siege_commanders" />
        </objects>
        <objects name="envoy">
            <spawn_ex name="floran_fortress_envoy" />
        </objects>
        <objects name="default_guards"> <!--дефольтные гварды спавнятся при любых условиях-->
            <spawn_ex name="floran_fortress_default_guards" />
        </objects>
        <objects name="guards_live_with_c_center"> <!--гварды которые будут стоят пока не вворвутся в командый центр-->
            <spawn_ex name="floran_fortress_live_with_c_center" />
        </objects>
        <objects name="noowner_flagdef"> <!--гварды охраняемые Флагполе, когда нету овнера-->
            <spawn_ex name="floran_fortress_noowner_flagdef" />
        </objects>
        <objects name="owner_flagdef"> <!--гварды охраняемые Флагполе, когда есть овнера-->
            <spawn_ex name="floran_fortress_owner_flagdef" />
        </objects>
        <objects name="dwarvens">
            <spawn_ex name="floran_fortress_gunner" />
        </objects>
        <objects name="reinforce_1">
            <spawn_ex name="floran_fortress_reinforce_1" />
        </objects>
        <objects name="reinforce_2">
            <spawn_ex name="floran_fortress_reinforce_2" />
        </objects>
        <objects name="enter_doors">
            <door id="20220021" />
            <door id="20220026" />
        </objects>
        <objects name="upgradeable_doors">
            <door id="20220019" />
            <door id="20220020" />
            <door id="20220021" />
            <door id="20220026" />
            <door id="20220027" />
            <door id="20220028" />
        </objects>
        <objects name="commander_doors">
            <door id="20220022" />
            <door id="20220023" />
            <door id="20220024" />
            <door id="20220025" />
        </objects>
        <objects name="mercenary_points">
            <point x="11029" y="151068" z="-3296" />
            <point x="10420" y="151338" z="-3288" />
            <point x="9795" y="151380" z="-3304" />
            <point x="9305" y="151383" z="-3216" />
            <point x="8475" y="151377" z="-2912" />
            <point x="8001" y="151305" z="-2880" />
            <point x="7792" y="150861" z="-2888" />
            <point x="7509" y="150739" z="-2888" />
            <point x="6809" y="150746" z="-2888" />
            <point x="6361" y="149761" z="-2888" />
        </objects>
        <objects name="mercenary">
            <spawn_ex name="floran_fortress_mercenary" />
        </objects>
        <objects name="siege_zones">
            <zone name="[glu_di_fort_siege]" />
        </objects>
        <objects name="flag_zones">
            <zone name="[glu_di_fort_hq]" />
        </objects>
    </event>
</list>
XML:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE list SYSTEM "events.dtd">
<list>
    <event id="119" name="Aaru Fortress" impl="FortressSiege">
        <on_init>
            <init name="upgradeable_doors" />
            <init name="commander_doors" />
            <init name="enter_doors" />
            <init name="siege_zones" />
            <init name="flag_zones" />
            <spawn name="flag_pole" />

            <spawn name="peace_commanders" />
        </on_init>
        <on_start>
            <despawn name="peace_commanders" />
            <!--Спавним гвардов-->
            <spawn name="default_guards" />
            <spawn name="guards_live_with_c_center" />
            <spawn name="siege_commanders" />
            <if name="old_owner">
                <spawn name="owner_flagdef"/>
                <spawn name="mercenary" />
            </if>
            <else>
                <spawn name="noowner_flagdef" />
            </else>
            <if name="reinforce_1">
                <spawn name="reinforce_1" />
            </if>
            <if name="reinforce_2">
                <spawn name="reinforce_2" />
            </if>
            <if name="dwarvens">
                <spawn name="dwarvens" />
            </if>
            <!--Обновляем двери-->
            <refresh name="upgradeable_doors" />
            <refresh name="commander_doors" />
            <active name="siege_zones" />
            <teleport_players id="attackers"/>
            <teleport_players id="spectators"/>
        </on_start>
        <on_stop>
            <if name="old_owner">
                <despawn name="owner_flagdef"/>
                <despawn name="mercenary" />
            </if>
            <else>
                <despawn name="noowner_flagdef" />
            </else>
            <despawn name="reinforce_1"/>
            <despawn name="reinforce_2"/>
            <despawn name="dwarvens"/>
            <despawn name="default_guards" />
            <despawn name="guards_live_with_c_center" />
            <despawn name="siege_commanders" />

            <!--Капитаны и менчант-->
            <spawn name="peace_commanders" />

            <!--Обновляем двери-->
            <refresh name="upgradeable_doors" />
            <refresh name="commander_doors" />
            <teleport_players id="spectators"/>
            <deactive name="siege_zones" />
        </on_stop>
        <on_time>
            <on time="-3600">
                <announce val="3600" />
            </on>
            <on time="-1800">
                <announce val="1800" />
            </on>
            <on time="-600"> <!--10 min to siege-->
                <announce val="600" />
                <stop name="registration" />
                <despawn name="merchant"/>
            </on>
            <on time="-5">
                <announce val="5" />
            </on>
            <on time="-4">
                <announce val="4" />
            </on>
            <on time="-3">
                <announce val="3" />
            </on>
            <on time="-2">
                <announce val="2" />
            </on>
            <on time="-1">
                <announce val="1" />
            </on>
            <on time="0">
                <start name="event" />
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="98">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="200">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="300">
                <give_item id="-300" count="31" />
            </on>
            <on time="310">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="403">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="512">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="596">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="600">
                <give_item id="-300" count="31" />
            </on>
            <on time="691">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="785">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="883">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="900">
                <give_item id="-300" count="31" />
            </on>
            <on time="978">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="1076">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="1178">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="1200">
                <give_item id="-300" count="31" />
            </on>
            <on time="1288">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="1381">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="1490">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="1500">
                <give_item id="-300" count="31" />
            </on>
            <on time="1574">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="1669">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="1763">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="1800">
                <give_item id="-300" count="31" />
            </on>
            <on time="1861">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="1956">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="2054">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="2100">
                <give_item id="-300" count="31" />
            </on>
            <on time="2156">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="2266">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="2359">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="2400">
                <give_item id="-300" count="31" />
            </on>
            <on time="2468">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="2552">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="2647">
                <play_sound type="SOUND" range="-1" sound="NS12_S01" />
            </on>
            <on time="2700">
                <give_item id="-300" count="31" />
            </on>
            <on time="2741">
                <play_sound type="SOUND" range="-1" sound="NS18_F" />
            </on>
            <on time="2839">
                <play_sound type="SOUND" range="-1" sound="NS02_S01" />
            </on>
            <on time="2934">
                <play_sound type="SOUND" range="-1" sound="NS20_F" />
            </on>
            <on time="3000">
                <give_item id="-300" count="31" />
            </on>
            <on time="3032">
                <play_sound type="SOUND" range="-1" sound="NB02_F" />
            </on>
            <on time="3134">
                <play_sound type="SOUND" range="-1" sound="NS19_S01" />
            </on>
            <on time="3227">
                <play_sound type="SOUND" range="-1" sound="NS12_F" />
            </on>
            <on time="3300">
                <give_item id="-300" count="31" />
            </on>
            <on time="3320">
                <play_sound type="SOUND" range="-1" sound="NS19_F" />
            </on>
            <on time="3429">
                <play_sound type="SOUND" range="-1" sound="NS18_S01" />
            </on>
            <on time="3513">
                <play_sound type="SOUND" range="-1" sound="NS02_F" />
            </on>
            <on time="3600">
                <stop name="event" />
            </on>
        </on_time>
        <objects name="merchant">
            <spawn_ex name="aaru_fortress_peace_merchant" />
        </objects>
        <objects name="flag_pole">
            <static_object id="22230500" />
        </objects>
        <objects name="combat_flags">
            <combat_flag x="72891" y="186169" z="-2450" />
            <combat_flag x="72974" y="186214" z="-2450" />
            <combat_flag x="73046" y="186258" z="-2450" />
        </objects>
        <objects name="peace_commanders">
            <spawn_ex name="aaru_fortress_peace_commanders" />
        </objects>
        <objects name="siege_commanders">
            <spawn_ex name="aaru_fortress_siege_commanders" />
        </objects>
        <objects name="envoy">
            <spawn_ex name="aaru_fortress_envoy" />
        </objects>
        <objects name="default_guards"> <!--дефольтные гварды спавнятся при любых условиях-->
            <spawn_ex name="aaru_fortress_default_guards" />
        </objects>
        <objects name="guards_live_with_c_center"> <!--гварды которые будут стоят пока не вворвутся в командый центр-->
            <spawn_ex name="aaru_fortress_live_with_c_center" />
        </objects>
        <objects name="noowner_flagdef"> <!--гварды охраняемые Флагполе, когда нету овнера-->
            <spawn_ex name="aaru_fortress_noowner_flagdef" />
        </objects>
        <objects name="owner_flagdef"> <!--гварды охраняемые Флагполе, когда есть овнера-->
            <spawn_ex name="aaru_fortress_owner_flagdef" />
        </objects>
        <objects name="dwarvens">
            <spawn_ex name="aaru_fortress_gunner" />
        </objects>
        <objects name="reinforce_1">
            <spawn_ex name="aaru_fortress_reinforce_1" />
        </objects>
        <objects name="reinforce_2">
            <spawn_ex name="aaru_fortress_reinforce_2" />
        </objects>
        <objects name="enter_doors">
            <door id="22230001" />
            <door id="22230008" />
        </objects>
        <objects name="upgradeable_doors">
            <door id="22230001" />
            <door id="22230008" />
            <door id="22230003" />
            <door id="22230002" />
        </objects>
        <objects name="commander_doors">
            <door id="22230004" />
            <door id="22230005" />
            <door id="22230006" />
            <door id="22230007" />
        </objects>
        <objects name="mercenary_points">
            <point x="72637" y="188462" z="-2584" />
            <point x="72662" y="188248" z="-2584" />
            <point x="72843" y="188053" z="-2584" />
            <point x="72962" y="187937" z="-2584" />
            <point x="73126" y="187676" z="-2584" />
            <point x="73213" y="187450" z="-2584" />
            <point x="73137" y="187219" z="-2584" />
            <point x="72939" y="187027" z="-2584" />
            <point x="72652" y="186758" z="-2584" />
            <point x="72713" y="186612" z="-2584" />
        </objects>
        <objects name="mercenary">
            <spawn_ex name="aaru_fortress_mercenary" />
        </objects>
        <objects name="siege_zones">
            <zone name="[inna_gi_fort_siege]" />
        </objects>
        <objects name="flag_zones">
            <zone name="[inna_gi_fort_hq]" />
        </objects>
    </event>
</list>
Дак не только это править. Тем более дварфы все еще отбиваются. По идее всё завязано на скрипте FortressSiegeEvent и остальное раскидано в хмл.
 
Последнее редактирование:
Дак не только это править. Тем более дварфы все еще отбиваются. По идее всё завязано на скрипте FortressSiegeEvent и остальное раскидано в хмл.
Еххх, ище б знать что править) вроде xml аналогичен малому форту, недумал что укроме убирания лишнего что нибуть ище править, или ви имеете ввиду скрипт? FortressSiegeEvent
Дварфи отбиваются мб потомучто я неубрал их со спавна
 
Дак не только это править. Тем более дварфы все еще отбиваются. По идее всё завязано на скрипте FortressSiegeEvent и остальное раскидано в хмл.
Разве в скрипте FortressSiegeEvent не только старт ивента?
 
Если речь про неписей Главный Механизм на осаде, то насколкьо помню, достаточно в MainMachineInstance в onSpawn просто выставить вместо
Java:
siegeEvent.barrackAction(3, false);
вот это, что будет означать что при спавне механизм будет сразу же со статусом отключенного
Java:
siegeEvent.barrackAction(3, true);
 
Решение
Если речь про неписей Главный Механизм на осаде, то насколкьо помню, достаточно в MainMachineInstance в onSpawn просто выставить вместо
Java:
siegeEvent.barrackAction(3, false);
вот это, что будет означать что при спавне механизм будет сразу же со статусом отключенного
Java:
siegeEvent.barrackAction(3, true);
спасиб, буду дома попробую, отпишусь.
p.s. почему у вас барака 3 а не 4?)
 
Назад
Сверху Снизу