BEGIN ~detran~

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0
  SAY @22087
  IF ~~ THEN REPLY @22113 GOTO 1
  IF ~~ THEN REPLY @22114 GOTO 6
  IF ~~ THEN REPLY @22115 GOTO 7
END

IF ~~ THEN BEGIN 1
  SAY @22090
  IF ~~ THEN REPLY @22117 GOTO 2
  IF ~~ THEN REPLY @22116 GOTO 8
END

IF ~~ THEN BEGIN 2
  SAY @22091
  IF ~~ THEN REPLY @22118 GOTO 3
END

IF ~~ THEN BEGIN 3
  SAY @22105
  IF ~~ THEN REPLY @22119 GOTO 4
  IF ~~ THEN REPLY @22120 GOTO 7
END

IF ~~ THEN BEGIN 4
  SAY @22106
  IF ~PartyGoldGT(899)~ THEN REPLY @22121 GOTO 5
  IF ~PartyGoldLT(900)~ THEN REPLY @22122 GOTO 7
  IF ~~ THEN REPLY @22123 GOTO 7
END

IF ~~ THEN BEGIN 5
  SAY @22107
  IF ~~ THEN DO ~TakePartyGold(900)
GiveItem("misc97",LastTalkedToBy)
EscapeArea()~ UNSOLVED_JOURNAL @310650 EXIT
END

IF ~~ THEN BEGIN 6
  SAY @22108
  IF ~~ THEN REPLY @22125 GOTO 2
  IF ~~ THEN REPLY @22126 GOTO 8
END

IF ~~ THEN BEGIN 7
  SAY @22109
  IF ~~ THEN UNSOLVED_JOURNAL @310651 EXIT
END

IF ~~ THEN BEGIN 8
  SAY @22110
  IF ~~ THEN REPLY @22128 GOTO 2
  IF ~~ THEN REPLY @22129 GOTO 7
END

IF ~True()~ THEN BEGIN 9
  SAY @22111
  IF ~PartyGoldGT(899)~ THEN REPLY @22130 GOTO 10
  IF ~PartyGoldLT(900)~ THEN REPLY @22131 GOTO 7
  IF ~~ THEN REPLY @22132 GOTO 7
END

IF ~~ THEN BEGIN 10
  SAY @22112
  IF ~~ THEN DO ~TakePartyGold(900)
GiveItem("misc97",LastTalkedToBy)
EscapeArea()~ UNSOLVED_JOURNAL @310650 EXIT
END
