// Chest in guard room, Arx city

ON INIT {
 SET §lockpickability 25
 ACCEPT
}

ON INVENTORY2_OPEN {
  IF (#PLAYER_ON_QUEST < 3) {
  SENDEVENT CUSTOM HUMAN_BASE_0078 "Thief"
  }
>>RANDOM_ITEM
 IF ( §genInv == 1 ) ACCEPT
  IF (#RANDOMIZER < 2) {
  INVENTORY ADDMULTI "WEAPONS\\LONG_SWORD\\LONG_SWORD" 4
  INVENTORY ADDMULTI "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL" 4
  INVENTORY ADDMULTI "PROVISIONS\\IRON_RATION\\IRON_RATION" 4
  INVENTORY ADDMULTI "MAGIC\POTION_LIFE\POTION_LIFE" 3
  INVENTORY ADDMULTI "PROVISIONS\BOTTLE_EMPTY\BOTTLE_EMPTY" 3
  }
  IF (#RANDOMIZER == 2) {
  INVENTORY ADDMULTI "WEAPONS\\LONG_SWORD\\LONG_SWORD" 3
  INVENTORY ADDMULTI "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL" 5
  INVENTORY ADDMULTI "PROVISIONS\\IRON_RATION\\IRON_RATION" 3
  INVENTORY ADDMULTI "MAGIC\POTION_LIFE\POTION_LIFE" 4
  INVENTORY ADDMULTI "PROVISIONS\BOTTLE_EMPTY\BOTTLE_EMPTY" 2
  }
  IF (#RANDOMIZER == 3) {
  INVENTORY ADDMULTI "WEAPONS\\LONG_SWORD\\LONG_SWORD" 2
  INVENTORY ADDMULTI "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL" 6
  INVENTORY ADDMULTI "PROVISIONS\\IRON_RATION\\IRON_RATION" 2
  INVENTORY ADDMULTI "MAGIC\POTION_LIFE\POTION_LIFE" 5
  INVENTORY ADDMULTI "PROVISIONS\BOTTLE_EMPTY\BOTTLE_EMPTY" 1
  }
  IF (#RANDOMIZER == 4) {
  INVENTORY ADDMULTI "WEAPONS\\LONG_SWORD\\LONG_SWORD" 1
  INVENTORY ADDMULTI "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL" 7
  INVENTORY ADDMULTI "PROVISIONS\\IRON_RATION\\IRON_RATION" 1
  INVENTORY ADDMULTI "MAGIC\POTION_LIFE\POTION_LIFE" 6
  }
  IF (#RANDOMIZER == 5) {
  INVENTORY ADDMULTI "WEAPONS\\LONG_SWORD\\LONG_SWORD" 5
  INVENTORY ADDMULTI "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL" 3
  INVENTORY ADDMULTI "PROVISIONS\\IRON_RATION\\IRON_RATION" 5
  INVENTORY ADDMULTI "MAGIC\POTION_LIFE\POTION_LIFE" 2
  INVENTORY ADDMULTI "PROVISIONS\BOTTLE_EMPTY\BOTTLE_EMPTY" 4
  }
  IF (#RANDOMIZER == 6) {
  INVENTORY ADDMULTI "WEAPONS\\LONG_SWORD\\LONG_SWORD" 6
  INVENTORY ADDMULTI "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL" 2
  INVENTORY ADDMULTI "PROVISIONS\\IRON_RATION\\IRON_RATION" 6
  INVENTORY ADDMULTI "MAGIC\POTION_LIFE\POTION_LIFE" 1
  INVENTORY ADDMULTI "PROVISIONS\BOTTLE_EMPTY\BOTTLE_EMPTY" 5
  }
  IF (#RANDOMIZER == 7) {
  INVENTORY ADDMULTI "WEAPONS\\LONG_SWORD\\LONG_SWORD" 7
  INVENTORY ADDMULTI "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL" 1
  INVENTORY ADDMULTI "PROVISIONS\\IRON_RATION\\IRON_RATION" 7
  INVENTORY ADDMULTI "PROVISIONS\BOTTLE_EMPTY\BOTTLE_EMPTY" 6
  }
  IF (#RANDOMIZER == 8) {
  INVENTORY ADDMULTI "WEAPONS\\LONG_SWORD\\LONG_SWORD" 5
  INVENTORY ADDMULTI "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL" 5
  INVENTORY ADDMULTI "PROVISIONS\\IRON_RATION\\IRON_RATION" 3
  INVENTORY ADDMULTI "MAGIC\POTION_LIFE\POTION_LIFE" 2
  INVENTORY ADDMULTI "PROVISIONS\BOTTLE_EMPTY\BOTTLE_EMPTY" 4
  }
  IF (#RANDOMIZER == 9) {
  INVENTORY ADDMULTI "WEAPONS\\LONG_SWORD\\LONG_SWORD" 6
  INVENTORY ADDMULTI "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL" 6
  INVENTORY ADDMULTI "PROVISIONS\\IRON_RATION\\IRON_RATION" 2
  INVENTORY ADDMULTI "MAGIC\POTION_LIFE\POTION_LIFE" 1
  INVENTORY ADDMULTI "PROVISIONS\BOTTLE_EMPTY\BOTTLE_EMPTY" 5
  }
  IF (#RANDOMIZER == 10) {
  INVENTORY ADDMULTI "WEAPONS\\LONG_SWORD\\LONG_SWORD" 7
  INVENTORY ADDMULTI "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL" 7
  INVENTORY ADDMULTI "PROVISIONS\\IRON_RATION\\IRON_RATION" 1
  INVENTORY ADDMULTI "PROVISIONS\BOTTLE_EMPTY\BOTTLE_EMPTY" 6
  }
  IF (#RANDOMIZER > 10) {
  INVENTORY ADDMULTI "WEAPONS\\LONG_SWORD\\LONG_SWORD" 3
  INVENTORY ADDMULTI "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL" 3
  INVENTORY ADDMULTI "PROVISIONS\\IRON_RATION\\IRON_RATION" 5
  INVENTORY ADDMULTI "MAGIC\POTION_LIFE\POTION_LIFE" 4
  INVENTORY ADDMULTI "PROVISIONS\BOTTLE_EMPTY\BOTTLE_EMPTY" 2
  }
  set §genInv 1
  ACCEPT
 }
 set §genInv 1
 ACCEPT
}