Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**********/
- /* Quests */
- /**********/
- #define QUESTSIZE (sizeof(struct quest)*100)
- struct quest
- {
- char name[40];
- char description[200];
- // objectives ID examples: 1 - deliver item, 2 - slay X monsters from class Y, 3 - slay 1 monster from # template, etc.
- unsigned char obj_x; // amount of objectives
- unsigned char objective[10]; // objective ID for quests
- unsigned int objective_data[10][2] // extra data for each objective (# monsters to slay, # items in delivery stack, etc.)
- // requirements
- unsigned char req_rank; // rank requirement
- unsigned char req_EL; // effective level requirement
- unsigned char req_quest; // requires completion of quest #
- // rewards
- unsigned int rwd_xp;
- unsigned int rwd_gp;
- unsigned int rwd_skill;
- unsigned int rwd_item;
- unsigned int rwd_itemx; // for stackable items, i.e. amount in stack
- unsigned char rwd_special; // special rewards - defined through code
- unsigned char chain; // # of quest unlocked once completing this one
- unsigned int compl[10]; // sets up to other 10 quests as completed once this one is completed
- // 0-> greet / 1-> in progress / 2-> finish
- char msg_greet[160];
- char msg_progress[160];
- char msg_finish[160];
- } __attribute__ ((packed));
- /**********/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement