ON INIT {
 OBJECT_HIDE SELF YES
// SET §enemy 1
 SET_SPEAK_PITCH 1.2
 IF (§dead == 2) {
  TELEPORT MARKER_0742
  OBJECT_HIDE SELF NO
  SET §enemy 1
  SET Łtype "goblin_lord"
  ACCEPT
 }
 SET §dead 0
 ACCEPT
}
ON INITEND {
 IF (§dead == 2) {
  INVENTORY ADDMULTI "JEWELRY\\GOLD_COIN\\GOLD_COIN" 7
  ACCEPT
 }
 SETSCALE 80
 SET §reflection_mode 0
 SENDEVENT -ir DURABILITY 100 "7"
 ACCEPT
}

ON RELOAD {
 IF (#PLAYER_ON_QUEST > 5) {
  IF (§dead == 1) {
   SET §dead 2 
   USE_MESH "Goblin_lord\\Goblin_lord.teo" 
   REVIVE 
  }
  ACCEPT
 }
 ACCEPT
}


ON DIE {
 IF (§dead == 0) SET §dead 1
 ACCEPT
}
ON CUSTOM {
 IF (^$PARAM1 == "GUET_APENS") {
  IF (§dead == 2) ACCEPT
  SET §reflection_mode 1
  SENDEVENT ATTACK_PLAYER SELF ""
  OBJECT_HIDE SELF OFF
  ACCEPT
 }
 ACCEPT
}