<name>Carradine</name>
<profession>Expert Teacher of Bow</profession>
<faction>Serenity</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>Once a student and teacher meet the relationship never ends.</text>
      <return>main</return>
    </reply>
    <reply>
      <text>All things behave according to their nature and their needs ...</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Why should we study the bow skill?</text>
      <npc>
        <reply>
          <text>With a bow, you can do damage from a distance. If you're really good, you may kill a grasshopper before it gets near. Be aware, however, that some monsters and enemies have their own ranged weapon.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Bow Expert.</text>
      <npc>
        <reply>
          <if><grandmaster>Bow</grandmaster></if>
          <text>You already are a grandmaster!!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>Bow</master></if>
          <text>You already are a master!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>Bow</expert></if>
          <text>You already are an expert, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Bow</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Student</class></if>
          <text>First, you must be promoted to Cleric or Runemaster.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Acolyte</class></if>
          <text>First, you must be promoted to Cleric.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Scholar</class></if>
          <text>First, you must be promoted to Runemaster.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Apprentice</class></if>
          <text>Apprentices cannot achieve expert status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Saint</class></if>
          <text>Saints cannot achieve expert status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Druid</class></if>
          <text>Druids cannot achieve expert status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Sorcerer</class></if>
          <text>Sorcerers cannot achieve expert status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Necromancer</class></if>
          <text>Necromancers cannot achieve expert status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expertlevel>!Bow</expertlevel></if>
          <text>You are not good enough yet.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!1000</gold></if>
          <text>You cannot afford the fee.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Congratulations, [name]!</text>
          <return>main</return> 
          <script>
            <gold>-1000</gold>
            <expert>Bow</expert>
            <log>[name] Bow Expert</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Where can the Master Teacher of Bow be found?</text>
      <npc>
        <reply>
          <text>Look for Caelzair in the Elven town of Cascadin.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Goodbye!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>