From d66cc50af6d781d179f46ae67d74bf26bf5914e5 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 2 Jun 2015 02:16:55 +0200 Subject: Re-implemented clif->colormes to accept arbitrary colors - Due to the backward-incompatible change, clif->colormes was renamed to clif->messagecolor_self (for similarity with clif->messagecolor). The 'color' argument is now a 0xRRGGBB color rather than a color_table index. - enum clif_colors is no longer needed, but 0xRRGGBB-based constants are now provided to replace the old COLOR_* values. Signed-off-by: Haru --- src/plugins/sample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/sample.c b/src/plugins/sample.c index 03d32b1f3..82cb198bd 100644 --- a/src/plugins/sample.c +++ b/src/plugins/sample.c @@ -107,7 +107,7 @@ int my_pc_dropitem_post(int retVal, struct map_session_data *sd,int *n,int *amou if( my_pc_dropitem_storage ) {/* signs whether pre-hook did this */ char output[99]; safesnprintf(output,99,"[ Warning ] you can only drop 1 item at a time, capped from %d to 1",my_pc_dropitem_storage); - clif->colormes(sd->fd,COLOR_RED,output); + clif->messagecolor_self(sd->fd, COLOR_RED, output); } return 1; } -- cgit v1.2.3-60-g2f50