// creator  : weidu.exe (version 23600)
// argument : KNIGHT.DLG
// game     : .
// source   : ./override/KNIGHT.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~KNIGHT~

IF ~  !PartyHasItem("MISC82")
~ THEN BEGIN 0 // from:
  SAY #17528 /* ~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 #27213 /* ~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~ 148
END

IF ~  PartyHasItem("MISC82")
~ THEN BEGIN 1 // from:
  SAY #17533 /* ~So it was... So it is... Together enter... Together fall... Brother traitor completes the one... Together free...~ */
  IF ~~ THEN DO ~TakePartyItem("MISC82")
AddexperienceParty(1500)
EraseJournalEntry(27213)
EraseJournalEntry(27214)
EraseJournalEntry(27215)
ActionOverride("Knight1",DestroySelf())
ActionOverride("Knight2",DestroySelf())
ActionOverride("Knight3",DestroySelf())
ActionOverride("Knight4",DestroySelf())
ActionOverride("Knight5",DestroySelf())
ActionOverride("Knight6",DestroySelf())
~ SOLVED_JOURNAL #27216 /* ~Ghostly Knights in Firewine
The ghostly knights were pleased to have the ancient suit of armor. From what they said, I suspect they are free at last from an age-old curse.~ */ EXIT
END
