diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-07-25 20:55:35 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-07-25 20:55:35 +0000 |
commit | 34b37179c0895f0b0acc4377bf2bfe5edfcff9ce (patch) | |
tree | d650d9bc108404fa0949d5ec2754d96cde31926b /src/map/quest.h | |
parent | a93b8b9c2537bd8359d647ae23e90d084d019535 (diff) | |
download | hercules-34b37179c0895f0b0acc4377bf2bfe5edfcff9ce.tar.gz hercules-34b37179c0895f0b0acc4377bf2bfe5edfcff9ce.tar.bz2 hercules-34b37179c0895f0b0acc4377bf2bfe5edfcff9ce.tar.xz hercules-34b37179c0895f0b0acc4377bf2bfe5edfcff9ce.zip |
Rewrote Quest Log system.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13959 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/quest.h')
-rw-r--r-- | src/map/quest.h | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/src/map/quest.h b/src/map/quest.h index c8fa98246..16870d381 100644 --- a/src/map/quest.h +++ b/src/map/quest.h @@ -4,19 +4,34 @@ #ifndef _QUEST_H_ #define _QUEST_H_ +typedef enum quest_check_type { HAVEQUEST, PLAYTIME, HUNTING } quest_check_type; + +struct s_quest_db { + int id; + unsigned int time; + int mob[MAX_QUEST_OBJECTIVES]; + int count[MAX_QUEST_OBJECTIVES]; + //char name[NAME_LENGTH]; +}; +struct s_quest_db quest_db[MAX_QUEST_DB]; + int quest_pc_login(TBL_PC * sd); -int quest_load_info(TBL_PC * sd, struct mmo_charstatus * st); -int quest_make_savedata(TBL_PC * sd); -int quest_add(TBL_PC * sd, struct quest * qd); +int quest_add(TBL_PC * sd, int quest_id); int quest_add_ack(int char_id, int quest_id, int success); int quest_delete(TBL_PC * sd, int quest_id); int quest_delete_ack(int char_id, int quest_id, int success); -int quest_update_objective(TBL_PC * sd, int quest_id, int objective_num, const char * name, int count); -int quest_update_status(TBL_PC * sd, int quest_id, bool status); +void quest_update_objective(TBL_PC * sd, int mob); +int quest_update_status(TBL_PC * sd, int quest_id, int status); +int quest_save(TBL_PC * sd); +int quest_save_ack(int char_id, int quest_id, int success); + +int quest_check_quest(TBL_PC * sd, int quest_id, quest_check_type type); + +int quest_search_db(int quest_id); -bool quest_has_quest(TBL_PC * sd, int quest_id); +void do_init_quest(); #endif |