From 454ae6b78937da966545207b94b1e0a037fdb098 Mon Sep 17 00:00:00 2001 From: Lance Date: Sat, 1 Apr 2006 02:11:23 +0000 Subject: * April fool! Improved soundeffectall script command. (No, this is not a lie) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5832 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index 676f7c707..9472a07bd 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -8317,11 +8317,16 @@ void clif_soundeffect(struct map_session_data *sd,struct block_list *bl,char *na return; } -int clif_soundeffectall(struct block_list *bl, char *name, int type) +int clif_soundeffectall(struct block_list *bl, char *name, int type, int coverage) { unsigned char buf[40]; memset(buf, 0, packet_len_table[0x1d3]); + if(coverage < 0 || coverage > 22){ + ShowError("clif_soundeffectall: undefined coverage.\n"); + return 0; + } + nullpo_retr(0, bl); WBUFW(buf,0)=0x1d3; @@ -8329,7 +8334,7 @@ int clif_soundeffectall(struct block_list *bl, char *name, int type) WBUFB(buf,26)=type; WBUFL(buf,27)=0; WBUFL(buf,31)=bl->id; - clif_send(buf, packet_len_table[0x1d3], bl, AREA); + clif_send(buf, packet_len_table[0x1d3], bl, coverage); return 0; } -- cgit v1.2.3-60-g2f50