<name>Lopamudra</name>
<profession>Psychic</profession>
<faction>Serenity</faction>
<dialogue>
  <greeting>
    <reply>
      <text>Welcome, [name]. If at any time you just can't catch that thought that is on the back of your mind, you can come to me for help.</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>You are looking very pretty today!</text>
      <npc>
        <reply>
          <text>Thank you, [name]. I like getting new dresses and ornaments as much as the ladies on the Faerie Dragon Lawn in Soronne.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Ma'me, getting our thoughts clear is the nature of our problem.</text>
      <npc>
        <reply>
          <if><key>!testofpromisebooked</key></if>
          <text>I think you still have to meet your mentor.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if>
            <key>elementalorbbooked</key>
            <key>!elementalorbfound</key>
            <item>!Shovel</item>
          </if>
          <text>If someone offers you something, even a little thing that seems of no value at all, there may be a good reason.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><level>!2</level></if>
          <text>You were looking for some odd jobs to get some experience, but perhaps you forgot all about them, or to train up afterwards?</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><food>!5</food></if>
          <text>Are you hungry? Don't forget to eat regularly, or you will get weak and disoriented.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!1000</gold></if>
          <text>It's the empty feel of your purse. Keep some cash in your pockets at all times, in case you will need something urgent.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if>
            <key>vassagobooked</key>
            <key>!vassagodone</key>
          </if>
          <text>You are, I believe, in the middle of a quest?</text>
          <return>main</return> 
        </reply>
        <reply>
          <if>
            <key>testofpromisedone</key>
            <key>!leftSerenity</key>
          </if>
          <text>I see a boat. Perhaps you should get aboard.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><random>160</random></if>
          <text>I always find it useful to keep a questbook and check it regularly.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><random>120</random></if>
          <text>To gather your thoughts, it can be helpful to maintain a log of your doings and occasionally glance through it.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Do I detect a desire to go somewhere? For many darker places, it may not be wise to give in to that urge, unless you really have business there.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <if>
        <key>!vassagodone</key>
        <item>Fabrice's note for Lopamudra</item>
        <item>Vision Cheese</item>
      </if>
      <text>Milady, we brought you something, with a note from Fabrice Lunasouris.</text>
      <npc>
        <reply>
          <text>The Vision Cheese to heal Vassago! And you helped him, he writes.
That was very kind of you. I will bring the cheese to Vassago right away, and hopefully he will get well soon. 
Here is a reward for all your work.</text>
          <script>
            <give>Fabrice's note for Lopamudra</give>
            <give>Vision Cheese</give>
            <key>vassagodone</key>
            <gold>2500</gold>
            <expall>3000</expall>
            <reputation>2</reputation>
            <quest>Heal Vassago|done</quest>
            <log>Gave Fabrice's note and the Vision Cheese to Lopamudra</log>
          </script>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Thank you, Milady.</text>
      <npc>
        <reply>
          <return>exit</return>
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>

