<?xml version="1.0" encoding="windows-1251"?>

<quests>

  <!-- //////////////////// after_exams //////////////////// -->
  <after_exams enabled_sub_quests="talk">

    <enable_condition>
      <have_mark mark="exam3_complete" />
    </enable_condition>

    <sub_quests>

      <!-- talk -->
      <talk holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="pirate_leader"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="pirate_leader"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="pirate_leader"
          />
          <phrase
            talker="hero"
          />
        </dialog>
        <actions>
          <set_quest_status status="done" />
          <disable_sub_quest name="talk" />
        </actions>
      </talk>

    </sub_quests>

  </after_exams>

  <!-- //////////////////// afterparty //////////////////// -->
  <afterparty enabled_sub_quests="q1">

    <enable_condition>
      <have_mark mark="win" />
    </enable_condition>

    <sub_quests>

      <!-- q1 -->
      <q1 holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="q1" />
          <enable_sub_quest name="q1w" />
          <add_quest person="chief" quest_name="afterparty" />
          <add_task_count count="30" item="p_pineapple_1" quest_name="afterparty" />
        </actions>
      </q1>

      <!-- q1w -->
      <q1w holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="30" name="p_pineapple_1" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <remove_items count="30" name="p_pineapple_1" />
                <disable_sub_quest name="q1w" />
                <set_quest_status status="done" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </q1w>

    </sub_quests>

  </afterparty>

  <!-- //////////////////// afterparty2 //////////////////// -->
  <afterparty2 enabled_sub_quests="q2">

    <enable_condition>
      <have_mark mark="win" />
    </enable_condition>

    <sub_quests>

      <!-- q2 -->
      <q2 holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="q2" />
          <enable_sub_quest name="q2w" />
          <enable_bug_item count="10" item="etti_club" />
          <add_quest person="chief" quest_name="afterparty2" />
          <add_task_count count="10" item="etti_club" quest_name="afterparty2" />
        </actions>
      </q2>

      <!-- q2e -->
      <q2e holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="q2e" />
          <add_items count="2000" name="money" />
          <set_quest_status status="done" />
        </actions>
      </q2e>

      <!-- q2w -->
      <q2w holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="10" name="etti_club" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="q2w" />
                <enable_sub_quest name="q2e" />
                <remove_items count="10" name="etti_club" />
                <remove_all_task quest_name="afterparty2" />
                <add_task item="talk" quest_name="afterparty2" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </q2w>

    </sub_quests>

  </afterparty2>

  <!-- //////////////////// chief //////////////////// -->
  <chief enabled_sub_quests="farm_task">

    <enable_condition>
      <quest_status name="just_arrived" status="done" />
    </enable_condition>

    <sub_quests>

      <!-- farm_task -->
      <farm_task holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
        </dialog>
        <actions>
          <enable_farm name="location_3" />
          <disable_sub_quest name="farm_task" />
          <disable_sub_quest name="farm_task" />
          <set_money count="50" />
          <set_quest_status status="done" />
        </actions>
      </farm_task>

      <!-- farm_task_1 -->
      <farm_task_1 holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="farm_task_1" />
          <enable_sub_quest name="farm_task_wait" />
        </actions>
      </farm_task_1>

      <!-- farm_task_wait -->
      <farm_task_wait holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="5" name="p_pineapple_1" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <set_quest_status status="done" />
                <disable_sub_quest name="farm_task_wait" />
                <remove_items count="5" name="p_pineapple_1" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </farm_task_wait>

    </sub_quests>

  </chief>

  <!-- //////////////////// chief_altar //////////////////// -->
  <chief_altar enabled_sub_quests="altar">

    <enable_condition>
      <quest_status name="gods" status="done" />
    </enable_condition>

    <sub_quests>

      <!-- altar -->
      <altar holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="chief"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="altar" />
          <enable_sub_quest name="altar_wait" />
          <add_quest person="chief" quest_name="chief_altar" />
          <add_task_count count="3" item="p_nopal_1" quest_name="chief_altar" />
          <add_task_count count="2" item="p_cactus_1" quest_name="chief_altar" />
          <add_task_count count="1" item="p_pineapple_1" quest_name="chief_altar" />
        </actions>
      </altar>

      <!-- altar_wait -->
      <altar_wait holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="1" name="p_pineapple_1" />
                <have_items count="3" name="p_nopal_1" />
                <have_items count="2" name="p_cactus_1" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <remove_items count="1" name="p_pineapple_1" />
                <set_quest_status status="done" />
                <disable_sub_quest name="altar_wait" />
                <add_altar no_param="" />
                <set_mark mark="shop_altar_2" />
                <set_mark mark="shop_altar_3" />
                <remove_items count="3" name="p_nopal_1" />
                <remove_items count="2" name="p_cactus_1" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </altar_wait>

    </sub_quests>

  </chief_altar>

  <!-- //////////////////// dragon_statue //////////////////// -->
  <dragon_statue enabled_sub_quests="talk">

    <enable_condition>
      <quest_status name="afterparty2" status="done" />
    </enable_condition>

    <sub_quests>

      <!-- talk -->
      <talk holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="talk" />
          <enable_sub_quest name="wait" />
          <add_quest person="chief" quest_name="dragon_statue" />
          <add_task_count count="250000" item="money" quest_name="dragon_statue" />
          <add_task_count count="30" item="p_pineapple_1" quest_name="dragon_statue" />
        </actions>
      </talk>

      <!-- wait -->
      <wait holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="250000" name="money" />
                <have_items count="30" name="p_pineapple_1" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <set_mark mark="statue_of_dragon_1" />
                <disable_sub_quest name="wait" />
                <set_quest_status status="done" />
                <remove_items count="30" name="p_pineapple_1" />
                <remove_items count="250000" name="money" />
                <add_dragon_medal no_param="" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </wait>

    </sub_quests>

  </dragon_statue>

  <!-- //////////////////// exams //////////////////// -->
  <exams enabled_sub_quests="c0">

    <enable_condition>
      <have_mark mark="exam2_complete" />
    </enable_condition>

    <sub_quests>

      <!-- c0 -->
      <c0 holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="c0" />
          <enable_sub_quest name="c1b" />
        </actions>
      </c0>

      <!-- c1b -->
      <c1b holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <dialog>
              </dialog>
              <actions>
                <open_next_sub_quest name="c1b2" />
                <store_state />
                <disable_town name="location_1; location_2; location_4" />
                <set_money count="100" />
                <set_barrels count="1" />
                <set_boxes count="1" />
                <remove_well count="1" />
                <remove_all_vegetations />
                <clear_bouquets />
                <remove_items count="100" name="p_pineapple_1; p_pineapple_2; p_pineapple_3; p_cactus_1; p_cactus_2; p_cactus_3; p_nopal_1; p_nopal_2; p_nopal_3" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </c1b>

      <!-- c1b2 -->
      <c1b2 holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
        </dialog>
        <actions>
          <next_sub_quest name="c1e" />
          <add_quest person="chief" quest_name="exams" />
          <add_task_count count="3000" item="money" quest_name="exams" />
        </actions>
      </c1b2>

      <!-- c1e -->
      <c1e holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="3000" name="money" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <remove_items count="3000" name="money" />
                <disable_sub_quest name="c1e" />
                <enable_sub_quest name="c2b" />
                <restore_state />
                <remove_quest location="location_3" quest_name="exams" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="c1e" />
                <enable_sub_quest name="c1b" />
                <restore_state />
                <remove_quest location="location_3" quest_name="exams" />
              </actions>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </c1e>

      <!-- c2b -->
      <c2b holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="c2b" />
                <enable_sub_quest name="c2e" />
                <store_state />
                <disable_town name="location_1; location_2; location_4" />
                <set_money count="0" />
                <add_well />
                <enable_buy_water enable="false" />
                <set_max_barrels count="1" />
                <set_boxes count="1" />
                <remove_all_vegetations />
                <clear_bouquets />
                <remove_items count="100" name="p_pineapple_1; p_pineapple_2; p_pineapple_3; p_cactus_1; p_cactus_2; p_cactus_3; p_nopal_1; p_nopal_2; p_nopal_3" />
                <add_vegetation name="nopal_1;nopal_1;nopal_1" />
                <disable_buy_vegetation name="cactus_1" />
                <add_quest person="chief" quest_name="exams" />
                <add_task_count count="5" item="nopal_3" quest_name="exams" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </c2b>

      <!-- c2e -->
      <c2e holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="5" name="nopal_3" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="c2e" />
                <enable_sub_quest name="c3b" />
                <restore_state />
                <remove_quest location="location_3" quest_name="exams" />
                <enable_buy_vegetation name="pineapple_1; cactus_1; nopal_1" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="c2e" />
                <enable_sub_quest name="c2b" />
                <restore_state />
                <remove_quest location="location_3" quest_name="exams" />
                <disable_buy_vegetation name="pineaple_1" />
                <enable_buy_vegetation name="pineapple_1; cactus_1; nopal_1" />
              </actions>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </c2e>

      <!-- c3b -->
      <c3b holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="c3b" />
                <enable_sub_quest name="c3e" />
                <store_state />
                <disable_town name="location_1; location_2; location_4" />
                <set_money count="100" />
                <remove_all_vegetations />
                <set_ridges installed="1" not_installed="0" />
                <set_pests_key key="stage3" />
                <add_vegetation name="pineapple_3" />
                <disable_buy_vegetation name="pineapple_1; cactus_1; nopal_1" />
                <enable_bug_item count="60" item="crab_claw" />
                <clear_bouquets />
                <remove_items count="100" name="p_pineapple_1; p_pineapple_2; p_pineapple_3; p_cactus_1; p_cactus_2; p_cactus_3; p_nopal_1; p_nopal_2; p_nopal_3" />
                <add_quest person="chief" quest_name="exams" />
                <add_task_count count="60" item="crab_claw" quest_name="exams" />
                <add_task item="pineapple_3" quest_name="exams" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </c3b>

      <!-- c3e -->
      <c3e holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="60" name="crab_claw" />
                <have_items count="1" name="pineapple_3" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="c3e" />
                <enable_sub_quest name="c4b" />
                <restore_state />
                <remove_quest location="location_3" quest_name="exams" />
                <enable_buy_vegetation name="pineapple_1; cactus_1; nopal_1" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="c3e" />
                <enable_sub_quest name="c3b" />
                <restore_state />
                <remove_quest location="location_3" quest_name="exams" />
                <enable_buy_vegetation name="pineapple_1; cactus_1; nopal_1" />
                <reset_bug_item item="crab_claw" />
              </actions>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </c3e>

      <!-- c4b -->
      <c4b holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="c4b" />
                <enable_sub_quest name="c4e" />
                <store_state />
                <disable_town name="location_1; location_2; location_4" />
                <set_money count="0" />
                <set_max_barrels count="3" />
                <set_barrels count="2" />
                <enable_buy_water enable="false" />
                <enable_buy_well enable="false" />
                <disable_helper />
                <remove_all_vegetations />
                <disable_buy_vegetation name="pineapple_1; cactus_1; nopal_1" />
                <add_vegetation name="cactus_2;cactus_2;cactus_2;cactus_2;cactus_2;cactus_2" />
                <clear_bouquets />
                <remove_items count="100" name="p_pineapple_1; p_pineapple_2; p_pineapple_3; p_cactus_1; p_cactus_2; p_cactus_3; p_nopal_1; p_nopal_2; p_nopal_3" />
                <add_quest person="chief" quest_name="exams" />
                <add_task_count count="10" item="p_cactus_3" quest_name="exams" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </c4b>

      <!-- c4e -->
      <c4e holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="10" name="p_cactus_3" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <remove_items count="10" name="p_cactus_3" />
                <disable_sub_quest name="c4e" />
                <enable_sub_quest name="c5b" />
                <restore_state />
                <remove_quest location="location_3" quest_name="exams" />
                <enable_buy_vegetation name="pineapple_1; cactus_1; nopal_1" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="c4e" />
                <enable_sub_quest name="c4b" />
                <restore_state />
                <remove_quest location="location_3" quest_name="exams" />
                <enable_buy_vegetation name="pineapple_1; cactus_1; nopal_1" />
              </actions>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </c4e>

      <!-- c5b -->
      <c5b holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="c5b" />
                <enable_sub_quest name="c5e" />
                <store_state />
                <disable_town name="location_1; location_2; location_4" />
                <set_money count="150" />
                <remove_all_vegetations />
                <set_pests_key key="stage5" />
                <enable_manual_work enable="false" />
                <clear_bouquets />
                <remove_items count="100" name="p_pineapple_1; p_pineapple_2; p_pineapple_3; p_cactus_1; p_cactus_2; p_cactus_3; p_nopal_1; p_nopal_2; p_nopal_3" />
                <add_quest person="chief" quest_name="exams" />
                <add_task_count count="5" item="p_pineapple_1" quest_name="exams" />
                <add_task_count count="5" item="p_pineapple_2" quest_name="exams" />
                <add_task_count count="5" item="p_pineapple_3" quest_name="exams" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </c5b>

      <!-- c5e -->
      <c5e holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="5" name="p_pineapple_1" />
                <have_items count="5" name="p_pineapple_2" />
                <have_items count="5" name="p_pineapple_3" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <remove_items count="5" name="p_pineapple_1; p_pineapple_2; p_pineapple_3" />
                <disable_sub_quest name="c5e" />
                <set_quest_status status="done" />
                <set_mark mark="exam3_complete" />
                <remove_all_vegetations />
                <restore_state />
                <remove_quest location="location_3" quest_name="exams" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="c5e" />
                <enable_sub_quest name="c5b" />
                <add_items count="1" name="simple_sword" />
                <remove_all_vegetations />
                <restore_state />
                <remove_quest location="location_3" quest_name="exams" />
              </actions>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </c5e>

    </sub_quests>

  </exams>

  <!-- //////////////////// gods //////////////////// -->
  <gods enabled_sub_quests="talk">

    <enable_condition>
      <quest_status name="chief" status="done" />
    </enable_condition>

    <sub_quests>

      <!-- talk -->
      <talk holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="talk" />
          <enable_sub_quest name="wait" />
          <add_quest person="chief" quest_name="gods" />
          <add_task_count count="5" item="p_pineapple_1" quest_name="gods" />
        </actions>
      </talk>

      <!-- wait -->
      <wait holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="5" name="p_pineapple_1" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <remove_items count="5" name="p_pineapple_1" />
                <set_quest_status status="done" />
                <disable_sub_quest name="wait" />
                <add_items count="25" name="money" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </wait>

    </sub_quests>

  </gods>

  <!-- //////////////////// hardcore_quest //////////////////// -->
  <hardcore_quest enabled_sub_quests="dialog">

    <enable_condition>
      <quest_status name="pirate_captain" status="done" />
      <have_mark mark="hardcore" />
    </enable_condition>

    <sub_quests>

      <!-- chief -->
      <chief holder="chief">
        <dialog>
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="chief" />
          <enable_sub_quest name="wait_cactus" />
          <remove_all_task quest_name="hardcore_quest" />
          <add_task_count count="20" item="p_nopal_1" quest_name="hardcore_quest" />
        </actions>
      </chief>

      <!-- dialog -->
      <dialog holder="pirate_captain">
        <dialog>
          <phrase
            talker="pirate_captain"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="pirate_captain"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="dialog" />
          <enable_sub_quest name="chief" />
          <set_mark mark="weapon_quest1" />
          <add_quest person="chief" quest_name="hardcore_quest" />
          <add_task item="talk" quest_name="hardcore_quest" />
        </actions>
      </dialog>

      <!-- dialog2 -->
      <dialog2 holder="pirate_captain">
        <dialog>
          <phrase
            talker="hero"
          />
          <phrase
            talker="pirate_captain"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="pirate_captain"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="dialog2" />
          <set_quest_status status="done" />
          <set_mark mark="pirate_bilet" />
        </actions>
      </dialog2>

      <!-- wait_cactus -->
      <wait_cactus holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="20" name="p_nopal_1" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <remove_items count="20" name="p_nopal_1" />
                <disable_sub_quest name="wait_cactus" />
                <enable_sub_quest name="dialog2" />
                <remove_all_task quest_name="hardcore_quest" />
                <change_quest_person person="pirate_captain" quest_name="hardcore_quest" />
                <add_task item="talk" quest_name="hardcore_quest" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </wait_cactus>

    </sub_quests>

  </hardcore_quest>

  <!-- //////////////////// just_arrived //////////////////// -->
  <just_arrived enabled_sub_quests="first_talk">

    <enable_condition>
    </enable_condition>

    <sub_quests>

      <!-- first_talk -->
      <first_talk holder="traveller">
        <dialog>
          <phrase
            talker="hero"
          />
          <phrase
            talker="traveller"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="traveller"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="first_talk" />
          <set_quest_status status="done" />
        </actions>
      </first_talk>

    </sub_quests>

  </just_arrived>

  <!-- //////////////////// parrot //////////////////// -->
  <parrot enabled_sub_quests="t1">

    <enable_condition>
      <have_mark mark="find_parrot" />
    </enable_condition>

    <sub_quests>

      <!-- t1 -->
      <t1 holder="chief">
        <dialog>
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
        </dialog>
        <actions>
          <enable_bug_item count="12" item="etti_club" />
          <disable_sub_quest name="t1" />
          <enable_sub_quest name="t1w" />
          <add_quest person="chief" quest_name="parrot" />
          <add_task_count count="12" item="etti_club" quest_name="parrot" />
        </actions>
      </t1>

      <!-- t1w -->
      <t1w holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="12" name="etti_club" />
              </active_if>
              <actions>
                <disable_sub_quest name="t1w" />
                <enable_sub_quest name="t2" />
                <remove_items count="12" name="etti_club" />
                <remove_all_task quest_name="parrot" />
                <add_task item="talk" quest_name="parrot" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </t1w>

      <!-- t2 -->
      <t2 holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="chief"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="t2" />
          <enable_sub_quest name="t2w" />
          <remove_all_task quest_name="parrot" />
          <add_task_count count="10" item="p_nopal_3" quest_name="parrot" />
          <add_task_count count="10" item="p_pineapple_3" quest_name="parrot" />
          <add_task_count count="10" item="p_cactus_3" quest_name="parrot" />
        </actions>
      </t2>

      <!-- t2w -->
      <t2w holder="chief">
        <dialog>
          <question
            talker="chief"
          >
            <answer>
              <active_if>
                <have_items count="10" name="p_nopal_3" />
                <have_items count="10" name="p_pineapple_3" />
                <have_items count="10" name="p_cactus_3" />
              </active_if>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
              <actions>
                <remove_items count="10" name="p_nopal_3" />
                <remove_items count="10" name="p_cactus_3" />
                <remove_items count="10" name="p_pineapple_3" />
                <disable_sub_quest name="t2w" />
                <enable_sub_quest name="t3" />
                <remove_all_task quest_name="parrot" />
                <add_task item="talk" quest_name="parrot" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="chief"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </t2w>

      <!-- t3 -->
      <t3 holder="chief">
        <dialog>
          <phrase
            talker="chief"
          />
          <phrase
            talker="hero"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="t3" />
          <set_quest_status status="done" />
          <set_mark mark="found_parrot" />
          <add_quest person="pirate_leader" quest_name="parrot" location="location_4"/>
          <add_task item="talk" quest_name="parrot" location="location_4"/>
        </actions>
      </t3>

    </sub_quests>

  </parrot>

  <!-- //////////////////// pirate_captain //////////////////// -->
  <pirate_captain enabled_sub_quests="talk">

    <enable_condition>
      <quest_status name="traveller_1" status="done" />
    </enable_condition>

    <sub_quests>

      <!-- talk -->
      <talk holder="pirate_captain">
        <dialog>
          <phrase
            talker="hero"
          />
          <phrase
            talker="pirate_captain"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="pirate_captain"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="pirate_captain"
          />
          <phrase
            talker="hero"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="talk" />
          <enable_sub_quest name="wait_pineapple" />
          <set_mark_if_mark condition_mark="casual" mark="weapon_quest1" />
          <add_quest person="pirate_captain" quest_name="pirate_captain" />
          <add_task_count count="15" item="p_pineapple_1" quest_name="pirate_captain" />
        </actions>
      </talk>

      <!-- wait_money -->
      <wait_money holder="pirate_captain">
        <dialog>
          <question
            talker="pirate_captain"
          >
            <answer>
              <active_if>
                <have_items count="2000" name="money" />
              </active_if>
              <dialog>
                <phrase
                  talker="pirate_captain"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="wait_money" />
                <enable_sub_quest name="wait_travel" />
                <remove_items count="2000" name="money" />
              </actions>
            </answer>
            <answer>
              <dialog>
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </wait_money>

      <!-- wait_pineapple -->
      <wait_pineapple holder="pirate_captain">
        <dialog>
          <question
            talker="pirate_captain"
          >
            <answer>
              <active_if>
                <have_items count="15" name="p_pineapple_1" />
              </active_if>
              <dialog>
                <phrase
                  talker="pirate_captain"
                />
              </dialog>
              <actions>
                <remove_items count="15" name="p_pineapple_1" />
                <disable_sub_quest name="wait_pineapple" />
                <set_mark_if_mark condition_mark="casual" mark="pirate_bilet" />
                <set_quest_status status="done" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="pirate_captain"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </wait_pineapple>

      <!-- wait_travel -->
      <wait_travel holder="pirate_captain">
        <dialog>
          <question
            talker="pirate_captain"
          >
            <answer>
              <dialog>
              </dialog>
              <actions>
                <disable_sub_quest name="wait_travel" />
                <set_quest_status status="done" />
                <enable_town name="location_4" />
              </actions>
            </answer>
            <answer>
              <dialog>
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </wait_travel>

    </sub_quests>

  </pirate_captain>

  <!-- //////////////////// pirate_captain_bilet //////////////////// -->
  <pirate_captain_bilet enabled_sub_quests="bilet">

    <enable_condition>
      <have_mark mark="pirate_bilet" />
    </enable_condition>

    <sub_quests>

      <!-- bilet -->
      <bilet holder="pirate_captain">
        <dialog>
          <phrase
            talker="pirate_captain"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="pirate_captain"
          />
          <phrase
            talker="hero"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="bilet" />
          <enable_sub_quest name="wait_money" />
          <set_mark mark="weapon_quest" />
          <add_quest person="pirate_captain" quest_name="pirate_captain_bilet" />
          <add_task_count count="1500" item="money" quest_name="pirate_captain_bilet" />
        </actions>
      </bilet>

      <!-- travel -->
      <travel holder="pirate_captain">
        <dialog>
          <question
            talker="pirate_captain"
          >
            <answer>
              <dialog>
                <phrase
                  talker="traveller"
                />
              </dialog>
              <actions>
                <disable_sub_quest name="travel" />
                <set_quest_status status="done" />
                <enable_town name="location_4" />
                <remove_quest location="location_3" quest_name="pirate_captain_bilet" />
              </actions>
            </answer>
            <answer>
              <dialog>
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </travel>

      <!-- wait_money -->
      <wait_money holder="pirate_captain">
        <dialog>
          <question
            talker="pirate_captain"
          >
            <answer>
              <active_if>
                <have_items count="1500" name="money" />
              </active_if>
              <dialog>
                <phrase
                  talker="pirate_captain"
                />
              </dialog>
              <actions>
                <remove_items count="1500" name="money" />
                <disable_sub_quest name="wait_money" />
                <enable_sub_quest name="travel" />
                <remove_all_task quest_name="pirate_captain_bilet" />
                <add_task item="talk" quest_name="pirate_captain_bilet" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="pirate_captain"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </wait_money>

    </sub_quests>

  </pirate_captain_bilet>

  <!-- //////////////////// traveller //////////////////// -->
  <traveller enabled_sub_quests="phrase1">

    <enable_condition>
      <quest_status name="just_arrived" status="done" />
    </enable_condition>

    <sub_quests>

      <!-- phrase1 -->
      <phrase1 holder="traveller">
        <dialog>
          <phrase
            talker="traveller"
          />
        </dialog>
        <actions>
          <enable_sub_quest name="phrase2" />
          <disable_sub_quest name="phrase1" />
        </actions>
      </phrase1>

      <!-- phrase2 -->
      <phrase2 holder="traveller">
        <dialog>
          <phrase
            talker="traveller"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="phrase2" />
          <set_quest_status status="done" />
        </actions>
      </phrase2>

    </sub_quests>

  </traveller>

  <!-- //////////////////// traveller_1 //////////////////// -->
  <traveller_1 enabled_sub_quests="save_mission">

    <enable_condition>
      <quest_status name="gods" status="done" />
    </enable_condition>

    <sub_quests>

      <!-- save_mission -->
      <save_mission holder="traveller">
        <dialog>
          <phrase
            talker="traveller"
          />
          <phrase
            talker="traveller"
          />
          <phrase
            talker="hero"
          />
          <phrase
            talker="traveller"
          />
        </dialog>
        <actions>
          <set_quest_status status="done" />
          <disable_sub_quest name="save_mission" />
        </actions>
      </save_mission>

    </sub_quests>

  </traveller_1>

  <!-- //////////////////// weapon //////////////////// -->
  <weapon enabled_sub_quests="talk">

    <enable_condition>
      <have_mark mark="weapon_quest1" />
    </enable_condition>

    <sub_quests>

      <!-- talk -->
      <talk holder="traveller">
        <dialog>
          <phrase
            talker="traveller"
          />
          <phrase
            talker="hero"
          />
        </dialog>
        <actions>
          <disable_sub_quest name="talk" />
          <enable_bug_item count="8" item="small_bug_jaw" />
          <enable_sub_quest name="wait" />
          <add_quest person="traveller" quest_name="weapon" />
          <add_task_count count="8" item="small_bug_jaw" quest_name="weapon" />
        </actions>
      </talk>

      <!-- wait -->
      <wait holder="traveller">
        <dialog>
          <question
            talker="traveller"
          >
            <answer>
              <active_if>
                <have_items count="8" name="small_bug_jaw" />
              </active_if>
              <dialog>
                <phrase
                  talker="traveller"
                />
              </dialog>
              <actions>
                <remove_items count="8" name="small_bug_jaw" />
                <disable_sub_quest name="wait" />
                <set_quest_status status="done" />
                <add_weapon name="bumerang" />
                <set_mark mark="weapon_3" />
              </actions>
            </answer>
            <answer>
              <dialog>
                <phrase
                  talker="traveller"
                />
              </dialog>
            </answer>
          </question>
        </dialog>
        <actions>
        </actions>
      </wait>

    </sub_quests>

  </weapon>


</quests>