BEGIN ~smith~

IF WEIGHT #0 ~NumTimesTalkedTo(0)~ THEN BEGIN 0
  SAY @8021
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)~ THEN REPLY @8029 GOTO 1
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN REPLY @8030 GOTO 2
  IF ~~ THEN REPLY @8031 GOTO 3
  IF ~~ THEN REPLY @8032 GOTO 4
  IF ~~ THEN REPLY @8033 GOTO 5
END

IF ~~ THEN BEGIN 1
  SAY @8022
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 2
  SAY @8023
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 3
  SAY @8024
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4
  SAY @8025
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5
  SAY @8026
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~ReactionLT(LastTalkedToBy(),NEUTRAL_LOWER)~ THEN BEGIN 6
  SAY @8027
  IF ~~ THEN EXIT
END

IF WEIGHT #4 ~ReactionGT(LastTalkedToBy(),HOSTILE_UPPER)~ THEN BEGIN 7
  SAY @8028
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~StateCheck(Myself,STATE_CHARMED)
HasItem("CHAN01",Myself)
Global("A6Charmed","LOCALS",0)~ THEN BEGIN 8
  SAY @8034
  IF ~~ THEN DO ~GiveItem("CHAN01",LastTalkedToBy())
SetGlobal("A6Charmed","LOCALS",1)~ EXIT
END

IF ~~ THEN BEGIN 9
  SAY @9075
  IF ~~ THEN EXIT
END
