// creator  : weidu.exe (version 23600)
// argument : SMITH.DLG
// game     : .
// source   : ./override/SMITH.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~SMITH~

IF ~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #8021 /* ~ 'Allo, friend, wot can I do for you this day?~ */
  IF ~  ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #8029 /* ~No need to trouble yourself; I'm just browsing about your smithy. I have heard much about it.~ */ GOTO 6
  IF ~  ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #8030 /* ~No need to trouble yourself; I'm just browsing about your smithy. I have heard much about it.~ */ GOTO 7
  IF ~~ THEN REPLY #8031 /* ~You can get out of my face, is what you can do. I'll summon you when I need you.~ */ GOTO 8
  IF ~~ THEN REPLY #8032 /* ~You can do nothing. I'll not buy armor from a shop in a backwater village such as this.~ */ GOTO 4
  IF ~~ THEN REPLY #8033 /* ~Nothing, thanks. I was just leaving.~ */ GOTO 5
END

IF ~  StateCheck(Myself,STATE_CHARMED)
HasItem("CHAN01",Myself)
~ THEN BEGIN 1 // from:
  SAY #8034 /* ~Friend, I'd like you to take this armor with you when you depart. I would be terribly upset if you were to come to harm while out adventuring.~ */
  IF ~~ THEN DO ~GiveItem("CHAN01",LastTalkedToBy(Myself))
~ EXIT
END

IF ~  ReactionLT(LastTalkedToBy(Myself),NEUTRAL_LOWER)
~ THEN BEGIN 2 // from:
  SAY #8027 /* ~I trust you have learned some manners since we last met? If not, there is the door.~ */
  IF ~~ THEN EXIT
  IF ~Global("X#GarSmi","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GarSmi","GLOBAL",1)~ EXTERN ~GARRIJ~ 107
END

IF ~  ReactionGT(LastTalkedToBy(Myself),HOSTILE_UPPER)
~ THEN BEGIN 3 // from:
  SAY #8028 /* ~Welcome back. Hopefully we can be of assistance.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4 // from: 0.3
  SAY #8025 /* ~This is perhaps not the largest of settlements, but you can rest assured that Taerom Thunderhammer is the best smith in all the planes. You'll not find a finer set of armor than you can get here, and you'll not find a group of workers more devoted to their employer. More importantly, you'll not find a group of workers more willing to bash the teeth of anyone who badmouths Taerom! Tread carefully... and politely.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 0.4
  SAY #8026 /* ~Fare thee well then.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from: 0.0
  SAY #8022 /* ~Oh, it's no trouble at all. You can expect nothing but the best in service from the Thunderhammer smithy. Best armors in the land. If you need some help, don't hesitate to speak to Taerom himself.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7 // from: 0.1
  SAY #8023 /* ~Well I would appreciate it if you would be quick about it. Don't need you in here crowding about while we try to work. I am quite sure Taerom does not care for loiterers. If you need any help, speak directly to him. Best smith in Faerûn, I'll wager.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8 // from: 0.2
  SAY #8024 /* ~Speak to Taerom like that and you'll likely end up with a stoker shoved so far up your... well, it's not for a gentleman to say. I would advise you to be polite while in his shop.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 9 // from:
  SAY #9075 /* ~I wouldn't trust you as far as I can spit!~ */
  IF ~~ THEN EXIT
END
