<name>Mahmud</name>
<profession>Expert Teacher of Meditation</profession>
<faction>Serenity</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>Ah, yes, our new guests! Can I help you on your path?</text>
      <return>main</return>
    </reply>
    <reply>
      <text>Who comes to my fireplace?</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>What should we know about meditation?</text>
      <npc>
        <reply>
          <text>If you want to use your magic skills to the fullest, you must learn to meditate. It provides you with extra energy, so you can cast more spells before you need to rest.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Meditation Expert.</text>
      <npc>
        <reply>
          <if><grandmaster>Meditation</grandmaster></if>
          <text>You already are a grandmaster!!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>Meditation</master></if>
          <text>You already are a master!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>Meditation</expert></if>
          <text>You already are an expert, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Meditation</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Agent</class></if>
          <text>First, you must be promoted to Thief.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Assassin</class></if>
          <text>Assassins cannot achieve expert status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expertlevel>!Meditation</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>Meditation</expert>
            <log>[name] Meditation Expert</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Where can the Master Teacher of Meditation be found?</text>
      <npc>
        <reply>
          <text>In the sun town of Marduk, Josaphat can often be found meditating under a tree.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Goodbye!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>