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

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

IF WEIGHT #2 /* Triggers after states #: 10 11 even though they appear after this state */
~  ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #14903 /* ~Hey, you. I'm old and my feet are tired. If you could run back to Beregost and bring me a wine bottle from my cellar, I'll give you 75 gold pieces. It's the house right to the west of the Jovial Juggler Inn. If you step on a spider or two while there I'll up the reward, though I'll need proof. Bring my husband's old boots too, if you please.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27231 /* ~Landrin's Possessions
Landrin, a gnome at the Friendly Arm Inn, appears to think I am her lowly errand runner. Apparently too lazy to walk down the stairs and purchase one from the barkeep, she insists that I fetch her precious wine bottle from the cellar of her house in Beregost... To be honest, at 75 gp, the thought is almost tempting. The house, should I ever seek it out, lies just west of the Jovial Juggler Inn in Beregost. She said something about stepping on spiders and her husband's old boots, but I didn't listen too intently.~ */ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 10 11 even though they appear after this state */
~  ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
NumberOfTimesTalkedTo(0)
~ THEN BEGIN 1 // from:
  SAY #14904 /* ~Hey, I've got a teeny bit of a spider infestation happening in my cellar in Beregost. I was on my way to the Gate to get some poison but this would be a lot easier on my legs, to be honest. You'll know the house when you see it. It's right to the west of the Jovial Juggler Inn. Bring back their bodies to prove you've done the job and I'll give you 100 gold pieces. If you could, please bring my husband's old boots and my ol' bottle of wine back as well, and I'll throw in something extra.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27232 /* ~Landrin's Possessions
Landrin, a gnome at the Friendly Arm Inn, has apparently fled her home due to a recent spider infestation in her cellar. The house, she informs me, lies just west of the Jovial Juggler Inn in Beregost. Much as I would rather not have them in my pack, she insists on seeing the bodies of the spiders before I am to receive any payment. She hinted at an extra bit of reward if I bring her husband's old boots and her bottle of wine as well.~ */ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 10 11 even though they appear after this state */
~  ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
NumberOfTimesTalkedTo(0)
~ THEN BEGIN 2 // from:
  SAY #14906 /* ~Hey, I've got an infestation of poisonous spiders in my cellar in Beregost. Bentley said I could stay here until they move on but I hate to impose. You'll know the house when you see it: just to the west of the Jovial Juggler Inn. Here, take these potions with you. They're antidotes against the poison. Keep whatever you don't use and I'll give you an extra 120 gold pieces if you bring back my husband's old boots that he keeps down there. If you bring back one of their bodies and my ol' bottle of wine as well, I might toss in a little something extra too.~ */
  IF ~~ THEN DO ~GiveItem("POTN20",LastTalkedToBy)
GiveItem("POTN20",LastTalkedToBy)
GiveItem("POTN20",LastTalkedToBy)
GiveItem("POTN20",LastTalkedToBy)
GiveItem("POTN20",LastTalkedToBy)
GiveItem("POTN20",LastTalkedToBy)
~ UNSOLVED_JOURNAL #27233 /* ~Landrin's Possessions
Landrin, a gnome at the Friendly Arm Inn, has apparently fled her home due to a recent spider infestation in her cellar. The house, she informs me, lies just west of the Jovial Juggler Inn in Beregost. She wants to see her husband's boots when I claim my reward, and she hinted she'd pay extra for her bottle of wine and one of the spider bodies.~ */ EXIT
END

IF WEIGHT #8 /* Triggers after states #: 4 5 9 10 11 even though they appear after this state */
~  PartyHasItem("MISC61")
GlobalLT("HelpLandrin","GLOBAL",2)
~ THEN BEGIN 3 // from:
  SAY #14907 /* ~Ahh, me wine. Here's your 75 gold pieces and thanks for clearing out the spiders on your way through. If you have any of my other possessions, come talk to me again.~ */
  IF ~~ THEN DO ~AddexperienceParty(300)
GivePartyGold(75)
TakePartyItem("MISC61")
IncrementGlobal("HelpLandrin","GLOBAL",1)
~ SOLVED_JOURNAL #27234 /* ~Landrin's Wine
75 gold for Landrin's wine, must have been a good vintage... or a vicious home-brew.~ */ EXIT
END

IF WEIGHT #7 /* Triggers after states #: 5 9 10 11 even though they appear after this state */
~  PartyHasItem("MISC60")
GlobalLT("HelpLandrin","GLOBAL",2)
~ THEN BEGIN 4 // from:
  SAY #14908 /* ~Ahhh, I see you have the largest of those pesky spiders in my house. With this one dead, I'm sure the others will have run away. You are too kind to an old gnome like myself. Thank you so much. If you have any of my other possessions, come talk to me again.~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
GivePartyGold(100)
TakePartyItem("MISC60")
IncrementGlobal("HelpLandrin","GLOBAL",1)
~ SOLVED_JOURNAL #27235 /* ~Landrin and the Spiders
Landrin has paid a pretty penny for the body of the biggest spider in her house. 100 gold pieces, and, to be honest, I earned every piece.~ */ EXIT
END

IF WEIGHT #6 /* Triggers after states #: 9 10 11 even though they appear after this state */
~  PartyHasItem("BOOT06")
GlobalLT("HelpLandrin","GLOBAL",2)
~ THEN BEGIN 5 // from:
  SAY #14909 /* ~Ah, I'm so glad I can move home again. Bentley is a kindly man but it is always best not to push favors too far. Here's 120 gold pieces for your trouble. I'll just take those old boots from ye. If you have any of my other possessions, come talk to me again.~ */
  IF ~~ THEN DO ~AddexperienceParty(300)
GivePartyGold(120)
TakePartyItem("BOOT06")
IncrementGlobal("HelpLandrin","GLOBAL",1)
~ SOLVED_JOURNAL #27236 /* ~Landrin's Husband's Old Boots
120 pieces of hard gold currency for an old pair of boots. A good deal by any measure, despite the creatures guarding them.~ */ EXIT
END

IF WEIGHT #11 /* Triggers after states #: 7 8 9 10 11 even though they appear after this state */
~  PartyHasItem("MISC61")
Global("HelpLandrin","GLOBAL",2)
~ THEN BEGIN 6 // from:
  SAY #31832 /* ~You've done everything that I asked. Thank you kindly for helping me dear, you've earned every copper.~ */
  IF ~~ THEN DO ~AddexperienceParty(300)
GivePartyGold(75)
TakePartyItem("MISC61")
IncrementGlobal("HelpLandrin","GLOBAL",1)
EraseJournalEntry(27231)
EraseJournalEntry(27232)
EraseJournalEntry(27233)
~ SOLVED_JOURNAL #27234 /* ~Landrin's Wine
75 gold for Landrin's wine, must have been a good vintage... or a vicious home-brew.~ */ EXIT
END

IF WEIGHT #10 /* Triggers after states #: 8 9 10 11 even though they appear after this state */
~  PartyHasItem("MISC60")
Global("HelpLandrin","GLOBAL",2)
~ THEN BEGIN 7 // from:
  SAY #31832 /* ~You've done everything that I asked. Thank you kindly for helping me dear, you've earned every copper.~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
GivePartyGold(100)
TakePartyItem("MISC60")
IncrementGlobal("HelpLandrin","GLOBAL",1)
EraseJournalEntry(27231)
EraseJournalEntry(27232)
EraseJournalEntry(27233)
~ SOLVED_JOURNAL #27235 /* ~Landrin and the Spiders
Landrin has paid a pretty penny for the body of the biggest spider in her house. 100 gold pieces, and, to be honest, I earned every piece.~ */ EXIT
END

IF WEIGHT #9 /* Triggers after states #: 9 10 11 even though they appear after this state */
~  PartyHasItem("BOOT06")
Global("HelpLandrin","GLOBAL",2)
~ THEN BEGIN 8 // from:
  SAY #31832 /* ~You've done everything that I asked. Thank you kindly for helping me dear, you've earned every copper.~ */
  IF ~~ THEN DO ~AddexperienceParty(300)
GivePartyGold(120)
TakePartyItem("BOOT06")
IncrementGlobal("HelpLandrin","GLOBAL",1)
EraseJournalEntry(27231)
EraseJournalEntry(27232)
EraseJournalEntry(27233)
~ SOLVED_JOURNAL #27236 /* ~Landrin's Husband's Old Boots
120 pieces of hard gold currency for an old pair of boots. A good deal by any measure, despite the creatures guarding them.~ */ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 10 11 even though they appear after this state */
~  !NumberOfTimesTalkedTo(0)
!PartyHasItem("MISC61")
!PartyHasItem("MISC60")
!PartyHasItem("BOOT06")
!Global("HelpLandrin","GLOBAL",3)
~ THEN BEGIN 9 // from:
  SAY #14910 /* ~You have none of my possessions at the moment, so there is little reason for me to speak with you.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 10 // from:
  SAY #14911 /* ~Ooh, I'm not a regular here, to be honest. The others might know something more interesting.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~  False()
~ THEN BEGIN 11 // from:
  SAY #14912 /* ~My, you are quite the ruffians, aren't you? I'll warn you right now that I'm a close friend of Bentley, the man who runs this fine establishment.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #12 ~  True()
~ THEN BEGIN 12 // from:
  SAY #14913 /* ~Ah, it is that sweet group of adventurers. How nice to see you again.~ */
  IF ~~ THEN EXIT
END
