diff options
Diffstat (limited to 'src/map')
-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_ */ |