[Suggestion] displaybottom & message colors

so ... Haru has cleaned up the clif->colormes function

https://github.com/HerculesWS/Hercules/commit/d66cc50af6d781d179f46ae67d74bf26bf5914e5

now its very easy to implement this suggestion

pull request

https://github.com/HerculesWS/Hercules/pull/858

and I just compared hercules and rathena script_commands.txt

we are so behind them right now, missing so many script commands its not even funny

I'm thinking maybe I should stop supporting on the forums ....

until at least have hercules emulator on par with rathena standard

EDIT:

what the heck ?

screenRuru_Server002.jpg

why when used 0x000000 it is display as white ??

or maybe just my hexed client maybe ?

EDIT2:

tested on rathena, they also having this same issue

screenRuru_Server003.jpg

 
Last edited by a moderator:
merge in

https://github.com/HerculesWS/Hercules/commit/19d83e65e83887a9f15353e626eaab57d7f86a74

finally ...

erm, I just saw messagecolor script command
default_ohmy.png


wait wait ... not finish yet ...

hmm impossible, it require player to refresh the client

#include <stdio.h>#include <stdlib.h>#include <string.h>#include "map/pc.h"#include "map/script.h"#include "common/HPMi.h"#include "common/socket.h"#include "common/strlib.h"#include "common/HPMDataCheck.h"HPExport struct hplugin_info pinfo = { "messagecolor", SERVER_TYPE_MAP, "0.1", HPM_VERSION,};BUILDIN(messagecolor) { TBL_PC *sd = NULL; if (script_isstringtype(st,2)) sd = script->nick2sd(st, script_getstr(st,2)); else sd = script->id2sd(st, script_getnum(st,2)); if ( sd ) { const char *message = script_getstr(st,3); unsigned short msg_len = strlen( message ) +1; int color = script_getnum(st,4); WFIFOHEAD( sd->fd, msg_len + 12 ); WFIFOW( sd->fd, 0 ) = 0x2C1; WFIFOW( sd->fd, 2 ) = msg_len + 12; WFIFOL( sd->fd, 4 ) = sd->bl.id; WFIFOL( sd->fd, 8 ) = RGB2BGR(color); safestrncpy( (char*)WFIFOP( sd->fd,12 ), message, msg_len ); WFIFOL( sd->fd, 4 ) = -sd->bl.id; WFIFOSET( sd->fd, msg_len + 12 ); } return true;}HPExport void plugin_init (void) { addScriptCommand( "messagecolor", "vsi", messagecolor );}looks doesn't work ?
Code:
prontera,159,185,5	script	kjdsfkshfs	1_F_MARIA,{	messagecolor getcharid(3), "test yellow", C_YELLOW;	end;}
try @fontcolor bluethen type something

click on the npc again, then it shows up

the sd->fontcolor_tid seems to have something to do it here

 
Last edited by a moderator:
Back
Top