BEGIN ~baresh~

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0
  SAY @23413
  IF ~~ THEN REPLY @23414 GOTO 1
  IF ~~ THEN REPLY @23415 GOTO 2
  IF ~~ THEN REPLY @23416 GOTO 3
END

IF ~~ THEN BEGIN 1
  SAY @23417
  IF ~~ THEN REPLY @23418 GOTO 2
  IF ~~ THEN REPLY @23419 GOTO 4
END

IF ~~ THEN BEGIN 2
  SAY @23420
  IF ~~ THEN REPLY @23421 GOTO 4
  IF ~~ THEN REPLY @23422 GOTO 5
  IF ~PartyHasItem("book87")~ THEN REPLY @23423 GOTO 6
END

IF ~~ THEN BEGIN 3
  SAY @23425
  IF ~~ THEN REPLY @23426 GOTO 5
  IF ~~ THEN REPLY @23427 GOTO 7
  IF ~~ THEN REPLY @23428 GOTO 1
END

IF ~~ THEN BEGIN 4
  SAY @23429
  IF ~~ THEN REPLY @23430 GOTO 5
  IF ~~ THEN REPLY @23431 GOTO 7
  IF ~~ THEN REPLY @23432 GOTO 1
END

IF ~~ THEN BEGIN 5
  SAY @23433
  IF ~~ THEN DO ~SetGlobal("Baresh","GLOBAL",1)
MoveToObject("DOOR1004")
OpenDoor("DOOR1004")
DestroySelf()~ EXIT
END

IF ~~ THEN BEGIN 6
  SAY @23434
  IF ~~ THEN REPLY @23435 GOTO 5
  IF ~~ THEN REPLY @23436 GOTO 7
END

IF ~~ THEN BEGIN 7
  SAY @23437
  IF ~~ THEN REPLY @23438 GOTO 5
  IF ~~ THEN REPLY @23439 GOTO 4
END
