forked from kyonshi/grenzland-mud
tbaMUD 3.54
[Oct 10 2007] - Rumble Added OLC menu options for Copying. The Xcopy option is still available for GODs and above. Player table is now created if it does not exist. (thanks Rhade) [Oct 08 2007] - Rumble Removed top_shop_offset variable, hopefully fixing the infamous sedit bug. Fixed memory leaks from not freeing new zone builders and new zone commands. (thanks Neme)
This commit is contained in:
15
src/dg_olc.c
15
src/dg_olc.c
@@ -209,6 +209,7 @@ void trigedit_disp_menu(struct descriptor_data *d)
|
||||
"%s4)%s Numeric Arg : %s%d\r\n"
|
||||
"%s5)%s Arguments : %s%s\r\n"
|
||||
"%s6)%s Commands:\r\n%s%s\r\n"
|
||||
"%sW%s) Copy Trigger\r\n"
|
||||
"%sQ)%s Quit\r\n"
|
||||
"Enter Choice :",
|
||||
|
||||
@@ -219,7 +220,7 @@ void trigedit_disp_menu(struct descriptor_data *d)
|
||||
grn, nrm, yel, trig->narg, /* numeric arg */
|
||||
grn, nrm, yel, trig->arglist?trig->arglist:"",/* strict arg */
|
||||
grn, nrm, cyn, OLC_STORAGE(d), /* the command list */
|
||||
grn, nrm); /* quit colors */
|
||||
grn, nrm, grn, nrm); /* quit colors */
|
||||
|
||||
OLC_MODE(d) = TRIGEDIT_MAIN_MENU;
|
||||
}
|
||||
@@ -307,6 +308,11 @@ void trigedit_parse(struct descriptor_data *d, char *arg)
|
||||
d->mail_to = 0;
|
||||
OLC_VAL(d) = 1;
|
||||
|
||||
break;
|
||||
case 'w':
|
||||
case 'W':
|
||||
write_to_output(d, "Copy what trigger? ");
|
||||
OLC_MODE(d) = TRIGEDIT_COPY;
|
||||
break;
|
||||
default:
|
||||
trigedit_disp_menu(d);
|
||||
@@ -368,6 +374,13 @@ void trigedit_parse(struct descriptor_data *d, char *arg)
|
||||
trigedit_disp_types(d);
|
||||
return;
|
||||
|
||||
case TRIGEDIT_COPY:
|
||||
if ((i = real_room(atoi(arg))) != NOWHERE) {
|
||||
trigedit_setup_existing(d, i);
|
||||
} else
|
||||
write_to_output(d, "That trigger does not exist.\r\n");
|
||||
break;
|
||||
|
||||
case TRIGEDIT_COMMANDS:
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user