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

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

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
  SAY #14558 /* ~Aye, now, a good business to ye.  Does ye have a gold coin to spare a poor beggar?~ */
  IF ~PartyGoldGT(0)~ THEN REPLY #14559 /* ~I can spare a coin.  Here you go, sir, spend it in good health.~ */ DO ~TakePartyGold(1)~ GOTO 1
  IF ~PartyGoldGT(4)~ THEN REPLY #14561 /* ~Actually, I can spare more than that if you can answer a question for me.  How about 5 gold?~ */ DO ~TakePartyGold(5)~ GOTO 4
  IF ~~ THEN REPLY #14562 /* ~I'm sorry, I cannot spare anything at the moment.~ */ GOTO 3
  IF ~~ THEN REPLY #14563 /* ~Get away from me, you filthy beggar!  I'll not spend time speaking to the likes of you!~ */ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 10.0 0.0
  SAY #14560 /* ~A pearl to ye, a pearl to ye.  Many thanks.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 2 // from: 10.3 0.3
  SAY #14564 /* ~Rot yer skull, then, ye bleedin' kobold!~ */
  IF ~True()~ THEN EXIT
  IF ~PartyGoldGT(4)
IsValidForPartyDialog("Nalia")~ THEN DO ~TakePartyGold(5)~ EXTERN ~NALIAJ~ 135
  IF ~!IsValidForPartyDialog("Nalia")
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 316
END

IF ~~ THEN BEGIN 3 // from: 10.2 0.2
  SAY #14565 /* ~Ah, I be sorry to hear that.  Good business to ye, then.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4 // from: 10.1 0.1
  SAY #14566 /* ~How can I help but buy that from such generous folk?  What is it tha' ye want t' know, aye?~ */
  IF ~~ THEN REPLY #14569 /* ~Is there anywhere here to have a drink or stay for the night?~ */ GOTO 5
  IF ~~ THEN REPLY #14570 /* ~Is there anything odd going on that you could tell us of?~ */ GOTO 6
  IF ~~ THEN REPLY #14571 /* ~I've heard that these slums are quite dangerous.  Do you know anything about that?~ */ GOTO 7
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #45556 /* ~Maybe you know where the Cowled Wizards might keep people they take prisoner?~ */ GOTO 11
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #45557 /* ~Tell me if you know anything about the Shadow Thieves.~ */ GOTO 12
  IF ~~ THEN REPLY #14572 /* ~Actually, now that I think of it, nothing.  Give me my 5 gold back.~ */ GOTO 9
  IF ~~ THEN REPLY #14573 /* ~I don't think I need to know anything, after all.  Good health to you.~ */ GOTO 8
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #14574 /* ~Sluice a' the Copper Coronet here in th' slums.  Be wary, it's raided oft by th' garrison, but Lehtinan usually buys off whatever real trouble comes 'is way.~ */
  IF ~!IsValidForPartyDialog("Yoshimo")~ THEN GOTO 8
  IF ~IsValidForPartyDialog("Yoshimo")~ THEN EXTERN ~YOSHJ~ 27
END

IF ~~ THEN BEGIN 6 // from: 4.1
  SAY #14575 /* ~Strange things at night: people marched across the slums chained like animals. Kept me nose out of it, 'cuz I no want to end up in chains like 'em folk, no sir.~ */
  IF ~~ THEN DO ~SetGlobal("KnowSlaves","GLOBAL",1)~ GOTO 8
END

IF ~~ THEN BEGIN 7 // from: 4.2
  SAY #14578 /* ~A mite more dangerous with th' trouble between Shadow Thieves and their enemies.  Don't know who the other guild is, but they're in for trouble, I be bettin'.~ */
  IF ~!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Anomen")~ THEN GOTO 8
  IF ~IsValidForPartyDialog("Yoshimo")~ THEN EXTERN ~YOSHJ~ 28
  IF ~!IsValidForPartyDialog("Yoshimo")
IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 159
END

IF ~~ THEN BEGIN 8 // from: 7.0 6.0 5.0 4.6
  SAY #14579 /* ~Thanks be to ye, and a pearl to yer health.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 9 // from: 4.5
  SAY #14580 /* ~Ye be takin' money back from a beggar awash in red ink?  Rot yer skull, I'll have none o' it.~ */
  IF ~~ THEN EXIT
END

IF ~True()~ THEN BEGIN 10 // from:
  SAY #14582 /* ~Aye, now?  Ye be back again, does ye?  Mayhap ye have another gold to spare, aye?~ */
  IF ~PartyGoldGT(0)~ THEN REPLY #14585 /* ~I can spare a coin.  Here you go, sir, spend it in good health.~ */ DO ~TakePartyGold(1)~ GOTO 1
  IF ~PartyGoldGT(4)~ THEN REPLY #14586 /* ~Actually, I can spare more than that if you can answer a question for me.  How about 5 gold?~ */ DO ~TakePartyGold(5)~ GOTO 4
  IF ~~ THEN REPLY #14587 /* ~I'm sorry, I cannot spare anything at the moment.~ */ GOTO 3
  IF ~~ THEN REPLY #14588 /* ~Get away from me, you filthy beggar!  I'll not spend time speaking to the likes of you!~ */ GOTO 2
END

IF ~~ THEN BEGIN 11 // from: 4.3
  SAY #45559 /* ~Sure, heh, they keeps 'em up in a glass tower up in thar clouds.  Har... nay, I should not be botherin' ye.  I nay be knowin' nothing about them wizards.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 12 // from: 4.4
  SAY #45560 /* ~I seen plenty, I have.  They at war, my <LADYLORD>, at war with another guild tryin' to take 'em over.  Only get worse, it will.  Blood in th' streets, I says.~ */
  IF ~~ THEN EXIT
END
