ON INIT {
>>FREE_REFILL
INVENTORY CREATE
 SET_SHOP YES
 SHOP_CATEGORY ARMORY
 SHOP_MULTIPLY 1.1
 INVENTORY ADD "WEAPONS\\DAGGER\\DAGGER"
 INVENTORY ADD "WEAPONS\\DAGGER\\DAGGER"
 INVENTORY ADD "WEAPONS\\DAGGER_jeweld\\DAGGER_jeweld"
 INVENTORY ADD "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL"
 INVENTORY ADD "WEAPONS\\SHORT_SWORD_STEEL\\SHORT_SWORD_STEEL"
 INVENTORY ADD "WEAPONS\\Bow_Assassin\\Bow_Assassin"
 INVENTORY ADD "WEAPONS\\LongBow\\LongBow"
 INVENTORY ADD "ARMOR\\HELMET_LEATHER_STEALTH\\HELMET_LEATHER_STEALTH"
 INVENTORY ADD "SPECIAL\\Tool_Craft\\Tool_Craft"
 INVENTORY ADD "SPECIAL\\Tool_Craft\\Tool_Craft"
 INVENTORY ADD "SPECIAL\\Tool_Craft\\Tool_Craft"
 INVENTORY ADD "SPECIAL\\Tool_Craft\\Tool_Craft"
 SET §lockpickability 60
 SET £key "KEY_BASE_0074"
 ACCEPT
}

ON INITEND {
 SENDEVENT -ri IDENTIFY 100 ""
 ACCEPT
}

ON RESET {
 INVENTORY DESTROY
 GOTO FREE_REFILL
 ACCEPT
}

ON CUSTOM {
  IF (^$PARAM1 == "DEAD") {
    SET_SHOP NO
    SET §unlock 0
    SET §dead 1
    ACCEPT
  }
 IF (^$PARAM1 == "LOCK") {
   SET §unlock 0
   SET_SHOP NO
   ACCEPT
 }  
 IF (^$PARAM1 == "UNLOCK") {
   SET §unlock 1
   SET_SHOP YES
   ACCEPT
 }
 ACCEPT
}

ON INVENTORY2_OPEN {
 IF (#SHOPPING == 1) ACCEPT
 SET #SHOPPING 1
 HEROSAY [tutorial_shop]
 ACCEPT
}

ON GAME_READY {
 IF (§dead == 1) ACCEPT
 IF (§unlock == 0) ACCEPT
 IF (#PLAYER_ON_QUEST == 2) {
  IF (§ona == 1) ACCEPT
  SET §ona 1
  INVENTORY DESTROY
  GOTO FREE_REFILL
  ACCEPT
 }
 IF (#PLAYER_ON_QUEST == 5) {
  IF (§onb == 1) ACCEPT
  SET §onb 1
  INVENTORY DESTROY
  GOTO FREE_REFILL
  ACCEPT
 }
 IF (#PLAYER_ON_QUEST == 7) {
  IF (§onc == 1) ACCEPT
  SET §onc 1
  INVENTORY DESTROY
  GOTO FREE_REFILL
  ACCEPT
 }
 ACCEPT 
} 