From 64adafab4a56d97f547a5daf0f9feda3f9a12032 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 2 May 2013 21:41:57 -0300 Subject: Fixed Bug #7064 Special Thanks to Kyeme~! http://hercules.ws/board/tracker/issue-7064-item-scroll/ Signed-off-by: shennetsind --- src/map/clif.c | 2 +- src/map/clif.h | 1 + src/map/pc.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index 0c323c6cd..2210c3072 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 9dfa83e00..b981cc535 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 892c27e87..59b1c7443 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. } -- cgit v1.2.3-70-g09d2