bounty.h
src/bounty.h · 1.3 KB
From the archive cyhawk_mud.tar.gz
Download the archive « Back to the archive contents
/* bounty.h */
#define BOUNTY_FILE "../data/bounty.dat"
#define BOUNTY_CNT_FILE "../data/bounty_cnt.dat"
#define MAX_RANDOM_BOUNTIES 20
typedef struct bounty_data
{
struct bounty_data *next; /* next: it's vital this is the first field! */
char *name; /* Name of the player */
char *who; /* Name of who placed it first */
char *shortd; /* Short Description of Victim */
int id; /* ID of the player */
int timeleft; /* Countdown till expiration */
int amount; /* Amount of money */
int questp; /* Quest points rewarded */
int bountypnts; /* Bounty points rewarded */
int mob; /* Bool, true if its a mob bounty, 20 max */
} BOUNTY;
void load_bounty ();
void save_global_bounty ();
void load_global_bounty ();
void check_bounty (CHAR_DATA * ch, CHAR_DATA * victim);
void create_bounty_paper (CHAR_DATA * ch, char *who, int gold, int qps, int bounties, BOUNTY * p);
void free_bounty (BOUNTY * p);
int count_mob_bounties ();
void generate_random_bounty ();
CHAR_DATA *get_char_world2 (char *argument);
char *rand_bounty_giver ();
void update_bounty ();
BOUNTY * find_bounty (char *name);