[Script CMD]messagecolor

Shikazu

New member
Messages
74
Points
0
Age
36
Location
Germany
Github
shikazu
This script command is written to send color'ed messages to the player.

dispbottomcolor is only writing messages to the players chatlog, but messagecolor is writing it to the chatlog and the message appears above his character's head.

The source is available via github: https://github.com/shikazu/hpm-plugins/blob/master/src/plugins/

Usage:

messagecolor <player>,<message>,<color>;

Color is defined in db/const.txt and needs to be an integer.

The color is optional, so you can still send messages like you did with message .. Both scripts are working the same
default_wink.png


~Shikazu

 
HPM Plugins are hercules only, but you can grab the source and use the

BUILDIN(messagecolor)
and add it to your script.c

 
this plugin no work in last hercules 2015

1>------ Operación Generar iniciada: proyecto: plugin-messagecolor, configuración: Release Win32 ------
1>Compilación iniciada a las 24-04-2015 22:38:51.
1>InitializeBuildStatus:
1>  Se creará "plugin-messagecolorplugin-messagecolor.unsuccessfulbuild" porque se especificó "AlwaysCreate".
1>ClCompile:
1>  messagecolor.c
1>..srcpluginsmessagecolor.c(28): warning C4013: 'map_nick2sd' sin definir; se supone que extern devuelve como resultado int
1>..srcpluginsmessagecolor.c(28): warning C4047: '=' : 'TBL_PC *' es distinto en los niveles de direccionamiento indirecto de 'int'
1>..srcpluginsmessagecolor.c(43): warning C4013: 'BUILDIN_A' sin definir; se supone que extern devuelve como resultado int
1>..srcpluginsmessagecolor.c(43): error C2065: 'messagecolor' : identificador no declarado
1>..srcpluginsmessagecolor.c(43): warning C4047: 'función' : 'bool (__cdecl *)(script_state *)' es distinto en los niveles de direccionamiento indirecto de 'int'
1>..srcpluginsmessagecolor.c(43): warning C4024: 'función mediante puntero' : tipos distintos para el parámetro formal y el parámetro real 3
1>..srcpluginsmessagecolor.c(43): error C2198: 'función mediante puntero' : no hay suficientes argumentos para la llamada
1>
1>ERROR al compilar.
1>
1>Tiempo transcurrido 00:00:00.27
========== Generar: 0 correctos, 1 incorrectos, 0 actualizados, 0 omitidos ==========
 
Back
Top