// Chest in secret room of the goblin quartermaster, goblin jail

ON INIT {
 SET £type "chest_1"
 set §genInv 0
 SET §unlock 1
 INVENTORY ADDFROMSCENE "KEY_GOB_WEAP_0001"
 INVENTORY ADDMULTI "Jewelry\Gold_coin\Gold_coin" 231
 INVENTORY ADD "jewelry\\gem\\gem"
 ACCEPT
}

ON LOAD {
 USE_MESH "CHEST_1\CHEST_1.TEO"
 ACCEPT
}

ON INVENTORY2_OPEN {
>>RANDOM_ITEM
 IF ( §genInv == 1 ) ACCEPT
  IF (#RANDOMIZER < 6) INVENTORY ADDMULTI "Jewelry\Gold_coin\Gold_coin" 11
  IF (#RANDOMIZER == 6) INVENTORY ADD "jewelry\\gem\\gem"
  IF (#RANDOMIZER == 7) INVENTORY ADDMULTI "Jewelry\Gold_coin\Gold_coin" 13
  IF (#RANDOMIZER == 8) INVENTORY ADD "JEWELRY\\SILVER_RING\\SILVER_RING"
  IF (#RANDOMIZER == 9) INVENTORY ADDMULTI "Jewelry\Gold_coin\Gold_coin" 17
  IF (#RANDOMIZER == 10) INVENTORY ADD "JEWELRY\\GOLD_RING\\GOLD_RING"
  IF (#RANDOMIZER > 10) INVENTORY ADDMULTI "Jewelry\Gold_coin\Gold_coin" 19
 set §genInv 1
 ACCEPT
}