diff options
author | shennetsind <ind@henn.et> | 2013-05-02 21:41:57 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-02 21:41:57 -0300 |
commit | 64adafab4a56d97f547a5daf0f9feda3f9a12032 (patch) | |
tree | 61defddf4e9a71f64fe4295944833815ef820a5a /src | |
parent | 274bfc3b06616ea03c467d8eed23fae61c72fe18 (diff) | |
download | hercules-64adafab4a56d97f547a5daf0f9feda3f9a12032.tar.gz hercules-64adafab4a56d97f547a5daf0f9feda3f9a12032.tar.bz2 hercules-64adafab4a56d97f547a5daf0f9feda3f9a12032.tar.xz hercules-64adafab4a56d97f547a5daf0f9feda3f9a12032.zip |
Fixed Bug #7064
Special Thanks to Kyeme~!
http://hercules.ws/board/tracker/issue-7064-item-scroll/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 2 | ||||
-rw-r--r-- | src/map/clif.h | 1 | ||||
-rw-r--r-- | src/map/pc.c | 1 |
3 files changed, 3 insertions, 1 deletions
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. } |