<name>Salmoneus</name>
<profession>GM Teacher of Merchant</profession>
<faction>Serenity</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>Come on, be a sport. Be a hero. Take off your clothes.</text>
      <return>main</return>
    </reply>
    <reply>
      <text>You could use some professional help.</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Will that make us rich?</text>
      <npc>
        <reply>
          <text>It'll make me ... I mean, with sufficient knowledge of the Merchant skill all your deals will be profitable. As a grandmaster, you may even be able to buy at cost, and people will give top prices for my junk, er, your merchandise.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Merchant Grandmaster.</text>
      <npc>
        <reply>
          <if><grandmaster>Merchant</grandmaster></if>
          <text>You already are a grandmaster, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Merchant</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Acolyte</class></if>
          <text>First, you must be promoted to Saint.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Cleric</class></if>
          <text>Clerics cannot achieve grandmaster status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>!Saint</class></if>
          <text>Only Saints can achieve grandmaster status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>!Merchant</master></if>
          <text>Before you can be taught grandmastery, you must become a master.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><grandmasterlevel>!Merchant</grandmasterlevel></if>
          <text>You are not good enough yet, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!10000</gold></if>
          <text>You cannot afford the fee.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Congratulations, [name]!</text>
          <return>main</return> 
          <script>
            <gold>-10000</gold>
            <grandmaster>Merchant</grandmaster>
            <log>[name] Merchant Grandmaster</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Catch you later!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>