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

BEGIN ~OGRMBA~

IF ~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #1527 /* ~So, some puny surface dwellers have come to their death. It'll just be extra treasure for my collection. My pets have been causing much anguish in your surface realms, haven't they? They have been so useful at collecting the surface pinklings. My pets use the flesh for food and I get the pretty treasure!~ */
  IF ~~ THEN DO ~SetGlobal("Sewage","GLOBAL",1)
~ GOTO 1
  IF ~Global("X#XanOgreSewer1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanOgreSewer1","GLOBAL",1)~ EXTERN ~XANJ~ 135
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #1528 /* ~My pets, kill these intruders.~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~Global("X#OGRMBA1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#OGRMBA1","GLOBAL",1)~ GOTO 2
  IF ~Global("X#OGRMBA1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#OGRMBA1","GLOBAL",1)~ EXTERN ~XANJ~ 261
  IF ~Global("X#OGRMBA1","GLOBAL",0)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#OGRMBA1","GLOBAL",1)~ GOTO 4
  IF ~Global("X#OGRMBA1","GLOBAL",0)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#OGRMBA1","GLOBAL",1)~ EXTERN ~KHALIJ~ 140
  IF ~Global("X#OGRMBA1","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#OGRMBA1","GLOBAL",1)~ EXTERN ~KHALIJ~ 141
  IF ~Global("X#OGRMBA1","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#OGRMBA1","GLOBAL",1)~ EXTERN ~JAHEIJ~ 430
  IF ~Global("X#OGRMBA1","GLOBAL",0)
InParty("khalid")
InMyArea("khalid")
!StateCheck("khalid",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#OGRMBA1","GLOBAL",1)~ EXTERN ~KHALIJ~ 145
END

IF ~~ THEN BEGIN 2 // from: 1.1
  SAY #50252 /* ~Kill them, my pets!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from:
  SAY #50252 /* ~Kill them, my pets!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 4 // from: 1.3
  SAY #50250 /* ~I think NOT!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN GOTO 5
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN EXTERN ~XANJ~ 262
END

IF ~~ THEN BEGIN 5 // from: 4.1
  SAY #50252 /* ~Kill them, my pets!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 6 // from:
  SAY #50250 /* ~I think NOT!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN GOTO 7
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN EXTERN ~XANJ~ 263
END

IF ~~ THEN BEGIN 7 // from: 6.1
  SAY #50252 /* ~Kill them, my pets!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from:
  SAY #50250 /* ~I think NOT!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN GOTO 9
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN EXTERN ~XANJ~ 264
END

IF ~~ THEN BEGIN 9 // from: 8.1
  SAY #50252 /* ~Kill them, my pets!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 10 // from:
  SAY #50250 /* ~I think NOT!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN GOTO 11
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN EXTERN ~XANJ~ 265
END

IF ~~ THEN BEGIN 11 // from: 10.1
  SAY #50252 /* ~Kill them, my pets!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 12 // from:
  SAY #50250 /* ~I think NOT!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN GOTO 13
  IF ~  InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN EXTERN ~XANJ~ 266
END

IF ~~ THEN BEGIN 13 // from: 12.1
  SAY #50252 /* ~Kill them, my pets!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END
