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

BEGIN ~DADROW16~

IF ~OR(4)
Global("GnollSold","AR2200",0)
Global("TrollSold","AR2200",0)
Global("SpiritSold","AR2200",0)
Global("UmberSold","AR2200",0)~ THEN BEGIN 0 // from:
  SAY #57290 /* ~I greet you, <MALEFEMALE>, in the name of the Spider Queen and all the glory that is Ust Natha, the First City.  Would you care to take a look at the wares I have available?~ */
  IF ~~ THEN REPLY #57291 /* ~What wares are you talking about?~ */ GOTO 1
  IF ~Global("GnollSold","AR2200",0)~ THEN REPLY #57292 /* ~Sure... what do you have?~ */ GOTO 4
  IF ~Global("GnollSold","AR2200",1)
Global("TrollSold","AR2200",0)~ THEN REPLY #57327 /* ~Sure... what do you have?~ */ GOTO 5
  IF ~Global("GnollSold","AR2200",1)
Global("TrollSold","AR2200",1)
Global("SpiritSold","AR2200",0)~ THEN REPLY #57328 /* ~Sure... what do you have?~ */ GOTO 6
  IF ~Global("GnollSold","AR2200",1)
Global("TrollSold","AR2200",1)
Global("SpiritSold","AR2200",1)
Global("UmberSold","AR2200",0)~ THEN REPLY #57329 /* ~Sure... what do you have?~ */ GOTO 7
  IF ~~ THEN REPLY #57293 /* ~No, I'm not interested.~ */ GOTO 3
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #57294 /* ~The beasts caged behind me, of course. They are ensorcelled to obey commands for a short time. Amusing as pets, although they won't follow for long, I'm afraid.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #57299 /* ~A few of the fighting sisters have been buying my stock for target practice.  It happens to be a good living.  Are you interested, perhaps?~ */
  IF ~Global("GnollSold","AR2200",0)~ THEN REPLY #57302 /* ~What creatures do you have available?~ */ GOTO 4
  IF ~Global("GnollSold","AR2200",1)
Global("TrollSold","AR2200",0)~ THEN REPLY #57330 /* ~What creatures do you have available?~ */ GOTO 5
  IF ~Global("GnollSold","AR2200",1)
Global("TrollSold","AR2200",1)
Global("SpiritSold","AR2200",0)~ THEN REPLY #57331 /* ~What creatures do you have available?~ */ GOTO 6
  IF ~Global("GnollSold","AR2200",1)
Global("TrollSold","AR2200",1)
Global("SpiritSold","AR2200",1)
Global("UmberSold","AR2200",0)~ THEN REPLY #57332 /* ~What creatures do you have available?~ */ GOTO 7
  IF ~~ THEN REPLY #57307 /* ~Errr... no, I don't think so.~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 8.4 2.4 0.5
  SAY #57308 /* ~As you wish, <MALEFEMALE>.  Another time, perhaps.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4 // from: 2.0 0.1
  SAY #57309 /* ~Hmm, I still have a strong gnoll, captured leading a group of its fellows on the surface. Tortured and then sold to me, but it is healthy. 500 gp for that one.~ */
  IF ~Global("TrollSold","AR2200",0)~ THEN GOTO 5
  IF ~Global("TrollSold","AR2200",1)
Global("SpiritSold","AR2200",0)~ THEN GOTO 6
  IF ~Global("TrollSold","AR2200",1)
Global("SpiritSold","AR2200",1)
Global("UmberSold","AR2200",0)~ THEN GOTO 7
  IF ~Global("TrollSold","AR2200",1)
Global("SpiritSold","AR2200",1)
Global("UmberSold","AR2200",1)~ THEN GOTO 8
END

IF ~~ THEN BEGIN 5 // from: 4.0 2.1 0.2
  SAY #57312 /* ~Let's see... I still have one of the regenerating trolls left.  A patrol party captured it not far from the city.  Stupid beast, but strong.  750 gp for that one, if you wish it.~ */
  IF ~Global("SpiritSold","AR2200",0)~ THEN GOTO 6
  IF ~Global("SpiritSold","AR2200",1)
Global("UmberSold","AR2200",0)~ THEN GOTO 7
  IF ~Global("SpiritSold","AR2200",1)
Global("UmberSold","AR2200",1)~ THEN GOTO 8
END

IF ~~ THEN BEGIN 6 // from: 5.0 4.1 2.2 0.3
  SAY #57320 /* ~Mmm, I have a spirit troll. I do not know much about it; a warrior sold it to me two months ago. Difficult to feed, but it certainly is powerful. 1,000 gp.~ */
  IF ~Global("UmberSold,"AR2200",0)~ THEN GOTO 7
  IF ~Global("UmberSold,"AR2200",1)~ THEN GOTO 8
END

IF ~~ THEN BEGIN 7 // from: 6.0 5.1 4.2 2.3 0.4
  SAY #57321 /* ~Ah, yes... I have one of the umber hulks left, still.  The sisters love those ones.  Difficult to kill, I understand.  I charge 1,500 gp for that one.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0 6.1 5.2 4.3
  SAY #57325 /* ~That's it, actually, at the moment.  Care to make a purchase, then?~ */
  IF ~Global("GnollSold","AR2200",0)
PartyGoldGT(499)~ THEN REPLY #57333 /* ~I will buy the gnoll... here's the 500 gp.~ */ DO ~TakePartyGold(500)~ GOTO 9
  IF ~Global("TrollSold","AR2200",0)
PartyGoldGT(749)~ THEN REPLY #57334 /* ~I will buy the troll.  Here's the 750 gp.~ */ DO ~TakePartyGold(750)~ GOTO 10
  IF ~Global("SpiritSold","AR2200",0)
PartyGoldGT(999)~ THEN REPLY #57335 /* ~I will buy the spirit troll.  Here's the 1,000 gp.~ */ DO ~TakePartyGold(1000)~ GOTO 11
  IF ~Global("UmberSold","AR2200",0)
PartyGoldGT(1499)~ THEN REPLY #57336 /* ~I will buy the umber hulk.  Here's the 1,500 gp.~ */ GOTO 12
  IF ~~ THEN REPLY #57337 /* ~No, I don't think so.~ */ GOTO 3
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #57338 /* ~Let me release it then. Do as you wish, but you are responsible for it from this point, <MALEFEMALE>, so do not endanger others. My thanks for your patronage.~ */
  IF ~~ THEN DO ~SetGlobal("GnollSold","AR2200",1)
CreateVisualEffectObject("SPDIMNDR","dagnoll")
Wait(1)
CreateVisualEffect("SPDIMNDR",[927.2764])
Wait(1)
ActionOverride("dagnoll",JumpToPoint([927.2764]))
Wait(1)
ActionOverride(LastTalkedToBy(),ReallyForceSpell("dagnoll",PERM_CHARM))~ EXIT
END

IF ~~ THEN BEGIN 10 // from: 8.1
  SAY #57339 /* ~Let me release it then. Do as you wish, but you are responsible for it from this point, <MALEFEMALE>, so do not endanger others. My thanks for your patronage.~ */
  IF ~~ THEN DO ~SetGlobal("TrollSold","AR2200",1)
CreateVisualEffectObject("SPDIMNDR","datroll")
Wait(1)
CreateVisualEffect("SPDIMNDR",[927.2764])
Wait(1)
ActionOverride("datroll",JumpToPoint([927.2764]))
Wait(1)
ActionOverride(LastTalkedToBy(),ReallyForceSpell("datroll",PERM_CHARM))~ EXIT
END

IF ~~ THEN BEGIN 11 // from: 8.2
  SAY #57340 /* ~Let me release it then. Do as you wish, but you are responsible for it from this point, <MALEFEMALE>, so do not endanger others. My thanks for your patronage.~ */
  IF ~~ THEN DO ~SetGlobal("SpiritSold","AR2200",1)
CreateVisualEffectObject("SPDIMNDR","daspitro")
Wait(1)
CreateVisualEffect("SPDIMNDR",[927.2764])
Wait(1)
ActionOverride("daspitro",JumpToPoint([927.2764]))
Wait(1)
ActionOverride(LastTalkedToBy(),ReallyForceSpell("daspitro",PERM_CHARM))~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 8.3
  SAY #57341 /* ~Let me release it then. Do as you wish, but you are responsible for it from this point, <MALEFEMALE>, so do not endanger others. My thanks for your patronage.~ */
  IF ~~ THEN DO ~SetGlobal("UmberSold","AR2200",1)
CreateVisualEffectObject("SPDIMNDR","daumber")
Wait(1)
CreateVisualEffect("SPDIMNDR",[927.2764])
Wait(1)
ActionOverride("daumber",JumpToPoint([927.2764]))
Wait(1)
ActionOverride(LastTalkedToBy(),ReallyForceSpell("daumber",PERM_CHARM))~ EXIT
END

IF ~Global("GnollSold","AR2200",1)
Global("TrollSold","AR2200",1)
Global("SpiritSold","AR2200",1)
Global("UmberSold","AR2200",1)~ THEN BEGIN 13 // from:
  SAY #57342 /* ~I have no more creatures to sell at the moment, <MALEFEMALE>.  You shall have to wait until some more are captured by our patrols.  Lolth's favor to you.~ */
  IF ~~ THEN EXIT
END
