<name>Brighu</name>
<profession>Expert Teacher of Identify Item</profession>
<faction>Serenity</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>Young guests, what lore are you looking for today?</text>
      <return>main</return>
    </reply>
    <reply>
      <text>Well I never. What invasion is this?</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Can you tell us something about items?</text>
      <npc>
        <reply>
          <text>There are all kinds of items in Karigor. Some are even made of Mogred hide. But you can't use an item unless you know what it is! A shopkeeper will tell you, for a price, but of course it's better to learn to identify items yourself.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become an Identify Item Expert.</text>
      <npc>
        <reply>
          <if><grandmaster>Identify Item</grandmaster></if>
          <text>You already are a grandmaster!!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>Identify Item</master></if>
          <text>You already are a master!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>Identify Item</expert></if>
          <text>You already are an expert, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Identify Item</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Explorer</class></if>
          <text>First, you must be promoted to Agent.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Adventurer</class></if>
          <text>First, you must be promoted to Bard.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Knights</class></if>
          <text>Knights cannot achieve expert status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Ranger</class></if>
          <text>Rangers cannot achieve expert status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Monk</class></if>
          <text>Monks cannot achieve expert status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expertlevel>!Identify Item</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>Identify Item</expert>
            <log>[name] Identify Item Expert</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Where can the Master Teacher of Identify Item be found?</text>
      <npc>
        <reply>
          <text>That would be Salvia Lemming who lives in the town of Potz.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Goodbye!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>
