local example = NPCID
local function Npc_example(event, creature, plr, emoteid)
if(emoteid == 17) then
creature:Emote(2)
end
end
RegisterCreatureEvent(example , 8, Npc_example)
If you /bow the npc attached to this script, the npc will bow back. You can change Emote(2) to anything a like...