Added clif_announce_ex() for broadcasts with varying font size
(patch by Euphidime) git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12724 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
5dca41aec6
commit
99926544f3
@ -4549,6 +4549,11 @@ void clif_MainChatMessage(const char* message)
|
||||
* Does an announce message in the given color.
|
||||
*------------------------------------------*/
|
||||
int clif_announce(struct block_list* bl, const char* mes, int len, unsigned long color, int flag)
|
||||
{
|
||||
return clif_announce_ex(bl, mes, len, color, flag, 12);
|
||||
}
|
||||
|
||||
int clif_announce_ex(struct block_list* bl, const char* mes, int len, unsigned long color, int flag, int size)
|
||||
{
|
||||
unsigned char *buf;
|
||||
buf = (unsigned char*)aMallocA((len + 16)*sizeof(unsigned char));
|
||||
@ -4556,7 +4561,7 @@ int clif_announce(struct block_list* bl, const char* mes, int len, unsigned long
|
||||
WBUFW(buf,2) = len + 16;
|
||||
WBUFL(buf,4) = color;
|
||||
WBUFW(buf,8) = 0x190; //Font style? Type?
|
||||
WBUFW(buf,10) = 0x0c; //12? Font size?
|
||||
WBUFW(buf,10) = size; // Font size
|
||||
WBUFL(buf,12) = 0; //Unknown!
|
||||
memcpy(WBUFP(buf,16), mes, len);
|
||||
|
||||
|
@ -339,6 +339,7 @@ void clif_disp_message(struct block_list* src, const char* mes, int len, enum se
|
||||
int clif_GMmessage(struct block_list* bl, const char* mes, int len, int flag);
|
||||
void clif_MainChatMessage(const char* message); //luzza
|
||||
int clif_announce(struct block_list *bl, const char* mes, int len, unsigned long color, int flag);
|
||||
int clif_announce_ex(struct block_list *bl, const char* mes, int len, unsigned long color, int flag, int size);
|
||||
int clif_heal(int fd,int type,int val);
|
||||
int clif_resurrection(struct block_list *bl,int type);
|
||||
void clif_set0199(struct map_session_data* sd, int mode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user