You can bind keys to say things, in local chat and in other available chats.
Here are some examples:
bind <key> "say guards!"
bind <key> "say /shout Hello kingdom people!"
bind <key> "say /vil Hello village people!"
bind <key> "say /t <name> Enemies in local run awayyyy!"