diff --git a/conf/messages.conf b/conf/messages.conf index f3055145fc4..cc0ecb9003c 100644 --- a/conf/messages.conf +++ b/conf/messages.conf @@ -1496,5 +1496,8 @@ 1472: - Available Costumes 1473: Costume '%s' removed. +//src/map/pc.c::pc_isUseitem +1474: You cannot use this item while sitting + //Custom translations import: conf/import/msg_conf.txt diff --git a/src/map/clif.c b/src/map/clif.c index 0c323c6cdf4..2210c307234 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17000,7 +17000,7 @@ void clif_bc_ready(void) { * *------------------------------------------*/ int do_init_clif(void) { - const char* colors[COLOR_MAX] = { "0xFF0000", "0x00ff00" }; + const char* colors[COLOR_MAX] = { "0xFF0000", "0x00ff00", "0xffffff" }; int i; /** * Setup Color Table (saves unnecessary load of strtoul on every call) diff --git a/src/map/clif.h b/src/map/clif.h index 9dfa83e0056..b981cc5354a 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -324,6 +324,7 @@ enum clif_messages { enum clif_colors { COLOR_RED, COLOR_DEFAULT, + COLOR_WHITE, COLOR_MAX }; diff --git a/src/map/pc.c b/src/map/pc.c index 892c27e87b8..59b1c74430f 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4087,6 +4087,7 @@ int pc_isUseitem(struct map_session_data *sd,int n) return 0; if( (item->item_usage.flag&NOUSE_SITTING) && (pc_issit(sd) == 1) && (pc_get_group_level(sd) < item->item_usage.override) ) { + clif->colormes(sd->fd,COLOR_WHITE,msg_txt(1474)); return 0; // You cannot use this item while sitting. }