diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-01 02:11:23 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-01 02:11:23 +0000 |
commit | 454ae6b78937da966545207b94b1e0a037fdb098 (patch) | |
tree | 4bbf37710cab966b03bab7280b5f425b6cebad36 /src/map/clif.c | |
parent | bab1ce1992acc67b814e3de9f09ac58d569265b1 (diff) | |
download | hercules-454ae6b78937da966545207b94b1e0a037fdb098.tar.gz hercules-454ae6b78937da966545207b94b1e0a037fdb098.tar.bz2 hercules-454ae6b78937da966545207b94b1e0a037fdb098.tar.xz hercules-454ae6b78937da966545207b94b1e0a037fdb098.zip |
* 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
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 9 |
1 files changed, 7 insertions, 2 deletions
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;
}
|