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

BEGIN ~BAZPAT01~

IF ~NumTimesTalkedTo(0)
See("bazpat02")
See("bazpat03")
!Dead("bazpat02")
!Dead("bazpat03")
~ THEN BEGIN 0 // from:
  SAY #72396 /* ~Die, cursed eyeball! Wha? Uh... ?  ... Do I, uh, know you?~ */
  IF ~~ THEN REPLY #72397 /* ~I have freed you from your stone prison, young adventurer.~ */ GOTO 1
  IF ~~ THEN REPLY #72398 /* ~No, but you will know the sharpness of my steel. Die!~ */ GOTO 4
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #72399 /* ~Uh, thanks. Guys, are you ok?~ */
  IF ~~ THEN EXTERN ~BAZPAT02~ 0
END

IF ~~ THEN BEGIN 2 // from: 16.0
  SAY #72402 /* ~Uh... I guess I should thank you for saving us.  Is there some way we brave adventurers can repay your kindness?  Something we can do for you to fulfill our debt of gratitude.  Anything?  Anything at all?~ */
  IF ~Global("IycanthQuest","GLOBAL",1)
!Dead("bazgau01")
!Dead("bazeye01")~ THEN REPLY #72403 /* ~A terrible evil has swept across the land and the lives of millions hang in balance. You have been chosen, Bondari, and you must not fail in your quest!~ */ GOTO 3
  IF ~~ THEN REPLY #72405 /* ~You could tell me how you come to be here.~ */ GOTO 9
  IF ~~ THEN REPLY #72406 /* ~Just put up a good fight, dog!~ */ GOTO 4
END

IF ~~ THEN BEGIN 3 // from: 9.1 2.0
  SAY #72404 /* ~A Quest! Wow! This is great! What do we have to do?~ */
  IF ~~ THEN REPLY #72412 /* ~A fiendish beholder and his kobold cohorts have infested a cave to the east of here. An evil dragon threatens the land! I must have the beholder's eyestalk to slay the dragon and save the country from certain doom!~ */ GOTO 5
END

IF ~~ THEN BEGIN 4 // from: 2.2 0.1
  SAY #72407 /* ~Ah! Tim, cast Magic Missile! Nanoc! Attack! I'm outta here!~ */
  IF ~~ THEN DO ~Shout(151)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 3.0
  SAY #72413 /* ~By Mask's mask! We can't let this happen!~ */
  IF ~~ THEN REPLY #72414 /* ~Go, noble adventurer, and retrieve the eyestalk. The fate of Tethyr lies in your hands!~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #72415 /* ~What kind of reward do we get?~ */
  IF ~~ THEN REPLY #72416 /* ~The satisfaction of a job well done. Do not argue, even now the dragon raises his army to crush the world!~ */ GOTO 8
  IF ~PartyGoldGT(99)
~ THEN REPLY #72417 /* ~I shall give you... 100 gold!~ */ DO ~SetGlobal("PromisedBondariGold","GLOBAL",1)~ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.1
  SAY #72418 /* ~100 gold! We're rich! You have a deal, <SIRMAAM>. We shall fetch this eyestalk and save the world. C'mon guys!~ */
  IF ~~ THEN EXTERN ~BAZPAT03~ 1
END

IF ~~ THEN BEGIN 8 // from: 6.0
  SAY #72421 /* ~Well, we will be saving the world... Alright, we'll do it! Let's go, boys!~ */
  IF ~~ THEN EXTERN ~BAZPAT03~ 1
END

IF ~Global("PatsyJob","GLOBAL",0)
~ THEN BEGIN 9 // from: 2.1
  SAY #72425 /* ~I am Bondari Halfman! I left my peaceful village in the Dales, seeking adventure and fortune! I met Tim and Nanoc in a tavern and we formed a party to explore the Underdark. Well, we found a cave. Then we found some eyes. Then they turned us to stone.~ */
  IF ~~ THEN REPLY #72426 /* ~Right. Why don't you just stay here where it's safe.~ */ GOTO 10
  IF ~Global("IycanthQuest","GLOBAL",1)
!Dead("bazgau01")
!Dead("bazeye01")~ THEN REPLY #72428 /* ~I have a job for you, Bondari. A terrible evil has swept across the land and the lives of millions hang in balance. You have been chosen, Bondari, and you must not fail in your quest!~ */ GOTO 3
  IF ~OR(2)
Global("IycanthQuest","GLOBAL",2)
Dead("bazeye01")~ THEN REPLY #73534 /* ~It seems to be safe to leave. Go on home, Bondari.~ */ GOTO 17
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #72427 /* ~Uh, alright.~ */
  IF ~~ THEN EXIT
END

IF ~Global("PatsyJob","GLOBAL",1)
~ THEN BEGIN 11 // from:
  SAY #72430 /* ~(I'm telling you we can take <CHARNAME>. Nanoc, you are unfettered by the weaknesses of the civilized world! Tim, you can cast magic missile! I will backstab. I bet <PRO_HESHE> has all kinds of great treasure!)~ */
  IF ~~ THEN DO ~SetGlobal("PatsyJob","GLOBAL",2)
~ EXTERN ~BAZPAT02~ 4
END

IF ~~ THEN BEGIN 12 // from: BAZPAT02:5.0
  SAY #72435 /* ~(Enough! Ready...) ATTACK!!!~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut244b")
~ EXIT
END

IF ~Global("PatsyJob","GLOBAL",2)
~ THEN BEGIN 13 // from:
  SAY #72436 /* ~Uh, here's your eyestalk <SIRMAAM>. We found something else, too. I hope you like it.~ */
  IF ~Global("PromisedBondariGold","GLOBAL",1)~ THEN REPLY #72437 /* ~Well done, Bondari. Here is your reward.~ */ DO ~ClearActions(Player1)
SetGlobal("PatsyJob","GLOBAL",3)
GiveItemCreate("BAZPLO08",LastTalkedToBy,0,0,0)
GiveItemCreate("MiscCB",LastTalkedToBy,0,0,0)
TakePartyGold(100)
~ UNSOLVED_JOURNAL #73384 /* ~Iycanth's Eyestalk

I have subcontracted the Eyestalk Quest to Bondari and his idiot friends. They did quite well though Nanoc seemed less than pleased with Tim's performance. Tim has Magic Missile.~ */ GOTO 14
  IF ~Global("PromisedBondariGold","GLOBAL",0)~ THEN REPLY #72438 /* ~You have saved us all, noble hero.~ */ DO ~ClearActions(Player1)
SetGlobal("PatsyJob","GLOBAL",3)
GiveItemCreate("BAZPLO08",LastTalkedToBy,0,0,0)
GiveItemCreate("MiscCB",LastTalkedToBy,0,0,0)~ UNSOLVED_JOURNAL #73384 /* ~Iycanth's Eyestalk

I have subcontracted the Eyestalk Quest to Bondari and his idiot friends. They did quite well though Nanoc seemed less than pleased with Tim's performance. Tim has Magic Missile.~ */ GOTO 14
  IF ~~ THEN REPLY #72439 /* ~Great, now get lost.~ */ DO ~ClearActions(Player1)
SetGlobal("PatsyJob","GLOBAL",3)
GiveItemCreate("BAZPLO08",LastTalkedToBy,0,0,0)
GiveItemCreate("MiscCB",LastTalkedToBy,0,0,0)~ UNSOLVED_JOURNAL #73384 /* ~Iycanth's Eyestalk

I have subcontracted the Eyestalk Quest to Bondari and his idiot friends. They did quite well though Nanoc seemed less than pleased with Tim's performance. Tim has Magic Missile.~ */ GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.2 13.1 13.0
  SAY #72440 /* ~Thanks. It was a good quest. I found a dagger and Tim here got a scroll of identify. In a couple of days he'll be able to tell me about my dagger.~ */
  IF ~~ THEN EXTERN ~BAZPAT03~ 5
END

IF ~~ THEN BEGIN 15 // from: BAZPAT03:5.0
  SAY #72442 /* ~Thanks again, <CHARNAME>! Bye! Good luck with the dragon!~ */
  IF ~~ THEN EXTERN ~BAZPAT02~ 6
END

IF ~~ THEN BEGIN 16 // from: BAZPAT03:0.0
  SAY #72575 /* ~Shutup, Tim! Greetings, my, uh... <LADYLORD>. I am Bondari Quickhand, a thief. These are my companions Nanoc the Barbarian and Tim Goldenhand. He's an elf. And a mage.~ */
  IF ~~ THEN GOTO 2
  IF ~IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEI25J~ 45
  IF ~IsValidForPartyDialog("Aerie")~ THEN EXTERN ~AERIE25J~ 34
END

IF ~~ THEN BEGIN 17 // from: 9.2
  SAY #73543 /* ~Uh, thanks for your help, uh... <SIRMAAM>. You can have the treasure that we found before the, uh, stoning incident. Don't spend it all in one place. Bye!~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
ActionOverride(Player1,Wait(3))
ActionOverride(Player1,EndCutSceneMode())
GiveGoldForce(3)
ActionOverride("bazpat02",EscapeArea())
ActionOverride("bazpat03",EscapeArea())
EscapeArea()
~ EXIT
END
