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

BEGIN ~TRRAK01~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #1 /* Triggers after states #: 8 even though they appear after this state */
~Global("zahraajob","GLOBAL",0)~ THEN BEGIN 0 // from:
  SAY #43531 /* ~Ahhh!  If it is not a lovely <RACE> come to see an old woman in the woods, eh?  Perhaps you have come, like so many others, to partake of my potions, yes?~ */
  IF ~!Global("itonatold","GLOBAL",1)
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Jan")~ THEN REPLY #43532 /* ~Just who are you, anyway?~ */ GOTO 1
  IF ~!Global("itonatold","GLOBAL",1)
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Jan")~ THEN REPLY #43533 /* ~Certainly.  Let me see your potions.~ */ GOTO 2
  IF ~Global("itonatold","GLOBAL",1)~ THEN REPLY #43534 /* ~I know who you are!  You are the rakshasa that the genies are looking for!!~ */ GOTO 3
  IF ~!Dead("Faldorn")
!Global("itonatold","GLOBAL",1)
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Jan")~ THEN REPLY #43538 /* ~Are you not bothered by the animal attacks in this area?~ */ GOTO 5
  IF ~!Global("itonatold","GLOBAL",1)
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Jan")~ THEN REPLY #43535 /* ~No, I don't think so.~ */ GOTO 6
  IF ~!Global("itonatold","GLOBAL",1)
IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 222
  IF ~!Global("itonatold","GLOBAL",1)
!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 170
END

IF ~~ THEN BEGIN 1 // from: 5.0 0.0
  SAY #43536 /* ~Oh, just an old woman, dearie.  My name is Adratha... one who likes herbs and mixing things, that is all.  The druids, here, have left me pretty much alone, they have.~ */
  IF ~~ THEN REPLY #43537 /* ~Well, let me see your potions, then.~ */ GOTO 2
  IF ~Global("itonatold","GLOBAL",1)~ THEN REPLY #43539 /* ~I know who you are!  You are the rakshasa that the genies are looking for!!~ */ GOTO 3
  IF ~!Dead("Faldorn")~ THEN REPLY #43540 /* ~Are you not bothered by the animal attacks in this area?~ */ GOTO 5
  IF ~~ THEN REPLY #43542 /* ~Well, I'll be going, then.~ */ GOTO 6
END

IF ~~ THEN BEGIN 2 // from: 5.1 1.0 0.1
  SAY #43541 /* ~Oh, good!  I do so enjoy someone coming by to look at my mixes!  The townsfolk always come, but none have come lately... the business with the animals, I suppose...~ */
  IF ~~ THEN DO ~StartStore("trrak01",LastTalkedToBy())~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 5.2 1.1 0.2
  SAY #43543 /* ~What?!  You do not have the stench of the djinn on you!  How do you know this?!  Bah!~ */
  IF ~~ THEN UNSOLVED_JOURNAL #6585 /* ~Dealing with the Trademeet Genies.

I have uncovered Ihtafeer the rakshasi posing as a potion-seller near the druid grove.~ */ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: TRRAK03:0.0 TRRAK02:1.0 8.0 7.0 3.0
  SAY #43544 /* ~You are fools!  We will devour you!!~ */
  IF ~~ THEN DO ~Enemy()
Shout(89)~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 1.2 0.3
  SAY #43545 /* ~Oh, no, no.  I have no troubles with the beasties here.  And if I did, I have my boys Saadat and Jalaal to handle it, yes I do.~ */
  IF ~~ THEN REPLY #43546 /* ~Just who are you, anyway?~ */ GOTO 1
  IF ~~ THEN REPLY #43547 /* ~Let me see what potions you have, then.~ */ GOTO 2
  IF ~Global("itonatold","GLOBAL",1)~ THEN REPLY #43548 /* ~I know who you are!  You are the rakshasa that the genies are looking for!!~ */ GOTO 3
  IF ~~ THEN REPLY #43549 /* ~I'll be going, then.~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.3 1.3 0.4
  SAY #43550 /* ~Well, alright dearie, on your way, then.  I have much to do.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 /* Triggers after states #: 8 even though they appear after this state */
~Global("zahraajob","GLOBAL",1)~ THEN BEGIN 7 // from:
  SAY #43551 /* ~You!  You have the stench of those filthy djinn about you!  I know what you have come for!!~ */
  IF ~~ THEN UNSOLVED_JOURNAL #6585 /* ~Dealing with the Trademeet Genies.

I have uncovered Ihtafeer the rakshasi posing as a potion-seller near the druid grove.~ */ GOTO 4
END

IF WEIGHT #0 ~Global("attacked","LOCALS",1)~ THEN BEGIN 8 // from:
  SAY #43552 /* ~You dare to attack us?!  You dare!!  You are not even one of the filthy djinn who hunt us!!~ */
  IF ~~ THEN GOTO 4
END
