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

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

IF ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #15911 /* ~Aha!  Maheer thinks you are just the sort of customer he was waiting for.  Perhaps you are interested in weaponry?  Maheer thinks you are.~ */
  IF ~!InParty("Minsc")
~ THEN REPLY #15913 /* ~I take it that you are Maheer?~ */ GOTO 2
  IF ~InParty("Minsc")
~ THEN REPLY #15927 /* ~I take it that you are Maheer?~ */ GOTO 3
  IF ~~ THEN REPLY #15915 /* ~I am interested in purchasing weaponry, yes.  What do you have available?~ */ GOTO 4
  IF ~~ THEN REPLY #15916 /* ~No, I'm not interested.  Excuse me.~ */ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 7.1 4.2 2.2 0.3
  SAY #15919 /* ~Ah well, it is Maheer's loss.  When you wish to seek out finely crafted tools of war, come to me again.  Maheer bids farewell, for now.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.0
  SAY #15926 /* ~Indeed I am!  Maheer yn Kadar el Saddith, most recently of Rashemen.  You'll not find a better proprietor of quality weaponry throughout all of Athkatla!~ */
  IF ~~ THEN REPLY #15952 /* ~What sorts of weaponry do you have?~ */ GOTO 4
  IF ~~ THEN REPLY #15953 /* ~All right, all right, let me see your stock.~ */ GOTO 5
  IF ~~ THEN REPLY #15958 /* ~I'm not interested.~ */ GOTO 1
END

IF ~~ THEN BEGIN 3 // from: 0.1
  SAY #15928 /* ~Indeed I am!  Maheer yn Kadar el Saddith, most recently of Rashemen, at your service!~ */
  IF ~~ THEN EXTERN ~MINSCJ~ 36
END

IF ~~ THEN BEGIN 4 // from: 8.1 2.0 0.2
  SAY #15943 /* ~Ahhh, Maheer has all kinds to offer... scimitars, swords, even iron weapons from the Storm Horn Mountains!   Look at my wares for yourself!~ */
  IF ~~ THEN REPLY #15949 /* ~Very well, let's see what you have.~ */ GOTO 5
  IF ~~ THEN REPLY #60981 /* ~Do you make any special weapons?~ */ GOTO 10
  IF ~~ THEN REPLY #15950 /* ~No thanks, I'm not interested.~ */ GOTO 1
END

IF ~~ THEN BEGIN 5 // from: 14.0 8.0 7.0 4.0 2.1
  SAY #15951 /* ~Most excellent!  Examine my wares to your heart's content, casadhi, and I'm sure you will find nothing to displease you!~ */
  IF ~~ THEN DO ~StartStore("shop03",LastTalkedToBy())~ EXIT
END

IF ~~ THEN BEGIN 6 // from:
  SAY #15961 /* ~Aha!  Boo is your witch, then, I take it?~ */
  IF ~~ THEN EXTERN ~MINSCJ~ 37
END

IF ~~ THEN BEGIN 7 // from:
  SAY #15962 /* ~Oh... I, I see.  I -- where was I?  Ah, yes, my <LADYLORD>!  You are, uh, still interested in examining my wares, yes?~ */
  IF ~~ THEN REPLY #15963 /* ~Yes, show me what you have.~ */ GOTO 5
  IF ~~ THEN REPLY #15983 /* ~No thank you.~ */ GOTO 1
END

IF ~True()
~ THEN BEGIN 8 // from:
  SAY #15984 /* ~Maheer welcomes you to his shop once again!  You are interested in perusing his stock of weaponcraft, yes?~ */
  IF ~~ THEN REPLY #15985 /* ~Yes, let me see what you have.~ */ GOTO 5
  IF ~~ THEN REPLY #60999 /* ~What sorts of weapons do you sell?~ */ GOTO 4
  IF ~~ THEN REPLY #15987 /* ~No, I'll be going now.~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 14.1 8.2
  SAY #15989 /* ~It saddens Maheer to see such a fine and clever <LADYLORD> such as yourself to depart.  Until the next time, then, casadhi.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 10 // from: 4.1
  SAY #60982 /* ~Maheer does not possess the craft to create weapons, himself.  There is a fine dwarven smith in this city who knows such skills.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #60983 /* ~The stout one's name be Cromwell, my <LADYLORD>... and his shop is within the Docks District here in the city.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #60984 /* ~I will tell you one thing, my <LADYLORD>... I can create the finest of musical horns -- the dwarf knows not this art.~ */
  IF ~PartyHasItem("misc3i")
!PartyHasItem("misc42")~ THEN GOTO 13
  IF ~PartyHasItem("misc3j")
!PartyHasItem("misc6z")~ THEN GOTO 15
  IF ~PartyHasItem("misc3i")
PartyHasItem("misc42")~ THEN GOTO 16
  IF ~PartyHasItem("misc3j")
PartyHasItem("misc6z")~ THEN GOTO 19
  IF ~!PartyHasItem("misc3i")
!PartyHasItem("misc3j")~ THEN GOTO 14
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #60985 /* ~Hmmm.  I see that you have a silver horn in your possession, casadhi.  If you had but a diamond, as well, I could increase the item's power, surely enough.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 18.0 15.0 13.0 12.4
  SAY #60986 /* ~But enough of my meanderings, yes?  Perhaps you would like to look at Maheer's stock of weapons, now?~ */
  IF ~~ THEN REPLY #60987 /* ~Sure, let me see what you have.~ */ GOTO 5
  IF ~~ THEN REPLY #60988 /* ~No, I'm not interested.~ */ GOTO 9
END

IF ~~ THEN BEGIN 15 // from: 12.1
  SAY #60989 /* ~I see you have the bronze horn in your possession.  A fine instrument.  Acquire a beljuril gem and it could become even finer, I assure you.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 16 // from: 12.2
  SAY #60990 /* ~I see you have the silver horn.  Hmmm... and a diamond!  If you wish, for 2,000 gold pieces I could create a more powerful instrument!~ */
  IF ~PartyGoldGT(1999)~ THEN REPLY #60991 /* ~If you could make the silver horn more powerful, it's worth it.~ */ DO ~TakePartyGold(2000)
TakePartyItem("misc3i")
TakePartyItem("misc42")
DestroyGold(2000)
DestroyItem("misc42")
DestroyItem("misc3i")~ GOTO 17
  IF ~~ THEN REPLY #60992 /* ~No, I'm not interested right now.~ */ GOTO 18
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #60993 /* ~As you wish!  My family art... ahhhh... and a bronze horn you have, my <LADYLORD>.  If you ever acquire a beljuril gem, I could do even more.  But here you go.~ */
  IF ~~ THEN DO ~CreateVisualEffectObject("SPCRTWPN","maheer")
GiveItemCreate("misc3j",LastTalkedToBy,0,0,0)~ EXIT
END

IF ~~ THEN BEGIN 18 // from: 19.1 16.1
  SAY #60994 /* ~If that is what you wish, it is not my business to convince you otherwise, casadhi.  It is a fine horn, even if you do not wish to improve on it.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 19 // from: 12.3
  SAY #60995 /* ~Ahhh... you have a beljuril and the bronze horn.  With 5,000 gold pieces I could take these and make you the finest of instruments.~ */
  IF ~PartyGoldGT(4999)~ THEN REPLY #60996 /* ~Certainly.  That sounds like a deal.~ */ DO ~TakePartyGold(5000)
TakePartyItem("misc3j")
TakePartyItem("misc6z")
DestroyGold(5000)
DestroyItem("misc6z")
DestroyItem("misc3j")~ GOTO 20
  IF ~~ THEN REPLY #60997 /* ~No, I don't think so.~ */ GOTO 18
END

IF ~~ THEN BEGIN 20 // from: 19.0
  SAY #60998 /* ~Ah, yes... the old magic of my family shall turn your fine horn into the great Iron Horn.  Rarely have I seen its like, casadhi... here you go.  Use it well.~ */
  IF ~~ THEN DO ~CreateVisualEffectObject("SPCRTWPN","maheer")
GiveItemCreate("misc3k",LastTalkedToBy,0,0,0)~ EXIT
END
