summaryrefslogtreecommitdiff
path: root/src/common/mmo.h
diff options
context:
space:
mode:
authorKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-10 03:36:33 +0000
committerKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-10 03:36:33 +0000
commitdef5e240def548bdd4fa6e3ba424d03c883b5bc1 (patch)
tree0ef455f459163037e07d105c35bcce9db922d6cf /src/common/mmo.h
parent34f6935f5f67b01f73551a8fad30cbb12f12c1c2 (diff)
downloadhercules-def5e240def548bdd4fa6e3ba424d03c883b5bc1.tar.gz
hercules-def5e240def548bdd4fa6e3ba424d03c883b5bc1.tar.bz2
hercules-def5e240def548bdd4fa6e3ba424d03c883b5bc1.tar.xz
hercules-def5e240def548bdd4fa6e3ba424d03c883b5bc1.zip
Some preliminary code for the questlog system (clif packet functions and basic data structures).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12544 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/mmo.h')
-rw-r--r--src/common/mmo.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index d246fd02c..9a8da3fad 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -50,6 +50,8 @@
#define MAX_GUILDCASTLE 34 // Updated to include new entries for WoE:SE. [L0ne_W0lf]
#define MAX_GUILDLEVEL 50
#define MAX_GUARDIANS 46 //Local max per castle. [Skotlex]
+#define MAX_QUEST 25 //Max quests for a PC
+#define MAX_QUEST_OBJECTIVES 3 //Max quest objectives for a quest
#define MIN_HAIR_STYLE battle_config.min_hair_style
#define MAX_HAIR_STYLE battle_config.max_hair_style
@@ -123,6 +125,27 @@ enum item_types {
IT_MAX
};
+
+//Questlog system [Kevin]
+typedef enum quest_state { Q_NONE, Q_ACTIVE, Q_INACTIVE } quest_state;
+
+struct quest_objective {
+
+ char * name;
+ int count;
+
+};
+
+struct quest {
+
+ int quest_id;
+ quest_state state;
+ int num_objectives;
+ int time;
+ struct quest_objective objectives[MAX_QUEST_OBJECTIVES];
+
+};
+
struct item {
int id;
short nameid;
@@ -248,6 +271,7 @@ struct mmo_charstatus {
struct point last_point,save_point,memo_point[MAX_MEMOPOINTS];
struct item inventory[MAX_INVENTORY],cart[MAX_CART];
struct skill skill[MAX_SKILL];
+ struct quest quest_log[MAX_QUEST];
struct s_friend friends[MAX_FRIENDS]; //New friend system [Skotlex]
#ifdef HOTKEY_SAVING