mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 10:40:13 +01:00
- Removed the do_oasis function and called the Xedit commands directly (thanks Rhade).
- Updated idle timer to keep track of imms too (thanks Jamdog). - Standardized OLC messages. - Removed special procedures that were replaced with trigedit. - Updated README.WIN, README.MSVC8, and README.CYGWIN. --Rumble
This commit is contained in:
parent
f34cc2c8ed
commit
7f65248b2a
26 changed files with 534 additions and 1006 deletions
38
src/aedit.c
38
src/aedit.c
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
#include "conf.h"
|
||||
#include "sysdep.h"
|
||||
|
||||
#include "structs.h"
|
||||
#include "interpreter.h"
|
||||
#include "handler.h"
|
||||
|
|
@ -34,13 +33,7 @@ void aedit_setup_existing(struct descriptor_data *d, int real_num);
|
|||
void aedit_save_internally(struct descriptor_data *d);
|
||||
void aedit_save_to_disk(struct descriptor_data *d);
|
||||
|
||||
/*
|
||||
* Utils and exported functions.
|
||||
*/
|
||||
|
||||
/*------------------------------------------------------------------------*\
|
||||
Utils and exported functions.
|
||||
\*------------------------------------------------------------------------*/
|
||||
/* Utils and exported functions. */
|
||||
|
||||
ACMD(do_oasis_aedit)
|
||||
{
|
||||
|
|
@ -48,7 +41,11 @@ ACMD(do_oasis_aedit)
|
|||
struct descriptor_data *d;
|
||||
int i;
|
||||
|
||||
if (CONFIG_NEW_SOCIALS == 0) {
|
||||
/* No building as a mob or while being forced. */
|
||||
if (IS_NPC(ch) || !ch->desc || STATE(ch->desc) != CON_PLAYING)
|
||||
return;
|
||||
|
||||
if (CONFIG_NEW_SOCIALS == 0) {
|
||||
send_to_char(ch, "Socials cannot be edited at the moment.\r\n");
|
||||
return;
|
||||
}
|
||||
|
|
@ -81,9 +78,7 @@ ACMD(do_oasis_aedit)
|
|||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Give descriptor an OLC structure.
|
||||
*/
|
||||
/* Give descriptor an OLC structure. */
|
||||
if (d->olc) {
|
||||
mudlog(BRF, LVL_IMMORT, TRUE, "SYSERR: do_oasis: Player already had olc structure.");
|
||||
free(d->olc);
|
||||
|
|
@ -115,7 +110,6 @@ ACMD(do_oasis_aedit)
|
|||
mudlog(CMP, LVL_IMMORT, TRUE, "OLC: %s starts editing actions.", GET_NAME(ch));
|
||||
}
|
||||
|
||||
|
||||
void aedit_setup_new(struct descriptor_data *d) {
|
||||
CREATE(OLC_ACTION(d), struct social_messg, 1);
|
||||
OLC_ACTION(d)->command = strdup(OLC_STORAGE(d));
|
||||
|
|
@ -141,8 +135,6 @@ void aedit_setup_new(struct descriptor_data *d) {
|
|||
OLC_VAL(d) = 0;
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
void aedit_setup_existing(struct descriptor_data *d, int real_num) {
|
||||
CREATE(OLC_ACTION(d), struct social_messg, 1);
|
||||
OLC_ACTION(d)->command = strdup(soc_mess_list[real_num].command);
|
||||
|
|
@ -181,8 +173,6 @@ void aedit_setup_existing(struct descriptor_data *d, int real_num) {
|
|||
aedit_disp_menu(d);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void aedit_save_internally(struct descriptor_data *d) {
|
||||
struct social_messg *new_soc_mess_list = NULL;
|
||||
int i;
|
||||
|
|
@ -212,9 +202,6 @@ void aedit_save_internally(struct descriptor_data *d) {
|
|||
aedit_save_to_disk(d); /* autosave by Rumble */
|
||||
}
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
void aedit_save_to_disk(struct descriptor_data *d) {
|
||||
FILE *fp;
|
||||
int i;
|
||||
|
|
@ -257,11 +244,7 @@ void aedit_save_to_disk(struct descriptor_data *d) {
|
|||
remove_from_save_list(AEDIT_PERMISSION, SL_ACTION);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
/* Menu functions */
|
||||
|
||||
/* the main menu */
|
||||
/* The Main Menu. */
|
||||
void aedit_disp_menu(struct descriptor_data * d) {
|
||||
struct social_messg *action = OLC_ACTION(d);
|
||||
struct char_data *ch = d->character;
|
||||
|
|
@ -332,10 +315,7 @@ void aedit_disp_menu(struct descriptor_data * d) {
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
* The main loop
|
||||
*/
|
||||
|
||||
/* The main loop. */
|
||||
void aedit_parse(struct descriptor_data * d, char *arg) {
|
||||
int i;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue