summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorJedzkie <jedzkie13@rocketmail.com>2017-04-18 18:12:38 +0800
committerJedzkie <jedzkie13@rocketmail.com>2017-04-23 13:48:43 +0800
commite4d0e0553249ee7f6454497b79b093f1acbb611b (patch)
treef4e43b1aa7fb669d3d30c634f2222f5c0d98d728 /src/map/pc.c
parentb1fdb0176241759a3085ad8b4d5bf415d3392f03 (diff)
downloadhercules-e4d0e0553249ee7f6454497b79b093f1acbb611b.tar.gz
hercules-e4d0e0553249ee7f6454497b79b093f1acbb611b.tar.bz2
hercules-e4d0e0553249ee7f6454497b79b093f1acbb611b.tar.xz
hercules-e4d0e0553249ee7f6454497b79b093f1acbb611b.zip
Added the correct PACKETVER Date for MSG_NPC_WORK_IN_PROGRESS message.
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index e9855c16d..fc2d57c7c 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5019,10 +5019,11 @@ int pc_useitem(struct map_session_data *sd,int n) {
nullpo_ret(sd);
Assert_ret(n >= 0 && n < MAX_INVENTORY);
- if( sd->npc_id || sd->state.workinprogress&1 ){
- /* TODO: add to clif->messages enum */
-#ifdef RENEWAL
- clif->msgtable(sd, MSG_NPC_WORK_IN_PROGRESS); // TODO look for the client date that has this message.
+ if (sd->npc_id || sd->state.workinprogress & 1) {
+#if PACKETVER >= 20110309
+ clif->msgtable(sd, MSG_NPC_WORK_IN_PROGRESS);
+#else
+ clif->messagecolor_self(fd, COLOR_WHITE, msg_fd(fd, 48));
#endif
return 0;
}