// creator  : weidu.exe (version 23600)
// argument : MERSIL.DLG
// game     : .
// source   : ./override/MERSIL.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~MERSIL~

IF ~~ THEN BEGIN 0 // from:
  SAY #786 /* ~Greeting Silke. We're here as you've asked, and we have the...~ */
  IF ~~ THEN EXTERN ~CUTSILK~ 1
END

IF ~~ THEN BEGIN 1 // from:
  SAY #787 /* ~What are you talking about? We're here with the gems that...~ */
  IF ~~ THEN EXTERN ~CUTSILK~ 2
END

IF ~  StateCheck(Myself,STATE_CHARMED)
Global("SilkeFightOver","GLOBAL",0)
~ THEN BEGIN 2 // from:
  SAY #788 /* ~Help us, somebody stop this murdering witch.~ */
  IF ~~ THEN EXIT
END

IF ~  StateCheck(Myself,STATE_CHARMED)
Global("SilkeFightOver","GLOBAL",1)
~ THEN BEGIN 3 // from:
  SAY #6300 /* ~I've heard a lot of stuff lately. Iron seems to be hard to come by, what with the bandits and the faulty Nashkel ore. Trouble seems to be brewing between Baldur's Gate and Amn. I wouldn't be too surprised if a war broke out between the two.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27264 /* ~Troubles in the Region
When I charmed a merchant, he said some vague things about iron shortages, bandits, and war.~ */ EXIT
END

IF ~  Global("TalkedToMerchant","GLOBAL",0)
Global("SilkeFightOver","GLOBAL",1)
~ THEN BEGIN 4 // from:
  SAY #6301 /* ~We thank you for stopping the evil witch before she killed us. Here, take this as a token of our appreciation.~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToMerchant","GLOBAL",1)
GiveItemCreate("POTN24",LastTalkedToBy,1,0,0)
ActionOverride("Merchant1",EscapeAreaDestroy(5))
ActionOverride("Merchant2",EscapeAreaDestroy(5))
ActionOverride("Merchant3",EscapeAreaDestroy(5))
~ EXIT
  IF ~Global("X#KivanFaltis1","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#KivanFaltis1","GLOBAL",1)~ EXTERN ~KIVANJ~ 239
END

IF ~~ THEN BEGIN 5 // from:
  SAY #9161 /* ~Lost your chance with me, you did! Get lost!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from:
  SAY #45593 /* ~Thank you for your aid, nonetheless.~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToMerchant","GLOBAL",1)
GiveItemCreate("POTN24",LastTalkedToBy,1,0,0)
ActionOverride("Merchant1",EscapeAreaDestroy(5))
ActionOverride("Merchant2",EscapeAreaDestroy(5))
ActionOverride("Merchant3",EscapeAreaDestroy(5))
~ EXIT
END
