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

BEGIN ~BILL~

IF ~  True()
~ THEN BEGIN 0 // from:
  SAY #20583 /* ~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 #20584 /* ~We don't have invitations, sorry for bothering you.~ */ GOTO 1
  IF ~  PartyHasItem("MISC78")
~ THEN REPLY #20585 /* ~Here are the invitations! Could you let us in now? We're in a hurry.~ */ GOTO 2
  IF ~~ THEN REPLY #20586 /* ~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 #20587 /* ~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~ 61
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #20588 /* ~Don't be so impatient! Let's take a look at these invitations. Hmmm... 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~ 53
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #20589 /* ~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~ 62
END

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

IF ~~ THEN BEGIN 5 // from:
  SAY #45470 /* ~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 #45470 /* ~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
