// creator  : weidu.exe (version 23100)
// argument : UDDUER01.DLG
// game		 : .
// source	 : ./DATA/DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~UDDUER01~ 1 // non-zero flags may indicate non-pausing dialogue

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
  SAY #50127 /* ~Cor der noror rrin doth samman?~ */
  IF ~OR(4)
Dead("Viconia")
!InParty("Viconia")
!See("Viconia")
StateCheck("Viconia",STATE_SLEEPING)
Global("PlayerLooksLikeDrow","GLOBAL",0)
~ THEN DO ~SetGlobal("TalkedToCarlig","GLOBAL",1)~ EXTERN ~UDDUER02~ 0
  IF ~!Dead("Viconia")
InParty("Viconia")
See("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)
Global("PlayerLooksLikeDrow","GLOBAL",0)
~ THEN DO ~SetGlobal("TalkedToCarlig","GLOBAL",1)
~ EXTERN ~VICONIJ~ 80
  IF ~Global("PlayerLooksLikeDrow","GLOBAL",1)
!IsValidForPartyDialogue("VICONIA")
!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("MINSC")~ THEN GOTO 15
  IF ~Global("PlayerLooksLikeDrow","GLOBAL",1)
IsValidForPartyDialogue("VICONIA")
~ THEN EXTERN ~VICONIJ~ 141
  IF ~Global("PlayerLooksLikeDrow","GLOBAL",1)
!IsValidForPartyDialogue("VICONIA")
IsValidForPartyDialogue("JAHEIRA")~ THEN EXTERN ~JAHEIRAJ~ 471
  IF ~Global("PlayerLooksLikeDrow","GLOBAL",1)
IsValidForPartyDialogue("MINSC")
!IsValidForPartyDialogue("VICONIA")
!IsValidForPartyDialogue("JAHEIRA")~ THEN EXTERN ~MINSCJ~ 171
END

IF ~~ THEN BEGIN 1 // from: UDDUER03:0.0
  SAY #50138 /* ~Ahh haha. (ahem) You must excuse my fellows. It is not often we encounter surfacers down here.~ */
  IF ~~ THEN EXTERN ~UDDUER03~ 1
END

IF ~~ THEN BEGIN 2 // from: UDDUER03:1.0
  SAY #50142 /* ~Well, unfortunate things can happen in the depths, but we do not partake in such events. I am Carlig, a trader of sorts.~ */
  IF ~~ THEN REPLY #50166 /* ~I am <CHARNAME>. I am looking for a couple of other 'surfacers,' as you say.~ */ GOTO 3
  IF ~~ THEN REPLY #50167 /* ~Well, as you can tell, I am new around here. What should I look out for?~ */ GOTO 4
  IF ~~ THEN REPLY #50168 /* ~I don't care. I just want to find the two bastards I came for and leave.~ */ GOTO 7
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #50183 /* ~I haven't seen many strangers around here, and I talk to everyone. Well, almost.~ */
  IF ~~ THEN EXTERN ~UDDUER02~ 2
END

IF ~~ THEN BEGIN 4 // from: 2.1
  SAY #50185 /* ~Oh, most people will leave you alone if you are careful not to let them see you. Heh, I joke, of course.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #50188 /* ~I can't really tell you what to watch out for. I get along with most people, but I belong here. Your experience will be quite different.~ */
  IF ~~ THEN EXTERN ~UDDUER02~ 1
END

IF ~~ THEN BEGIN 6 // from: UDDUER02:3.0 UDDUER02:2.0 UDDUER02:1.0
  SAY #50190 /* ~Oh yes, those two. Bad news, I would wager. I've seen them near the Drow city. Must be up to dirty dealings; those ol morogh dark elves don't usually let strangers live.~ */
  IF ~~ THEN REPLY #50194 /* ~Those are the two I'm looking for! Bodhi and Irenicus! I'll have to go after them!~ */ GOTO 8
  IF ~~ THEN REPLY #50195 /* ~Well, thanks for the warning, but I'll have to take my chances.~ */ GOTO 8
  IF ~~ THEN REPLY #50196 /* ~Yes, well the people I meet will have plenty to worry about themselves.~ */ GOTO 8
END

IF ~~ THEN BEGIN 7 // from: 2.2
  SAY #50192 /* ~No cause for that kind of statement. You'll end up dead sooner than later if you keep it up.~ */
  IF ~~ THEN EXTERN ~UDDUER02~ 3
END

IF ~~ THEN BEGIN 8 // from: 6.2 6.1 6.0
  SAY #50204 /* ~Well then, I'll wish you luck, though you won't be able to simply walk into the Drow city.~ */
  IF ~~ THEN EXTERN ~UDDUER03~ 2
END

IF ~~ THEN BEGIN 9 // from: UDDUER03:2.0
  SAY #50209 /* ~That's their choice to make, Finderlig. No need to worry them more. Ask about before you go assaulting that place. Might be a better way.~ */
  IF ~~ THEN EXTERN ~UDDUER03~ 3
END

IF ~~ THEN BEGIN 10 // from: UDDUER03:3.0
  SAY #50212 /* ~Well, in any case, I've wares to sell if you are interested. Always looking for fresh faces to trade with. No matter the color of shadow in you.~ */
  IF ~Global("DrowGuest","GLOBAL",0)~ THEN REPLY #50214 /* ~I'll have a look. Let's see what you have.~ */ DO ~StartStore("udduer01",LastTalkedToBy())~ UNSOLVED_JOURNAL #57515 /* ~Tracking Irenicus.

Bodhi and Irenicus did pass through the Underdark. They may have been dealing with the Drow to secure passage.~ */ EXIT
  IF ~~ THEN REPLY #50215 /* ~No thanks. Maybe some other time.~ */ UNSOLVED_JOURNAL #57515 /* ~Tracking Irenicus.

Bodhi and Irenicus did pass through the Underdark. They may have been dealing with the Drow to secure passage.~ */ GOTO 11
  IF ~~ THEN REPLY #50216 /* ~I'm not here to shop. I've more important business to attend to.~ */ UNSOLVED_JOURNAL #57515 /* ~Tracking Irenicus.

Bodhi and Irenicus did pass through the Underdark. They may have been dealing with the Drow to secure passage.~ */ GOTO 11
  IF ~Global("DrowGuest","GLOBAL",1)~ THEN REPLY #50258 /* ~I'll have a look. Let's see what you have.~ */ DO ~StartStore("udduer02",LastTalkedToBy())~ UNSOLVED_JOURNAL #57515 /* ~Tracking Irenicus.

Bodhi and Irenicus did pass through the Underdark. They may have been dealing with the Drow to secure passage.~ */ EXIT
END

IF ~~ THEN BEGIN 11 // from: 10.2 10.1
  SAY #50220 /* ~Very well then, though I'd make your return visit soon, while you are still able.~ */
  IF ~~ THEN EXIT
END

IF ~Global("PlayerLooksLikeDrow","GLOBAL",0)
~ THEN BEGIN 12 // from:
  SAY #50222 /* ~Ahh, you are back. Do you require a look at my wares now, or is there something else I can do?~ */
  IF ~Global("DrowGuest","GLOBAL",0)~ THEN REPLY #50225 /* ~I'll have a look at what you have.~ */ DO ~StartStore("udduer01",LastTalkedToBy())~ EXIT
  IF ~~ THEN REPLY #50226 /* ~Heard anything new about those two people I'm looking for?~ */ GOTO 14
  IF ~~ THEN REPLY #50227 /* ~Nothing right now. I'll be going.~ */ GOTO 13
  IF ~Global("DrowGuest","GLOBAL",1)~ THEN REPLY #50257 /* ~I'll have a look at what you have.~ */ DO ~StartStore("udduer02",LastTalkedToBy())~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 14.1 12.2
  SAY #50228 /* ~Suit yourself. Good luck.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 14 // from: 12.1
  SAY #50230 /* ~Sorry, no, I have heard nothing more about them. I do not get involved in the affairs of the Drow. I'm a simple trader.~ */
  IF ~Global("DrowGuest","GLOBAL",0)~ THEN REPLY #50231 /* ~I'll have a look at what you have.~ */ DO ~StartStore("udduer01",LastTalkedToBy())~ EXIT
  IF ~~ THEN REPLY #50232 /* ~Then I'll be going.~ */ GOTO 13
  IF ~Global("DrowGuest","GLOBAL",1)~ THEN REPLY #50256 /* ~I'll have a look at what you have.~ */ DO ~StartStore("udduer02",LastTalkedToBy())~ EXIT
END

IF ~Global("PlayerLooksLikeDrow","GLOBAL",1)~ THEN BEGIN 15 // from: VICONIJ:141.0 UDDUER02:17.0 0.2
  SAY #50233 /* ~M-malla C'rintri, most n-noble of Drow. I, Carlig, a simple trader, welcome your passing. Lolth kyorl dos.~ */
  IF ~~ THEN REPLY #50237 /* ~Spare my language your fumbling tongue. Show me your wares and be quick.~ */ DO ~StartStore("udduer02",LastTalkedToBy())~ EXIT
  IF ~~ THEN REPLY #50238 /* ~Have you seen anyone that shouldn't be here? You would know of whom I speak.~ */ GOTO 17
  IF ~~ THEN REPLY #50239 /* ~I wish nothing from you, worm. You will be fortunate if my mood remains so.~ */ GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 20.1 18.2 15.2
  SAY #50243 /* ~Of... of course. L'elend zhah alurl. I s-stand at your service, should you need.~ */
  IF ~!IsValidForPartyDialogue("AERIE")
!IsValidForPartyDialogue("KORGAN")
!IsValidForPartyDialogue("EDWIN")
~ THEN EXIT
  IF ~IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~KORGANJ~ 134
  IF ~IsValidForPartyDialogue("AERIE")
!IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~AERIEJ~ 150
  IF ~IsValidForPartyDialogue("EDWIN")
!IsValidForPartyDialogue("AERIE")
!IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~EDWINJ~ 116
END

IF ~~ THEN BEGIN 17 // from: 15.1
  SAY #50246 /* ~Ahh, n...  yes, yes I have. There were two that traveled to the city, y-your city. A mage and a vampire. I assumed they were there on business.~ */
  IF ~Global("TalkedToCarlig","GLOBAL",0)~ THEN JOURNAL #57515 /* ~Tracking Irenicus.

Bodhi and Irenicus did pass through the Underdark. They may have been dealing with the Drow to secure passage.~ */ GOTO 18
  IF ~Global("TalkedToCarlig","GLOBAL",1)~ THEN JOURNAL #57515 /* ~Tracking Irenicus.

Bodhi and Irenicus did pass through the Underdark. They may have been dealing with the Drow to secure passage.~ */ GOTO 19
END

IF ~~ THEN BEGIN 18 // from: 19.0 17.0
  SAY #50248 /* ~N-not that I should know what business they would have with Drow. That is their concern and yours. Not my affair at all.~ */
  IF ~Global("TalkedToCarlig","GLOBAL",0)~ THEN REPLY #50252 /* ~If you see more strangers, an adventuring group, treat them well. They are guests.~ */ DO ~SetGlobal("DrowGuest","GLOBAL",1)~ GOTO 20
  IF ~~ THEN REPLY #50253 /* ~Very good. Now, show me what you have for trade today.~ */ DO ~StartStore("udduer02",LastTalkedToBy())~ EXIT
  IF ~~ THEN REPLY #50260 /* ~A good attitude. I leave you to your trading.~ */ GOTO 16
  IF ~Global("TalkedToCarlig","GLOBAL",1)~ THEN REPLY #50293 /* ~If you see the second group again, treat them well. They are guests.~ */ DO ~SetGlobal("DrowGuest","GLOBAL",1)
~ GOTO 20
END

IF ~~ THEN BEGIN 19 // from: 17.1
  SAY #50249 /* ~T-there was another group as well. They seemed interested in where the first two were going. Again, I thought it Drow business.~ */
  IF ~~ THEN GOTO 18
END

IF ~~ THEN BEGIN 20 // from: 18.3 18.0
  SAY #50254 /* ~Of course, of course. It shall be so.~ */
  IF ~~ THEN REPLY #50261 /* ~Now, show me what you have for trade. Quickly!~ */ DO ~StartStore("udduer02",LastTalkedToBy())~ EXIT
  IF ~~ THEN REPLY #50262 /* ~Good. I leave you your life. Good bye.~ */ GOTO 16
END

IF ~~ THEN BEGIN 21 // from: VICONIJ:80.0
  SAY #50285 /* ~Of... of course, Malla Viconia. I am at your service in all matters.~ */
  IF ~~ THEN EXTERN ~UDDUER02~ 6
END

IF ~~ THEN BEGIN 22 // from: VICONIJ:81.0
  SAY #50291 /* ~Mordin dares nothing, I assure you, though it is simply good policy to understand who you are dealing with.~ */
  IF ~~ THEN GOTO 23
END

IF ~~ THEN BEGIN 23 // from: 22.0
  SAY #50292 /* ~You must excuse my fellows, but it is not often that those not directly associated with a house pass this way.~ */
  IF ~~ THEN EXTERN ~UDDUER03~ 1
END

IF ~~ THEN BEGIN 24 // from:
  SAY #55923 /* ~Ah, I beg your pardon?~ */
  IF ~~ THEN EXTERN ~UDDUER02~ 17
END

IF ~~ THEN BEGIN 25 // from:
  SAY #55927 /* ~M... Malla Drow? Your... accent is most unusual. Hmm...~ */
  IF ~!IsValidForPartyDialogue("VICONIA")
!IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("CERND")~ THEN EXIT
  IF ~IsValidForPartyDialogue("VICONIA")~ THEN EXTERN ~VICONIJ~ 142
  IF ~IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("VICONIA")~ THEN EXTERN ~HAERDAJ~ 114
  IF ~IsValidForPartyDialogue("CERND")
!IsValidForPartyDialogue("VICONIA")
!IsValidForPartyDialogue("HAERDALIS")~ THEN EXTERN ~CERNDJ~ 112
END
