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

BEGIN ~JARED~

IF ~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #15349 /* ~Oh, thank goodness someone came by. There's a bear on the other side of that bridge and it's coming this way! Please hold it off, I'll give you anything!~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27184 /* ~Jared and the Bear
I have just met Jared, a lone and frightened merchant, in the wilds of these mountains. He has just fled a bear which has apparently laid claim to the other side of this bridge...~ */ EXIT
  IF ~Global("X#JaheiraJared","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#JaheiraJared","GLOBAL",1)~ EXTERN ~JAHEIJ~ 121
END

IF ~  False()
~ THEN BEGIN 1 // from:
  SAY #15350 /* ~I can't run anymore. *sigh* There's just no point to life, is there... We just run in endless circles around and around and around... *sigh*~ */
  IF ~~ THEN EXIT
END

IF ~  Dead("JaredPbear")
Global("HelpJared","GLOBAL",0)
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 2 // from:
  SAY #15351 /* ~Uh, very well. I'll be on my way, then... Uh... Carry on...~ */
  IF ~~ THEN DO ~AddexperienceParty(100)
SetGlobal("HelpJared","GLOBAL",1)
EraseJournalEntry(27184)
EscapeArea()
~ SOLVED_JOURNAL #27185 /* ~Jared and the Bear
I told Jared that I slew the bear. He did not linger after receiving the news.~ */ EXIT
END

IF ~  Dead("JaredPbear")
Global("HelpJared","GLOBAL",0)
ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN BEGIN 3 // from:
  SAY #15352 /* ~Okay, not quite anything. Here's 50 gold pieces, though. Will that be... uh, all right?~ */
  IF ~~ THEN DO ~AddexperienceParty(100)
SetGlobal("HelpJared","GLOBAL",1)
GivePartyGold(50)
EraseJournalEntry(27184)
EscapeArea()
~ SOLVED_JOURNAL #27185 /* ~Jared and the Bear
I told Jared that I slew the bear. He did not linger after receiving the news.~ */ EXIT
END

IF ~  Dead("JaredPbear")
Global("HelpJared","GLOBAL",0)
ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN BEGIN 4 // from:
  SAY #15353 /* ~Why, thank you. That old lumbering oaf could have had me there if it weren't for young lumbering oafs like yourselves. Here, if you're going to be wandering around these mountains for a while, you may need a better pair of boots. As for me, you couldn't pay me to stick around in this place.~ */
  IF ~~ THEN DO ~AddexperienceParty(100)
SetGlobal("HelpJared","GLOBAL",1)
GiveItem("BOOT03",LastTalkedToBy)
EraseJournalEntry(27184)
EscapeArea()
~ SOLVED_JOURNAL #27185 /* ~Jared and the Bear
I told Jared that I slew the bear. He did not linger after receiving the news.~ */ EXIT
END

IF ~  Global("HelpJared","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #15356 /* ~What are you waiting for? You're adventurers, aren't you?~ */
  IF ~~ THEN EXIT
  IF ~Global("X#GarJar","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GarJar","GLOBAL",1)~ EXTERN ~GARRIJ~ 72
END
