// Chest in sleeping area, troll mines

ON INIT {
 SET §lockpickability 15
 SETSCALE 110
 SET £type "Chest_1"
 set §genInv 0
 INVENTORY ADD "Provisions\\fishing_pole\\fishing_pole"
 INVENTORY ADD "Provisions\\Rope\\Rope"
 INVENTORY ADD "Jewelry\\Ruby\\Ruby"
 ACCEPT
}

ON LOAD {
 USEMESH "Chest_1\\Chest_1.teo"
 ACCEPT
}

ON INVENTORY2_OPEN {
 IF (§unlock == 0) ACCEPT
 SENDEVENT CUSTOM TROLL_BASE_0007 "Thief"
>>RANDOM_ITEM
 IF ( §genInv == 1 ) ACCEPT
  IF (#RANDOMIZER < 3) {
  INVENTORY ADDMULTI "Provisions\pole\pole" 1
  INVENTORY ADDMULTI "Provisions\\Torch\\Torch" 2
  }
  IF (#RANDOMIZER == 3) {
  INVENTORY ADDMULTI "Provisions\crusher\crusher" 1
  INVENTORY ADDMULTI "Provisions\\Torch\\Torch" 1
  }
  IF (#RANDOMIZER == 4) {
  INVENTORY ADDMULTI "Provisions\FurRoll\FurRoll" 1
  INVENTORY ADDMULTI "Provisions\\Torch\\Torch" 1
  }
  IF (#RANDOMIZER == 5) {
  INVENTORY ADDMULTI "Provisions\\Rope\\Rope" 1
  INVENTORY ADDMULTI "Provisions\\Torch\\Torch" 1
  }
  IF (#RANDOMIZER == 6) {
  INVENTORY ADDMULTI "Provisions\\fishing_pole\\fishing_pole" 1
  INVENTORY ADDMULTI "Provisions\\Torch\\Torch" 1
  }
  IF (#RANDOMIZER > 6) {
  INVENTORY ADDMULTI "Provisions\\Torch\\Torch" 4
  }
  set §genInv 1
 ACCEPT
}