BEGIN ~CBLSLNDA~

IF ~~ THEN BEGIN 0
  SAY @1
  IF ~~ THEN EXTERN ~CBTARDTH~ 26
END

IF ~~ THEN BEGIN 1
  SAY @2
  IF ~~ THEN EXTERN ~CBTARDTH~ 27
END

IF ~~ THEN BEGIN 2
  SAY @3
  IF ~~ THEN EXTERN ~CBMONDRP~ 3
END

IF ~~ THEN BEGIN 3
  SAY @4
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4
  SAY @5
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5
  SAY @6
  IF ~~ THEN EXTERN ~CBMANARB~ 1
END

IF ~~ THEN BEGIN 6
  SAY @7
  IF ~~ THEN EXTERN ~CBTARDTH~ 88
END

IF ~~ THEN BEGIN 7
  SAY @8
  IF ~~ THEN EXTERN ~CBMONDRP~ 28
END

IF ~~ THEN BEGIN 8
  SAY @9
  IF ~~ THEN EXTERN ~CBSTTFLW~ 3
END

IF ~~ THEN BEGIN 9
  SAY @10
  IF ~~ THEN EXTERN ~CBARKSLV~ 21
END

IF ~~ THEN BEGIN 10
  SAY @11
  IF ~~ THEN EXTERN ~CBARKSLV~ 24
END

IF ~~ THEN BEGIN 11
  SAY @12
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12
  SAY @13
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13
  SAY @14
  IF ~~ THEN EXTERN ~CBMANARB~ 20
END

IF ~Global("Cb_PartyAlliesWith_C_o_8","GLOBAL",0)
!Class(LastTalkedToBy,MAGE)
!Class(LastTalkedToBy,FIGHTER_MAGE)
!Class(LastTalkedToBy,FIGHTER_MAGE_THIEF)
!Class(LastTalkedToBy,MAGE_THIEF)
!Class(LastTalkedToBy,CLERIC_MAGE)
!Class(LastTalkedToBy,FIGHTER_MAGE_CLERIC)
!Class(LastTalkedToBy,BARD)
!Class(LastTalkedToBy,SORCERER)~ THEN BEGIN 14
  SAY @15
  IF ~~ THEN EXIT
END

IF ~Global("Cb_PartyAlliesWith_C_o_8","GLOBAL",0)
~ THEN BEGIN 15
  SAY @16
  IF ~~ THEN REPLY @17 GOTO 25
  IF ~~ THEN REPLY @18 GOTO 16
END

IF ~~ THEN BEGIN 16
  SAY @19
  IF ~Gender(LastTalkedToBy(Myself),MALE)~ THEN GOTO 18
  IF ~!Gender(LastTalkedToBy(Myself),MALE)~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17
  SAY @20
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 18
  SAY @21
  IF ~~ THEN REPLY @22 GOTO 20
  IF ~~ THEN REPLY @23 GOTO 22
  IF ~~ THEN REPLY @24 GOTO 19
  IF ~~ THEN REPLY @25 GOTO 23
END

IF ~~ THEN BEGIN 19
  SAY @26
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 20
  SAY @27
  IF ~~ THEN REPLY @28 EXIT
END

IF ~~ THEN BEGIN 21
  SAY @29
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 22
  SAY @30
  IF ~~ THEN REPLY @28 EXIT
END

IF ~~ THEN BEGIN 23
  SAY @31
  IF ~~ THEN REPLY @32 GOTO 24
END

IF ~~ THEN BEGIN 24
  SAY @33
  IF ~~ THEN REPLY @34 GOTO 35
  IF ~~ THEN REPLY @35 GOTO 37
  IF ~~ THEN REPLY @36 GOTO 39
END

IF ~~ THEN BEGIN 25
  SAY @37
  IF ~~ THEN REPLY @17 GOTO 26
  IF ~~ THEN REPLY @18 GOTO 16
END

IF ~~ THEN BEGIN 26
  SAY @38
  IF ~~ THEN GOTO 27
END

IF ~~ THEN BEGIN 27
  SAY @39
  IF ~~ THEN GOTO 28
END

IF ~~ THEN BEGIN 28
  SAY @40
  IF ~~ THEN GOTO 29
END

IF ~~ THEN BEGIN 29
  SAY @41
  IF ~~ THEN GOTO 30
END

IF ~~ THEN BEGIN 30
  SAY @42
  IF ~~ THEN GOTO 31
END

IF ~~ THEN BEGIN 31
  SAY @43
  IF ~~ THEN GOTO 32
END

IF ~~ THEN BEGIN 32
  SAY @44
  IF ~~ THEN GOTO 33
END

IF ~~ THEN BEGIN 33
  SAY @45
  IF ~~ THEN REPLY @46 GOTO 34
END

IF ~~ THEN BEGIN 34
  SAY @47
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 35
  SAY @48
  IF ~~ THEN GOTO 36
END

IF ~~ THEN BEGIN 36
  SAY @49
  IF ~~ THEN EXTERN ~CBARKSLV~ 26
END

IF ~~ THEN BEGIN 37
  SAY @50
  IF ~~ THEN GOTO 38
END

IF ~~ THEN BEGIN 38
  SAY @51
  IF ~~ THEN REPLY @34 GOTO 35
  IF ~~ THEN REPLY @35 GOTO 37
  IF ~~ THEN REPLY @36 GOTO 39
END

IF ~~ THEN BEGIN 39
  SAY @52
  IF ~~ THEN DO ~SetGlobal("Cb_LawanthaAndPlayerMakeWoopie","GLOBAL",1)
ClearAllActions()
TextScreen("CBLAWLVR")~ EXIT
END

IF ~Global("Cb_LawanthaAndPlayerMakeWoopie","GLOBAL",1)
Global("Cb_PartyAlliesWith_C_o_8","GLOBAL",0)
AreaCheck("AR2600")~ THEN BEGIN 40
  SAY @53
  IF ~~ THEN EXIT
END

IF ~Global("Cb_PartyAlliesWith_C_o_8","GLOBAL",1)
Global("Cb_LawanthaAndPlayerMakeWoopie","GLOBAL",0)
AreaCheck("AR2600")~ THEN BEGIN 41
  SAY @54
  IF ~~ THEN REPLY @17 GOTO 25
  IF ~~ THEN REPLY @18 GOTO 16
END

IF ~Global("Cb_LawanthaAndPlayerMakeWoopie","GLOBAL",1)
Global("Cb_PartyAlliesWith_C_o_8","GLOBAL",1)
AreaCheck("AR2600")~ THEN BEGIN 42
  SAY @55
  IF ~~ THEN GOTO 43
END

IF ~~ THEN BEGIN 43
  SAY @56
  IF ~~ THEN EXIT
END

IF ~Global("Cb_LawanthaWarns","AR3532",0)~ THEN BEGIN 44
  SAY @57
  IF ~~ THEN EXTERN ~CBHREDWN~ 91
END

IF ~AreaCheck("AR2600")
Global("Cb_PartyAlliesWith_C_o_8","GLOBAL",3)~ THEN BEGIN 45
  SAY @58
  IF ~~ THEN GOTO 46
END

IF ~~ THEN BEGIN 46
  SAY @59
  IF ~~ THEN GOTO 47
END

IF ~~ THEN BEGIN 47
  SAY @60
  IF ~~ THEN GOTO 48
END

IF ~~ THEN BEGIN 48
  SAY @61
  IF ~~ THEN DO ~GiveItem("CBBRCSPL",LastTalkedToBy(Myself))
GiveItem("CBCRYBLL",LastTalkedToBy(Myself))
GiveItem("CBGEMSEE",LastTalkedToBy(Myself))
AddXPObject(Player1,20000)
AddXPObject(Player2,20000)
AddXPObject(Player3,20000)
AddXPObject(Player4,20000)
AddXPObject(Player5,20000)
AddXPObject(Player6,20000)
ReputationInc(1)
EraseJournalEntry(@64)
AddJournalEntry(@63,QUEST_DONE)~ GOTO 49
END

IF ~~ THEN BEGIN 49
  SAY @62
  IF ~~ THEN DO ~SetGlobal("Cb_PartyAlliesWith_C_o_8","GLOBAL",4)
ActionOverride("CBTARDTH",EscapeArea())
ActionOverride("CBHREDWN",EscapeArea())
ActionOverride("CBSTTFLW",EscapeArea())
ActionOverride("CBMONDRP",EscapeArea())
ActionOverride("CBMANARB",EscapeArea())
ActionOverride("CBLSLNDA",EscapeArea())
ActionOverride("CBARKSLV",EscapeArea())~ EXIT
END
