diff options
author | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-26 07:40:41 +0000 |
---|---|---|
committer | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-26 07:40:41 +0000 |
commit | ccd3e0e2d45eac452406eab7dfcfa7a08a369042 (patch) | |
tree | d2b4a5a4deee3a0036f081707081a4e4fe668972 /src/map/clif.c | |
parent | c576ad09280dc788d9e95ca410594e88dd5fa7aa (diff) | |
download | hercules-ccd3e0e2d45eac452406eab7dfcfa7a08a369042.tar.gz hercules-ccd3e0e2d45eac452406eab7dfcfa7a08a369042.tar.bz2 hercules-ccd3e0e2d45eac452406eab7dfcfa7a08a369042.tar.xz hercules-ccd3e0e2d45eac452406eab7dfcfa7a08a369042.zip |
added new script commands
from jA
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1182 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 67c925f75..020d8d3a2 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -4761,6 +4761,27 @@ int clif_GMmessage(struct block_list *bl, char* mes, int len, int flag) } /*========================================== + * グローバルメッセージ + *------------------------------------------ + */ +void clif_GlobalMessage(struct block_list *bl,char *message) +{ + char buf[100]; + int len,cmd=0x8d; + + if(!bl || !message) + return; + + len=strlen(message)+1; + + WBUFW(buf,0)=cmd; + WBUFW(buf,2)=len+8; + WBUFL(buf,4)=bl->id; + strncpy(WBUFP(buf,8),message,len); + clif_send(buf,WBUFW(buf,2),bl,AREA_CHAT_WOC); +} + +/*========================================== * HPSP回復エフェクトを送信する *------------------------------------------ */ |