// creator  : weidu.exe (version 23100)
// argument : _MULAHE.DLG
// game		 : .
// source	 : ./override/_MULAHE.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

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

IF WEIGHT #1 /* Triggers after states #: 7 even though they appear after this state */
~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #77402 /* ~Tazok must have dispatched you, and my traitorous kobolds let you pass, didn't they?  I knew I could not trust them!  Armed as such you have obviously been sent to kill me!  By Cyric, not a measure of ore leaves this mine unspoiled and I am still to be executed?!  I'll not lose my head over this!~ */
  IF ~~ THEN REPLY #77403 /* ~Uh... Yes... fool, Tazok is... is most displeased with thee!  Reveal your treachery and mayhaps he will spare you!~ */ GOTO 1
  IF ~~ THEN REPLY #77405 /* ~No one sent us, but thy head is in no less danger!  Reveal thy treachery, and mayhaps we will be merciful!~ */ GOTO 2
  IF ~Global("X#XanMulahey1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanMulahey1","GLOBAL",1)~ EXTERN ~_XANJ~ 138
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #77406 /* ~Tazok is unfair, I have no desire to cheat him, or thee!  My letters will show, they are in that chest.  Take them, take them and Tazok will see!~ */
  IF ~~ THEN GOTO 6
  IF ~Global("X#XanMulahey2","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanMulahey2","GLOBAL",1)~ EXTERN ~_XANJ~ 139
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #77407 /* ~Tazok did not send thee?  Then thou art dead!  Help, my minions, HEEELLLPPP!!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MULAHE2","GLOBAL",0)~ THEN DO ~SetGlobal("X#MULAHE2","GLOBAL",1)~ GOTO 10
  IF ~Global("X#MULAHE2","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MULAHE2","GLOBAL",1)~ EXTERN ~_GARRIJ~ 203
  IF ~Global("X#MULAHE2","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MULAHE2","GLOBAL",1)~ EXTERN ~_XANJ~ 260
  IF ~Global("X#MULAHE2","GLOBAL",0)
InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MULAHE2","GLOBAL",1)~ EXTERN ~_EDWINJ~ 188
END

IF WEIGHT #2 /* Triggers after states #: 7 even though they appear after this state */
~HPPercentLT(Myself,50)
~ THEN BEGIN 3 // from:
  SAY #77409 /* ~I yield, I yield to thee!  Accept my surrender?~ */
  IF ~~ THEN REPLY #77410 /* ~As well you should!  Tell us what has been happening here, and you may yet leave alive!~ */ GOTO 5
  IF ~~ THEN REPLY #77411 /* ~You die here today, foul beast!~ */ GOTO 4
  IF ~Global("X#MULAHE3","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MULAHE3","GLOBAL",1)~ EXTERN ~_XANJ~ 262
  IF ~Global("X#MULAHE3","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MULAHE3","GLOBAL",1)~ EXTERN ~_VICONJ~ 208
END

IF ~~ THEN BEGIN 4 // from: 3.1
  SAY #77412 /* ~You would not accept my surrender?  Your heart is of the deepest black!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 3.0
  SAY #77413 /* ~I thank thee for thy mercy!  There in the chest are all my letters.  Take them and leave me be.  I will bother you no more.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0 1.0
  SAY #77414 /* ~Fools, you'll never have the chance to take anything!  Minions, come forth and kill the intruders!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
  IF ~Global("X#MULAHE6","GLOBAL",0)
InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MULAHE6","GLOBAL",1)~ GOTO 14
  IF ~Global("X#MULAHE6","GLOBAL",0)
InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MULAHE6","GLOBAL",1)~ EXTERN ~_BRANWJ~ 94
  IF ~Global("X#MULAHE6","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MULAHE6","GLOBAL",1)~ GOTO 16
  IF ~Global("X#MULAHE6","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MULAHE6","GLOBAL",1)~ EXTERN ~_KIVANJ~ 381
  IF ~Global("X#MULAHE6","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MULAHE6","GLOBAL",1)~ GOTO 20
  IF ~Global("X#MULAHE6","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MULAHE6","GLOBAL",1)~ EXTERN ~_XANJ~ 264
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 7 // from:
  SAY #77415 /* ~I am your humble servant Mulahey.  I exist only to please you.  My operations have been going very well here.  I have been causing all sorts of trouble among the miners.  My kobolds have poisoned all of the iron and have killed several of the miners.  What else could you ask for?~ */
  IF ~~ THEN UNSOLVED_JOURNAL #77416 /* ~Investigating the Nashkel mines

When we charmed Mulahey, he told us that his kobolds had contaminated most of the iron in the mine, and had killed several miners.~ */ EXIT
END

IF ~~ THEN BEGIN 8 // from:
  SAY #77417 /* ~I'll have your skulls for coming here!  You'll ruin everything!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 9 // from: _MINSCJ:67.1
  SAY #99949 /* ~Gah!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
END

IF ~~ THEN BEGIN 10 // from: 2.1
  SAY #103442 /* ~Now!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
END

IF ~~ THEN BEGIN 11 // from: _GARRIJ:203.0
  SAY #103442 /* ~Now!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
END

IF ~~ THEN BEGIN 12 // from: _GARRIJ:204.0
  SAY #103442 /* ~Now!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: _GARRIJ:205.0
  SAY #103442 /* ~Now!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
END

IF ~~ THEN BEGIN 14 // from: 6.2
  SAY #103450 /* ~Kill them, but leave the big wench to me!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
END

IF ~~ THEN BEGIN 15 // from:
  SAY #103450 /* ~Kill them, but leave the big wench to me!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
END

IF ~~ THEN BEGIN 16 // from: 6.4
  SAY #103448 /* ~There are too many elves in this mine! Kill him!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN GOTO 17
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 95
END

IF ~~ THEN BEGIN 17 // from: 16.2
  SAY #103450 /* ~Kill them, but leave the big wench to me!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
END

IF ~~ THEN BEGIN 18 // from: _KIVANJ:381.4
  SAY #103448 /* ~There are too many elves in this mine! Kill him!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN GOTO 19
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 96
END

IF ~~ THEN BEGIN 19 // from: 18.2 _KIVANJ:381.2
  SAY #103450 /* ~Kill them, but leave the big wench to me!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
END

IF ~~ THEN BEGIN 20 // from: 6.6
  SAY #103446 /* ~Take what consolation you can. You won't enjoy it long.~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN GOTO 22
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 97
  IF ~  InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN GOTO 21
  IF ~  InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KIVANJ~ 382
END

IF ~~ THEN BEGIN 21 // from: 20.4 _KIVANJ:382.4
  SAY #103448 /* ~There are too many elves in this mine! Kill him!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN GOTO 22
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 97
END

IF ~~ THEN BEGIN 22 // from: 21.2 20.2 _KIVANJ:382.2
  SAY #103450 /* ~Kill them, but leave the big wench to me!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
END

IF ~~ THEN BEGIN 23 // from:
  SAY #103446 /* ~Take what consolation you can. You won't enjoy it long.~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN GOTO 25
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 98
  IF ~  InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN GOTO 24
  IF ~  InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN EXTERN ~_KIVANJ~ 383
END

IF ~~ THEN BEGIN 24 // from: 23.4 _KIVANJ:383.4
  SAY #103448 /* ~There are too many elves in this mine! Kill him!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN GOTO 25
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 98
END

IF ~~ THEN BEGIN 25 // from: 24.2 23.2 _KIVANJ:383.2
  SAY #103450 /* ~Kill them, but leave the big wench to me!~ */
  IF ~~ THEN DO ~Enemy()
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_KOBOLD",[217.591],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
CreateCreature("_SKELET",[222.502],0)
MoveToPoint([359.664])
Help()
~ EXIT
  IF ~Global("X#MinscTricked","GLOBAL",0)
InParty("minsc")
InMyArea("minsc")
!StateCheck("minsc",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#MinscTricked","GLOBAL",1)~ EXTERN ~_MINSCJ~ 67
END
