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

BEGIN ~_BILL~

IF ~True()
~ THEN BEGIN 0 // from:
  SAY #82040 /* ~Greetings.  I assume you've come to the palace for the coronation of Sarevok?  Well then, I'll need to see your invitations.~ */
  IF ~~ THEN REPLY #82041 /* ~We don't have invitations, sorry for bothering you.~ */ GOTO 1
  IF ~PartyHasItem("_MISC78")
~ THEN REPLY #82042 /* ~Here are the invitations!  Could you let us in now, we're in a hurry.~ */ GOTO 2
  IF ~~ THEN REPLY #82043 /* ~It's really very important that we get inside!  Could you just let us in?~ */ GOTO 3
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #30634 /* ~On your way, then.~ */
  IF ~~ THEN EXIT
  IF ~Global("X#SkieBill1","GLOBAL",0)
InParty("skie")
InMyArea("skie")
!StateCheck("skie",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SkieBill1","GLOBAL",1)~ EXTERN ~_SKIEJ~ 56
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #82044 /* ~Don't be so impatient!  Let's take a look at these invitations.  Hmmmmm... yes, they do look authentic.  All right then, you can enter.~ */
  IF ~~ THEN DO ~OpenDoor("door0108")
~ EXIT
  IF ~Global("X#SkieBill","GLOBAL",0)
InParty("skie")
InMyArea("skie")
!StateCheck("skie",CD_STATE_NOTVALID)
PartyHasItem("_MISC78")
~ THEN DO ~SetGlobal("X#SkieBill","GLOBAL",1)~ EXTERN ~_SKIEJ~ 48
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #82045 /* ~Sorry, only those with invitations are allowed to enter.~ */
  IF ~~ THEN EXIT
  IF ~Global("X#SkieBill2","GLOBAL",0)
InParty("skie")
InMyArea("skie")
!StateCheck("skie",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SkieBill2","GLOBAL",1)~ EXTERN ~_SKIEJ~ 57
END

IF ~~ THEN BEGIN 4 // from:
  SAY #98811 /* ~That is immaterial. She has an invitation.~ */
  IF ~~ THEN DO ~OpenDoor("door0108")
~ EXIT
END

IF ~~ THEN BEGIN 5 // from:
  SAY #98823 /* ~Hey, kid, you took a smack to the head? Entar Silvershield is dead! That name carries no weight anymore, so take your stupid conspiracy theories and get lost!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from:
  SAY #98823 /* ~Hey, kid, you took a smack to the head? Entar Silvershield is dead! That name carries no weight anymore, so take your stupid conspiracy theories and get lost!~ */
  IF ~~ THEN EXIT
END
