// creator  : weidu.exe (version 23600)
// argument : DREPPI.DLG
// game     : .
// source   : ./DATA/DIALOG.BIF
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~DREPPI~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #0 ~  Global("TalkedToDreppin","GLOBAL",0)
OR(2)
Global("HelpPhlydia","GLOBAL",1)
NumberOfTimesTalkedTo(1)
~ THEN BEGIN 0 // from:
  SAY #16006 /* ~Nice day, ain't it? Too bad Nessa here ain't enjoyin' it though, her bein' sick 'n all. I need to get her one of them potions of antidote off Hull. He stayed up drinkin' last night and got hauled outta bed to man the gates early this morning, so I bet he's got a few of them lyin' around somewheres.~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToDreppin","GLOBAL",1)
AddJournalEntry(26992,QUEST)
~ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 3 5 6 even though they appear after this state */
~  !PartyHasItem("POTN20")
Global("HelpDreppin","GLOBAL",0)
~ THEN BEGIN 1 // from:
  SAY #16008 /* ~Any luck gettin' one of them potions off Hull?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 3 5 6 even though they appear after this state */
~  PartyHasItem("POTN20")
Global("HelpDreppin","GLOBAL",0)
~ THEN BEGIN 2 // from:
  SAY #16009 /* ~Heh, ye're a wonder, you are. Stick with me and we'll go far... Well, okay, stick with me and we'd prob'ly never leave the walls of Candlekeep, would we...? They say the bandits out there aren't after gold and gems anymore but just plain old iron. It's one of them whatchamacallits, paradoxes or whatever: It's dangerous, so you want to wear some good solid plate and carry an axe that'd make Tempus jealous, but rather than protectin' ya, it just makes everyone want a piece of you, right? Given my druthers, I guess I'd rather stay right here...~ */
  IF ~~ THEN DO ~AddexperienceParty(50)
TakePartyItemNum("POTN20",1)
EraseJournalEntry(26992)
SetGlobal("HelpDreppin","GLOBAL",1)
~ SOLVED_JOURNAL #26993 /* ~Dreppin's Cow
Well, I found that potion for Dreppin's cow. I just hope it's what he thinks it is and not a potion of firebreath or something...~ */ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 5 6 even though they appear after this state */
~  PartyHasItem("POTN20")
!HasItemEquiped("CHAN01",LastTalkedToBy)
!HasItemEquiped("CHAN04",LastTalkedToBy)
Global("HelpDreppin","GLOBAL",0)
~ THEN BEGIN 3 // from:
  SAY #16010 /* ~Heh, ye're a wonder, you are. Stick with me and we'll go far... Well, okay, stick with me and we'd prob'ly never leave the walls of Candlekeep, would we...? Hmm, good thing you ain't wearin' none of that metal armor though, as I hear that the bandits out there would just as soon kill you as look at you to get it off your back. I just hope this whole iron crisis business is wrapped up soon.~ */
  IF ~~ THEN DO ~AddexperienceParty(50)
TakePartyItemNum("POTN20",1)
EraseJournalEntry(26992)
SetGlobal("HelpDreppin","GLOBAL",1)
~ SOLVED_JOURNAL #26993 /* ~Dreppin's Cow
Well, I found that potion for Dreppin's cow. I just hope it's what he thinks it is and not a potion of firebreath or something...~ */ EXIT
END

IF WEIGHT #6 /* Triggers after states #: 5 6 even though they appear after this state */
~  True()
~ THEN BEGIN 4 // from:
  SAY #16011 /* ~Yup, Nessa sure liked that potion of Hull's. She's doin' better already.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~  !PartyHasItem("BOOK16")
!Global("HelpPhlydia","GLOBAL",1)
NumberOfTimesTalkedTo(0)
~ THEN BEGIN 5 // from:
  SAY #16030 /* ~Phlydia left one of her books in here again. It's in the hay, there, beside the cow. If you could run it over to her and then come back, I've got some plans for you.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~  PartyHasItem("BOOK16")
!Global("HelpPhlydia","GLOBAL",1)
NumberOfTimesTalkedTo(0)
~ THEN BEGIN 6 // from:
  SAY #16031 /* ~Phlydia left one of her books in... oh, you have it already. If you could run it over to her and then come back, I've got some plans for you.~ */
  IF ~~ THEN EXIT
END
