PLR_BUG/IDEA/TYPO flag cleanup. Added zone 555/556 qst files --Rumble
This commit is contained in:
@@ -36,6 +36,9 @@ Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
|
|||||||
(lots of major bugfixes too)
|
(lots of major bugfixes too)
|
||||||
@
|
@
|
||||||
tbaMUD 3.61
|
tbaMUD 3.61
|
||||||
|
[Oct 27 2009] - Rumble
|
||||||
|
Added zone 555/556 qst files.
|
||||||
|
PLR_BUG/IDEA/TYPO flag cleanup.
|
||||||
[Oct 24 2009] - Jamdog
|
[Oct 24 2009] - Jamdog
|
||||||
Added new IBT system for Ideas, Bugs and Typos (thanks Frenze)
|
Added new IBT system for Ideas, Bugs and Typos (thanks Frenze)
|
||||||
[Oct 23 2009] - Rumble
|
[Oct 23 2009] - Rumble
|
||||||
|
|||||||
1
lib/world/qst/555.qst
Normal file
1
lib/world/qst/555.qst
Normal file
@@ -0,0 +1 @@
|
|||||||
|
$~
|
||||||
1
lib/world/qst/556.qst
Normal file
1
lib/world/qst/556.qst
Normal file
@@ -0,0 +1 @@
|
|||||||
|
$~
|
||||||
33
src/modify.c
33
src/modify.c
@@ -207,6 +207,9 @@ void string_add(struct descriptor_data *d, char *str)
|
|||||||
d->mail_to = 0;
|
d->mail_to = 0;
|
||||||
d->max_str = 0;
|
d->max_str = 0;
|
||||||
if (d->character && !IS_NPC(d->character)) {
|
if (d->character && !IS_NPC(d->character)) {
|
||||||
|
REMOVE_BIT_AR(PLR_FLAGS(d->character), PLR_BUG);
|
||||||
|
REMOVE_BIT_AR(PLR_FLAGS(d->character), PLR_IDEA);
|
||||||
|
REMOVE_BIT_AR(PLR_FLAGS(d->character), PLR_TYPO);
|
||||||
REMOVE_BIT_AR(PLR_FLAGS(d->character), PLR_MAILING);
|
REMOVE_BIT_AR(PLR_FLAGS(d->character), PLR_MAILING);
|
||||||
REMOVE_BIT_AR(PLR_FLAGS(d->character), PLR_WRITING);
|
REMOVE_BIT_AR(PLR_FLAGS(d->character), PLR_WRITING);
|
||||||
}
|
}
|
||||||
@@ -234,6 +237,36 @@ static void playing_string_cleanup(struct descriptor_data *d, int action)
|
|||||||
if (action == STRINGADD_ABORT)
|
if (action == STRINGADD_ABORT)
|
||||||
write_to_output(d, "Post not aborted, use REMOVE <post #>.\r\n");
|
write_to_output(d, "Post not aborted, use REMOVE <post #>.\r\n");
|
||||||
}
|
}
|
||||||
|
if (PLR_FLAGGED(d->character, PLR_IDEA)) {
|
||||||
|
if (action == STRINGADD_SAVE && *d->str){
|
||||||
|
write_to_output(d, "Idea saved!\r\n");
|
||||||
|
save_ibt_file(SCMD_IDEA);
|
||||||
|
} else {
|
||||||
|
write_to_output(d, "Idea aborted!\r\n");
|
||||||
|
free(*d->str);
|
||||||
|
free(d->str);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (PLR_FLAGGED(d->character, PLR_BUG)) {
|
||||||
|
if (action == STRINGADD_SAVE && *d->str){
|
||||||
|
write_to_output(d, "Bug saved!\r\n");
|
||||||
|
save_ibt_file(SCMD_BUG);
|
||||||
|
} else {
|
||||||
|
write_to_output(d, "Bug aborted!\r\n");
|
||||||
|
free(*d->str);
|
||||||
|
free(d->str);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (PLR_FLAGGED(d->character, PLR_TYPO)) {
|
||||||
|
if (action == STRINGADD_SAVE && *d->str){
|
||||||
|
write_to_output(d, "Typo saved!\r\n");
|
||||||
|
save_ibt_file(SCMD_TYPO);
|
||||||
|
} else {
|
||||||
|
write_to_output(d, "Typo aborted!\r\n");
|
||||||
|
free(*d->str);
|
||||||
|
free(d->str);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void exdesc_string_cleanup(struct descriptor_data *d, int action)
|
static void exdesc_string_cleanup(struct descriptor_data *d, int action)
|
||||||
|
|||||||
Reference in New Issue
Block a user