<name>Asaph</name>
<profession>Piper</profession>
<faction>Serenity</faction>
<portrait>human_male03</portrait>
<dialogue>
  <greeting>
    <reply>
      <if><company>Asaph</company></if>
      <text>Yes?</text>
      <return>inparty</return>
    </reply>
    <reply>
      <text>[gender], are you seeking to hire?</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>What can you do for us?</text>
      <npc>
        <reply>
          <text>For a modest fee of 500 gold now and 5% of the gold you find, I will play my flute during battle.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>We accept your fee.</text>
      <npc>
        <reply>
          <if><company>full</company></if>
          <text>There is no room in your party. If you wish to hire me, you must fire someone else.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!500</gold></if>
          <text>You do not have the money.</text>
          <return>main</return> 
        </reply>
        <reply>
          <script>
            <gold>-500</gold>
            <company>hire</company>
            <log>Hired Asaph, the Piper</log>
          </script>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>See you around!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
  <inparty> 
    <option>
      <text>What is it you do again?</text>
      <npc>
        <reply>
          <text>For 5% of the gold you find, I play my flute during battle.</text>
          <return>inparty</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>We wish to dismiss you.</text>
      <npc>
        <reply>
          <text>I saw it coming, [class]. If you ever need me again: I live in Serenity.</text>
          <script>
            <company>dismiss</company>
            <log>Dismissed Asaph, the Piper</log>
          </script>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Keep up the good work!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </inparty> 
</dialogue>