BEGIN ~fergus~

IF WEIGHT #0 ~ReactionLT(LastTalkedToBy(),NEUTRAL_LOWER)
NumTimesTalkedTo(0)~ THEN BEGIN 0
  SAY @15265
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~NumTimesTalkedTo(0)~ THEN BEGIN 1
  SAY @15269
  IF ~~ THEN DO ~SetGlobal("FERGUS1","GLOBAL",1)~ UNSOLVED_JOURNAL @310280 EXIT
END

IF WEIGHT #2 ~False()~ THEN BEGIN 2
  SAY @15273
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~Global("FERGUS1","GLOBAL",1)
PartyHasItem("RING16")~ THEN BEGIN 3
  SAY @15274
  IF ~~ THEN DO ~TakePartyItem("RING16")
SetGlobal("FERGUS1","GLOBAL",2)
AddexperienceParty(800)
EraseJournalEntry(@310280)
ReputationInc(1)~ SOLVED_JOURNAL @310281 EXIT
END

IF WEIGHT #4 ~False()~ THEN BEGIN 4
  SAY @15282
  IF ~~ THEN EXIT
END

IF WEIGHT #6 ~True()~ THEN BEGIN 5
  SAY @15283
  IF ~~ THEN EXIT
END

IF WEIGHT #5 ~Global("FERGUS1","GLOBAL",2)~ THEN BEGIN 6
  SAY @15284
  IF ~~ THEN EXIT
END
