// creator  : weidu.exe (version 23600)
// argument : DETRAN.DLG
// game     : .
// source   : ./DATA/DIALOG.BIF
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~DETRAN~

IF ~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #22087 /* ~So Captain Kieres is soon to sail, I hear.~ */
  IF ~~ THEN REPLY #22113 /* ~Aye, and good riddance.~ */ GOTO 1
  IF ~~ THEN REPLY #22114 /* ~Aye, but before he does, he's requested a bottle of your foulest swill.~ */ GOTO 6
  IF ~~ THEN REPLY #22115 /* ~Please, I don't have time to pass the day in idle chitchat.~ */ GOTO 7
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #22090 /* ~Ha! I couldn't agree more, my friend. Unfortunately, he has yet to settle his tab at my brewery. His crew has drowned themselves in a dozen kegs of my hardest liquor and I've seen nary a coin for it yet.~ */
  IF ~~ THEN REPLY #22117 /* ~How large was his tab?~ */ GOTO 2
  IF ~~ THEN REPLY #22116 /* ~So it's no surprise that he sent me to get him one last bottle rather than come himself, hmm?~ */ GOTO 8
END

IF ~~ THEN BEGIN 2 // from: 8.0 6.0 1.0
  SAY #22091 /* ~900 gold at last count...~ */
  IF ~~ THEN REPLY #22118 /* ~Ouch...~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #22105 /* ~If you don't mind the proposal, I'll trade you a jug of my finest if you would be so kind as to relieve me of his debt.~ */
  IF ~~ THEN REPLY #22119 /* ~You mean pay you 900 gold for a bottle of screech? That's rather steep, don't you think?~ */ GOTO 4
  IF ~~ THEN REPLY #22120 /* ~Maybe some other time, De'Tranion.~ */ GOTO 7
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #22106 /* ~You're right, 'tis madness to even ask. Perhaps I can still convince the Merchants' League to cover it.~ */
  IF ~  PartyGoldGT(899)
~ THEN REPLY #22121 /* ~You have too much faith in the League, my friend. Here, allow me to pay you the Captain's 900 gold and be done with it.~ */ GOTO 5
  IF ~  PartyGoldLT(900)
~ THEN REPLY #22122 /* ~You have too much faith in the League, my friend. I don't have your 900 gold on me but, in exchange for that jug of ale you promised, it shan't be long before I do.~ */ GOTO 7
  IF ~~ THEN REPLY #22123 /* ~Maybe some other time, De'Tranion.~ */ GOTO 7
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #22107 /* ~You are a godsend! Allow me to give you a jug of De'Tranion's Baalor Ale in gratitude. I brew it with pimentos shipped from Calimshan, to give it that little extra kick.~ */
  IF ~~ THEN DO ~TakePartyGold(900)
GiveItem("misc97",LastTalkedToBy)
SetGlobal("TRANION","GLOBAL",2)
EscapeArea()
~ UNSOLVED_JOURNAL #26966 /* ~The Sea Charts
I have acquired a bottle of Baalor Ale for Captain Kieres, but it cost me 900 gold to settle his tab. I hope he appreciates the favor.~ */ EXIT
END

IF ~~ THEN BEGIN 6 // from: 0.1
  SAY #22108 /* ~My foulest swill, is it? Hmph, he always asks for more but he'll never thank you for what he's had... His crew drowned themselves in a dozen kegs of that foulest swill and I've seen nary a coin for the brewing of it yet.~ */
  IF ~~ THEN REPLY #22125 /* ~How much does he owe you?~ */ GOTO 2
  IF ~~ THEN REPLY #22126 /* ~So it comes as no surprise that he has sent me to get him one last bottle rather than come himself, hmm?~ */ GOTO 8
END

IF ~~ THEN BEGIN 7 // from: 9.2 9.1 8.1 4.2 4.1 3.1 0.2
  SAY #22109 /* ~Well I won't be going anywhere anytime soon, so if you ever need a brewer, you know where to find Old De'Tranion.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27209 /* ~The Sea Charts
I have found where to acquire a bottle of Baalor Ale for Captain Kieres, but I will have to pay his outstanding tab in order to get it. How does anyone accumulate a 900 gold bar tab and live?~ */ EXIT
END

IF ~~ THEN BEGIN 8 // from: 6.1 1.1
  SAY #22110 /* ~Oy, the only surprise is that a good soul such as you has been fool enough to do it. Well he'll get no more swill from me until his debt is paid!~ */
  IF ~~ THEN REPLY #22128 /* ~And how much does he owe you?~ */ GOTO 2
  IF ~~ THEN REPLY #22129 /* ~Hmm, perhaps we'll talk again, then.~ */ GOTO 7
END

IF ~  True()
~ THEN BEGIN 9 // from:
  SAY #22111 /* ~Take a chance and curry favor with the captain! I'm giving out a jug of my finest rum to anyone willing to foot his tab! A mere 900 gold pieces to keep a brewer in business and make the world a better place!~ */
  IF ~  PartyGoldGT(899)
~ THEN REPLY #22130 /* ~900 gold it is. Probably the most expensive liquor I'll ever buy but it's for a good cause, at least.~ */ GOTO 10
  IF ~  PartyGoldLT(900)
~ THEN REPLY #22131 /* ~I don't have 900 gold on me but it shan't be long before I do.~ */ GOTO 7
  IF ~~ THEN REPLY #22132 /* ~Another time, perhaps.~ */ GOTO 7
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #22112 /* ~Well it's the captain's favorite, of that I assure you.~ */
  IF ~~ THEN DO ~TakePartyGold(900)
GiveItem("misc97",LastTalkedToBy)
SetGlobal("TRANION","GLOBAL",2)
EraseJournalEntry(27209)
EscapeArea()
~ UNSOLVED_JOURNAL #26966 /* ~The Sea Charts
I have acquired a bottle of Baalor Ale for Captain Kieres, but it cost me 900 gold to settle his tab. I hope he appreciates the favor.~ */ EXIT
END
