summaryrefslogtreecommitdiff
path: root/src/map/quest.h
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-09-04 11:14:27 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-09-04 11:14:27 +0000
commit9d9b8bcd463e8337d5f3e5b41658eee10e20c17c (patch)
tree5b2f29658eb57408d6e50dfb65cbcc1626ff3595 /src/map/quest.h
parent46311a784a46d1f1afb3173e73aff722f2208958 (diff)
downloadhercules-9d9b8bcd463e8337d5f3e5b41658eee10e20c17c.tar.gz
hercules-9d9b8bcd463e8337d5f3e5b41658eee10e20c17c.tar.bz2
hercules-9d9b8bcd463e8337d5f3e5b41658eee10e20c17c.tar.xz
hercules-9d9b8bcd463e8337d5f3e5b41658eee10e20c17c.zip
* QuestLog Fix.
- mob id no longer stores in sql. - counts won't increase if you have killed sufficient mobs. * Fixed Merchant's medalion wrong aspd bonus (bugreport:3554) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14036 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/quest.h')
-rw-r--r--src/map/quest.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map/quest.h b/src/map/quest.h
index 8d76a40a4..505d2047b 100644
--- a/src/map/quest.h
+++ b/src/map/quest.h
@@ -4,6 +4,16 @@
#ifndef _QUEST_H_
#define _QUEST_H_
+struct s_quest_db {
+ int id;
+ unsigned int time;
+ int mob[MAX_QUEST_OBJECTIVES];
+ int count[MAX_QUEST_OBJECTIVES];
+ int num_objectives;
+ //char name[NAME_LENGTH];
+};
+struct s_quest_db quest_db[MAX_QUEST_DB];
+
typedef enum quest_check_type { HAVEQUEST, PLAYTIME, HUNTING } quest_check_type;
int quest_pc_login(TBL_PC * sd);
@@ -15,6 +25,8 @@ void quest_update_objective(TBL_PC * sd, int mob);
int quest_update_status(TBL_PC * sd, int quest_id, quest_state status);
int quest_check(TBL_PC * sd, int quest_id, quest_check_type type);
+int quest_search_db(int quest_id);
+
void do_init_quest();
#endif