@jason54 For this, no easy way, you need programming skills. I can give you hints though, e,.g. for the emote:
src/game/server/entities/character.cpp:475:void CCharacter::SetEmote(int Emote, int Tick)
11:15
I got this with a simple search on emote, that's how I find entry points in the code
11:16
Everything you are looking for is in src/game/server