diff options
author | shennetsind <ind@henn.et> | 2013-04-08 00:11:28 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-08 00:11:28 -0300 |
commit | 81ad44467d7f0d4f0d63637ef2996012b9c81a9a (patch) | |
tree | 8bf9b897ac8f802e1cd764c22df36219b3172c02 /src | |
parent | e742e8cf1a8356f9b70ab3ad9ecdc1051976ef72 (diff) | |
download | hercules-81ad44467d7f0d4f0d63637ef2996012b9c81a9a.tar.gz hercules-81ad44467d7f0d4f0d63637ef2996012b9c81a9a.tar.bz2 hercules-81ad44467d7f0d4f0d63637ef2996012b9c81a9a.tar.xz hercules-81ad44467d7f0d4f0d63637ef2996012b9c81a9a.zip |
Minimum Cash Shop Support
So that opening it on new clients won't get you kicked by the server.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 15 | ||||
-rw-r--r-- | src/map/clif.h | 3 | ||||
-rw-r--r-- | src/map/packets.h | 2 |
3 files changed, 20 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 4d2373f17..df0fd1077 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -16284,6 +16284,18 @@ void __attribute__ ((unused)) clif_parse_dull(int fd,struct map_session_data *sd return; } +void clif_parse_CashShopOpen(int fd, struct map_session_data *sd) { + WFIFOHEAD(fd, 10); + WFIFOW(fd, 0) = 0x845; + WFIFOL(fd, 2) = 0; + WFIFOL(fd, 6) = 0; + WFIFOSET(fd, 10); +} + +void clif_parse_CashShopClose(int fd, struct map_session_data *sd) { + +} + /*========================================== * Main client packet processing function *------------------------------------------*/ @@ -17142,4 +17154,7 @@ void clif_defaults(void) { clif->pSkillSelectMenu = clif_parse_SkillSelectMenu; clif->pMoveItem = clif_parse_MoveItem; clif->pDull = clif_parse_dull; + /* RagExe Cash Shop [Ind/Hercules] */ + clif->pCashShopOpen = clif_parse_CashShopOpen; + clif->pCashShopClose = clif_parse_CashShopClose; } diff --git a/src/map/clif.h b/src/map/clif.h index 60a2868bf..1fffb42e8 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -1022,6 +1022,9 @@ struct clif_interface { void (*pSkillSelectMenu) (int fd, struct map_session_data *sd); void (*pMoveItem) (int fd, struct map_session_data *sd); void (*pDull) (int fd, struct map_session_data *sd); + /* RagExe Cash Shop [Ind/Hercules] */ + void (*pCashShopOpen) (int fd, struct map_session_data *sd); + void (*pCashShopClose) (int fd, struct map_session_data *sd); } clif_s; struct clif_interface *clif; diff --git a/src/map/packets.h b/src/map/packets.h index 3d0fd343d..2f4ca6ca4 100644 --- a/src/map/packets.h +++ b/src/map/packets.h @@ -2058,6 +2058,8 @@ packet(0x020d,-1); packet(0x094E,-1,clif->pSearchStoreInfo,2,4,5,9,13,14,15); //packet(0x0835,2,clif->pSearchStoreInfoNextPage,0); //packet(0x0838,12,clif->pSearchStoreInfoListItemClick,2,6,10); + packet(0x0844,2,clif->pCashShopOpen,0);/* tell server cashshop window is being open */ + packet(0x084a,2,clif->pCashShopClose,0);/* tell server cashshop window is being closed */ #endif #endif /* _PACKETS_H_ */ |