BEGIN ~USSERSJ~

IF ~~ THEN BEGIN 0
  SAY @41067
  IF ~~ THEN EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN EXTERN ~USVUNAJ~ 43
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN EXTERN ~USREIGJ~ 109
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USPAIR)")~ THEN EXTERN ~USPAIRJ~ 11
END

IF ~InParty(Myself)
Global("BANTERUSSERSJ","GLOBAL",1)~ THEN BEGIN 1
  SAY @41074
    IF ~~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ1","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USXHAA)")~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ1","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USXHAAJ~ 20
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USZACK)")~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ1","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USZACKJ~ 48
END

IF ~InParty(Myself)
Global("BANTERUSSERSJ","GLOBAL",2)~ THEN BEGIN 2
  SAY @41112
    IF ~~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ2","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USZACK)")~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ2","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USZACKJ~ 49
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USPAIR)")~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ2","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USPAIRJ~ 16
END

IF ~InParty(Myself)
Global("BANTERUSSERSJ","GLOBAL",3)~ THEN BEGIN 3
  SAY @41147
    IF ~~ THEN REPLY @41148 DO ~SetGlobal("DIDBANTERUSSERSJ3","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ GOTO 4
  IF ~~ THEN REPLY @41149 DO ~SetGlobal("DIDBANTERUSSERSJ3","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ GOTO 5
  IF ~~ THEN REPLY @41150 DO ~SetGlobal("DIDBANTERUSSERSJ3","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ GOTO 6
  IF ~~ THEN REPLY @41151 DO ~SetGlobal("DIDBANTERUSSERSJ3","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ GOTO 7
  IF ~~ THEN REPLY @41152 DO ~SetGlobal("DIDBANTERUSSERSJ3","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ GOTO 8
END

IF ~~ THEN BEGIN 4
  SAY @41153
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5
  SAY @41154
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6
  SAY @41155
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7
  SAY @41156
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8
  SAY @41157
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSSERSJ","GLOBAL",4)~ THEN BEGIN 9
  SAY @41196
  IF ~Global("US_OJAIHA_DIPLOMACY","GLOBAL",0)~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ4","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ GOTO 10
  IF ~Global("US_OJAIHA_DIPLOMACY","GLOBAL",1)~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ4","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ GOTO 11
END

IF ~~ THEN BEGIN 10
  SAY @41206
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 11
  SAY @41197
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSSERSJ","GLOBAL",5)~ THEN BEGIN 12
  SAY @41380
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ5","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXIT
END

IF ~InParty(Myself)
Global("BANTERUSSERSJ","GLOBAL",6)~ THEN BEGIN 13
  SAY @41299
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ6","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ6","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USEMMAJ~ 80
END

IF ~~ THEN BEGIN 14
  SAY @41301
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSSERSJ","GLOBAL",7)~ THEN BEGIN 15
  SAY @41347
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ7","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USREIGJ~ 151
END

IF ~~ THEN BEGIN 16
  SAY @41349
  IF ~~ THEN EXTERN ~USREIGJ~ 152
END

IF ~~ THEN BEGIN 17
  SAY @41352
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSSERSJ","GLOBAL",8)~ THEN BEGIN 18
  SAY @41504
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ8","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ8","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USEMMAJ~ 85
END

IF ~InParty(Myself)
Global("BANTERUSSERSJ","GLOBAL",9)~ THEN BEGIN 19
  SAY @41551
  IF ~Or(2)
LevelInClassGT(Protagonist,0,MONK)
CheckStatGT(Protagonist,17,WIS)~ THEN REPLY @41552 DO ~SetGlobal("DIDBANTERUSSERSJ9","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ GOTO 20
  IF ~~ THEN REPLY @41553 DO ~SetGlobal("DIDBANTERUSSERSJ9","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ GOTO 21
  IF ~!Alignment(Protagonist,MASK_EVIL)
!Kit(Protagonist,MONK_DARK_MOON)~ THEN REPLY @41554 DO ~SetGlobal("DIDBANTERUSSERSJ9","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ GOTO 20
END

IF ~~ THEN BEGIN 20
  SAY @41555
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 21
  SAY @41556
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSSERSJ","GLOBAL",10)~ THEN BEGIN 22
  SAY @41560
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ10","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USZACK)")~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ10","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USZACKJ~ 77
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVEIR)")~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ10","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USVEIRJ~ 53
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVREK)")~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ10","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USVREKJ~ 48
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ10","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USEMMAJ~ 93
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ10","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USVUNAJ~ 99
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ10","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXTERN ~USREIGJ~ 158
END

IF ~~ THEN BEGIN 23
  SAY @41584
  IF ~~ THEN EXTERN ~65IYTXM~ 2
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN EXTERN ~USVUNAJ~ 100
END

IF ~InParty(Myself)
Global("BANTERUSSERSJ","GLOBAL",11)~ THEN BEGIN 24
  SAY @41570
  IF ~Global("US_Ask_Sersa_11_1","GLOBAL",0)~ THEN REPLY @41571 DO ~SetGlobal("DIDBANTERUSSERSJ11","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)
SetGlobal("US_Ask_Sersa_11_1","GLOBAL",1)~ GOTO 25
  IF ~Global("US_Ask_Sersa_11_2","GLOBAL",0)~ THEN REPLY @41572 DO ~SetGlobal("DIDBANTERUSSERSJ11","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)
SetGlobal("US_Ask_Sersa_11_2","GLOBAL",1)~ GOTO 27
  IF ~Global("US_Ask_Sersa_11_3","GLOBAL",0)~ THEN REPLY @41573 DO ~SetGlobal("DIDBANTERUSSERSJ11","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)
SetGlobal("US_Ask_Sersa_11_3","GLOBAL",1)~ GOTO 28
  IF ~~ THEN REPLY @41574 DO ~SetGlobal("DIDBANTERUSSERSJ11","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ EXIT
END

IF ~~ THEN BEGIN 25
  SAY @41575
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26
  SAY @41576
  IF ~Global("US_Ask_Sersa_11_1","GLOBAL",0)~ THEN REPLY @41571 DO ~SetGlobal("US_Ask_Sersa_11_1","GLOBAL",1)~ GOTO 25
  IF ~Global("US_Ask_Sersa_11_2","GLOBAL",0)~ THEN REPLY @41572 DO ~SetGlobal("US_Ask_Sersa_11_2","GLOBAL",1)~ GOTO 27
  IF ~Global("US_Ask_Sersa_11_3","GLOBAL",0)~ THEN REPLY @41573 DO ~SetGlobal("US_Ask_Sersa_11_3","GLOBAL",1)~ GOTO 28
  IF ~~ THEN REPLY @41574 EXIT
END

IF ~~ THEN BEGIN 27
  SAY @41577
  IF ~Global("US_Ask_Sersa_11_1","GLOBAL",0)~ THEN REPLY @41571 DO ~SetGlobal("US_Ask_Sersa_11_1","GLOBAL",1)~ GOTO 25
  IF ~Global("US_Ask_Sersa_11_2","GLOBAL",0)~ THEN REPLY @41572 DO ~SetGlobal("US_Ask_Sersa_11_2","GLOBAL",1)~ GOTO 27
  IF ~Global("US_Ask_Sersa_11_3","GLOBAL",0)~ THEN REPLY @41573 DO ~SetGlobal("US_Ask_Sersa_11_3","GLOBAL",1)~ GOTO 28
  IF ~~ THEN REPLY @41574 EXIT
END

IF ~~ THEN BEGIN 28
  SAY @41578
  IF ~~ THEN GOTO 29
END

IF ~~ THEN BEGIN 29
  SAY @41579
  IF ~~ THEN GOTO 30
END

IF ~~ THEN BEGIN 30
  SAY @41580
  IF ~~ THEN GOTO 31
END

IF ~~ THEN BEGIN 31
  SAY @41581
  IF ~~ THEN JOURNAL @41604 GOTO 32
END

IF ~~ THEN BEGIN 32
  SAY @41582
  IF ~Global("US_Ask_Sersa_11_1","GLOBAL",0)~ THEN REPLY @41571 DO ~SetGlobal("US_Ask_Sersa_11_1","GLOBAL",1)~ GOTO 25
  IF ~Global("US_Ask_Sersa_11_2","GLOBAL",0)~ THEN REPLY @41572 DO ~SetGlobal("US_Ask_Sersa_11_2","GLOBAL",1)~ GOTO 27
  IF ~Global("US_Ask_Sersa_11_3","GLOBAL",0)~ THEN REPLY @41573 DO ~SetGlobal("US_Ask_Sersa_11_3","GLOBAL",1)~ GOTO 28
  IF ~~ THEN REPLY @41574 EXIT
END

IF ~InParty(Myself)
Global("BANTERUSSERSJ","GLOBAL",12)~ THEN BEGIN 33
  SAY @41614
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSSERSJ12","GLOBAL",1)
SetGlobal("BANTERUSSERSJ","GLOBAL",0)~ GOTO 34
END

IF ~~ THEN BEGIN 34
  SAY @41615
  IF ~~ THEN GOTO 35
END

IF ~~ THEN BEGIN 35
  SAY @41616
  IF ~~ THEN JOURNAL @41619 EXIT
END