The files that you will need are the act.wizard.c, act.comm.c, and screen.h(optional, just looking up the code for the tells if you want ansi defaults) Another help is the show colour help file with the 256 colors.
NOTE: When you are editing these files backup everything and then test. Also you need to run a make then do a copyover when you are finished with the changes for them to be accepted on both wiznet and tell color changes.
2nd NOTE: You will have to do a change directories and do a
make in the src directory, just like in the first time that you compiled the tbamud.
We are now going to start with changing the Tell color. If you want to change from the deep red that is default from to the another default color open the screen.h located in the same /src folder. Also if you are a little more adventurous(such as myself) and want to use the 256 color scheme in the tbamud itself by typing <show colour>.
Now with the act.comm.c open scroll down to the perform_tell function(method in java).
Code:
snprintf(buf, sizeof(buf), "%s$n tells you, '%s'%s", CCRED(vict, C_NRM), arg, CCNRM(vict, C_NRM));
msg = act(buf, FALSE, ch, 0, vict, TO_VICT | TO_SLEEP);
add_history(vict, msg, HIST_TELL);
if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_NOREPEAT))
send_to_char(ch, "%s", CONFIG_OK);
else {
snprintf(buf, sizeof(buf), "%sYou tell $N, '%s'%s", CCRED(ch, C_NRM), arg, CCNRM(ch, C_NRM));
msg = act(buf, FALSE, ch, 0, vict, TO_CHAR | TO_SLEEP);
add_history(ch, msg, HIST_TELL);
}
We are going to change the CCRED to another ANSI color first, then do a 256 color scheme change.
Code:
snprintf(buf, sizeof(buf), "%s$n tells you, '%s'%s", CBCYN(vict, C_NRM), arg, CCNRM(vict, C_NRM));
msg = act(buf, FALSE, ch, 0, vict, TO_VICT | TO_SLEEP);
add_history(vict, msg, HIST_TELL);
if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_NOREPEAT))
send_to_char(ch, "%s", CONFIG_OK);
else {
snprintf(buf, sizeof(buf), "%sYou tell $N, '%s'%s", CBCYN(ch, C_NRM), arg, CCNRM(ch, C_NRM));
msg = act(buf, FALSE, ch, 0, vict, TO_CHAR | TO_SLEEP);
add_history(ch, msg, HIST_TELL);
}
This will be a bright Cyan color, if you want the darker Cyan, then do CCCYN. Now for the 256 color scheme change.
Code:
snprintf(buf, sizeof(buf), "%s$n tells you, '%s'%s", ColourRGB(ch->dsec, "F530"), arg, CCNRM(vict, C_NRM));
msg = act(buf, FALSE, ch, 0, vict, TO_VICT | TO_SLEEP);
add_history(vict, msg, HIST_TELL);
if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_NOREPEAT))
send_to_char(ch, "%s", CONFIG_OK);
else {
snprintf(buf, sizeof(buf), "%sYou tell $N, '%s'%s", ColourRGB(ch->desc, "F530"), arg, CCNRM(ch, C_NRM));
msg = act(buf, FALSE, ch, 0, vict, TO_CHAR | TO_SLEEP);
add_history(ch, msg, HIST_TELL);
}
The color is a softer orange color, but you can look at the show colour and choose the one that you like the most and put it in where I have the orange color. Also You can leave the vict in there, just (vict->desc, <256color>) or (ch, <256color>)
That's how you change the colors between in the default and the 256 Color scheme and a shout out goes to Luran and Krell for helping with this color change.