// creator  : weidu.exe (version 23100)
// argument : MEKRAT.DLG
// game		 : .
// source	 : ./DATA/DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~MEKRAT~

IF ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #30326 /* ~What is this?  Intruders within Mekrath's domain?  What brings you here, foolish <MANWOMAN>... speak quickly, for I do not suffer errant fools gladly!~ */
  IF ~Global("RaelisJob","GLOBAL",1)
~ THEN REPLY #30327 /* ~I am here to free Haer'Dalis, your captive!  Give him to me now!~ */ GOTO 1
  IF ~Global("RaelisJob","GLOBAL",0)
~ THEN REPLY #30328 /* ~I seek adventure.  But if there is none to be had, here, then you are of little use to me.~ */ GOTO 2
  IF ~~ THEN REPLY #30329 /* ~Do not threaten me, wizard... I go where I like.~ */ GOTO 3
  IF ~~ THEN REPLY #30330 /* ~Sorry to intrude... I shall be on my way, then.~ */ GOTO 4
  IF ~Global("RaelisJob","GLOBAL",1)
~ THEN REPLY #30331 /* ~Your death brings me here, wizard!~ */ GOTO 5
END

IF ~~ THEN BEGIN 1 // from: 23.0 0.0
  SAY #30332 /* ~Give you the little thief?  Now why should I do such a thing, when he has made me such a perfect little slave, hm?~ */
  IF ~~ THEN REPLY #30333 /* ~Thief?  What are you talking about?  He's an actor!~ */ GOTO 6
  IF ~~ THEN REPLY #30334 /* ~Name your price, wizard.~ */ GOTO 7
  IF ~~ THEN REPLY #30335 /* ~You'll release him to me... and his gem... or you'll meet your end at my hands!~ */ GOTO 8
END

IF ~~ THEN BEGIN 2 // from: 23.2 0.1
  SAY #30336 /* ~Ha ha... spoken boldly, <MANWOMAN>.  I may have a use for one such as you, if you truly seek adventure.  Might you be interested in such an... escapade?~ */
  IF ~~ THEN REPLY #30337 /* ~I might be... what sort of task do you speak of?~ */ DO ~SetGlobal("Mekrath","GLOBAL",1)
~ GOTO 9
  IF ~~ THEN REPLY #30338 /* ~Adventure comes with its rewards... name what you offer and I'll consider it.~ */ GOTO 13
  IF ~~ THEN REPLY #30339 /* ~No, I do not think I am.~ */ GOTO 4
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #30340 /* ~Not within my sanctum you do not!  This is my place of power, fool!  Challenge me only if you dare...~ */
  IF ~~ THEN REPLY #30341 /* ~So be it!  One less wizard in this world shall draw no tears!~ */ GOTO 5
  IF ~~ THEN REPLY #30342 /* ~I have no interest in fighting you.~ */ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 21.2 13.1 12.4 3.1 2.2 0.3
  SAY #30343 /* ~Then get out!  I have little enough patience for such hindrances, I'll not have you bothering me any further!~ */
  IF ~~ THEN DO ~SetGlobal("MekrathImpatient","LOCALS",1)
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 23.3 19.0 7.2 3.0 0.4
  SAY #30344 /* ~You dare to attack me?!  In my own sanctum?!  Foolish <MANWOMAN>!  I shall enjoy rending you limb from limb with my magic!~ */
  IF ~~ THEN DO ~SetGlobal("MekrathAttacks","LOCALS",1)~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 1.0
  SAY #30349 /* ~Perhaps he is at that, it matters little to me.  He stole into my sanctum as a thief... I captured him and it amuses me to keep him as my slave.~ */
  IF ~~ THEN REPLY #30350 /* ~I thought you kidnapped him because of his gem?~ */ GOTO 8
  IF ~~ THEN REPLY #30351 /* ~Name your price, then, for his freedom.~ */ GOTO 7
  IF ~~ THEN REPLY #30352 /* ~Regardless, you'll turn him... and his gem... over to me at once!~ */ GOTO 8
END

IF ~~ THEN BEGIN 7 // from: 6.1 1.1
  SAY #30353 /* ~My price, hm?  Well... I do have a minor matter that needs to be taken care of.  Perform the task and I shall hand the foolish thief over to you.  Agreeable?~ */
  IF ~~ THEN REPLY #30354 /* ~You'll hand him and his gem over, you mean.~ */ GOTO 8
  IF ~~ THEN REPLY #30355 /* ~Very well.  What sort of task are you proposing?~ */ DO ~SetGlobal("Mekrath","GLOBAL",2)
~ GOTO 9
  IF ~~ THEN REPLY #30356 /* ~No, it's not!  I'll not perform your dirty work, wizard!  Die!!~ */ GOTO 5
END

IF ~~ THEN BEGIN 8 // from: 21.3 12.5 7.0 6.2 6.0 1.2
  SAY #30357 /* ~His gem?  Ah... THAT gem.  I see what game you are up to, little <MANWOMAN>, and it shall not work!  I'll not be divested of my gem by thieves and fools!!~ */
  IF ~~ THEN REPLY #30358 /* ~Do not lie to me, wizard!  Hand them both over now!~ */ GOTO 14
  IF ~~ THEN REPLY #30359 /* ~What are you talking about?  What game?~ */ GOTO 14
END

IF ~~ THEN BEGIN 9 // from: 13.0 7.1 2.0
  SAY #30361 /* ~An annoying little imp shed his magical collar a week or so ago, leaping about and causing much havoc.  I attempted to capture him, but he was too quick.~ */
  IF ~~ THEN DO ~SetGlobal("MekrathMonsters","GLOBAL",1)~ GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #30362 /* ~He escaped ... and took a rather important device I was experimenting on.  A mirror.  Unusable if you do not know the proper incantations.  I would like it back.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #30364 /* ~The imp has likely escaped to the sewers... and your travel there would save me the time and aggravation of retrieving it.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #30366 /* ~A word of caution... the imp may have picked up an incantation or two and may have... used... the mirror.  One can only guess what it might have summoned up.~ */
  IF ~Global("Mekrath","GLOBAL",1)
~ THEN REPLY #30367 /* ~What sort of reward might I expect for saving you this trouble?~ */ GOTO 13
  IF ~Global("Mekrath","GLOBAL",1)
PartyHasItem("MISC6H")~ THEN REPLY #30368 /* ~I remember the imp... and I have the mirror with me, here.~ */ DO ~TakePartyItem("MISC6H")
AddExperienceParty(2000)~ GOTO 15
  IF ~Global("Mekrath","GLOBAL",2)
PartyHasItem("MISC6H")
~ THEN REPLY #30369 /* ~I remember the imp... and I have the mirror with me, here.~ */ DO ~TakePartyItem("MISC6H")
AddExperienceParty(2000)~ GOTO 15
  IF ~~ THEN REPLY #30370 /* ~Very well... I shall seek out this item and return.~ */ DO ~SetGlobal("MekrathMission","GLOBAL",1)
~ GOTO 18
  IF ~Global("Mekrath","GLOBAL",1)
~ THEN REPLY #30371 /* ~No, I am not interested in performing this task for you.~ */ GOTO 4
  IF ~Global("Mekrath","GLOBAL",2)
~ THEN REPLY #30372 /* ~Forget it... hand over the actor and his gem now, or suffer your end at my hands!~ */ GOTO 8
END

IF ~~ THEN BEGIN 13 // from: 12.0 2.1
  SAY #30373 /* ~Well, aside from forgiving your intrusion into my presence, I am sure I can find something suitably rewarding for you, little <MANWOMAN>.~ */
  IF ~~ THEN REPLY #30374 /* ~Just what is this task, then, that you wish me to do?~ */ DO ~SetGlobal("Mekrath","GLOBAL",1)
~ GOTO 9
  IF ~~ THEN REPLY #30376 /* ~That is not good enough.  I am not interested.~ */ GOTO 4
END

IF ~~ THEN BEGIN 14 // from: 8.1 8.0
  SAY #30377 /* ~I tire of this constant barrage of thievery!  You shall not get your hands upon my gem, little <MANWOMAN>.  Now you shall suffer the other one's fate!!~ */
  IF ~~ THEN DO ~SetGlobal("MekrathAttacks","LOCALS",1)~ EXIT
END

IF ~~ THEN BEGIN 15 // from: 21.1 21.0 12.2 12.1
  SAY #30360 /* ~Ah, this is the one!  Tch... the moronic beast has cracked it!  Pfah!  It shall take weeks to repair.  I certainly hope you killed the imp for this indignity!~ */
  IF ~Global("Mekrath","GLOBAL",1)
~ THEN GOTO 16
  IF ~Global("Mekrath","GLOBAL",2)
~ THEN GOTO 26
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #30378 /* ~But... you must be rewarded, as we agreed.  There is a slave... a thief I caught recently... that should be more than adequate.~ */
  IF ~~ THEN REPLY #30380 /* ~What?  A slave?  I have no use for a slave!~ */ GOTO 19
  IF ~~ THEN REPLY #30381 /* ~I suppose that will have to do.~ */ GOTO 25
END

IF ~~ THEN BEGIN 17 // from: 26.0 25.0
  SAY #30379 /* ~I, for one, will need to gather some materials to fix this blasted mirror.  I trust you will not be bothering me again...~ */
  IF ~~ THEN DO ~SetGlobal("MekrathLeft","GLOBAL",1)
SetGlobal("HaerDalisFree","GLOBAL",1)
ForceSpell(Myself,POOF_GONE)
~ EXIT
END

IF ~~ THEN BEGIN 18 // from: 12.3
  SAY #30382 /* ~Run along, then, and return once you have the mirror.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #4660 /* ~Retrieve Mekrath's stolen mirror from his imp.

The wizard, Mekrath, has given me a task to retrieve a mirror that was stolen by an imp... the imp has likely escaped into the sewers and may have summoned something with the device, although Mekrath gave no specifics on exactly what that might be.~ */ EXIT
END

IF ~~ THEN BEGIN 19 // from: 16.0
  SAY #30383 /* ~Well that is all you are going to get, little <MANWOMAN>!  I will not be lowered to petty bargaining.  I have no use for the man, so he is yours.~ */
  IF ~~ THEN REPLY #30385 /* ~I will not be cheated in this fashion, wizard!  I'll take my payment out of your hide!~ */ DO ~EraseJournalEntry(4660)~ SOLVED_JOURNAL #61115 /* ~Retrieve Mekrath's stolen mirror from his imp.

I have completed Mekrath's task and the wizard tried to 'reward' me with a slave of his.  He says that the man is in the north storeroom in his tower... I suppose I should go and see who this person is, at least, once the wizard has been defeated.~ */ GOTO 5
  IF ~~ THEN REPLY #30386 /* ~I suppose that will have to do, then, won't it?~ */ GOTO 25
END

IF ~~ THEN BEGIN 20 // from:
  SAY #30384 /* ~Good.  I am going to find some materials to fix this blasted mirror.  I trust we shall not be seeing each other again... I shall not be disturbed a second time.~ */
  IF ~~ THEN DO ~SetGlobal("MekrathLeft","GLOBAL",1)
SetGlobal("HaerDalisFree","GLOBAL",1)
ForceSpell(Myself,POOF_GONE)~ EXIT
END

IF ~Global("MekrathMission","GLOBAL",1)
~ THEN BEGIN 21 // from:
  SAY #30387 /* ~Well... what is it?  You have the mirror, I assume?!~ */
  IF ~Global("Mekrath","GLOBAL",1)
PartyHasItem("misc6h")~ THEN REPLY #30388 /* ~Yes, I do.  Here you go.~ */ DO ~TakePartyItem("misc6h")
AddExperienceParty(18750)~ GOTO 15
  IF ~Global("Mekrath","GLOBAL",2)
PartyHasItem("misc6h")~ THEN REPLY #30389 /* ~Yes, I do.  Here you go.~ */ DO ~TakePartyItem("misc6h")
AddExperienceParty(18750)
~ GOTO 15
  IF ~Global("Mekrath","GLOBAL",1)
~ THEN REPLY #30390 /* ~No, I don't... and I do not intend on getting it, either.~ */ DO ~SetGlobal("MekrathMission","GLOBAL",0)
~ GOTO 4
  IF ~Global("Mekrath","GLOBAL",2)
~ THEN REPLY #30391 /* ~No, I don't, and I'll not waste my time on the task.  You will hand over the actor and his gem to me now!~ */ DO ~SetGlobal("MekrathMission","GLOBAL",0)
~ GOTO 8
  IF ~~ THEN REPLY #30392 /* ~No, I don't, but I intend to find it.~ */ GOTO 22
END

IF ~~ THEN BEGIN 22 // from: 21.4
  SAY #30393 /* ~Then do so!  And do so quickly, as my patience wears thin!~ */
  IF ~~ THEN EXIT
END

IF ~Global("MekrathMission","GLOBAL",0)
~ THEN BEGIN 23 // from:
  SAY #30394 /* ~You again?!  I tire of these constant interruptions!!  What is it NOW, foolish <MANWOMAN>... and your answer had better be a good one!!~ */
  IF ~Global("RaelisJob","GLOBAL",1)
~ THEN REPLY #30395 /* ~You have a captive... I wish him turned over to me right now!~ */ GOTO 1
  IF ~~ THEN REPLY #30396 /* ~Do not threaten me, wizard... I go where I like!~ */ GOTO 24
  IF ~Global("Mekrath","GLOBAL",0)
~ THEN REPLY #30397 /* ~I seek adventure.  But if there is none to be had, here, then you are of little use to me.~ */ GOTO 2
  IF ~~ THEN REPLY #30398 /* ~You will die, wizard... good enough an answer?!~ */ GOTO 5
  IF ~~ THEN REPLY #30399 /* ~Very well... I shall leave you to your irritable solace, then.~ */ GOTO 24
END

IF ~~ THEN BEGIN 24 // from: 23.4 23.1
  SAY #30400 /* ~You shall not!  I will not be interrupted by your like again!~ */
  IF ~~ THEN DO ~SetGlobal("MekrathAttacks","LOCALS",1)~ EXIT
END

IF ~~ THEN BEGIN 25 // from: 19.1 16.1
  SAY #37773 /* ~Good.  I believe I left him in the north storeroom, counting rice or some nonsense.  Go and claim him, he is yours.  Do whatever you wish with him, I care not.~ */
  IF ~~ THEN DO ~EraseJournalEntry(4660)~ SOLVED_JOURNAL #46844 /* ~Retrieve Mekrath's stolen mirror from his imp.

I have completed Mekrath's task and the wizard has 'rewarded' me with a slave of his.  He says that the man is in the north storeroom in his tower... I suppose I should go and see who this person is, at least, if nothing else.~ */ GOTO 17
END

IF ~~ THEN BEGIN 26 // from: 15.1
  SAY #37774 /* ~Go and claim your little thief, then.  I left him in the north storeroom, counting rice.  Warn him not to bother me again, or I shall be much harsher.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #46843 /* ~Free Haer'Dalis from imprisonment by Mekrath.

Mekrath has released Haer'Dalis to my care, telling me that the man is in the north store-room in the wizard's tower.  He is likely confused, so I should go and speak to him immediately.~ */ GOTO 17
END
