BACKUP ~DSotSC/backup~

AUTHOR ~SirBillyBob@gmail.com~

AUTO_TRA ~DSotSC/Language/%s/D~

LANGUAGE
         ~English~
         ~english~
         ~DSotSC/Language/english/setup.tra~

LANGUAGE
         ~Deutsch (translation Weigo and MK)~
         ~german~
         ~DSotSC/Language/german/setup.tra~

LANGUAGE
         ~Polish (translation Black Dragon)~
         ~polish~
         ~DSotSC/Language/polish/setup.tra~

//LANGUAGE
//         ~Russian (translation aVoddle, Alex, Badgert & aerie.ru)~
//         ~russian~
//         ~DSotSC/Language/russian/setup.tra~

BEGIN @0

MKDIR ~DSotSC/over.bak~
COPY_LARGE + ~override~      ~DSotSC/over.bak~

COPY + ~Setup-DSotSC.exe~  ~WeiDU.exe~
COPY + ~chitin.key~        ~DSotSC/chitin.dsc~
COPY_LARGE + ~dialog.tlk~  ~DSotSC/dialog.dsc~

MKDIR ~DSOTSC1~



APPEND ~TOOLTIP.2DA~ ~DSAXE06           15527        15529        -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~DSCLUB01          15527        15529        -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~DSBELT01          12080        -1           -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~DSDAGG01          15529        15527        -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~DSSWD02           66666666        12119        -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~DSTEARS           66666660        12099        -1kkkkkk~


COPY_EXISTING ~TOOLTIP.2DA~ ~override~
 //******** number of items in appended rows ***
 SET present_cols = 4
 //*********************************************
 SET rows=2
 SET rows_prev=0
 SET col_cnt=0
 WHILE "%rows%">1 BEGIN
   col_cnt = col_cnt + 1
   rows_prev = rows
   COUNT_2DA_ROWS col_cnt rows
 END
 col_cnt = col_cnt - 1
 SET ccc = col_cnt - 1

 SPRINT str_add ""
 FOR(cnt="%present_cols%"; cnt<"%col_cnt%"; cnt+=1) BEGIN
   SPRINT str_add "%str_add%"^"         -1"
 END
 REPLACE_TEXTUALLY ~kkkkkk~ "%str_add%"

 REPLACE ~66666666~ @1339
 REPLACE ~66666660~ @1330

//********************************************************************
//  Spells
//********************************************************************

COPY ~DSOTSC/SPL/SPINDS1.SPL~ ~override~ 
  SAY NAME1 @1

COPY ~DSOTSC/SPL/SPINDS2.SPL~ ~override~ 

COPY ~DSOTSC/SPL/SPINDS3.SPL~ ~override~ 
  SAY NAME1 @2

COPY ~DSotSC/SPL/SPPR145.spl~ ~override~
  SAY NAME1 @3 
  SAY UNIDENTIFIED_DESC @4

COPY ~DSotSC/SPL/SPPR146.spl~ ~override~
  SAY NAME1 @5 
  SAY UNIDENTIFIED_DESC @6 

COPY ~DSotSC/SPL/SPPR147.spl~ ~override~ 
  SAY NAME1 @7
  SAY UNIDENTIFIED_DESC @8

COPY ~DSotSC/SPL/SPPR245.spl~ ~override~
  SAY NAME1 @9 
  SAY UNIDENTIFIED_DESC @10 

COPY ~DSotSC/SPL/SPPR246.spl~ ~override~
  SAY NAME1 @12 
  SAY UNIDENTIFIED_DESC @13 

COPY ~DSotSC/SPL/SPPR247.spl~ ~override~
  SAY NAME1 @14 
  SAY UNIDENTIFIED_DESC @15 

COPY ~DSotSC/SPL/SPPR345.spl~ ~override~
  SAY NAME1 @17 
  SAY UNIDENTIFIED_DESC @18 

COPY ~DSotSC/SPL/SPPR346.spl~ ~override~
  SAY NAME1 @19 
  SAY UNIDENTIFIED_DESC @20 

COPY ~DSotSC/SPL/SPPR347.spl~ ~override~
  SAY UNIDENTIFIED_DESC @21 

COPY ~DSotSC/SPL/SPPR445.spl~ ~override~
  SAY NAME1 @22 
  SAY UNIDENTIFIED_DESC @23

COPY ~DSotSC/SPL/SPPR446.spl~ ~override~
  SAY NAME1 @24 
  SAY UNIDENTIFIED_DESC @25 

COPY ~DSotSC/SPL/SPPR545.spl~ ~override~
  SAY NAME1 @26 
  SAY UNIDENTIFIED_DESC @27 

COPY ~DSotSC/SPL/SPPR546.spl~ ~override~
  SAY UNIDENTIFIED_DESC @28 

COPY ~DSotSC/SPL/SPPR547.spl~ ~override~
  SAY NAME1 @29 
  SAY UNIDENTIFIED_DESC @30 

COPY ~DSotSC/SPL/SPPR548.spl~ ~override~
  SAY NAME1 @31 
  SAY UNIDENTIFIED_DESC @32 

COPY ~DSotSC/SPL/SPPR645.spl~ ~override~
  SAY UNIDENTIFIED_DESC @33 

COPY ~DSotSC/SPL/SPPR646.spl~ ~override~
  SAY UNIDENTIFIED_DESC @34 

COPY ~DSotSC/SPL/SPPR647.spl~ ~override~
  SAY UNIDENTIFIED_DESC @35 

COPY ~DSotSC/SPL/SPPR648.spl~ ~override~
  SAY UNIDENTIFIED_DESC @36 

COPY ~DSotSC/SPL/SPPR649.spl~ ~override~
  SAY NAME1 @37 
  SAY UNIDENTIFIED_DESC @38 

COPY ~DSotSC/SPL/SPPR650.spl~ ~override~
  SAY NAME1 @39 
  SAY UNIDENTIFIED_DESC @40 

COPY ~DSotSC/SPL/SPPR738.spl~ ~override~
  SAY UNIDENTIFIED_DESC @41 

COPY ~DSotSC/SPL/SPPR739.spl~ ~override~
  SAY NAME1 @43 
  SAY UNIDENTIFIED_DESC @44

COPY ~DSotSC/SPL/SPPR740.spl~ ~override~
  SAY NAME1 @45 
  SAY UNIDENTIFIED_DESC @46 

COPY ~DSotSC/SPL/sppr755.spl~ ~override~
  SAY NAME1 @47
  SAY UNIDENTIFIED_DESC @48

COPY ~DSotSC/SPL/SPPR756.spl~ ~override~ 
  SAY NAME1 @49 
  SAY UNIDENTIFIED_DESC @50 

COPY ~DSotSC/SPL/SPPR757.spl~ ~override~
  SAY UNIDENTIFIED_DESC @51 

COPY ~DSotSC/SPL/DSSPWI11.SPL~ ~override~
  SAY NAME1 @52 
  SAY UNIDENTIFIED_DESC @53 

COPY ~DSotSC/SPL/DSSPWI21.SPL~ ~override~
  SAY NAME1 @54
  SAY UNIDENTIFIED_DESC @55 

COPY ~DSotSC/SPL/DSSPWI22.SPL~ ~override~
  SAY NAME1 @56 
  SAY UNIDENTIFIED_DESC @57 

COPY ~DSotSC/SPL/DSSPWI23.SPL~ ~override~
  SAY NAME1 @58 
  SAY UNIDENTIFIED_DESC @59 

COPY ~DSotSC/SPL/DSSPWI31.SPL~ ~override~
  SAY NAME1 @60 
  SAY UNIDENTIFIED_DESC @61 

COPY ~DSotSC/SPL/DSSPWI32.SPL~ ~override~
  SAY NAME1 @62 
  SAY UNIDENTIFIED_DESC @63 

COPY ~DSotSC/spl/DSSPWI34.spl~ ~override~
  SAY UNIDENTIFIED_DESC @64

COPY ~DSotSC/SPL/DSSPWI41.SPL~ ~override~
  SAY NAME1 @65 
  SAY UNIDENTIFIED_DESC @66

COPY ~DSotSC/SPL/DSSPWI42.SPL~ ~override~
  SAY NAME1 @67 
  SAY UNIDENTIFIED_DESC @68 

COPY ~DSotSC/SPL/DSSPWI51.SPL~ ~override~
  SAY NAME1 @69 
  SAY UNIDENTIFIED_DESC @70 

COPY ~DSotSC/SPL/DSSPWI61.SPL~ ~override~
  SAY NAME1 @71 
  SAY UNIDENTIFIED_DESC @72 

COPY ~DSotSC/SPL/DSSPWI62.SPL~ ~override~
  SAY NAME1 @73 
  SAY UNIDENTIFIED_DESC @74 

COPY ~DSotSC/SPL/DSSPWI71.SPL~ ~override~
  SAY NAME1 @77 
  SAY UNIDENTIFIED_DESC @78 

COPY ~DSotSC/SPL/DSSPWI72.SPL~ ~override~
  SAY NAME1 @79 
  SAY UNIDENTIFIED_DESC @80 

COPY ~DSotSC/SPL/DSSPWI73.SPL~ ~override~
  SAY NAME1 @81 
  SAY UNIDENTIFIED_DESC @82 

COPY ~DSotSC/SPL/DSSPWI74.SPL~ ~override~
  SAY NAME1 @83 
  SAY UNIDENTIFIED_DESC @84 

COPY ~DSotSC/SPL/DSSPWI81.SPL~ ~override~
  SAY NAME1 @85 
  SAY UNIDENTIFIED_DESC @86 

COPY ~DSotSC/SPL/DSSPWI82.SPL~ ~override~
  SAY NAME1 @87 
  SAY UNIDENTIFIED_DESC @88 

COPY ~DSotSC/SPL/DSSPWI83.SPL~ ~override~
  SAY NAME1 @89 
  SAY UNIDENTIFIED_DESC @90 

COPY ~DSotSC/SPL/DSSPWI84.SPL~ ~override~
  SAY NAME1 @49 
  SAY UNIDENTIFIED_DESC @91 

COPY ~DSotSC/SPL/DSSPWI85.SPL~ ~override~
  SAY NAME1 @92 
  SAY UNIDENTIFIED_DESC @93 

COPY ~DSotSC/SPL/DSSPWI91.SPL~ ~override~
  SAY NAME1 @94 
  SAY UNIDENTIFIED_DESC @95 

COPY ~DSotSC/SPL/DSSPWI92.SPL~ ~override~
  SAY NAME1 @96 
  SAY UNIDENTIFIED_DESC @97 

COPY ~DSotSC/SPL/DSSPWI93.SPL~ ~override~
  SAY NAME1 @98 
  SAY UNIDENTIFIED_DESC @99 


//********************************************************************
//  Items
//********************************************************************
PRINT @100

// Crowns, helm, etc.

COPY ~DSOTSC/ITM/DSCDRUID.itm~ ~override~
  SAY NAME1 @1000
  SAY NAME2 @1001
  SAY UNIDENTIFIED_DESC @1002
  SAY DESC @1003

COPY ~DSOTSC/ITM/DSCROWN1.itm~ ~override~
  SAY NAME1 @1000
  SAY NAME2 @1004
  SAY UNIDENTIFIED_DESC @1002
  SAY DESC @1005

COPY ~DSOTSC/ITM/DSHAT01.itm~ ~override~
  SAY NAME1 @1006
  SAY NAME2 @1007
  SAY UNIDENTIFIED_DESC @1008
  SAY DESC @1009

COPY ~DSOTSC/ITM/DSTDRUID.itm~ ~override~
  SAY NAME1 @1010
  SAY NAME2 @1011
  SAY UNIDENTIFIED_DESC @1012 
  SAY DESC @1013 

COPY ~DSOTSC/ITM/DSFEHELM.itm~ ~override~
  SAY NAME2 @1015
  SAY DESC @1017

COPY ~DSOTSC/ITM/DSEBHELM.itm~ ~override~ 
  SAY NAME2 @1018
  SAY DESC @1019

COPY ~DSOTSC/ITM/DSCOHELM.itm~ ~override~
  SAY NAME2 @1020
  SAY DESC @1021

COPY ~DSOTSC/ITM/DSCRYHLM.itm~ ~override~ 
  SAY NAME2 @1022
  SAY DESC @1023

COPY ~DSOTSC/ITM/DSSKHELM.itm~ ~override~ 
  SAY NAME2 @1024
  SAY DESC @1026

COPY ~DSOTSC/ITM/DSHELM01.itm~ ~override~ 
  SAY NAME2 @1027
  SAY DESC @1028

// Armor

COPY ~DSOTSC/ITM/DSTHRARM.itm~ ~override~ 
  SAY NAME2 @1030
  SAY DESC @1032

COPY ~DSOTSC/ITM/DSWRKARM.itm~ ~override~ 
  SAY NAME2 @1033
  SAY DESC @1034

COPY ~DSOTSC/ITM/DSFEARM.itm~ ~override~
  SAY NAME2 @1036
  SAY DESC @1038

COPY ~DSOTSC/ITM/DSCOARM.itm~ ~override~
  SAY NAME2 @1039
  SAY DESC @1040

COPY ~DSOTSC/ITM/DSCRYARM.itm~ ~override~ 
  SAY NAME2 @1041
  SAY DESC @1042

COPY ~DSOTSC/ITM/DSEBPLAT.itm~ ~override~ 
  SAY NAME2 @1044
  SAY DESC @1046 

COPY ~DSOTSC/ITM/DSCHAN01.itm~ ~override~

COPY ~DSOTSC/ITM/DSCHAN02.itm~ ~override~
  SAY NAME2 @1052
  SAY DESC @1054

COPY ~DSOTSC/ITM/DSCHAN03.itm~ ~override~
  SAY NAME2 @1055
  SAY DESC @1056

COPY ~DSOTSC/ITM/DSCHAN04.itm~ ~override~
  SAY NAME2 @1057
  SAY DESC @1058

COPY ~DSOTSC/ITM/DSJEARM.itm~ ~override~ 
  SAY NAME2 @1059
  SAY DESC @1060

COPY ~DSOTSC/ITM/DSKORIM.itm~ ~override~ 
  SAY NAME2 @1061
  SAY DESC @1062

COPY ~DSOTSC/ITM/DSCUARM.itm~ ~override~
  SAY NAME2 @1063
  SAY DESC @1064

COPY ~DSOTSC/ITM/DSKEARM.itm~ ~override~ 
  SAY NAME2 @1065
  SAY DESC @1066

COPY ~DSOTSC/ITM/DSLEAT01.itm~ ~override~ 
  SAY NAME1 @1067 
  SAY NAME2 @1068
  SAY UNIDENTIFIED_DESC @1069
  SAY DESC @1070

COPY ~DSOTSC/ITM/DSSKROBE.itm~ ~override~ 
  SAY NAME2 @1072
  SAY DESC @1074

COPY ~DSOTSC/ITM/DSROBESO.itm~ ~override~
  SAY NAME2 @1075
  SAY DESC @1076

COPY ~DSOTSC/ITM/DSROBE02.itm~ ~override~
  SAY NAME2 @1077
  SAY DESC @1078

COPY ~DSOTSC/ITM/DSROBE03.itm~ ~override~
  SAY NAME2 @1079
  SAY DESC @1080

COPY ~DSOTSC/ITM/DSROBE04.itm~ ~override~ 
  SAY NAME2 @1081
  SAY DESC @1082

COPY ~DSOTSC/ITM/DSROBE05.itm~ ~override~
  SAY NAME2 @1083
  SAY DESC @1084

COPY ~DSOTSC/ITM/DSROBE06.itm~ ~override~
  SAY NAME2 @1085
  SAY DESC @1086

COPY ~DSOTSC/ITM/DSROBE07.itm~ ~override~
  SAY NAME2 @1087
  SAY DESC @1088

COPY ~DSOTSC/ITM/DSROBE08.itm~ ~override~
  SAY NAME2 @1089
  SAY DESC @1090

// Belts

COPY ~DSOTSC/ITM/DSBELT01.itm~ ~override~ 
  SAY NAME2 @1092
  SAY DESC @1094

COPY ~DSOTSC/ITM/DSCLCK01.itm~ ~override~ 
  SAY NAME2 @1096
  SAY DESC @1098

COPY ~DSOTSC/ITM/DSCLCK02.itm~ ~override~
  SAY NAME2 @1099
  SAY DESC @1100

COPY ~DSOTSC/ITM/DSCLCK03.itm~ ~override~
  SAY NAME2 @1101
  SAY DESC @1102

COPY ~DSOTSC/ITM/DSCLCK04.itm~ ~override~ 
  SAY NAME2 @1103
  SAY DESC @1104

// Bracers, Gauntlets, Gloves

COPY ~DSOTSC/ITM/DSDRGSKN.itm~ ~override~ 
  SAY NAME2 @1106
  SAY DESC @1108

COPY ~DSOTSC/ITM/DSBRACDX.itm~ ~override~
  SAY NAME2 @1110
  SAY DESC @1112

COPY ~DSOTSC/ITM/DSBRAC01.itm~ ~override~
  SAY NAME2 @1113
  SAY DESC @1114

COPY ~DSOTSC/ITM/DSBRAC02.itm~ ~override~
  SAY NAME2 @1115
  SAY DESC @1116

COPY ~DSOTSC/ITM/DSBRAC03.itm~ ~override~
  SAY NAME2 @1117
  SAY DESC @1118

COPY ~DSOTSC/ITM/DSBRAC04.itm~ ~override~
  SAY NAME2 @1119
  SAY DESC @1120

// Rings

COPY ~DSOTSC/ITM/DSZRNG03.itm~ ~override~
  SAY DESC @1124

COPY ~DSOTSC/ITM/DSRNG01.itm~ ~override~
  SAY NAME2 @1125
  SAY DESC @1126

COPY ~DSOTSC/ITM/DSRNG02.itm~ ~override~
  SAY NAME2 @1127
  SAY DESC @1128

COPY ~DSOTSC/ITM/DSRNG03.itm~ ~override~
  SAY NAME2 @1129
  SAY DESC @1130

COPY ~DSOTSC/ITM/DSRNG04.itm~ ~override~ 
  SAY NAME2 @1129
  SAY DESC @1131

COPY ~DSOTSC/ITM/DSRNG05.itm~ ~override~
  SAY NAME2 @1133
  SAY DESC @1135

COPY ~DSOTSC/ITM/DSRNG06.itm~ ~override~
  SAY NAME2 @1136
  SAY DESC @1137

COPY ~DSOTSC/ITM/DSRNG07.itm~ ~override~
  SAY NAME2 @1138
  SAY DESC @1139

COPY ~DSOTSC/ITM/DSRNG08.itm~ ~override~
  SAY NAME2 @1140
  SAY DESC @1141

COPY ~DSOTSC/ITM/DSBARDR.itm~ ~override~
  SAY NAME2 @1142
  SAY DESC @1143

COPY ~DSOTSC/ITM/DSRNG103.itm~ ~override~ 
  SAY NAME2 @1144
  SAY DESC @1145

COPY ~DSOTSC/ITM/DSRNGFSH.itm~ ~override~ 
  SAY NAME2 @1146
  SAY DESC @1147 

COPY ~DSOTSC/ITM/DSRNGJET.itm~ ~override~
  SAY NAME1 @1148 
  SAY NAME2 @1148 
  SAY UNIDENTIFIED_DESC @1149 
  SAY DESC @1149 

// Misc, books, scrolls, etc

COPY ~DSOTSC/ITM/DSMISC01.itm~ ~override~ 
  SAY UNIDENTIFIED_DESC @1151
  SAY DESC @1151

COPY ~DSOTSC/ITM/DSMISC02.itm~ ~override~ 
  SAY UNIDENTIFIED_DESC @1152
  SAY DESC @1152

COPY ~DSOTSC/ITM/DSMISC03.itm~ ~override~
  SAY UNIDENTIFIED_DESC @1153
  SAY DESC @1153 

COPY ~DSOTSC/ITM/DSMISC04.itm~ ~override~ 
  SAY UNIDENTIFIED_DESC @1154
  SAY DESC @1154

COPY ~DSOTSC/ITM/DSMISC05.itm~ ~override~ 
  SAY NAME1 @1155
  SAY NAME2 @1155 
  SAY UNIDENTIFIED_DESC @1156 
  SAY DESC @1156 

COPY ~DSOTSC/ITM/DSMISC07.itm~ ~override~ 
  SAY NAME1 @1157 
  SAY NAME2 @1157 
  SAY UNIDENTIFIED_DESC @1157 
  SAY DESC @1157

COPY ~DSOTSC/ITM/DSMISC08.itm~ ~override~ 
  SAY NAME1 @1158 
  SAY NAME2 @1158 
  SAY UNIDENTIFIED_DESC @1159 
  SAY DESC @1159

COPY ~DSOTSC/ITM/DSMISC09.itm~ ~override~ 
  SAY NAME1 @1160 
  SAY NAME2 @1160 
  SAY UNIDENTIFIED_DESC @1161 
  SAY DESC @1161

COPY ~DSOTSC/ITM/DSMISC10.itm~ ~override~ 
  SAY NAME1 @1162 
  SAY NAME2 @1162 
  SAY UNIDENTIFIED_DESC @1163 
  SAY DESC @1163

COPY ~DSOTSC/ITM/DSMISC11.itm~ ~override~
  SAY NAME1 @1164 
  SAY NAME2 @1165
  SAY UNIDENTIFIED_DESC @1166 
  SAY DESC @1167

COPY ~DSOTSC/ITM/DSHORN01.itm~ ~override~ 
  SAY NAME2 @1169
  SAY UNIDENTIFIED_DESC @1170
  SAY DESC @1171 

COPY ~DSOTSC/ITM/DSBAG01.itm~ ~override~ 
  SAY UNIDENTIFIED_DESC @1173
  SAY DESC @1173

COPY ~DSOTSC/ITM/DSLUTE01.itm~ ~override~ 
  SAY NAME1 @1174 
  SAY NAME2 @1175 
  SAY UNIDENTIFIED_DESC @1176 
  SAY DESC @1177 

COPY ~DSOTSC/ITM/SCRLDS01.itm~ ~override~ 

COPY ~DSOTSC/ITM/SCRLDS11.itm~ ~override~ 
  SAY NAME1 @52
  SAY NAME2 @52
  SAY UNIDENTIFIED_DESC @53
  SAY DESC @53

COPY ~DSOTSC/ITM/SCRLDS21.itm~ ~override~
  SAY NAME1 @54
  SAY NAME2 @54
  SAY UNIDENTIFIED_DESC @55
  SAY DESC @55

COPY ~DSOTSC/ITM/SCRLDS22.itm~ ~override~ 
  SAY NAME1 @56
  SAY NAME2 @56
  SAY UNIDENTIFIED_DESC @57
  SAY DESC @57

COPY ~DSOTSC/ITM/SCRLDS23.itm~ ~override~ 
  SAY NAME1 @58
  SAY NAME2 @58
  SAY UNIDENTIFIED_DESC @59
  SAY DESC @59

COPY ~DSOTSC/ITM/SCRLDS31.itm~ ~override~ 
  SAY NAME1 @60
  SAY NAME2 @60
  SAY UNIDENTIFIED_DESC @61
  SAY DESC @61

COPY ~DSOTSC/ITM/SCRLDS32.itm~ ~override~ 
  SAY NAME1 @62
  SAY NAME2 @62
  SAY UNIDENTIFIED_DESC @63
  SAY DESC @63

COPY ~DSotSC/itm/SCRLDS34.ITM~ ~override~ 
  SAY UNIDENTIFIED_DESC @64
  SAY DESC @64

COPY ~DSOTSC/ITM/SCRLDS41.itm~ ~override~ 
  SAY NAME1 @65
  SAY NAME2 @65
  SAY UNIDENTIFIED_DESC @66
  SAY DESC @66

COPY ~DSOTSC/ITM/SCRLDS42.itm~ ~override~ 
  SAY NAME1 @67
  SAY NAME2 @67
  SAY UNIDENTIFIED_DESC @68
  SAY DESC @68

COPY ~DSOTSC/ITM/SCRLDS51.itm~ ~override~ 
  SAY NAME1 @69
  SAY NAME2 @69
  SAY UNIDENTIFIED_DESC @70
  SAY DESC @70

COPY ~DSOTSC/ITM/SCRLDS61.itm~ ~override~
  SAY NAME1 @71
  SAY NAME2 @71
  SAY UNIDENTIFIED_DESC @72
  SAY DESC @72

COPY ~DSOTSC/ITM/SCRLDS62.itm~ ~override~ 
  SAY NAME1 @73
  SAY NAME2 @73
  SAY UNIDENTIFIED_DESC @74
  SAY DESC @74

COPY ~DSOTSC/ITM/SCRLDS71.itm~ ~override~ 
  SAY NAME1 @77
  SAY NAME2 @77
  SAY UNIDENTIFIED_DESC @78
  SAY DESC @78

COPY ~DSOTSC/ITM/SCRLDS72.itm~ ~override~ 
  SAY NAME1 @79
  SAY NAME2 @79
  SAY UNIDENTIFIED_DESC @80
  SAY DESC @80

COPY ~DSOTSC/ITM/SCRLDS73.itm~ ~override~ 
  SAY NAME1 @81
  SAY NAME2 @81
  SAY UNIDENTIFIED_DESC @82
  SAY DESC @82

COPY ~DSOTSC/ITM/SCRLDS74.itm~ ~override~ 
  SAY NAME1 @83
  SAY NAME2 @83
  SAY UNIDENTIFIED_DESC @84
  SAY DESC @84

COPY ~DSotSC/ITM/scrlds75.itm~ ~override~ 
  SAY UNIDENTIFIED_DESC @51
  SAY DESC @51

COPY ~DSotSC/ITM/scrlds76.itm~ ~override~ 
  SAY NAME1 @47
  SAY NAME2 @47
  SAY UNIDENTIFIED_DESC @48
  SAY DESC @48

COPY ~DSotSC/ITM/scrlds77.itm~ ~override~ 
  SAY NAME1 @49
  SAY NAME2 @49
  SAY UNIDENTIFIED_DESC @50
  SAY DESC @50

COPY ~DSOTSC/ITM/SCRLDS81.itm~ ~override~ 
  SAY NAME2 @85
  SAY DESC @86

COPY ~DSOTSC/ITM/SCRLDS82.itm~ ~override~ 
  SAY NAME2 @87
  SAY DESC @88

COPY ~DSOTSC/ITM/SCRLDS83.itm~ ~override~
  SAY NAME2 @89
  SAY DESC @90

COPY ~DSOTSC/ITM/SCRLDS84.itm~ ~override~
  SAY NAME2 @49
  SAY DESC @91

COPY ~DSOTSC/ITM/SCRLDS85.itm~ ~override~ 
  SAY NAME2 @92
  SAY DESC @93

COPY ~DSOTSC/ITM/SCRLDS91.itm~ ~override~ 
  SAY NAME2 @94
  SAY DESC @95

COPY ~DSOTSC/ITM/SCRLDS92.itm~ ~override~ 
  SAY NAME2 @96
  SAY DESC @97

COPY ~DSOTSC/ITM/SCRLDS93.itm~ ~override~ 
  SAY NAME2 @98
  SAY DESC @99

COPY ~DSOTSC/ITM/DSBOOK01.itm~ ~override~
  SAY NAME2 @1239
  SAY DESC @1241
  SAY 0x10e @124100

COPY ~DSOTSC/ITM/DSBOOK.itm~ ~override~
  SAY NAME1 @1242 
  SAY NAME2 @1242 
  SAY UNIDENTIFIED_DESC @1243 
  SAY DESC @1243 

COPY ~DSOTSC/ITM/DSPOTN01.itm~ ~override~ 
  SAY NAME1 @1244 
  SAY NAME2 @1244 
  SAY UNIDENTIFIED_DESC @1245 
  SAY DESC @1245 

// Amulets, Necklaces

COPY ~DSOTSC/ITM/DSAMUL01.itm~ ~override~ 
  SAY NAME2 @1247
  SAY DESC @1249

COPY ~DSOTSC/ITM/DSAMUL02.itm~ ~override~
  SAY NAME2 @1251
  SAY DESC @1253

COPY ~DSOTSC/ITM/DSAMUL03.itm~ ~override~
  SAY NAME2 @1254
  SAY DESC @1255

COPY ~DSOTSC/ITM/DSAMUL04.itm~ ~override~ 
  SAY DESC @1256

COPY ~DSOTSC/ITM/DSAMUL06.itm~ ~override~ 
  SAY NAME2 @1257
  SAY DESC @1258

COPY ~DSOTSC/ITM/DSAMUL07.itm~ ~override~
  SAY NAME2 @1259
  SAY DESC @1260

COPY ~DSOTSC/ITM/DSAMUL08.itm~ ~override~
  SAY NAME2 @1261
  SAY DESC @1262

COPY ~DSOTSC/ITM/DSAMUL09.itm~ ~override~
  SAY NAME2 @1263
  SAY DESC @1263

COPY ~DSOTSC/ITM/DSAMUL10.itm~ ~override~
  SAY NAME2 @1264
  SAY DESC @1265

COPY ~DSOTSC/ITM/DSAMUL11.itm~ ~override~
  SAY NAME2 @1266
  SAY DESC @1267

COPY ~DSOTSC/ITM/DSAMUL12.itm~ ~override~ 
  SAY NAME2 @1268
  SAY DESC @1269

// Arrows, Bolts, Bullets, Darts, etc

COPY ~DSOTSC/ITM/DSARROW1.itm~ ~override~
  SAY NAME2 @1271
  SAY DESC @1273

COPY ~DSOTSC/ITM/DSARROW2.itm~ ~override~
  SAY NAME2 @1275
  SAY DESC @1277

COPY ~DSOTSC/ITM/AROW50.itm~ ~override~ 
  SAY NAME2 @1278
  SAY DESC @1279

COPY ~DSOTSC/ITM/DSBOLT01.itm~ ~override~ 
  SAY NAME2 @1281
  SAY DESC @1283

COPY ~DSOTSC/ITM/DSBULL01.itm~ ~override~
  SAY NAME2 @1285
  SAY DESC @1287

COPY ~DSOTSC/ITM/DSBULL02.itm~ ~override~
  SAY NAME2 @1288
  SAY DESC @1289

COPY ~DSOTSC/ITM/DSMETEOR.itm~ ~override~ 
  SAY NAME1 @69
  SAY NAME2 @69
  SAY UNIDENTIFIED_DESC @69
  SAY DESC @69

// Boots

COPY ~DSOTSC/ITM/DSBOOT01.itm~ ~override~ 
  SAY NAME2 @1292
  SAY DESC @1294

COPY ~DSOTSC/ITM/DSBOOT02.itm~ ~override~ 
  SAY NAME2 @1295
  SAY DESC @1296

// Shields

//COPY ~DSOTSC/ITM/DSSHLD01.itm~ ~override~
//  SAY NAME1 @1318
//  SAY NAME2 @1319
//  SAY UNIDENTIFIED_DESC @1320
//  SAY DESC @1321

COPY ~DSOTSC/ITM/DSSHLD02.itm~ ~override~
  SAY DESC @1300

COPY ~DSOTSC/ITM/DSCUSHLD.itm~ ~override~ 
  SAY NAME2 @1302
  SAY DESC @1304

COPY ~DSOTSC/ITM/DSJESHLD.itm~ ~override~ 
  SAY NAME2 @1305
  SAY DESC @1306

COPY ~DSOTSC/ITM/DSSHLD51.itm~ ~override~ 
  SAY NAME2 @1307
  SAY DESC @1308

COPY ~DSOTSC/ITM/DSSHLD52.itm~ ~override~ 
  SAY DESC @1312

COPY ~DSOTSC/ITM/DSSHLD53.itm~ ~override~
  SAY NAME2 @1313
  SAY DESC @1314

COPY ~DSOTSC/ITM/DSSHLD54.itm~ ~override~
  SAY NAME2 @1315
  SAY DESC @1317


// Weapons

COPY ~DSOTSC/ITM/DSKATAN1.itm~ ~override~ 
  SAY NAME2 @1323
  SAY DESC @1325

COPY ~DSOTSC/ITM/DSKATAN2.itm~ ~override~ 
  SAY NAME2 @1326
  SAY DESC @1328

COPY ~DSOTSC/ITM/DSTEARS.itm~ ~override~ 
  SAY NAME2 @1330
  SAY DESC @1332

COPY ~DSOTSC/ITM/DSCOSWD.itm~ ~override~
  SAY NAME2 @1334
  SAY DESC @1336

COPY ~DSOTSC/ITM/DSSWD01.itm~ ~override~
  SAY NAME2 @1337
  SAY DESC @1338

COPY ~DSOTSC/ITM/DSSWD02.itm~ ~override~ 
  SAY NAME2 @1339
  SAY DESC @1340

COPY ~DSOTSC/ITM/DSSWD03.itm~ ~override~
  SAY NAME1 @1341 
  SAY NAME2 @1342
  SAY UNIDENTIFIED_DESC @1343 
  SAY DESC @1344 

COPY ~DSOTSC/ITM/DSSWD04.itm~ ~override~ 
  SAY NAME1 @1341 
  SAY NAME2 @1345 
  SAY UNIDENTIFIED_DESC @1343 
  SAY DESC @1346 

COPY ~DSOTSC/ITM/DSSWD05.itm~ ~override~
  SAY NAME1 @1341 
  SAY NAME2 @1347 
  SAY UNIDENTIFIED_DESC @1343 
  SAY DESC @1348 

COPY ~DSOTSC/ITM/DSSWD06.itm~ ~override~
  SAY NAME1 @1341 
  SAY NAME2 @1349 
  SAY UNIDENTIFIED_DESC @1343 
  SAY DESC @1350 

COPY ~DSOTSC/ITM/DSSWD07.itm~ ~override~
  SAY NAME2 @1352
  SAY DESC @1354

COPY ~DSOTSC/ITM/DSSWD08.itm~ ~override~
  SAY NAME2 @1356
  SAY DESC @1358

COPY ~DSOTSC/ITM/DSSWD09.itm~ ~override~
  SAY NAME2 @1359
  SAY DESC @1360

//COPY ~DSOTSC/ITM/DSSWD10.itm~ ~override~
//  SAY NAME1 @1351
//  SAY NAME2 @1361
//  SAY UNIDENTIFIED_DESC @1353
//  SAY DESC @1362

COPY ~DSOTSC/ITM/DSCUSWD.itm~ ~override~
  SAY NAME2 @1363
  SAY DESC @1364

COPY ~DSOTSC/ITM/DSNEMSTF.itm~ ~override~ 
  SAY NAME2 @1366
  SAY DESC @1368

COPY ~DSOTSC/ITM/DSVFLAIL.itm~ ~override~ 
  SAY NAME2 @1370
  SAY DESC @1372

COPY ~DSOTSC/ITM/DSFLAIL1.itm~ ~override~ 
  SAY NAME2 @1373
  SAY DESC @1374

COPY ~DSOTSC/ITM/DSFEAXE.itm~ ~override~
  SAY NAME2 @1376
  SAY DESC @1378

COPY ~DSOTSC/ITM/DSAXE01.itm~ ~override~ 
  SAY NAME2 @1379
  SAY DESC @1381

COPY ~DSOTSC/ITM/DSAXE02.itm~ ~override~
  SAY NAME2 @1382
  SAY DESC @1383

COPY ~DSOTSC/ITM/DSAXE03.itm~ ~override~
  SAY NAME1 @1384 
  SAY NAME2 @1385 
  SAY UNIDENTIFIED_DESC @1386 
  SAY DESC @1387

COPY ~DSOTSC/ITM/DSAXE04.itm~ ~override~
  SAY NAME2 @1388
  SAY DESC @1389

COPY ~DSOTSC/ITM/DSAXE05.itm~ ~override~
  SAY NAME1 @1384 
  SAY NAME2 @1390 
  SAY UNIDENTIFIED_DESC @1386 
  SAY DESC @1391

COPY ~DSOTSC/ITM/DSAXE06.itm~ ~override~
  SAY NAME2 @1393
  SAY DESC @1395

COPY ~DSOTSC/ITM/DSSTAF01.itm~ ~override~ 
  SAY NAME2 @1396
  SAY DESC @1398

COPY ~DSOTSC/ITM/DSSTAF02.itm~ ~override~
  SAY NAME2 @1399
  SAY DESC @1400

COPY ~DSOTSC/ITM/DSSTAF03.itm~ ~override~
  SAY NAME2 @1401
  SAY DESC @1402

COPY ~DSOTSC/ITM/DSWRLSTF.itm~ ~override~ 
  SAY NAME2 @1403
  SAY DESC @1404

COPY ~DSOTSC/ITM/DSSTAF06.itm~ ~override~
  SAY NAME2 @1407
  SAY DESC @1408

COPY ~DSOTSC/ITM/DSSTAF07.itm~ ~override~ 
  SAY NAME2 @1409
  SAY DESC @1410

COPY ~DSOTSC/ITM/DSSKSTAF.itm~ ~override~ 
  SAY NAME2 @1411
  SAY DESC @1412

COPY ~DSOTSC/ITM/DSHAMM01.itm~ ~override~
  SAY NAME2 @1414
  SAY DESC @1416

COPY ~DSOTSC/ITM/DSHAMM02.itm~ ~override~
  SAY NAME2 @1417
  SAY DESC @1418

COPY ~DSOTSC/ITM/DSSPERF.itm~ ~override~ 
  SAY NAME2 @1420
  SAY DESC @1422

COPY ~DSOTSC/ITM/DSSPERD.itm~ ~override~ 
  SAY NAME2 @1423
  SAY DESC @1424

COPY ~DSOTSC/ITM/DSMACE01.itm~ ~override~
  SAY NAME2 @1426
  SAY DESC @1428

COPY ~DSOTSC/ITM/DSMACE02.itm~ ~override~ 
  SAY NAME2 @1429
  SAY DESC @1430

COPY ~DSOTSC/ITM/DSMACE03.itm~ ~override~
  SAY NAME2 @1431
  SAY DESC @1432

COPY ~DSOTSC/ITM/DSMACE04.itm~ ~override~ 
  SAY NAME2 @1433
  SAY DESC @1434

COPY ~DSOTSC/ITM/DSDAGG01.itm~ ~override~ 
  SAY NAME2 @1436
  SAY DESC @1438

COPY ~DSOTSC/ITM/DSDAGG03.itm~ ~override~
  SAY NAME2 @1439
  SAY DESC @1440

COPY ~DSOTSC/ITM/DSDAGG02.itm~ ~override~ 
  SAY NAME2 @1441
  SAY DESC @1442

COPY ~DSOTSC/ITM/DSDAGG04.itm~ ~override~
  SAY NAME2 @1443
  SAY DESC @1444

COPY ~DSOTSC/ITM/DSKEXBOW.itm~ ~override~ 
  SAY NAME2 @1446
  SAY DESC @1448

COPY ~DSOTSC/ITM/DSXBOW01.itm~ ~override~ 
  SAY NAME2 @1449
  SAY DESC @1450

COPY ~DSOTSC/ITM/DSGBBOW.itm~ ~override~ 
  SAY NAME2 @1452
  SAY DESC @1454

COPY ~DSOTSC/ITM/DSBOW01.itm~ ~override~ 
  SAY NAME2 @1456
  SAY DESC @1458

COPY ~DSOTSC/ITM/DSBOW02.itm~ ~override~ 
  SAY NAME2 @1459
  SAY DESC @1460

COPY ~DSOTSC/ITM/DSWAND01.itm~ ~override~
  SAY NAME2 @1462
  SAY DESC @1464

COPY ~DSOTSC/ITM/DSWAND02.itm~ ~override~
  SAY NAME2 @1465
  SAY DESC @1466

COPY ~DSOTSC/ITM/DSWAND03.itm~ ~override~
  SAY NAME2 @1467
  SAY DESC @1468

COPY ~DSOTSC/ITM/DSCLUB01.itm~ ~override~
  SAY NAME2 @1470
  SAY DESC @1472

COPY ~DSOTSC/ITM/DSCLUB02.itm~ ~override~
  SAY NAME2 @1473
  SAY UNIDENTIFIED_DESC @1474
  SAY DESC @1475

COPY ~DSOTSC/ITM/miel.itm~ ~override~
  SAY NAME1 @1476
  SAY NAME2 @1476

// Items needed by creatures

COPY ~DSOTSC/ITM/nostring~ ~override~


// Stores

COPY ~DSOTSC/ITM/DSTRUNGL.STO~ ~override~
  SAY 0x0c @1477

COPY_EXISTING ~FRIEND.STO~ ~override~
  ADD_STORE_ITEM ~DSLEAT01~ #0 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~CHAN05~ #0 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~LEAT05~ #0 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~SLNG02~ #0 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~SW1H20~ #0 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~XBOW05~ #0 #0 #0 ~IDENTIFIED~ #2 

COPY_EXISTING ~HIGHHEDG.STO~ ~override~
  ADD_STORE_ITEM ~DSROBE07~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSROBESO~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSZRNG03~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~SCRL1J~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRL7G~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLA5~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLDS11~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLDS21~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLDS22~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLDS23~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLDS31~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLDS32~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLDS41~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLDS42~ #0 #0 #0 ~IDENTIFIED~ #2 

COPY_EXISTING ~INN3304.STO~ ~override~
  READ_BYTE "0x10" "buy_flags"
  WRITE_BYTE "0x10" ("%buy_flags%" + 0x02)

COPY_EXISTING ~INN3351.STO~ ~override~
  ADD_STORE_ITEM ~XBOW02~ #0 #0 #0 ~IDENTIFIED~ #2 

COPY_EXISTING ~STO0703.STO~ ~override~
  ADD_STORE_ITEM ~DSBOLT01~ #10 #0 #0 ~IDENTIFIED~ #10 
  ADD_STORE_ITEM ~DSBULL01~ #5 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~DSWAND01~ #10 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~QUIVER05~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~SCRL8P~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRL9J~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLDS34~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLDS51~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLDS71~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SCRLDS93~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~WAND09~ #20 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~WAND13~ #20 #0 #0 ~IDENTIFIED~ #1 

COPY_EXISTING ~STO4803.STO~ ~override~
  ADD_STORE_ITEM ~BOW04~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SLNG02~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~SW1H20~ #0 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~SW1H22~ #0 #0 #0 ~IDENTIFIED~ #2 

COPY_EXISTING ~STO4909.STO~ ~override~
  ADD_STORE_ITEM ~AROW05~ #10 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~DSBULL01~ #5 #0 #0 ~IDENTIFIED~ #5 

COPY_EXISTING ~STOBLACK.STO~ ~override~
  ADD_STORE_ITEM ~SPER02~ #0 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~SW1H20~ #0 #0 #0 ~IDENTIFIED~ #2 

COPY_EXISTING ~STOSILEN.STO~ ~override~
  ADD_STORE_ITEM ~DSHAT01~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~HELMSUN~ #0 #0 #0 ~IDENTIFIED~ #1 

COPY_EXISTING ~TAERUM.STO~ ~override~
  ADD_STORE_ITEM ~AROW10~ #10 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~AX1H05~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~CHAN05~ #0 #0 #0 ~IDENTIFIED~ #2 
  ADD_STORE_ITEM ~HELM06~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~SW1H20~ #0 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~SW1H22~ #0 #0 #0 ~IDENTIFIED~ #4 

COPY_EXISTING ~TEM0131.STO~ ~override~
  READ_BYTE "0x10" "buy_flags"
  WRITE_BYTE "0x10" ("%buy_flags%" + 0x02)
  ADD_STORE_ITEM ~DSBULL02~ #10 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~DSCHAN02~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSCHAN03~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSHELM01~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSSWD08~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSPOTN01~ #0 #0 #0 ~IDENTIFIED~ #9 

COPY_EXISTING ~TEM0132.STO~ ~override~
  READ_BYTE "0x10" "buy_flags"
  WRITE_BYTE "0x10" ("%buy_flags%" + 0x02)
  ADD_STORE_ITEM ~DSBULL02~ #10 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~DSPOTN01~ #0 #0 #0 ~IDENTIFIED~ #9 

COPY_EXISTING ~TEM2304.STO~ ~override~
  READ_BYTE "0x10" "buy_flags"
  WRITE_BYTE "0x10" ("%buy_flags%" + 0x02)
  ADD_STORE_ITEM ~DSBULL02~ #10 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~DSPOTN01~ #0 #0 #0 ~IDENTIFIED~ #9 

COPY_EXISTING ~TEM2601.STO~ ~override~
  READ_BYTE "0x10" "buy_flags"
  WRITE_BYTE "0x10" ("%buy_flags%" + 0x02)
  ADD_STORE_ITEM ~DSBULL02~ #10 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~DSPOTN01~ #0 #0 #0 ~IDENTIFIED~ #9 

COPY_EXISTING ~TEM3402.STO~ ~override~
  READ_BYTE "0x10" "buy_flags"
  WRITE_BYTE "0x10" ("%buy_flags%" + 0x02)
  ADD_STORE_ITEM ~DSBULL02~ #10 #0 #0 ~IDENTIFIED~ #9 
  ADD_STORE_ITEM ~DSBOW02~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSCHAN03~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSCHAN04~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSFLAIL1~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSHELM01~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSRNG103~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSSWD08~ #0 #0 #0 ~IDENTIFIED~ #1 
  ADD_STORE_ITEM ~DSPOTN01~ #0 #0 #0 ~IDENTIFIED~ #9 

COPY_EXISTING ~TEM4802.STO~ ~override~
  READ_BYTE "0x10" "buy_flags"
  WRITE_BYTE "0x10" ("%buy_flags%" + 0x02)
  ADD_STORE_ITEM ~DSBULL02~ #10 #0 #0 ~IDENTIFIED~ #5 
  ADD_STORE_ITEM ~DSPOTN01~ #0 #0 #0 ~IDENTIFIED~ #9 
  ADD_STORE_ITEM ~DSFLAIL1~ #0 #0 #0 ~IDENTIFIED~ #1

COPY ~DSOTSC/ITM/DSBAG01.STO~ ~override~

PRINT @1478

/////////////////////////
//  Creatures to copy  //
/////////////////////////

COPY_EXISTING ~AMARAN.cre~ ~override~ 
  WRITE_SHORT 0x14 ~4500~ //XP
  WRITE_SHORT 0x24 ~85~
  WRITE_SHORT 0x26 ~85~
  WRITE_SHORT 0x52 ~13~
  WRITE_SHORT 0x234 ~14~
  WRITE_ASCII 0x250 ~druid12a~// class
  WRITE_ASCII 0x280 ~AMARAN~
  ADD_CRE_ITEM ~DSCDRUID~ #0 #0 #0 ~UNSTEALABLE~ ~HELMET~
  ADD_CRE_ITEM ~DSTHRARM~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSDRGSKN~ #0 #0 #0 ~UNSTEALABLE~ ~GLOVES~
  ADD_CRE_ITEM ~DSZRNG03~ #0 #0 #0 ~UNSTEALABLE~ ~INV1~
  ADD_CRE_ITEM ~DSWRLSTF~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP
  ADD_CRE_ITEM ~POTN52~ #0 #0 #0 ~UNSTEALABLE~ ~QITEM1~

COPY_EXISTING ~ANDRIS.cre~ ~override~ 
  WRITE_SHORT 0x14 ~6500~ //XP
  WRITE_SHORT 0x24 ~55~ //HP
  WRITE_SHORT 0x26 ~55~
  WRITE_SHORT 0x52 ~15~
  WRITE_SHORT 0x234 ~15~ //first class level
  ADD_CRE_ITEM ~DSROBE06~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~MAGEBRAC~ #0 #0 #0 ~UNSTEALABLE~ ~GLOVES~
  ADD_CRE_ITEM ~DSSTAF02~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP
  ADD_CRE_ITEM ~POTN02~ #0 #0 #0 ~UNSTEALABLE~ ~QITEM1~
  ADD_CRE_ITEM ~SCRLDS91~ #0 #0 #0 ~UNSTEALABLE~ ~INV1~
  ADD_CRE_ITEM ~SCRLDS31~ #0 #0 #0 ~UNSTEALABLE~ ~INV5~

COPY ~DSotSC/CRE/DSARCHDR.cre~ ~override~ 
  SAY NAME1 @2000 
  SAY NAME2 @2000 

COPY_EXISTING ~ARLIN.cre~ ~override~ 
  WRITE_SHORT 0x14 ~1800~ //XP
  WRITE_SHORT 0x24 ~27~ //HP
  WRITE_SHORT 0x26 ~27~ //max HP
  WRITE_SHORT 0x52 ~15~ //THAC0
  WRITE_SHORT 0x54 ~10~ //ST vs Death
  WRITE_SHORT 0x55 ~5~  //ST vs Wands
  WRITE_SHORT 0x56 ~7~  //ST vs Poly
  WRITE_SHORT 0x57 ~9~  //ST vs Breath
  WRITE_SHORT 0x58 ~6~  //ST vs Spell
  ADD_CRE_ITEM ~DSROBESO~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~STAF02~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP
  ADD_CRE_ITEM ~POTN02~ #0 #0 #0 ~UNSTEALABLE~ ~QITEM1~
  ADD_CRE_ITEM ~SCRLDS91~ #0 #0 #0 ~UNSTEALABLE~ ~INV1~
  ADD_CRE_ITEM ~SCRLDS31~ #0 #0 #0 ~UNSTEALABLE~ ~INV5~

COPY ~DSotSC/CRE/DSBANSHE.cre~ ~override~ 
  SAY NAME1 @2001 
  SAY NAME2 @2001 

COPY ~DSotSC/CRE/DSBARDO.cre~ ~override~ 
  SAY NAME1 @2002 
  SAY NAME2 @2002 
  SAY 0xa4  @20301
  SAY 0xa8  @20302
  SAY 0xac  @20304
  SAY 0xb0  @20305
  SAY 0xb4  @20306
  SAY 0xb8  @20307
  SAY 0xbc  @20308
  SAY 0xc0  @20309
  SAY 0xc4  @20310
  SAY 0xc8  @20303
  SAY 0xec  @20338
  SAY 0xf0  @20339
  SAY 0xf4  @20311
  SAY 0xf8  @20312
  SAY 0xfc  @20313
  SAY 0x100 @20314
  SAY 0x104 @20315
  SAY 0x108 @20316
  SAY 0x10c @20317
  SAY 0x110 @20318
  SAY 0x114 @20319
  SAY 0x124 @20320
  SAY 0x128 @20321
  SAY 0x12c @20322
  SAY 0x130 @20323
  SAY 0x134 @20324
  SAY 0x138 @20325
  SAY 0x13c @20326

COPY ~DSotSC/CRE/DSBLANE.cre~ ~override~ 
  SAY NAME1 @2003 
  SAY NAME2 @2003 

COPY_EXISTING ~BOR.cre~ ~override~ 
  ADD_CRE_ITEM ~HELM01~ #0 #0 #0 ~UNSTEALABLE~ ~HELMET~
  ADD_CRE_ITEM ~PLAT05~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSAXE01~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY_EXISTING ~BRUNOS.cre~ ~override~ 
  ADD_CRE_ITEM ~CHAN05~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSSHLD54~ #0 #0 #0 ~UNSTEALABLE~ ~SHIELD~
  ADD_CRE_ITEM ~DSBRACDX~ #0 #0 #0 ~UNSTEALABLE~ ~GLOVES~
  ADD_CRE_ITEM ~DSBOOT02~ #0 #0 #0 ~UNSTEALABLE~ ~BOOTS~
  ADD_CRE_ITEM ~DSKATAN1~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY ~DSotSC/CRE/DSBUB.cre~ ~override~ 
  SAY NAME1 @2004 
  SAY NAME2 @2004 

COPY ~DSotSC/CRE/DSBUB6.cre~ ~override~ 
  SAY NAME1 @2004 
  SAY NAME2 @2004 

COPY ~DSotSC/CRE/DSCLARS.cre~ ~override~ 
  SAY NAME1 @2005 
  SAY NAME2 @2005 
  SAY 0xa4 @2006  
  SAY 0xec @2007  

COPY_EXISTING ~COKSMTH.cre~ ~override~ 
  WRITE_SHORT 0x24 ~61~ //HP
  WRITE_SHORT 0x26 ~61~ //max HP
  WRITE_SHORT 0x71 ~2~ //Spear Prof
  WRITE_SHORT 0x74 ~2~  //Axe Prof
  WRITE_SHORT 0x234 ~9~ //first class level
  ADD_CRE_ITEM ~LEAT09~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSAXE05~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP
  ADD_CRE_ITEM ~DSBOW01~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON2~
  ADD_CRE_ITEM ~POTN52~ #0 #0 #0 ~UNSTEALABLE~ ~QITEM1~

COPY ~DSotSC/CRE/DSCONCH5.cre~ ~override~ 
  SAY NAME1 @2008 
  SAY NAME2 @2008 
  SAY 0xa4  @20101
  SAY 0xa8  @20102
  SAY 0xac  @20104
  SAY 0xb0  @20105
  SAY 0xb4  @20106
  SAY 0xb8  @20107
  SAY 0xbc  @20104
  SAY 0xc0  @20109
  SAY 0xc4  @20010
  SAY 0xc8  @20103
  SAY 0xec  @20138
  SAY 0xf0  @20139
  SAY 0xf4  @20111
  SAY 0xfc  @20113
  SAY 0x100 @20114
  SAY 0x104 @20115
  SAY 0x108 @20116
  SAY 0x10c @20117
  SAY 0x110 @20118
  SAY 0x114 @20119
  SAY 0x124 @20120
  SAY 0x128 @20121
  SAY 0x12c @20122
  SAY 0x130 @20123
  SAY 0x134 @20124
  SAY 0x138 @20125
  SAY 0x13c @20126
  SAY 0x140 @20127
  SAY 0x144 @20128
  SAY 0x148 @20129
  SAY 0x14c @20130
  SAY 0x150 @20131
  SAY 0x154 @20137
  SAY 0x160 @20135
  SAY 0x16c @20136
  SAY 0x178 @20140
  SAY 0x17c @20140
  SAY 0x18c @20132
  SAY 0x190 @20133
  SAY 0x1cc @2046 

COPY ~DSotSC/CRE/DSCONCH7.cre~ ~override~ 
  SAY NAME1 @2008 
  SAY NAME2 @2008 
  SAY 0xa4  @20101
  SAY 0xa8  @20102
  SAY 0xac  @20104
  SAY 0xb0  @20105
  SAY 0xb4  @20106
  SAY 0xb8  @20107
  SAY 0xbc  @20104
  SAY 0xc0  @20109
  SAY 0xc4  @20010
  SAY 0xc8  @20103
  SAY 0xec  @20138
  SAY 0xf0  @20139
  SAY 0xf4  @20111
  SAY 0xfc  @20113
  SAY 0x100 @20114
  SAY 0x104 @20115
  SAY 0x108 @20116
  SAY 0x10c @20117
  SAY 0x110 @20118
  SAY 0x114 @20119
  SAY 0x124 @20120
  SAY 0x128 @20121
  SAY 0x12c @20122
  SAY 0x130 @20123
  SAY 0x134 @20124
  SAY 0x138 @20125
  SAY 0x13c @20126
  SAY 0x140 @20127
  SAY 0x144 @20128
  SAY 0x148 @20129
  SAY 0x14c @20130
  SAY 0x150 @20131
  SAY 0x154 @20137
  SAY 0x160 @20135
  SAY 0x16c @20136
  SAY 0x178 @20140
  SAY 0x17c @20140
  SAY 0x18c @20132
  SAY 0x190 @20133
  SAY 0x1cc @2046 

COPY ~DSotSC/CRE/DSCOOSHE.cre~ ~override~ 
  SAY NAME1 @2047 
  SAY NAME2 @2047 

COPY_EXISTING ~CORSONE.cre~ ~override~ 
  ADD_CRE_ITEM ~LEAT12~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSBOOT01~ #0 #0 #0 ~UNSTEALABLE~ ~BOOTS~
  ADD_CRE_ITEM ~DSSPERF~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY ~DSotSC/CRE/DSCUCH5.cre~ ~override~ 
  SAY NAME1 @2048 
  SAY NAME2 @2048 
  SAY 0xa4  @20201
  SAY 0xa8  @20202
  SAY 0xac  @20204
  SAY 0xb0  @20205
  SAY 0xb4  @20206
  SAY 0xb8  @20207
  SAY 0xbc  @20208
  SAY 0xc0  @20209
  SAY 0xc4  @20210
  SAY 0xc8  @20203
  SAY 0xec  @20238
  SAY 0xf0  @20239
  SAY 0xf4  @20211
  SAY 0xf8  @20212
  SAY 0xfc  @20213
  SAY 0x100 @20214
  SAY 0x104 @20215
  SAY 0x108 @20216
  SAY 0x10c @20217
  SAY 0x110 @20218
  SAY 0x114 @20219
  SAY 0x124 @20220
  SAY 0x128 @20221
  SAY 0x12c @20222
  SAY 0x130 @20223
  SAY 0x134 @20224
  SAY 0x138 @20225
  SAY 0x13c @20226
  SAY 0x1cc @2077 

COPY ~DSotSC/CRE/DSCUCH7.cre~ ~override~ 
  SAY NAME1 @2048 
  SAY NAME2 @2048 
  SAY 0xa4  @20201
  SAY 0xa8  @20202
  SAY 0xac  @20204
  SAY 0xb0  @20205
  SAY 0xb4  @20206
  SAY 0xb8  @20207
  SAY 0xbc  @20208
  SAY 0xc0  @20209
  SAY 0xc4  @20210
  SAY 0xc8  @20203
  SAY 0xec  @20238
  SAY 0xf0  @20239
  SAY 0xf4  @20211
  SAY 0xf8  @20212
  SAY 0xfc  @20213
  SAY 0x100 @20214
  SAY 0x104 @20215
  SAY 0x108 @20216
  SAY 0x10c @20217
  SAY 0x110 @20218
  SAY 0x114 @20219
  SAY 0x124 @20220
  SAY 0x128 @20221
  SAY 0x12c @20222
  SAY 0x130 @20223
  SAY 0x134 @20224
  SAY 0x138 @20225
  SAY 0x13c @20226
  SAY 0x1cc @2077 

/*COPY ~DSotSC/CRE/DSDANCER.CRE~ ~override~
  SAY NAME1 @2078
  SAY NAME2 @2078*/

COPY ~DSotSC/CRE/DSDEAZLE.cre~ ~override~ 
  SAY NAME1 @2079 
  SAY NAME2 @2079 

COPY_EXISTING ~DENAK.cre~ ~override~ 
  WRITE_SHORT 0x14 ~3750~ //XP
  WRITE_SHORT 0x24 ~35~ //HP
  WRITE_SHORT 0x26 ~35~ //max HP
  WRITE_ASCII 0x34 ~None~ //Portrait
  WRITE_ASCII 0x3c ~None~ //Portrait
  WRITE_SHORT 0x52 ~17~ //THAC0
  WRITE_SHORT 0x54 ~11~ //ST vs Death
  WRITE_SHORT 0x55 ~7~  //ST vs Wands
  WRITE_SHORT 0x56 ~9~  //ST vs Poly
  WRITE_SHORT 0x57 ~13~  //ST vs Breath
  WRITE_SHORT 0x58 ~3~  //ST vs Spell
  WRITE_SHORT 0x234 ~11~ //first class level
  ADD_CRE_ITEM ~DSROBESO~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~STAF07~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY_EXISTING ~DRAKAR.cre~ ~override~ 
  WRITE_SHORT 0x14 ~2200~ //XP
  WRITE_SHORT 0x24 ~52~ //HP
  WRITE_SHORT 0x26 ~52~ //max HP
  WRITE_SHORT 0x52 ~13~ //THAC0
  WRITE_SHORT 0x54 ~9~ //ST vs Death
  WRITE_SHORT 0x55 ~10~  //ST vs Wands
  WRITE_SHORT 0x56 ~9~  //ST vs Poly
  WRITE_SHORT 0x57 ~9~  //ST vs Breath
  WRITE_SHORT 0x58 ~10~  //ST vs Spell
  ADD_CRE_ITEM ~DSEBHELM~ #0 #0 #0 ~UNSTEALABLE~ ~HELMET~
  ADD_CRE_ITEM ~DSEBPLAT~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSSHLD51~ #0 #0 #0 ~UNSTEALABLE~ ~SHIELD~
  ADD_CRE_ITEM ~POTN14~ #0 #0 #0 ~UNSTEALABLE~ ~QITEM1~
  ADD_CRE_ITEM ~POTN52~ #0 #0 #0 ~UNSTEALABLE~ ~QITEM2~

COPY ~DSotSC/CRE/DSDROW01.cre~ ~override~ 
  SAY NAME1 @2080 
  SAY NAME2 @2080 

COPY ~DSotSC/CRE/DSDROW02.cre~ ~override~ 
  SAY NAME1 @2081 
  SAY NAME2 @2081 

COPY ~DSotSC/CRE/DSDROW03.cre~ ~override~ 
  SAY NAME1 @2082 
  SAY NAME2 @2082 

COPY ~DSotSC/CRE/DSDROW04.cre~ ~override~ 
  SAY NAME1 @2083 
  SAY NAME2 @2083 

COPY_EXISTING ~DRASUS.cre~ ~override~ 
  WRITE_SHORT 0x14 ~1700~ //XP
  WRITE_SHORT 0x24 ~86~ //HP
  WRITE_SHORT 0x26 ~86~ //max HP
  WRITE_SHORT 0x52 ~10~ //THAC0
  WRITE_SHORT 0x54 ~7~ //ST vs Death
  WRITE_SHORT 0x55 ~9~  //ST vs Wands
  WRITE_SHORT 0x56 ~8~  //ST vs Poly
  WRITE_SHORT 0x57 ~8~  //ST vs Breath
  WRITE_SHORT 0x58 ~10~  //ST vs Spell
  ADD_CRE_ITEM ~CHAN05~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSSHLD53~ #0 #0 #0 ~UNSTEALABLE~ ~SHIELD~
  ADD_CRE_ITEM ~DSVFLAIL~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP
  ADD_CRE_ITEM ~POTN52~ #0 #0 #0 ~UNSTEALABLE~ ~QITEM1~

COPY ~DSotSC/CRE/DSDUEGM1.cre~ ~override~ 
  SAY NAME1 @2084 
  SAY NAME2 @2084 

COPY ~DSotSC/CRE/DSDUEGMA.cre~ ~override~ 
  SAY NAME1 @2085 
  SAY NAME2 @2085 

COPY ~DSotSC/CRE/DSDUEGSK.cre~ ~override~ 
  SAY NAME1 @2086 
  SAY NAME2 @2086 

COPY ~DSotSC/CRE/DSDUERG1.cre~ ~override~ 
  SAY NAME1 @2087 
  SAY NAME2 @2087 

COPY ~DSotSC/CRE/DSDUERG2.cre~ ~override~ 
  SAY NAME1 @2088 
  SAY NAME2 @2088 

COPY ~DSotSC/CRE/DSDUERG3.cre~ ~override~ 
  SAY NAME1 @2089 
  SAY NAME2 @2089 

COPY ~DSotSC/CRE/DSDUERGA.cre~ ~override~ 
  SAY NAME1 @2090 
  SAY NAME2 @2090 

COPY ~DSotSC/CRE/DSFERTH.cre~ ~override~ 
  SAY NAME1 @2091 
  SAY NAME2 @2091 
  SAY 0xa4 ~~ [FERTHG01] 
  SAY 0xa8 ~~ [FERTHG02] 
  SAY 0xac ~~ [FERTHG04] 
  SAY 0xb0 ~~ [FERTHG05] 
  SAY 0xb4 ~~ [FERTHG06] 
  SAY 0xb8 ~~ [FERTHG07] 
  SAY 0xbc ~~ [FERTHG08] 
  SAY 0xc0 ~~ [FERTHG09] 
  SAY 0xc4 ~~ [FERTHG10] 
  SAY 0xc8 ~~ [FERTHG03] 
  SAY 0xec ~~ [FERTHG38] 
  SAY 0xf0 ~~ [FERTHG39] 
  SAY 0xf4 ~~ [FERTHG11] 
  SAY 0xf8 ~~ [FERTHG12] 
  SAY 0xfc ~~ [FERTHG13] 
  SAY 0x100 ~~ [FERTHG14] 
  SAY 0x104 ~~ [FERTHG15] 
  SAY 0x108 ~~ [FERTHG16] 
  SAY 0x10c ~~ [FERTHG17] 
  SAY 0x110 ~~ [FERTHG18] 
  SAY 0x114 ~~ [FERTHG19] 
  SAY 0x124 ~~ [FERTHG20] 
  SAY 0x128 ~~ [FERTHG21] 
  SAY 0x12c ~~ [FERTHG22] 
  SAY 0x130 ~~ [FERTHG23] 
  SAY 0x134 ~~ [FERTHG24] 
  SAY 0x138 ~~ [FERTHG25] 
  SAY 0x13c ~~ [FERTHG26] 
  SAY 0x140 ~~ [FERTHG27] 
  SAY 0x144 ~~ [FERTHG28] 
  SAY 0x148 ~~ [FERTHG29] 
  SAY 0x14c ~~ [FERTHG30] 
  SAY 0x150 ~~ [FERTHG31] 
  SAY 0x154 ~~ [FERTHG37] 
  SAY 0x160 ~~ [FERTHG35] 
  SAY 0x164 ~~ [FERTHG36] 
  SAY 0x16c ~~ [FERTHG36] 
  SAY 0x178 ~~ [FERTHG40] 
  SAY 0x17c ~~ [FERTHG41] 
  SAY 0x180 ~~ [FERTHG34] 
  SAY 0x18c ~~ [FERTHG32] 
  SAY 0x190 ~~ [FERTHG33] 
  SAY 0x1cc @2133 

COPY ~DSotSC/CRE/DSFEYDO.cre~ ~override~ 
  SAY NAME1 @2134 
  SAY NAME2 @2134 

COPY ~DSotSC/CRE/DSFORDRG.cre~ ~override~ 
  SAY NAME1 @2135 
  SAY NAME2 @2135 
  SAY 0xb8 ~~ [BAZDR306] 
  SAY 0xc8 ~~ [BAZDR302] 
  SAY 0xcc @2138  
  SAY 0xec ~~ [BAZDR304] 
  SAY 0xf0 ~~ [BAZDR305] 
  SAY 0x10c ~~ [BAZDR301] 

COPY ~DSotSC/CRE/DSFRDRGB.cre~ ~override~ 
  SAY NAME1 @2142 
  SAY NAME2 @2142 

COPY_EXISTING ~GALDOR.cre~ ~override~ 
  WRITE_SHORT 0x14 ~12000~ //XP
  WRITE_SHORT 0x24 ~112~ //HP
  WRITE_SHORT 0x26 ~112~ //max HP
  WRITE_SHORT 0x52 ~6~ //THAC0
  WRITE_SHORT 0x54 ~9~ //ST vs Death
  WRITE_SHORT 0x55 ~5~  //ST vs Wands
  WRITE_SHORT 0x56 ~6~  //ST vs Poly
  WRITE_SHORT 0x57 ~9~  //ST vs Breath
  WRITE_SHORT 0x58 ~5~  //ST vs Spell
  WRITE_SHORT 0x234 ~18~
  ADD_CRE_ITEM ~DSKORIM~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSBOW01~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY ~DSotSC/CRE/DSGILIAN.cre~ ~override~ 
  SAY NAME1 @2143 
  SAY NAME2 @2143 

COPY ~DSotSC/CRE/DSGNOLLC.cre~ ~override~ 
  SAY NAME1 @2144 
  SAY NAME2 @2144 
  SAY 0xc8 ~~ [GNOLL03] 
  SAY 0xcc @2146  
  SAY 0xec ~~ [GNOLL08] 
  SAY 0xf0 ~~ [GNOLL09] 
  SAY 0x10c ~~ [GNOLL01] 
  SAY 0x110 ~~ [GNOLL02] 

COPY ~DSotSC/CRE/DSGOBCHF.cre~ ~override~ 
  SAY NAME1 @2151 
  SAY NAME2 @2151 

COPY ~DSotSC/CRE/DSGRUNK.cre~ ~override~ 
  SAY NAME1 @2152 
  SAY NAME2 @2152 

COPY ~DSotSC/CRE/DSHALF01.cre~ ~override~ 
  SAY NAME1 @2153 
  SAY NAME2 @2153 
  SAY 0xa4 @2154  
  SAY 0xec ~~ [GANDL03]
  SAY 0xf0 ~~ [GANDL04]
  SAY 0x10c @2157 

COPY ~DSotSC/CRE/DSHALF02.cre~ ~override~ 
  SAY NAME1 @2158 
  SAY NAME2 @2158 

COPY ~DSotSC/CRE/DSHALF03.cre~ ~override~ 
  SAY NAME1 @2158 
  SAY NAME2 @2158 

COPY ~DSotSC/CRE/DSHALF04.cre~ ~override~ 
  SAY NAME1 @2159 
  SAY NAME2 @2159 

COPY ~DSotSC/CRE/DSHALF05.cre~ ~override~ 
  SAY NAME1 @2159 
  SAY NAME2 @2159 

COPY ~DSotSC/CRE/DSHALFD2.cre~ ~override~ 
  SAY NAME1 @2158 
  SAY NAME2 @2158 

COPY ~DSotSC/CRE/DSHALFDD.cre~ ~override~ 
  SAY NAME1 @2158 
  SAY NAME2 @2158 

COPY_EXISTING ~IZEFIA.cre~ ~override~ 
  WRITE_SHORT 0x14 ~2000~ //XP
  WRITE_SHORT 0x24 ~68~ //HP
  WRITE_SHORT 0x26 ~68~ //max HP
  WRITE_SHORT 0x52 ~11~ //THAC0
  WRITE_SHORT 0x54 ~6~ //ST vs Death
  WRITE_SHORT 0x55 ~10~  //ST vs Wands
  WRITE_SHORT 0x56 ~9~  //ST vs Poly
  WRITE_SHORT 0x57 ~12~  //ST vs Breath
  WRITE_SHORT 0x58 ~11~  //ST vs Spell
  WRITE_SHORT 0x234 ~10~
  WRITE_ASCII 0x250 ~DRUID14T~
  WRITE_ASCII 0x280 ~IZEFIA~
  ADD_CRE_ITEM ~DSTHRARM~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSAMUL01~ #0 #0 #0 ~UNSTEALABLE~ ~AMULET~
  ADD_CRE_ITEM ~DSSPERF~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY ~DSotSC/CRE/DSJABB.cre~ ~override~ 
  SAY NAME1 @2160 
  SAY NAME2 @2160 

COPY ~DSotSC/CRE/DSJAREN.cre~ ~override~ 
  SAY NAME1 @2161 
  SAY NAME2 @2161 

COPY ~DSotSC/CRE/DSJEREMY.cre~ ~override~ 
  SAY NAME1 @2162 
  SAY NAME2 @2162 

COPY ~DSotSC/CRE/DSJETLAY.cre~ ~override~ 
  SAY NAME1 @2163 
  SAY NAME2 @2163 
  SAY 0xa4  @20401 
  SAY 0xa8  @20402 
  SAY 0xac  @20404 
  SAY 0xb0  @20405 
  SAY 0xb4  @20406 
  SAY 0xb8  @20407 
  SAY 0xbc  @20408 
  SAY 0xc0  @20409 
  SAY 0xc4  @20410 
  SAY 0xc8  @20403 
  SAY 0xec  @20438 
  SAY 0xf0  @20439 
  SAY 0xf4  @20411 
  SAY 0xf8  @20412 
  SAY 0xfc  @20413 
  SAY 0x100 @20414 
  SAY 0x104 @20415 
  SAY 0x108 @20416 
  SAY 0x10c @20417 
  SAY 0x110 @20418 
  SAY 0x114 @20419 
  SAY 0x124 @20420 
  SAY 0x128 @20421 
  SAY 0x12c @20422 
  SAY 0x130 @20423 
  SAY 0x134 @20424 
  SAY 0x138 @20425 
  SAY 0x13c @20426 
  SAY 0x140 @20427 
  SAY 0x144 @20428 
  SAY 0x148 @20429 
  SAY 0x14c @20430 
  SAY 0x150 @20431 
  SAY 0x154 @20434 
  SAY 0x158 @20435 
  SAY 0x160 @20436 
  SAY 0x178 @20438 
  SAY 0x17c @20439 
  SAY 0x18c @20432 
  SAY 0x190 @20433 
  SAY 0x194 @20434 
  SAY 0x1cc @2202 

COPY ~DSotSC/CRE/DSJETLA9.cre~ ~override~ 
  SAY NAME1 @2163 
  SAY NAME2 @2163 
  SAY 0xa4  @20401 
  SAY 0xa8  @20402 
  SAY 0xac  @20404 
  SAY 0xb0  @20405 
  SAY 0xb4  @20406 
  SAY 0xb8  @20407 
  SAY 0xbc  @20408 
  SAY 0xc0  @20409 
  SAY 0xc4  @20410 
  SAY 0xc8  @20403 
  SAY 0xec  @20438 
  SAY 0xf0  @20439 
  SAY 0xf4  @20411 
  SAY 0xf8  @20412 
  SAY 0xfc  @20413 
  SAY 0x100 @20414 
  SAY 0x104 @20415 
  SAY 0x108 @20416 
  SAY 0x10c @20417 
  SAY 0x110 @20418 
  SAY 0x114 @20419 
  SAY 0x124 @20420 
  SAY 0x128 @20421 
  SAY 0x12c @20422 
  SAY 0x130 @20423 
  SAY 0x134 @20424 
  SAY 0x138 @20425 
  SAY 0x13c @20426 
  SAY 0x140 @20427 
  SAY 0x144 @20428 
  SAY 0x148 @20429 
  SAY 0x14c @20430 
  SAY 0x150 @20431 
  SAY 0x154 @20434 
  SAY 0x158 @20435 
  SAY 0x160 @20436 
  SAY 0x178 @20438 
  SAY 0x17c @20439 
  SAY 0x18c @20432 
  SAY 0x190 @20433 
  SAY 0x194 @20434 
  SAY 0x1cc @2202 

COPY ~DSotSC/CRE/DSJULES.cre~ ~override~ 
  SAY NAME1 @2203 
  SAY NAME2 @2203 

COPY_EXISTING ~KAHRK.cre~ ~override~ 
  WRITE_ASCII 0x34 ~None~ //Portrait
  WRITE_ASCII 0x3c ~None~ //Portrait
  ADD_CRE_ITEM ~SCRL8Q~ #0 #0 #0 ~UNSTEALABLE~ ~INV5~

COPY ~DSotSC/CRE/DSKALANN.cre~ ~override~ 
  SAY NAME1 @2204 
  SAY NAME2 @2204 

COPY ~DSotSC/CRE/DSKATERI.cre~ ~override~ 
  SAY NAME1 @2205 
  SAY NAME2 @2205 

COPY ~DSotSC/CRE/DSKEIRI5.cre~ ~override~ 
  SAY NAME1 @2206 
  SAY NAME2 @2206 
  SAY 0xa4 ~~ [KEIRI01] 
  SAY 0xa8 ~~ [KEIRI34] 
  SAY 0xac ~~ [KEIRI04] 
  SAY 0xb0 ~~ [KEIRI05] 
  SAY 0xb4 ~~ [KEIRI06] 
  SAY 0xb8 ~~ [KEIRI07] 
  SAY 0xbc ~~ [KEIRI08] 
  SAY 0xc0 ~~ [KEIRI09] 
  SAY 0xc4 ~~ [KEIRI10] 
  SAY 0xc8 ~~ [KEIRI03] 
  SAY 0xec ~~ [KEIRI38] 
  SAY 0xf0 ~~ [KEIRI39] 
  SAY 0xf4 ~~ [KEIRI11] 
  SAY 0xf8 ~~ [KEIRI12] 
  SAY 0xfc ~~ [KEIRI13] 
  SAY 0x100 ~~ [KEIRI14] 
  SAY 0x104 ~~ [KEIRI13] 
  SAY 0x108 ~~ [KEIRI16] 
  SAY 0x10c ~~ [KEIRI17] 
  SAY 0x110 ~~ [KEIRI18] 
  SAY 0x114 ~~ [KEIRI19] 
  SAY 0x124 ~~ [KEIRI20] 
  SAY 0x128 ~~ [KEIRI21] 
  SAY 0x12c ~~ [KEIRI22] 
  SAY 0x130 ~~ [KEIRI23] 
  SAY 0x134 ~~ [KEIRI24] 
  SAY 0x138 ~~ [KEIRI25] 
  SAY 0x13c ~~ [KEIRI26] 
  SAY 0x140 ~~ [KEIRI27] 
  SAY 0x144 ~~ [KEIRI28] 
  SAY 0x148 ~~ [KEIRI29] 
  SAY 0x14c ~~ [KEIRI30] 
  SAY 0x150 ~~ [KEIRI31] 
  SAY 0x154 ~~ [KEIRI37] 
  SAY 0x158 ~~ [KEIRI37] 
  SAY 0x160 ~~ [KEIRI36] 
  SAY 0x178 ~~ [KEIRI40] 
  SAY 0x17c ~~ [KEIRI41] 
  SAY 0x18c ~~ [KEIRI32] 
  SAY 0x190 ~~ [KEIRI33] 
  SAY 0x1cc @2245 

COPY ~DSotSC/CRE/DSKEIRI7.cre~ ~override~ 
  SAY NAME1 @2206 
  SAY NAME2 @2206 
  SAY 0xa4 ~~ [KEIRI01] 
  SAY 0xa8 ~~ [KEIRI34] 
  SAY 0xac ~~ [KEIRI04] 
  SAY 0xb0 ~~ [KEIRI05] 
  SAY 0xb4 ~~ [KEIRI06] 
  SAY 0xb8 ~~ [KEIRI07] 
  SAY 0xbc ~~ [KEIRI08] 
  SAY 0xc0 ~~ [KEIRI09] 
  SAY 0xc4 ~~ [KEIRI10] 
  SAY 0xc8 ~~ [KEIRI03] 
  SAY 0xec ~~ [KEIRI38] 
  SAY 0xf0 ~~ [KEIRI39] 
  SAY 0xf4 ~~ [KEIRI11] 
  SAY 0xf8 ~~ [KEIRI12] 
  SAY 0xfc ~~ [KEIRI13] 
  SAY 0x100 ~~ [KEIRI14] 
  SAY 0x104 ~~ [KEIRI13] 
  SAY 0x108 ~~ [KEIRI16] 
  SAY 0x10c ~~ [KEIRI17] 
  SAY 0x110 ~~ [KEIRI18] 
  SAY 0x114 ~~ [KEIRI19] 
  SAY 0x124 ~~ [KEIRI20] 
  SAY 0x128 ~~ [KEIRI21] 
  SAY 0x12c ~~ [KEIRI22] 
  SAY 0x130 ~~ [KEIRI23] 
  SAY 0x134 ~~ [KEIRI24] 
  SAY 0x138 ~~ [KEIRI25] 
  SAY 0x13c ~~ [KEIRI26] 
  SAY 0x140 ~~ [KEIRI27] 
  SAY 0x144 ~~ [KEIRI28] 
  SAY 0x148 ~~ [KEIRI29] 
  SAY 0x14c ~~ [KEIRI30] 
  SAY 0x150 ~~ [KEIRI31] 
  SAY 0x154 ~~ [KEIRI37] 
  SAY 0x158 ~~ [KEIRI37] 
  SAY 0x160 ~~ [KEIRI36] 
  SAY 0x178 ~~ [KEIRI40] 
  SAY 0x17c ~~ [KEIRI41] 
  SAY 0x18c ~~ [KEIRI32] 
  SAY 0x190 ~~ [KEIRI33] 
  SAY 0x1cc @2245 

COPY ~DSotSC/CRE/DSKENB.cre~ ~override~ 
  SAY NAME1 @2246 
  SAY NAME2 @2246 

COPY_EXISTING ~KESTOR.cre~ ~override~ 
  WRITE_SHORT 0x14 ~2300~ //XP
  WRITE_SHORT 0x24 ~56~ //HP
  WRITE_SHORT 0x26 ~56~ //max HP
  WRITE_SHORT 0x234 ~12~ //first class level
  ADD_CRE_ITEM ~LEAT08~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~

COPY_EXISTING ~KRYSTI.cre~ ~override~ 
  WRITE_SHORT 0x14 ~4750~ //XP
  WRITE_SHORT 0x24 ~63~ //HP
  WRITE_SHORT 0x26 ~63~ //max HP
  WRITE_SHORT 0x52 ~12~ //THAC0
  WRITE_SHORT 0x234 ~16~ //first class level
  ADD_CRE_ITEM ~DSDAGG01~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP
  ADD_CRE_ITEM ~DSBULL01~ #10 #0 #0 ~UNSTEALABLE~ ~QUIVER3~
  ADD_CRE_ITEM ~SCRLA5~ #0 #0 #0 ~UNSTEALABLE~ ~INV5~

COPY_EXISTING ~LAUREL.cre~ ~override~ 
  WRITE_ASCII 0x280 ~LAUREL~ //death variable

COPY_EXISTING ~LASALA.cre~ ~override~ 
  WRITE_SHORT 0x14 ~1350~ //XP
  WRITE_SHORT 0x24 ~27~ //HP
  WRITE_SHORT 0x26 ~27~ //max HP
  WRITE_ASCII 0x34 ~None~
  WRITE_ASCII 0x3c ~None~
  WRITE_SHORT 0x52 ~16~ //THAC0
  WRITE_SHORT 0x54 ~13~ //ST vs Death
  WRITE_SHORT 0x55 ~9~  //ST vs Wands
  WRITE_SHORT 0x56 ~11~  //ST vs Poly
  WRITE_SHORT 0x57 ~13~  //ST vs Breath
  WRITE_SHORT 0x58 ~10~  //ST vs Spell
  WRITE_SHORT 0x234 ~9~

COPY_EXISTING ~LASKAL.cre~ ~override~ 
  WRITE_SHORT 0x14 ~2650~ //XP
  WRITE_SHORT 0x24 ~71~ //HP
  WRITE_SHORT 0x26 ~71~ //max HP
  WRITE_SHORT 0x52 ~15~ //THAC0
  WRITE_SHORT 0x54 ~5~ //ST vs Death
  WRITE_SHORT 0x55 ~9~  //ST vs Wands
  WRITE_SHORT 0x56 ~8~  //ST vs Poly
  WRITE_SHORT 0x57 ~11~  //ST vs Breath
  WRITE_SHORT 0x58 ~10~  //ST vs Spell
  WRITE_SHORT 0x234 ~12~
  WRITE_ASCII 0x258 ~DRUID14T~
  ADD_CRE_ITEM ~DSTDRUID~ #0 #0 #0 ~UNSTEALABLE~ ~HELMET~
  ADD_CRE_ITEM ~DSTHRARM~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSSTAF01~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP
  ADD_CRE_ITEM ~DSSWD02~ #0 #0 #0 ~UNSTEALABLE~ ~INV1~

COPY ~DSotSC/CRE/DSLENNAN.cre~ ~override~ 
  SAY NAME1 @2247 
  SAY NAME2 @2247 

COPY ~DSotSC/CRE/DSLICH.cre~ ~override~ 
  SAY NAME1 @2248 
  SAY NAME2 @2248 
  SAY 0xa4 ~~ [LICH1] 
  SAY 0x100 ~~ [LICH2] 

COPY ~DSotSC/CRE/DSLICH1.cre~ ~override~ 
  SAY NAME1 @2248 
  SAY NAME2 @2248 
  SAY 0x100 ~~ [LICH2] 

COPY ~DSotSC/CRE/DSLICH2.cre~ ~override~ 
  SAY NAME1 @2248 
  SAY NAME2 @2248 
  SAY 0x100 ~~ [LICH2] 

COPY ~DSotSC/CRE/DSLICH3.cre~ ~override~ 
  SAY NAME1 @2248 
  SAY NAME2 @2248 
  SAY 0x100 ~~ [LICH2] 

COPY ~DSotSC/CRE/DSMAID.cre~ ~override~ 
  SAY NAME1 @2251 
  SAY NAME2 @2251 

COPY ~DSotSC/CRE/DSMEGAN.cre~ ~override~ 
  SAY NAME1 @2252 
  SAY NAME2 @2252 

COPY_EXISTING ~MOLKAR.cre~ ~override~ 
  WRITE_SHORT 0x14 ~1900~ //XP
  WRITE_SHORT 0x24 ~70~ //HP
  WRITE_SHORT 0x26 ~70~ //max HP
  WRITE_SHORT 0x52 ~13~ //THAC0
  WRITE_SHORT 0x54 ~8~ //ST vs Death
  WRITE_SHORT 0x55 ~10~  //ST vs Wands
  WRITE_SHORT 0x56 ~9~  //ST vs Poly
  WRITE_SHORT 0x57 ~9~  //ST vs Breath
  WRITE_SHORT 0x58 ~11~  //ST vs Spell
  WRITE_SHORT 0x234 ~9~
  ADD_CRE_ITEM ~DSSWD03~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY ~DSotSC/CRE/DSMOPPY.cre~ ~override~ 
  SAY NAME1 @2253 
  SAY NAME2 @2253 

COPY ~DSotSC/CRE/DSMORTUS.cre~ ~override~ 
  SAY NAME1 @2254 
  SAY NAME2 @2254 

COPY_EXISTING ~MORVIN.cre~ ~override~ 
  WRITE_SHORT 0x14 ~1250~ //XP
  WRITE_SHORT 0x24 ~78~ //HP
  WRITE_SHORT 0x26 ~78~ //max HP
  WRITE_SHORT 0x54 ~7~ //ST vs Death
  WRITE_SHORT 0x55 ~11~  //ST vs Wands
  WRITE_SHORT 0x56 ~10~  //ST vs Poly
  WRITE_SHORT 0x57 ~13~  //ST vs Breath
  WRITE_SHORT 0x58 ~12~  //ST vs Spell
  WRITE_SHORT 0x234 ~9~
  ADD_CRE_ITEM ~DSCRYHLM~ #0 #0 #0 ~UNSTEALABLE~ ~HELMET~
  ADD_CRE_ITEM ~DSCRYARM~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSBRACDX~ #0 #0 #0 ~UNSTEALABLE~ ~GLOVES~
  ADD_CRE_ITEM ~DSAXE03~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY_EXISTING ~MULAHE.cre~ ~override~ 
  WRITE_SHORT 0x14 ~750~ //XP
  WRITE_SHORT 0x24 ~41~ //HP
  WRITE_SHORT 0x26 ~41~ //max HP
  ADD_CRE_ITEM ~CHAN04~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSBRAC04~ #0 #0 #0 ~UNSTEALABLE~ ~GLOVES~
  ADD_CRE_ITEM ~BLUN05~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY ~DSotSC/CRE/DSNORBY.cre~ ~override~ 
  SAY NAME1 @2255 
  SAY NAME2 @2255 

COPY ~DSotSC/CRE/DSORC01.cre~ ~override~ 
  SAY NAME1 @2256 
  SAY NAME2 @2256 

COPY_EXISTING ~OGRECO.cre~ ~override~ 
  WRITE_ASCII 0x280 ~OGRECO~

COPY_EXISTING ~OSMADI.cre~ ~override~ 
  WRITE_SHORT 0x14 ~2500~ //XP
  WRITE_SHORT 0x24 ~59~ //HP
  WRITE_SHORT 0x26 ~59~ //max HP
  WRITE_SHORT 0x52 ~16~ //THAC0
  WRITE_SHORT 0x54 ~5~ //ST vs Death
  WRITE_SHORT 0x55 ~9~  //ST vs Wands
  WRITE_SHORT 0x56 ~8~  //ST vs Poly
  WRITE_SHORT 0x57 ~11~  //ST vs Breath
  WRITE_SHORT 0x58 ~10~  //ST vs Spell
  WRITE_SHORT 0x234 ~11~
  WRITE_ASCII 0x258 ~DRUID14T~
  ADD_CRE_ITEM ~LEAT15~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSBRAC02~ #0 #0 #0 ~UNSTEALABLE~ ~GLOVES~
  ADD_CRE_ITEM ~DSCLUB01~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY ~DSotSC/CRE/DSOTHO.cre~ ~override~ 
  SAY NAME1 @2257 
  SAY NAME2 @2257 

COPY ~DSotSC/CRE/DSPHANT1.cre~ ~override~ 
  SAY NAME1 @2258 
  SAY NAME2 @2258 

COPY ~DSotSC/CRE/DSPHANT2.cre~ ~override~ 
  SAY NAME1 @2258 
  SAY NAME2 @2258 

COPY ~DSotSC/CRE/DSPHANT3.cre~ ~override~ 
  SAY NAME1 @2258 
  SAY NAME2 @2258 

COPY ~DSotSC/CRE/DSPHANT4.cre~ ~override~ 
  SAY NAME1 @2258 
  SAY NAME2 @2258 

COPY ~DSotSC/CRE/DSPHANT5.cre~ ~override~ 
  SAY NAME1 @2258 
  SAY NAME2 @2258 

COPY ~DSotSC/CRE/DSPHANT6.cre~ ~override~ 
  SAY NAME1 @2258 
  SAY NAME2 @2258 

COPY_EXISTING ~RAGEFA.cre~ ~override~ 
  WRITE_SHORT 0x14 ~4000~ //XP
  WRITE_SHORT 0x24 ~42~ //HP
  WRITE_SHORT 0x26 ~42~ //max HP
  WRITE_SHORT 0x52 ~15~ //THAC0
  WRITE_SHORT 0x54 ~10~ //ST vs Death
  WRITE_SHORT 0x55 ~5~  //ST vs Wands
  WRITE_SHORT 0x56 ~7~  //ST vs Poly
  WRITE_SHORT 0x57 ~9~  //ST vs Breath
  WRITE_SHORT 0x58 ~6~  //ST vs Spell
  WRITE_SHORT 0x234 ~14~
  ADD_CRE_ITEM ~DSROBE04~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSAMUL10~ #0 #0 #0 ~UNSTEALABLE~ ~AMULET~
  ADD_CRE_ITEM ~DAGG02~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP
  ADD_CRE_ITEM ~SCRL9N~ #0 #0 #0 ~UNSTEALABLE~ ~INV1~

COPY_EXISTING ~RIELTA.cre~ ~override~ 
  WRITE_SHORT 0x14 ~1200~ //XP
  WRITE_SHORT 0x24 ~66~ //HP
  WRITE_SHORT 0x26 ~66~ //max HP
  WRITE_SHORT 0x52 ~16~ //THAC0
  WRITE_SHORT 0x54 ~10~ //ST vs Death
  WRITE_SHORT 0x55 ~5~  //ST vs Wands
  WRITE_SHORT 0x56 ~7~  //ST vs Poly
  WRITE_SHORT 0x57 ~9~  //ST vs Breath
  WRITE_SHORT 0x58 ~6~  //ST vs Spell
  WRITE_SHORT 0x234 ~16~
  ADD_CRE_ITEM ~DSCROWN1~ #0 #0 #0 ~UNSTEALABLE~ ~HELMET~
  ADD_CRE_ITEM ~DSKORIM~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSBRAC01~ #0 #0 #0 ~UNSTEALABLE~ ~GLOVES~
  ADD_CRE_ITEM ~DSRNG06~ #0 #0 #0 ~UNSTEALABLE~ ~LRING~
  ADD_CRE_ITEM ~DSAMUL07~ #0 #0 #0 ~UNSTEALABLE~ ~AMULET~
  ADD_CRE_ITEM ~DSDAGG03~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP
  ADD_CRE_ITEM ~SCRL9U~ #0 #0 #0 ~UNSTEALABLE~ ~INV1~

COPY ~DSotSC/CRE/DSROACH.cre~ ~override~ 
  SAY NAME1 @2259 
  SAY NAME2 @2259 

COPY_EXISTING ~SEMAJ.cre~ ~override~ 
  WRITE_SHORT 0x14 ~1000~ //XP
  WRITE_SHORT 0x24 ~62~ //HP
  WRITE_SHORT 0x26 ~62~ //max HP
  WRITE_ASCII 0x34 ~None~
  WRITE_ASCII 0x3c ~None~
  WRITE_SHORT 0x52 ~13~ //THAC0
  WRITE_SHORT 0x54 ~3~ //ST vs Death
  WRITE_SHORT 0x55 ~1~  //ST vs Wands
  WRITE_SHORT 0x56 ~1~  //ST vs Poly
  WRITE_SHORT 0x57 ~2~  //ST vs Breath
  WRITE_SHORT 0x58 ~4~  //ST vs Spell
  WRITE_SHORT 0x234 ~14~
  ADD_CRE_ITEM ~DSCROWN1~ #0 #0 #0 ~UNSTEALABLE~ ~HELMET~
  ADD_CRE_ITEM ~DSROBE06~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSNEMSTF~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY ~DSotSC/CRE/DSSHAR.cre~ ~override~ 
  SAY NAME1 @2260 
  SAY NAME2 @2260 

COPY ~DSotSC/CRE/DSSKEEZ.cre~ ~override~ 
  SAY NAME1 @2261 
  SAY NAME2 @2261 
  SAY 0xa4  @20501
  SAY 0xbc  @20508
  SAY 0xc0  @20509
  SAY 0xc4  @20510
  SAY 0xc8  @20503
  SAY 0xec  @20538
  SAY 0xf0  @20539
  SAY 0xf4  @20511
  SAY 0xf8  @20512
  SAY 0xfc  @20513
  SAY 0x100 @20514 
  SAY 0x104 @20515 
  SAY 0x108 @20516 
  SAY 0x10c @20517 
  SAY 0x110 @20518 
  SAY 0x114 @20519 
  SAY 0x124 @20520 
  SAY 0x128 @20521 
  SAY 0x12c @20522 
  SAY 0x130 @20523 
  SAY 0x134 @20524 
  SAY 0x138 @20525 
  SAY 0x13c @20526 
  SAY 0x178 @20540 
  SAY 0x1cc @2286 

COPY ~DSotSC/CRE/DSSKEEZ6.cre~ ~override~ 
  SAY NAME1 @2261 
  SAY NAME2 @2261 
  SAY 0xa4  @20501
  SAY 0xbc  @20508
  SAY 0xc0  @20509
  SAY 0xc4  @20510
  SAY 0xc8  @20503
  SAY 0xec  @20538
  SAY 0xf0  @20539
  SAY 0xf4  @20511
  SAY 0xf8  @20512
  SAY 0xfc  @20513
  SAY 0x100 @20514 
  SAY 0x104 @20515 
  SAY 0x108 @20516 
  SAY 0x10c @20517 
  SAY 0x110 @20518 
  SAY 0x114 @20519 
  SAY 0x124 @20520 
  SAY 0x128 @20521 
  SAY 0x12c @20522 
  SAY 0x130 @20523 
  SAY 0x134 @20524 
  SAY 0x138 @20525 
  SAY 0x13c @20526 
  SAY 0x178 @20540 
  SAY 0x1cc @2286 

COPY_EXISTING ~SLYTHE.cre~ ~override~ 
  WRITE_SHORT 0x14 ~6000~ //XP
  WRITE_SHORT 0x24 ~115~ //HP
  WRITE_SHORT 0x26 ~115~ //max HP
  WRITE_SHORT 0x54 ~5~ //ST vs Death
  WRITE_SHORT 0x55 ~6~  //ST vs Wands
  WRITE_SHORT 0x56 ~6~  //ST vs Poly
  WRITE_SHORT 0x57 ~5~  //ST vs Breath
  WRITE_SHORT 0x58 ~6~  //ST vs Spell
  ADD_CRE_ITEM ~LEAT08~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSAMUL06~ #0 #0 #0 ~UNSTEALABLE~ ~AMULET~
  ADD_CRE_ITEM ~DSSWD01~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP
  ADD_CRE_ITEM ~DSXBOW01~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON2~
  ADD_CRE_ITEM ~BOLT04~ #20 #0 #0 ~UNSTEALABLE~ ~QUIVER1~
  ADD_CRE_ITEM ~DSBOLT01~ #20 #0 #0 ~UNSTEALABLE~ ~QUIVER2~

COPY ~DSotSC/CRE/DSSPEC.cre~ ~override~ 
  SAY NAME1 @2287 
  SAY NAME2 @2287 

COPY_EXISTING ~TAKIYAH.cre~ ~override~ 
  WRITE_SHORT 0x14 ~1000~ //XP
  WRITE_SHORT 0x24 ~68~ //HP
  WRITE_SHORT 0x26 ~68~ //max HP
  WRITE_SHORT 0x234 ~10~
  WRITE_ASCII 0x280 ~TAKIYAH~
  ADD_CRE_ITEM ~DSTHRARM~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~DSBOOT01~ #0 #0 #0 ~UNSTEALABLE~ ~BOOTS~
  ADD_CRE_ITEM ~DSSPERF~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY ~DSotSC/CRE/DSTHOMIC.cre~ ~override~ 
  SAY NAME1 @2288 
  SAY NAME2 @2288 

COPY ~DSotSC/CRE/DSTORQUI.cre~ ~override~ 
  SAY NAME1 @2289 
  SAY NAME2 @2289 

COPY ~DSotSC/CRE/DSTRUNGL.cre~ ~override~ 
  SAY NAME1 @2290 
  SAY NAME2 @2290 

COPY_EXISTING ~VAX.cre~ ~override~ 
  ADD_CRE_ITEM ~DSAXE02~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON1~ EQUIP

COPY ~DSotSC/CRE/DSVAMPF1.cre~ ~override~ 
  SAY NAME1 @2291 
  SAY NAME2 @2291 

COPY ~DSotSC/CRE/DSVAMPF2.cre~ ~override~ 
  SAY NAME1 @2291 
  SAY NAME2 @2291 

COPY ~DSotSC/CRE/DSVAMPM.cre~ ~override~ 
  SAY NAME1 @2292 
  SAY NAME2 @2292 

COPY ~DSotSC/CRE/DSWELF1.cre~ ~override~ 
  SAY NAME1 @2293 
  SAY NAME2 @2293 

COPY ~DSotSC/CRE/DSWELF1E.cre~ ~override~ 
  SAY NAME1 @2294 
  SAY NAME2 @2294 

COPY ~DSotSC/CRE/DSWELF2.cre~ ~override~ 
  SAY NAME1 @2293 
  SAY NAME2 @2293 

COPY ~DSotSC/CRE/DSWELF2E.cre~ ~override~ 
  SAY NAME1 @2294 
  SAY NAME2 @2294 

COPY ~DSotSC/CRE/DSWOLF1.cre~ ~override~ 
  SAY NAME1 @2295 
  SAY NAME2 @2295 

COPY_EXISTING ~ZAL.cre~ ~override~ 
  ADD_CRE_ITEM ~DSSPERD~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON4~

COPY_EXISTING ~ZEELA.cre~ ~override~ 
  ADD_CRE_ITEM ~PLAT01~ #0 #0 #0 ~UNSTEALABLE~ ~ARMOR~
  ADD_CRE_ITEM ~BRAC02~ #0 #0 #0 ~UNSTEALABLE~ ~GLOVES~
  ADD_CRE_ITEM ~DSSTAF06~ #0 #0 #0 ~UNSTEALABLE~ ~WEAPON2~
  ADD_CRE_ITEM ~POTN08~ #0 #0 #0 ~UNSTEALABLE~ ~QITEM1~

COPY ~DSotSC/CRE/SKELLORD.cre~ ~override~ 
  SAY NAME1 @2296 
  SAY NAME2 @2296 

COPY ~DSotSC/CRE/KOBLDGD.cre~ ~override~ 
  SAY NAME1 @2297
  SAY NAME2 @2297


COPY ~DSotSC/CRE/GNOLL02.CRE~  ~override~
COPY ~DSotSC/CRE/GNOLL03.CRE~  ~override~
COPY ~DSotSC/CRE/GNOLL3.CRE~   ~override~
COPY ~DSotSC/CRE/SKELET02.CRE~ ~override~
COPY ~DSotSC/CRE/KOBOLD02.CRE~ ~override~
COPY ~DSotSC/CRE/KOBOLD11.CRE~ ~override~

ACTION_IF ( ~%LANGUAGE%~ STRING_COMPARE_CASE ~english~ ) = 0
THEN BEGIN
  COPY + ~DSotSC/Language/english/Ogg~ ~DSotSC/OGG~
END

ACTION_IF ( ~%LANGUAGE%~ STRING_COMPARE_CASE ~german~ ) = 0
THEN BEGIN
  COPY + ~DSotSC/Language/german/Ogg~ ~DSotSC/OGG~
END

ACTION_IF ( ~%LANGUAGE%~ STRING_COMPARE_CASE ~polish~ ) = 0
THEN BEGIN
  COPY + ~DSotSC/Language/english/Ogg~ ~DSotSC/OGG~
END

ACTION_IF ( ~%LANGUAGE%~ STRING_COMPARE_CASE ~russian~ ) = 0
THEN BEGIN
  COPY + ~DSotSC/Language/english/Ogg~ ~DSotSC/OGG~
END


PRINT @2298

/////////////////////////
// Dialogs to compile  //
/////////////////////////

COMPILE ~DSotSC/D~ 

PRINT @2299


///////////////////////////
//   Build new areas     //
///////////////////////////

COPY ~DSotSC/AREA/nostring~ ~override~

COPY ~DSotSC/AREA/DSC010.are~ ~override~
  SAY 0x1f4c @2302 


// Modify existing areas

// AR3200 gets new travel region and new entrance for DSC020
COPY_EXISTING ~AR3200.ARE~ ~override~
 WRITE_ASCII 0x94 ~AR3200~   //area script - just to make sure it's set 'cuz we need it anyway
 READ_LONG  0x54  "actors_offset"
 READ_SHORT 0x58  "actors_num"
 READ_SHORT 0x5a  "infotrig_num"
 READ_LONG  0x5c  "infotrig_offset"
 READ_LONG  0x60  "spawns_offset"
 READ_LONG  0x64  "spawns_num"
 READ_LONG  0x68  "entrances_offset"
 READ_LONG  0x6c  "entrances_num"
 READ_LONG  0x70  "cont_offset"
 READ_SHORT 0x74  "cont_num"
 READ_SHORT 0x76  "items_num"
 READ_LONG  0x78  "items_offset"
 READ_LONG  0x7c  "vert_offset"
 READ_SHORT 0x80  "vert_num"
 READ_SHORT 0x82  "amb_num"
 READ_LONG  0x84  "amb_offset"
 READ_LONG  0x88  "vars_offset"
 READ_LONG  0x8c  "vars_num"
 READ_LONG  0xa0  "expbmp_offset"
 READ_LONG  0xa4  "doors_num"
 READ_LONG  0xa8  "doors_offset"
 READ_LONG  0xac  "anim_num"
 READ_LONG  0xb0  "anim_offset"
 READ_LONG  0xb4  "tiled_num"
 READ_LONG  0xb8  "tiled_offset"
 READ_LONG  0xbc  "songs_offset"
 READ_LONG  0xc0  "rest_spawns_offset"
 READ_LONG  0xc4  "automap_offset"
 READ_LONG  0xc8  "automap_num"

//adding new trigger ************************************************
   SET offset = ("%infotrig_offset%"+0xc4*"%infotrig_num%")
   INSERT_BYTES offset 0xc4
   WRITE_ASCII offset ~Tranc020~
   WRITE_SHORT (offset+0x20) 2            //travel trigger
   WRITE_SHORT (offset+0x22) 3018         //bounding box
   WRITE_SHORT (offset+0x24) 640          //bounding box
   WRITE_SHORT (offset+0x26) 3101         //bounding box
   WRITE_SHORT (offset+0x28) 721          //bounding box
   WRITE_SHORT (offset+0x2a) 4            //vertices number
   WRITE_LONG  (offset+0x2c) "%vert_num%" //first vertex index
   WRITE_LONG  (offset+0x34) 34           //cursor
   WRITE_ASCII (offset+0x38) ~DSC020~     //destination area
   WRITE_ASCII (offset+0x40) ~EXIT3200~   //destination area's entrance name
   WRITE_LONG  (offset+0x60) 0x00000004   //flags - party required
   WRITE_SHORT (offset+0x70) 3054         //Trap location X
   WRITE_SHORT (offset+0x72) 687          //Trap location Y
   SET "infotrig_num"="%infotrig_num%"+1
   WRITE_SHORT 0x5a  "%infotrig_num%"

   SET "info_ext"=0xc4
   PATCH_IF ("%actors_offset%">="%infotrig_offset%") BEGIN
     "actors_offset"="%actors_offset%"+"%info_ext%"
     WRITE_LONG  0x54 "%actors_offset%"
   END
   PATCH_IF ("%spawns_offset%">="%infotrig_offset%") BEGIN
     "spawns_offset"="%spawns_offset%"+"%info_ext%"
     WRITE_LONG  0x60  "%spawns_offset%"
   END
   PATCH_IF ("%entrances_offset%">="%infotrig_offset%") BEGIN
     "entrances_offset"="%entrances_offset%"+"%info_ext%"
     WRITE_LONG  0x68  "%entrances_offset%"
   END
   PATCH_IF ("%cont_offset%">="%infotrig_offset%") BEGIN
     "cont_offset"="%cont_offset%"+"%info_ext%"
     WRITE_LONG  0x70  "%cont_offset%"
   END
   PATCH_IF ("%items_offset%">="%infotrig_offset%") BEGIN
     "items_offset"="%items_offset%"+"%info_ext%"
     WRITE_LONG  0x78  "%items_offset%"
   END
   PATCH_IF ("%vert_offset%">="%infotrig_offset%") BEGIN
     "vert_offset"="%vert_offset%"+"%info_ext%"
     WRITE_LONG  0x7c  "%vert_offset%"
   END
   PATCH_IF ("%amb_offset%">="%infotrig_offset%") BEGIN
     "amb_offset"="%amb_offset%"+"%info_ext%"
     WRITE_LONG  0x84  "%amb_offset%"
   END
   PATCH_IF ("%vars_offset%">="%infotrig_offset%") BEGIN
     "vars_offset"="%vars_offset%"+"%info_ext%"
     WRITE_LONG  0x88  "%vars_offset%"
   END
   PATCH_IF ("%expbmp_offset%">="%infotrig_offset%") BEGIN
     "expbmp_offset"="%expbmp_offset%"+"%info_ext%"
     WRITE_LONG  0xa0  "%expbmp_offset%"
   END
   PATCH_IF ("%doors_offset%">="%infotrig_offset%") BEGIN
     "doors_offset"="%doors_offset%"+"%info_ext%"
     WRITE_LONG  0xa8  "%doors_offset%"
   END
   PATCH_IF ("%anim_offset%">="%infotrig_offset%") BEGIN
     "anim_offset"="%anim_offset%"+"%info_ext%"
     WRITE_LONG  0xb0  "%anim_offset%"
   END
   PATCH_IF ("%tiled_offset%">="%infotrig_offset%") BEGIN
     "tiled_offset"="%tiled_offset%"+"%info_ext%"
     WRITE_LONG  0xb8  "%tiled_offset%"
   END
   PATCH_IF ("%songs_offset%">="%infotrig_offset%") BEGIN
     "songs_offset"="%songs_offset%"+"%info_ext%"
     WRITE_LONG  0xbc  "%songs_offset%"
   END
   PATCH_IF ("%rest_spawns_offset%">="%infotrig_offset%") BEGIN
     "rest_spawns_offset"="%rest_spawns_offset%"+"%info_ext%"
     WRITE_LONG  0xc0  "%rest_spawns_offset%"
   END
   PATCH_IF ("%automap_offset%">="%infotrig_offset%") BEGIN
     "automap_offset"="%automap_offset%"+"%info_ext%"
     WRITE_LONG  0xc4  "%automap_offset%"
   END

  //adding 4 new vertices for triggers
   SET offset = ("%vert_offset%"+0x04*"%vert_num%")
   INSERT_BYTES offset (0x04*4)
   WRITE_SHORT  offset      3018
   WRITE_SHORT  (offset+2)  721
   WRITE_SHORT  (offset+4)  3101
   WRITE_SHORT  (offset+6)  721
   WRITE_SHORT  (offset+8)  3101
   WRITE_SHORT  (offset+10) 640
   WRITE_SHORT  (offset+12) 3018
   WRITE_SHORT  (offset+14) 640
   SET "vert_num"="%vert_num%"+4
   WRITE_SHORT 0x80  "%vert_num%"

   SET "info_ext"=0x04*4
   PATCH_IF ("%actors_offset%">="%vert_offset%") BEGIN
     "actors_offset"="%actors_offset%"+"%info_ext%"
     WRITE_LONG  0x54 "%actors_offset%"
   END
   PATCH_IF ("%spawns_offset%">="%vert_offset%") BEGIN
     "spawns_offset"="%spawns_offset%"+"%info_ext%"
     WRITE_LONG  0x60  "%spawns_offset%"
   END
   PATCH_IF ("%entrances_offset%">="%vert_offset%") BEGIN
     "entrances_offset"="%entrances_offset%"+"%info_ext%"
     WRITE_LONG  0x68  "%entrances_offset%"
   END
   PATCH_IF ("%cont_offset%">="%vert_offset%") BEGIN
     "cont_offset"="%cont_offset%"+"%info_ext%"
     WRITE_LONG  0x70  "%cont_offset%"
   END
   PATCH_IF ("%items_offset%">="%vert_offset%") BEGIN
     "items_offset"="%items_offset%"+"%info_ext%"
     WRITE_LONG  0x78  "%items_offset%"
   END
   PATCH_IF ("%infotrig_offset%">="%vert_offset%") BEGIN
     "infotrig_offset"="%infotrig_offset%"+"%info_ext%"
     WRITE_LONG  0x5c  "%infotrig_offset%"
   END
   PATCH_IF ("%amb_offset%">="%vert_offset%") BEGIN
     "amb_offset"="%amb_offset%"+"%info_ext%"
     WRITE_LONG  0x84  "%amb_offset%"
   END
   PATCH_IF ("%vars_offset%">="%vert_offset%") BEGIN
     "vars_offset"="%vars_offset%"+"%info_ext%"
     WRITE_LONG  0x88  "%vars_offset%"
   END
   PATCH_IF ("%expbmp_offset%">="%vert_offset%") BEGIN
     "expbmp_offset"="%expbmp_offset%"+"%info_ext%"
     WRITE_LONG  0xa0  "%expbmp_offset%"
   END
   PATCH_IF ("%doors_offset%">="%vert_offset%") BEGIN
     "doors_offset"="%doors_offset%"+"%info_ext%"
     WRITE_LONG  0xa8  "%doors_offset%"
   END
   PATCH_IF ("%anim_offset%">="%vert_offset%") BEGIN
     "anim_offset"="%anim_offset%"+"%info_ext%"
     WRITE_LONG  0xb0  "%anim_offset%"
   END
   PATCH_IF ("%tiled_offset%">="%vert_offset%") BEGIN
     "tiled_offset"="%tiled_offset%"+"%info_ext%"
     WRITE_LONG  0xb8  "%tiled_offset%"
   END
   PATCH_IF ("%songs_offset%">="%vert_offset%") BEGIN
     "songs_offset"="%songs_offset%"+"%info_ext%"
     WRITE_LONG  0xbc  "%songs_offset%"
   END
   PATCH_IF ("%rest_spawns_offset%">="%vert_offset%") BEGIN
     "rest_spawns_offset"="%rest_spawns_offset%"+"%info_ext%"
     WRITE_LONG  0xc0  "%rest_spawns_offset%"
   END
   PATCH_IF ("%automap_offset%">="%vert_offset%") BEGIN
     "automap_offset"="%automap_offset%"+"%info_ext%"
     WRITE_LONG  0xc4  "%automap_offset%"
   END

 //adding 1 new entrance
 SET offset = ("%entrances_offset%"+0x68*"%entrances_num%")
 INSERT_BYTES offset 0x68
 WRITE_ASCII  offset      ~Exitc020~
 WRITE_SHORT  (offset+0x20)  3071     //X
 WRITE_SHORT  (offset+0x22)  771      //Y
 WRITE_LONG   (offset+0x24)  "15"      // facing
 SET "entrances_num"="%entrances_num%"+1
 WRITE_LONG 0x6c  "%entrances_num%"

 SET "info_ext"=0x68
 PATCH_IF ("%actors_offset%">="%entrances_offset%") BEGIN
   "actors_offset"="%actors_offset%"+"%info_ext%"
   WRITE_LONG  0x54 "%actors_offset%"
 END
 PATCH_IF ("%spawns_offset%">="%entrances_offset%") BEGIN
   "spawns_offset"="%spawns_offset%"+"%info_ext%"
   WRITE_LONG  0x60  "%spawns_offset%"
 END
 PATCH_IF ("%vert_offset%">="%entrances_offset%") BEGIN
   "vert_offset"="%vert_offset%"+"%info_ext%"
   WRITE_LONG  0x7c  "%vert_offset%"
 END
 PATCH_IF ("%cont_offset%">="%entrances_offset%") BEGIN
   "cont_offset"="%cont_offset%"+"%info_ext%"
   WRITE_LONG  0x70  "%cont_offset%"
 END
 PATCH_IF ("%items_offset%">="%entrances_offset%") BEGIN
   "items_offset"="%items_offset%"+"%info_ext%"
   WRITE_LONG  0x78  "%items_offset%"
 END
 PATCH_IF ("%infotrig_offset%">="%entrances_offset%") BEGIN
   "infotrig_offset"="%infotrig_offset%"+"%info_ext%"
   WRITE_LONG  0x5c  "%infotrig_offset%"
 END
 PATCH_IF ("%amb_offset%">="%entrances_offset%") BEGIN
   "amb_offset"="%amb_offset%"+"%info_ext%"
   WRITE_LONG  0x84  "%amb_offset%"
 END
 PATCH_IF ("%vars_offset%">="%entrances_offset%") BEGIN
   "vars_offset"="%vars_offset%"+"%info_ext%"
   WRITE_LONG  0x88  "%vars_offset%"
 END
 PATCH_IF ("%expbmp_offset%">="%entrances_offset%") BEGIN
   "expbmp_offset"="%expbmp_offset%"+"%info_ext%"
   WRITE_LONG  0xa0  "%expbmp_offset%"
 END
 PATCH_IF ("%doors_offset%">="%entrances_offset%") BEGIN
   "doors_offset"="%doors_offset%"+"%info_ext%"
   WRITE_LONG  0xa8  "%doors_offset%"
 END
 PATCH_IF ("%anim_offset%">="%entrances_offset%") BEGIN
   "anim_offset"="%anim_offset%"+"%info_ext%"
   WRITE_LONG  0xb0  "%anim_offset%"
 END
 PATCH_IF ("%tiled_offset%">="%entrances_offset%") BEGIN
   "tiled_offset"="%tiled_offset%"+"%info_ext%"
   WRITE_LONG  0xb8  "%tiled_offset%"
 END
 PATCH_IF ("%songs_offset%">="%entrances_offset%") BEGIN
   "songs_offset"="%songs_offset%"+"%info_ext%"
   WRITE_LONG  0xbc  "%songs_offset%"
 END
 PATCH_IF ("%rest_spawns_offset%">="%entrances_offset%") BEGIN
   "rest_spawns_offset"="%rest_spawns_offset%"+"%info_ext%"
   WRITE_LONG  0xc0  "%rest_spawns_offset%"
 END
 PATCH_IF ("%automap_offset%">="%entrances_offset%") BEGIN
   "automap_offset"="%automap_offset%"+"%info_ext%"
   WRITE_LONG  0xc4  "%automap_offset%"
 END

BUT_ONLY_IF_IT_CHANGES  //********************************************************  ~AR3200.are~

// AR4600 gets new travel region and new entrance for DSC006
COPY_EXISTING ~AR4600.ARE~ ~override~
 WRITE_ASCII 0x94 ~AR4600~   //area script - just to make sure it's set 'cuz we need it anyway
 READ_LONG  0x54  "actors_offset"
 READ_SHORT 0x58  "actors_num"
 READ_SHORT 0x5a  "infotrig_num"
 READ_LONG  0x5c  "infotrig_offset"
 READ_LONG  0x60  "spawns_offset"
 READ_LONG  0x64  "spawns_num"
 READ_LONG  0x68  "entrances_offset"
 READ_LONG  0x6c  "entrances_num"
 READ_LONG  0x70  "cont_offset"
 READ_SHORT 0x74  "cont_num"
 READ_SHORT 0x76  "items_num"
 READ_LONG  0x78  "items_offset"
 READ_LONG  0x7c  "vert_offset"
 READ_SHORT 0x80  "vert_num"
 READ_SHORT 0x82  "amb_num"
 READ_LONG  0x84  "amb_offset"
 READ_LONG  0x88  "vars_offset"
 READ_LONG  0x8c  "vars_num"
 READ_LONG  0xa0  "expbmp_offset"
 READ_LONG  0xa4  "doors_num"
 READ_LONG  0xa8  "doors_offset"
 READ_LONG  0xac  "anim_num"
 READ_LONG  0xb0  "anim_offset"
 READ_LONG  0xb4  "tiled_num"
 READ_LONG  0xb8  "tiled_offset"
 READ_LONG  0xbc  "songs_offset"
 READ_LONG  0xc0  "rest_spawns_offset"
 READ_LONG  0xc4  "automap_offset"
 READ_LONG  0xc8  "automap_num"

//adding new trigger ************************************************
   SET offset = ("%infotrig_offset%"+0xc4*"%infotrig_num%")
   INSERT_BYTES offset 0xc4
   WRITE_ASCII offset ~Tranc006~
   WRITE_SHORT (offset+0x20) 2            //travel trigger
   WRITE_SHORT (offset+0x22) 3803         //bounding box
   WRITE_SHORT (offset+0x24) 547          //bounding box
   WRITE_SHORT (offset+0x26) 3895         //bounding box
   WRITE_SHORT (offset+0x28) 669          //bounding box
   WRITE_SHORT (offset+0x2a) 9            //vertices number
   WRITE_LONG  (offset+0x2c) "%vert_num%" //first vertex index
   WRITE_LONG  (offset+0x34) 28           //cursor
   WRITE_ASCII (offset+0x38) ~DSC006~     //destination area
   WRITE_ASCII (offset+0x40) ~EXIT4600~   //destination area's entrance name
   WRITE_LONG  (offset+0x60) 0x000000000   //flags - none
   WRITE_SHORT (offset+0x70) 3839         //Trap location X
   WRITE_SHORT (offset+0x72) 622          //Trap location Y
   SET "infotrig_num"="%infotrig_num%"+1
   WRITE_SHORT 0x5a  "%infotrig_num%"

   SET "info_ext"=0xc4
   PATCH_IF ("%actors_offset%">="%infotrig_offset%") BEGIN
     "actors_offset"="%actors_offset%"+"%info_ext%"
     WRITE_LONG  0x54 "%actors_offset%"
   END
   PATCH_IF ("%spawns_offset%">="%infotrig_offset%") BEGIN
     "spawns_offset"="%spawns_offset%"+"%info_ext%"
     WRITE_LONG  0x60  "%spawns_offset%"
   END
   PATCH_IF ("%entrances_offset%">="%infotrig_offset%") BEGIN
     "entrances_offset"="%entrances_offset%"+"%info_ext%"
     WRITE_LONG  0x68  "%entrances_offset%"
   END
   PATCH_IF ("%cont_offset%">="%infotrig_offset%") BEGIN
     "cont_offset"="%cont_offset%"+"%info_ext%"
     WRITE_LONG  0x70  "%cont_offset%"
   END
   PATCH_IF ("%items_offset%">="%infotrig_offset%") BEGIN
     "items_offset"="%items_offset%"+"%info_ext%"
     WRITE_LONG  0x78  "%items_offset%"
   END
   PATCH_IF ("%vert_offset%">="%infotrig_offset%") BEGIN
     "vert_offset"="%vert_offset%"+"%info_ext%"
     WRITE_LONG  0x7c  "%vert_offset%"
   END
   PATCH_IF ("%amb_offset%">="%infotrig_offset%") BEGIN
     "amb_offset"="%amb_offset%"+"%info_ext%"
     WRITE_LONG  0x84  "%amb_offset%"
   END
   PATCH_IF ("%vars_offset%">="%infotrig_offset%") BEGIN
     "vars_offset"="%vars_offset%"+"%info_ext%"
     WRITE_LONG  0x88  "%vars_offset%"
   END
   PATCH_IF ("%expbmp_offset%">="%infotrig_offset%") BEGIN
     "expbmp_offset"="%expbmp_offset%"+"%info_ext%"
     WRITE_LONG  0xa0  "%expbmp_offset%"
   END
   PATCH_IF ("%doors_offset%">="%infotrig_offset%") BEGIN
     "doors_offset"="%doors_offset%"+"%info_ext%"
     WRITE_LONG  0xa8  "%doors_offset%"
   END
   PATCH_IF ("%anim_offset%">="%infotrig_offset%") BEGIN
     "anim_offset"="%anim_offset%"+"%info_ext%"
     WRITE_LONG  0xb0  "%anim_offset%"
   END
   PATCH_IF ("%tiled_offset%">="%infotrig_offset%") BEGIN
     "tiled_offset"="%tiled_offset%"+"%info_ext%"
     WRITE_LONG  0xb8  "%tiled_offset%"
   END
   PATCH_IF ("%songs_offset%">="%infotrig_offset%") BEGIN
     "songs_offset"="%songs_offset%"+"%info_ext%"
     WRITE_LONG  0xbc  "%songs_offset%"
   END
   PATCH_IF ("%rest_spawns_offset%">="%infotrig_offset%") BEGIN
     "rest_spawns_offset"="%rest_spawns_offset%"+"%info_ext%"
     WRITE_LONG  0xc0  "%rest_spawns_offset%"
   END
   PATCH_IF ("%automap_offset%">="%infotrig_offset%") BEGIN
     "automap_offset"="%automap_offset%"+"%info_ext%"
     WRITE_LONG  0xc4  "%automap_offset%"
   END

  //adding 9 new vertices for triggers
   SET offset = ("%vert_offset%"+0x04*"%vert_num%")
   INSERT_BYTES offset (0x04*9)
   WRITE_SHORT  offset      3840
   WRITE_SHORT  (offset+2)  669
   WRITE_SHORT  (offset+4)  3895
   WRITE_SHORT  (offset+6)  609
   WRITE_SHORT  (offset+8)  3868
   WRITE_SHORT  (offset+10) 571
   WRITE_SHORT  (offset+12) 3840
   WRITE_SHORT  (offset+14) 547
   WRITE_SHORT  (offset+16) 3822
   WRITE_SHORT  (offset+18) 548
   WRITE_SHORT  (offset+20) 3804
   WRITE_SHORT  (offset+22) 558
   WRITE_SHORT  (offset+24) 3803
   WRITE_SHORT  (offset+26) 593
   WRITE_SHORT  (offset+28) 3815
   WRITE_SHORT  (offset+30) 623
   WRITE_SHORT  (offset+32) 3823
   WRITE_SHORT  (offset+34) 639
   SET "vert_num"="%vert_num%"+9
   WRITE_SHORT 0x80  "%vert_num%"

   SET "info_ext"=0x04*9
   PATCH_IF ("%actors_offset%">="%vert_offset%") BEGIN
     "actors_offset"="%actors_offset%"+"%info_ext%"
     WRITE_LONG  0x54 "%actors_offset%"
   END
   PATCH_IF ("%spawns_offset%">="%vert_offset%") BEGIN
     "spawns_offset"="%spawns_offset%"+"%info_ext%"
     WRITE_LONG  0x60  "%spawns_offset%"
   END
   PATCH_IF ("%entrances_offset%">="%vert_offset%") BEGIN
     "entrances_offset"="%entrances_offset%"+"%info_ext%"
     WRITE_LONG  0x68  "%entrances_offset%"
   END
   PATCH_IF ("%cont_offset%">="%vert_offset%") BEGIN
     "cont_offset"="%cont_offset%"+"%info_ext%"
     WRITE_LONG  0x70  "%cont_offset%"
   END
   PATCH_IF ("%items_offset%">="%vert_offset%") BEGIN
     "items_offset"="%items_offset%"+"%info_ext%"
     WRITE_LONG  0x78  "%items_offset%"
   END
   PATCH_IF ("%infotrig_offset%">="%vert_offset%") BEGIN
     "infotrig_offset"="%infotrig_offset%"+"%info_ext%"
     WRITE_LONG  0x5c  "%infotrig_offset%"
   END
   PATCH_IF ("%amb_offset%">="%vert_offset%") BEGIN
     "amb_offset"="%amb_offset%"+"%info_ext%"
     WRITE_LONG  0x84  "%amb_offset%"
   END
   PATCH_IF ("%vars_offset%">="%vert_offset%") BEGIN
     "vars_offset"="%vars_offset%"+"%info_ext%"
     WRITE_LONG  0x88  "%vars_offset%"
   END
   PATCH_IF ("%expbmp_offset%">="%vert_offset%") BEGIN
     "expbmp_offset"="%expbmp_offset%"+"%info_ext%"
     WRITE_LONG  0xa0  "%expbmp_offset%"
   END
   PATCH_IF ("%doors_offset%">="%vert_offset%") BEGIN
     "doors_offset"="%doors_offset%"+"%info_ext%"
     WRITE_LONG  0xa8  "%doors_offset%"
   END
   PATCH_IF ("%anim_offset%">="%vert_offset%") BEGIN
     "anim_offset"="%anim_offset%"+"%info_ext%"
     WRITE_LONG  0xb0  "%anim_offset%"
   END
   PATCH_IF ("%tiled_offset%">="%vert_offset%") BEGIN
     "tiled_offset"="%tiled_offset%"+"%info_ext%"
     WRITE_LONG  0xb8  "%tiled_offset%"
   END
   PATCH_IF ("%songs_offset%">="%vert_offset%") BEGIN
     "songs_offset"="%songs_offset%"+"%info_ext%"
     WRITE_LONG  0xbc  "%songs_offset%"
   END
   PATCH_IF ("%rest_spawns_offset%">="%vert_offset%") BEGIN
     "rest_spawns_offset"="%rest_spawns_offset%"+"%info_ext%"
     WRITE_LONG  0xc0  "%rest_spawns_offset%"
   END
   PATCH_IF ("%automap_offset%">="%vert_offset%") BEGIN
     "automap_offset"="%automap_offset%"+"%info_ext%"
     WRITE_LONG  0xc4  "%automap_offset%"
   END

 //adding 2 new entrance
 SET offset = ("%entrances_offset%"+0x68*"%entrances_num%")
 INSERT_BYTES offset 0x68
 WRITE_ASCII  offset      ~Exitc006~
 WRITE_SHORT  (offset+0x20)  3923     //X
 WRITE_SHORT  (offset+0x22)  680      //Y
 WRITE_LONG   (offset+0x24)  "14"     // facing
 INSERT_BYTES offset 0x68
 WRITE_ASCII  offset      ~Exitc010~
 WRITE_SHORT  (offset+0x20)  5018     //X
 WRITE_SHORT  (offset+0x22)  1283     //Y
 WRITE_LONG   (offset+0x24)  "4"      // facing
 SET "entrances_num"="%entrances_num%"+2
 WRITE_LONG 0x6c  "%entrances_num%"

 SET "info_ext"=0x68*2
 PATCH_IF ("%actors_offset%">="%entrances_offset%") BEGIN
   "actors_offset"="%actors_offset%"+"%info_ext%"
   WRITE_LONG  0x54 "%actors_offset%"
 END
 PATCH_IF ("%spawns_offset%">="%entrances_offset%") BEGIN
   "spawns_offset"="%spawns_offset%"+"%info_ext%"
   WRITE_LONG  0x60  "%spawns_offset%"
 END
 PATCH_IF ("%vert_offset%">="%entrances_offset%") BEGIN
   "vert_offset"="%vert_offset%"+"%info_ext%"
   WRITE_LONG  0x7c  "%vert_offset%"
 END
 PATCH_IF ("%cont_offset%">="%entrances_offset%") BEGIN
   "cont_offset"="%cont_offset%"+"%info_ext%"
   WRITE_LONG  0x70  "%cont_offset%"
 END
 PATCH_IF ("%items_offset%">="%entrances_offset%") BEGIN
   "items_offset"="%items_offset%"+"%info_ext%"
   WRITE_LONG  0x78  "%items_offset%"
 END
 PATCH_IF ("%infotrig_offset%">="%entrances_offset%") BEGIN
   "infotrig_offset"="%infotrig_offset%"+"%info_ext%"
   WRITE_LONG  0x5c  "%infotrig_offset%"
 END
 PATCH_IF ("%amb_offset%">="%entrances_offset%") BEGIN
   "amb_offset"="%amb_offset%"+"%info_ext%"
   WRITE_LONG  0x84  "%amb_offset%"
 END
 PATCH_IF ("%vars_offset%">="%entrances_offset%") BEGIN
   "vars_offset"="%vars_offset%"+"%info_ext%"
   WRITE_LONG  0x88  "%vars_offset%"
 END
 PATCH_IF ("%expbmp_offset%">="%entrances_offset%") BEGIN
   "expbmp_offset"="%expbmp_offset%"+"%info_ext%"
   WRITE_LONG  0xa0  "%expbmp_offset%"
 END
 PATCH_IF ("%doors_offset%">="%entrances_offset%") BEGIN
   "doors_offset"="%doors_offset%"+"%info_ext%"
   WRITE_LONG  0xa8  "%doors_offset%"
 END
 PATCH_IF ("%anim_offset%">="%entrances_offset%") BEGIN
   "anim_offset"="%anim_offset%"+"%info_ext%"
   WRITE_LONG  0xb0  "%anim_offset%"
 END
 PATCH_IF ("%tiled_offset%">="%entrances_offset%") BEGIN
   "tiled_offset"="%tiled_offset%"+"%info_ext%"
   WRITE_LONG  0xb8  "%tiled_offset%"
 END
 PATCH_IF ("%songs_offset%">="%entrances_offset%") BEGIN
   "songs_offset"="%songs_offset%"+"%info_ext%"
   WRITE_LONG  0xbc  "%songs_offset%"
 END
 PATCH_IF ("%rest_spawns_offset%">="%entrances_offset%") BEGIN
   "rest_spawns_offset"="%rest_spawns_offset%"+"%info_ext%"
   WRITE_LONG  0xc0  "%rest_spawns_offset%"
 END
 PATCH_IF ("%automap_offset%">="%entrances_offset%") BEGIN
   "automap_offset"="%automap_offset%"+"%info_ext%"
   WRITE_LONG  0xc4  "%automap_offset%"
 END

BUT_ONLY_IF_IT_CHANGES  //********************************************************  ~AR4600.are~

// AR8703 gets new entrance from DSC037
COPY_EXISTING ~AR8703.ARE~ ~override~
 READ_LONG  0x54  "actors_offset"
 READ_SHORT 0x58  "actors_num"
 READ_SHORT 0x5a  "infotrig_num"
 READ_LONG  0x5c  "infotrig_offset"
 READ_LONG  0x60  "spawns_offset"
 READ_LONG  0x64  "spawns_num"
 READ_LONG  0x68  "entrances_offset"
 READ_LONG  0x6c  "entrances_num"
 READ_LONG  0x70  "cont_offset"
 READ_SHORT 0x74  "cont_num"
 READ_SHORT 0x76  "items_num"
 READ_LONG  0x78  "items_offset"
 READ_LONG  0x7c  "vert_offset"
 READ_SHORT 0x80  "vert_num"
 READ_SHORT 0x82  "amb_num"
 READ_LONG  0x84  "amb_offset"
 READ_LONG  0x88  "vars_offset"
 READ_LONG  0x8c  "vars_num"
 READ_LONG  0xa0  "expbmp_offset"
 READ_LONG  0xa4  "doors_num"
 READ_LONG  0xa8  "doors_offset"
 READ_LONG  0xac  "anim_num"
 READ_LONG  0xb0  "anim_offset"
 READ_LONG  0xb4  "tiled_num"
 READ_LONG  0xb8  "tiled_offset"
 READ_LONG  0xbc  "songs_offset"
 READ_LONG  0xc0  "rest_spawns_offset"
 READ_LONG  0xc4  "automap_offset"
 READ_LONG  0xc8  "automap_num"

 //adding 1 new entrance
 SET offset = ("%entrances_offset%"+0x68*"%entrances_num%")
 INSERT_BYTES offset 0x68
 WRITE_ASCII  offset      ~Exitc037~
 WRITE_SHORT  (offset+0x20)  991      //X
 WRITE_SHORT  (offset+0x22)  370      //Y
 WRITE_LONG   (offset+0x24)  "4"      // facing
 SET "entrances_num"="%entrances_num%"+1
 WRITE_LONG 0x6c  "%entrances_num%"

 SET "info_ext"=0x68
 PATCH_IF ("%actors_offset%">="%entrances_offset%") BEGIN
   "actors_offset"="%actors_offset%"+"%info_ext%"
   WRITE_LONG  0x54 "%actors_offset%"
 END
 PATCH_IF ("%spawns_offset%">="%entrances_offset%") BEGIN
   "spawns_offset"="%spawns_offset%"+"%info_ext%"
   WRITE_LONG  0x60  "%spawns_offset%"
 END
 PATCH_IF ("%vert_offset%">="%entrances_offset%") BEGIN
   "vert_offset"="%vert_offset%"+"%info_ext%"
   WRITE_LONG  0x7c  "%vert_offset%"
 END
 PATCH_IF ("%cont_offset%">="%entrances_offset%") BEGIN
   "cont_offset"="%cont_offset%"+"%info_ext%"
   WRITE_LONG  0x70  "%cont_offset%"
 END
 PATCH_IF ("%items_offset%">="%entrances_offset%") BEGIN
   "items_offset"="%items_offset%"+"%info_ext%"
   WRITE_LONG  0x78  "%items_offset%"
 END
 PATCH_IF ("%infotrig_offset%">="%entrances_offset%") BEGIN
   "infotrig_offset"="%infotrig_offset%"+"%info_ext%"
   WRITE_LONG  0x5c  "%infotrig_offset%"
 END
 PATCH_IF ("%amb_offset%">="%entrances_offset%") BEGIN
   "amb_offset"="%amb_offset%"+"%info_ext%"
   WRITE_LONG  0x84  "%amb_offset%"
 END
 PATCH_IF ("%vars_offset%">="%entrances_offset%") BEGIN
   "vars_offset"="%vars_offset%"+"%info_ext%"
   WRITE_LONG  0x88  "%vars_offset%"
 END
 PATCH_IF ("%expbmp_offset%">="%entrances_offset%") BEGIN
   "expbmp_offset"="%expbmp_offset%"+"%info_ext%"
   WRITE_LONG  0xa0  "%expbmp_offset%"
 END
 PATCH_IF ("%doors_offset%">="%entrances_offset%") BEGIN
   "doors_offset"="%doors_offset%"+"%info_ext%"
   WRITE_LONG  0xa8  "%doors_offset%"
 END
 PATCH_IF ("%anim_offset%">="%entrances_offset%") BEGIN
   "anim_offset"="%anim_offset%"+"%info_ext%"
   WRITE_LONG  0xb0  "%anim_offset%"
 END
 PATCH_IF ("%tiled_offset%">="%entrances_offset%") BEGIN
   "tiled_offset"="%tiled_offset%"+"%info_ext%"
   WRITE_LONG  0xb8  "%tiled_offset%"
 END
 PATCH_IF ("%songs_offset%">="%entrances_offset%") BEGIN
   "songs_offset"="%songs_offset%"+"%info_ext%"
   WRITE_LONG  0xbc  "%songs_offset%"
 END
 PATCH_IF ("%rest_spawns_offset%">="%entrances_offset%") BEGIN
   "rest_spawns_offset"="%rest_spawns_offset%"+"%info_ext%"
   WRITE_LONG  0xc0  "%rest_spawns_offset%"
 END
 PATCH_IF ("%automap_offset%">="%entrances_offset%") BEGIN
   "automap_offset"="%automap_offset%"+"%info_ext%"
   WRITE_LONG  0xc4  "%automap_offset%"
 END

BUT_ONLY_IF_IT_CHANGES  //********************************************************  ~AR8703.are~

// AR8900 gets new entrance from DSC001
COPY_EXISTING ~AR8900.ARE~ ~override~
 READ_LONG  0x54  "actors_offset"
 READ_SHORT 0x58  "actors_num"
 READ_SHORT 0x5a  "infotrig_num"
 READ_LONG  0x5c  "infotrig_offset"
 READ_LONG  0x60  "spawns_offset"
 READ_LONG  0x64  "spawns_num"
 READ_LONG  0x68  "entrances_offset"
 READ_LONG  0x6c  "entrances_num"
 READ_LONG  0x70  "cont_offset"
 READ_SHORT 0x74  "cont_num"
 READ_SHORT 0x76  "items_num"
 READ_LONG  0x78  "items_offset"
 READ_LONG  0x7c  "vert_offset"
 READ_SHORT 0x80  "vert_num"
 READ_SHORT 0x82  "amb_num"
 READ_LONG  0x84  "amb_offset"
 READ_LONG  0x88  "vars_offset"
 READ_LONG  0x8c  "vars_num"
 READ_LONG  0xa0  "expbmp_offset"
 READ_LONG  0xa4  "doors_num"
 READ_LONG  0xa8  "doors_offset"
 READ_LONG  0xac  "anim_num"
 READ_LONG  0xb0  "anim_offset"
 READ_LONG  0xb4  "tiled_num"
 READ_LONG  0xb8  "tiled_offset"
 READ_LONG  0xbc  "songs_offset"
 READ_LONG  0xc0  "rest_spawns_offset"
 READ_LONG  0xc4  "automap_offset"
 READ_LONG  0xc8  "automap_num"

 //adding 1 new entrance
 SET offset = ("%entrances_offset%"+0x68*"%entrances_num%")
 INSERT_BYTES offset 0x68
 WRITE_ASCII  offset      ~Exitc001~
 WRITE_SHORT  (offset+0x20)  4702     //X
 WRITE_SHORT  (offset+0x22)  873      //Y
 WRITE_LONG   (offset+0x24)  "3"      // facing
 SET "entrances_num"="%entrances_num%"+1
 WRITE_LONG 0x6c  "%entrances_num%"

 SET "info_ext"=0x68
 PATCH_IF ("%actors_offset%">="%entrances_offset%") BEGIN
   "actors_offset"="%actors_offset%"+"%info_ext%"
   WRITE_LONG  0x54 "%actors_offset%"
 END
 PATCH_IF ("%spawns_offset%">="%entrances_offset%") BEGIN
   "spawns_offset"="%spawns_offset%"+"%info_ext%"
   WRITE_LONG  0x60  "%spawns_offset%"
 END
 PATCH_IF ("%vert_offset%">="%entrances_offset%") BEGIN
   "vert_offset"="%vert_offset%"+"%info_ext%"
   WRITE_LONG  0x7c  "%vert_offset%"
 END
 PATCH_IF ("%cont_offset%">="%entrances_offset%") BEGIN
   "cont_offset"="%cont_offset%"+"%info_ext%"
   WRITE_LONG  0x70  "%cont_offset%"
 END
 PATCH_IF ("%items_offset%">="%entrances_offset%") BEGIN
   "items_offset"="%items_offset%"+"%info_ext%"
   WRITE_LONG  0x78  "%items_offset%"
 END
 PATCH_IF ("%infotrig_offset%">="%entrances_offset%") BEGIN
   "infotrig_offset"="%infotrig_offset%"+"%info_ext%"
   WRITE_LONG  0x5c  "%infotrig_offset%"
 END
 PATCH_IF ("%amb_offset%">="%entrances_offset%") BEGIN
   "amb_offset"="%amb_offset%"+"%info_ext%"
   WRITE_LONG  0x84  "%amb_offset%"
 END
 PATCH_IF ("%vars_offset%">="%entrances_offset%") BEGIN
   "vars_offset"="%vars_offset%"+"%info_ext%"
   WRITE_LONG  0x88  "%vars_offset%"
 END
 PATCH_IF ("%expbmp_offset%">="%entrances_offset%") BEGIN
   "expbmp_offset"="%expbmp_offset%"+"%info_ext%"
   WRITE_LONG  0xa0  "%expbmp_offset%"
 END
 PATCH_IF ("%doors_offset%">="%entrances_offset%") BEGIN
   "doors_offset"="%doors_offset%"+"%info_ext%"
   WRITE_LONG  0xa8  "%doors_offset%"
 END
 PATCH_IF ("%anim_offset%">="%entrances_offset%") BEGIN
   "anim_offset"="%anim_offset%"+"%info_ext%"
   WRITE_LONG  0xb0  "%anim_offset%"
 END
 PATCH_IF ("%tiled_offset%">="%entrances_offset%") BEGIN
   "tiled_offset"="%tiled_offset%"+"%info_ext%"
   WRITE_LONG  0xb8  "%tiled_offset%"
 END
 PATCH_IF ("%songs_offset%">="%entrances_offset%") BEGIN
   "songs_offset"="%songs_offset%"+"%info_ext%"
   WRITE_LONG  0xbc  "%songs_offset%"
 END
 PATCH_IF ("%rest_spawns_offset%">="%entrances_offset%") BEGIN
   "rest_spawns_offset"="%rest_spawns_offset%"+"%info_ext%"
   WRITE_LONG  0xc0  "%rest_spawns_offset%"
 END
 PATCH_IF ("%automap_offset%">="%entrances_offset%") BEGIN
   "automap_offset"="%automap_offset%"+"%info_ext%"
   WRITE_LONG  0xc4  "%automap_offset%"
 END

BUT_ONLY_IF_IT_CHANGES  //********************************************************  ~AR8900.are~


PRINT @2303

//////////////////////////////////////
// Compile and append scripts       //
//////////////////////////////////////

EXTEND_BOTTOM ~AR3200.bcs~ ~DSotSC/BAF/Area/AR3200.BAF~

COPY_EXISTING ~AR3400.are~ ~override/AR3400.are~
 WRITE_ASCII 0x94 ~AR3400~
BUT_ONLY_IF_IT_CHANGES
EXTEND_BOTTOM ~AR3400.BCS~ ~DSotSC/BAF/Area/AR3400.BAF~

COPY_EXISTING ~AR3499.are~ ~override~
 WRITE_ASCII 0x94 ~AR3499~
BUT_ONLY_IF_IT_CHANGES
EXTEND_BOTTOM ~AR3499.bcs~ ~DSotSC/BAF/Area/AR3499.BAF~
EXTEND_BOTTOM ~AR3498.bcs~ ~DSotSC/BAF/Area/AR3498.BAF~
EXTEND_BOTTOM ~AR3700.bcs~ ~DSotSC/BAF/Area/AR3700.BAF~

COPY_EXISTING ~AR3701.are~ ~override/AR3701.are~
 WRITE_ASCII 0x94 ~AR3701~
BUT_ONLY_IF_IT_CHANGES
EXTEND_BOTTOM ~AR3701.bcs~ ~DSotSC/BAF/Area/AR3701.BAF~

COPY_EXISTING ~AR3704.are~ ~override/AR3704.are~
 WRITE_ASCII 0x94 ~AR3704~
BUT_ONLY_IF_IT_CHANGES
EXTEND_BOTTOM ~AR3704.bcs~ ~DSotSC/BAF/Area/AR3704.BAF~

COPY_EXISTING ~AR3705.are~ ~override/AR3705.are~
 WRITE_ASCII 0x94 ~AR3705~
BUT_ONLY_IF_IT_CHANGES
EXTEND_BOTTOM ~AR3705.bcs~ ~DSotSC/BAF/Area/AR3705.BAF~

EXTEND_BOTTOM ~AR3800.BCS~ ~DSotSC/BAF/Area/AR3800.BAF~

COPY_EXISTING ~AR4403.are~ ~override/AR4403.are~
 WRITE_ASCII 0x94 ~AR4403~
BUT_ONLY_IF_IT_CHANGES
EXTEND_BOTTOM ~AR4403.BCS~ ~DSotSC/BAF/Area/AR4403.BAF~

EXTEND_BOTTOM ~AR4405.BCS~ ~DSotSC/BAF/Area/AR4405.BAF~
EXTEND_BOTTOM ~AR4600.bcs~ ~DSotSC/BAF/Area/AR4600.BAF~

COPY_EXISTING ~AR6515.are~ ~override/AR6515.are~
 WRITE_ASCII 0x94 ~AR6515~
BUT_ONLY_IF_IT_CHANGES
EXTEND_BOTTOM ~AR6515.bcs~ ~DSotSC/BAF/Area/AR6515.BAF~

EXTEND_BOTTOM ~AR6600.bcs~ ~DSotSC/BAF/Area/AR6600.BAF~
EXTEND_BOTTOM ~AR6700.bcs~ ~DSotSC/BAF/Area/AR6700.BAF~

COPY_EXISTING ~AR6701.are~ ~override/AR6701.are~
 WRITE_ASCII 0x94 ~AR6701~
BUT_ONLY_IF_IT_CHANGES
EXTEND_BOTTOM ~AR6701.bcs~ ~DSotSC/BAF/Area/AR6701.BAF~

EXTEND_BOTTOM ~AR6704.bcs~ ~DSotSC/BAF/Area/AR6704.BAF~

COPY_EXISTING ~AR6707.are~ ~override/AR6707.are~
 WRITE_ASCII 0x94 ~AR6707~
BUT_ONLY_IF_IT_CHANGES
EXTEND_BOTTOM ~AR6707.bcs~ ~DSotSC/BAF/Area/AR6707.BAF~

EXTEND_BOTTOM ~AR6757.bcs~ ~DSotSC/BAF/Area/AR6757.BAF~

EXTEND_BOTTOM ~AR6800.bcs~ ~DSotSC/BAF/Area/AR6800.BAF~
 REPLACE ~999999~ @2304

EXTEND_BOTTOM ~AR7211.bcs~ ~DSotSC/BAF/Area/AR7211.BAF~
EXTEND_BOTTOM ~AR7407.bcs~ ~DSotSC/BAF/Area/AR7407.BAF~
EXTEND_BOTTOM ~AR7408.bcs~ ~DSotSC/BAF/Area/AR7408.BAF~
EXTEND_BOTTOM ~AR8400.bcs~ ~DSotSC/BAF/Area/AR8400.BAF~
EXTEND_BOTTOM ~AR8401.bcs~ ~DSotSC/BAF/Area/AR8401.BAF~
EXTEND_BOTTOM ~AR8402.bcs~ ~DSotSC/BAF/Area/AR8402.BAF~
EXTEND_BOTTOM ~AR8600.bcs~ ~DSotSC/BAF/Area/AR8600.BAF~
EXTEND_BOTTOM ~AR8602.bcs~ ~DSotSC/BAF/Area/AR8602.BAF~
EXTEND_BOTTOM ~AR8603.bcs~ ~DSotSC/BAF/Area/AR8603.BAF~
EXTEND_BOTTOM ~AR8605.bcs~ ~DSotSC/BAF/Area/AR8605.BAF~
EXTEND_BOTTOM ~AR8700.bcs~ ~DSotSC/BAF/Area/AR8700.BAF~
EXTEND_BOTTOM ~AR8900.bcs~ ~DSotSC/BAF/Area/AR8900.BAF~

COPY_EXISTING ~AR9200.are~ ~override/AR9200.are~
 WRITE_ASCII 0x94 ~AR9200~
BUT_ONLY_IF_IT_CHANGES
EXTEND_BOTTOM ~AR9200.bcs~ ~DSotSC/BAF/Area/AR9200.BAF~

EXTEND_BOTTOM ~AR9302.bcs~ ~DSotSC/BAF/Area/AR9302.BAF~
EXTEND_BOTTOM ~AR9501.bcs~ ~DSotSC/BAF/Area/AR9501.BAF~
EXTEND_BOTTOM ~AR9600.bcs~ ~DSotSC/BAF/Area/AR9600.BAF~
EXTEND_BOTTOM ~AR9700.BCS~ ~DSotSC/BAF/Area/AR9700.BAF~

COMPILE ~DSotSC/BAF~
    USING ~DSotSC/Language/%s/baf.tra~

//  Add areas

APPEND ~mastarea.2da~
~DSC001  value
DSC002  value
DSC003  value
DSC004  value
DSC005  value
DSC006  value
DSC007  value
DSC009  value
DSC010  value
DSC011  value
DSC012  value
DSC013  value
DSC014  value
DSC015  value
DSC016  value
DSC017  value
DSC018  value
DSC019  value
DSC020  value
DSC021  value
DSC023  value
DSC024  value
DSC025  value
DSC026  value
DSC027  value
DSC028  value
DSC029  value
DSC030  value
DSC031  value
DSC032  value
DSC033  value
DSC034  value
DSC035  value
DSC036  value~
UNLESS ~DSC001~

//////////////////////////////////
//   Other 2DA files to update  //
//////////////////////////////////

APPEND ~PDIALOG.2DA~
~JETLAYA      JETLAP             JETLAJ            ***            ***                ***                ***                 *** 
CUCHOINNEACH CUCHOINP           CUCHOINJ          ***            ***                ***                ***                 *** 
CONCHOBHAIR  CONCHOP            CONCHOJ           ***            ***                ***                ***                 *** 
FERTHGIL     FERTHP             FERTHJ            ***            ***                ***                ***                 ***
SKEEZER      SKEEZP             SKEEZJ            ***            ***                ***                ***                 *** 
BARDO        BARDOP             BARDOJ            ***            ***                ***                ***                 *** 
DSBUB        BUBP               BUBJ              ***            ***                ***                ***                 *** 
KEIRIA       KEIRIP             KEIRIJ            ***            ***                ***                ***                 ***~
UNLESS ~JETLAYA~


COPY ~dsotSC/chptxt-9.2DA~ ~override~
 REPLACE ~99990~ @2305
 REPLACE ~99991~ @2306

AT_INTERACTIVE_EXIT ~dsotSC/DSAreas.bat~
AT_INTERACTIVE_UNINSTALL ~dsotSC/DSUninstaller.bat~
