planqi / slashdiablo-maphack

A customized maphack for the slashdiablo D2 server
GNU Affero General Public License v3.0
88 stars 42 forks source link

Add Chat Colors module to color messages from users #8

Closed salinecitrine closed 6 years ago

salinecitrine commented 6 years ago

The primary purpose of this module is to change the color of messages from chat and trade, to make them easier to distinguish from normal whispers.

Hopefully my C++ isn't terrible; I'm not much of a C++ programmer. Tested it in-game and out, and it seemed stable. Feedback and changes welcome.


An example config would be adding these lines to BH.cfg:

Whisper Color[*chat]: 15
Whisper Color[*trade]: 7

This would print chat in gray, and trade in gold.

Here's an example, with the above config as well as a special user config for whispers from a real user:

chat