ON INIT {
 INVENTORY ADD "QUEST_ITEM\\GEM_DEALER_BADGE\\GEM_DEALER_BADGE"
 INVENTORY ADD "JEWELRY\\EMERALD\\EMERALD"
 INVENTORY ADDMULTI "QUEST_ITEM\\ACTIONS_MINES\\ACTIONS_MINES" 4
 INVENTORY ADDMULTI "Jewelry\\Gold_coin\\Gold_coin" 1200
 INVENTORY ADD "JEWELRY\\DIAMOND\\DIAMOND"
 SET £type "chest_2"
 SET §lockpickability 40
 SET §trap_lockpickability 20
 SETTRAP 15
 SET §fired 0
 ACCEPT
}

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

ON INVENTORY2_OPEN {
  IF (§unlock == 0) ACCEPT
  IF (§fired == 0) {
    IF (^DIST_PLAYER < 400) DO_DAMAGE PLAYER 10
    SET §fired 1
    SETTRAP -1
  }
 ACCEPT
}

ON TRAP_DISARMED {
 SET §fired 1
 ACCEPT
}