BEGIN ~USZACKJ~

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

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",1)~ THEN BEGIN 1
  SAY @40889
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ1","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USGEOF)")~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ1","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXTERN ~USGEOFJ~ 78
END

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",2)~ THEN BEGIN 2
  SAY @40891
  IF ~~ THEN REPLY @40892 DO ~SetGlobal("DIDBANTERUSZACKJ2","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 3
  IF ~~ THEN REPLY @40893 DO ~SetGlobal("DIDBANTERUSZACKJ2","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 5
  IF ~~ THEN REPLY @40894 DO ~SetGlobal("DIDBANTERUSZACKJ2","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 6
END

IF ~~ THEN BEGIN 3
  SAY @40895
  IF ~~ THEN GOTO 4
END

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

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

IF ~~ THEN BEGIN 6
  SAY @40898
  IF ~~ THEN GOTO 7
END

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

IF ~~ THEN BEGIN 8
  SAY @40912
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 9
  SAY @40913
  IF ~~ THEN EXTERN ~USEMMAJ~ 67
END

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",3)~ THEN BEGIN 10
  SAY @40917
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ3","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXTERN ~USXHAAJ~ 6
END

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

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",4)~ THEN BEGIN 12
  SAY @40920
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ4","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXTERN ~USXHAAJ~ 7
END

IF ~~ THEN BEGIN 13
  SAY @40922
  IF ~~ THEN EXTERN ~USXHAAJ~ 8
END

IF ~~ THEN BEGIN 14
  SAY @40924
  IF ~~ THEN EXTERN ~USXHAAJ~ 9
END

IF ~~ THEN BEGIN 15
  SAY @40926
  IF ~~ THEN DO ~ActionOverride("USXHAA",ApplySpellRES("USDDAM01","USZACK"))~ EXTERN ~USXHAAJ~ 10
END

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

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",5)~ THEN BEGIN 17
  SAY @40935
  IF ~Gender(Protagonist,MALE)
CheckStatLT(Protagonist,5,RESISTCOLD)~ THEN REPLY @40936 DO ~SetGlobal("DIDBANTERUSZACKJ5","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 18
  IF ~Or(2)
  LevelInClassGT(Protagonist,4,MAGE)
  LevelInClassGT(Protagonist,4,SORCERER)~ THEN REPLY @40937 DO ~SetGlobal("DIDBANTERUSZACKJ5","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 22
  IF ~~ THEN REPLY @40938 DO ~SetGlobal("DIDBANTERUSZACKJ5","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 23
  IF ~~ THEN REPLY @40939 DO ~SetGlobal("DIDBANTERUSZACKJ5","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 26
  IF ~~ THEN REPLY @40940 DO ~SetGlobal("DIDBANTERUSZACKJ5","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 22
  IF ~~ THEN REPLY @40941 DO ~SetGlobal("DIDBANTERUSZACKJ5","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 31
END

IF ~~ THEN BEGIN 18
  SAY @40942
  IF ~~ THEN REPLY @40943 GOTO 19
  IF ~~ THEN REPLY @40944 GOTO 20
  IF ~~ THEN REPLY @40945 GOTO 21
END

IF ~~ THEN BEGIN 19
  SAY @40946
  IF ~~ THEN EXIT
END

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

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

IF ~~ THEN BEGIN 22
  SAY @40949
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 23
  SAY @40950
  IF ~~ THEN GOTO 24
END

IF ~~ THEN BEGIN 24
  SAY @40951
  IF ~~ THEN REPLY @40952 GOTO 25
END

IF ~~ THEN BEGIN 25
  SAY @40953
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 26
  SAY @40954
  IF ~~ THEN REPLY @40955 GOTO 27
  IF ~~ THEN REPLY @40956 GOTO 30
  IF ~~ THEN REPLY @40957 EXIT
END

IF ~~ THEN BEGIN 27
  SAY @40958
  IF ~~ THEN REPLY @40959 GOTO 28
  IF ~~ THEN REPLY @40960 GOTO 29
END

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

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

IF ~~ THEN BEGIN 30
  SAY @40964
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 31
  SAY @40965
  IF ~~ THEN REPLY @40966 GOTO 32
  IF ~~ THEN REPLY @40967 EXIT
  IF ~~ THEN REPLY @40968 GOTO 33
END

IF ~~ THEN BEGIN 32
  SAY @40969
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 33
  SAY @40970
  IF ~~ THEN REPLY @40971 GOTO 27
  IF ~~ THEN REPLY @40972 GOTO 30
  IF ~~ THEN REPLY @40973 EXIT
END

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",6)~ THEN BEGIN 34
  SAY @40986
    IF ~~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ6","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 35
END

IF ~~ THEN BEGIN 35
  SAY @40963
  IF ~~ THEN EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USXHAA)")~ THEN EXTERN ~USXHAAJ~ 15
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN EXTERN ~USVUNAJ~ 35
END

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",7)~ THEN BEGIN 36
  SAY @41041
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")~ THEN REPLY @41043 DO ~SetGlobal("DIDBANTERUSZACKJ7","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 37
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")
Or(3)
  LevelInClassGT(Protagonist,0,MAGE)
  LevelInClassGT(Protagonist,0,SORCERER)
  LevelInClassGT(Protagonist,0,ROGUE)~ THEN REPLY @41044 DO ~SetGlobal("DIDBANTERUSZACKJ7","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 43
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")~ THEN REPLY @41045 DO ~SetGlobal("DIDBANTERUSZACKJ7","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 44
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")
Global("Viciscamera_Dead","GLOBAL",1)
Global("Malavon_Dead","GLOBAL",0)~ THEN REPLY @41046 DO ~SetGlobal("DIDBANTERUSZACKJ7","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXIT
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")
Global("Viciscamera_Dead","GLOBAL",0)~ THEN REPLY @41047 DO ~SetGlobal("DIDBANTERUSZACKJ7","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 45
  IF ~!IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")~ THEN REPLY @41048 DO ~SetGlobal("DIDBANTERUSZACKJ7","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 46
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USEMMA)")~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ7","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXTERN ~USEMMAJ~ 75
END

IF ~~ THEN BEGIN 37
  SAY @41049
  IF ~~ THEN REPLY @41050 GOTO 38
  IF ~~ THEN REPLY @41051 GOTO 38
  IF ~~ THEN REPLY @41052 GOTO 39
  IF ~~ THEN REPLY @41053 GOTO 40
  IF ~~ THEN REPLY @41054 GOTO 41
END

IF ~~ THEN BEGIN 38
  SAY @41055
  IF ~~ THEN REPLY @41056 EXIT
  IF ~~ THEN REPLY @41057 EXIT
END

IF ~~ THEN BEGIN 39
  SAY @41058
  IF ~~ THEN GOTO 40
END

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

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

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

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

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

IF ~~ THEN BEGIN 45
  SAY @41064
  IF ~~ THEN EXIT
END

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

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",8)~ THEN BEGIN 47
  SAY @41066
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ8","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USVUNA)")~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ8","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXTERN ~USVUNAJ~ 43
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USREIG)")~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ8","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXTERN ~USREIGJ~ 109
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USSERS)")~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ8","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXTERN ~USSERSJ~ 0
END

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",9)~ THEN BEGIN 48
  SAY @41075
    IF ~~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ9","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USXHAA)")~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ9","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXTERN ~USXHAAJ~ 20
END

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",10)~ THEN BEGIN 49
  SAY @41114
    IF ~~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ10","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXIT
END

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",11)~ THEN BEGIN 50
  SAY @41198
    IF ~~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ11","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXIT
END

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",12)~ THEN BEGIN 51
  SAY @41199
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ12","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXIT
  IF ~IEex_LuaTrigger("return IEex_IfValidForPartyDialogue(USPAIR)")~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ12","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXTERN ~USPAIRJ~ 18
END

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",13)~ THEN BEGIN 52
  SAY @41287
  IF ~~ THEN REPLY @41288 DO ~SetGlobal("DIDBANTERUSZACKJ13","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 53
  IF ~CheckSkillGT(Protagonist,14,Knowledge_Arcana)~ THEN REPLY @41289 DO ~SetGlobal("DIDBANTERUSZACKJ13","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 54
  IF ~CheckSkillGT(Protagonist,14,Knowledge_Arcana)~ THEN REPLY @41290 DO ~SetGlobal("DIDBANTERUSZACKJ13","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 55
END

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

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

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

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",14)~ THEN BEGIN 56
  SAY @41317
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ14","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXTERN ~USVREKJ~ 44
END

IF ~~ THEN BEGIN 57
  SAY @41319
  IF ~~ THEN EXTERN ~USVREKJ~ 45
END

IF ~~ THEN BEGIN 58
  SAY @41321
  IF ~~ THEN EXTERN ~USVREKJ~ 46
END

IF ~~ THEN BEGIN 59
  SAY @41323
  IF ~~ THEN EXTERN ~USVREKJ~ 47
END

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

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",15)~ THEN BEGIN 61
  SAY @41326
  IF ~~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ15","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXTERN ~USVEIRJ~ 28
END

IF ~~ THEN BEGIN 62
  SAY @41328
  IF ~~ THEN EXTERN ~USVEIRJ~ 29
END

IF ~~ THEN BEGIN 63
  SAY @41330
  IF ~~ THEN EXIT
END

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",16)~ THEN BEGIN 64
  SAY @41385
  IF ~~ THEN REPLY @41386 DO ~SetGlobal("DIDBANTERUSZACKJ16","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 66
  IF ~~ THEN REPLY @41387 DO ~SetGlobal("DIDBANTERUSZACKJ16","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 67
  IF ~~ THEN REPLY @41388 DO ~SetGlobal("DIDBANTERUSZACKJ16","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 68
  IF ~CheckSkillGT(Protagonist,7,Knowledge_Arcana)~ THEN REPLY @41389 DO ~SetGlobal("DIDBANTERUSZACKJ16","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ GOTO 65
END

IF ~~ THEN BEGIN 65
  SAY @41390
  IF ~~ THEN REPLY @41391 GOTO 73
  IF ~CheckSkillGT(Protagonist,14,Knowledge_Arcana)~ THEN REPLY @41392 GOTO 76
END

IF ~~ THEN BEGIN 66
  SAY @41393
  IF ~~ THEN REPLY @41394 GOTO 73
END

IF ~~ THEN BEGIN 67
  SAY @41395
  IF ~~ THEN REPLY @41394 GOTO 73
END

IF ~~ THEN BEGIN 68
  SAY @41396
  IF ~~ THEN REPLY @41397 GOTO 69
  IF ~~ THEN REPLY @41398 GOTO 70
  IF ~~ THEN REPLY @41399 GOTO 71
END

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

IF ~~ THEN BEGIN 70
  SAY @41401
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 71
  SAY @41402
  IF ~~ THEN REPLY @41403 GOTO 72
  IF ~~ THEN REPLY @41404 GOTO 72
END

IF ~~ THEN BEGIN 72
  SAY @41405
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 73
  SAY @41406
  IF ~~ THEN REPLY @41407 GOTO 74
  IF ~~ THEN REPLY @41408 EXIT
  IF ~~ THEN REPLY @41409 GOTO 75
END

IF ~~ THEN BEGIN 74
  SAY @41410
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 75
  SAY @41411
  IF ~~ THEN REPLY @41397 GOTO 69
  IF ~~ THEN REPLY @41398 GOTO 70
  IF ~~ THEN REPLY @41399 GOTO 71
END

IF ~~ THEN BEGIN 76
  SAY @41412
  IF ~~ THEN REPLY @41413 EXIT
END

IF ~InParty(Myself)
Global("BANTERUSZACKJ","GLOBAL",17)~ THEN BEGIN 77
  SAY @41566
    IF ~~ THEN DO ~SetGlobal("DIDBANTERUSZACKJ17","GLOBAL",1)
SetGlobal("BANTERUSZACKJ","GLOBAL",0)~ EXIT
END