BACKUP ~ArmorsRobes/backup~
AUTHOR ~Razfallow (razfallow@sigil.cz)~

LANGUAGE ~Cesky~
         ~cesky~
         ~ArmorsRobes/czech/setup.tra~
LANGUAGE ~English~
         ~english~
         ~ArmorsRobes/english/setup.tra~

BEGIN @01

ACTION_IF FILE_EXISTS ~ArmorsRobes/Readme_%LANGUAGE%.txt~ THEN BEGIN
  AT_INTERACTIVE_EXIT ~VIEW ArmorsRobes/Readme_%LANGUAGE%.txt~
END ELSE BEGIN
  AT_INTERACTIVE_EXIT ~VIEW ArmorsRobes/Readme_English.txt~
END

COPY ~ArmorsRobes/bam~ ~override~
COPY ~ArmorsRobes/wav~ ~override~
COPY ~ArmorsRobes/itm/RZleat01.itm~ ~override/RZleat01.itm~
     SAY 0x08 @1001
     SAY 0x0c @1001
     SAY 0x50 @1002
     SAY 0x54 @1002
COPY ~ArmorsRobes/itm/RZleat02.itm~ ~override/RZleat02.itm~
     SAY 0x08 @1001
     SAY 0x0c @1003
     SAY 0x50 @1002
     SAY 0x54 @1004
COPY ~ArmorsRobes/itm/RZleat04.itm~ ~override/RZleat04.itm~
     SAY 0x08 @1007
     SAY 0x0c @1007
     SAY 0x50 @1008
     SAY 0x54 @1008
COPY ~ArmorsRobes/itm/RZleat05.itm~ ~override/RZleat05.itm~
     SAY 0x08 @1007
     SAY 0x0c @1009
     SAY 0x50 @1008
     SAY 0x54 @1010
COPY ~ArmorsRobes/itm/RZchan01.itm~ ~override/RZchan01.itm~
     SAY 0x08 @1013
     SAY 0x0c @1013
     SAY 0x50 @1014
     SAY 0x54 @1014
COPY ~ArmorsRobes/itm/RZchan02.itm~ ~override/RZchan02.itm~
     SAY 0x08 @1013
     SAY 0x0c @1015
     SAY 0x50 @1014
     SAY 0x54 @1016
COPY ~ArmorsRobes/itm/RZchan04.itm~ ~override/RZchan04.itm~
     SAY 0x08 @1013
     SAY 0x0c @1019
     SAY 0x50 @1014
     SAY 0x54 @1020
COPY ~ArmorsRobes/itm/RZchan05.itm~ ~override/RZchan05.itm~
     SAY 0x08 @1013
     SAY 0x0c @1021
     SAY 0x50 @1014
     SAY 0x54 @1022
COPY ~ArmorsRobes/itm/RZclck01.itm~ ~override/RZclck01.itm~
     SAY 0x08 @1023
     SAY 0x0c @1025
     SAY 0x50 @1024
     SAY 0x54 @1026
COPY ~ArmorsRobes/itm/RZclck02.itm~ ~override/RZclck02.itm~
     SAY 0x08 @1023
     SAY 0x0c @1029
     SAY 0x50 @1024
     SAY 0x54 @1030
COPY ~ArmorsRobes/itm/RZclck03.itm~ ~override/RZclck03.itm~
     SAY 0x08 @1023
     SAY 0x0c @1027
     SAY 0x50 @1024
     SAY 0x54 @1028
COPY ~ArmorsRobes/itm/RZclck04.itm~ ~override/RZclck04.itm~
     SAY 0x08 @1023
     SAY 0x0c @1031
     SAY 0x50 @1024
     SAY 0x54 @1032
COPY ~ArmorsRobes/itm/RZclck05.itm~ ~override/RZclck05.itm~
     SAY 0x08 @1023
     SAY 0x0c @1033
     SAY 0x50 @1024
     SAY 0x54 @1034

COPY_EXISTING ~strahan.cre~ ~override~
     READ_LONG 0x35c "slot_off"
     READ_LONG 0x360 "item_off"
     READ_LONG 0x364 "item_num"
               WRITE_LONG 0x364 ("%item_num%" + 1)
               WRITE_LONG 0x35c ("%slot_off%" + 0x14)
               INSERT_BYTES (("%item_off%") + (0x14 * ("%item_num%"))) 0x14
               WRITE_ASCII (("%item_off%") + (0x14 * ("%item_num%"))) ~RZCLCK01~
               WRITE_LONG  ("%slot_off%" + 0x14 + 0x02) ("%item_num%")

COPY_EXISTING ~sdmage.cre~ ~override~
     READ_LONG 0x35c "slot_off"
     READ_LONG 0x360 "item_off"
     READ_LONG 0x364 "item_num"
               WRITE_LONG 0x364 ("%item_num%" + 1)
               WRITE_LONG 0x35c ("%slot_off%" + 0x14)
               INSERT_BYTES (("%item_off%") + (0x14 * ("%item_num%"))) 0x14
               WRITE_ASCII (("%item_off%") + (0x14 * ("%item_num%"))) ~RZCLCK02~
               WRITE_LONG  ("%slot_off%" + 0x14 + 0x02) ("%item_num%")

COPY_EXISTING ~cboss.cre~ ~override~
     READ_LONG 0x35c "slot_off"
     READ_LONG 0x360 "item_off"
     READ_LONG 0x364 "item_num"
               WRITE_LONG 0x364 ("%item_num%" + 1)
               WRITE_LONG 0x35c ("%slot_off%" + 0x14)
               INSERT_BYTES (("%item_off%") + (0x14 * ("%item_num%"))) 0x14
               WRITE_ASCII (("%item_off%") + (0x14 * ("%item_num%"))) ~RZCLCK04~
               WRITE_LONG  ("%slot_off%" + 0x14 + 0x02) ("%item_num%")
     
COPY_EXISTING ~hezobol.cre~ ~override~
     READ_LONG 0x35c "slot_off"
     READ_LONG 0x360 "item_off"
     READ_LONG 0x364 "item_num"
               WRITE_LONG 0x364 ("%item_num%" + 1)
               WRITE_LONG 0x35c ("%slot_off%" + 0x14)
               INSERT_BYTES (("%item_off%") + (0x14 * ("%item_num%"))) 0x14
               WRITE_ASCII (("%item_off%") + (0x14 * ("%item_num%"))) ~RZCLCK05~
               WRITE_LONG  ("%slot_off%" + 0x14 + 0x02) ("%item_num%")

COPY_EXISTING ~bathug02.cre~ ~override~
              ~bathug02.cre~ ~override~
              ~bathug05.cre~ ~override~
              ~bathug08.cre~ ~override~
              ~krystall.cre~ ~override~
              ~thugb1b.cre~ ~override~
              ~thugb1e.cre~ ~override~
              ~sdsentry.cre~ ~override~
              ~gathug02.cre~ ~override~
              ~gathug05.cre~ ~override~
              ~gathug08.cre~ ~override~
     READ_LONG 0x35c "slot_off"
     READ_LONG 0x360 "item_off"
     READ_LONG 0x364 "item_num"
               WRITE_LONG 0x364 ("%item_num%" + 1)
               WRITE_LONG 0x35c ("%slot_off%" + 0x14)
               INSERT_BYTES (("%item_off%") + (0x14 * ("%item_num%"))) 0x14
               WRITE_ASCII (("%item_off%") + (0x14 * ("%item_num%"))) ~RZLEAT01~
               WRITE_LONG  ("%slot_off%" + 0x14 + 0x02) ("%item_num%")

COPY_EXISTING ~ratbone.cre~ ~override~
              ~thugoe.cre~ ~override~
     READ_LONG 0x35c "slot_off"
     READ_LONG 0x360 "item_off"
     READ_LONG 0x364 "item_num"
               WRITE_LONG 0x364 ("%item_num%" + 1)
               WRITE_LONG 0x35c ("%slot_off%" + 0x14)
               INSERT_BYTES (("%item_off%") + (0x14 * ("%item_num%"))) 0x14
               WRITE_ASCII (("%item_off%") + (0x14 * ("%item_num%"))) ~RZLEAT04~
               WRITE_LONG  ("%slot_off%" + 0x14 + 0x02) ("%item_num%")

COPY_EXISTING ~gangldr.cre~ ~override~
     READ_LONG 0x35c "slot_off"
     READ_LONG 0x360 "item_off"
     READ_LONG 0x364 "item_num"
               WRITE_LONG 0x364 ("%item_num%" + 1)
               WRITE_LONG 0x35c ("%slot_off%" + 0x14)
               INSERT_BYTES (("%item_off%") + (0x14 * ("%item_num%"))) 0x14
               WRITE_ASCII (("%item_off%") + (0x14 * ("%item_num%"))) ~RZLEAT02~
               WRITE_LONG  ("%slot_off%" + 0x14 + 0x02) ("%item_num%")
               
COPY_EXISTING ~wernet.cre~ ~override~
     READ_LONG 0x35c "slot_off"
     READ_LONG 0x360 "item_off"
     READ_LONG 0x364 "item_num"
               WRITE_LONG 0x364 ("%item_num%" + 1)
               WRITE_LONG 0x35c ("%slot_off%" + 0x14)
               INSERT_BYTES (("%item_off%") + (0x14 * ("%item_num%"))) 0x14
               WRITE_ASCII (("%item_off%") + (0x14 * ("%item_num%"))) ~RZLEAT05~
               WRITE_LONG  ("%slot_off%" + 0x14 + 0x02) ("%item_num%")
               
COPY_EXISTING ~crstgrd.cre~ ~override~
              ~harslav.cre~ ~override~
     READ_LONG 0x35c "slot_off"
     READ_LONG 0x360 "item_off"
     READ_LONG 0x364 "item_num"
               WRITE_LONG 0x364 ("%item_num%" + 1)
               WRITE_LONG 0x35c ("%slot_off%" + 0x14)
               INSERT_BYTES (("%item_off%") + (0x14 * ("%item_num%"))) 0x14
               WRITE_ASCII (("%item_off%") + (0x14 * ("%item_num%"))) ~RZCHAN01~
               WRITE_LONG  ("%slot_off%" + 0x14 + 0x02) ("%item_num%")
               
COPY_EXISTING ~crstcapt.cre~ ~override~
              ~sarge.cre~ ~override~
     READ_LONG 0x35c "slot_off"
     READ_LONG 0x360 "item_off"
     READ_LONG 0x364 "item_num"
               WRITE_LONG 0x364 ("%item_num%" + 1)
               WRITE_LONG 0x35c ("%slot_off%" + 0x14)
               INSERT_BYTES (("%item_off%") + (0x14 * ("%item_num%"))) 0x14
               WRITE_ASCII (("%item_off%") + (0x14 * ("%item_num%"))) ~RZCHAN04~
               WRITE_LONG  ("%slot_off%" + 0x14 + 0x02) ("%item_num%")
               
COPY_EXISTING ~skatch.cre~ ~override~
     READ_LONG 0x35c "slot_off"
     READ_LONG 0x360 "item_off"
     READ_LONG 0x364 "item_num"
               WRITE_LONG 0x364 ("%item_num%" + 1)
               WRITE_LONG 0x35c ("%slot_off%" + 0x14)
               INSERT_BYTES (("%item_off%") + (0x14 * ("%item_num%"))) 0x14
               WRITE_ASCII (("%item_off%") + (0x14 * ("%item_num%"))) ~RZCHAN05~
               WRITE_LONG  ("%slot_off%" + 0x14 + 0x02) ("%item_num%")
               
COPY_EXISTING ~quint.sto~ ~override~
              ~gaerien.sto~ ~override~
     READ_LONG 0x2c "buy_off"
     READ_LONG 0x34 "sell_off"
     READ_LONG 0x38 "sell_num"
     READ_LONG 0x70 "cure_off"
               WRITE_LONG 0x38 ("%sell_num%" + 2)
               WRITE_LONG 0x2c (("%buy_off%") + 2 * 0x58)
               WRITE_LONG 0x70 (("%cure_off%") + 2 * 0x58)
               INSERT_BYTES (("%sell_off%") + 0x58 * ("%sell_num%")) 0x58
               WRITE_ASCII (("%sell_off%") + 0x58 * ("%sell_num%")) ~RZLEAT01~
               WRITE_LONG (("%sell_off%") + 0x58 * ("%sell_num%") + 0x14) 1
               INSERT_BYTES (("%sell_off%") + 0x58 * ("%sell_num%")) 0x58
               WRITE_ASCII (("%sell_off%") + 0x58 * ("%sell_num%")) ~RZLEAT04~
               WRITE_LONG (("%sell_off%") + 0x58 * ("%sell_num%") + 0x14) 1
               
COPY_EXISTING ~crumple1.sto~ ~override~
              ~crumple2.sto~ ~override~
              ~crumple3.sto~ ~override~
              ~anzestr.sto~ ~override~
     READ_LONG 0x2c "buy_off"
     READ_LONG 0x34 "sell_off"
     READ_LONG 0x38 "sell_num"
     READ_LONG 0x70 "cure_off"
               WRITE_LONG 0x38 ("%sell_num%" + 2)
               WRITE_LONG 0x2c (("%buy_off%") + 2 * 0x58)
               WRITE_LONG 0x70 (("%cure_off%") + 2 * 0x58)
               INSERT_BYTES (("%sell_off%") + 0x58 * ("%sell_num%")) 0x58
               WRITE_ASCII (("%sell_off%") + 0x58 * ("%sell_num%")) ~RZCHAN01~
               WRITE_LONG (("%sell_off%") + 0x58 * ("%sell_num%") + 0x14) 3
               INSERT_BYTES (("%sell_off%") + 0x58 * ("%sell_num%")) 0x58
               WRITE_ASCII (("%sell_off%") + 0x58 * ("%sell_num%")) ~RZCHAN04~
               WRITE_LONG (("%sell_off%") + 0x58 * ("%sell_num%") + 0x14) 2
               
COPY_EXISTING ~keldor.sto~ ~override~
     READ_LONG 0x2c "buy_off"
     READ_LONG 0x34 "sell_off"
     READ_LONG 0x38 "sell_num"
     READ_LONG 0x70 "cure_off"
               WRITE_LONG 0x38 ("%sell_num%" + 1)
               WRITE_LONG 0x2c (("%buy_off%") + 0x58)
               WRITE_LONG 0x70 (("%cure_off%") + 0x58)
               INSERT_BYTES (("%sell_off%") + 0x58 * ("%sell_num%")) 0x58
               WRITE_ASCII (("%sell_off%") + 0x58 * ("%sell_num%")) ~RZCHAN02~
               WRITE_LONG (("%sell_off%") + 0x58 * ("%sell_num%") + 0x14) 1
               
COPY_EXISTING ~tailor.sto~ ~override~
     READ_LONG 0x2c "buy_off"
     READ_LONG 0x34 "sell_off"
     READ_LONG 0x38 "sell_num"
     READ_LONG 0x70 "cure_off"
               WRITE_LONG 0x38 ("%sell_num%" + 1)
               WRITE_LONG 0x2c (("%buy_off%") + 0x58)
               WRITE_LONG 0x70 (("%cure_off%") + 0x58)
               INSERT_BYTES (("%sell_off%") + 0x58 * ("%sell_num%")) 0x58
               WRITE_ASCII (("%sell_off%") + 0x58 * ("%sell_num%")) ~RZCLCK03~
               WRITE_LONG (("%sell_off%") + 0x58 * ("%sell_num%") + 0x14) 1