<name>Rustavius</name>
<profession>Toolmaker</profession>
<faction>Serenity</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <key>rescuedBaleminotu</key>
        <key>rescuedLadob</key>
        <key>rescuedRustavius</key>
      </if>
      <text>I am so happy that you set me free! If you ever start a farm, I'll make you some tools for no cost.</text>
      <return>afterall</return>
    </reply>
    <reply>
      <if>
        <key>rescuedRustavius</key>
      </if>
      <text>I am so happy that you set me free! If you ever start a farm, I'll make you some tools for no cost.</text>
      <return>afterone</return>
    </reply>
    <reply>
      <if>
        <key>monksbooked</key>
      </if>
      <text>Finally! Please, get me out!</text>
      <return>bottle</return>
    </reply>
    <reply>
      <text>Hoy! Do you want me to make you some tools?</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>What kind of tools do you make?</text>
      <npc>
        <reply>
          <if>
            <key>!elementalorbfound</key>
            <item>!Shovel</item>
          </if>
          <text>I make tools to work the land. I just sold a batch of shovels to mrs. Oonagh of the general store in Iotneheim last month.

Wait a bit! I kept one as a sample, you can have it if you like.</text>
          <return>sample</return> 
        </reply>
        <reply>
          <text>I make tools to work the land, but if you want something finer like levers, switches or buttons I can make those too. If you ever enter a dungeon and find some of those, remember that they're there for a reason, and someone ordered them.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>How come you aren't hard at work?</text>
      <npc>
        <reply>
          <text>"* Gulp * - it's the wine's fault. We simply have too much of it.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>We may, perhaps, visit you again.</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
  <sample>
    <option>
      <text>Sure! You never know when it will be useful.</text>
      <npc>
        <reply>
          <text>There you go!</text>
          <script><item>Shovel</item></script>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Nah, keep it. We carry enough stuff around as it is.</text>
      <npc>
        <reply>
          <text>Well, it's up to you.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
  </sample>
  <afterall>
    <option>
      <text>We couldn't stand idly by, brother Rustavius. Live well!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </afterall> 
  <afterone>
    <option>
      <text>Are there any others still missing?</text>
      <npc>
        <reply>
          <text>There were brothers Ladob and Baleminotu following me, you might as well free the two of them, too.</text>
          <return>afterone</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>We couldn't stand idly by, brother Rustavius. Live well!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </afterone> 
  <bottle>
    <option>
      <text>How did you get into this kind of trouble?</text>
      <npc>
        <reply>
          <text>Brothers Ladob and Baleminotu talked to that bottled genie in the storeroom, and believed him about a special case of wine he knew to find. It was special enough, when we tasted it we got all transparent and light as a feather. We glided right through the walls and floors, and then all these ghosts came and pushed us into the bottles, and would not let us out.</text>
          <return>bottle</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Can we help you get out?</text>
      <npc>
        <reply>
          <text>Just break the bottle. I promise, I will never get drunk again, and work hard from this day on!</text>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Cover your eyes, there we go!</text>
      <npc>
        <reply>
          <script>
            <key>rescuedRustavius</key>
            <summon>Rustavius</summon>
            <reputation>1</reputation>
            <quest>Missing Monks|You have rescued brother Rustavius</quest>
            <log>Rescued Rustavius, the missing monk</log>
          </script>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Don't go anywhere, we'll return in a minute.</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </bottle>
</dialogue>