mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-23 15:55:26 +01:00
MAJOR UPDATE: Admin Levels split from Mortal Levels
This commit is contained in:
parent
2b30509371
commit
dcba9d6441
77 changed files with 2882 additions and 2067 deletions
10
src/genqst.c
10
src/genqst.c
|
|
@ -111,14 +111,14 @@ int add_quest(struct aq_data *nqst)
|
|||
if (qmrnum != NOBODY && mob_index[qmrnum].func &&
|
||||
mob_index[qmrnum].func != questmaster)
|
||||
QST_FUNC(rnum) = mob_index[qmrnum].func;
|
||||
if(qmrnum != NOBODY)
|
||||
if(qmrnum != NOBODY)
|
||||
mob_index[qmrnum].func = questmaster;
|
||||
|
||||
/* And make sure we save the updated quest information to disk */
|
||||
if (rznum != NOWHERE)
|
||||
add_to_save_list(zone_table[rznum].number, SL_QST);
|
||||
else
|
||||
mudlog(BRF, LVL_BUILDER, TRUE,
|
||||
mudlog(BRF, ADMLVL_BUILDER, TRUE,
|
||||
"SYSERR: GenOLC: Cannot determine quest zone.");
|
||||
|
||||
return rnum;
|
||||
|
|
@ -136,7 +136,7 @@ int delete_quest(qst_rnum rnum)
|
|||
|
||||
if (rnum >= total_quests)
|
||||
return FALSE;
|
||||
rznum = real_zone_by_thing(QST_NUM(rnum));
|
||||
rznum = real_zone_by_thing(QST_NUM(rnum));
|
||||
log("GenOLC: delete_quest: Deleting quest #%d (%s).",
|
||||
QST_NUM(rnum), QST_NAME(rnum));
|
||||
/* make a note of the quest master's secondary spec proc */
|
||||
|
|
@ -152,12 +152,12 @@ int delete_quest(qst_rnum rnum)
|
|||
RECREATE(aquest_table, struct aq_data, total_quests);
|
||||
else {
|
||||
free(aquest_table);
|
||||
aquest_table = NULL;
|
||||
aquest_table = NULL;
|
||||
}
|
||||
if (rznum != NOWHERE)
|
||||
add_to_save_list(zone_table[rznum].number, SL_QST);
|
||||
else
|
||||
mudlog(BRF, LVL_BUILDER, TRUE,
|
||||
mudlog(BRF, ADMLVL_BUILDER, TRUE,
|
||||
"SYSERR: GenOLC: Cannot determine quest zone.");
|
||||
/* does the questmaster mob have any quests left? */
|
||||
if (qm != NOBODY) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue