diff --git a/changelog b/changelog index 71a15d8..0177d32 100644 --- a/changelog +++ b/changelog @@ -36,6 +36,9 @@ Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist) (lots of major bugfixes too) @ tbaMUD 3.61 +[Oct 27 2009] - Rumble + Added zone 555/556 qst files. + PLR_BUG/IDEA/TYPO flag cleanup. [Oct 24 2009] - Jamdog Added new IBT system for Ideas, Bugs and Typos (thanks Frenze) [Oct 23 2009] - Rumble diff --git a/lib/world/qst/555.qst b/lib/world/qst/555.qst new file mode 100644 index 0000000..185c943 --- /dev/null +++ b/lib/world/qst/555.qst @@ -0,0 +1 @@ +$~ diff --git a/lib/world/qst/556.qst b/lib/world/qst/556.qst new file mode 100644 index 0000000..185c943 --- /dev/null +++ b/lib/world/qst/556.qst @@ -0,0 +1 @@ +$~ diff --git a/src/modify.c b/src/modify.c index 308ea9b..ab21b9b 100644 --- a/src/modify.c +++ b/src/modify.c @@ -207,6 +207,9 @@ void string_add(struct descriptor_data *d, char *str) d->mail_to = 0; d->max_str = 0; 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_WRITING); } @@ -234,6 +237,36 @@ static void playing_string_cleanup(struct descriptor_data *d, int action) if (action == STRINGADD_ABORT) write_to_output(d, "Post not aborted, use REMOVE .\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)