mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-18 09:31:45 +01:00
[Oct 10 2007] - Rumble Added OLC menu options for Copying. The Xcopy option is still available for GODs and above. Player table is now created if it does not exist. (thanks Rhade) [Oct 08 2007] - Rumble Removed top_shop_offset variable, hopefully fixing the infamous sedit bug. Fixed memory leaks from not freeing new zone builders and new zone commands. (thanks Neme)
50 lines
1.6 KiB
C
50 lines
1.6 KiB
C
/**************************************************************************
|
|
* File: genolc.h Part of tbaMUD *
|
|
* *
|
|
* Usage: Generic OLC Library - General. *
|
|
* *
|
|
* Copyright 1996 by Harvey Gilpin, 1997-2001 by George Greer. *
|
|
**************************************************************************/
|
|
|
|
#define STRING_TERMINATOR '~'
|
|
#define CONFIG_GENOLC_MOBPROG 0
|
|
|
|
void smash_tilde(char *str); /* from modify.c */
|
|
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 *);
|
|
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;
|
|
|
|
/* 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_MAX 5
|
|
#define SL_ACT SL_MAX + 1 /* must be above MAX */
|
|
#define SL_HLP SL_MAX + 2
|
|
|
|
#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);
|
|
|