BEGIN ~CBTARDTH~

IF ~GlobalGT("CbPaddyWasFollowed","AR2600",0)
NumInParty(1)
NumTimesTalkedTo(0)
AreaCheck("AR2600")~ THEN BEGIN 0
  SAY @1
  IF ~~ THEN GOTO 2
END

IF ~GlobalGT("CbPaddyWasFollowed","AR2600",0)
NumInPartyGT(1)
NumTimesTalkedTo(0)
AreaCheck("AR2600")~ THEN BEGIN 1
  SAY @2
  IF ~~ THEN GOTO 2
END

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

IF ~~ THEN BEGIN 3
  SAY @4
  IF ~~ THEN REPLY @5 GOTO 7
  IF ~Global("ElhanFinishedSpeaking","GLOBAL",1)~ THEN REPLY @6 GOTO 9
  IF ~~ THEN REPLY @7 GOTO 16
  IF ~~ THEN REPLY @8 GOTO 30
  IF ~~ THEN REPLY @9 GOTO 41
  IF ~~ THEN REPLY @10 GOTO 45
END

IF ~Global("CbPaddyWasFollowed","AR2600",0)
NumTimesTalkedTo(0)
AreaCheck("AR2600")~ THEN BEGIN 4
  SAY @11
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5
  SAY @12
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 6
  SAY @13
  IF ~~ THEN DO ~ActionOverride("CBSTTFLW",MoveBetweenAreas("AR2600",[4226.2347],0))
SetGlobal("CbLetsMovePaddy","AR2600",5)
SetGlobal("CbPaddyWasFollowed","AR2600",1)~ GOTO 2
END

IF ~~ THEN BEGIN 7
  SAY @14
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8
  SAY @15
  IF ~Global("Chapter","GLOBAL",7)~ THEN REPLY @6 GOTO 9
  IF ~~ THEN REPLY @7 GOTO 16
  IF ~~ THEN REPLY @8 GOTO 30
  IF ~~ THEN REPLY @9 GOTO 41
  IF ~~ THEN REPLY @10 GOTO 45
END

IF ~~ THEN BEGIN 9
  SAY @16
  IF ~~ THEN REPLY @17 GOTO 10
  IF ~Global("ElvenCityTree","GLOBAL",2)~ THEN REPLY @18 GOTO 13
END

IF ~~ THEN BEGIN 10
  SAY @19
  IF ~~ THEN GOTO 11
END

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

IF ~~ THEN BEGIN 12
  SAY @21
  IF ~~ THEN DO ~SetGlobal("Cb_TardethWantsSuldanessellar","LOCALS",1)~ EXIT
END

IF ~~ THEN BEGIN 13
  SAY @22
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 14
  SAY @23
  IF ~~ THEN GOTO 15
END

IF ~~ THEN BEGIN 15
  SAY @24
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 16
  SAY @25
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17
  SAY @26
  IF ~~ THEN GOTO 18
END

IF ~~ THEN BEGIN 18
  SAY @27
  IF ~See("MINSC")~ THEN EXTERN ~MINSCJ~
CB_INTERJECT_M1
  IF ~!See("MINSC")~ THEN GOTO 20
END

IF ~~ THEN BEGIN 19
  SAY @28
  IF ~~ THEN EXTERN ~CBHREDWN~ 0
END

IF ~~ THEN BEGIN 20
  SAY @29
  IF ~~ THEN EXTERN ~CBHREDWN~ 0
END

IF ~~ THEN BEGIN 21
  SAY @30
  IF ~~ THEN EXTERN ~CBMONDRP~ 0
END

IF ~~ THEN BEGIN 22
  SAY @31
  IF ~~ THEN GOTO 23
END

IF ~~ THEN BEGIN 23
  SAY @32
  IF ~~ THEN EXTERN ~CBSTTFLW~ 0
END

IF ~~ THEN BEGIN 24
  SAY @33
  IF ~~ THEN GOTO 25
END

IF ~~ THEN BEGIN 25
  SAY @34
  IF ~~ THEN EXTERN ~CBLSLNDA~ 0
END

IF ~~ THEN BEGIN 26
  SAY @35
  IF ~~ THEN EXTERN ~CBLSLNDA~ 1
END

IF ~~ THEN BEGIN 27
  SAY @36
  IF ~~ THEN EXTERN ~CBARKSLV~ 0
END

IF ~~ THEN BEGIN 28
  SAY @37
  IF ~~ THEN DO ~SetGlobal("Cb_TardethIntroducesCompany","AR2600",1)~ GOTO 29
END

IF ~~ THEN BEGIN 29
  SAY @38
  IF ~Global("Chapter","GLOBAL",7)~ THEN REPLY @6 GOTO 9
  IF ~~ THEN REPLY @8 GOTO 30
END

IF ~~ THEN BEGIN 30
  SAY @39
  IF ~!Global("Cb_TardethIntroducesCompany","AR2600",1)~ THEN GOTO 31
  IF ~Global("Cb_TardethIntroducesCompany","AR2600",1)~ THEN GOTO 32
END

IF ~~ THEN BEGIN 31
  SAY @27
  IF ~See("MINSC")~ THEN EXTERN ~MINSCJ~
CB_INTERJECT_M1
  IF ~!See("MINSC")~ THEN GOTO 20
END

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

IF ~~ THEN BEGIN 33
  SAY @41
  IF ~~ THEN GOTO 34
END

IF ~~ THEN BEGIN 34
  SAY @42
  IF ~~ THEN GOTO 35
END

IF ~~ THEN BEGIN 35
  SAY @43
  IF ~~ THEN REPLY @44 GOTO 36
END

IF ~~ THEN BEGIN 36
  SAY @45
  IF ~~ THEN GOTO 37
END

IF ~~ THEN BEGIN 37
  SAY @46
  IF ~~ THEN REPLY @47 GOTO 38
END

IF ~~ THEN BEGIN 38
  SAY @48
  IF ~~ THEN GOTO 39
END

IF ~~ THEN BEGIN 39
  SAY @49
  IF ~~ THEN GOTO 40
END

IF ~~ THEN BEGIN 40
  SAY @50
  IF ~~ THEN REPLY @51 GOTO 50
  IF ~~ THEN REPLY @52 GOTO 48
END

IF ~~ THEN BEGIN 41
  SAY @53
  IF ~~ THEN GOTO 42
END

IF ~~ THEN BEGIN 42
  SAY @54
  IF ~~ THEN GOTO 43
END

IF ~~ THEN BEGIN 43
  SAY @55
  IF ~~ THEN REPLY @56 GOTO 44
  IF ~~ THEN REPLY @7 GOTO 16
  IF ~~ THEN REPLY @57 GOTO 30
  IF ~~ THEN REPLY @10 GOTO 45
END

IF ~~ THEN BEGIN 44
  SAY @58
  IF ~~ THEN DO ~SetGlobal("Cb_TardethDidNotExplain","LOCALS",1)~ EXIT
END

IF ~~ THEN BEGIN 45
  SAY @59
  IF ~~ THEN REPLY @7 GOTO 16
  IF ~~ THEN REPLY @8 GOTO 30
  IF ~~ THEN REPLY @60 GOTO 46
END

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

IF ~~ THEN BEGIN 47
  SAY @62
  IF ~~ THEN DO ~SetGlobal("Cb_CompanyOfEight_Attacked","GLOBAL",1)
SetGlobal("Cb_CompanyOfEightEnemy","LOCALS",1)
ActionOverride("CBARKSLV",ChangeEnemyAlly("CBARKSLV",ENEMY))
ActionOverride("CBHREDWN",ChangeEnemyAlly("CBHREDWN",ENEMY))
ActionOverride("CBLSLNDA",ChangeEnemyAlly("CBLSLNDA",ENEMY))
ActionOverride("CBMANARB",ChangeEnemyAlly("CBMANARB",ENEMY))
ActionOverride("CBSTTFLW",ChangeEnemyAlly("CBSTTFLW",ENEMY))
ActionOverride("CBMONDRP",ChangeEnemyAlly("CBMONDRP",ENEMY))
ActionOverride("CBTARDTH",ChangeEnemyAlly("CBTARDTH",ENEMY))
Shout(208)
Shout(209)
Enemy()~ EXIT
END

IF ~~ THEN BEGIN 48
  SAY @63
  IF ~~ THEN GOTO 49
END

IF ~~ THEN BEGIN 49
  SAY @64
  IF ~!IsValidForPartyDialog("MINSC")
!IsValidForPartyDialog("JAHEIRA")
!IsValidForPartyDialog("NALIA")
!IsValidForPartyDialog("VALYGAR")~ THEN DO ~SetGlobal("Cb_NoHelpForTardeth","LOCALS",1)~ EXIT
  IF ~IsValidForPartyDialog("MINSC")
!IsValidForPartyDialog("JAHEIRA")
!IsValidForPartyDialog("NALIA")
!IsValidForPartyDialog("VALYGAR")~ THEN EXTERN ~MINSCJ~
CB_INTERJECT_M2
  IF ~IsValidForPartyDialog("JAHEIRA")
!IsValidForPartyDialog("NALIA")
!IsValidForPartyDialog("VALYGAR")~ THEN EXTERN ~JAHEIRAJ~ 
CB_INTERJECT_J1
  IF ~IsValidForPartyDialog("NALIA")
!IsValidForPartyDialog("VALYGAR")~ THEN EXTERN ~NALIAJ~ 
CB_INTERJECT_N1
  IF ~IsValidForPartyDialog("VALYGAR")~ THEN EXTERN ~VALYGARJ~
CB_INTERJECT_V1
END

IF ~~ THEN BEGIN 50
  SAY @65
  IF ~~ THEN EXTERN ~CBHREDWN~ 2
END

IF ~~ THEN BEGIN 51
  SAY @66
  IF ~~ THEN GOTO 52
END

IF ~~ THEN BEGIN 52
  SAY @67
  IF ~~ THEN GOTO 53
END

IF ~~ THEN BEGIN 53
  SAY @68
  IF ~~ THEN GOTO 54
END

IF ~~ THEN BEGIN 54
  SAY @69
  IF ~~ THEN DO ~SetGlobal("Cb_PartyAlliesWith_C_o_8","GLOBAL",1)~ EXIT
END

IF ~Global("Cb_NoHelpForTardeth","LOCALS",1)
Global("Cb_PartyAlliesWith_C_o_8","GLOBAL",0)
AreaCheck("AR2600")~ THEN BEGIN 55
  SAY @70
  IF ~~ THEN GOTO 56
END

IF ~~ THEN BEGIN 56
  SAY @71
  IF ~~ THEN REPLY @72 GOTO 50
  IF ~~ THEN REPLY @73 GOTO 57
END

IF ~~ THEN BEGIN 57
  SAY @74
  IF ~~ THEN GOTO 58
END

IF ~~ THEN BEGIN 58
  SAY @64
  IF ~~ THEN EXIT
END

IF ~Global("Cb_TardethDidNotExplain","LOCALS",1)
AreaCheck("AR2600")
Global("Cb_PartyAlliesWith_C_o_8","GLOBAL",0)~ THEN BEGIN 59
  SAY @75
  IF ~~ THEN GOTO 60
END

IF ~~ THEN BEGIN 60
  SAY @76
  IF ~~ THEN REPLY @77 GOTO 7
  IF ~Global("Chapter","GLOBAL",7)~ THEN REPLY @78 GOTO 9
  IF ~~ THEN REPLY @79 GOTO 16
  IF ~~ THEN REPLY @80 GOTO 30
END

IF ~Global("Cb_TardethWantsSuldanessellar","LOCALS",1)
AreaCheck("AR2600")
Global("Cb_PartyAlliesWith_C_o_8","GLOBAL",0)~ THEN BEGIN 61
  SAY @81
  IF ~GlobalGT("ElvenAvatar","GLOBAL",0)~ THEN GOTO 63
  IF ~Global("ElvenAvatar","GLOBAL",0)~ THEN GOTO 62
END

IF ~~ THEN BEGIN 62
  SAY @82
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 63
  SAY @83
  IF ~~ THEN GOTO 64
END

IF ~~ THEN BEGIN 64
  SAY @84
  IF ~~ THEN EXTERN ~CBHREDWN~ 3
END

IF ~~ THEN BEGIN 65
  SAY @85
  IF ~~ THEN GOTO 66
END

IF ~~ THEN BEGIN 66
  SAY @86
  IF ~~ THEN REPLY @87 GOTO 67
END

IF ~~ THEN BEGIN 67
  SAY @88
  IF ~~ THEN GOTO 68
END

IF ~~ THEN BEGIN 68
  SAY @89
  IF ~~ THEN GOTO 69
END

IF ~~ THEN BEGIN 69
  SAY @90
  IF ~~ THEN GOTO 70
END

IF ~~ THEN BEGIN 70
  SAY @91
  IF ~~ THEN GOTO 71
END

IF ~~ THEN BEGIN 71
  SAY @92
  IF ~~ THEN GOTO 37
END

IF ~Global("Cb_PartyAlliesWith_C_o_8","GLOBAL",1)
AreaCheck("AR2600")~ THEN BEGIN 72
  SAY @93
  IF ~~ THEN REPLY @94 GOTO 73
  IF ~Global("CbTardethDidThisLinking","LOCALS",0)~ THEN REPLY @95 DO ~SetGlobal("CbTardethDidThisLinking","LOCALS",1)~ GOTO 74
  IF ~Global("CbTardethDidThisLinking","LOCALS",1)~ THEN REPLY @95 GOTO 75
END

IF ~~ THEN BEGIN 73
  SAY @96
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 74
  SAY @97
  IF ~~ THEN EXTERN ~CBARKSLV~ 4
END

IF ~~ THEN BEGIN 75
  SAY @98
  IF ~NumInParty(1)~ THEN GOTO 76
  IF ~NumInPartyGT(1)~ THEN GOTO 77
END

IF ~~ THEN BEGIN 76
  SAY @99
  IF ~~ THEN GOTO 78
END

IF ~~ THEN BEGIN 77
  SAY @100
  IF ~~ THEN GOTO 78
END

IF ~~ THEN BEGIN 78
  SAY @101
  IF ~~ THEN GOTO 79
END

IF ~~ THEN BEGIN 79
  SAY @102
  IF ~~ THEN GOTO 80
END

IF ~~ THEN BEGIN 80
  SAY @103
  IF ~~ THEN GOTO 81
END

IF ~~ THEN BEGIN 81
  SAY @104
  IF ~~ THEN GOTO 82
END

IF ~~ THEN BEGIN 82
  SAY @105
  IF ~~ THEN REPLY @106 GOTO 83
  IF ~~ THEN REPLY @107 GOTO 84
  IF ~~ THEN REPLY @108 GOTO 85
END

IF ~~ THEN BEGIN 83
  SAY @109
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 84
  SAY @110
  IF ~~ THEN DO ~SetGlobal("Cb_PartyAlliesWith_C_o_8","GLOBAL",2)
ClearAllActions()
StartCutSceneMode()
StartCutScene("CBCO8MOV")~ EXIT
END

IF ~~ THEN BEGIN 85
  SAY @111
  IF ~~ THEN GOTO 86
END

IF ~~ THEN BEGIN 86
  SAY @112
  IF ~~ THEN GOTO 87
END

IF ~~ THEN BEGIN 87
  SAY @113
  IF ~~ THEN REPLY @114 GOTO 84
  IF ~~ THEN REPLY @115 GOTO 83
END

IF ~~ THEN BEGIN 88
  SAY @116
  IF ~~ THEN EXTERN ~CBLSLNDA~ 7
END

IF ~~ THEN BEGIN 89
  SAY @117
  IF ~~ THEN GOTO 90
END

IF ~~ THEN BEGIN 90
  SAY @118
  IF ~~ THEN GOTO 91
END

IF ~~ THEN BEGIN 91
  SAY @119
  IF ~~ THEN EXTERN ~CBHREDWN~ 89
END

IF ~~ THEN BEGIN 92
  SAY @120
  IF ~~ THEN EXTERN ~CBMANARB~ 25
END

IF ~Global("CbZannasterFinallyChanging","AR3532",2)
AreaCheck("AR3532")~ THEN BEGIN 93
  SAY @121
  IF ~~ THEN DO ~SetGlobal("CbZannasterFinallyChanging","AR3532",3)
SetGlobal("Cb_PartyAlliesWith_C_o_8","GLOBAL",3)
ActionOverride("CBTARDTH",ChangeEnemyAlly("CBTARDTH",NEUTRAL))
ActionOverride("CBHREDWN",ChangeEnemyAlly("CBHREDWN",NEUTRAL))
ActionOverride("CBMONDRP",ChangeEnemyAlly("CBMONDRP",NEUTRAL))
ActionOverride("CBSTTFLW",ChangeEnemyAlly("CBSTTFLW",NEUTRAL))
ActionOverride("CBLSLNDA",ChangeEnemyAlly("CBLSLNDA",NEUTRAL))
ActionOverride("CBMANARB",ChangeEnemyAlly("CBMANARB",NEUTRAL))
ActionOverride("CBARKSLV",ChangeEnemyAlly("CBARKSLV",NEUTRAL))
ActionOverride("CBMONDRP",MoveBetweenAreas("AR2600",[4321.2618],0))
ActionOverride("CBLSLNDA",MoveBetweenAreas("AR2600",[4195.2457],0))
ActionOverride("CBHREDWN",MoveBetweenAreas("AR2600",[4276.2553],0))
ActionOverride("CBMANARB",MoveBetweenAreas("AR2600",[4117.2527],0))
ActionOverride("CBARKSLV",MoveBetweenAreas("AR2600",[4268.2606],0))
ActionOverride("CBSTTFLW",MoveBetweenAreas("AR2600",[4157.2457],0))
ActionOverride("CBTARDTH",MoveBetweenAreas("AR2600",[4221.2522],0))~ EXIT
END

IF ~AreaCheck("AR2600")
Global("Cb_PartyAlliesWith_C_o_8","GLOBAL",3)~ THEN BEGIN 94
  SAY @122
  IF ~~ THEN GOTO 95
END

IF ~~ THEN BEGIN 95
  SAY @123
  IF ~~ THEN GOTO 96
END

IF ~~ THEN BEGIN 96
  SAY @124
  IF ~~ THEN GOTO 97
END

IF ~~ THEN BEGIN 97
  SAY @125
  IF ~~ THEN DO ~GiveItem("CBTLSWRD",LastTalkedToBy(Myself))
AddXPObject(Player1,20000)
AddXPObject(Player2,20000)
AddXPObject(Player3,20000)
AddXPObject(Player4,20000)
AddXPObject(Player5,20000)
AddXPObject(Player6,20000)
ReputationInc(1)
EraseJournalEntry(@128)
AddJournalEntry(@127,QUEST_DONE)~ GOTO 98
END

IF ~~ THEN BEGIN 98
  SAY @126
  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

APPEND MINSCJ
IF ~~ THEN BEGIN CB_INTERJECT_M1
  SAY @274
  IF ~~ THEN EXTERN ~CBTARDTH~ 20
END
END

APPEND MINSCJ
IF ~~ THEN BEGIN CB_INTERJECT_M2
  SAY @275
  IF ~IsValidForPartyDialog("JAHEIRA")
!IsValidForPartyDialog("NALIA")
!IsValidForPartyDialog("VALYGAR")~ THEN EXTERN ~JAHEIRAJ~
CB_INTERJECT_J2
  IF ~IsValidForPartyDialog("NALIA")
!IsValidForPartyDialog("VALYGAR")~ THEN EXTERN ~NALIAJ~
CB_INTERJECT_N1
  IF ~IsValidForPartyDialog("VALYGAR")~ THEN EXTERN ~VALYGARJ~
CB_INTERJECT_V2
  IF ~!IsValidForPartyDialog("VALYGAR")~ THEN DO ~SetGlobal("Cb_NoHelpForTardeth","LOCALS",1)~ EXIT
END
END

APPEND JAHEIRAJ
IF ~~ THEN BEGIN CB_INTERJECT_J1
SAY @669
  IF ~IsValidForPartyDialog("NALIA")
!IsValidForPartyDialog("VALYGAR")~ THEN EXTERN ~NALIAJ~ 
CB_INTERJECT_N1
  IF ~IsValidForPartyDialog("VALYGAR")~ THEN EXTERN ~VALYGARJ~ 
CB_INTERJECT_V2
  IF ~!IsValidForPartyDialog("VALYGAR")~ THEN DO ~SetGlobal("Cb_NoHelpForTardeth","LOCALS",1)~ EXIT
END
END

APPEND JAHEIRAJ
IF ~~ THEN BEGIN CB_INTERJECT_J2
  SAY @668
  =
      @669
  IF ~IsValidForPartyDialog("NALIA")
!IsValidForPartyDialog("VALYGAR")~ THEN EXTERN ~NALIAJ~ 
CB_INTERJECT_N1
  IF ~IsValidForPartyDialog("VALYGAR")~ THEN EXTERN ~VALYGARJ~
CB_INTERJECT_V2
  IF ~!IsValidForPartyDialog("VALYGAR")~ THEN DO ~SetGlobal("Cb_NoHelpForTardeth","LOCALS",1)~ EXIT
END
END

APPEND NALIAJ
IF ~~ THEN BEGIN CB_INTERJECT_N1
  SAY @448
  IF ~IsValidForPartyDialog("VALYGAR")~ THEN EXTERN ~VALYGARJ~ 
CB_INTERJECT_V2
  IF ~!IsValidForPartyDialog("VALYGAR")~ THEN DO ~SetGlobal("Cb_NoHelpForTardeth","LOCALS",1)~ EXIT
END
END

APPEND VALYGARJ
IF ~~ THEN BEGIN CB_INTERJECT_V1
  SAY @450
  IF ~~ THEN DO ~SetGlobal("Cb_NoHelpForTardeth","LOCALS",1)~ EXIT
END
END

APPEND VALYGARJ
IF ~~ THEN BEGIN CB_INTERJECT_V2
  SAY @451
  IF ~~ THEN DO ~SetGlobal("Cb_NoHelpForTardeth","LOCALS",1)~ EXIT
END
END

