diff options
author | Haru <haru@dotalux.com> | 2018-04-07 23:34:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-07 23:34:46 +0200 |
commit | 189f2ecf6a52937806a8921673c9be6b4157ebf1 (patch) | |
tree | 1102cd6938564b38027cf427be861033bc8028d1 /src/map/clif.h | |
parent | 1286588a17efa51f5c56a1e110bc8d6f8f887e5b (diff) | |
parent | d269ece7b9c4315b59dc5aac970362cc36139be3 (diff) | |
download | hercules-189f2ecf6a52937806a8921673c9be6b4157ebf1.tar.gz hercules-189f2ecf6a52937806a8921673c9be6b4157ebf1.tar.bz2 hercules-189f2ecf6a52937806a8921673c9be6b4157ebf1.tar.xz hercules-189f2ecf6a52937806a8921673c9be6b4157ebf1.zip |
Merge pull request #1990 from Asheraf/attendance_ui
Implementation of Attendance system
Diffstat (limited to 'src/map/clif.h')
-rw-r--r-- | src/map/clif.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/map/clif.h b/src/map/clif.h index eee978aac..f0eaaf6eb 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -388,6 +388,7 @@ enum clif_messages { MSG_NPC_WORK_IN_PROGRESS = 0x783, // FIXME[Haru]: This seems to be 0x784 in the msgstringtable files I found. MSG_REINS_CANT_USE_MOUNTED = 0x78b, // FIXME[Haru]: This seems to be 0x785 in the msgstringtalbe files I found. MSG_PARTY_LEADER_SAMEMAP = 0x82e, //< It is only possible to change the party leader while on the same map. + MSG_ATTENDANCE_UNAVAILABLE = 0xd92, ///< Attendance Check failed. Please try again later. }; /** @@ -575,6 +576,19 @@ enum CZ_CONFIG { 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 +}; +/** * Structures **/ typedef void (*pFunc)(int, struct map_session_data *); //cant help but put it first @@ -599,6 +613,12 @@ struct merge_item { int16 nameid; }; +/* attendance data */ +struct attendance_entry { + int nameid; + int qty; +}; + /** * Clif.c Interface **/ @@ -628,6 +648,8 @@ struct clif_interface { bool ally_only; /* */ struct eri *delayed_damage_ers; + /* */ + VECTOR_DECL(struct attendance_entry) attendance_data; /* core */ int (*init) (bool minimal); void (*final) (void); @@ -1419,6 +1441,15 @@ struct clif_interface { /* Hat Effect */ void (*hat_effect) (struct block_list *bl, struct block_list *tbl, enum send_target target); void (*hat_effect_single) (struct block_list *bl, uint16 effectId, bool enable); + + bool (*pAttendanceDB) (void); + bool (*attendancedb_libconfig_sub) (struct config_setting_t *it, int n, const char *source); + 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 (*pAttendanceRewardRequest) (int fd, struct map_session_data *sd); + void (*ui_action) (struct map_session_data *sd, int32 UIType, int32 data); }; #ifdef HERCULES_CORE |