summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorYommy <Yommy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-06-09 19:57:53 +0000
committerYommy <Yommy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-06-09 19:57:53 +0000
commit3afe53b2e0037df26ade1057f4e6064b90376f74 (patch)
tree002b0013a5aa8c3084622bad14b0c7368ef9f02f /src/map/clif.c
parent21495a40514791bf0c6c1e375f66bb9d49a96529 (diff)
downloadhercules-3afe53b2e0037df26ade1057f4e6064b90376f74.tar.gz
hercules-3afe53b2e0037df26ade1057f4e6064b90376f74.tar.bz2
hercules-3afe53b2e0037df26ade1057f4e6064b90376f74.tar.xz
hercules-3afe53b2e0037df26ade1057f4e6064b90376f74.zip
* Added support for packet 0x7fe which changes the bgm temporarily for a single player.
* Added 2 script commands, playBGM and playBGMall, documented use in doc/script_commands.txt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14335 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index c63722a32..75797a821 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7350,6 +7350,26 @@ int clif_wisall(struct map_session_data *sd,int type,int flag)
return 0;
}
+
+/*==========================================
+ * Play a BGM! [Rikter/Yommy]
+ *------------------------------------------*/
+void clif_playBGM(struct map_session_data* sd, struct block_list* bl, const char* name)
+{
+ int fd;
+
+ nullpo_retv(sd);
+ nullpo_retv(bl);
+
+ fd = sd->fd;
+ WFIFOHEAD(fd,packet_len(0x7fe));
+ WFIFOW(fd,0) = 0x7fe;
+ safestrncpy((char*)WFIFOP(fd,2), name, NAME_LENGTH);
+ WFIFOSET(fd,packet_len(0x7fe));
+
+ return;
+}
+
/*==========================================
* サウンドエフェクト
*------------------------------------------*/
@@ -13946,7 +13966,7 @@ static int packetdb_readdb(void)
6, 2, -1, 4, 4, 4, 4, 8, 8,268, 6, 8, 6, 54, 30, 54,
#endif
0, 0, 0, 0, 0, 8, 8, 32, -1, 5, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 14, 93, 86, 87, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 14, 93, 86, 87, 0, 0, 0, 0, 26, 0,
//#0x0800
-1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,