diff options
author | Haru <haru@dotalux.com> | 2018-06-18 21:00:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-18 21:00:37 +0200 |
commit | 242bb0f939ff2e68fff8914853cbb87baa8296b6 (patch) | |
tree | de2b65845517132611aad62926ecc26ac6e8f846 /src/map/clif.h | |
parent | 2d840771eeee1d9e158e843bcc14f9d69d1cf22e (diff) | |
parent | dfc078354025408dd5140e95702b0661b52d1e16 (diff) | |
download | hercules-242bb0f939ff2e68fff8914853cbb87baa8296b6.tar.gz hercules-242bb0f939ff2e68fff8914853cbb87baa8296b6.tar.bz2 hercules-242bb0f939ff2e68fff8914853cbb87baa8296b6.tar.xz hercules-242bb0f939ff2e68fff8914853cbb87baa8296b6.zip |
Merge pull request #2064 from 4144/updatepackets
update packets and message table for clients 20180530 to 20180612
Diffstat (limited to 'src/map/clif.h')
-rw-r--r-- | src/map/clif.h | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/src/map/clif.h b/src/map/clif.h index 67137f5d3..4b625023f 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -550,19 +550,36 @@ enum CZ_CONFIG { CZ_CONFIG_PET_AUTOFEEDING = 2, CZ_CONFIG_HOMUNCULUS_AUTOFEEDING = 3, }; + /** * Client UI types * used with packet 0xAE2 to request the client to open a specific ui **/ -enum ui_types { - BANK_UI = 0, - STYLIST_UI, - CAPTCHA_UI, - MACRO_UI, - TIPBOX_UI = 5, - RENEWQUEST_UI, - ATTENDANCE_UI +enum zc_ui_types { +#if PACKETVER >= 20150128 + ZC_BANK_UI = 0, + ZC_STYLIST_UI = 1, + ZC_CAPTCHA_UI = 2, + ZC_MACRO_UI = 3, +#endif + zc_ui_unused = 4, // for avoid compilation errors +#if PACKETVER >= 20171122 + ZC_TIPBOX_UI = 5, + ZC_RENEWQUEST_UI = 6, + ZC_ATTENDANCE_UI = 7 +#endif +}; + +/** +* Client to server open ui request types (packet 0x0a68) +**/ +enum cz_ui_types { + CZ_STYLIST_UI = 1, + //unknown = 2, + //unknown = 3, + CZ_ATTENDANCE_UI = 5 }; + /** * Private Airship Responds **/ @@ -1452,7 +1469,7 @@ struct clif_interface { bool (*attendance_timediff) (struct map_session_data *sd); time_t (*attendance_getendtime) (void); void (*pOpenUIRequest) (int fd, struct map_session_data *sd); - void (*open_ui) (struct map_session_data *sd, int8 UIType); + void (*open_ui) (struct map_session_data *sd, enum cz_ui_types uiType); void (*pAttendanceRewardRequest) (int fd, struct map_session_data *sd); void (*ui_action) (struct map_session_data *sd, int32 UIType, int32 data); void (*pPrivateAirshipRequest) (int fd, struct map_session_data *sd); |