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

BEGIN ~CORNEIL~

IF ~True()
~ THEN BEGIN 0 // from:
  SAY #1669 /* ~What is it you wish?  You are obviously out of place, here, so unless you have pressing business I am very busy and do not wish to be bothered by such as you.~ */
  IF ~~ THEN REPLY #1670 /* ~Might you help me? I have an interest in those taken by the Cowled Wizards.~ */ GOTO 1
  IF ~GlobalGT("JaheiraCursed","GLOBAL",0)
GlobalLT("JaheiraCursed","GLOBAL",8)
Global("TalkedToCorneil","GLOBAL",0)~ THEN REPLY #1671 /* ~I'm looking for a mage, or a group of mages. They may wear green and black robes as a uniform.~ */ DO ~SetGlobal("TalkedToCorneil","GLOBAL",1)
~ GOTO 2
  IF ~GlobalGT("JaheiraCursed","GLOBAL",0)
GlobalLT("JaheiraCursed","GLOBAL",8)
Global("TalkedToCorneil","GLOBAL",0)~ THEN REPLY #1672 /* ~I wonder if you might help me? Has a Baron Ployer sought the assistance of any of your members lately?~ */ DO ~SetGlobal("TalkedToCorneil","GLOBAL",1)
~ GOTO 3
  IF ~~ THEN REPLY #33235 /* ~What is your purpose here? What branch of the government are you with?~ */ GOTO 4
  IF ~Global("KnowsCowledBribe","LOCALS",1)
Global("BribedCowled","GLOBAL",0)
ReputationGT(LastTalkedToBy,3)~ THEN REPLY #59597 /* ~How much was that license to cast magic in the city, again?~ */ GOTO 9
  IF ~Global("BribedCowled","GLOBAL",2)~ THEN REPLY #59598 /* ~I have a complaint!  I paid you for the right to cast magic, here, and the Cowled Wizards are still hounding me!~ */ GOTO 14
  IF ~~ THEN REPLY #59601 /* ~Then I'll be on my way.~ */ GOTO 5
END

IF ~~ THEN BEGIN 1 // from: 4.0 0.0
  SAY #1673 /* ~What happens to those taken by the Cowled Wizards is not for decent people to know. No magic user goes unknown, and all may pass through here, but that information is not for you. Good day.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 2 // from: 4.1 0.1
  SAY #1674 /* ~I know of no such robes, though it would not be your business if I did. The Cowled Wizards will deal with such people. Leave, and ask me no more of such things.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #1363 /* ~Save Jaheira from Baron Ployer's curse.

I found a man named Corneil in the government building who seemed to be responsible for the Cowled Wizards in some way, but was certainly not very forthcoming... there is no help here for Jaheira that I can find.~ */ EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #1675 /* ~We are not an employable organization. Ours is a mandate given by the state. All other interests are those of individual members, not the group. You will not find what you need here. Begone.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #1363 /* ~Save Jaheira from Baron Ployer's curse.

I found a man named Corneil in the government building who seemed to be responsible for the Cowled Wizards in some way, but was certainly not very forthcoming... there is no help here for Jaheira that I can find.~ */ EXIT
END

IF ~~ THEN BEGIN 4 // from: 0.3
  SAY #33274 /* ~If it is any of your concern, I am saddled with clerical upkeep of mystical regulation. Magic is restricted in this land, and rightfully so. Mages are dangerous deviants.~ */
  IF ~~ THEN REPLY #33275 /* ~Have you any knowledge of those taken by the Cowled Wizards?~ */ GOTO 1
  IF ~GlobalGT("JaheiraCursed","GLOBAL",0)
GlobalLT("JaheiraCursed","GLOBAL",7)
Global("TalkedToCorneil","GLOBAL",0)~ THEN REPLY #33276 /* ~Do you know anything of a group of wizards in green and black?~ */ DO ~SetGlobal("TalkedToCorneil","GLOBAL",1)
~ GOTO 2
  IF ~Global("KnowsCowledBribe","LOCALS",0)~ THEN REPLY #59572 /* ~But I've seen plenty of mages in this city, and they don't seem to have any trouble from the Cowled Wizards!~ */ GOTO 6
  IF ~Global("BribedCowled","GLOBAL",2)~ THEN REPLY #59600 /* ~Then I have a complaint.  I paid you for the right to cast magic, and yet the Cowled Wizards are still hounding me!~ */ GOTO 14
  IF ~~ THEN REPLY #59573 /* ~I see.  Well, I'll be on my way, then.~ */ GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 8.2 7.1 6.2 4.4 0.6
  SAY #59574 /* ~Yes, good, good.  On your way... and do not bother me further.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from: 4.2
  SAY #59576 /* ~I'm sure you are mistaken.  The mages you speak of are either members of the Cowled Wizards or have proven themselves... (ahem!)... worthy of a license to use their magics here in the city.~ */
  IF ~~ THEN REPLY #59577 /* ~So how does one become a member of the Cowled Wizards, then?~ */ GOTO 7
  IF ~~ THEN REPLY #59578 /* ~So how do you prove yourself 'worthy' of a license?~ */ GOTO 8
  IF ~~ THEN REPLY #59579 /* ~I'll be on my way.~ */ GOTO 5
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #59580 /* ~(snort!)  One does not simply apply for membership.  Once you are worthy of membership amongst the Cowled Wizards, you will know.~ */
  IF ~~ THEN REPLY #59581 /* ~Well, what about this license, then?  How does one get that?~ */ GOTO 8
  IF ~~ THEN REPLY #59582 /* ~Fine, then, I'll be on my way.~ */ GOTO 5
END

IF ~~ THEN BEGIN 8 // from: 7.0 6.1
  SAY #59583 /* ~Well... for one, you must make a monetary... sacrifice.  After that, we allow you to use magic in the city.  Should you prove to be deviant, you lose your rights.~ */
  IF ~ReputationGT(LastTalkedToBy,3)~ THEN REPLY #59584 /* ~And just how much is this 'monetary sacrifice', exactly?~ */ GOTO 9
  IF ~ReputationLT(LastTalkedToBy,4)~ THEN REPLY #59589 /* ~And just how much is this 'monetary sacrifice', exactly?~ */ GOTO 10
  IF ~~ THEN REPLY #59585 /* ~I see.  Well, I'm not interested.~ */ GOTO 5
END

IF ~~ THEN BEGIN 9 // from: 8.0 0.4
  SAY #59586 /* ~5,000 gp.  No less.  And should you prove unworthy of the right to use magic in Amn, your coin is not returned.~ */
  IF ~PartyGoldGT(4999)~ THEN REPLY #59587 /* ~5,000 gp?  Fine, then.  Here you go.~ */ DO ~SetGlobal("KnowsCowledBribe","LOCALS",1)
TakePartyGold(5000)~ GOTO 11
  IF ~PartyGoldLT(5000)~ THEN REPLY #59591 /* ~5,000 gp!!  I don't have that much coin!~ */ DO ~SetGlobal("KnowsCowledBribe","LOCALS",1)~ GOTO 12
  IF ~~ THEN REPLY #59592 /* ~I'll think about it, I suppose.~ */ DO ~SetGlobal("KnowsCowledBribe","LOCALS",1)~ GOTO 13
  IF ~~ THEN REPLY #59593 /* ~I see.  Well, I'll be on my way, then.~ */ DO ~SetGlobal("KnowsCowledBribe","LOCALS",1)~ GOTO 13
END

IF ~~ THEN BEGIN 10 // from: 8.1
  SAY #59590 /* ~If I were you, I would not even bother asking.  You have already proven yourself destructive beyond the boundaries of common sense.  Begone with you, villain.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 11 // from: 9.0
  SAY #59594 /* ~Ahh?  I see.  Very well, then, my <LADYLORD>.  You and your companions will have the right, for now, to cast magic within the city.  Do not abuse the privilege or you will lose it.~ */
  IF ~~ THEN DO ~SetGlobal("BribedCowled","GLOBAL",1)~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 9.1
  SAY #59595 /* ~Then you must be careful not to use any magic you might have while within the city.  Come back, perhaps, when you are better off.  Now begone.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 13 // from: 9.3 9.2
  SAY #59596 /* ~Fine.  Should you change your mind, I shall still be here.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 14 // from: 4.3 0.5
  SAY #59599 /* ~Then obviously you have proven yourself to be a dangerous deviant. (snort!)  Now begone.  You are fortunate that we have not taken you into custody.~ */
  IF ~~ THEN EXIT
END
