BEGIN ~7xcre97~

IF ~AreaCheck("ARBGX2")NumTimesTalkedTo(0)~ intro
SAY @0
=
@1
IF ~~ THEN REPLY @2 GOTO intro1-2
IF ~~ THEN REPLY @3 GOTO intro1-1
END

IF ~~ intro1-1
SAY @4
IF ~~ THEN GOTO intro1-2
END

IF ~~ intro1-2
SAY @5
IF ~~ THEN REPLY @6 GOTO intro1-3
IF ~~ THEN REPLY @7 GOTO intro1-3
IF ~~ THEN REPLY @8 GOTO intro1-3
IF ~~ THEN REPLY @9 GOTO intro1-3
IF ~~ THEN REPLY @10 GOTO intro1-3
IF ~~ THEN REPLY @11 GOTO intro1-3
IF ~~ THEN REPLY @12 GOTO intro1-3
END

IF ~~ intro1-3
SAY @13
IF ~~ THEN EXIT
END


IF ~AreaCheck("ARBGX6")NumTimesTalkedTo(0)~ intro2
SAY @14
=
@15
IF ~~ THEN REPLY @2 GOTO intro1-2
IF ~~ THEN REPLY @16 GOTO intro2-1
END

IF ~~ intro2-1
SAY @17
IF ~~ THEN GOTO intro1-2
END


IF ~Global("7xcre97","GLOBAL",0)RandomNum(5,1)~ THEN BEGIN Talk1
SAY @18
=
@19
=
@20
IF ~~ THEN REPLY @21 GOTO Talk1-1
IF ~~ THEN REPLY @22 GOTO Talk1-2
IF ~~ THEN REPLY @23 GOTO Talk1-3
IF ~~ THEN REPLY @24 GOTO Talk1-4
IF ~~ THEN REPLY @25 GOTO Talk1-5
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk1-1
SAY @27
=
@28
IF ~~ THEN REPLY @22 GOTO Talk1-2
IF ~~ THEN REPLY @23 GOTO Talk1-3
IF ~~ THEN REPLY @24 GOTO Talk1-4
IF ~~ THEN REPLY @25 GOTO Talk1-5
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk1-2
SAY @29
=
@30
=
@31
IF ~~ THEN REPLY @21 GOTO Talk1-1
IF ~~ THEN REPLY @23 GOTO Talk1-3
IF ~~ THEN REPLY @24 GOTO Talk1-4
IF ~~ THEN REPLY @25 GOTO Talk1-5
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk1-3
SAY @32
=
@33
IF ~~ THEN REPLY @21 GOTO Talk1-1
IF ~~ THEN REPLY @22 GOTO Talk1-2
IF ~~ THEN REPLY @24 GOTO Talk1-4
IF ~~ THEN REPLY @25 GOTO Talk1-5
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk1-4
SAY @34
=
@35
IF ~~ THEN REPLY @21 GOTO Talk1-1
IF ~~ THEN REPLY @22 GOTO Talk1-2
IF ~~ THEN REPLY @23 GOTO Talk1-3
IF ~~ THEN REPLY @25 GOTO Talk1-5
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk1-5
SAY @36
IF ~~ THEN REPLY @21 GOTO Talk1-1
IF ~~ THEN REPLY @22 GOTO Talk1-2
IF ~~ THEN REPLY @23 GOTO Talk1-3
IF ~~ THEN REPLY @24 GOTO Talk1-4
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk1-6
SAY @37
IF ~~ THEN EXIT
END


IF ~Global("7xcre97","GLOBAL",0)RandomNum(5,2)~ THEN BEGIN Talk2
SAY @38
=
@39
=
@40
IF ~~ THEN REPLY @41 GOTO Talk2-1
IF ~~ THEN REPLY @42 GOTO Talk2-2
IF ~~ THEN REPLY @43 GOTO Talk2-3
IF ~~ THEN REPLY @26 GOTO Talk1-6
END


IF ~~ THEN BEGIN Talk2-1
SAY @44
=
@45
IF ~~ THEN REPLY @42 GOTO Talk2-2
IF ~~ THEN REPLY @43 GOTO Talk2-3
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk2-2
SAY @46
=
@47
IF ~~ THEN REPLY @41 GOTO Talk2-1
IF ~~ THEN REPLY @43 GOTO Talk2-3
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk2-3
SAY @48
=
@49
IF ~~ THEN REPLY @41 GOTO Talk2-1
IF ~~ THEN REPLY @42 GOTO Talk2-2
IF ~~ THEN REPLY @26 GOTO Talk1-6
END



IF ~Global("7xcre97","GLOBAL",0)RandomNum(5,3)~ THEN BEGIN Talk3
SAY @50
=
@51
IF ~~ THEN REPLY @52 GOTO Talk3-1
IF ~~ THEN REPLY @53 GOTO Talk3-2
IF ~~ THEN REPLY @54 GOTO Talk3-3
IF ~~ THEN REPLY @26 GOTO Talk1-6
END


IF ~~ THEN BEGIN Talk3-1
SAY @55
=
@56
IF ~~ THEN REPLY @53 GOTO Talk3-2
IF ~~ THEN REPLY @54 GOTO Talk3-3
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk3-2
SAY @57
=
@58
IF ~~ THEN REPLY @52 GOTO Talk3-1
IF ~~ THEN REPLY @54 GOTO Talk3-3
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk3-3
SAY @59
=
@60
IF ~~ THEN REPLY @52 GOTO Talk3-1
IF ~~ THEN REPLY @53 GOTO Talk3-2
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~Global("7xcre97","GLOBAL",0)RandomNum(5,4)~ THEN BEGIN Talk4
SAY @61
=
@62
=
@63
IF ~~ THEN REPLY @64 GOTO Talk4-1
IF ~~ THEN REPLY @65 GOTO Talk4-2
IF ~~ THEN REPLY @66 GOTO Talk4-3
IF ~~ THEN REPLY @67 GOTO Talk4-4
IF ~~ THEN REPLY @68 GOTO Talk1-6
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk4-1
SAY @69
=
@70
IF ~~ THEN REPLY @65 GOTO Talk4-2
IF ~~ THEN REPLY @66 GOTO Talk4-3
IF ~~ THEN REPLY @67 GOTO Talk4-4
IF ~~ THEN REPLY @68 GOTO Talk1-6
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk4-2
SAY @71
=
@72
IF ~~ THEN REPLY @64 GOTO Talk4-1
IF ~~ THEN REPLY @66 GOTO Talk4-3
IF ~~ THEN REPLY @67 GOTO Talk4-4
IF ~~ THEN REPLY @68 GOTO Talk1-6
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk4-3
SAY @73
=
@74
IF ~~ THEN REPLY @64 GOTO Talk4-1
IF ~~ THEN REPLY @65 GOTO Talk4-2
IF ~~ THEN REPLY @67 GOTO Talk4-4
IF ~~ THEN REPLY @68 GOTO Talk1-6
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk4-4
SAY @75
=
@76
IF ~~ THEN REPLY @64 GOTO Talk4-1
IF ~~ THEN REPLY @65 GOTO Talk4-2
IF ~~ THEN REPLY @66 GOTO Talk4-3
IF ~~ THEN REPLY @68 GOTO Talk1-6
IF ~~ THEN REPLY @26 GOTO Talk1-6
END



IF ~Global("7xcre97","GLOBAL",0)RandomNum(5,5)~ THEN BEGIN Talk5
SAY @77
=
@78
IF ~~ THEN REPLY @79 GOTO Talk5-1
IF ~~ THEN REPLY @80 GOTO Talk5-2
IF ~~ THEN REPLY @81 GOTO Talk5-3
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk5-1
SAY @82
=
@83
IF ~~ THEN REPLY @84 GOTO Talk5-2
IF ~~ THEN REPLY @81 GOTO Talk5-3
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk5-2
SAY @85
=
@86
IF ~~ THEN REPLY @79 GOTO Talk5-1
IF ~~ THEN REPLY @81 GOTO Talk5-3
IF ~~ THEN REPLY @26 GOTO Talk1-6
END

IF ~~ THEN BEGIN Talk5-3
SAY @87
=
@88
IF ~~ THEN REPLY @79 GOTO Talk5-1
IF ~~ THEN REPLY @80 GOTO Talk5-2
IF ~~ THEN REPLY @26 GOTO Talk1-6
END


BEGIN ~7xcre98~

IF ~NumTimesTalkedTo(0)~ 7xintro1
SAY @89
=
@90
IF ~~ THEN EXIT
END

IF ~Global("7xcre98","GLOBAL",0)Global("7xcre99","GLOBAL",0)~ 7xTALK1
SAY @91
=
@92
IF ~NumItemsPartyGT("Platnum",9999)~ THEN REPLY @93 DO ~TakePartyItemNum("Platnum",10000)DestroyItem("Platnum")~ GOTO 7xCONDO
IF ~~ THEN REPLY @94 GOTO 7xMONEY
IF ~~ THEN REPLY @95 GOTO 7xWASTE
END


IF ~~ 7xMONEY
SAY @96
IF ~~ THEN EXIT
END

IF ~~ 7xWASTE
SAY @97
IF ~~ THEN EXIT
END

IF ~~ 7xCONDO
SAY @98
=
@99
IF ~~ THEN DO ~SetGlobal("7xcre98","GLOBAL",1)SetGlobal("WaterGardensCondominium","GLOBAL",1)~ EXIT
END

IF ~Global("7xcre98","GLOBAL",1)RandomNum(6,6)~ 7xTALK2
SAY @100
IF ~~ THEN EXIT
END

IF ~Global("7xcre98","GLOBAL",1)RandomNum(6,1)~ RandomTalk1
SAY @101
=
@102
=
@103
IF ~~ THEN EXIT
END

IF ~Global("7xcre98","GLOBAL",1)RandomNum(6,2)~ RandomTalk2
SAY @104
=
@105
=
@106
=
@107
IF ~~ THEN EXIT
END

IF ~Global("7xcre98","GLOBAL",1)RandomNum(6,3)~ RandomTalk3
SAY @108
=
@109
=
@110
IF ~~ THEN EXIT
END

IF ~Global("7xcre98","GLOBAL",1)RandomNum(6,4)~ RandomTalk4
SAY @111
=
@112
=
@113
IF ~~ THEN EXIT
END

IF ~Global("7xcre98","GLOBAL",1)RandomNum(6,5)~ RandomTalk5
SAY @114
=
@115
IF ~~ THEN EXIT
END

BEGIN ~7xcre99~

IF ~Global("Jeeves1","GLOBAL",0)AreaCheck("ARBGX2")~ THEN BEGIN NEXTMOVE1-A
SAY @116
IF ~~ THEN REPLY @117 EXIT
IF ~~ THEN REPLY @118 GOTO CONDO
END

IF ~~ THEN BEGIN CONDO
SAY @119
IF ~~ THEN DO ~ClearAllActions()StartCutSceneMode()StartCutScene("CONDO")~ EXIT
END

IF ~Global("Jeeves1","GLOBAL",0)AreaCheck("ARBGX9")~ THEN BEGIN Rooms
SAY @120
IF ~~ THEN REPLY @121 DO ~StartStore("bg1npcZ",LastTalkedToBy())~ EXIT
IF ~~ THEN REPLY @95 EXIT
END


BEGIN ~bgsx48~

IF ~Global("bgsx48","GLOBAL",0)~ intro
SAY @122
=
@123
=
@124
=
@125
=
@126
IF ~~ THEN REPLY @127 GOTO SetFree
IF ~~ THEN REPLY @128 GOTO STAY
END

IF ~~ THEN SetFree
SAY @129
IF ~~ THEN DO ~AddJournalEntry(@1781,QUEST_DONE) SetGlobal("bgsx48","GLOBAL",2)
AddexperienceParty(2000)ReputationInc(2)DestroyItem("bgsx48")~ EXIT
END

IF ~~ THEN STAY
SAY @130
IF ~~ THEN DO ~SetGlobal("bgsx48","GLOBAL",1)~ EXIT
END


IF ~Global("bgsx48","GLOBAL",1)RandomNum(3,1)~ THEN BEGIN Talk1
SAY @131 
IF ~~ THEN REPLY @132 GOTO SPOT
IF ~~ THEN REPLY @127 GOTO SetFree
IF ~~ THEN REPLY @133 GOTO WORK
IF ~~ THEN REPLY @134 GOTO HANDY
END

IF ~~ THEN BEGIN SPOT
SAY @135
IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN WORK
SAY @136
IF ~~ THEN REPLY @137 GOTO FELARYA
IF ~~ THEN REPLY @138 EXIT
END

IF ~~ THEN BEGIN HANDY
SAY @139
IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN FELARYA
SAY @140
=
@141
=
@142
=
@143
IF ~~ THEN EXIT
END

IF ~Global("bgsx48","GLOBAL",1)RandomNum(3,2)~ THEN BEGIN Talk2
SAY @144
IF ~~ THEN REPLY @132 GOTO SPOT
IF ~~ THEN REPLY @145 GOTO Talk2-1
IF ~~ THEN REPLY @146 GOTO Talk2-2
END

IF ~~ THEN BEGIN Talk2-1
SAY @147
IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN Talk2-2
SAY @148
IF ~~ THEN EXIT
END

IF ~Global("bgsx48","GLOBAL",1)RandomNum(3,3)~ THEN BEGIN Talk3
SAY @149
IF ~~ THEN REPLY @132 GOTO SPOT
IF ~~ THEN REPLY @150 GOTO Talk3-1
IF ~~ THEN REPLY @151 GOTO Talk3-2
END

IF ~~ THEN BEGIN Talk3-1
SAY @152
=
@153
IF ~~ THEN REPLY @132 GOTO SPOT
IF ~~ THEN REPLY @154 GOTO SetFree
IF ~~ THEN REPLY @155 EXIT
END

IF ~~ THEN BEGIN Talk3-2
SAY @156
IF ~~ THEN EXIT
END
