summaryrefslogtreecommitdiff
path: root/src/map/party.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-08 22:43:11 -0300
committershennetsind <ind@henn.et>2013-06-08 22:43:11 -0300
commit4a51fc7e5eec9a464c754d3d1e0ee44da1ca6f72 (patch)
tree73fe91762e3115e2a8a01675c0235fb2567225b8 /src/map/party.h
parentcab0a3a6bfb0c7c7e4d108beb18050854af98753 (diff)
downloadhercules-4a51fc7e5eec9a464c754d3d1e0ee44da1ca6f72.tar.gz
hercules-4a51fc7e5eec9a464c754d3d1e0ee44da1ca6f72.tar.bz2
hercules-4a51fc7e5eec9a464c754d3d1e0ee44da1ca6f72.tar.xz
hercules-4a51fc7e5eec9a464c754d3d1e0ee44da1ca6f72.zip
mkbu95's Party Recruit Update
There are still some features as blocklist and volunteer that were not worked on due to some lack of information. Special Thanks to mkbu95, Spira and Yommy Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/party.h')
-rw-r--r--src/map/party.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/map/party.h b/src/map/party.h
index 79d47105f..5ebf7b357 100644
--- a/src/map/party.h
+++ b/src/map/party.h
@@ -33,6 +33,7 @@ struct party_data {
} state;
};
+#ifndef PARTY_RECRUIT
struct party_booking_detail {
short level;
short mapid;
@@ -42,9 +43,23 @@ struct party_booking_detail {
struct party_booking_ad_info {
unsigned long index;
char charname[NAME_LENGTH];
- long starttime;
+ long expiretime;
struct party_booking_detail p_detail;
};
+#else
+#define PB_NOTICE_LENGTH (36 + 1)
+struct party_booking_detail {
+ short level;
+ char notice[PB_NOTICE_LENGTH];
+};
+
+struct party_booking_ad_info {
+ unsigned long index;
+ long expiretime;
+ char charname[NAME_LENGTH];
+ struct party_booking_detail p_detail;
+};
+#endif
int party_foreachsamemap(int (*func)(struct block_list *,va_list),struct map_session_data *sd,int range,...);
@@ -97,9 +112,15 @@ struct party_interface {
int (*share_loot) (struct party_data* p, struct map_session_data* sd, struct item* item_data, int first_charid);
int (*send_dot_remove) (struct map_session_data *sd);
int (*sub_count) (struct block_list *bl, va_list ap);
+#ifndef PARTY_RECRUIT
void (*booking_register) (struct map_session_data *sd, short level, short mapid, short* job);
void (*booking_update) (struct map_session_data *sd, short* job);
void (*booking_search) (struct map_session_data *sd, short level, short mapid, short job, unsigned long lastindex, short resultcount);
+#else
+ void (*booking_register) (struct map_session_data *sd, short level, const char *notice);
+ void (*booking_update) (struct map_session_data *sd, const char *notice);
+ void (*booking_search) (struct map_session_data *sd, short level, short mapid, unsigned long lastindex, short resultcount);
+#endif
bool (*booking_delete) (struct map_session_data *sd);
} party_s;