[Dec 16 2009] - Rumble

Added some missing code for last_ibt in ibt.c.
  Fixed typos in ibt.c (thanks Elervan)
[Dec 13 2009] - Rumble
  Changed set password to level GRGOD.
[Dec 08 2009] - Rumble
  Added "current zone:" to immortal score.
This commit is contained in:
Rumble 2009-12-16 01:07:25 +00:00
parent 32880daf6b
commit 828fa48bb3
5 changed files with 36 additions and 19 deletions

View file

@ -36,11 +36,17 @@ Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
(lots of major bugfixes too) (lots of major bugfixes too)
@ @
tbaMUD 3.61 tbaMUD 3.61
[Dec 16 2009] - Rumble
Added some missing code for last_ibt in ibt.c.
Fixed typos in ibt.c (thanks Elervan)
[Dec 13 2009] - Rumble
Changed set password to level GRGOD.
[Dec 08 2009] - Rumble
Added "current zone:" to immortal score.
[Dec 07 2009] - Rumble [Dec 07 2009] - Rumble
Renumbered UNUSED triggers to UNUSED# to make it easier to unset them when changing trig types. (thanks Parna) Renumbered UNUSED triggers to UNUSED# to make it easier to unset them when changing trig types. (thanks Parna)
Fixed double free in IBT that caused crash on /a or saving without any description. Fixed double free in IBT that caused crash on /a or saving without any description.
[Dec 06 2009] - Rumble [Dec 06 2009] - Rumble
Fixed medit sex and position numbering. The numbering was wrong with the new column_list.
Fixed medit autoroll so it would recognize a change and save. Fixed medit autoroll so it would recognize a change and save.
[Dec 05 2009] - Rumble [Dec 05 2009] - Rumble
Changed zedit clear level restrictions to dump you back at main zedit menu instead of in the level menu. Changed zedit clear level restrictions to dump you back at main zedit menu instead of in the level menu.

View file

@ -907,6 +907,9 @@ ACMD(do_score)
send_to_char(ch, "%sPOOFOUT: %s%s %s%s\r\n", QYEL, QCYN, GET_NAME(ch), POOFOUT(ch), QNRM); send_to_char(ch, "%sPOOFOUT: %s%s %s%s\r\n", QYEL, QCYN, GET_NAME(ch), POOFOUT(ch), QNRM);
else else
send_to_char(ch, "%sPOOFOUT: %s%s disappears in a puff of smoke.%s\r\n", QYEL, QCYN, GET_NAME(ch), QNRM); send_to_char(ch, "%sPOOFOUT: %s%s disappears in a puff of smoke.%s\r\n", QYEL, QCYN, GET_NAME(ch), QNRM);
send_to_char(ch, "Your current zone: %s%d%s\r\n", CCCYN(ch, C_NRM), GET_OLC_ZONE(ch),
CCNRM(ch, C_NRM));
} }
} }

View file

@ -2741,7 +2741,7 @@ ACMD(do_show)
{ "nosummon", LVL_BUILDER, PC, BINARY }, /* 35 */ { "nosummon", LVL_BUILDER, PC, BINARY }, /* 35 */
{ "nowizlist", LVL_GRGOD, PC, BINARY }, { "nowizlist", LVL_GRGOD, PC, BINARY },
{ "olc", LVL_GRGOD, PC, MISC }, { "olc", LVL_GRGOD, PC, MISC },
{ "password", LVL_IMPL, PC, MISC }, { "password", LVL_GRGOD, PC, MISC },
{ "poofin", LVL_IMMORT, PC, MISC }, { "poofin", LVL_IMMORT, PC, MISC },
{ "poofout", LVL_IMMORT, PC, MISC }, /* 40 */ { "poofout", LVL_IMMORT, PC, MISC }, /* 40 */
{ "practices", LVL_GOD, PC, NUMBER }, { "practices", LVL_GOD, PC, NUMBER },

View file

@ -47,7 +47,7 @@ const char *ibt_types[]={
"Bug", "Bug",
"Idea", "Idea",
"Typo", "Typo",
"/n" "\n"
}; };
/* Internal (static) functions */ /* Internal (static) functions */
@ -55,6 +55,7 @@ static IBT_DATA *new_ibt(void);
static void free_ibt_list(IBT_DATA *first_ibt, IBT_DATA *last_ibt); static void free_ibt_list(IBT_DATA *first_ibt, IBT_DATA *last_ibt);
static IBT_DATA *read_ibt(char *filename, FILE *fp); static IBT_DATA *read_ibt(char *filename, FILE *fp);
static IBT_DATA *get_first_ibt(int mode); static IBT_DATA *get_first_ibt(int mode);
static IBT_DATA *get_last_ibt(int mode);
/* Internal (static) OLC functions */ /* Internal (static) OLC functions */
static void ibtedit_setup(struct descriptor_data *d); static void ibtedit_setup(struct descriptor_data *d);
static void ibtedit_save(struct descriptor_data *d); static void ibtedit_save(struct descriptor_data *d);
@ -332,6 +333,22 @@ static IBT_DATA *get_first_ibt(int mode)
return (first_ibt); return (first_ibt);
} }
static IBT_DATA *get_last_ibt(int mode)
{
IBT_DATA *last_ibt = NULL;
switch(mode) {
case SCMD_BUG : last_ibt = last_bug;
break;
case SCMD_IDEA: last_ibt = last_idea;
break;
case SCMD_TYPO: last_ibt = last_typo;
break;
default : log("SYSERR: Invalid mode (%d) in get_last_ibt", mode);
break;
}
return (last_ibt);
}
IBT_DATA *get_ibt_by_num(int mode, int target_num) IBT_DATA *get_ibt_by_num(int mode, int target_num)
{ {
int no=0; int no=0;
@ -407,7 +424,7 @@ ACMD(do_ibt)
argument = two_arguments(argument, arg, arg2); argument = two_arguments(argument, arg, arg2);
first_ibt = get_first_ibt(subcmd); first_ibt = get_first_ibt(subcmd);
last_ibt = get_first_ibt(subcmd); last_ibt = get_last_ibt(subcmd);
if ((!*arg)){ if ((!*arg)){
if (GET_LEVEL(ch) >= LVL_GRGOD){ if (GET_LEVEL(ch) >= LVL_GRGOD){

View file

@ -299,28 +299,19 @@ void medit_save_internally(struct descriptor_data *d)
Display positions. (sitting, standing, etc) */ Display positions. (sitting, standing, etc) */
static void medit_disp_positions(struct descriptor_data *d) static void medit_disp_positions(struct descriptor_data *d)
{ {
int i;
get_char_colors(d->character); get_char_colors(d->character);
clear_screen(d); clear_screen(d);
column_list(d->character, 0, position_types, NUM_POSITIONS, TRUE);
for (i = 0; *position_types[i] != '\n'; i++) {
write_to_output(d, "%s%2d%s) %s\r\n", grn, i, nrm, position_types[i]);
}
write_to_output(d, "Enter position number : "); write_to_output(d, "Enter position number : ");
} }
/* Display the gender of the mobile. */ /* Display the gender of the mobile. */
static void medit_disp_sex(struct descriptor_data *d) static void medit_disp_sex(struct descriptor_data *d)
{ {
int i;
get_char_colors(d->character); get_char_colors(d->character);
clear_screen(d); clear_screen(d);
column_list(d->character, 0, genders, NUM_GENDERS, TRUE);
for (i = 0; i < NUM_GENDERS; i++) { write_to_output(d, "Enter gender number : ");
write_to_output(d, "%s%2d%s) %s\r\n", grn, i, nrm, genders[i]);
}
} }
/* Display attack types menu. */ /* Display attack types menu. */
@ -868,7 +859,7 @@ void medit_parse(struct descriptor_data *d, char *arg)
/* Numerical responses. */ /* Numerical responses. */
case MEDIT_SEX: case MEDIT_SEX:
GET_SEX(OLC_MOB(d)) = LIMIT(i, 0, NUM_GENDERS - 1); GET_SEX(OLC_MOB(d)) = LIMIT(i - 1, 0, NUM_GENDERS - 1);
break; break;
case MEDIT_HITROLL: case MEDIT_HITROLL:
@ -998,11 +989,11 @@ void medit_parse(struct descriptor_data *d, char *arg)
return; return;
case MEDIT_POS: case MEDIT_POS:
GET_POS(OLC_MOB(d)) = LIMIT(i, 0, NUM_POSITIONS - 1); GET_POS(OLC_MOB(d)) = LIMIT(i - 1, 0, NUM_POSITIONS - 1);
break; break;
case MEDIT_DEFAULT_POS: case MEDIT_DEFAULT_POS:
GET_DEFAULT_POS(OLC_MOB(d)) = LIMIT(i, 0, NUM_POSITIONS - 1); GET_DEFAULT_POS(OLC_MOB(d)) = LIMIT(i - 1, 0, NUM_POSITIONS - 1);
break; break;
case MEDIT_ATTACK: case MEDIT_ATTACK: