Forráskód Böngészése

Follow-up to a4f2bdb

icxbb-xx 10 éve
szülő
commit
4f09d08226
2 módosított fájl, 11 hozzáadás és 4 törlés
  1. 8 0
      doc/script_commands.txt
  2. 3 4
      src/map/script.c

+ 8 - 0
doc/script_commands.txt

@@ -3769,6 +3769,14 @@ window.
 
 ---------------------------------------
 
+*dispbottomcolor "<message>",<color>,<accound_id>;
+
+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 "<map name>",<x>,<y>;
 
 This command will take the invoking character to the specified map, and if 

+ 3 - 4
src/map/script.c

@@ -19111,13 +19111,13 @@ BUILDIN_FUNC(countspiritball) {
 }
 
 /** Send message with color to player
-* displaymessage("<message>"{,<color>{,<Account ID>}})
+* dispbottomcolor("<message>"{,<color>{,<Account ID>}})
 * @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"