<?xml version="1.0"?>
<dialogues>

  <dialogue id="23">
    <mood value="0"/>
    <enter id="1" image="0" left="1" block="0"/>
    <enter id="2" image="1010" right="1" block="0"/>
    <add_image id="2" image="576" x="0" y="-96"/>
    <wait value="0.5"/>
    <goto id="6" flag="Quest-Potion" value="1"/>
    <goto id="6" flag="Quest-Potion" value="2"/>
    <goto id="2" flag="D23-C1" value="0"/>
    <goto id="4"/>
    
    <label id="2"/>
    <text id="2" text="Welcome to Grand Wizard Sanumar's Ivory Tower of Ultimate Power!"/>
    <text id="2" text="Grand Wizard Sanumar is away on vacation right now and has canceled all his appointments."/>
    <text id="2" text="If you wish to make a new appointment, come back in two months when Sanumar returns from the Bahamutamas."/>
    <text id="2" text="In the meantime, I can assist you with any extremely urgent needs."/>
    <text id="1" text="Hey, you look pretty familiar..."/>
    <text id="1" text="Are you related to Malcolm in Spring Valley?"/>
    <text id="2" text="Not that it's any of your business, but yes, I am his brother Worton."/>
    <mood value="1"/>
    <text id="1" text="I thought so... The likeness is strangely uncanny!"/>
    <mood value="0"/>
    <flag name="D23-C1"/>
    <label id="4"/>
    <text id="2" text="Do you have some business at Sanumar's? Or are you just wasting my time?"/>
    <goto id="3" flag="Quest-Parents" value="14"/>
    <text id="1" text="Well, no, not exactly-"/>
    <text id="2" text="It has been a pleasure, but excuse me. SOME of us have work to do."/>
    <goto id="1"/>

    <label id="3"/>
    <mood value="3"/>
    <text id="1" text="As a matter of fact I do!"/>
    <text id="1" text="My parents have been turned into sheep!"/>
    <text id="2" text="Ah, yes. Sounds like a transmogrification potion."/>
    <text id="2" text="Is it not working to your satisfaction?"/>
    <text id="2" text="I would like to remind you that Sanumar's offer no warranty whatsoever."/>
    <text id="1" text="It's working TOO well! I don't want my parents to be sheep!"/>
    <text id="2" text="Then, if I may be so bold, it seems like you did a very stupid thing by allowing them to drink a transmogrification potion."/>
    <text id="1" text="They didn't drink it voluntarily! Lord Blunderbuss forced them to drink it!"/>
    <mood value="0"/>
    <text id="2" text="Well, then I can offer a simple solution: make them drink a transmogrification antidote."/>
    <text id="1" text="Do you have any potions like that?"/>
    <mood value="1"/>
    <text id="2" text="We have EVERYTHING here at Sanumar's."/>
    <text id="1" text="That's great!"/>
    <mood value="4"/>
    <text id="2" text="Well... Almost everything. We're out of transmogrification antidotes at the moment."/>
    <text id="1" text="Ah, yes. I should have known."/>
    <mood value="0"/>
    <text id="2" text="Not to worry! I, Worton, assistant to the great Sanumar can help you!"/>
    <text id="2" text="If you bring me a few magical reagents I can make you a fresh batch of antidote right away."/>
    <mood value="1"/>
    <text id="1" text="Alright! What do you need?"/>
    <text id="2" text="First of all, I need some mystical mandrake root."/>
    <text id="1" text="Okay, where can I get that?"/>
    <text id="2" text="I don't know! Sanumar usually brings a batch after he's been out traveling."/>
    <mood value="0"/>
    <text id="1" text="No help there. Of course. Okay, what's next?"/>
    <text id="2" text="I also need some sulphurous ash."/>
    <text id="1" text="And you don't know where-"/>
    <text id="2" text="No I don't."/>
    <text id="1" text="Of course you don't."/>
    <text id="2" text="After that I need some garlic as well but we have plenty of that at home. So just get me mandrake and sulphurous ash."/>
    <text id="1" text="Well, I'll let you know as soon as I have those reagents!"/>
    <text id="2" text="Please do. Now, if you will excuse me I have work to do in the meantime."/>
    <exit id="2"/>
    <enter id="5" info="2"/>
    <exit id="5"/>
    <flag name="Quest-Potion"/>
    <mood value="1"/>
    <text id="1" text="Better get going - time to find those magical reagents!"/>
    <goto id="5"/>

    <label id="6"/>
    <text id="2" text="Have you found the magical reagents yet?"/>
    <goto id="7" item="Sulphurous ash"/>
    <label id="9"/>
    <text id="1" text="Well, no, not exactly-"/>
    <text id="2" text="It has been a pleasure, but excuse me. SOME of us have work to do."/>
    <goto id="1"/>

    <label id="7"/>
    <goto id="8" item="Mandrake root"/>
    <goto id="9"/>
    <label id="8"/>
    <mood value="1"/>
    <text id="1" text="I have! I found both sulphurous ash and mandrake root!"/>
    <text id="2" text="Most impressive! Then I can mix you up a batch of the antidote."/>
    <mood value="3"/>
    <text id="2" text="As long as you hand me the compensatory service fee of $1000 as well."/>
    <text id="1" text="I knew this was coming!"/>
    <choices text="Pay $1000?">
      <choice text="Yes!">
        <flag name="Misc-CheckMoney" value="1000"/>
        <game id="11"/>
        <goto id="10" flag="ResultMoney" value="1"/>
        <mood value="4"/>
        <text id="1" text="I don't have enough money..."/>
        <text id="2" text="Very well. Then I have other business to attend to."/>
        <goto id="1"/>
      </choice>
      <choice text="No!">
        <text id="1" text="No way! I ain't payin' that!"/>
        <text id="2" text="By all means. Suit yourself."/>
        <text id="2" text="Then I have other business to attend to."/>
        <goto id="1"/>
      </choice>
    </choices>

    <label id="10"/>
    <flag name="ResultMoney" value="0"/>
    <flag name="Money" add="-1000"/>
    <mood value="0"/>        
    <text id="1" text="Well, alright then. Here's the money!"/>
    <text id="2" text="Thank you, thank you. And the reagents."/>
    <enter id="5" item="Sulphurous ash" remove="1"/>
    <exit id="5"/>
    <enter id="5" item="Mandrake root" remove="1"/>
    <exit id="5"/>
    <item name="Sulphurous ash" number="-1"/>
    <item name="Mandrake root" number="-1"/>
    <mood value="1"/>
    <text id="2" text="Excellent... And here you go, a fresh potion of transmogrification antidote!"/>
    <enter id="5" item="Transmogrification antidote"/>
    <exit id="5"/>
    <item name="Transmogrification antidote"/>
    <text id="1" text="Thank you so much, you're an angel!"/>
    <mood value="3"/>
    <text id="1" text="A greedy and expensive angel, but an angel nonetheless."/>
    <text id="2" text="Sticks and stones may break my bones but money's always useful!"/>
    <mood value="1"/>
    <text id="1" text="Now I have to get this potion to my parents!"/>
    <flag name="Quest-Potion" value="3"/>
    <flag name="Quest-Parents" value="15"/>
    <enter id="5" info="4"/>
    <exit id="5"/>
    <exit id="2"/>
    <goto id="5"/>

    <label id="1"/>
    <exit id="2"/>
    <mood value="3"/>
    <text id="1" text="Man, that's one obnoxious assistant!"/>
    <label id="5"/>
    <exit id="1"/>
  </dialogue>

</dialogues>
