Jump to content
Sign in to follow this  
Shikazu

[Script CMD]messagecolor

Recommended Posts

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 ;)

 

~Shikazu

Share this post


Link to post
Share on other sites

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

BUILDIN(messagecolor) 

and add it to your script.c

Share this post


Link to post
Share on other sites

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

BUILDIN(messagecolor) 

and add it to your script.c

 

How to add it in script.c?

Share this post


Link to post
Share on other sites

 

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

BUILDIN(messagecolor) 

and add it to your script.c

 

How to add it in script.c?

its a src modification sir add thos script on script.c on src folder located on map

Share this post


Link to post
Share on other sites

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 ==========

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.