// creator  : weidu.exe (version 23100)
// argument : _DETRAN.DLG
// game		 : .
// source	 : ./override/_DETRAN.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~_DETRAN~

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

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #79721 /* ~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 #79722 /* ~How large was his tab?~ */ GOTO 2
  IF ~~ THEN REPLY #79723 /* ~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 #79724 /* ~900 gold at last count...~ */
  IF ~~ THEN REPLY #79725 /* ~Ouch...~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #79726 /* ~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 #79727 /* ~You mean pay you 900 gold for a bottle of screech? That's rather steep, don't you think?~ */ GOTO 4
  IF ~~ THEN REPLY #79728 /* ~Maybe some other time, De'Tranion.~ */ GOTO 7
  IF ~Global("X#VicDet","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VicDet","GLOBAL",1)~ EXTERN ~_VICONJ~ 51
END

IF ~~ THEN BEGIN 4 // from: 11.0 3.0
  SAY #79729 /* ~You're right, 'tis madness to even ask.  Perhaps I can still convince the Merchant League to cover it.~ */
  IF ~PartyGoldGT(899)
~ THEN REPLY #79730 /* ~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 #79731 /* ~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 #79728 /* ~Maybe some other time, De'Tranion.~ */ GOTO 7
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #79732 /* ~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)
EscapeArea()
~ UNSOLVED_JOURNAL #79733 /* ~The sea charts

I have acquired a bottle of questionable swill for Captain Kieres, but it cost me 900 gold to settle his tab.  He had better be cooperative when I get back to him.~ */ EXIT
END

IF ~~ THEN BEGIN 6 // from: 0.1
  SAY #79735 /* ~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 #79736 /* ~How much does he owe you?~ */ GOTO 2
  IF ~~ THEN REPLY #79737 /* ~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: 11.1 9.2 9.1 8.1 4.2 4.1 3.1 0.2
  SAY #79738 /* ~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 EXIT
END

IF ~~ THEN BEGIN 8 // from: 6.1 1.1
  SAY #79740 /* ~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 #79741 /* ~And how much does he owe you?~ */ GOTO 2
  IF ~~ THEN REPLY #79742 /* ~Hmm, perhaps we'll talk again, then.~ */ GOTO 7
END

IF ~True()
~ THEN BEGIN 9 // from:
  SAY #79743 /* ~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 #79744 /* ~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 #79745 /* ~I don't have 900 gold on me but it shan't be long before I do.~ */ GOTO 7
  IF ~~ THEN REPLY #79746 /* ~Another time, perhaps.~ */ GOTO 7
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #79747 /* ~Well it's the Captain's favorite, of that I assure you.~ */
  IF ~~ THEN DO ~TakePartyGold(900)
GiveItem("_MISC97",LastTalkedToBy)
EscapeArea()
~ UNSOLVED_JOURNAL #79733 /* ~The sea charts

I have acquired a bottle of questionable swill for Captain Kieres, but it cost me 900 gold to settle his tab.  He had better be cooperative when I get back to him.~ */ EXIT
END

IF ~~ THEN BEGIN 11 // from:
  SAY #98441 /* ~Is that so, missy? Perhaps others you travel with have more rounded tastes.~ */
  IF ~~ THEN REPLY #79727 /* ~You mean pay you 900 gold for a bottle of screech? That's rather steep, don't you think?~ */ GOTO 4
  IF ~~ THEN REPLY #79728 /* ~Maybe some other time, De'Tranion.~ */ GOTO 7
END
