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

BEGIN ~PIRMUR09~ 2 // non-zero flags may indicate non-pausing dialogue

IF ~~ THEN BEGIN 0 // from: 18.0 17.0 15.0 13.0
  SAY #54092 /* ~Spellhold? Well now, I'm not sure you would even want to get in there. People that go in don't usually come back out again.~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #54093 /* ~But I see that you are determined. So be it, I'll say what I know, though it won't be of tremendous help.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #54094 /* ~Only two kinds of people get in there: Cowled Wizards and 'deviants,' people with special conditions of the mind.~ */
  IF ~~ THEN REPLY #54095 /* ~Tell me about the Cowled Wizards.~ */ GOTO 3
  IF ~~ THEN REPLY #54096 /* ~How do the magical 'deviants' get admitted?~ */ GOTO 6
END

IF ~~ THEN BEGIN 3 // from: 10.0 2.0
  SAY #54097 /* ~There's really only one representative of the Cowled Wizards here, and he's long since given up their rigid discipline. This place doesn't suit it.~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #54098 /* ~His name is Perth the Adept, and he is seemingly free to come and go from Spellhold all he wants. Uses a ward stone to pass the gates, I think.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #54099 /* ~You might... ah... 'convince' him to give it up. He might take a bribe, but likely your meeting with him will have to be violent.~ */
  IF ~~ THEN REPLY #54100 /* ~How about those judged to be 'deviant?' How are they admitted?~ */ UNSOLVED_JOURNAL #11884 /* ~Getting Inside the Asylum

Captain Golin told of a way of getting inside the asylum.  Perth the Adept, a local representative of the Cowled Wizards, seems to be able to come and go from Spellhold at will.  Golin says that the mage has a stone that allows this, and that I might be able to bribe him or take it from him.~ */ GOTO 6
  IF ~~ THEN REPLY #54101 /* ~Thank you for your help. That's all I needed to know.~ */ UNSOLVED_JOURNAL #11884 /* ~Getting Inside the Asylum

Captain Golin told of a way of getting inside the asylum.  Perth the Adept, a local representative of the Cowled Wizards, seems to be able to come and go from Spellhold at will.  Golin says that the mage has a stone that allows this, and that I might be able to bribe him or take it from him.~ */ GOTO 11
END

IF ~~ THEN BEGIN 6 // from: 5.0 2.1
  SAY #54102 /* ~Well, on the mainland you would have to cause one heck of a magical disturbance, and if you survive the Cowled Wizard reprisal you might get sent there.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #54103 /* ~Here on the isle itself we don't work like that. Don't care about magic. Desharik uses Spellhold for other reasons. Dumps his enemies there, sometimes friends too.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #54104 /* ~Other than troublemakers, the asylum also holds mages and others with actual mental instabilities. They can prove quite dangerous, and are better locked away.~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #54105 /* ~A little too much saltwater can taint the mind, and it's not uncommon for someone to lose their grip. Desharik is the one that can order them confined.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #54106 /* ~Prove to be unstable and Desharik might send you there. The trip would not be gentle though. His chambers are a good ways west of here, a large building tucked against the hills.  Tell the doorman I sent you.~ */
  IF ~~ THEN REPLY #54107 /* ~And what about the Cowled Wizards on the isle? How do they get in?~ */ UNSOLVED_JOURNAL #15760 /* ~Getting Inside the Asylum

Captain Golin told me that I could get inside Spellhold by convincing a pirate named Desharik that I was insane... he could send me within Spellhold as a patient if he was cared to do so.  Desharik can be found on the far west of the island... if I go there, Golin said to tell the doorman that he sent me.~ */ GOTO 3
  IF ~~ THEN REPLY #54108 /* ~Thanks, that's all I needed to know.~ */ UNSOLVED_JOURNAL #15760 /* ~Getting Inside the Asylum

Captain Golin told me that I could get inside Spellhold by convincing a pirate named Desharik that I was insane... he could send me within Spellhold as a patient if he was cared to do so.  Desharik can be found on the far west of the island... if I go there, Golin said to tell the doorman that he sent me.~ */ GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.1 5.1
  SAY #54109 /* ~All right then. Still don't know why you'd want to get in there. I've heard even more screams than usual from there. However, I thank you for your assistance.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 12 // from:
  SAY #54110 /* ~We are very much obliged, friend. Sanik would have wanted Claire to be safe more than anything else.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 13 // from:
  SAY #54111 /* ~With Galvena dead we have little fear of reprisals. Again I thank you. What was it that you needed from Sanik?~ */
  IF ~~ THEN REPLY #54112 /* ~I need to enter the Asylum. I was told that Sanik might know how.~ */ GOTO 0
  IF ~~ THEN REPLY #54113 /* ~I know all that I need to at at the moment, thank you.~ */ GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 18.1 15.1 13.1
  SAY #54114 /* ~Good travels, then. Again, we thank you.~ */
  IF ~~ THEN EXIT
END

IF ~Global("SavedClaire","GLOBAL",2)~ THEN BEGIN 15 // from:
  SAY #54115 /* ~Hello again. Is there something that I can help you with? Claire and I owe you a debt.~ */
  IF ~~ THEN REPLY #54116 /* ~Indeed. I need to gain entrance to the Asylum.~ */ GOTO 0
  IF ~~ THEN REPLY #54117 /* ~I need nothing at present, thank you.~ */ GOTO 14
END

IF ~~ THEN BEGIN 16 // from: PIRMUR10:10.0
  SAY #54655 /* ~Claire? We've been searching all over for you since Sanik was murdered.  Are you alright? Who have you brought with you?~ */
  IF ~~ THEN DO ~AddexperienceParty(2000)~ EXTERN ~PIRMUR10~ 11
END

IF ~~ THEN BEGIN 17 // from: PIRMUR10:11.0
  SAY #54657 /* ~Then we are in <PRO_HISHER> debt. Thank you, friend, for saving Claire. Is there anything that we can do to repay you? If Sanik was still alive he would offer you his life.~ */
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Edwin")~ THEN REPLY #54658 /* ~The girl deserved a better life.  Galvena seemed to me a woman of no small evil.  I only need to know how to enter the Asylum. Sanik was going to tell me when he was killed.~ */ DO ~EraseJournalEntry(5059)
EraseJournalEntry(6934)
EraseJournalEntry(7235)
EraseJournalEntry(10106)
EraseJournalEntry(10107)
EraseJournalEntry(10670)
EraseJournalEntry(10671)
EraseJournalEntry(10933)
EraseJournalEntry(11689)
EraseJournalEntry(11755)
EraseJournalEntry(11904)
EraseJournalEntry(15698)
EraseJournalEntry(15703)
EraseJournalEntry(15801)
EraseJournalEntry(16558)
EraseJournalEntry(20367)
EraseJournalEntry(23504)
EraseJournalEntry(23530)
~ GOTO 0
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Edwin")~ THEN REPLY #54659 /* ~A reward would not be unwelcome.~ */ DO ~EraseJournalEntry(5059)
EraseJournalEntry(6934)
EraseJournalEntry(7235)
EraseJournalEntry(10106)
EraseJournalEntry(10107)
EraseJournalEntry(10670)
EraseJournalEntry(10671)
EraseJournalEntry(10933)
EraseJournalEntry(11689)
EraseJournalEntry(11755)
EraseJournalEntry(11904)
EraseJournalEntry(15698)
EraseJournalEntry(15703)
EraseJournalEntry(15801)
EraseJournalEntry(16558)
EraseJournalEntry(20367)
EraseJournalEntry(23504)
EraseJournalEntry(23530)
~ GOTO 18
  IF ~IsValidForPartyDialog("Keldorn")~ THEN DO ~EraseJournalEntry(5059)
EraseJournalEntry(6934)
EraseJournalEntry(7235)
EraseJournalEntry(10106)
EraseJournalEntry(10107)
EraseJournalEntry(10670)
EraseJournalEntry(10671)
EraseJournalEntry(10933)
EraseJournalEntry(11689)
EraseJournalEntry(11755)
EraseJournalEntry(11904)
EraseJournalEntry(15698)
EraseJournalEntry(15703)
EraseJournalEntry(15801)
EraseJournalEntry(16558)
EraseJournalEntry(20367)
EraseJournalEntry(23504)
EraseJournalEntry(23530)
~ EXTERN ~KELDORJ~ 193
  IF ~!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Nalia")~ THEN DO ~EraseJournalEntry(5059)
EraseJournalEntry(6934)
EraseJournalEntry(7235)
EraseJournalEntry(10106)
EraseJournalEntry(10107)
EraseJournalEntry(10670)
EraseJournalEntry(10671)
EraseJournalEntry(10933)
EraseJournalEntry(11689)
EraseJournalEntry(11755)
EraseJournalEntry(11904)
EraseJournalEntry(15698)
EraseJournalEntry(15703)
EraseJournalEntry(15801)
EraseJournalEntry(16558)
EraseJournalEntry(20367)
EraseJournalEntry(23504)
EraseJournalEntry(23530)
~ EXTERN ~NALIAJ~ 273
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Nalia")
IsValidForPartyDialog("Korgan")~ THEN DO ~EraseJournalEntry(5059)
EraseJournalEntry(6934)
EraseJournalEntry(7235)
EraseJournalEntry(10106)
EraseJournalEntry(10107)
EraseJournalEntry(10670)
EraseJournalEntry(10671)
EraseJournalEntry(10933)
EraseJournalEntry(11689)
EraseJournalEntry(11755)
EraseJournalEntry(11904)
EraseJournalEntry(15698)
EraseJournalEntry(15703)
EraseJournalEntry(15801)
EraseJournalEntry(16558)
EraseJournalEntry(20367)
EraseJournalEntry(23504)
EraseJournalEntry(23530)
~ EXTERN ~KORGANJ~ 120
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
IsValidForPartyDialog("Edwin")~ THEN DO ~EraseJournalEntry(5059)
EraseJournalEntry(6934)
EraseJournalEntry(7235)
EraseJournalEntry(10106)
EraseJournalEntry(10107)
EraseJournalEntry(10670)
EraseJournalEntry(10671)
EraseJournalEntry(10933)
EraseJournalEntry(11689)
EraseJournalEntry(11755)
EraseJournalEntry(11904)
EraseJournalEntry(15698)
EraseJournalEntry(15703)
EraseJournalEntry(15801)
EraseJournalEntry(16558)
EraseJournalEntry(20367)
EraseJournalEntry(23504)
EraseJournalEntry(23530)
~ EXTERN ~EDWINJ~ 103
END

IF ~~ THEN BEGIN 18 // from: 17.1
  SAY #54660 /* ~Certainly! Please take this gold. It is all that I have but I offer it with pleasure.~ */
  IF ~~ THEN REPLY #54661 /* ~One more thing. Do you know how I might enter the Asylum. A friend is trapped within and must be saved. Sanik was going to tell me but was slain by Galvena's assassin.~ */ DO ~GivePartyGold(1154)~ GOTO 0
  IF ~~ THEN REPLY #54662 /* ~Thank you and farewell.~ */ DO ~GivePartyGold(1154)~ GOTO 14
END
