// creator  : weidu.exe (version 23100)
// argument : _WILLIA.DLG
// game		 : .
// source	 : ./override/_WILLIA.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~_WILLIA~

IF ~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #78813 /* ~Well dip me in broth and call me stewed, if it isn't little <CHARNAME>! Why, I haven't seen you for nearly... umm... quite some time, anyway.~ */
  IF ~~ THEN REPLY #78814 /* ~Hello, Theodon; how have you been?~ */ GOTO 2
  IF ~~ THEN REPLY #78815 /* ~Get out of my way, old man. I have no time to speak with you.~ */ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: _XANJ:228.1 _XANJ:227.1 _XANJ:226.1 8.1 6.0 4.0 3.0 0.1 _VICONJ:135.0
  SAY #78816 /* ~You little rounder! Such a temper on you! Show some respect to the man who helped change your diapers! Hrmph! And you were such a nice child, once upon a time. Go on, get lost, you brat.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.0
  SAY #78817 /* ~I still remember you running about the keep in your little swaddling clothes, pestering the elders and spooking the cows. Ain't that right, Jessup?~ */
  IF ~~ THEN EXTERN ~_JESSUP~ 0
END

IF ~~ THEN BEGIN 3 // from:
  SAY #78823 /* ~Yep. Of course, you never did stay in those rags of yours long.~ */
  IF ~~ THEN REPLY #78824 /* ~I don't have the time for this, you old geezer. Goodbye!~ */ GOTO 1
  IF ~~ THEN REPLY #78825 /* ~Yes, yes, I remember. But how have you been?~ */ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.1
  SAY #78826 /* ~You'd be naked as a jaybird the moment someone turned their back on you. I remember the day that fella Blackstaff come floating in and there you were, tearing around the outer keep with Gorion hot on your trail. Took the cloak right off his back, you did, and made yourself just the cutest little...~ */
  IF ~~ THEN REPLY #78827 /* ~I don't need this kind of aggravation, you geezer! Get lost!~ */ GOTO 1
  IF ~~ THEN REPLY #78828 /* ~Yes yes YES, I remember. Could we drop it please? How have YOU been?~ */ GOTO 5
  IF ~Global("X#WILLIA4","GLOBAL",0)
Global("P#CoranMatch","GLOBAL",1)
!Global("P#CoranRomanceInactive","GLOBAL",1)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Global("P#CoranLover","GLOBAL",1)
~ THEN DO ~SetGlobal("X#WILLIA4","GLOBAL",1)~ EXTERN ~_CORANJ~ 270
  IF ~Global("X#WILLIA4","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
Global("P#CoranMatch","GLOBAL",1)
!Global("P#CoranRomanceInactive","GLOBAL",1)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Global("P#CoranLover","GLOBAL",1)
~ THEN DO ~SetGlobal("X#WILLIA4","GLOBAL",1)~ EXTERN ~_AJANTJ~ 227
  IF ~Global("X#WILLIA4","GLOBAL",0)
Global("P#CoranMatch","GLOBAL",1)
!Global("P#CoranRomanceInactive","GLOBAL",1)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Global("P#CoranLover","GLOBAL",1)
~ THEN DO ~SetGlobal("X#WILLIA4","GLOBAL",1)~ EXTERN ~_CORANJ~ 272
  IF ~Global("X#WILLIA4","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#WILLIA4","GLOBAL",1)~ EXTERN ~_VICONJ~ 135
END

IF ~~ THEN BEGIN 5 // from: 4.1 _VICONJ:135.1
  SAY #78829 /* ~Wait wait, I remember it all now! There was Khelben Blackstaff, trying his hardest to look important while you ran through the stables with his cape tied around your waist. Such a lark, eh Jessup?~ */
  IF ~~ THEN EXTERN ~_JESSUP~ 1
  IF ~Global("X#ManyInt2","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#ManyInt2","GLOBAL",1)~ EXTERN ~_CORANJ~ 130
END

IF ~~ THEN BEGIN 6 // from:
  SAY #78830 /* ~You and me both! Gorion was shaking like a leaf, he was so mad.~ */
  IF ~~ THEN REPLY #78831 /* ~I've about had enough out of you two! Get lost!~ */ GOTO 1
  IF ~~ THEN REPLY #78832 /* ~As fun as this has been, I should really be going.~ */ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.1
  SAY #78833 /* ~Nobody was sure what to do, and then Khelben mutters some words and catches you by the scruff of the neck with some sort of spectral hand. He hauls you out and drops you right in front of him, grabbing his filthy cape in the process. Everyone was scared, they were. Weren't they, Jessup?~ */
  IF ~~ THEN EXTERN ~_JESSUP~ 2
END

IF ~~ THEN BEGIN 8 // from: _XANJ:163.0
  SAY #78834 /* ~Yep, and then old Khelben busts out in the biggest laugh you ever heard. Everyone in the keep was laughing like mad, except you, <CHARNAME>. You just stood there naked as the day your were born and wondering what the fuss was about. I tell you, those were the days.~ */
  IF ~~ THEN REPLY #78835 /* ~Um, yes. I think I'll be going now.~ */ GOTO 9
  IF ~~ THEN REPLY #78836 /* ~Keep your hazy recollections to yourselves, you old farts!~ */ GOTO 1
  IF ~Global("X#WILLIA8","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA8","GLOBAL",1)~ EXTERN ~_XANJ~ 226
  IF ~Global("X#WILLIA8","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA8","GLOBAL",1)~ EXTERN ~_CORANJ~ 276
  IF ~Global("X#WILLIA8","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#WILLIA8","GLOBAL",1)~ EXTERN ~_GARRIJ~ 164
END

IF ~~ THEN BEGIN 9 // from: _XANJ:228.0 _XANJ:227.0 _XANJ:226.0 8.0
  SAY #78837 /* ~Oh certainly, little one. Stop by any old time though. I've got some paintings of you as a youngster I'm sure your little friends would love to see. Remember the one of <CHARNAME> on the bearskin rug, Jessup?~ */
  IF ~~ THEN EXTERN ~_JESSUP~ 3
END

IF ~~ THEN BEGIN 10 // from:
  SAY #78838 /* ~Cute as a bug, you were. Go play with your friends now. Go on.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
  IF ~Global("X#WILLIA10","GLOBAL",0)~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ GOTO 12
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_KHALIJ~ 40
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_JAHEIJ~ 238
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_KHALIJ~ 42
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_JAHEIJ~ 240
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ GOTO 17
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_IMOEN2~ 343
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ GOTO 21
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_CORANJ~ 232
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_ALORAJ~ 85
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ GOTO 30
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_AJANTJ~ 198
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_GARRIJ~ 142
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ GOTO 42
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_EDWINJ~ 101
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ GOTO 52
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_MINSCJ~ 107
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_DYNAHJ~ 132
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_MINSCJ~ 109
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ GOTO 76
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_IMOEN2~ 357
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_XANJ~ 204
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_CORANJ~ 246
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_MINSCJ~ 119
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ GOTO 111
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_XANJ~ 208
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ GOTO 127
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_ELDOTJ~ 73
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ GOTO 145
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_BRANWJ~ 59
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
!Global("X#AjantisRomanceActive","GLOBAL",3)
Global("X#AjantisRomanceMatch","GLOBAL",1)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ GOTO 165
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
!Global("X#AjantisRomanceActive","GLOBAL",3)
Global("X#AjantisRomanceMatch","GLOBAL",1)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_AJANTJ~ 218
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
!Global("X#AjantisRomanceActive","GLOBAL",3)
Global("X#AjantisRomanceMatch","GLOBAL",1)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_AJANTJ~ 220
  IF ~Global("X#WILLIA10","GLOBAL",0)
InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
!Global("X#AjantisRomanceActive","GLOBAL",3)
Global("X#AjantisRomanceMatch","GLOBAL",1)
~ THEN DO ~SetGlobal("X#WILLIA10","GLOBAL",1)~ EXTERN ~_AJANTJ~ 223
END

IF ~~ THEN BEGIN 11 // from:
  SAY #78822 /* ~Oh, hello young one. I trust you are keeping out of trouble? Of course you are. Run along and play with your little friends now.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 10.1
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 13 // from:
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 14 // from:
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 15 // from:
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 16 // from:
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 17 // from: 10.6
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 18
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 47
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 243
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 46
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 242
END

IF ~~ THEN BEGIN 18 // from: 17.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 19 // from:
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 20
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 49
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 245
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 48
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 244
END

IF ~~ THEN BEGIN 20 // from: 19.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 21 // from: 10.8
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 23
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 51
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 247
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 50
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 246
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 22
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 344
END

IF ~~ THEN BEGIN 22 // from: 21.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 23
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 51
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 247
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 50
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 246
END

IF ~~ THEN BEGIN 23 // from: 22.0 21.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 24 // from:
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 26
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 53
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 249
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 52
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 248
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 25
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 345
END

IF ~~ THEN BEGIN 25 // from: 24.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 26
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 53
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 249
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 52
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 248
END

IF ~~ THEN BEGIN 26 // from: 25.0 24.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 27 // from:
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 29
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 55
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 251
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 54
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 250
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 28
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 346
END

IF ~~ THEN BEGIN 28 // from: 27.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 29
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 55
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 251
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 54
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 250
END

IF ~~ THEN BEGIN 29 // from: 28.0 27.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 30 // from: 10.11
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 33
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 57
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 253
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 56
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 252
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 32
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 347
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 31
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 234
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 86
END

IF ~~ THEN BEGIN 31 // from: 30.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 33
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 57
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 253
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 56
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 252
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 32
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 347
END

IF ~~ THEN BEGIN 32 // from: 31.5 30.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 33
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 57
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 253
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 56
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 252
END

IF ~~ THEN BEGIN 33 // from: 32.0 31.0 30.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 34 // from:
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 37
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 59
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 255
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 58
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 254
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 36
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 348
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 35
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 235
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 87
END

IF ~~ THEN BEGIN 35 // from: 34.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 37
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 59
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 255
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 58
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 254
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 36
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 348
END

IF ~~ THEN BEGIN 36 // from: 35.5 34.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 37
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 59
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 255
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 58
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 254
END

IF ~~ THEN BEGIN 37 // from: 36.0 35.0 34.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 38 // from:
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 41
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 61
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 257
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 60
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 256
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 40
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 349
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 39
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 236
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 88
END

IF ~~ THEN BEGIN 39 // from: 38.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 41
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 61
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 257
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 60
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 256
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 40
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 349
END

IF ~~ THEN BEGIN 40 // from: 39.5 38.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 41
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 61
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 257
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 60
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 256
END

IF ~~ THEN BEGIN 41 // from: 40.0 39.0 38.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 42 // from: 10.14
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 46
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 63
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 259
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 62
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 258
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 45
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 350
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 44
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 237
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 89
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 43
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 200
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 143
END

IF ~~ THEN BEGIN 43 // from: 42.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 46
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 63
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 259
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 62
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 258
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 45
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 350
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 44
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 237
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 89
END

IF ~~ THEN BEGIN 44 // from: 43.7 42.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 46
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 63
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 259
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 62
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 258
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 45
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 350
END

IF ~~ THEN BEGIN 45 // from: 44.5 43.5 42.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 46
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 63
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 259
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 62
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 258
END

IF ~~ THEN BEGIN 46 // from: 45.0 44.0 43.0 42.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 47 // from:
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 51
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 65
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 261
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 64
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 260
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 50
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 351
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 49
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 238
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 90
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 48
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 201
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 144
END

IF ~~ THEN BEGIN 48 // from: 47.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 51
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 65
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 261
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 64
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 260
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 50
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 351
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 49
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 238
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 90
END

IF ~~ THEN BEGIN 49 // from: 48.7 47.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 51
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 65
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 261
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 64
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 260
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 50
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 351
END

IF ~~ THEN BEGIN 50 // from: 49.5 48.5 47.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 51
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 65
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 261
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 64
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 260
END

IF ~~ THEN BEGIN 51 // from: 50.0 49.0 48.0 47.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 52 // from: 10.16
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 57
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 67
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 263
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 66
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 262
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 56
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 352
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 55
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 239
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 91
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 54
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 202
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 145
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 53
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 102
END

IF ~~ THEN BEGIN 53 // from: 52.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 57
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 67
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 263
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 66
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 262
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 56
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 352
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 55
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 239
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 91
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 54
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 202
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 145
END

IF ~~ THEN BEGIN 54 // from: 53.10 52.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 57
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 67
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 263
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 66
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 262
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 56
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 352
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 55
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 239
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 91
END

IF ~~ THEN BEGIN 55 // from: 54.7 53.7 52.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 57
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 67
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 263
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 66
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 262
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 56
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 352
END

IF ~~ THEN BEGIN 56 // from: 55.5 54.5 53.5 52.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 57
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 67
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 263
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 66
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 262
END

IF ~~ THEN BEGIN 57 // from: 56.0 55.0 54.0 53.0 52.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 58 // from:
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 63
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 69
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 265
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 68
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 264
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 62
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 353
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 61
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 240
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 92
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 60
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 203
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 146
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 59
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 103
END

IF ~~ THEN BEGIN 59 // from: 58.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 63
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 69
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 265
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 68
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 264
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 62
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 353
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 61
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 240
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 92
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 60
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 203
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 146
END

IF ~~ THEN BEGIN 60 // from: 59.10 58.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 63
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 69
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 265
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 68
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 264
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 62
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 353
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 61
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 240
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 92
END

IF ~~ THEN BEGIN 61 // from: 60.7 59.7 58.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 63
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 69
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 265
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 68
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 264
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 62
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 353
END

IF ~~ THEN BEGIN 62 // from: 61.5 60.5 59.5 58.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 63
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 69
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 265
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 68
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 264
END

IF ~~ THEN BEGIN 63 // from: 62.0 61.0 60.0 59.0 58.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 64 // from:
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 69
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 71
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 267
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 70
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 266
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 68
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 354
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 67
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 241
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 93
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 66
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 204
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 147
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 65
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 104
END

IF ~~ THEN BEGIN 65 // from: 64.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 69
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 71
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 267
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 70
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 266
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 68
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 354
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 67
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 241
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 93
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 66
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 204
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 147
END

IF ~~ THEN BEGIN 66 // from: 65.10 64.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 69
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 71
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 267
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 70
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 266
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 68
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 354
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 67
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 241
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 93
END

IF ~~ THEN BEGIN 67 // from: 66.7 65.7 64.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 69
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 71
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 267
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 70
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 266
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 68
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 354
END

IF ~~ THEN BEGIN 68 // from: 67.5 66.5 65.5 64.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 69
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 71
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 267
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 70
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 266
END

IF ~~ THEN BEGIN 69 // from: 68.0 67.0 66.0 65.0 64.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 70 // from:
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 75
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 73
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 269
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 72
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 268
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 74
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 355
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 73
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 242
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 94
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 72
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 205
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 148
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 71
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 105
END

IF ~~ THEN BEGIN 71 // from: 70.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 75
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 73
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 269
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 72
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 268
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 74
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 355
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 73
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 242
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 94
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 72
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 205
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 148
END

IF ~~ THEN BEGIN 72 // from: 71.10 70.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 75
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 73
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 269
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 72
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 268
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 74
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 355
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 73
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 242
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 94
END

IF ~~ THEN BEGIN 73 // from: 72.7 71.7 70.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 75
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 73
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 269
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 72
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 268
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 74
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 355
END

IF ~~ THEN BEGIN 74 // from: 73.5 72.5 71.5 70.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 75
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 73
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 269
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 72
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 268
END

IF ~~ THEN BEGIN 75 // from: 74.0 73.0 72.0 71.0 70.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 76 // from: 10.20
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 82
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 75
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 271
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 74
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 270
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 81
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 356
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 80
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 243
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 95
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 79
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 206
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 149
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 78
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 106
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 77
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 112
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 134
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 111
END

IF ~~ THEN BEGIN 77 // from: 76.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 82
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 75
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 271
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 74
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 270
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 81
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 356
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 80
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 243
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 95
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 79
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 206
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 149
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 78
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 106
END

IF ~~ THEN BEGIN 78 // from: 77.13 76.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 82
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 75
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 271
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 74
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 270
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 81
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 356
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 80
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 243
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 95
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 79
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 206
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 149
END

IF ~~ THEN BEGIN 79 // from: 78.10 77.10 76.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 82
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 75
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 271
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 74
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 270
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 81
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 356
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 80
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 243
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 95
END

IF ~~ THEN BEGIN 80 // from: 79.7 78.7 77.7 76.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 82
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 75
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 271
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 74
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 270
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 81
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 356
END

IF ~~ THEN BEGIN 81 // from: 80.5 79.5 78.5 77.5 76.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 82
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 75
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 271
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 74
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 270
END

IF ~~ THEN BEGIN 82 // from: 81.0 80.0 79.0 78.0 77.0 76.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 83 // from:
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 77
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 273
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 76
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 272
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 88
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 358
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 87
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 244
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 96
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 86
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 207
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 150
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 85
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 107
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 84
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 114
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 135
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 113
END

IF ~~ THEN BEGIN 84 // from: 83.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 77
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 273
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 76
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 272
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 88
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 358
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 87
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 244
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 96
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 86
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 207
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 150
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 85
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 107
END

IF ~~ THEN BEGIN 85 // from: 84.13 83.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 77
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 273
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 76
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 272
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 88
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 358
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 87
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 244
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 96
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 86
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 207
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 150
END

IF ~~ THEN BEGIN 86 // from: 85.10 84.10 83.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 77
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 273
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 76
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 272
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 88
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 358
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 87
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 244
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 96
END

IF ~~ THEN BEGIN 87 // from: 86.7 85.7 84.7 83.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 77
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 273
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 76
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 272
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 88
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 358
END

IF ~~ THEN BEGIN 88 // from: 87.5 86.5 85.5 84.5 83.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 77
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 273
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 76
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 272
END

IF ~~ THEN BEGIN 89 // from: 88.0 87.0 86.0 85.0 84.0 83.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 90 // from: _XANJ:204.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 79
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 275
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 78
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 274
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 95
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 360
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 94
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 245
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 97
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 93
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 208
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 151
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 92
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 108
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 91
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 116
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 136
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 115
END

IF ~~ THEN BEGIN 91 // from: _XANJ:204.15 90.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 79
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 275
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 78
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 274
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 95
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 360
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 94
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 245
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 97
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 93
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 208
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 151
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 92
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 108
END

IF ~~ THEN BEGIN 92 // from: _XANJ:204.13 91.13 90.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 79
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 275
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 78
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 274
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 95
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 360
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 94
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 245
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 97
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 93
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 208
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 151
END

IF ~~ THEN BEGIN 93 // from: _XANJ:204.10 92.10 91.10 90.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 79
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 275
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 78
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 274
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 95
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 360
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 94
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 245
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 97
END

IF ~~ THEN BEGIN 94 // from: _XANJ:204.7 93.7 92.7 91.7 90.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 79
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 275
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 78
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 274
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 95
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 360
END

IF ~~ THEN BEGIN 95 // from: _XANJ:204.5 94.5 93.5 92.5 91.5 90.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 79
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 275
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 78
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 274
END

IF ~~ THEN BEGIN 96 // from: _XANJ:204.0 95.0 94.0 93.0 92.0 91.0 90.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 97 // from: _XANJ:205.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 81
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 277
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 80
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 276
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 102
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 362
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 101
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 247
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 98
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 100
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 209
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 152
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 99
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 109
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 98
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 118
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 137
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 117
END

IF ~~ THEN BEGIN 98 // from: _XANJ:205.15 97.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 81
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 277
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 80
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 276
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 102
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 362
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 101
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 247
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 98
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 100
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 209
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 152
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 99
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 109
END

IF ~~ THEN BEGIN 99 // from: _XANJ:205.13 98.13 97.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 81
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 277
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 80
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 276
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 102
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 362
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 101
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 247
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 98
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 100
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 209
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 152
END

IF ~~ THEN BEGIN 100 // from: _XANJ:205.10 99.10 98.10 97.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 81
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 277
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 80
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 276
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 102
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 362
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 101
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 247
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 98
END

IF ~~ THEN BEGIN 101 // from: _XANJ:205.7 100.7 99.7 98.7 97.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 81
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 277
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 80
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 276
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 102
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 362
END

IF ~~ THEN BEGIN 102 // from: _XANJ:205.5 101.5 100.5 99.5 98.5 97.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 81
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 277
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 80
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 276
END

IF ~~ THEN BEGIN 103 // from: _XANJ:205.0 102.0 101.0 100.0 99.0 98.0 97.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 104 // from: _XANJ:206.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 110
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 83
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 279
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 82
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 278
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 109
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 364
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 108
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 249
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 99
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 107
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 210
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 153
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 106
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 110
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 105
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 121
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 138
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 120
END

IF ~~ THEN BEGIN 105 // from: _XANJ:206.15 104.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 110
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 83
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 279
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 82
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 278
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 109
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 364
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 108
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 249
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 99
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 107
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 210
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 153
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 106
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 110
END

IF ~~ THEN BEGIN 106 // from: _XANJ:206.13 105.13 104.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 110
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 83
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 279
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 82
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 278
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 109
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 364
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 108
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 249
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 99
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 107
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 210
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 153
END

IF ~~ THEN BEGIN 107 // from: _XANJ:206.10 106.10 105.10 104.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 110
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 83
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 279
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 82
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 278
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 109
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 364
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 108
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 249
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 99
END

IF ~~ THEN BEGIN 108 // from: _XANJ:206.7 107.7 106.7 105.7 104.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 110
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 83
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 279
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 82
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 278
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 109
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 364
END

IF ~~ THEN BEGIN 109 // from: _XANJ:206.5 108.5 107.5 106.5 105.5 104.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 110
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 83
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 279
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 82
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 278
END

IF ~~ THEN BEGIN 110 // from: _XANJ:206.0 109.0 108.0 107.0 106.0 105.0 104.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 111 // from: 10.25
  SAY #103012 /* ~Ah, the carefree youth, how I envy you...~ */
  IF ~~ THEN GOTO 118
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 85
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 281
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 84
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 280
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 117
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 366
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 116
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 251
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 100
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 115
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 211
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 154
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 114
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 111
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 113
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 124
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 139
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 123
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 112
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 365
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 207
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 250
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 122
END

IF ~~ THEN BEGIN 112 // from: _XANJ:207.19 111.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 118
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 85
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 281
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 84
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 280
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 117
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 366
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 116
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 251
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 100
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 115
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 211
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 154
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 114
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 111
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 113
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 124
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 139
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 123
END

IF ~~ THEN BEGIN 113 // from: _XANJ:207.15 112.15 111.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 118
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 85
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 281
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 84
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 280
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 117
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 366
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 116
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 251
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 100
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 115
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 211
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 154
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 114
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 111
END

IF ~~ THEN BEGIN 114 // from: _XANJ:207.13 113.13 112.13 111.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 118
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 85
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 281
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 84
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 280
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 117
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 366
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 116
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 251
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 100
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 115
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 211
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 154
END

IF ~~ THEN BEGIN 115 // from: _XANJ:207.10 114.10 113.10 112.10 111.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 118
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 85
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 281
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 84
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 280
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 117
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 366
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 116
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 251
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 100
END

IF ~~ THEN BEGIN 116 // from: _XANJ:207.7 115.7 114.7 113.7 112.7 111.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 118
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 85
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 281
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 84
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 280
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 117
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 366
END

IF ~~ THEN BEGIN 117 // from: _XANJ:207.5 116.5 115.5 114.5 113.5 112.5 111.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 118
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 85
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 281
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 84
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 280
END

IF ~~ THEN BEGIN 118 // from: _XANJ:207.0 117.0 116.0 115.0 114.0 113.0 112.0 111.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 119 // from: _XANJ:208.24
  SAY #103012 /* ~Ah, the carefree youth, how I envy you...~ */
  IF ~~ THEN GOTO 126
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 87
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 283
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 86
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 282
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 125
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 368
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 124
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 253
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 101
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 123
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 212
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 155
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 122
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 112
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 121
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 127
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 140
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 126
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 120
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 367
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 209
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 252
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 125
END

IF ~~ THEN BEGIN 120 // from: _XANJ:209.19 _XANJ:208.19 119.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 126
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 87
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 283
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 86
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 282
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 125
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 368
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 124
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 253
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 101
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 123
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 212
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 155
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 122
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 112
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 121
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 127
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 140
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 126
END

IF ~~ THEN BEGIN 121 // from: _XANJ:209.15 _XANJ:208.15 120.15 119.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 126
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 87
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 283
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 86
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 282
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 125
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 368
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 124
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 253
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 101
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 123
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 212
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 155
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 122
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 112
END

IF ~~ THEN BEGIN 122 // from: _XANJ:209.13 _XANJ:208.13 121.13 120.13 119.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 126
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 87
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 283
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 86
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 282
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 125
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 368
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 124
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 253
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 101
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 123
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 212
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 155
END

IF ~~ THEN BEGIN 123 // from: _XANJ:209.10 _XANJ:208.10 122.10 121.10 120.10 119.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 126
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 87
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 283
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 86
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 282
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 125
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 368
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 124
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 253
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 101
END

IF ~~ THEN BEGIN 124 // from: _XANJ:209.7 _XANJ:208.7 123.7 122.7 121.7 120.7 119.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 126
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 87
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 283
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 86
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 282
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 125
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 368
END

IF ~~ THEN BEGIN 125 // from: _XANJ:209.5 _XANJ:208.5 124.5 123.5 122.5 121.5 120.5 119.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 126
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 87
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 283
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 86
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 282
END

IF ~~ THEN BEGIN 126 // from: _XANJ:209.0 _XANJ:208.0 125.0 124.0 123.0 122.0 121.0 120.0 119.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 127 // from: 10.27
  SAY #103010 /* ~Aye, little one...~ */
  IF ~~ THEN GOTO 135
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 285
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 88
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 284
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 134
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 370
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 133
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 255
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 102
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 132
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 213
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 156
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 131
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 113
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 130
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 130
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 141
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 129
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 129
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 369
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 211
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 254
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 128
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 128
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 210
END

IF ~~ THEN BEGIN 128 // from: _XANJ:210.24 127.24
  SAY #103012 /* ~Ah, the carefree youth, how I envy you...~ */
  IF ~~ THEN GOTO 135
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 285
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 88
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 284
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 134
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 370
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 133
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 255
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 102
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 132
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 213
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 156
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 131
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 113
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 130
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 130
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 141
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 129
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 129
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 369
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 211
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 254
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 128
END

IF ~~ THEN BEGIN 129 // from: _XANJ:211.19 _XANJ:210.19 128.19 127.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 135
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 285
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 88
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 284
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 134
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 370
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 133
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 255
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 102
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 132
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 213
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 156
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 131
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 113
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 130
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 130
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 141
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 129
END

IF ~~ THEN BEGIN 130 // from: _XANJ:211.15 _XANJ:210.15 129.15 128.15 127.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 135
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 285
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 88
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 284
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 134
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 370
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 133
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 255
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 102
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 132
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 213
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 156
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 131
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 113
END

IF ~~ THEN BEGIN 131 // from: _XANJ:211.13 _XANJ:210.13 130.13 129.13 128.13 127.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 135
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 285
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 88
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 284
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 134
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 370
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 133
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 255
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 102
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 132
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 213
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 156
END

IF ~~ THEN BEGIN 132 // from: _XANJ:211.10 _XANJ:210.10 131.10 130.10 129.10 128.10 127.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 135
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 285
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 88
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 284
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 134
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 370
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 133
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 255
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 102
END

IF ~~ THEN BEGIN 133 // from: _XANJ:211.7 _XANJ:210.7 132.7 131.7 130.7 129.7 128.7 127.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 135
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 285
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 88
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 284
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 134
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 370
END

IF ~~ THEN BEGIN 134 // from: _XANJ:211.5 _XANJ:210.5 133.5 132.5 131.5 130.5 129.5 128.5 127.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 135
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 89
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 285
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 88
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 284
END

IF ~~ THEN BEGIN 135 // from: _XANJ:211.0 _XANJ:210.0 134.0 133.0 132.0 131.0 130.0 129.0 128.0 127.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 136 // from:
  SAY #103010 /* ~Aye, little one...~ */
  IF ~~ THEN GOTO 144
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 91
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 287
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 90
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 286
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 143
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 372
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 142
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 257
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 103
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 141
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 214
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 157
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 140
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 114
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 139
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 133
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 142
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 132
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 138
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 371
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 213
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 256
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 131
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 137
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 212
END

IF ~~ THEN BEGIN 137 // from: _XANJ:212.24 136.24
  SAY #103012 /* ~Ah, the carefree youth, how I envy you...~ */
  IF ~~ THEN GOTO 144
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 91
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 287
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 90
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 286
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 143
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 372
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 142
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 257
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 103
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 141
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 214
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 157
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 140
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 114
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 139
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 133
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 142
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 132
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 138
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 371
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 213
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 256
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 131
END

IF ~~ THEN BEGIN 138 // from: _XANJ:213.19 _XANJ:212.19 137.19 136.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 144
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 91
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 287
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 90
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 286
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 143
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 372
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 142
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 257
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 103
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 141
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 214
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 157
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 140
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 114
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 139
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 133
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 142
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 132
END

IF ~~ THEN BEGIN 139 // from: _XANJ:213.15 _XANJ:212.15 138.15 137.15 136.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 144
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 91
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 287
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 90
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 286
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 143
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 372
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 142
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 257
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 103
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 141
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 214
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 157
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 140
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 114
END

IF ~~ THEN BEGIN 140 // from: _XANJ:213.13 _XANJ:212.13 139.13 138.13 137.13 136.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 144
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 91
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 287
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 90
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 286
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 143
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 372
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 142
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 257
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 103
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 141
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 214
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 157
END

IF ~~ THEN BEGIN 141 // from: _XANJ:213.10 _XANJ:212.10 140.10 139.10 138.10 137.10 136.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 144
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 91
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 287
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 90
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 286
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 143
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 372
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 142
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 257
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 103
END

IF ~~ THEN BEGIN 142 // from: _XANJ:213.7 _XANJ:212.7 141.7 140.7 139.7 138.7 137.7 136.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 144
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 91
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 287
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 90
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 286
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 143
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 372
END

IF ~~ THEN BEGIN 143 // from: _XANJ:213.5 _XANJ:212.5 142.5 141.5 140.5 139.5 138.5 137.5 136.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 144
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 91
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 287
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 90
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 286
END

IF ~~ THEN BEGIN 144 // from: _XANJ:213.0 _XANJ:212.0 143.0 142.0 141.0 140.0 139.0 138.0 137.0 136.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 145 // from: 10.29
  SAY #103008 /* ~Ah, <PRO_HESHE> is still a cutie!~ */
  IF ~~ THEN GOTO 154
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 93
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 289
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 92
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 288
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 153
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 374
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 152
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 259
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 104
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 151
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 215
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 158
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 150
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 115
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 149
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 136
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 143
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 135
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 148
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 373
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 215
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 258
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 134
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 147
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 214
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN GOTO 146
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ELDOTJ~ 74
END

IF ~~ THEN BEGIN 146 // from: 145.26
  SAY #103010 /* ~Aye, little one...~ */
  IF ~~ THEN GOTO 154
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 93
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 289
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 92
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 288
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 153
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 374
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 152
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 259
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 104
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 151
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 215
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 158
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 150
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 115
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 149
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 136
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 143
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 135
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 148
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 373
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 215
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 258
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 134
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 147
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 214
END

IF ~~ THEN BEGIN 147 // from: _XANJ:214.24 146.24 145.24
  SAY #103012 /* ~Ah, the carefree youth, how I envy you...~ */
  IF ~~ THEN GOTO 154
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 93
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 289
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 92
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 288
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 153
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 374
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 152
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 259
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 104
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 151
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 215
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 158
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 150
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 115
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 149
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 136
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 143
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 135
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 148
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 373
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 215
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 258
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 134
END

IF ~~ THEN BEGIN 148 // from: _XANJ:215.19 _XANJ:214.19 147.19 146.19 145.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 154
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 93
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 289
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 92
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 288
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 153
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 374
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 152
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 259
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 104
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 151
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 215
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 158
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 150
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 115
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 149
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 136
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 143
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 135
END

IF ~~ THEN BEGIN 149 // from: _XANJ:215.15 _XANJ:214.15 148.15 147.15 146.15 145.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 154
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 93
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 289
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 92
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 288
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 153
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 374
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 152
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 259
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 104
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 151
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 215
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 158
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 150
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 115
END

IF ~~ THEN BEGIN 150 // from: _XANJ:215.13 _XANJ:214.13 149.13 148.13 147.13 146.13 145.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 154
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 93
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 289
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 92
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 288
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 153
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 374
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 152
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 259
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 104
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 151
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 215
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 158
END

IF ~~ THEN BEGIN 151 // from: _XANJ:215.10 _XANJ:214.10 150.10 149.10 148.10 147.10 146.10 145.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 154
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 93
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 289
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 92
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 288
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 153
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 374
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 152
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 259
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 104
END

IF ~~ THEN BEGIN 152 // from: _XANJ:215.7 _XANJ:214.7 151.7 150.7 149.7 148.7 147.7 146.7 145.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 154
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 93
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 289
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 92
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 288
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 153
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 374
END

IF ~~ THEN BEGIN 153 // from: _XANJ:215.5 _XANJ:214.5 152.5 151.5 150.5 149.5 148.5 147.5 146.5 145.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 154
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 93
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 289
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 92
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 288
END

IF ~~ THEN BEGIN 154 // from: _XANJ:215.0 _XANJ:214.0 153.0 152.0 151.0 150.0 149.0 148.0 147.0 146.0 145.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 155 // from:
  SAY #103008 /* ~Ah, <PRO_HESHE> is still a cutie!~ */
  IF ~~ THEN GOTO 164
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 95
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 291
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 94
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 290
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 163
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 376
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 162
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 261
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 105
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 161
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 216
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 159
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 160
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 116
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 159
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 139
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 144
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 138
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 158
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 375
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 217
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 260
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 137
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 157
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 216
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN GOTO 156
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ELDOTJ~ 75
END

IF ~~ THEN BEGIN 156 // from: 155.26
  SAY #103010 /* ~Aye, little one...~ */
  IF ~~ THEN GOTO 164
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 95
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 291
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 94
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 290
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 163
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 376
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 162
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 261
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 105
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 161
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 216
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 159
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 160
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 116
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 159
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 139
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 144
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 138
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 158
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 375
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 217
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 260
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 137
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 157
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 216
END

IF ~~ THEN BEGIN 157 // from: _XANJ:216.24 156.24 155.24
  SAY #103012 /* ~Ah, the carefree youth, how I envy you...~ */
  IF ~~ THEN GOTO 164
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 95
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 291
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 94
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 290
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 163
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 376
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 162
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 261
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 105
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 161
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 216
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 159
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 160
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 116
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 159
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 139
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 144
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 138
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 158
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 375
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 217
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 260
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 137
END

IF ~~ THEN BEGIN 158 // from: _XANJ:217.19 _XANJ:216.19 157.19 156.19 155.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 164
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 95
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 291
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 94
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 290
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 163
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 376
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 162
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 261
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 105
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 161
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 216
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 159
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 160
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 116
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 159
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 139
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 144
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 138
END

IF ~~ THEN BEGIN 159 // from: _XANJ:217.15 _XANJ:216.15 158.15 157.15 156.15 155.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 164
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 95
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 291
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 94
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 290
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 163
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 376
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 162
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 261
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 105
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 161
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 216
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 159
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 160
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 116
END

IF ~~ THEN BEGIN 160 // from: _XANJ:217.13 _XANJ:216.13 159.13 158.13 157.13 156.13 155.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 164
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 95
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 291
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 94
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 290
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 163
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 376
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 162
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 261
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 105
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 161
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 216
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 159
END

IF ~~ THEN BEGIN 161 // from: _XANJ:217.10 _XANJ:216.10 160.10 159.10 158.10 157.10 156.10 155.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 164
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 95
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 291
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 94
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 290
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 163
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 376
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 162
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 261
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 105
END

IF ~~ THEN BEGIN 162 // from: _XANJ:217.7 _XANJ:216.7 161.7 160.7 159.7 158.7 157.7 156.7 155.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 164
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 95
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 291
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 94
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 290
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 163
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 376
END

IF ~~ THEN BEGIN 163 // from: _XANJ:217.5 _XANJ:216.5 162.5 161.5 160.5 159.5 158.5 157.5 156.5 155.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 164
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 95
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 291
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 94
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 290
END

IF ~~ THEN BEGIN 164 // from: _XANJ:217.0 _XANJ:216.0 163.0 162.0 161.0 160.0 159.0 158.0 157.0 156.0 155.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 165 // from: 10.31
  SAY #103006 /* ~Of course, she's a baby...~ */
  IF ~~ THEN GOTO 175
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 97
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 293
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 292
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 174
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 378
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 173
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 263
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 106
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 172
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 217
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 160
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 171
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 117
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 170
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 142
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 145
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 141
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 169
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 377
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 219
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 262
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 140
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 168
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 218
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN GOTO 167
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ELDOTJ~ 76
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN GOTO 166
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 60
END

IF ~~ THEN BEGIN 166 // from: 165.28
  SAY #103008 /* ~Ah, <PRO_HESHE> is still a cutie!~ */
  IF ~~ THEN GOTO 175
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 97
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 293
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 292
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 174
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 378
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 173
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 263
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 106
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 172
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 217
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 160
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 171
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 117
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 170
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 142
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 145
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 141
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 169
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 377
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 219
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 262
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 140
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 168
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 218
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN GOTO 167
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ELDOTJ~ 76
END

IF ~~ THEN BEGIN 167 // from: 166.26 165.26
  SAY #103010 /* ~Aye, little one...~ */
  IF ~~ THEN GOTO 175
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 97
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 293
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 292
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 174
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 378
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 173
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 263
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 106
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 172
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 217
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 160
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 171
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 117
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 170
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 142
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 145
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 141
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 169
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 377
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 219
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 262
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 140
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 168
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 218
END

IF ~~ THEN BEGIN 168 // from: _XANJ:218.24 167.24 166.24 165.24
  SAY #103012 /* ~Ah, the carefree youth, how I envy you...~ */
  IF ~~ THEN GOTO 175
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 97
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 293
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 292
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 174
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 378
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 173
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 263
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 106
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 172
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 217
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 160
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 171
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 117
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 170
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 142
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 145
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 141
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 169
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 377
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 219
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 262
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 140
END

IF ~~ THEN BEGIN 169 // from: _XANJ:219.19 _XANJ:218.19 168.19 167.19 166.19 165.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 175
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 97
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 293
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 292
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 174
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 378
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 173
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 263
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 106
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 172
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 217
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 160
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 171
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 117
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 170
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 142
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 145
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 141
END

IF ~~ THEN BEGIN 170 // from: _XANJ:219.15 _XANJ:218.15 169.15 168.15 167.15 166.15 165.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 175
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 97
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 293
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 292
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 174
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 378
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 173
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 263
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 106
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 172
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 217
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 160
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 171
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 117
END

IF ~~ THEN BEGIN 171 // from: _XANJ:219.13 _XANJ:218.13 170.13 169.13 168.13 167.13 166.13 165.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 175
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 97
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 293
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 292
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 174
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 378
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 173
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 263
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 106
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 172
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 217
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 160
END

IF ~~ THEN BEGIN 172 // from: _XANJ:219.10 _XANJ:218.10 171.10 170.10 169.10 168.10 167.10 166.10 165.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 175
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 97
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 293
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 292
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 174
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 378
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 173
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 263
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 106
END

IF ~~ THEN BEGIN 173 // from: _XANJ:219.7 _XANJ:218.7 172.7 171.7 170.7 169.7 168.7 167.7 166.7 165.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 175
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 97
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 293
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 292
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 174
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 378
END

IF ~~ THEN BEGIN 174 // from: _XANJ:219.5 _XANJ:218.5 173.5 172.5 171.5 170.5 169.5 168.5 167.5 166.5 165.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 175
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 97
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 293
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 96
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 292
END

IF ~~ THEN BEGIN 175 // from: _XANJ:219.0 _XANJ:218.0 174.0 173.0 172.0 171.0 170.0 169.0 168.0 167.0 166.0 165.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 176 // from:
  SAY #103006 /* ~Of course, she's a baby...~ */
  IF ~~ THEN GOTO 186
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 99
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 295
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 98
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 294
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 185
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 380
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 184
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 265
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 107
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 183
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 219
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 161
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 182
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 118
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 181
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 145
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 146
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 144
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 180
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 379
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 221
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 264
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 143
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 179
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 220
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN GOTO 178
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ELDOTJ~ 77
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN GOTO 177
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 61
END

IF ~~ THEN BEGIN 177 // from: 176.28
  SAY #103008 /* ~Ah, <PRO_HESHE> is still a cutie!~ */
  IF ~~ THEN GOTO 186
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 99
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 295
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 98
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 294
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 185
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 380
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 184
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 265
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 107
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 183
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 219
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 161
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 182
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 118
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 181
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 145
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 146
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 144
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 180
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 379
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 221
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 264
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 143
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 179
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 220
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN GOTO 178
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ELDOTJ~ 77
END

IF ~~ THEN BEGIN 178 // from: 177.26 176.26
  SAY #103010 /* ~Aye, little one...~ */
  IF ~~ THEN GOTO 186
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 99
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 295
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 98
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 294
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 185
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 380
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 184
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 265
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 107
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 183
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 219
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 161
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 182
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 118
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 181
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 145
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 146
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 144
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 180
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 379
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 221
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 264
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 143
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 179
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 220
END

IF ~~ THEN BEGIN 179 // from: _XANJ:220.24 178.24 177.24 176.24
  SAY #103012 /* ~Ah, the carefree youth, how I envy you...~ */
  IF ~~ THEN GOTO 186
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 99
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 295
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 98
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 294
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 185
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 380
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 184
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 265
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 107
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 183
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 219
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 161
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 182
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 118
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 181
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 145
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 146
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 144
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 180
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 379
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 221
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 264
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 143
END

IF ~~ THEN BEGIN 180 // from: _XANJ:221.19 _XANJ:220.19 179.19 178.19 177.19 176.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 186
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 99
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 295
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 98
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 294
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 185
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 380
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 184
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 265
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 107
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 183
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 219
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 161
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 182
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 118
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 181
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 145
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 146
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 144
END

IF ~~ THEN BEGIN 181 // from: _XANJ:221.15 _XANJ:220.15 180.15 179.15 178.15 177.15 176.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 186
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 99
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 295
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 98
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 294
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 185
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 380
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 184
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 265
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 107
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 183
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 219
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 161
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 182
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 118
END

IF ~~ THEN BEGIN 182 // from: _XANJ:221.13 _XANJ:220.13 181.13 180.13 179.13 178.13 177.13 176.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 186
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 99
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 295
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 98
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 294
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 185
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 380
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 184
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 265
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 107
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 183
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 219
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 161
END

IF ~~ THEN BEGIN 183 // from: _XANJ:221.10 _XANJ:220.10 182.10 181.10 180.10 179.10 178.10 177.10 176.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 186
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 99
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 295
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 98
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 294
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 185
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 380
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 184
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 265
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 107
END

IF ~~ THEN BEGIN 184 // from: _XANJ:221.7 _XANJ:220.7 183.7 182.7 181.7 180.7 179.7 178.7 177.7 176.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 186
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 99
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 295
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 98
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 294
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 185
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 380
END

IF ~~ THEN BEGIN 185 // from: _XANJ:221.5 _XANJ:220.5 184.5 183.5 182.5 181.5 180.5 179.5 178.5 177.5 176.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 186
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 99
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 295
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 98
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 294
END

IF ~~ THEN BEGIN 186 // from: _XANJ:221.0 _XANJ:220.0 185.0 184.0 183.0 182.0 181.0 180.0 179.0 178.0 177.0 176.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 187 // from:
  SAY #103006 /* ~Of course, she's a baby...~ */
  IF ~~ THEN GOTO 197
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 101
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 297
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 100
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 296
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 196
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 382
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 195
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 267
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 108
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 194
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 222
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 162
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 193
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 119
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 192
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 148
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 147
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 147
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 191
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 381
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 223
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 266
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 146
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 190
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 222
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN GOTO 189
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ELDOTJ~ 78
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN GOTO 188
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 62
END

IF ~~ THEN BEGIN 188 // from: 187.28
  SAY #103008 /* ~Ah, <PRO_HESHE> is still a cutie!~ */
  IF ~~ THEN GOTO 197
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 101
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 297
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 100
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 296
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 196
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 382
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 195
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 267
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 108
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 194
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 222
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 162
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 193
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 119
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 192
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 148
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 147
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 147
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 191
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 381
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 223
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 266
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 146
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 190
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 222
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN GOTO 189
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ELDOTJ~ 78
END

IF ~~ THEN BEGIN 189 // from: 188.26 187.26
  SAY #103010 /* ~Aye, little one...~ */
  IF ~~ THEN GOTO 197
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 101
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 297
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 100
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 296
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 196
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 382
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 195
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 267
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 108
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 194
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 222
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 162
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 193
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 119
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 192
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 148
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 147
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 147
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 191
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 381
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 223
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 266
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 146
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 190
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 222
END

IF ~~ THEN BEGIN 190 // from: _XANJ:222.24 189.24 188.24 187.24
  SAY #103012 /* ~Ah, the carefree youth, how I envy you...~ */
  IF ~~ THEN GOTO 197
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 101
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 297
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 100
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 296
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 196
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 382
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 195
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 267
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 108
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 194
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 222
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 162
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 193
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 119
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 192
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 148
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 147
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 147
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 191
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 381
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 223
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 266
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 146
END

IF ~~ THEN BEGIN 191 // from: _XANJ:223.19 _XANJ:222.19 190.19 189.19 188.19 187.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 197
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 101
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 297
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 100
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 296
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 196
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 382
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 195
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 267
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 108
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 194
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 222
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 162
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 193
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 119
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 192
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 148
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 147
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 147
END

IF ~~ THEN BEGIN 192 // from: _XANJ:223.15 _XANJ:222.15 191.15 190.15 189.15 188.15 187.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 197
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 101
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 297
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 100
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 296
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 196
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 382
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 195
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 267
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 108
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 194
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 222
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 162
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 193
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 119
END

IF ~~ THEN BEGIN 193 // from: _XANJ:223.13 _XANJ:222.13 192.13 191.13 190.13 189.13 188.13 187.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 197
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 101
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 297
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 100
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 296
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 196
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 382
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 195
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 267
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 108
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 194
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 222
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 162
END

IF ~~ THEN BEGIN 194 // from: _XANJ:223.10 _XANJ:222.10 193.10 192.10 191.10 190.10 189.10 188.10 187.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 197
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 101
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 297
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 100
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 296
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 196
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 382
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 195
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 267
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 108
END

IF ~~ THEN BEGIN 195 // from: _XANJ:223.7 _XANJ:222.7 194.7 193.7 192.7 191.7 190.7 189.7 188.7 187.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 197
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 101
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 297
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 100
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 296
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 196
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 382
END

IF ~~ THEN BEGIN 196 // from: _XANJ:223.5 _XANJ:222.5 195.5 194.5 193.5 192.5 191.5 190.5 189.5 188.5 187.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 197
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 101
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 297
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 100
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 296
END

IF ~~ THEN BEGIN 197 // from: _XANJ:223.0 _XANJ:222.0 196.0 195.0 194.0 193.0 192.0 191.0 190.0 189.0 188.0 187.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 198 // from:
  SAY #103006 /* ~Of course, she's a baby...~ */
  IF ~~ THEN GOTO 208
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 299
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 102
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 298
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 207
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 384
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 206
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 269
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 109
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 205
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 226
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 163
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 204
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 120
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 203
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 151
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 148
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 150
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 202
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 383
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 225
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 268
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 149
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 201
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 224
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN GOTO 200
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ELDOTJ~ 79
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN GOTO 199
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 63
END

IF ~~ THEN BEGIN 199 // from: 198.28
  SAY #103008 /* ~Ah, <PRO_HESHE> is still a cutie!~ */
  IF ~~ THEN GOTO 208
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 299
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 102
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 298
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 207
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 384
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 206
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 269
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 109
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 205
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 226
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 163
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 204
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 120
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 203
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 151
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 148
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 150
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 202
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 383
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 225
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 268
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 149
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 201
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 224
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN GOTO 200
  IF ~  InParty("eldoth")
InMyArea("eldoth")
!StateCheck("eldoth",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ELDOTJ~ 79
END

IF ~~ THEN BEGIN 200 // from: 199.26 198.26
  SAY #103010 /* ~Aye, little one...~ */
  IF ~~ THEN GOTO 208
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 299
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 102
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 298
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 207
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 384
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 206
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 269
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 109
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 205
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 226
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 163
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 204
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 120
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 203
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 151
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 148
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 150
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 202
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 383
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 225
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 268
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 149
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 201
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 224
END

IF ~~ THEN BEGIN 201 // from: _XANJ:224.24 200.24 199.24 198.24
  SAY #103012 /* ~Ah, the carefree youth, how I envy you...~ */
  IF ~~ THEN GOTO 208
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 299
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 102
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 298
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 207
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 384
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 206
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 269
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 109
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 205
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 226
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 163
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 204
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 120
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 203
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 151
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 148
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 150
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 202
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 383
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_XANJ~ 225
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 268
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_MINSCJ~ 149
END

IF ~~ THEN BEGIN 202 // from: _XANJ:225.19 _XANJ:224.19 201.19 200.19 199.19 198.19
  SAY #103017 /* ~Ah, those were the times...~ */
  IF ~~ THEN GOTO 208
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 299
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 102
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 298
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 207
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 384
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 206
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 269
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 109
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 205
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 226
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 163
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 204
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 120
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN GOTO 203
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 151
  IF ~  InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_DYNAHJ~ 148
  IF ~  InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
Gender(Player1,MALE)
~ THEN EXTERN ~_MINSCJ~ 150
END

IF ~~ THEN BEGIN 203 // from: _XANJ:225.15 _XANJ:224.15 202.15 201.15 200.15 199.15 198.15
  SAY #103021 /* ~A refreshing outlook...~ */
  IF ~~ THEN GOTO 208
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 299
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 102
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 298
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 207
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 384
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 206
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 269
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 109
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 205
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 226
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 163
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN GOTO 204
  IF ~  InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
Alignment(Player1,MASK_EVIL)
~ THEN EXTERN ~_EDWINJ~ 120
END

IF ~~ THEN BEGIN 204 // from: _XANJ:225.13 _XANJ:224.13 203.13 202.13 201.13 200.13 199.13 198.13
  SAY #103023 /* ~Beg your pardon, sir, but there is nothing evil 'bout this littl' cherry.~ */
  IF ~~ THEN GOTO 208
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 299
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 102
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 298
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 207
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 384
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 206
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 269
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 109
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 205
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_AJANTJ~ 226
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_GARRIJ~ 163
END

IF ~~ THEN BEGIN 205 // from: _XANJ:225.10 _XANJ:224.10 204.10 203.10 202.10 201.10 200.10 199.10 198.10
  SAY #103026 /* ~Aha, so your little friends here noticed it, too?~ */
  IF ~~ THEN GOTO 208
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 299
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 102
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 298
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 207
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 384
  IF ~  InParty("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 206
  IF ~  InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_CORANJ~ 269
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_ALORAJ~ 109
END

IF ~~ THEN BEGIN 206 // from: _XANJ:225.7 _XANJ:224.7 205.7 204.7 203.7 202.7 201.7 200.7 199.7 198.7
  SAY #103029 /* ~She never listens about it... but she is such a dear...~ */
  IF ~~ THEN GOTO 208
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 299
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 102
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 298
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN GOTO 207
  IF ~  InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
Gender(Player1,FEMALE)
~ THEN EXTERN ~_IMOEN2~ 384
END

IF ~~ THEN BEGIN 207 // from: _XANJ:225.5 _XANJ:224.5 206.5 205.5 204.5 203.5 202.5 201.5 200.5 199.5 198.5
  SAY #103031 /* ~Ah, you are here, too? Well, you were the quiet one of the pair, you were...~ */
  IF ~~ THEN GOTO 208
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 103
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 299
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KHALIJ~ 102
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 298
END

IF ~~ THEN BEGIN 208 // from: _XANJ:225.0 _XANJ:224.0 207.0 206.0 205.0 204.0 203.0 202.0 201.0 200.0 199.0 198.0
  SAY #103036 /* ~Farewell, <CHARNAME>!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END
