ON INIT {
 OBJECT_HIDE SELF YES
// SET §enemy 1
 SET_SPEAK_PITCH 1.1
 IF (§dead == 2) {
  TELEPORT MARKER_0734
  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" 21
  INVENTORY ADD "JEWELRY\\GOLD_RING\\GOLD_RING"
  ACCEPT
 }
 SETSCALE 90
 TIMERtspk -im 0 500 GOTO TEST
 SET §reflection_mode 0
 INVENTORY ADDMULTI "JEWELRY\\GOLD_COIN\\GOLD_COIN" 7
 SENDEVENT -ir DURABILITY 100 "9"
 SENDEVENT -ir DURABILITY_ARMOR 100 "19"
 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") {
  SET §reflection_mode 1
  SENDEVENT ATTACK_PLAYER SELF ""
  OBJECT_HIDE SELF OFF
  ACCEPT
 }
 ACCEPT
}
>>TEST
 IF (^DIST_PLAYER > 1200) ACCEPT
 TIMERtspk OFF
 SPEAK [Goblin_herehecomes] NOP
 ACCEPT