// creator  : weidu.exe (version 23100)
// argument : PHEIRKAS.DLG
// game		 : .
// source	 : ./DATA/DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)
!InParty([0.0.0.THIEF])
~ THEN BEGIN 0 // from:
  SAY #15107 /* ~It's none of yer business.  Be off with ye.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~NumTimesTalkedTo(0)
InParty([0.0.0.THIEF])
~ THEN BEGIN 1 // from:
  SAY #15108 /* ~Ye should pay no heed to th' queer minds o' others, an' pay more heed to yer business... an' yer health, fer that matter.~ */
  IF ~~ THEN JOURNAL #15742 /* ~~ */ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 3 4 5 even though they appear after this state */
~Global("HelpPheirkas","GLOBAL",0)
~ THEN BEGIN 2 // from:
  SAY #15109 /* ~Leona~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
PartyHasItem("CLCK08")
~ THEN BEGIN 3 // from:
  SAY #15110 /* ~Leona~ */
  IF ~~ THEN DO ~SetGlobal("HelpPheirkas","GLOBAL",1)
TakePartyItem("CLCK08")
GivePartyGold(150)
~ EXIT
END

IF WEIGHT #3 ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
PartyHasItem("CLCK08")
~ THEN BEGIN 4 // from:
  SAY #15111 /* ~I does mind.  This be none o' yer business, so begone with ye.~ */
  IF ~~ THEN DO ~SetGlobal("HelpPheirkas","GLOBAL",1)
TakePartyItem("CLCK08")
GivePartyGold(200)
~ EXIT
END

IF WEIGHT #4 ~false()~ THEN BEGIN 5 // from:
  SAY #15112 /* ~Lady Maria~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 ~True()
~ THEN BEGIN 6 // from:
  SAY #15113 /* ~Lady Maria~ */
  IF ~~ THEN DO ~True()
~ EXIT
END
