From 4f09d08226fe2f5e725909c666a34b8a1f02059e Mon Sep 17 00:00:00 2001 From: icxbb-xx Date: Mon, 3 Nov 2014 07:04:34 +0700 Subject: [PATCH] Follow-up to a4f2bdb --- doc/script_commands.txt | 8 ++++++++ src/map/script.c | 7 +++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 87dd2a0365..b01bf03d79 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3769,6 +3769,14 @@ window. --------------------------------------- +*dispbottomcolor "",,; + +This command will send the given message with color into the invoking character's chat +window. The color format is in RGB (0xRRGGBB). The color is +by default green (0xFFFFFF). + +--------------------------------------- + *warp "",,; This command will take the invoking character to the specified map, and if diff --git a/src/map/script.c b/src/map/script.c index 5ad72717e1..92a3ad05f4 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -19111,13 +19111,13 @@ BUILDIN_FUNC(countspiritball) { } /** Send message with color to player -* displaymessage(""{,{,}}) +* dispbottomcolor(""{,{,}}) * @param message * @param color Hex color default (Green) * @param account_id Target player (Optional) * @author [Napster] */ -BUILDIN_FUNC(displaymessage) +BUILDIN_FUNC(dispbottomcolor) { TBL_PC *sd; int color; @@ -19681,8 +19681,7 @@ struct script_function buildin_func[] = { BUILDIN_DEF(addspiritball,"ii?"), BUILDIN_DEF(delspiritball,"i?"), BUILDIN_DEF(countspiritball,"?"), - BUILDIN_DEF(displaymessage,"s??"), - BUILDIN_DEF2(displaymessage,"dispcolor","s??"), + BUILDIN_DEF(dispbottomcolor,"s??"), #include "../custom/script_def.inc"