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

BEGIN ~TRMER04~ 2 // non-zero flags may indicate non-pausing dialogue

IF ~Dead("cefald01")
Global("geniesgone","GLOBAL",0)~ THEN BEGIN 0 // from:
  SAY #45144 /* ~Hmph.  I'm sure you adventurers would like to have access to my goods, with me being a blacksmith and all... but I'm afraid there's nothing to be done.  The genies have all the ore that's in town.~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #45145 /* ~They'll sell, surely enough, but at ungodly prices.  Talk to the Guildmistress Busya if you think you can do something about it, that's all I can really say.~ */
  IF ~~ THEN EXIT
END

IF ~!Dead("cefald01")
Global("geniesgone","GLOBAL",1)
CheckStatLT(LastTalkedToBy,10,CHR)~ THEN BEGIN 2 // from:
  SAY #45146 /* ~Sorry.  I don't want trouble here.  You may have gotten those genies to leave, but people are still mighty nervous of the druids.  Please leave me be.~ */
  IF ~~ THEN EXIT
END

IF ~!Dead("cefald01")
Global("geniesgone","GLOBAL",1)
CheckStatGT(LastTalkedToBy,9,CHR)~ THEN BEGIN 3 // from:
  SAY #45147 /* ~Hmm.  I suppose you seem like good enough folk.  You probably need a blacksmith quite often with all that armor, right?  Well... fine.  I can sell you what I have, if you like.~ */
  IF ~~ THEN REPLY #45148 /* ~Yes, let me see what you have in stock.~ */ GOTO 4
  IF ~~ THEN REPLY #45150 /* ~No, thanks, I'll be going.~ */ GOTO 5
END

IF ~~ THEN BEGIN 4 // from: 7.0 3.0
  SAY #45149 /* ~Certainly.  Take your time looking about, if you like.~ */
  IF ~~ THEN DO ~StartStore("trmer04",LastTalkedToBy)~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 7.1 3.1
  SAY #45151 /* ~Very well.  A pearl to you, <SIRMAAM>.~ */
  IF ~~ THEN EXIT
END

IF ~!Dead("cefald01")
Global("geniesgone","GLOBAL",0)~ THEN BEGIN 6 // from:
  SAY #45152 /* ~I may be a blacksmith, but I have nothing in stock... and I don't want any trouble at my shop.  You are strangers and you're dangerous.~ */
  IF ~~ THEN EXIT
END

IF ~Dead("cefald01")
Global("geniesgone","GLOBAL",1)~ THEN BEGIN 7 // from:
  SAY #45153 /* ~Welcome to my blacksmith shop, <SIRMAAM>.  Do you need anything today?  I'd be more than happy to help you out if you do.~ */
  IF ~~ THEN REPLY #45154 /* ~Sure, let me see what you have.~ */ GOTO 4
  IF ~~ THEN REPLY #45155 /* ~No, I'll be on my way.~ */ GOTO 5
END
