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

BEGIN ~_NADARI~

IF ~Global("NADARIN","GLOBAL",0)
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 0 // from:
  SAY #81412 /* ~With breath that strong, you could kill giants. Now get out of here before I hurt you.~ */
  IF ~~ THEN EXIT
  IF ~Global("X#AloraNadarin1","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AloraNadarin1","GLOBAL",1)~ EXTERN ~_ALORAJ~ 41
END

IF ~Global("NADARIN","GLOBAL",0)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN BEGIN 1 // from:
  SAY #81413 /* ~Hey you! You look either bored or foolish. Either way, I could use your services. Some wiseacre tried to send a basilisk by freight and now it's broken free and is making a mess of one of the warehouses at the harbor. As I said, I need someone who's either bored or foolish.~ */
  IF ~~ THEN DO ~SetGlobal("NADARIN","GLOBAL",1)
~ UNSOLVED_JOURNAL #81414 /* ~Basilisk on the loose

A basilisk has escaped from the ship that was carrying it, and is now petrifying everyone at a warehouse on the docks in Baldur's Gate.  If I can successfully dispose of it, Nadarin ought to be very grateful!~ */ EXIT
  IF ~Global("X#NADARI1","GLOBAL",0)
InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#NADARI1","GLOBAL",1)~ GOTO 11
  IF ~Global("X#NADARI1","GLOBAL",0)
InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#NADARI1","GLOBAL",1)~ EXTERN ~_BRANWJ~ 77
  IF ~Global("X#NADARI1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#NADARI1","GLOBAL",1)~ EXTERN ~_XANJ~ 229
  IF ~Global("X#NADARI1","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#NADARI1","GLOBAL",1)~ EXTERN ~_ALORAJ~ 111
  IF ~Global("X#NADARI1","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#NADARI1","GLOBAL",1)~ GOTO 15
  IF ~Global("X#NADARI1","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#NADARI1","GLOBAL",1)~ EXTERN ~_ALORAJ~ 113
END

IF ~Global("NADARIN","GLOBAL",1)
!Dead("basilnad")
~ THEN BEGIN 2 // from:
  SAY #81415 /* ~Look, how many times to I have to ask you? The docks are more ornamented than the high hall!~ */
  IF ~~ THEN EXIT
  IF ~Global("X#AloraNadarin3","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AloraNadarin3","GLOBAL",1)~ EXTERN ~_ALORAJ~ 39
END

IF ~Global("NADARIN","GLOBAL",1)
ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
Dead("basilnad")
~ THEN BEGIN 3 // from:
  SAY #81416 /* ~Thanks and long live the foolish! Here's 500 gp for taking care of that on such short notice.  Also, you might want these.  They're an item I obtained from a fence I know in Athkatla.  You never know, they might fit you.~ */
  IF ~~ THEN DO ~EraseJournalEntry(81414)
AddexperienceParty(1300)
GiveGoldForce(500)
GiveItem("_BOOT02",LastTalkedToBy)
SetGlobal("NADARIN","GLOBAL",2)
~ SOLVED_JOURNAL #88934 /* ~Basilisk on the loose

The escaped basilisk which was terrorizing the docks has been slain.  Nadarin rewarded me generously upon hearing the news.~ */ EXIT
  IF ~Global("X#AloraNadarin4","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AloraNadarin4","GLOBAL",1)~ EXTERN ~_ALORAJ~ 38
END

IF ~Global("NADARIN","GLOBAL",1)
ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
Dead("basilnad")
~ THEN BEGIN 4 // from:
  SAY #81417 /* ~Thank the gods for bored adventurers. I don't know what we'd do without you. Here's 1,800 gp for your help.~ */
  IF ~~ THEN DO ~EraseJournalEntry(81414)
AddexperienceParty(1300)
GiveGoldForce(1800)
SetGlobal("NADARIN","GLOBAL",2)
~ SOLVED_JOURNAL #88934 /* ~Basilisk on the loose

The escaped basilisk which was terrorizing the docks has been slain.  Nadarin rewarded me generously upon hearing the news.~ */ EXIT
END

IF ~False()
~ THEN BEGIN 5 // from:
  SAY #81418 /* ~Curses! You adventurers are all the same! I've got an emergency to deal with and all you want to do is cause trouble! Damn you to the Ninth Hell!~ */
  IF ~~ THEN EXIT
END

IF ~True()
~ THEN BEGIN 6 // from:
  SAY #81419 /* ~Cheers to all of you for saving our docks from becoming a stone quarry!~ */
  IF ~~ THEN EXIT
  IF ~Global("X#AloraNadarin5","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AloraNadarin5","GLOBAL",1)~ EXTERN ~_ALORAJ~ 37
END

IF ~~ THEN BEGIN 7 // from:
  SAY #74023 /* ~~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8 // from:
  SAY #29568 /* ~Bah!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 9 // from:
  SAY #100186 /* ~Bah, you aren't smelling too great yourself, woman!~ */
  IF ~~ THEN DO ~EraseJournalEntry(81414)
AddexperienceParty(1300)
GiveGoldForce(500)
GiveItem("_BOOT02",LastTalkedToBy)
SetGlobal("NADARIN","GLOBAL",2)
~ SOLVED_JOURNAL #88934 /* ~Basilisk on the loose

The escaped basilisk which was terrorizing the docks has been slain.  Nadarin rewarded me generously upon hearing the news.~ */ EXIT
END

IF ~~ THEN BEGIN 10 // from:
  SAY #100188 /* ~Please, get outta my face and go kill that damned monster 'fore I suffer a hernia.~ */
  IF ~~ THEN EXIT
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ALORAJ~ 40
END

IF ~~ THEN BEGIN 11 // from: 1.1
  SAY #103123 /* ~Bored, foolish and have a score t' settle. You qualify.~ */
  IF ~~ THEN DO ~SetGlobal("NADARIN","GLOBAL",1)
~ UNSOLVED_JOURNAL #81414 /* ~Basilisk on the loose

A basilisk has escaped from the ship that was carrying it, and is now petrifying everyone at a warehouse on the docks in Baldur's Gate.  If I can successfully dispose of it, Nadarin ought to be very grateful!~ */ EXIT
END

IF ~~ THEN BEGIN 12 // from:
  SAY #103123 /* ~Bored, foolish and have a score t' settle. You qualify.~ */
  IF ~~ THEN DO ~SetGlobal("NADARIN","GLOBAL",1)
~ UNSOLVED_JOURNAL #81414 /* ~Basilisk on the loose

A basilisk has escaped from the ship that was carrying it, and is now petrifying everyone at a warehouse on the docks in Baldur's Gate.  If I can successfully dispose of it, Nadarin ought to be very grateful!~ */ EXIT
END

IF ~~ THEN BEGIN 13 // from:
  SAY #103123 /* ~Bored, foolish and have a score t' settle. You qualify.~ */
  IF ~~ THEN DO ~SetGlobal("NADARIN","GLOBAL",1)
~ UNSOLVED_JOURNAL #81414 /* ~Basilisk on the loose

A basilisk has escaped from the ship that was carrying it, and is now petrifying everyone at a warehouse on the docks in Baldur's Gate.  If I can successfully dispose of it, Nadarin ought to be very grateful!~ */ EXIT
END

IF ~~ THEN BEGIN 14 // from:
  SAY #103123 /* ~Bored, foolish and have a score t' settle. You qualify.~ */
  IF ~~ THEN DO ~SetGlobal("NADARIN","GLOBAL",1)
~ UNSOLVED_JOURNAL #81414 /* ~Basilisk on the loose

A basilisk has escaped from the ship that was carrying it, and is now petrifying everyone at a warehouse on the docks in Baldur's Gate.  If I can successfully dispose of it, Nadarin ought to be very grateful!~ */ EXIT
END

IF ~~ THEN BEGIN 15 // from: 1.5
  SAY #103119 /* ~ My lucky day, then. I got someone who's bored AND foolish.~ */
  IF ~~ THEN DO ~SetGlobal("NADARIN","GLOBAL",1)
~ UNSOLVED_JOURNAL #81414 /* ~Basilisk on the loose

A basilisk has escaped from the ship that was carrying it, and is now petrifying everyone at a warehouse on the docks in Baldur's Gate.  If I can successfully dispose of it, Nadarin ought to be very grateful!~ */ EXIT
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN GOTO 16
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 80
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN EXTERN ~_XANJ~ 231
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ALORAJ~ 112
END

IF ~~ THEN BEGIN 16 // from: 15.1
  SAY #103123 /* ~Bored, foolish and have a score t' settle. You qualify.~ */
  IF ~~ THEN DO ~SetGlobal("NADARIN","GLOBAL",1)
~ UNSOLVED_JOURNAL #81414 /* ~Basilisk on the loose

A basilisk has escaped from the ship that was carrying it, and is now petrifying everyone at a warehouse on the docks in Baldur's Gate.  If I can successfully dispose of it, Nadarin ought to be very grateful!~ */ EXIT
END

IF ~~ THEN BEGIN 17 // from:
  SAY #103119 /* ~ My lucky day, then. I got someone who's bored AND foolish.~ */
  IF ~~ THEN DO ~SetGlobal("NADARIN","GLOBAL",1)
~ UNSOLVED_JOURNAL #81414 /* ~Basilisk on the loose

A basilisk has escaped from the ship that was carrying it, and is now petrifying everyone at a warehouse on the docks in Baldur's Gate.  If I can successfully dispose of it, Nadarin ought to be very grateful!~ */ EXIT
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN GOTO 18
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 81
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN EXTERN ~_XANJ~ 232
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ALORAJ~ 114
END

IF ~~ THEN BEGIN 18 // from: 17.1
  SAY #103123 /* ~Bored, foolish and have a score t' settle. You qualify.~ */
  IF ~~ THEN DO ~SetGlobal("NADARIN","GLOBAL",1)
~ UNSOLVED_JOURNAL #81414 /* ~Basilisk on the loose

A basilisk has escaped from the ship that was carrying it, and is now petrifying everyone at a warehouse on the docks in Baldur's Gate.  If I can successfully dispose of it, Nadarin ought to be very grateful!~ */ EXIT
END
