ON INIT {
 SET_SPEAK_PITCH 0.9
 SET §enemy 1
 IF (§die_count != 0) {
   TELEPORT MARKER_0730
   ACCEPT
 }
 INVENTORY ADDMULTI "JEWELRY\\GOLD_COIN\\GOLD_COIN" 4
 SET §dead 0
 SET §die_count 0
 ACCEPT
}

ON INITEND {
 IF (§die_count == 1) {
   TIMERadd 1 2 GOTO ADDING
   ACCEPT
 }
 IF (§die_count != 0) ACCEPT
 SENDEVENT -ir DURABILITY 100 "5"
 SENDEVENT -ir DURABILITY_ARMOR 100 "13" 
 ACCEPT
}

ON CUSTOM {
  IF (^$PARAM1 == "MMM") {
    SPEAK [Goblin_mmm] nop
    ACCEPT
  }
 ACCEPT
}

ON RELOAD {
 IF (#PLAYER_ON_QUEST > 5) {
  IF (§dead == 0) ACCEPT
  IF (§die_count == 2) ACCEPT
  IF (§die_count > 0) {
  SET §dead 0
  REVIVE
   }
   ACCEPT
  }
 ACCEPT
}

ON DIE {
 SET §dead 1
 IF (§die_count < 2) INC §die_count 1
 ACCEPT
}

>>ADDING
 INVENTORY ADD "Magic\\Potion_Life\\Potion_Life"
 INVENTORY ADD "Magic\\Potion_Life\\Potion_Life"
 INVENTORY ADD "Magic\\Potion_Life\\Potion_Life"
 INVENTORY ADD "Magic\\Potion_invisible\\Potion_invisible"
 ACCEPT