Skip to content

Commit

Permalink
Fixed Bug #7064
Browse files Browse the repository at this point in the history
Special Thanks to Kyeme~!
http://hercules.ws/board/tracker/issue-7064-item-scroll/

Signed-off-by: shennetsind <ind@henn.et>
  • Loading branch information
shennetsind committed May 3, 2013
1 parent 274bfc3 commit 64adafa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions conf/messages.conf
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/map/clif.c
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/map/clif.h
Expand Up @@ -324,6 +324,7 @@ enum clif_messages {
enum clif_colors {
COLOR_RED,
COLOR_DEFAULT,
COLOR_WHITE,
COLOR_MAX
};

Expand Down
1 change: 1 addition & 0 deletions src/map/pc.c
Expand Up @@ -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.
}

Expand Down

0 comments on commit 64adafa

Please sign in to comment.