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

BEGIN ~_KNIGHT~

IF ~!PartyHasItem("_MISC82")
~ THEN BEGIN 0 // from:
  SAY #77713 /* ~Together enter... Together fall... Such was the vow agreed... None shall leave until all are one... Such the vow remains... We must be as one...~ */
  IF ~~ THEN UNSOLVED_JOURNAL #77714 /* ~Ghostly knights in Firewine

Some odd ghostly knights in the Firewine ruins said something about not being able to leave until "all are one."  Perhaps one of their number went missing ages ago?~ */ EXIT
  IF ~Global("X#XANFWGNITE1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XANFWGNITE1","GLOBAL",1)~ EXTERN ~_XANJ~ 156
END

IF ~PartyHasItem("_MISC82")
~ THEN BEGIN 1 // from:
  SAY #77715 /* ~So it was... So it is... Together enter... Together fall... Brother traitor completes the one... Together free...~ */
  IF ~~ THEN DO ~TakePartyItem("_MISC82")
AddexperienceParty(1500)
SetGlobal("MACFirewineKnights","GLOBAL",1)
EraseJournalEntry(77714)
EraseJournalEntry(77643)
EraseJournalEntry(77645)
ActionOverride("knight1",DestroySelf())
ActionOverride("knight2",DestroySelf())
ActionOverride("knight3",DestroySelf())
ActionOverride("knight4",DestroySelf())
ActionOverride("knight5",DestroySelf())
ActionOverride("knight6",DestroySelf())
~ SOLVED_JOURNAL #88911 /* ~Ghostly knights in Firewine

I returned the ancient suit of armor to the knights, who seemed eager to have it.  They spoke of a "brother traitor" and of being free... it seems I have released them from a timeless curse.~ */ EXIT
  IF ~Global("X#QuaKnight","GLOBAL",0)
InParty("quayle")
InMyArea("quayle")
!StateCheck("quayle",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#QuaKnight","GLOBAL",1)~ EXTERN ~_QUAYLJ~ 12
END

IF ~~ THEN BEGIN 2 // from:
  SAY #98425 /* ~Together, free...~ */
  IF ~~ THEN DO ~TakePartyItem("_MISC82")
AddexperienceParty(1500)
SetGlobal("MACFirewineKnights","GLOBAL",1)
EraseJournalEntry(77714)
EraseJournalEntry(77643)
EraseJournalEntry(77645)
ActionOverride("knight1",DestroySelf())
ActionOverride("knight2",DestroySelf())
ActionOverride("knight3",DestroySelf())
ActionOverride("knight4",DestroySelf())
ActionOverride("knight5",DestroySelf())
ActionOverride("knight6",DestroySelf())
~ SOLVED_JOURNAL #88911 /* ~Ghostly knights in Firewine

I returned the ancient suit of armor to the knights, who seemed eager to have it.  They spoke of a "brother traitor" and of being free... it seems I have released them from a timeless curse.~ */ EXIT
END
