I found it at 6164BC but no clue what the second arg is/should be though it seems like like it's relative to every object and changes with it too.
And, interesting idea
Edit:
Chat function is at 6140F9 and its prototype is as:
Code:
int __stdcall OnChat(const char* receiver, const char* message, int var3, int color, int type, int var5)