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

BEGIN ~LIIA~

IF ~~ THEN BEGIN 0 // from:
  SAY #2262 /* ~Hobgoblin Shaman~ */
  IF ~~ THEN EXTERN ~BELT~ 1
END

IF ~~ THEN BEGIN 1 // from: NOBLPA1:1.0 NOBLPA:3.0
  SAY #2263 /* ~Hobgoblin Elite
~ */
  IF ~~ THEN EXTERN ~NOBLPA3~ 1
END

IF ~~ THEN BEGIN 2 // from: NOBLPA3:1.0 NOBLPA:5.0
  SAY #2264 /* ~Then he is a smart man because here we are. Would you like to travel with us, Aerie?~ */
  IF ~~ THEN EXTERN ~NOBLPA1~ 2
END

IF ~Dead("GDOPP7")
Dead("GDOPP71")
Dead("GDOPP72")
Dead("GDOPP73")
Dead("GDOPP74")
Dead("GDOPP75")
Global("SarevokBehavior","GLOBAL",0)
~ THEN BEGIN 3 // from:
  SAY #2265 /* ~Well, we were in the neighborhood and thought it would be nice to see you again.~ */
  IF ~PartyHasItem("SCRL2K")
~ THEN REPLY #2273 /* ~What? I'm not-~ */ GOTO 4
  IF ~~ THEN REPLY #2275 /* ~You're not what? You're not my beast? Oh, but you are, all of you are, don't you see?~ [KALAH08] */ GOTO 6
  IF ~PartyHasItem("SCRL3F")
~ THEN REPLY #20707 /* ~You keep mentioning your eyes... did you put your own eyes out?~ */ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.2 3.0
  SAY #2266 /* ~You would let me travel with you? I... I would like that, <CHARNAME>, and--and it would make Quayle so proud... Thank you.~ */
  IF ~~ THEN EXTERN ~SAREVO~ 9
END

IF ~~ THEN BEGIN 5 // from:
  SAY #2267 /* ~It's--It's always nice to see you, <CHARNAME>... I-I have to go. I have errands to do.~ */
  IF ~~ THEN DO ~Wait(10)
~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 3.1
  SAY #2268 /* ~Hobgoblin Wizard
~ */
  IF ~~ THEN REPLY #2276 /* ~Kobold Captain~ */ EXTERN ~SAREVO~ 25
  IF ~PartyHasItem("SCRL2K")
~ THEN REPLY #2277 /* ~Wha--What have you done to my Uncle Quayle?~ */ EXTERN ~SAREVO~ 9
  IF ~PartyHasItem("SCRL3F")
~ THEN REPLY #20708 /* ~Errr... I'll be on my way.~ */ EXIT
END

IF ~~ THEN BEGIN 7 // from:
  SAY #2269 /* ~Hobgoblin Wizard~ */
  IF ~~ THEN EXTERN ~SAREVO~ 10
END

IF ~Global("SarevokBehavior","GLOBAL",1)
~ THEN BEGIN 8 // from:
  SAY #2270 /* ~Be careful, <CHARNAME>. Some of these beasts are real and some are illusions. There's no way to tell until they hit you.~ */
  IF ~~ THEN REPLY #2278 /* ~Kobold Captain~ */ DO ~SetGlobal("DukeThanks","GLOBAL",1)
~ GOTO 9
  IF ~~ THEN REPLY #2279 /* ~Kobold Witch Doctor~ */ DO ~SetGlobal("DukeThanks","GLOBAL",1)
~ GOTO 10
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #2271 /* ~Outsiders? You are not one of my pretty men! Why are you here?~ */
  IF ~~ THEN REPLY #2280 /* ~Kobold Witch Doctor~ */ GOTO 12
  IF ~~ THEN REPLY #2281 /* ~Kobold Witch Doctor~ */ GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.1 8.1
  SAY #2272 /* ~Ah, my beast, you have led them here nicely...~ [KALAH02] */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #20590 /* ~*ahem*... I lost Khalid... to a pointless death, I'm not going... to lose you too.~ */
  IF ~~ THEN DO ~ActionOverride(Player1,LeaveAreaLUAPanic("AR0153","",[793.364],12))
ActionOverride(Player1,LeaveAreaLUA("AR0153","",[793.364],12))
ActionOverride(Player1,SetMasterArea("AR0800"))
ActionOverride(Player2,LeaveAreaLUA("AR0153","",[799.418],12))
ActionOverride(Player3,LeaveAreaLUA("AR0153","",[804.470],12))
ActionOverride(Player4,LeaveAreaLUA("AR0153","",[884.384],12))
ActionOverride(Player5,LeaveAreaLUA("AR0153","",[908.422],12))
ActionOverride(Player6,LeaveAreaLUA("AR0153","",[936.473],12))
~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 9.0
  SAY #20591 /* ~Jaheira? Jaheira, I...~ */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #20592 /* ~Oh, shut up and let's get out of here. We'll... we'll talk later.~ */
  IF ~~ THEN JOURNAL #20593 /* ~Leaving the Island

Saemon's offer of a ship was not a sincere one, and no doubt he knew it.  His own ship is scuttled and he requires my help to get another... no doubt why he made the offer to begin with.  I have decided to enter the asylum and find the magic portal that he mentioned earlier.  Should I change my mind, however, he will no doubt still need me.~ */ EXIT
END
