summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-05-26 10:27:02 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-05-26 10:27:02 +0000
commit59464c97011417a3535a2a614365211c124bf62e (patch)
treefb5245b5486869de342476e4fd890c490903d49e
parentf8d34d181922607c96cc618b69a89638ddd17b7a (diff)
downloadhercules-59464c97011417a3535a2a614365211c124bf62e.tar.gz
hercules-59464c97011417a3535a2a614365211c124bf62e.tar.bz2
hercules-59464c97011417a3535a2a614365211c124bf62e.tar.xz
hercules-59464c97011417a3535a2a614365211c124bf62e.zip
Added clif_announce_ex() for broadcasts with varying font size
(patch by Euphidime) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12724 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/clif.c7
-rw-r--r--src/map/clif.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 7275ede90..05e71fe19 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -4550,13 +4550,18 @@ void clif_MainChatMessage(const char* message)
*------------------------------------------*/
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));
WBUFW(buf,0) = 0x1c3;
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);
diff --git a/src/map/clif.h b/src/map/clif.h
index 4ce69e4da..acc336dc2 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -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);