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

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

IF WEIGHT #1 /* Triggers after states #: 13 even though they appear after this state */
~True()
~ THEN BEGIN 0 // from:
  SAY #37492 /* ~What in the hells do you want in here? I don't deal with common streetwalking trash. I got clientele that makes appointments, and I ain't got time for you.~ */
  IF ~~ THEN REPLY #37493 /* ~I just wanted to see what wares you had for sale.~ */ GOTO 1
  IF ~OR(2)
Global("StealingPlot","GLOBAL",1)
Global("StealingPlot","GLOBAL",3)
~ THEN REPLY #37494 /* ~You'll make time! You've got something that belongs to me! So says that worm Travin.~ */ GOTO 4
  IF ~OR(2)
Global("StealingPlot","GLOBAL",1)
Global("StealingPlot","GLOBAL",3)
~ THEN REPLY #37495 /* ~I thought you might want to talk to me. Travin said you have something I want.~ */ GOTO 4
  IF ~Global("PaidMiddle","GLOBAL",1)
~ THEN REPLY #37548 /* ~I paid Travin 400 gold to find you so you damn well better talk to me.~ */ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #37496 /* ~I told you, that ain't the kinda goods I deal in. Get lost.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.3
  SAY #37549 /* ~Well, I'm sorry to have to tell you but you've been ripped off. He's just an errand boy, and you paid him gold he wasn't due. My fee is derived directly from the church, not some back alley hand off.~ */
  IF ~~ THEN REPLY #37555 /* ~Then his soul is surely to be doomed for cheating a servant of the church.~ */ GOTO 3
  IF ~~ THEN REPLY #37556 /* ~I shall rend him limb from limb! He will not even live to regret cheating me!~ */ GOTO 3
  IF ~~ THEN REPLY #37557 /* ~Curse me for a fool. I was told of no fee, so I should not have paid it.~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.2 2.1 2.0
  SAY #37558 /* ~Yes, well, regrets to be dealt with another day. You say you have come to take delivery of something?~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.0 0.2 0.1
  SAY #37559 /* ~That would be the Dawn Ring, would it not? I shall be glad to be rid of it. I have felt the eyes of the celestial upon me each and every minute I have had it. Just one more simple test before you go.~ */
  IF ~~ THEN REPLY #37560 /* ~I do not have time for games!~ */ GOTO 5
  IF ~~ THEN REPLY #37561 /* ~What is your request?~ */ GOTO 5
  IF ~~ THEN REPLY #37562 /* ~Can we dispense with this? I am expected back.~ */ GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.2 4.1 4.0
  SAY #37563 /* ~This will only be but a moment. I must be sure I am giving it to the proper person; when dealing with Talassans a mistake would be the death of me. It is a simple matter, really. Swear your devotion to Talos.~ */
  IF ~~ THEN REPLY #37564 /* ~What game is this? Why would you ask me this?~ */ GOTO 6
  IF ~~ THEN REPLY #37565 /* ~And what would you gain by my refusal?~ */ GOTO 6
  IF ~~ THEN REPLY #37566 /* ~Why do you ask such a thing?~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.2 5.1 5.0
  SAY #37567 /* ~It is a simple matter, really. I am to deliver this to a servant of Talos. If you are said servant you will not balk at declaring your allegiance; you would most likely revel in it.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #37569 /* ~But if you are NOT a follower of Talos, you will not swear to him even in jest. To do so would be to deny your own faith, or even worse, to bring the attention of Talos upon you.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #61915 /* ~Another mission for the Temple.

I have confronted Borinal the fence about the Dawn ring.  Now I must return to my superiors with it.~ */ GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #37575 /* ~So I ask you. Are you currently in service to Talos? Are you loyal to him and him alone? And may he strike you down if you are lying.~ */
  IF ~OR(5)
Class(Player1,CLERIC)
Class(Player1,FIGHTER_CLERIC)
Class(Player1,CLERIC_MAGE)
Class(Player1,CLERIC_THIEF)
Class(Player1,FIGHTER_MAGE_CLERIC)
Alignment(Player1,MASK_EVIL)
Global("Stripped","GLOBAL",0)
~ THEN REPLY #37576 /* ~I assure you that I am a servant of Talos in this matter. May he strike me down if I am lying.~ */ GOTO 9
  IF ~OR(2)
!Alignment(Player1,MASK_EVIL)
GlobalGT("Stripped","GLOBAL",0)
~ THEN REPLY #37577 /* ~I assure you that I am a servant of Talos in this matter. May he strike me down if I am lying.~ */ DO ~SetGlobal("TalosStrike","LOCALS",1)
~ EXIT
  IF ~~ THEN REPLY #37578 /* ~I cannot speak the words you wish to hear.~ */ GOTO 10
  IF ~OR(5)
Class(Player1,CLERIC)
Class(Player1,FIGHTER_CLERIC)
Class(Player1,CLERIC_MAGE)
Class(Player1,CLERIC_THIEF)
Class(Player1,FIGHTER_MAGE_CLERIC)
Alignment(Player1,MASK_GOOD)
~ THEN REPLY #37579 /* ~Feel the avenging wrath of a servant of the Morninglord! This charade stops here!~ */ GOTO 11
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #37580 /* ~Very well. You have satisfied me. Here is your ring, and good riddance to it. I've felt watched ever since I received it. Good day to you.~ */
  IF ~~ THEN DO ~GiveItem("RING38",LastTalkedToBy)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 10 // from: 8.2
  SAY #37581 /* ~Then you will not have the item. Leave me.~ */
  IF ~~ THEN REPLY #37582 /* ~I beg of you, give me the item anyway. I must return it.~ */ GOTO 12
  IF ~~ THEN REPLY #37583 /* ~No! The item will be returned! You will give it or suffer my wrath!~ */ GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.1 8.3
  SAY #37584 /* ~I am not unprotected! If you wish a fight, you will have one! To my side!~ */
  IF ~~ THEN DO ~CreateCreature("SPMUGG",[590.283],0)
CreateCreature("SPMUGG",[635.567],0)
CreateCreature("SPMUGG",[508.489],0)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 10.0
  SAY #37585 /* ~In a word, no. You are not who I was to meet, and now you know my crime. You will not leave here. Our business is finished. Permanently!~ */
  IF ~~ THEN DO ~CreateCreature("SPMUGG",[590.283],0)
CreateCreature("SPMUGG",[635.567],0)
CreateCreature("SPMUGG",[508.489],0)
Enemy()
~ EXIT
END

IF WEIGHT #0 ~Global("TalosStrike","LOCALS",2)~ THEN BEGIN 13 // from:
  SAY #37586 /* ~HA!  I wonder why that happened.  Divine wrath is usually subtle: a little bad luck here, a curse or two there.  But Talos, he's a god that means business.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #37587 /* ~I am afraid I must add injury to insult. You are obviously not who you claim to be, and I cannot let you leave and return strengthened. You will not leave here. You cannot.~ */
  IF ~~ THEN DO ~CreateCreature("GENMAG01",[590.283],0)
CreateCreature("GENTHF01",[635.567],0)
CreateCreature("GENTHF01",[508.489],0)
Enemy()
~ EXIT
END
