ON INIT {
 SET £friend "lord_guard"
 SET £type "goblin_lord"
 SET §reflection_mode 0
 SET £key_carried "KEY_BASE_0005portcullis"
 INVENTORY ADDMULTI "JEWELRY\\GOLD_COIN\\GOLD_COIN" 32
 SETWEAPON CLUB
 SET_SPEAK_PITCH 0.9
 ACCEPT
}

ON INITEND {
 BEHAVIOR FRIENDLY
 SETTARGET PLAYER
 ACCEPT
}

ON LOAD {
 USE_MESH "Goblin_lord\\Goblin_lord.teo"
 ACCEPT
}

ON CUSTOM {
 IF (^$PARAM1 == "MISC") SET §reflection_mode 1
 ACCEPT
}

ON CHAT {
 IF (^SPEAKING == 1) ACCEPT
 SPEAK [Goblinlord_warning] NOP
// TIMERbob 1 5 GOTO PATROL
 ACCEPT
}

>>PATROL
 BEHAVIOR WANDER_AROUND 200
 SETTARGET NONE
 ACCEPT

ON GAME_READY {
 BEHAVIOR FRIENDLY
 SETTARGET PLAYER
 TELEPORT -i
 ACCEPT
}

 