summaryrefslogtreecommitdiff
path: root/src/char/mapif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-08 20:27:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 11:47:29 +0300
commita181f75908d065293685d5adc7c90726fa29c064 (patch)
treef06b4768551614f41862464f911c96253de1948e /src/char/mapif.c
parentf28739e8d1b08d871c8430b949246bb6a0090bc2 (diff)
downloadhercules-a181f75908d065293685d5adc7c90726fa29c064.tar.gz
hercules-a181f75908d065293685d5adc7c90726fa29c064.tar.bz2
hercules-a181f75908d065293685d5adc7c90726fa29c064.tar.xz
hercules-a181f75908d065293685d5adc7c90726fa29c064.zip
Add most functions from int_quest.c to interfaces.
Diffstat (limited to 'src/char/mapif.c')
-rw-r--r--src/char/mapif.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/char/mapif.c b/src/char/mapif.c
index 0a4d5a633..a50f10a38 100644
--- a/src/char/mapif.c
+++ b/src/char/mapif.c
@@ -155,6 +155,14 @@ int mapif_parse_CreatePet(int fd);
int mapif_parse_LoadPet(int fd);
int mapif_parse_SavePet(int fd);
int mapif_parse_DeletePet(int fd);
+struct quest *mapif_quests_fromsql(int char_id, int *count);
+bool mapif_quest_delete(int char_id, int quest_id);
+bool mapif_quest_add(int char_id, struct quest qd);
+bool mapif_quest_update(int char_id, struct quest qd);
+void mapif_quest_save_ack(int fd, int char_id, bool success);
+int mapif_parse_quest_save(int fd);
+void mapif_send_quests(int fd, int char_id, struct quest *tmp_questlog, int num_quests);
+int mapif_parse_quest_load(int fd);
void mapif_defaults(void) {
mapif = &mapif_s;
@@ -294,4 +302,12 @@ void mapif_defaults(void) {
mapif->parse_LoadPet = mapif_parse_LoadPet;
mapif->parse_SavePet = mapif_parse_SavePet;
mapif->parse_DeletePet = mapif_parse_DeletePet;
+ mapif->quests_fromsql = mapif_quests_fromsql;
+ mapif->quest_delete = mapif_quest_delete;
+ mapif->quest_add = mapif_quest_add;
+ mapif->quest_update = mapif_quest_update;
+ mapif->quest_save_ack = mapif_quest_save_ack;
+ mapif->parse_quest_save = mapif_parse_quest_save;
+ mapif->send_quests = mapif_send_quests;
+ mapif->parse_quest_load = mapif_parse_quest_load;
}