Added %log% command, and made capitalization up to the builders discretion in various trigedit messages. (#35)

* Added %log%, and made %send%, %echo%, etc. not force capitalization.

* Fixed Previous Commit

* Really fixed this time.
This commit is contained in:
Nauzhror
2018-01-15 15:37:42 -05:00
committed by wyld-sw
parent 512fd64d65
commit 023348b0a0
8 changed files with 51 additions and 3 deletions

View File

@@ -52,6 +52,7 @@ WCMD(do_wload);
WCMD(do_wdamage);
WCMD(do_wat);
WCMD(do_wmove);
WCMD(do_wlog);
/* attaches room vnum to msg and sends it to script_log */
@@ -114,6 +115,16 @@ WCMD(do_wecho)
act_to_room(argument, room);
}
WCMD(do_wlog)
{
skip_spaces(&argument);
if (!*argument)
return;
wld_log(room, argument);
}
WCMD(do_wsend)
{
char buf[MAX_INPUT_LENGTH], *msg;
@@ -624,6 +635,7 @@ static const struct wld_command_info wld_cmd_info[] = {
{ "wdamage " , do_wdamage, 0 },
{ "wat " , do_wat, 0 },
{ "wmove " , do_wmove , 0 },
{ "wlog" , do_wlog , 0 },
{ "\n", 0, 0 } /* this must be last */
};