summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhemagx <hemagx2@gmail.com>2015-12-25 15:08:31 +0200
committerhemagx <hemagx2@gmail.com>2015-12-25 15:08:31 +0200
commit88d4e4ee9f8716e8bcdaa5c666c3aafe11c0cae2 (patch)
tree63b57de9e81dd8b6fa4f16b050218bcca3e291e7 /src
parent436b3b96c868285e0f3743b92d582e104b9d4f03 (diff)
parent8d964e8c0f8bb7834428e84349450f21baf6927e (diff)
downloadhercules-88d4e4ee9f8716e8bcdaa5c666c3aafe11c0cae2.tar.gz
hercules-88d4e4ee9f8716e8bcdaa5c666c3aafe11c0cae2.tar.bz2
hercules-88d4e4ee9f8716e8bcdaa5c666c3aafe11c0cae2.tar.xz
hercules-88d4e4ee9f8716e8bcdaa5c666c3aafe11c0cae2.zip
Merge pull request #977 from dastgir/5-DressRoom
Dressroom Packet implemented
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c14
-rw-r--r--src/map/clif.h1
-rw-r--r--src/map/packets.h5
3 files changed, 18 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index eac7fa91e..f954a4d79 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -18551,6 +18551,19 @@ void clif_cancelmergeitem (int fd, struct map_session_data *sd)
return;
}
+void clif_dressroom_open(struct map_session_data *sd, int view)
+{
+ int fd;
+
+ nullpo_retv(sd);
+
+ fd = sd->fd;
+ WFIFOHEAD(fd,packet_len(0xa02));
+ WFIFOW(fd,0)=0xa02;
+ WFIFOW(fd,2)=view;
+ WFIFOSET(fd,packet_len(0xa02));
+}
+
/* */
unsigned short clif_decrypt_cmd( int cmd, struct map_session_data *sd ) {
if( sd ) {
@@ -19606,4 +19619,5 @@ void clif_defaults(void) {
/* */
clif->add_random_options = clif_add_random_options;
clif->pHotkeyRowShift = clif_parse_HotkeyRowShift;
+ clif->dressroom_open = clif_dressroom_open;
}
diff --git a/src/map/clif.h b/src/map/clif.h
index cbf34d0d0..5a6b01d31 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -1337,6 +1337,7 @@ struct clif_interface {
/* */
void (*add_random_options) (unsigned char* buf, struct item* item);
void (*pHotkeyRowShift) (int fd, struct map_session_data *sd);
+ void (*dressroom_open) (struct map_session_data *sd, int view);
};
#ifdef HERCULES_CORE
diff --git a/src/map/packets.h b/src/map/packets.h
index 0efdcb1ec..9b9c7945f 100644
--- a/src/map/packets.h
+++ b/src/map/packets.h
@@ -2910,8 +2910,9 @@ packet(0x96e,-1,clif->ackmergeitems);
packet(0x08A8,26,clif->pFriendsListAdd,2);
packet(0x0817,5,clif->pHomMenu,2,4);
packet(0x0923,36,clif->pStoragePassword,0);
- packet(0x09e8,11,clif->pDull); //CZ_OPEN_MAILBOX
- packet(0x0a2e,6,clif->pDull); //TITLE
+ packet(0x09e8,11,clif->pDull); // CZ_OPEN_MAILBOX
+ packet(0x0a2e,6,clif->pDull); // TITLE
+ packet(0x0a02,4); // ZC_DRESSROOM_OPEN
#endif
/* PacketKeys: http://herc.ws/board/topic/1105-hercules-wpe-free-june-14th-patch/ */