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

BEGIN ~_CORDYR~

IF ~ReputationGT(LastTalkedToBy,14)
Global("HelpCordyr","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #81666 /* ~Pleasure to meet you. The name's Cordyr.~ */
  IF ~~ THEN EXIT
END

IF ~Global("HelpCordyr","GLOBAL",0)
~ THEN BEGIN 1 // from:
  SAY #81667 /* ~Hi. The name's Cordyr. I'm from down south, where the Cloud Peaks tumble into the sea. A pair of sirines has been trying to move into the area. They sank my fishing boat and put me right out of work. Sigh, if they weren't so dang beautiful, it would be a lot easier to convince people of how much of a nuisance they can be...~ */
  IF ~~ THEN DO ~SetGlobal("HelpCordyr","GLOBAL",1)
~ UNSOLVED_JOURNAL #81668 /* ~Cordyr and the Sirines

I met a friendly fisherman by the name of Cordyr in the city of Baldur's Gate.  Apparently two sirines have moved into his fishing grounds down south where the Cloud Peaks tumble into the sea.~ */ EXIT
  IF ~Global("X#CORDYR1","GLOBAL",0)
InParty("safana")
InMyArea("safana")
!StateCheck("safana",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#CORDYR1","GLOBAL",1)~ EXTERN ~_CORANJ~ 315
  IF ~Global("X#CORDYR1","GLOBAL",0)
InParty("safana")
InMyArea("safana")
!StateCheck("safana",CD_STATE_NOTVALID)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#CORDYR1","GLOBAL",1)~ EXTERN ~_SAFANJ~ 30
  IF ~Global("X#CORDYR1","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#CORDYR1","GLOBAL",1)~ EXTERN ~_CORANJ~ 317
  IF ~Global("X#CORDYR1","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#CORDYR1","GLOBAL",1)~ EXTERN ~_JAHEIJ~ 310
  IF ~Global("X#CORDYR1","GLOBAL",0)
InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#CORDYR1","GLOBAL",1)~ EXTERN ~_FALDOJ~ 135
  IF ~Global("X#CORDYR1","GLOBAL",0)
InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#CORDYR1","GLOBAL",1)~ EXTERN ~_EDWINJ~ 131
  IF ~Global("X#CORDYR1","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#CORDYR1","GLOBAL",1)~ EXTERN ~_VICONJ~ 155
END

IF ~!Dead("sil")
Global("HelpCordyr","GLOBAL",1)
~ THEN BEGIN 2 // from:
  SAY #81669 /* ~You don't have the heart, do you... It's alright, I know where you're coming from. I couldn't do it, myself.~ */
  IF ~~ THEN EXIT
END

IF ~Global("HelpCordyr","GLOBAL",1)
ReputationLT(LastTalkedToBy,8)
~ THEN BEGIN 3 // from:
  SAY #81670 /* ~You did it, huh? I've got to admit you have a steelier heart than I'd ever want. Here, take this Flame arrow scroll. Should have given it to you before, I suppose, but I really didn't think you would survive. Ah, well. Better late than never?~ */
  IF ~~ THEN DO ~EraseJournalEntry(81668)
GiveItem("_SCRL1F",LastTalkedToBy)
AddexperienceParty(1000)
ReputationInc(1)
SetGlobal("HelpCordyr","GLOBAL",2)
~ SOLVED_JOURNAL #88937 /* ~Cordyr and the Sirines

I killed the sirines that had encroached upon the fisherman Cordyr's fishing grounds in the south.  Cordyr seemed relieved that he'd been spared having to do the dirty deed himself.  He rewarded me with a magic scroll.~ */ EXIT
END

IF ~Global("HelpCordyr","GLOBAL",1)
~ THEN BEGIN 4 // from:
  SAY #81671 /* ~Thanks for your help. It's a dirty deed but it's the cost of civilization, isn't it? Here, take this haste scroll as payment. I probably should have given it to you before, but I didn't think you would survive. Better late than never?~ */
  IF ~~ THEN DO ~EraseJournalEntry(81668)
GiveItem("_SCRL1H",LastTalkedToBy)
SetGlobal("HelpCordyr","GLOBAL",2)
~ SOLVED_JOURNAL #88937 /* ~Cordyr and the Sirines

I killed the sirines that had encroached upon the fisherman Cordyr's fishing grounds in the south.  Cordyr seemed relieved that he'd been spared having to do the dirty deed himself.  He rewarded me with a magic scroll.~ */ EXIT
END

IF ~False()
~ THEN BEGIN 5 // from:
  SAY #81672 /* ~I'm no fighter, friend.~ */
  IF ~~ THEN EXIT
END

IF ~True()
~ THEN BEGIN 6 // from:
  SAY #81673 /* ~If you find a great deal on a fishing boat, let me know.~ */
  IF ~~ THEN EXIT
END
