BEGIN ~USEMMAJ~

IF ~~ THEN BEGIN 0
  SAY @40307
  IF ~~ THEN EXTERN ~USREIGJ~ 30
  IF ~InParty("USVUNA")
See("USVUNA",0)
!StateCheck("USVUNA", EX_NO_DIALOGUE)~ THEN EXTERN ~USVUNAJ~ 0
END

IF ~~ THEN BEGIN 1
  SAY @40499
  IF ~~ THEN EXTERN ~USGEOFJ~ 45
END

IF ~~ THEN BEGIN 2
  SAY @40501
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3
  SAY @40502
  IF ~~ THEN REPLY @40503 GOTO 4
  IF ~~ THEN REPLY @40504 GOTO 8
  IF ~~ THEN REPLY @40505 GOTO 9
  IF ~~ THEN REPLY @40506 GOTO 10
END

IF ~~ THEN BEGIN 4
  SAY @40507
  IF ~~ THEN REPLY @40508 EXIT
  IF ~~ THEN REPLY @40509 GOTO 5
  IF ~~ THEN REPLY @40510 GOTO 7
END

IF ~~ THEN BEGIN 5
  SAY @40511
  IF ~~ THEN REPLY @40512 GOTO 6
  IF ~~ THEN REPLY @40513 GOTO 7
END

IF ~~ THEN BEGIN 6
  SAY @40514
  IF ~~ THEN REPLY @40515 EXIT
  IF ~~ THEN REPLY @40516 EXIT
END

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

IF ~~ THEN BEGIN 8
  SAY @40518
  IF ~~ THEN REPLY @40508 EXIT
  IF ~~ THEN REPLY @40509 GOTO 5
  IF ~~ THEN REPLY @40510 GOTO 7
END

IF ~~ THEN BEGIN 9
  SAY @40519
  IF ~~ THEN REPLY @40520 EXIT
  IF ~~ THEN REPLY @40510 GOTO 7
END

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

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",1)~ THEN BEGIN 11
  SAY @40569
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN REPLY @40571 DO ~SetGlobal("DIDBANTERUSEMMAJ1","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USGEOFJ~ 66
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN REPLY @40571 DO ~SetGlobal("DIDBANTERUSEMMAJ1","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 12
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN REPLY @40572 DO ~SetGlobal("DIDBANTERUSEMMAJ1","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USGEOFJ~ 71
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")
IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN REPLY @40572 DO ~SetGlobal("DIDBANTERUSEMMAJ1","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USREIGJ~ 80
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN REPLY @40573 DO ~SetGlobal("DIDBANTERUSEMMAJ1","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN REPLY @40574 DO ~SetGlobal("DIDBANTERUSEMMAJ1","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USGEOFJ~ 72
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN REPLY @40574 DO ~SetGlobal("DIDBANTERUSEMMAJ1","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN REPLY @40575 DO ~SetGlobal("DIDBANTERUSEMMAJ1","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 18
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN REPLY @40576 DO ~SetGlobal("DIDBANTERUSEMMAJ1","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 19
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ1","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USVUNAJ~ 3
END

IF ~~ THEN BEGIN 12
  SAY @40616
  IF ~~ THEN REPLY @40617 GOTO 13
  IF ~~ THEN REPLY @40618 GOTO 17
  IF ~~ THEN REPLY @40619 EXIT
END

IF ~~ THEN BEGIN 13
  SAY @40620
  IF ~~ THEN REPLY @40621 GOTO 14
  IF ~~ THEN REPLY @40622 GOTO 15
  IF ~~ THEN REPLY @40623 GOTO 16
END

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

IF ~~ THEN BEGIN 15
  SAY @40625
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 16
  SAY @40626
  IF ~~ THEN EXIT
END

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

IF ~~ THEN BEGIN 18
  SAY @40646
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 19
  SAY @40653
  IF ~~ THEN REPLY @40621 GOTO 14
  IF ~~ THEN REPLY @40622 GOTO 15
  IF ~~ THEN REPLY @40623 GOTO 16
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",2)~ THEN BEGIN 20
  SAY @40736
  IF ~~ THEN REPLY @40737 DO ~SetGlobal("DIDBANTERUSEMMAJ2","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 22
  IF ~~ THEN REPLY @40738 DO ~SetGlobal("DIDBANTERUSEMMAJ2","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 22
  IF ~~ THEN REPLY @40739 DO ~SetGlobal("DIDBANTERUSEMMAJ2","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 23
  IF ~~ THEN REPLY @40740 DO ~SetGlobal("DIDBANTERUSEMMAJ2","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 21
  IF ~~ THEN REPLY @40741 DO ~SetGlobal("DIDBANTERUSEMMAJ2","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 24
END

IF ~~ THEN BEGIN 21
  SAY @40742
  IF ~~ THEN GOTO 22
END

IF ~~ THEN BEGIN 22
  SAY @40743
  IF ~~ THEN REPLY @40744 GOTO 25
  IF ~~ THEN REPLY @40745 GOTO 30
  IF ~~ THEN REPLY @40746 GOTO 44
END

IF ~~ THEN BEGIN 23
  SAY @40747
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 24
  SAY @40748
  IF ~~ THEN REPLY @40749 GOTO 26
  IF ~~ THEN REPLY @40750 GOTO 27
  IF ~~ THEN REPLY @40751 GOTO 28
  IF ~~ THEN REPLY @40752 GOTO 29
END

IF ~~ THEN BEGIN 25
  SAY @40753
  IF ~~ THEN REPLY @40749 GOTO 26
  IF ~~ THEN REPLY @40750 GOTO 27
  IF ~~ THEN REPLY @40751 GOTO 28
  IF ~~ THEN REPLY @40752 GOTO 29
END

IF ~~ THEN BEGIN 26
  SAY @40754
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 27
  SAY @40755
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 28
  SAY @40756
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 29
  SAY @40757
  IF ~~ THEN EXIT
END

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

IF ~~ THEN BEGIN 31
  SAY @40759
  IF ~~ THEN REPLY @40760 GOTO 32
  IF ~~ THEN REPLY @40761 GOTO 32
  IF ~~ THEN REPLY @40762 GOTO 43
  IF ~~ THEN REPLY @40763 GOTO 32
END

IF ~~ THEN BEGIN 32
  SAY @40764
  IF ~LevelInClass(Protagonist,0,PALADIN)~ THEN REPLY @40765 GOTO 33
  IF ~LevelInClass(Protagonist,0,PALADIN)
LevelInClass(Protagonist,0,MONK)
!Alignment(Protagonist,MASK_EVIL)~ THEN REPLY @40766 GOTO 38
  IF ~LevelInClass(Protagonist,0,PALADIN)
LevelInClass(Protagonist,0,MONK)
Alignment(Protagonist,MASK_EVIL)~ THEN REPLY @40767 GOTO 39
  IF ~Or(2)
  Alignment(Protagonist,MASK_GOOD)
  LevelInClassGT(Protagonist,0,PALADIN)~ THEN REPLY @40768 GOTO 40
  IF ~~ THEN REPLY @40769 GOTO 41
  IF ~~ THEN REPLY @40770 GOTO 42
END

IF ~~ THEN BEGIN 33
  SAY @40771
  IF ~~ THEN REPLY @40772 GOTO 34
  IF ~~ THEN REPLY @40773 GOTO 35
  IF ~~ THEN REPLY @40774 GOTO 36
  IF ~~ THEN REPLY @40775 GOTO 37
END

IF ~~ THEN BEGIN 34
  SAY @40776
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 35
  SAY @40777
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 36
  SAY @40778
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 37
  SAY @40779
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 38
  SAY @40780
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 39
  SAY @40781
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 40
  SAY @40782
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 41
  SAY @40783
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 42
  SAY @40784
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 43
  SAY @40785
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 44
  SAY @40786
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",3)~ THEN BEGIN 45
  SAY @40787
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN REPLY @40789 DO ~SetGlobal("DIDBANTERUSEMMAJ3","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 46
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN REPLY @40790 DO ~SetGlobal("DIDBANTERUSEMMAJ3","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 47
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")
CheckStatGT(Protagonist,4,MOVESILENTLY)
CheckStatGT(Protagonist,4,HIDEINSHADOWS)~ THEN REPLY @40792 DO ~SetGlobal("DIDBANTERUSEMMAJ3","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 48
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ3","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USREIGJ~ 87
END

IF ~~ THEN BEGIN 46
  SAY @40793
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 47
  SAY @40794
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 48
  SAY @40795
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",4)~ THEN BEGIN 49
  SAY @40813
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVREK)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN REPLY @40817 DO ~SetGlobal("DIDBANTERUSEMMAJ4","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVREK)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN REPLY @40819 DO ~SetGlobal("DIDBANTERUSEMMAJ4","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVREK)")
!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")
CheckSkillGT(Protagonist,9,Wilderness_Lore)~ THEN REPLY @40820 DO ~SetGlobal("DIDBANTERUSEMMAJ4","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ4","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USREIGJ~ 98
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVREK)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ4","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USVREKJ~ 10
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",5)~ THEN BEGIN 50
  SAY @40860
  IF ~~ THEN REPLY @40861 DO ~SetGlobal("DIDBANTERUSEMMAJ5","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 51
  IF ~~ THEN REPLY @40862 DO ~SetGlobal("DIDBANTERUSEMMAJ5","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 56
  IF ~~ THEN REPLY @40863 DO ~SetGlobal("DIDBANTERUSEMMAJ5","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 57
  IF ~~ THEN REPLY @40864 DO ~SetGlobal("DIDBANTERUSEMMAJ5","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 61
END

IF ~~ THEN BEGIN 51
  SAY @40865
  IF ~~ THEN GOTO 52
END

IF ~~ THEN BEGIN 52
  SAY @40866
  IF ~~ THEN REPLY @40867 GOTO 53
  IF ~~ THEN REPLY @40868 GOTO 54
  IF ~~ THEN REPLY @40869 GOTO 55
END

IF ~~ THEN BEGIN 53
  SAY @40870
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 54
  SAY @40871
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 55
  SAY @40872
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 56
  SAY @40873
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 57
  SAY @40874
  IF ~~ THEN REPLY @40875 GOTO 58
  IF ~~ THEN REPLY @40876 GOTO 59
  IF ~~ THEN REPLY @40877 GOTO 60
END

IF ~~ THEN BEGIN 58
  SAY @40878
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 59
  SAY @40879
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 60
  SAY @40880
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 61
  SAY @40881
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",6)~ THEN BEGIN 62
  SAY @40885
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ6","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ6","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USGEOFJ~ 78
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USZACK)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ6","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USZACKJ~ 1
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVEIR)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ6","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USVEIRJ~ 21
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",7)~ THEN BEGIN 63
  SAY @40900
  IF ~~ THEN REPLY @40901 DO ~SetGlobal("DIDBANTERUSEMMAJ7","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN REPLY @40902 DO ~SetGlobal("DIDBANTERUSEMMAJ7","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USVUNAJ~ 33
  IF ~~ THEN REPLY @40903 DO ~SetGlobal("DIDBANTERUSEMMAJ7","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 65
  IF ~~ THEN REPLY @40904 DO ~SetGlobal("DIDBANTERUSEMMAJ7","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 66
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USZACK)")~ THEN REPLY @40905 DO ~SetGlobal("DIDBANTERUSEMMAJ7","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USZACKJ~ 8
  IF ~~ THEN REPLY @40906 DO ~SetGlobal("DIDBANTERUSEMMAJ7","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 68
  IF ~~ THEN REPLY @40907 DO ~SetGlobal("DIDBANTERUSEMMAJ7","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 69
END

IF ~~ THEN BEGIN 64
  SAY @40909
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 65
  SAY @40910
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 66
  SAY @40911
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 67
  SAY @40914
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 68
  SAY @40915
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 69
  SAY @40916
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",8)~ THEN BEGIN 70
  SAY @40978
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ8","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ8","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USVUNAJ~ 34
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USXHAA)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ8","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USXHAAJ~ 14
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USPAIR)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ8","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USPAIRJ~ 0
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",9)~ THEN BEGIN 71
  SAY @40985
    IF ~~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ9","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USXHAA)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ9","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USXHAAJ~ 15
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ9","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USVUNAJ~ 35
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USZACK)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ9","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USZACKJ~ 34
END

IF ~~ THEN BEGIN 72
  SAY @41025
  IF ~~ THEN EXTERN ~USVUNAJ~ 38
END

IF ~~ THEN BEGIN 73
  SAY @41027
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 74
  SAY @41022
  IF ~~ THEN DO ~ChangeEnemyAlly("11_51Dargab_01",ENEMY)
SetGlobal("TEAM_11","MYAREA",1)
SetGlobal("TEAM_13","MYAREA",1)
SetGlobal("TEAM_14","MYAREA",1)
SetGlobal("US_Emma_Attacked_Duergar","GLOBAL",1)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN EXTERN ~USVUNAJ~ 42
END

IF ~~ THEN BEGIN 75
  SAY @41042
  IF ~~ THEN EXTERN ~USZACKJ~ 37
  IF ~Or(3)
  LevelInClassGT(Protagonist,0,MAGE)
  LevelInClassGT(Protagonist,0,SORCERER)
  LevelInClassGT(Protagonist,0,ROGUE)~ THEN REPLY @41044 EXTERN ~USZACKJ~ 43
  IF ~~ THEN REPLY @41045 EXTERN ~USZACKJ~ 44
  IF ~Global("Viciscamera_Dead","GLOBAL",1)
Global("Malavon_Dead","GLOBAL",0)~ THEN REPLY @41046 EXIT
  IF ~Global("Viciscamera_Dead","GLOBAL",0)~ THEN REPLY @41047 EXTERN ~USZACKJ~ 45
  IF ~~ THEN REPLY @41048 EXTERN ~USZACKJ~ 46
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",10)~ THEN BEGIN 76
  SAY @41080
    IF ~Or(3)
  Alignment(Protagonist,MASK_GOOD)
  LevelInClassGT(Protagonist,0,PALADIN)
  LevelInClassGT(Protagonist,0,DRUID)~ THEN REPLY @41081 DO ~SetGlobal("DIDBANTERUSEMMAJ10","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
    IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USPAIR)")~
 THEN REPLY @41082 DO ~SetGlobal("DIDBANTERUSEMMAJ10","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USPAIRJ~ 14
    IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVREK)")~
 THEN REPLY @41084 DO ~SetGlobal("DIDBANTERUSEMMAJ10","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
    IF ~LevelInClassGT(Protagonist,0,DRUID)~ THEN REPLY @41085 DO ~SetGlobal("DIDBANTERUSEMMAJ10","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
    IF ~~ THEN REPLY @41086 DO ~SetGlobal("DIDBANTERUSEMMAJ10","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",11)~ THEN BEGIN 77
  SAY @41145
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ11","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ11","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USVUNAJ~ 44
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",12)~ THEN BEGIN 78
  SAY @41193
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ12","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USSERS)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ12","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USSERSJ~ 9
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ12","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USVUNAJ~ 45
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USPAIR)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ12","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USPAIRJ~ 17
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",13)~ THEN BEGIN 79
  SAY @41294
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ13","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ13","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USGEOFJ~ 90
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ13","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USVUNAJ~ 64
END

IF ~~ THEN BEGIN 80
  SAY @41300
  IF ~~ THEN EXTERN ~USSERSJ~ 14
END

IF ~~ THEN BEGIN 81
  SAY @41376
  IF ~~ THEN EXTERN ~20NEWVRK~ 9
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",14)~ THEN BEGIN 82
  SAY @41381
  IF ~!ClassEx(Protagonist,PALADIN)
!ClassEx(Protagonist,MONK)~ THEN REPLY #36450 DO ~SetGlobal("DIDBANTERUSEMMAJ14","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)
AddXpVar("Level_3_Hard",36407)
TakePartyItem("00SWDL09")
TakePartyItem("USHFSL09")
GiveItemCreate("Misc07", Protagonist, 2000, 0, 0)~ JOURNAL #36405 EXIT
  IF ~!ClassEx(Protagonist,PALADIN)
ClassEx(Protagonist,MONK)~ THEN REPLY #36451 DO ~SetGlobal("DIDBANTERUSEMMAJ14","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)
AddXpVar("Level_3_Hard",36407)
TakePartyItem("00SWDL09")
TakePartyItem("USHFSL09")~ JOURNAL #36405 EXIT
  IF ~ClassEx(Protagonist,PALADIN)
!ClassEx(Protagonist,MONK)~ THEN REPLY #36451 DO ~SetGlobal("DIDBANTERUSEMMAJ14","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)
AddXpVar("Level_3_Hard",36407)
TakePartyItem("00SWDL09")
TakePartyItem("USHFSL09")~ JOURNAL #36405 EXIT
  IF ~Global("SR_Dereth_Freed","GLOBAL",4)
Global("SR_Sabrina_Freed","GLOBAL",4)
GlobalGT("SR_Rescue_Villagers","GLOBAL",3)
!Global("SR_Dereth_Dead","GLOBAL",1)
!Global("SR_Sabrina_Dead","GLOBAL",1)
!Global("SR_Kaitlin_Dead","GLOBAL",1)~ THEN REPLY #36452 DO ~SetGlobal("DIDBANTERUSEMMAJ14","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)
AddXpVar("Level_4_Hard",36408)~ JOURNAL #36406 GOTO 83
END

IF ~~ THEN BEGIN 83
  SAY @41382
  IF ~~ THEN REPLY #36458 EXIT
  IF ~~ THEN REPLY @41383 DO ~TakePartyItem("00SWDL09")
TakePartyItem("USHFSL09")~ GOTO 84
END

IF ~~ THEN BEGIN 84
  SAY @41384
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",15)~ THEN BEGIN 85
  SAY @41505
  IF ~~ THEN REPLY @41506 DO ~SetGlobal("DIDBANTERUSEMMAJ15","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 86
  IF ~~ THEN REPLY @41507 DO ~SetGlobal("DIDBANTERUSEMMAJ15","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 88
  IF ~~ THEN REPLY @41508 DO ~SetGlobal("DIDBANTERUSEMMAJ15","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 89
  IF ~~ THEN REPLY @41509 DO ~SetGlobal("DIDBANTERUSEMMAJ15","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ GOTO 92
END

IF ~~ THEN BEGIN 86
  SAY @41510
  IF ~~ THEN GOTO 87
END

IF ~~ THEN BEGIN 87
  SAY @41511
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 88
  SAY @41512
  IF ~~ THEN GOTO 87
END

IF ~~ THEN BEGIN 89
  SAY @41513
  IF ~~ THEN GOTO 90
END

IF ~~ THEN BEGIN 90
  SAY @41514
  IF ~~ THEN GOTO 91
END

IF ~~ THEN BEGIN 91
  SAY @41515
  IF ~~ THEN GOTO 87
END

IF ~~ THEN BEGIN 92
  SAY @41516
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSEMMAJ","GLOBAL",16)~ THEN BEGIN 93
  SAY @41563
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ16","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USZACK)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ16","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USZACKJ~ 77
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVEIR)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ16","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USVEIRJ~ 53
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVREK)")~ THEN DO ~SetGlobal("DIDBANTERUSEMMAJ16","GLOBAL",1)
SetGlobal("BANTERUSEMMAJ","GLOBAL",0)~ EXTERN ~USVREKJ~ 48
END

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

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

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