-
Notifications
You must be signed in to change notification settings - Fork 0
/
genolc.h
66 lines (53 loc) · 1.89 KB
/
genolc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/************************************************************************
* Generic OLC Library - General / genolc.h v1.0 *
* Original author: Levork *
* Copyright 1996 by Harvey Gilpin *
* Copyright 1997-2001 by George Greer ([email protected]) *
************************************************************************/
#if !defined(_CIRCLEMUD) || !defined(CIRCLEMUD_VERSION)
# error "This version of GenOLC only supports CircleMUD 3.0 bpl15 or later."
#else
# if _CIRCLEMUD < CIRCLEMUD_VERSION(3,0,15)
# error "This version of GenOLC only supports CircleMUD 3.0 bpl15 or later."
# endif
#endif
#define STRING_TERMINATOR '~'
#define CONFIG_GENOLC_MOBPROG 0
/* from modify.c */
void smash_tilde(char *str);
int genolc_checkstring(struct descriptor_data *d, char *arg);
int remove_from_save_list(zone_vnum, int type);
int add_to_save_list(zone_vnum, int type);
int in_save_list(zone_vnum, int type);
void strip_cr(char *);
void do_show_save_list(struct char_data *);
int save_all(void);
char *str_udup(const char *);
void copy_ex_descriptions(struct extra_descr_data **to, struct extra_descr_data *from);
void free_ex_descriptions(struct extra_descr_data *head);
int sprintascii(char *out, bitvector_t bits);
struct save_list_data {
int zone;
int type;
struct save_list_data *next;
};
extern struct save_list_data *save_list;
extern int top_shop_offset;
extern int top_guild_offset;
/* save_list_data.type */
#define SL_MOB 0
#define SL_OBJ 1
#define SL_SHP 2
#define SL_WLD 3
#define SL_ZON 4
#define SL_CFG 5
#define SL_GLD 6
#define SL_QST 7
#define SL_MAX 7
#define SL_ACTION 100 /* must be above MAX */
#define SL_HELP 101 /* must be above MAX */
#define SL_ASSEMBLIES 102
#define ZCMD(zon, cmds) zone_table[(zon)].cmd[(cmds)]
#define LIMIT(var, low, high) MIN(high, MAX(var, low))
room_vnum genolc_zone_bottom(zone_rnum rznum);
room_vnum genolc_zonep_bottom(struct zone_data *zone);