Merc22MCCPMXP.patch
Merc22MCCPMXP.patch · 190.9 KB
From the archive MXP_MCCP.zip
Download the archive « Back to the archive contents
diff -u srcorig/act_comm.c src/act_comm.c
--- srcorig/act_comm.c 2004-12-01 08:18:50.000000000 -0600
+++ src/act_comm.c 2004-12-01 08:42:24.000000000 -0600
@@ -220,7 +220,7 @@
vnum++;
}
}
- send_to_char( buf1, ch );
+ mxp_to_char( buf1, ch, MXP_ALL );
return;
}
@@ -252,13 +252,13 @@
strcat( buf1, buf );
strcat( buf1, pnote->text );
ch->last_note = UMAX( ch->last_note, pnote->date_stamp );
- send_to_char( buf1, ch );
+ mxp_to_char( buf1, ch, MXP_ALL );
return;
}
else
vnum++;
}
- send_to_char( "You have no unread notes.\n\r", ch );
+ mxp_to_char( "You have no unread notes.\n\r", ch, MXP_ALL );
return;
}
else if ( is_number( argument ) )
@@ -268,7 +268,7 @@
}
else
{
- send_to_char( "Note read which number?\n\r", ch );
+ mxp_to_char( "Note read which number?\n\r", ch, MXP_ALL );
return;
}
@@ -286,13 +286,13 @@
);
strcat( buf1, buf );
strcat( buf1, pnote->text );
- send_to_char( buf1, ch );
+ mxp_to_char( buf1, ch, MXP_ALL );
ch->last_note = UMAX( ch->last_note, pnote->date_stamp );
return;
}
}
- send_to_char( "No such note.\n\r", ch );
+ mxp_to_char( "No such note.\n\r", ch, MXP_ALL );
return;
}
@@ -302,7 +302,7 @@
strcpy( buf, ch->pnote->text );
if ( strlen(buf) + strlen(argument) >= MAX_STRING_LENGTH - 200 )
{
- send_to_char( "Note too long.\n\r", ch );
+ mxp_to_char( "Note too long.\n\r", ch, MXP_ALL );
return;
}
@@ -310,7 +310,7 @@
strcat( buf, "\n\r" );
free_string( ch->pnote->text );
ch->pnote->text = str_dup( buf );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
return;
}
@@ -319,7 +319,7 @@
note_attach( ch );
free_string( ch->pnote->subject );
ch->pnote->subject = str_dup( argument );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
return;
}
@@ -328,7 +328,7 @@
note_attach( ch );
free_string( ch->pnote->to_list );
ch->pnote->to_list = str_dup( argument );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
return;
}
@@ -346,7 +346,7 @@
ch->pnote = NULL;
}
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
return;
}
@@ -354,7 +354,7 @@
{
if ( ch->pnote == NULL )
{
- send_to_char( "You have no note in progress.\n\r", ch );
+ mxp_to_char( "You have no note in progress.\n\r", ch, MXP_ALL );
return;
}
@@ -363,8 +363,8 @@
ch->pnote->subject,
ch->pnote->to_list
);
- send_to_char( buf, ch );
- send_to_char( ch->pnote->text, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
+ mxp_to_char( ch->pnote->text, ch, MXP_ALL );
return;
}
@@ -375,21 +375,21 @@
if ( ch->pnote == NULL )
{
- send_to_char( "You have no note in progress.\n\r", ch );
+ mxp_to_char( "You have no note in progress.\n\r", ch, MXP_ALL );
return;
}
if ( !str_cmp( ch->pnote->to_list, "" ) )
{
- send_to_char(
+ mxp_to_char(
"You need to provide a recipient (name, all, or immortal).\n\r",
- ch );
+ ch, MXP_ALL );
return;
}
if ( !str_cmp( ch->pnote->subject, "" ) )
{
- send_to_char( "You need to provide a subject.\n\r", ch );
+ mxp_to_char( "You need to provide a subject.\n\r", ch, MXP_ALL );
return;
}
@@ -429,7 +429,7 @@
}
fpReserve = fopen( NULL_FILE, "r" );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
return;
}
@@ -437,7 +437,7 @@
{
if ( !is_number( argument ) )
{
- send_to_char( "Note remove which number?\n\r", ch );
+ mxp_to_char( "Note remove which number?\n\r", ch, MXP_ALL );
return;
}
@@ -448,16 +448,16 @@
if ( is_note_to( ch, pnote ) && vnum++ == anum )
{
note_remove( ch, pnote );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
return;
}
}
- send_to_char( "No such note.\n\r", ch );
+ mxp_to_char( "No such note.\n\r", ch, MXP_ALL );
return;
}
- send_to_char( "Huh? Type 'help note' for usage.\n\r", ch );
+ mxp_to_char( "Huh? Type 'help note' for usage.\n\r", ch, MXP_ALL );
return;
}
@@ -482,7 +482,7 @@
if ( !IS_NPC(ch) && IS_SET(ch->act, PLR_SILENCE) )
{
sprintf( buf, "You can't %s.\n\r", verb );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
return;
}
@@ -492,7 +492,7 @@
{
default:
sprintf( buf, "You %s '%s'.\n\r", verb, argument );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
sprintf( buf, "$n %ss '$t'.", verb );
break;
@@ -608,7 +608,7 @@
{
if ( argument[0] == '\0' )
{
- send_to_char( "Say what?\n\r", ch );
+ mxp_to_char( "Say what?\n\r", ch, MXP_ALL );
return;
}
@@ -628,7 +628,7 @@
if ( !IS_NPC(ch) && IS_SET(ch->act, PLR_SILENCE) )
{
- send_to_char( "Your message didn't get through.\n\r", ch );
+ mxp_to_char( "Your message didn't get through.\n\r", ch, MXP_ALL );
return;
}
@@ -636,7 +636,7 @@
if ( arg[0] == '\0' || argument[0] == '\0' )
{
- send_to_char( "Tell whom what?\n\r", ch );
+ mxp_to_char( "Tell whom what?\n\r", ch, MXP_ALL );
return;
}
@@ -647,7 +647,7 @@
if ( ( victim = get_char_world( ch, arg ) ) == NULL
|| ( IS_NPC(victim) && victim->in_room != ch->in_room ) )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
@@ -676,13 +676,13 @@
if ( !IS_NPC(ch) && IS_SET(ch->act, PLR_SILENCE) )
{
- send_to_char( "Your message didn't get through.\n\r", ch );
+ mxp_to_char( "Your message didn't get through.\n\r", ch, MXP_ALL );
return;
}
if ( ( victim = ch->reply ) == NULL )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
@@ -711,13 +711,13 @@
if ( !IS_NPC(ch) && IS_SET(ch->act, PLR_NO_EMOTE) )
{
- send_to_char( "You can't show your emotions.\n\r", ch );
+ mxp_to_char( "You can't show your emotions.\n\r", ch, MXP_ALL );
return;
}
if ( argument[0] == '\0' )
{
- send_to_char( "Emote what?\n\r", ch );
+ mxp_to_char( "Emote what?\n\r", ch, MXP_ALL );
return;
}
@@ -993,7 +993,7 @@
void do_bug( CHAR_DATA *ch, char *argument )
{
append_file( ch, BUG_FILE, argument );
- send_to_char( "Ok. Thanks.\n\r", ch );
+ mxp_to_char( "Ok. Thanks.\n\r", ch, MXP_ALL );
return;
}
@@ -1002,7 +1002,7 @@
void do_idea( CHAR_DATA *ch, char *argument )
{
append_file( ch, IDEA_FILE, argument );
- send_to_char( "Ok. Thanks.\n\r", ch );
+ mxp_to_char( "Ok. Thanks.\n\r", ch, MXP_ALL );
return;
}
@@ -1011,7 +1011,7 @@
void do_typo( CHAR_DATA *ch, char *argument )
{
append_file( ch, TYPO_FILE, argument );
- send_to_char( "Ok. Thanks.\n\r", ch );
+ mxp_to_char( "Ok. Thanks.\n\r", ch, MXP_ALL );
return;
}
@@ -1019,7 +1019,7 @@
void do_rent( CHAR_DATA *ch, char *argument )
{
- send_to_char( "There is no rent here. Just save and quit.\n\r", ch );
+ mxp_to_char( "There is no rent here. Just save and quit.\n\r", ch, MXP_ALL );
return;
}
@@ -1027,7 +1027,7 @@
void do_qui( CHAR_DATA *ch, char *argument )
{
- send_to_char( "If you want to QUIT, you have to spell it out.\n\r", ch );
+ mxp_to_char( "If you want to QUIT, you have to spell it out.\n\r", ch, MXP_ALL );
return;
}
@@ -1042,19 +1042,19 @@
if ( ch->position == POS_FIGHTING )
{
- send_to_char( "No way! You are fighting.\n\r", ch );
+ mxp_to_char( "No way! You are fighting.\n\r", ch, MXP_ALL );
return;
}
if ( ch->position < POS_STUNNED )
{
- send_to_char( "You're not DEAD yet.\n\r", ch );
+ mxp_to_char( "You're not DEAD yet.\n\r", ch, MXP_ALL );
return;
}
- send_to_char(
+ mxp_to_char(
"Had I but time--as this fell sergeant, Death,\n\rIs strict in his arrest--O, I could tell you--\n\rBut let it be.\n\r",
- ch );
+ ch, MXP_ALL );
act( "$n has left the game.", ch, NULL, NULL, TO_ROOM );
sprintf( log_buf, "%s has quit.", ch->name );
log_string( log_buf );
@@ -1080,12 +1080,12 @@
if ( ch->level < 2 )
{
- send_to_char( "You must be at least second level to save.\n\r", ch );
+ mxp_to_char( "You must be at least second level to save.\n\r", ch, MXP_ALL );
return;
}
save_char_obj( ch );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
return;
}
@@ -1100,13 +1100,13 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Follow whom?\n\r", ch );
+ mxp_to_char( "Follow whom?\n\r", ch, MXP_ALL );
return;
}
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
@@ -1121,7 +1121,7 @@
{
if ( ch->master == NULL )
{
- send_to_char( "You already follow yourself.\n\r", ch );
+ mxp_to_char( "You already follow yourself.\n\r", ch, MXP_ALL );
return;
}
stop_follower( ch );
@@ -1131,7 +1131,7 @@
if ( ( ch->level - victim->level < -5 || ch->level - victim->level > 5 )
&& !IS_HERO(ch) )
{
- send_to_char( "You are not of the right caliber to follow.\n\r", ch );
+ mxp_to_char( "You are not of the right caliber to follow.\n\r", ch, MXP_ALL );
return;
}
@@ -1229,13 +1229,13 @@
if ( arg[0] == '\0' || argument[0] == '\0' )
{
- send_to_char( "Order whom to do what?\n\r", ch );
+ mxp_to_char( "Order whom to do what?\n\r", ch, MXP_ALL );
return;
}
if ( IS_AFFECTED( ch, AFF_CHARM ) )
{
- send_to_char( "You feel like taking, not giving, orders.\n\r", ch );
+ mxp_to_char( "You feel like taking, not giving, orders.\n\r", ch, MXP_ALL );
return;
}
@@ -1249,19 +1249,19 @@
fAll = FALSE;
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
if ( victim == ch )
{
- send_to_char( "Aye aye, right away!\n\r", ch );
+ mxp_to_char( "Aye aye, right away!\n\r", ch, MXP_ALL );
return;
}
if ( !IS_AFFECTED(victim, AFF_CHARM) || victim->master != ch )
{
- send_to_char( "Do it yourself!\n\r", ch );
+ mxp_to_char( "Do it yourself!\n\r", ch, MXP_ALL );
return;
}
}
@@ -1282,9 +1282,9 @@
}
if ( found )
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
else
- send_to_char( "You have no followers here.\n\r", ch );
+ mxp_to_char( "You have no followers here.\n\r", ch, MXP_ALL );
return;
}
@@ -1305,7 +1305,7 @@
leader = (ch->leader != NULL) ? ch->leader : ch;
sprintf( buf, "%s's group:\n\r", PERS(leader, ch) );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
for ( gch = char_list; gch != NULL; gch = gch->next )
{
@@ -1320,7 +1320,7 @@
gch->mana, gch->max_mana,
gch->move, gch->max_move,
gch->exp );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
}
}
return;
@@ -1328,13 +1328,13 @@
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
if ( ch->master != NULL || ( ch->leader != NULL && ch->leader != ch ) )
{
- send_to_char( "But you are following someone else!\n\r", ch );
+ mxp_to_char( "But you are following someone else!\n\r", ch, MXP_ALL );
return;
}
@@ -1388,7 +1388,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Split how much?\n\r", ch );
+ mxp_to_char( "Split how much?\n\r", ch, MXP_ALL );
return;
}
@@ -1396,19 +1396,19 @@
if ( amount < 0 )
{
- send_to_char( "Your group wouldn't like that.\n\r", ch );
+ mxp_to_char( "Your group wouldn't like that.\n\r", ch, MXP_ALL );
return;
}
if ( amount == 0 )
{
- send_to_char( "You hand out zero coins, but no one notices.\n\r", ch );
+ mxp_to_char( "You hand out zero coins, but no one notices.\n\r", ch, MXP_ALL );
return;
}
if ( ch->gold < amount )
{
- send_to_char( "You don't have that much gold.\n\r", ch );
+ mxp_to_char( "You don't have that much gold.\n\r", ch, MXP_ALL );
return;
}
@@ -1421,7 +1421,7 @@
if ( members < 2 )
{
- send_to_char( "Just keep it all.\n\r", ch );
+ mxp_to_char( "Just keep it all.\n\r", ch, MXP_ALL );
return;
}
@@ -1430,7 +1430,7 @@
if ( share == 0 )
{
- send_to_char( "Don't even bother, cheapskate.\n\r", ch );
+ mxp_to_char( "Don't even bother, cheapskate.\n\r", ch, MXP_ALL );
return;
}
@@ -1440,7 +1440,7 @@
sprintf( buf,
"You split %d gold coins. Your share is %d gold coins.\n\r",
amount, share + extra );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
sprintf( buf, "$n splits %d gold coins. Your share is %d gold coins.",
amount, share );
@@ -1466,24 +1466,24 @@
if ( argument[0] == '\0' )
{
- send_to_char( "Tell your group what?\n\r", ch );
+ mxp_to_char( "Tell your group what?\n\r", ch, MXP_ALL );
return;
}
if ( IS_SET( ch->act, PLR_NO_TELL ) )
{
- send_to_char( "Your message didn't get through!\n\r", ch );
+ mxp_to_char( "Your message didn't get through!\n\r", ch, MXP_ALL );
return;
}
/*
- * Note use of send_to_char, so gtell works on sleepers.
+ * Note use of mxp_to_char, so gtell works on sleepers.
*/
sprintf( buf, "%s tells the group '%s'.\n\r", ch->name, argument );
for ( gch = char_list; gch != NULL; gch = gch->next )
{
if ( is_same_group( gch, ch ) )
- send_to_char( buf, gch );
+ mxp_to_char( buf, gch, MXP_ALL );
}
return;
diff -u srcorig/act_info.c src/act_info.c
--- srcorig/act_info.c 2004-12-01 08:18:50.000000000 -0600
+++ src/act_info.c 2004-12-06 10:13:10.000000000 -0600
@@ -104,13 +104,18 @@
{
char buf[MAX_STRING_LENGTH];
char **prgpstrShow;
+ char **prgpstrName;
int *prgnShow;
char *pstrShow;
+ char *pstrName;
OBJ_DATA *obj;
int nShow;
int iShow;
int count;
bool fCombine;
+ bool inv;
+
+ inv = FALSE;
if ( ch->desc == NULL )
return;
@@ -122,6 +127,7 @@
for ( obj = list; obj != NULL; obj = obj->next_content )
count++;
prgpstrShow = alloc_mem( count * sizeof(char *) );
+ prgpstrName = alloc_mem( count * sizeof(char *) );
prgnShow = alloc_mem( count * sizeof(int) );
nShow = 0;
@@ -133,6 +139,10 @@
if ( obj->wear_loc == WEAR_NONE && can_see_obj( ch, obj ) )
{
pstrShow = format_obj_to_char( obj, ch, fShort );
+ pstrName = ( obj->name );
+ if ( obj->carried_by != NULL )
+ inv = TRUE;
+
fCombine = FALSE;
if ( IS_NPC(ch) || IS_SET(ch->act, PLR_COMBINE) )
@@ -158,6 +168,7 @@
if ( !fCombine )
{
prgpstrShow [nShow] = str_dup( pstrShow );
+ prgpstrName [nShow] = str_dup( pstrName );
prgnShow [nShow] = 1;
nShow++;
}
@@ -174,23 +185,23 @@
if ( prgnShow[iShow] != 1 )
{
sprintf( buf, "(%2d) ", prgnShow[iShow] );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
}
else
{
- send_to_char( " ", ch );
+ mxp_to_char( " ", ch, MXP_ALL );
}
}
- send_to_char( prgpstrShow[iShow], ch );
- send_to_char( "\n\r", ch );
+ mxp_to_char( prgpstrShow[iShow], ch, MXP_ALL );
+ mxp_to_char( "\n\r", ch, MXP_ALL );
free_string( prgpstrShow[iShow] );
}
if ( fShowNothing && nShow == 0 )
{
if ( IS_NPC(ch) || IS_SET(ch->act, PLR_COMBINE) )
- send_to_char( " ", ch );
- send_to_char( "Nothing.\n\r", ch );
+ mxp_to_char( " ", ch, MXP_ALL );
+ mxp_to_char( "Nothing.\n\r", ch, MXP_ALL );
}
/*
@@ -226,7 +237,7 @@
if ( victim->position == POS_STANDING && victim->long_descr[0] != '\0' )
{
strcat( buf, victim->long_descr );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
return;
}
@@ -261,7 +272,7 @@
strcat( buf, "\n\r" );
buf[0] = UPPER(buf[0]);
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
return;
}
@@ -283,7 +294,7 @@
if ( victim->description[0] != '\0' )
{
- send_to_char( victim->description, ch );
+ mxp_to_char( victim->description, ch, MXP_ALL );
}
else
{
@@ -310,7 +321,7 @@
else strcat( buf, " is DYING.\n\r" );
buf[0] = UPPER(buf[0]);
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
found = FALSE;
for ( iWear = 0; iWear < MAX_WEAR; iWear++ )
@@ -320,13 +331,13 @@
{
if ( !found )
{
- send_to_char( "\n\r", ch );
+ mxp_to_char( "\n\r", ch, MXP_ALL );
act( "$N is using:", ch, NULL, victim, TO_CHAR );
found = TRUE;
}
- send_to_char( where_name[iWear], ch );
- send_to_char( format_obj_to_char( obj, ch, TRUE ), ch );
- send_to_char( "\n\r", ch );
+ mxp_to_char( where_name[iWear], ch, MXP_ALL );
+ mxp_to_char( format_obj_to_char( obj, ch, TRUE ), ch, MXP_ALL );
+ mxp_to_char( "\n\r", ch, MXP_ALL );
}
}
@@ -334,7 +345,7 @@
&& !IS_NPC(ch)
&& number_percent( ) < ch->pcdata->learned[gsn_peek] )
{
- send_to_char( "\n\rYou peek at the inventory:\n\r", ch );
+ mxp_to_char( "\n\rYou peek at the inventory:\n\r", ch, MXP_ALL );
show_list_to_char( victim->carrying, ch, TRUE, TRUE );
}
@@ -364,7 +375,7 @@
else if ( room_is_dark( ch->in_room )
&& IS_AFFECTED(rch, AFF_INFRARED ) )
{
- send_to_char( "You see glowing red eyes watching YOU!\n\r", ch );
+ mxp_to_char( "You see glowing red eyes watching YOU!\n\r", ch, MXP_ALL );
}
}
@@ -380,7 +391,7 @@
if ( IS_AFFECTED(ch, AFF_BLIND) )
{
- send_to_char( "You can't see a thing!\n\r", ch );
+ mxp_to_char( "You can't see a thing!\n\r", ch, MXP_ALL );
return FALSE;
}
@@ -405,13 +416,13 @@
if ( ch->position < POS_SLEEPING )
{
- send_to_char( "You can't see anything but stars!\n\r", ch );
+ mxp_to_char( "You can't see anything but stars!\n\r", ch, MXP_ALL );
return;
}
if ( ch->position == POS_SLEEPING )
{
- send_to_char( "You can't see anything, you're sleeping!\n\r", ch );
+ mxp_to_char( "You can't see anything, you're sleeping!\n\r", ch, MXP_ALL );
return;
}
@@ -422,7 +433,7 @@
&& !IS_SET(ch->act, PLR_HOLYLIGHT)
&& room_is_dark( ch->in_room ) )
{
- send_to_char( "It is pitch black ... \n\r", ch );
+ mxp_to_char( "It is pitch black ... \n\r", ch, MXP_ALL );
show_char_to_char( ch->in_room->people, ch );
return;
}
@@ -433,15 +444,15 @@
if ( arg1[0] == '\0' || !str_cmp( arg1, "auto" ) )
{
/* 'look' or 'look auto' */
- send_to_char( ch->in_room->name, ch );
- send_to_char( "\n\r", ch );
+ mxp_to_char( ch->in_room->name, ch, MXP_ALL );
+ mxp_to_char( "\n\r", ch, MXP_ALL );
if ( !IS_NPC(ch) && IS_SET(ch->act, PLR_AUTOEXIT) )
do_exits( ch, "auto" );
if ( arg1[0] == '\0'
|| ( !IS_NPC(ch) && !IS_SET(ch->act, PLR_BRIEF) ) )
- send_to_char( ch->in_room->description, ch );
+ mxp_to_char( ch->in_room->description, ch, MXP_ALL );
show_list_to_char( ch->in_room->contents, ch, FALSE, FALSE );
show_char_to_char( ch->in_room->people, ch );
@@ -453,26 +464,26 @@
/* 'look in' */
if ( arg2[0] == '\0' )
{
- send_to_char( "Look in what?\n\r", ch );
+ mxp_to_char( "Look in what?\n\r", ch, MXP_ALL );
return;
}
if ( ( obj = get_obj_here( ch, arg2 ) ) == NULL )
{
- send_to_char( "You do not see that here.\n\r", ch );
+ mxp_to_char( "You do not see that here.\n\r", ch, MXP_ALL );
return;
}
switch ( obj->item_type )
{
default:
- send_to_char( "That is not a container.\n\r", ch );
+ mxp_to_char( "That is not a container.\n\r", ch, MXP_ALL );
break;
case ITEM_DRINK_CON:
if ( obj->value[1] <= 0 )
{
- send_to_char( "It is empty.\n\r", ch );
+ mxp_to_char( "It is empty.\n\r", ch, MXP_ALL );
break;
}
@@ -484,7 +495,7 @@
liq_table[obj->value[2]].liq_color
);
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
break;
case ITEM_CONTAINER:
@@ -492,7 +503,7 @@
case ITEM_CORPSE_PC:
if ( IS_SET(obj->value[1], CONT_CLOSED) )
{
- send_to_char( "It is closed.\n\r", ch );
+ mxp_to_char( "It is closed.\n\r", ch, MXP_ALL );
break;
}
@@ -516,21 +527,21 @@
pdesc = get_extra_descr( arg1, obj->extra_descr );
if ( pdesc != NULL )
{
- send_to_char( pdesc, ch );
+ mxp_to_char( pdesc, ch, MXP_ALL );
return;
}
pdesc = get_extra_descr( arg1, obj->pIndexData->extra_descr );
if ( pdesc != NULL )
{
- send_to_char( pdesc, ch );
+ mxp_to_char( pdesc, ch, MXP_ALL );
return;
}
}
if ( is_name( arg1, obj->name ) )
{
- send_to_char( obj->description, ch );
+ mxp_to_char( obj->description, ch, MXP_ALL );
return;
}
}
@@ -542,21 +553,21 @@
pdesc = get_extra_descr( arg1, obj->extra_descr );
if ( pdesc != NULL )
{
- send_to_char( pdesc, ch );
+ mxp_to_char( pdesc, ch, MXP_ALL );
return;
}
pdesc = get_extra_descr( arg1, obj->pIndexData->extra_descr );
if ( pdesc != NULL )
{
- send_to_char( pdesc, ch );
+ mxp_to_char( pdesc, ch, MXP_ALL );
return;
}
}
if ( is_name( arg1, obj->name ) )
{
- send_to_char( obj->description, ch );
+ mxp_to_char( obj->description, ch, MXP_ALL );
return;
}
}
@@ -564,7 +575,7 @@
pdesc = get_extra_descr( arg1, ch->in_room->extra_descr );
if ( pdesc != NULL )
{
- send_to_char( pdesc, ch );
+ mxp_to_char( pdesc, ch, MXP_ALL );
return;
}
@@ -576,21 +587,21 @@
else if ( !str_cmp( arg1, "d" ) || !str_cmp( arg1, "down" ) ) door = 5;
else
{
- send_to_char( "You do not see that here.\n\r", ch );
+ mxp_to_char( "You do not see that here.\n\r", ch, MXP_ALL );
return;
}
/* 'look direction' */
if ( ( pexit = ch->in_room->exit[door] ) == NULL )
{
- send_to_char( "Nothing special there.\n\r", ch );
+ mxp_to_char( "Nothing special there.\n\r", ch, MXP_ALL );
return;
}
if ( pexit->description != NULL && pexit->description[0] != '\0' )
- send_to_char( pexit->description, ch );
+ mxp_to_char( pexit->description, ch, MXP_ALL );
else
- send_to_char( "Nothing special there.\n\r", ch );
+ mxp_to_char( "Nothing special there.\n\r", ch, MXP_ALL );
if ( pexit->keyword != NULL
&& pexit->keyword[0] != '\0'
@@ -621,7 +632,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Examine what?\n\r", ch );
+ mxp_to_char( "Examine what?\n\r", ch, MXP_ALL );
return;
}
@@ -638,7 +649,7 @@
case ITEM_CONTAINER:
case ITEM_CORPSE_NPC:
case ITEM_CORPSE_PC:
- send_to_char( "When you look inside, you see:\n\r", ch );
+ mxp_to_char( "When you look inside, you see:\n\r", ch, MXP_ALL );
sprintf( buf, "in %s", arg );
do_look( ch, buf );
}
@@ -656,6 +667,7 @@
{
extern char * const dir_name[];
char buf[MAX_STRING_LENGTH];
+ char buf1[MAX_STRING_LENGTH];
EXIT_DATA *pexit;
bool found;
bool fAuto;
@@ -680,7 +692,10 @@
if ( fAuto )
{
strcat( buf, " " );
+ sprintf( buf1, "<SEND href=\"%s\">", dir_name[door] );
+ strcat( buf, buf1 );
strcat( buf, dir_name[door] );
+ strcat( buf, "</SEND>" );
}
else
{
@@ -700,7 +715,7 @@
if ( fAuto )
strcat( buf, "]\n\r" );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
return;
}
@@ -718,13 +733,17 @@
ch->level,
get_age(ch),
(get_age(ch) - 17) * 2 );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
+
+ sprintf( buf, "You are %susing MCCP!\n\r",
+ ch->desc->out_compress ? "" : "not " );
+ mxp_to_char( buf, ch, MXP_ALL );
if ( get_trust( ch ) != ch->level )
{
sprintf( buf, "You are trusted at level %d.\n\r",
get_trust( ch ) );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
}
sprintf( buf,
@@ -733,13 +752,13 @@
ch->mana, ch->max_mana,
ch->move, ch->max_move,
ch->practice );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
sprintf( buf,
"You are carrying %d/%d items with weight %d/%d kg.\n\r",
ch->carry_number, can_carry_n(ch),
ch->carry_weight, can_carry_w(ch) );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
sprintf( buf,
"Str: %d Int: %d Wis: %d Dex: %d Con: %d.\n\r",
@@ -748,116 +767,116 @@
get_curr_wis(ch),
get_curr_dex(ch),
get_curr_con(ch) );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
sprintf( buf,
"You have scored %d exp, and have %d gold coins.\n\r",
ch->exp, ch->gold );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
sprintf( buf,
"Autoexit: %s. Autoloot: %s. Autosac: %s.\n\r",
(!IS_NPC(ch) && IS_SET(ch->act, PLR_AUTOEXIT)) ? "yes" : "no",
(!IS_NPC(ch) && IS_SET(ch->act, PLR_AUTOLOOT)) ? "yes" : "no",
(!IS_NPC(ch) && IS_SET(ch->act, PLR_AUTOSAC) ) ? "yes" : "no" );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
sprintf( buf, "Wimpy set to %d hit points.\n\r", ch->wimpy );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
if ( !IS_NPC( ch ) )
{
sprintf( buf, "Page pausing set to %d lines of text.\n\r",
ch->pcdata->pagelen );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
}
if ( !IS_NPC(ch) && ch->pcdata->condition[COND_DRUNK] > 10 )
- send_to_char( "You are drunk.\n\r", ch );
+ mxp_to_char( "You are drunk.\n\r", ch, MXP_ALL );
if ( !IS_NPC(ch) && ch->pcdata->condition[COND_THIRST] == 0 )
- send_to_char( "You are thirsty.\n\r", ch );
+ mxp_to_char( "You are thirsty.\n\r", ch, MXP_ALL );
if ( !IS_NPC(ch) && ch->pcdata->condition[COND_FULL] == 0 )
- send_to_char( "You are hungry.\n\r", ch );
+ mxp_to_char( "You are hungry.\n\r", ch, MXP_ALL );
switch ( ch->position )
{
case POS_DEAD:
- send_to_char( "You are DEAD!!\n\r", ch );
+ mxp_to_char( "You are DEAD!!\n\r", ch, MXP_ALL );
break;
case POS_MORTAL:
- send_to_char( "You are mortally wounded.\n\r", ch );
+ mxp_to_char( "You are mortally wounded.\n\r", ch, MXP_ALL );
break;
case POS_INCAP:
- send_to_char( "You are incapacitated.\n\r", ch );
+ mxp_to_char( "You are incapacitated.\n\r", ch, MXP_ALL );
break;
case POS_STUNNED:
- send_to_char( "You are stunned.\n\r", ch );
+ mxp_to_char( "You are stunned.\n\r", ch, MXP_ALL );
break;
case POS_SLEEPING:
- send_to_char( "You are sleeping.\n\r", ch );
+ mxp_to_char( "You are sleeping.\n\r", ch, MXP_ALL );
break;
case POS_RESTING:
- send_to_char( "You are resting.\n\r", ch );
+ mxp_to_char( "You are resting.\n\r", ch, MXP_ALL );
break;
case POS_STANDING:
- send_to_char( "You are standing.\n\r", ch );
+ mxp_to_char( "You are standing.\n\r", ch, MXP_ALL );
break;
case POS_FIGHTING:
- send_to_char( "You are fighting.\n\r", ch );
+ mxp_to_char( "You are fighting.\n\r", ch, MXP_ALL );
break;
}
if ( ch->level >= 25 )
{
sprintf( buf, "AC: %d. ", GET_AC(ch) );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
}
- send_to_char( "You are ", ch );
- if ( GET_AC(ch) >= 101 ) send_to_char( "WORSE than naked!\n\r", ch );
- else if ( GET_AC(ch) >= 80 ) send_to_char( "naked.\n\r", ch );
- else if ( GET_AC(ch) >= 60 ) send_to_char( "wearing clothes.\n\r", ch );
- else if ( GET_AC(ch) >= 40 ) send_to_char( "slightly armored.\n\r", ch );
- else if ( GET_AC(ch) >= 20 ) send_to_char( "somewhat armored.\n\r", ch );
- else if ( GET_AC(ch) >= 0 ) send_to_char( "armored.\n\r", ch );
- else if ( GET_AC(ch) >= - 20 ) send_to_char( "well armored.\n\r", ch );
- else if ( GET_AC(ch) >= - 40 ) send_to_char( "strongly armored.\n\r", ch );
- else if ( GET_AC(ch) >= - 60 ) send_to_char( "heavily armored.\n\r", ch );
- else if ( GET_AC(ch) >= - 80 ) send_to_char( "superbly armored.\n\r", ch );
- else if ( GET_AC(ch) >= -100 ) send_to_char( "divinely armored.\n\r", ch );
- else send_to_char( "invincible!\n\r", ch );
+ mxp_to_char( "You are ", ch, MXP_ALL );
+ if ( GET_AC(ch) >= 101 ) mxp_to_char( "WORSE than naked!\n\r", ch, MXP_ALL );
+ else if ( GET_AC(ch) >= 80 ) mxp_to_char( "naked.\n\r", ch, MXP_ALL );
+ else if ( GET_AC(ch) >= 60 ) mxp_to_char( "wearing clothes.\n\r", ch, MXP_ALL );
+ else if ( GET_AC(ch) >= 40 ) mxp_to_char( "slightly armored.\n\r", ch, MXP_ALL );
+ else if ( GET_AC(ch) >= 20 ) mxp_to_char( "somewhat armored.\n\r", ch, MXP_ALL );
+ else if ( GET_AC(ch) >= 0 ) mxp_to_char( "armored.\n\r", ch, MXP_ALL );
+ else if ( GET_AC(ch) >= - 20 ) mxp_to_char( "well armored.\n\r", ch, MXP_ALL );
+ else if ( GET_AC(ch) >= - 40 ) mxp_to_char( "strongly armored.\n\r", ch, MXP_ALL );
+ else if ( GET_AC(ch) >= - 60 ) mxp_to_char( "heavily armored.\n\r", ch, MXP_ALL );
+ else if ( GET_AC(ch) >= - 80 ) mxp_to_char( "superbly armored.\n\r", ch, MXP_ALL );
+ else if ( GET_AC(ch) >= -100 ) mxp_to_char( "divinely armored.\n\r", ch, MXP_ALL );
+ else mxp_to_char( "invincible!\n\r", ch, MXP_ALL );
if ( ch->level >= 15 )
{
sprintf( buf, "Hitroll: %d Damroll: %d.\n\r",
GET_HITROLL(ch), GET_DAMROLL(ch) );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
}
if ( ch->level >= 10 )
{
sprintf( buf, "Alignment: %d. ", ch->alignment );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
}
- send_to_char( "You are ", ch );
- if ( ch->alignment > 900 ) send_to_char( "angelic.\n\r", ch );
- else if ( ch->alignment > 700 ) send_to_char( "saintly.\n\r", ch );
- else if ( ch->alignment > 350 ) send_to_char( "good.\n\r", ch );
- else if ( ch->alignment > 100 ) send_to_char( "kind.\n\r", ch );
- else if ( ch->alignment > -100 ) send_to_char( "neutral.\n\r", ch );
- else if ( ch->alignment > -350 ) send_to_char( "mean.\n\r", ch );
- else if ( ch->alignment > -700 ) send_to_char( "evil.\n\r", ch );
- else if ( ch->alignment > -900 ) send_to_char( "demonic.\n\r", ch );
- else send_to_char( "satanic.\n\r", ch );
+ mxp_to_char( "You are ", ch, MXP_ALL );
+ if ( ch->alignment > 900 ) mxp_to_char( "angelic.\n\r", ch, MXP_ALL );
+ else if ( ch->alignment > 700 ) mxp_to_char( "saintly.\n\r", ch, MXP_ALL );
+ else if ( ch->alignment > 350 ) mxp_to_char( "good.\n\r", ch, MXP_ALL );
+ else if ( ch->alignment > 100 ) mxp_to_char( "kind.\n\r", ch, MXP_ALL );
+ else if ( ch->alignment > -100 ) mxp_to_char( "neutral.\n\r", ch, MXP_ALL );
+ else if ( ch->alignment > -350 ) mxp_to_char( "mean.\n\r", ch, MXP_ALL );
+ else if ( ch->alignment > -700 ) mxp_to_char( "evil.\n\r", ch, MXP_ALL );
+ else if ( ch->alignment > -900 ) mxp_to_char( "demonic.\n\r", ch, MXP_ALL );
+ else mxp_to_char( "satanic.\n\r", ch, MXP_ALL );
if ( ch->affected != NULL )
{
- send_to_char( "You are affected by:\n\r", ch );
+ mxp_to_char( "You are affected by:\n\r", ch, MXP_ALL );
for ( paf = ch->affected; paf != NULL; paf = paf->next )
{
sprintf( buf, "Spell: '%s'", skill_table[paf->type].name );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
if ( ch->level >= 20 )
{
@@ -866,10 +885,10 @@
affect_loc_name( paf->location ),
paf->modifier,
paf->duration );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
}
- send_to_char( ".\n\r", ch );
+ mxp_to_char( ".\n\r", ch, MXP_ALL );
}
}
@@ -919,7 +938,7 @@
(char *) ctime( ¤t_time )
);
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
return;
}
@@ -939,7 +958,7 @@
if ( !IS_OUTSIDE(ch) )
{
- send_to_char( "You can't see the weather indoors.\n\r", ch );
+ mxp_to_char( "You can't see the weather indoors.\n\r", ch, MXP_ALL );
return;
}
@@ -949,7 +968,7 @@
? "a warm southerly breeze blows"
: "a cold northern gust blows"
);
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
return;
}
@@ -971,22 +990,22 @@
{
if ( pHelp->level >= 0 && str_cmp( argument, "imotd" ) )
{
- send_to_char( pHelp->keyword, ch );
- send_to_char( "\n\r", ch );
+ mxp_to_char( pHelp->keyword, ch, MXP_ALL );
+ mxp_to_char( "\n\r", ch, MXP_ALL );
}
/*
* Strip leading '.' to allow initial blanks.
*/
if ( pHelp->text[0] == '.' )
- send_to_char( pHelp->text+1, ch );
+ mxp_to_char( pHelp->text+1, ch, MXP_ALL );
else
- send_to_char( pHelp->text , ch );
+ mxp_to_char( pHelp->text , ch, MXP_ALL );
return;
}
}
- send_to_char( "No help on that word.\n\r", ch );
+ mxp_to_char( "No help on that word.\n\r", ch, MXP_ALL );
return;
}
@@ -1038,7 +1057,7 @@
case 1: iLevelLower = atoi( arg ); break;
case 2: iLevelUpper = atoi( arg ); break;
default:
- send_to_char( "Only two level numbers allowed.\n\r", ch );
+ mxp_to_char( "Only two level numbers allowed.\n\r", ch, MXP_ALL );
return;
}
}
@@ -1048,7 +1067,7 @@
if ( strlen(arg) < 3 )
{
- send_to_char( "Classes must be longer than that.\n\r", ch );
+ mxp_to_char( "Classes must be longer than that.\n\r", ch, MXP_ALL );
return;
}
@@ -1074,7 +1093,7 @@
if ( iClass == MAX_CLASS )
{
- send_to_char( "That's not a class.\n\r", ch );
+ mxp_to_char( "That's not a class.\n\r", ch, MXP_ALL );
return;
}
}
@@ -1135,7 +1154,7 @@
sprintf( buf2, "You see %d player%s in the game.\n\r",
nMatch, nMatch == 1 ? "" : "s" );
strcat( buf, buf2 );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
return;
}
@@ -1143,7 +1162,7 @@
void do_inventory( CHAR_DATA *ch, char *argument )
{
- send_to_char( "You are carrying:\n\r", ch );
+ mxp_to_char( "You are carrying:\n\r", ch, MXP_ALL );
show_list_to_char( ch->carrying, ch, TRUE, TRUE );
return;
}
@@ -1156,28 +1175,28 @@
int iWear;
bool found;
- send_to_char( "You are using:\n\r", ch );
+ mxp_to_char( "You are using:\n\r", ch, MXP_ALL );
found = FALSE;
for ( iWear = 0; iWear < MAX_WEAR; iWear++ )
{
if ( ( obj = get_eq_char( ch, iWear ) ) == NULL )
continue;
- send_to_char( where_name[iWear], ch );
+ mxp_to_char( where_name[iWear], ch, MXP_ALL );
if ( can_see_obj( ch, obj ) )
{
- send_to_char( format_obj_to_char( obj, ch, TRUE ), ch );
- send_to_char( "\n\r", ch );
+ mxp_to_char( format_obj_to_char( obj, ch, TRUE ), ch, MXP_ALL );
+ mxp_to_char( "\n\r", ch, MXP_ALL );
}
else
{
- send_to_char( "something.\n\r", ch );
+ mxp_to_char( "something.\n\r", ch, MXP_ALL );
}
found = TRUE;
}
if ( !found )
- send_to_char( "Nothing.\n\r", ch );
+ mxp_to_char( "Nothing.\n\r", ch, MXP_ALL );
return;
}
@@ -1198,13 +1217,13 @@
argument = one_argument( argument, arg2 );
if ( arg1[0] == '\0' )
{
- send_to_char( "Compare what to what?\n\r", ch );
+ mxp_to_char( "Compare what to what?\n\r", ch, MXP_ALL );
return;
}
if ( ( obj1 = get_obj_carry( ch, arg1 ) ) == NULL )
{
- send_to_char( "You do not have that item.\n\r", ch );
+ mxp_to_char( "You do not have that item.\n\r", ch, MXP_ALL );
return;
}
@@ -1221,7 +1240,7 @@
if ( obj2 == NULL )
{
- send_to_char( "You aren't wearing anything comparable.\n\r", ch );
+ mxp_to_char( "You aren't wearing anything comparable.\n\r", ch, MXP_ALL );
return;
}
}
@@ -1229,7 +1248,7 @@
{
if ( ( obj2 = get_obj_carry( ch, arg2 ) ) == NULL )
{
- send_to_char( "You do not have that item.\n\r", ch );
+ mxp_to_char( "You do not have that item.\n\r", ch, MXP_ALL );
return;
}
}
@@ -1299,7 +1318,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Players near you:\n\r", ch );
+ mxp_to_char( "Players near you:\n\r", ch, MXP_ALL );
found = FALSE;
for ( d = descriptor_list; d; d = d->next )
{
@@ -1313,11 +1332,11 @@
found = TRUE;
sprintf( buf, "%-28s %s\n\r",
victim->name, victim->in_room->name );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
}
}
if ( !found )
- send_to_char( "None\n\r", ch );
+ mxp_to_char( "None\n\r", ch, MXP_ALL );
}
else
{
@@ -1334,7 +1353,7 @@
found = TRUE;
sprintf( buf, "%-28s %s\n\r",
PERS(victim, ch), victim->in_room->name );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
break;
}
}
@@ -1361,20 +1380,20 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Consider killing whom?\n\r", ch );
+ mxp_to_char( "Consider killing whom?\n\r", ch, MXP_ALL );
return;
}
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
{
- send_to_char( "They're not here.\n\r", ch );
+ mxp_to_char( "They're not here.\n\r", ch, MXP_ALL );
return;
}
if ( !IS_NPC( victim ) )
{
- send_to_char( "The gods do not accept this type of sacrafice.\n\r",
- ch );
+ mxp_to_char( "The gods do not accept this type of sacrafice.\n\r",
+ ch, MXP_ALL );
return;
}
@@ -1396,11 +1415,11 @@
if ( ( ( diff >= 0) && ( hpdiff <= 0 ) )
|| ( ( diff <= 0 ) && ( hpdiff >= 0 ) ) )
{
- send_to_char( "Also,", ch );
+ mxp_to_char( "Also,", ch, MXP_ALL );
}
else
{
- send_to_char( "However,", ch );
+ mxp_to_char( "However,", ch, MXP_ALL );
}
if ( hpdiff >= 101 )
@@ -1460,7 +1479,7 @@
if ( argument[0] == '\0' )
{
- send_to_char( "Change your title to what?\n\r", ch );
+ mxp_to_char( "Change your title to what?\n\r", ch, MXP_ALL );
return;
}
@@ -1469,7 +1488,7 @@
smash_tilde( argument );
set_title( ch, argument );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
}
@@ -1493,7 +1512,7 @@
if ( strlen(buf) + strlen(argument) >= MAX_STRING_LENGTH - 2 )
{
- send_to_char( "Description too long.\n\r", ch );
+ mxp_to_char( "Description too long.\n\r", ch, MXP_ALL );
return;
}
@@ -1503,8 +1522,8 @@
ch->description = str_dup( buf );
}
- send_to_char( "Your description is:\n\r", ch );
- send_to_char( ch->description ? ch->description : "(None).\n\r", ch );
+ mxp_to_char( "Your description is:\n\r", ch, MXP_ALL );
+ mxp_to_char( ch->description ? ch->description : "(None).\n\r", ch, MXP_ALL );
return;
}
@@ -1521,7 +1540,7 @@
ch->move, ch->max_move,
ch->exp );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
sprintf( buf, "$n reports: %d/%d hp %d/%d mana %d/%d mv %d xp.",
ch->hit, ch->max_hit,
@@ -1549,9 +1568,9 @@
if ( ch->level < 3 )
{
- send_to_char(
+ mxp_to_char(
"You must be third level to practice. Go train instead!\n\r",
- ch );
+ ch, MXP_ALL );
return;
}
@@ -1580,7 +1599,7 @@
sprintf( buf, "You have %d practice sessions left.\n\r",
ch->practice );
strcat( buf1, buf );
- send_to_char( buf1, ch );
+ mxp_to_char( buf1, ch, MXP_ALL );
}
else
{
@@ -1589,7 +1608,7 @@
if ( !IS_AWAKE(ch) )
{
- send_to_char( "In your dreams, or what?\n\r", ch );
+ mxp_to_char( "In your dreams, or what?\n\r", ch, MXP_ALL );
return;
}
@@ -1601,13 +1620,13 @@
if ( mob == NULL )
{
- send_to_char( "You can't do that here.\n\r", ch );
+ mxp_to_char( "You can't do that here.\n\r", ch, MXP_ALL );
return;
}
if ( ch->practice <= 0 )
{
- send_to_char( "You have no practice sessions left.\n\r", ch );
+ mxp_to_char( "You have no practice sessions left.\n\r", ch, MXP_ALL );
return;
}
@@ -1615,7 +1634,7 @@
|| ( !IS_NPC(ch)
&& ch->level < skill_table[sn].skill_level[ch->class] ) )
{
- send_to_char( "You can't practice that.\n\r", ch );
+ mxp_to_char( "You can't practice that.\n\r", ch, MXP_ALL );
return;
}
@@ -1625,7 +1644,7 @@
{
sprintf( buf, "You are already an adept of %s.\n\r",
skill_table[sn].name );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
}
else
{
@@ -1671,19 +1690,19 @@
if ( wimpy < 0 )
{
- send_to_char( "Your courage exceeds your wisdom.\n\r", ch );
+ mxp_to_char( "Your courage exceeds your wisdom.\n\r", ch, MXP_ALL );
return;
}
if ( wimpy > ch->max_hit )
{
- send_to_char( "Such cowardice ill becomes you.\n\r", ch );
+ mxp_to_char( "Such cowardice ill becomes you.\n\r", ch, MXP_ALL );
return;
}
ch->wimpy = wimpy;
sprintf( buf, "Wimpy set to %d hit points.\n\r", wimpy );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
return;
}
@@ -1745,21 +1764,21 @@
if ( arg1[0] == '\0' || arg2[0] == '\0' )
{
- send_to_char( "Syntax: password <old> <new>.\n\r", ch );
+ mxp_to_char( "Syntax: password <old> <new>.\n\r", ch, MXP_ALL );
return;
}
if ( strcmp( crypt( arg1, ch->pcdata->pwd ), ch->pcdata->pwd ) )
{
WAIT_STATE( ch, 40 );
- send_to_char( "Wrong password. Wait 10 seconds.\n\r", ch );
+ mxp_to_char( "Wrong password. Wait 10 seconds.\n\r", ch, MXP_ALL );
return;
}
if ( strlen(arg2) < 5 )
{
- send_to_char(
- "New password must be at least five characters long.\n\r", ch );
+ mxp_to_char(
+ "New password must be at least five characters long.\n\r", ch, MXP_ALL );
return;
}
@@ -1771,8 +1790,8 @@
{
if ( *p == '~' )
{
- send_to_char(
- "New password not acceptable, try again.\n\r", ch );
+ mxp_to_char(
+ "New password not acceptable, try again.\n\r", ch, MXP_ALL );
return;
}
}
@@ -1780,7 +1799,7 @@
free_string( ch->pcdata->pwd );
ch->pcdata->pwd = str_dup( pwdnew );
save_char_obj( ch );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
return;
}
@@ -1796,13 +1815,13 @@
for ( iSocial = 0; social_table[iSocial].name[0] != '\0'; iSocial++ )
{
sprintf( buf, "%-12s", social_table[iSocial].name );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
if ( ++col % 6 == 0 )
- send_to_char( "\n\r", ch );
+ mxp_to_char( "\n\r", ch, MXP_ALL );
}
if ( col % 6 != 0 )
- send_to_char( "\n\r", ch );
+ mxp_to_char( "\n\r", ch, MXP_ALL );
return;
}
@@ -1835,7 +1854,7 @@
if ( col % 6 != 0 )
strcat( buf1, "\n\r" );
- send_to_char( buf1, ch );
+ mxp_to_char( buf1, ch, MXP_ALL );
return;
}
@@ -1851,58 +1870,58 @@
{
if ( !IS_NPC(ch) && IS_SET(ch->act, PLR_SILENCE) )
{
- send_to_char( "You are silenced.\n\r", ch );
+ mxp_to_char( "You are silenced.\n\r", ch, MXP_ALL );
return;
}
- send_to_char( "Channels:", ch );
+ mxp_to_char( "Channels:", ch, MXP_ALL );
- send_to_char( !IS_SET(ch->deaf, CHANNEL_AUCTION)
+ mxp_to_char( !IS_SET(ch->deaf, CHANNEL_AUCTION)
? " +AUCTION"
: " -auction",
- ch );
+ ch, MXP_ALL );
- send_to_char( !IS_SET(ch->deaf, CHANNEL_CHAT)
+ mxp_to_char( !IS_SET(ch->deaf, CHANNEL_CHAT)
? " +CHAT"
: " -chat",
- ch );
+ ch, MXP_ALL );
#if 0
- send_to_char( !IS_SET(ch->deaf, CHANNEL_HACKER)
+ mxp_to_char( !IS_SET(ch->deaf, CHANNEL_HACKER)
? " +HACKER"
: " -hacker",
- ch );
+ ch, MXP_ALL );
#endif
if ( IS_HERO(ch) )
{
- send_to_char( !IS_SET(ch->deaf, CHANNEL_IMMTALK)
+ mxp_to_char( !IS_SET(ch->deaf, CHANNEL_IMMTALK)
? " +IMMTALK"
: " -immtalk",
- ch );
+ ch, MXP_ALL );
}
- send_to_char( !IS_SET(ch->deaf, CHANNEL_MUSIC)
+ mxp_to_char( !IS_SET(ch->deaf, CHANNEL_MUSIC)
? " +MUSIC"
: " -music",
- ch );
+ ch, MXP_ALL );
- send_to_char( !IS_SET(ch->deaf, CHANNEL_QUESTION)
+ mxp_to_char( !IS_SET(ch->deaf, CHANNEL_QUESTION)
? " +QUESTION"
: " -question",
- ch );
+ ch, MXP_ALL );
- send_to_char( !IS_SET(ch->deaf, CHANNEL_SHOUT)
+ mxp_to_char( !IS_SET(ch->deaf, CHANNEL_SHOUT)
? " +SHOUT"
: " -shout",
- ch );
+ ch, MXP_ALL );
- send_to_char( !IS_SET(ch->deaf, CHANNEL_YELL)
+ mxp_to_char( !IS_SET(ch->deaf, CHANNEL_YELL)
? " +YELL"
: " -yell",
- ch );
+ ch, MXP_ALL );
- send_to_char( ".\n\r", ch );
+ mxp_to_char( ".\n\r", ch, MXP_ALL );
}
else
{
@@ -1913,7 +1932,7 @@
else if ( arg[0] == '-' ) fClear = FALSE;
else
{
- send_to_char( "Channels -channel or +channel?\n\r", ch );
+ mxp_to_char( "Channels -channel or +channel?\n\r", ch, MXP_ALL );
return;
}
@@ -1929,7 +1948,7 @@
else if ( !str_cmp( arg+1, "yell" ) ) bit = CHANNEL_YELL;
else
{
- send_to_char( "Set or clear which channel?\n\r", ch );
+ mxp_to_char( "Set or clear which channel?\n\r", ch, MXP_ALL );
return;
}
@@ -1938,7 +1957,7 @@
else
SET_BIT (ch->deaf, bit);
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
}
return;
@@ -1960,62 +1979,62 @@
if ( arg[0] == '\0' )
{
- send_to_char( "[ Keyword ] Option\n\r", ch );
+ mxp_to_char( "[ Keyword ] Option\n\r", ch, MXP_ALL );
- send_to_char( IS_SET(ch->act, PLR_AUTOEXIT)
+ mxp_to_char( IS_SET(ch->act, PLR_AUTOEXIT)
? "[+AUTOEXIT ] You automatically see exits.\n\r"
: "[-autoexit ] You don't automatically see exits.\n\r"
- , ch );
+ , ch, MXP_ALL );
- send_to_char( IS_SET(ch->act, PLR_AUTOLOOT)
+ mxp_to_char( IS_SET(ch->act, PLR_AUTOLOOT)
? "[+AUTOLOOT ] You automatically loot corpses.\n\r"
: "[-autoloot ] You don't automatically loot corpses.\n\r"
- , ch );
+ , ch, MXP_ALL );
- send_to_char( IS_SET(ch->act, PLR_AUTOSAC)
+ mxp_to_char( IS_SET(ch->act, PLR_AUTOSAC)
? "[+AUTOSAC ] You automatically sacrifice corpses.\n\r"
: "[-autosac ] You don't automatically sacrifice corpses.\n\r"
- , ch );
+ , ch, MXP_ALL );
- send_to_char( IS_SET(ch->act, PLR_BLANK)
+ mxp_to_char( IS_SET(ch->act, PLR_BLANK)
? "[+BLANK ] You have a blank line before your prompt.\n\r"
: "[-blank ] You have no blank line before your prompt.\n\r"
- , ch );
+ , ch, MXP_ALL );
- send_to_char( IS_SET(ch->act, PLR_BRIEF)
+ mxp_to_char( IS_SET(ch->act, PLR_BRIEF)
? "[+BRIEF ] You see brief descriptions.\n\r"
: "[-brief ] You see long descriptions.\n\r"
- , ch );
+ , ch, MXP_ALL );
- send_to_char( IS_SET(ch->act, PLR_COMBINE)
+ mxp_to_char( IS_SET(ch->act, PLR_COMBINE)
? "[+COMBINE ] You see object lists in combined format.\n\r"
: "[-combine ] You see object lists in single format.\n\r"
- , ch );
+ , ch, MXP_ALL );
- send_to_char( IS_SET(ch->act, PLR_PROMPT)
+ mxp_to_char( IS_SET(ch->act, PLR_PROMPT)
? "[+PROMPT ] You have a prompt.\n\r"
: "[-prompt ] You don't have a prompt.\n\r"
- , ch );
+ , ch, MXP_ALL );
- send_to_char( IS_SET(ch->act, PLR_TELNET_GA)
+ mxp_to_char( IS_SET(ch->act, PLR_TELNET_GA)
? "[+TELNETGA ] You receive a telnet GA sequence.\n\r"
: "[-telnetga ] You don't receive a telnet GA sequence.\n\r"
- , ch );
+ , ch, MXP_ALL );
- send_to_char( IS_SET(ch->act, PLR_SILENCE)
+ mxp_to_char( IS_SET(ch->act, PLR_SILENCE)
? "[+SILENCE ] You are silenced.\n\r"
: ""
- , ch );
+ , ch, MXP_ALL );
- send_to_char( !IS_SET(ch->act, PLR_NO_EMOTE)
+ mxp_to_char( !IS_SET(ch->act, PLR_NO_EMOTE)
? ""
: "[-emote ] You can't emote.\n\r"
- , ch );
+ , ch, MXP_ALL );
- send_to_char( !IS_SET(ch->act, PLR_NO_TELL)
+ mxp_to_char( !IS_SET(ch->act, PLR_NO_TELL)
? ""
: "[-tell ] You can't use 'tell'.\n\r"
- , ch );
+ , ch, MXP_ALL );
}
else
{
@@ -2026,7 +2045,7 @@
else if ( arg[0] == '-' ) fSet = FALSE;
else
{
- send_to_char( "Config -option or +option?\n\r", ch );
+ mxp_to_char( "Config -option or +option?\n\r", ch, MXP_ALL );
return;
}
@@ -2040,7 +2059,7 @@
else if ( !str_cmp( arg+1, "telnetga" ) ) bit = PLR_TELNET_GA;
else
{
- send_to_char( "Config which option?\n\r", ch );
+ mxp_to_char( "Config which option?\n\r", ch, MXP_ALL );
return;
}
@@ -2049,7 +2068,7 @@
else
REMOVE_BIT (ch->act, bit);
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
}
return;
@@ -2074,7 +2093,7 @@
!class_table[ch->class].fMana )
|| IS_NPC ( ch ) )
{
- send_to_char ( "You do not know how to cast spells!\n\r", ch );
+ mxp_to_char ( "You do not know how to cast spells!\n\r", ch, MXP_ALL );
return;
}
@@ -2099,7 +2118,7 @@
if ( col % 3 != 0 )
strcat( buf1, "\n\r" );
- send_to_char ( buf1, ch );
+ mxp_to_char ( buf1, ch, MXP_ALL );
return;
}
@@ -2117,7 +2136,7 @@
!class_table[ch->class].fMana )
|| IS_NPC ( ch ) )
{
- send_to_char ( "You do not need any stinking spells!\n\r", ch );
+ mxp_to_char ( "You do not need any stinking spells!\n\r", ch, MXP_ALL );
return;
}
@@ -2162,7 +2181,7 @@
}
- send_to_char( buf1, ch );
+ mxp_to_char( buf1, ch, MXP_ALL );
return;
}
@@ -2238,15 +2257,15 @@
if ( lines < 1 )
{
- send_to_char(
+ mxp_to_char(
"Negative or Zero values for a page pause is not legal.\n\r",
- ch );
+ ch, MXP_ALL );
return;
}
ch->pcdata->pagelen = lines;
sprintf( buf, "Page pause set to %d lines.\n\r", lines );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
return;
}
@@ -2278,7 +2297,7 @@
ch->prompt = str_dup( buf );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
return;
}
diff -u srcorig/act_move.c src/act_move.c
--- srcorig/act_move.c 2004-12-01 08:18:50.000000000 -0600
+++ src/act_move.c 2004-12-05 08:44:14.000000000 -0600
@@ -70,7 +70,7 @@
if ( ( pexit = in_room->exit[door] ) == NULL
|| ( to_room = pexit->to_room ) == NULL )
{
- send_to_char( "Alas, you cannot go that way.\n\r", ch );
+ mxp_to_char( "Alas, you cannot go that way.\n\r", ch, MXP_ALL );
return;
}
@@ -85,13 +85,13 @@
&& ch->master != NULL
&& in_room == ch->master->in_room )
{
- send_to_char( "What? And leave your beloved master?\n\r", ch );
+ mxp_to_char( "What? And leave your beloved master?\n\r", ch, MXP_ALL );
return;
}
if ( room_is_private( to_room ) )
{
- send_to_char( "That room is private right now.\n\r", ch );
+ mxp_to_char( "That room is private right now.\n\r", ch, MXP_ALL );
return;
}
@@ -105,7 +105,7 @@
if ( iClass != ch->class
&& to_room->vnum == class_table[iClass].guild )
{
- send_to_char( "You aren't allowed in there.\n\r", ch );
+ mxp_to_char( "You aren't allowed in there.\n\r", ch, MXP_ALL );
return;
}
}
@@ -115,7 +115,7 @@
{
if ( !IS_AFFECTED(ch, AFF_FLYING) )
{
- send_to_char( "You can't fly.\n\r", ch );
+ mxp_to_char( "You can't fly.\n\r", ch, MXP_ALL );
return;
}
}
@@ -147,7 +147,7 @@
}
if ( !found )
{
- send_to_char( "You need a boat to go there.\n\r", ch );
+ mxp_to_char( "You need a boat to go there.\n\r", ch, MXP_ALL );
return;
}
}
@@ -158,7 +158,7 @@
if ( ch->move < move )
{
- send_to_char( "You are too exhausted.\n\r", ch );
+ mxp_to_char( "You are too exhausted.\n\r", ch, MXP_ALL );
return;
}
@@ -276,7 +276,7 @@
if ( !IS_SET(pexit->exit_info, EX_ISDOOR) )
{
- send_to_char( "You can't do that.\n\r", ch );
+ mxp_to_char( "You can't do that.\n\r", ch, MXP_ALL );
return -1;
}
@@ -295,7 +295,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Open what?\n\r", ch );
+ mxp_to_char( "Open what?\n\r", ch, MXP_ALL );
return;
}
@@ -303,16 +303,16 @@
{
/* 'open object' */
if ( obj->item_type != ITEM_CONTAINER )
- { send_to_char( "That's not a container.\n\r", ch ); return; }
+ { mxp_to_char( "That's not a container.\n\r", ch, MXP_ALL ); return; }
if ( !IS_SET(obj->value[1], CONT_CLOSED) )
- { send_to_char( "It's already open.\n\r", ch ); return; }
+ { mxp_to_char( "It's already open.\n\r", ch, MXP_ALL ); return; }
if ( !IS_SET(obj->value[1], CONT_CLOSEABLE) )
- { send_to_char( "You can't do that.\n\r", ch ); return; }
+ { mxp_to_char( "You can't do that.\n\r", ch, MXP_ALL ); return; }
if ( IS_SET(obj->value[1], CONT_LOCKED) )
- { send_to_char( "It's locked.\n\r", ch ); return; }
+ { mxp_to_char( "It's locked.\n\r", ch, MXP_ALL ); return; }
REMOVE_BIT(obj->value[1], CONT_CLOSED);
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
act( "$n opens $p.", ch, obj, NULL, TO_ROOM );
return;
}
@@ -326,13 +326,13 @@
pexit = ch->in_room->exit[door];
if ( !IS_SET(pexit->exit_info, EX_CLOSED) )
- { send_to_char( "It's already open.\n\r", ch ); return; }
+ { mxp_to_char( "It's already open.\n\r", ch, MXP_ALL ); return; }
if ( IS_SET(pexit->exit_info, EX_LOCKED) )
- { send_to_char( "It's locked.\n\r", ch ); return; }
+ { mxp_to_char( "It's locked.\n\r", ch, MXP_ALL ); return; }
REMOVE_BIT(pexit->exit_info, EX_CLOSED);
act( "$n opens the $d.", ch, NULL, pexit->keyword, TO_ROOM );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
/* open the other side */
if ( ( to_room = pexit->to_room ) != NULL
@@ -362,7 +362,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Close what?\n\r", ch );
+ mxp_to_char( "Close what?\n\r", ch, MXP_ALL );
return;
}
@@ -370,14 +370,14 @@
{
/* 'close object' */
if ( obj->item_type != ITEM_CONTAINER )
- { send_to_char( "That's not a container.\n\r", ch ); return; }
+ { mxp_to_char( "That's not a container.\n\r", ch, MXP_ALL ); return; }
if ( IS_SET(obj->value[1], CONT_CLOSED) )
- { send_to_char( "It's already closed.\n\r", ch ); return; }
+ { mxp_to_char( "It's already closed.\n\r", ch, MXP_ALL ); return; }
if ( !IS_SET(obj->value[1], CONT_CLOSEABLE) )
- { send_to_char( "You can't do that.\n\r", ch ); return; }
+ { mxp_to_char( "You can't do that.\n\r", ch, MXP_ALL ); return; }
SET_BIT(obj->value[1], CONT_CLOSED);
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
act( "$n closes $p.", ch, obj, NULL, TO_ROOM );
return;
}
@@ -391,11 +391,11 @@
pexit = ch->in_room->exit[door];
if ( IS_SET(pexit->exit_info, EX_CLOSED) )
- { send_to_char( "It's already closed.\n\r", ch ); return; }
+ { mxp_to_char( "It's already closed.\n\r", ch, MXP_ALL ); return; }
SET_BIT(pexit->exit_info, EX_CLOSED);
act( "$n closes the $d.", ch, NULL, pexit->keyword, TO_ROOM );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
/* close the other side */
if ( ( to_room = pexit->to_room ) != NULL
@@ -440,7 +440,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Lock what?\n\r", ch );
+ mxp_to_char( "Lock what?\n\r", ch, MXP_ALL );
return;
}
@@ -448,18 +448,18 @@
{
/* 'lock object' */
if ( obj->item_type != ITEM_CONTAINER )
- { send_to_char( "That's not a container.\n\r", ch ); return; }
+ { mxp_to_char( "That's not a container.\n\r", ch, MXP_ALL ); return; }
if ( !IS_SET(obj->value[1], CONT_CLOSED) )
- { send_to_char( "It's not closed.\n\r", ch ); return; }
+ { mxp_to_char( "It's not closed.\n\r", ch, MXP_ALL ); return; }
if ( obj->value[2] < 0 )
- { send_to_char( "It can't be locked.\n\r", ch ); return; }
+ { mxp_to_char( "It can't be locked.\n\r", ch, MXP_ALL ); return; }
if ( !has_key( ch, obj->value[2] ) )
- { send_to_char( "You lack the key.\n\r", ch ); return; }
+ { mxp_to_char( "You lack the key.\n\r", ch, MXP_ALL ); return; }
if ( IS_SET(obj->value[1], CONT_LOCKED) )
- { send_to_char( "It's already locked.\n\r", ch ); return; }
+ { mxp_to_char( "It's already locked.\n\r", ch, MXP_ALL ); return; }
SET_BIT(obj->value[1], CONT_LOCKED);
- send_to_char( "*Click*\n\r", ch );
+ mxp_to_char( "*Click*\n\r", ch, MXP_ALL );
act( "$n locks $p.", ch, obj, NULL, TO_ROOM );
return;
}
@@ -473,16 +473,16 @@
pexit = ch->in_room->exit[door];
if ( !IS_SET(pexit->exit_info, EX_CLOSED) )
- { send_to_char( "It's not closed.\n\r", ch ); return; }
+ { mxp_to_char( "It's not closed.\n\r", ch, MXP_ALL ); return; }
if ( pexit->key < 0 )
- { send_to_char( "It can't be locked.\n\r", ch ); return; }
+ { mxp_to_char( "It can't be locked.\n\r", ch, MXP_ALL ); return; }
if ( !has_key( ch, pexit->key) )
- { send_to_char( "You lack the key.\n\r", ch ); return; }
+ { mxp_to_char( "You lack the key.\n\r", ch, MXP_ALL ); return; }
if ( IS_SET(pexit->exit_info, EX_LOCKED) )
- { send_to_char( "It's already locked.\n\r", ch ); return; }
+ { mxp_to_char( "It's already locked.\n\r", ch, MXP_ALL ); return; }
SET_BIT(pexit->exit_info, EX_LOCKED);
- send_to_char( "*Click*\n\r", ch );
+ mxp_to_char( "*Click*\n\r", ch, MXP_ALL );
act( "$n locks the $d.", ch, NULL, pexit->keyword, TO_ROOM );
/* lock the other side */
@@ -509,7 +509,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Unlock what?\n\r", ch );
+ mxp_to_char( "Unlock what?\n\r", ch, MXP_ALL );
return;
}
@@ -517,18 +517,18 @@
{
/* 'unlock object' */
if ( obj->item_type != ITEM_CONTAINER )
- { send_to_char( "That's not a container.\n\r", ch ); return; }
+ { mxp_to_char( "That's not a container.\n\r", ch, MXP_ALL ); return; }
if ( !IS_SET(obj->value[1], CONT_CLOSED) )
- { send_to_char( "It's not closed.\n\r", ch ); return; }
+ { mxp_to_char( "It's not closed.\n\r", ch, MXP_ALL ); return; }
if ( obj->value[2] < 0 )
- { send_to_char( "It can't be unlocked.\n\r", ch ); return; }
+ { mxp_to_char( "It can't be unlocked.\n\r", ch, MXP_ALL ); return; }
if ( !has_key( ch, obj->value[2] ) )
- { send_to_char( "You lack the key.\n\r", ch ); return; }
+ { mxp_to_char( "You lack the key.\n\r", ch, MXP_ALL ); return; }
if ( !IS_SET(obj->value[1], CONT_LOCKED) )
- { send_to_char( "It's already unlocked.\n\r", ch ); return; }
+ { mxp_to_char( "It's already unlocked.\n\r", ch, MXP_ALL ); return; }
REMOVE_BIT(obj->value[1], CONT_LOCKED);
- send_to_char( "*Click*\n\r", ch );
+ mxp_to_char( "*Click*\n\r", ch, MXP_ALL );
act( "$n unlocks $p.", ch, obj, NULL, TO_ROOM );
return;
}
@@ -542,16 +542,16 @@
pexit = ch->in_room->exit[door];
if ( !IS_SET(pexit->exit_info, EX_CLOSED) )
- { send_to_char( "It's not closed.\n\r", ch ); return; }
+ { mxp_to_char( "It's not closed.\n\r", ch, MXP_ALL ); return; }
if ( pexit->key < 0 )
- { send_to_char( "It can't be unlocked.\n\r", ch ); return; }
+ { mxp_to_char( "It can't be unlocked.\n\r", ch, MXP_ALL ); return; }
if ( !has_key( ch, pexit->key) )
- { send_to_char( "You lack the key.\n\r", ch ); return; }
+ { mxp_to_char( "You lack the key.\n\r", ch, MXP_ALL ); return; }
if ( !IS_SET(pexit->exit_info, EX_LOCKED) )
- { send_to_char( "It's already unlocked.\n\r", ch ); return; }
+ { mxp_to_char( "It's already unlocked.\n\r", ch, MXP_ALL ); return; }
REMOVE_BIT(pexit->exit_info, EX_LOCKED);
- send_to_char( "*Click*\n\r", ch );
+ mxp_to_char( "*Click*\n\r", ch, MXP_ALL );
act( "$n unlocks the $d.", ch, NULL, pexit->keyword, TO_ROOM );
/* unlock the other side */
@@ -579,7 +579,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Pick what?\n\r", ch );
+ mxp_to_char( "Pick what?\n\r", ch, MXP_ALL );
return;
}
@@ -598,7 +598,7 @@
if ( !IS_NPC(ch) && number_percent( ) > ch->pcdata->learned[gsn_pick_lock] )
{
- send_to_char( "You failed.\n\r", ch);
+ mxp_to_char( "You failed.\n\r", ch, MXP_ALL );
return;
}
@@ -606,18 +606,18 @@
{
/* 'pick object' */
if ( obj->item_type != ITEM_CONTAINER )
- { send_to_char( "That's not a container.\n\r", ch ); return; }
+ { mxp_to_char( "That's not a container.\n\r", ch, MXP_ALL ); return; }
if ( !IS_SET(obj->value[1], CONT_CLOSED) )
- { send_to_char( "It's not closed.\n\r", ch ); return; }
+ { mxp_to_char( "It's not closed.\n\r", ch, MXP_ALL ); return; }
if ( obj->value[2] < 0 )
- { send_to_char( "It can't be unlocked.\n\r", ch ); return; }
+ { mxp_to_char( "It can't be unlocked.\n\r", ch, MXP_ALL ); return; }
if ( !IS_SET(obj->value[1], CONT_LOCKED) )
- { send_to_char( "It's already unlocked.\n\r", ch ); return; }
+ { mxp_to_char( "It's already unlocked.\n\r", ch, MXP_ALL ); return; }
if ( IS_SET(obj->value[1], CONT_PICKPROOF) )
- { send_to_char( "You failed.\n\r", ch ); return; }
+ { mxp_to_char( "You failed.\n\r", ch, MXP_ALL ); return; }
REMOVE_BIT(obj->value[1], CONT_LOCKED);
- send_to_char( "*Click*\n\r", ch );
+ mxp_to_char( "*Click*\n\r", ch, MXP_ALL );
act( "$n picks $p.", ch, obj, NULL, TO_ROOM );
return;
}
@@ -631,16 +631,16 @@
pexit = ch->in_room->exit[door];
if ( !IS_SET(pexit->exit_info, EX_CLOSED) )
- { send_to_char( "It's not closed.\n\r", ch ); return; }
+ { mxp_to_char( "It's not closed.\n\r", ch, MXP_ALL ); return; }
if ( pexit->key < 0 )
- { send_to_char( "It can't be picked.\n\r", ch ); return; }
+ { mxp_to_char( "It can't be picked.\n\r", ch, MXP_ALL ); return; }
if ( !IS_SET(pexit->exit_info, EX_LOCKED) )
- { send_to_char( "It's already unlocked.\n\r", ch ); return; }
+ { mxp_to_char( "It's already unlocked.\n\r", ch, MXP_ALL ); return; }
if ( IS_SET(pexit->exit_info, EX_PICKPROOF) )
- { send_to_char( "You failed.\n\r", ch ); return; }
+ { mxp_to_char( "You failed.\n\r", ch, MXP_ALL ); return; }
REMOVE_BIT(pexit->exit_info, EX_LOCKED);
- send_to_char( "*Click*\n\r", ch );
+ mxp_to_char( "*Click*\n\r", ch, MXP_ALL );
act( "$n picks the $d.", ch, NULL, pexit->keyword, TO_ROOM );
/* pick the other side */
@@ -664,25 +664,25 @@
{
case POS_SLEEPING:
if ( IS_AFFECTED(ch, AFF_SLEEP) )
- { send_to_char( "You can't wake up!\n\r", ch ); return; }
+ { mxp_to_char( "You can't wake up!\n\r", ch, MXP_ALL ); return; }
- send_to_char( "You wake and stand up.\n\r", ch );
+ mxp_to_char( "You wake and stand up.\n\r", ch, MXP_ALL );
act( "$n wakes and stands up.", ch, NULL, NULL, TO_ROOM );
ch->position = POS_STANDING;
break;
case POS_RESTING:
- send_to_char( "You stand up.\n\r", ch );
+ mxp_to_char( "You stand up.\n\r", ch, MXP_ALL );
act( "$n stands up.", ch, NULL, NULL, TO_ROOM );
ch->position = POS_STANDING;
break;
case POS_STANDING:
- send_to_char( "You are already standing.\n\r", ch );
+ mxp_to_char( "You are already standing.\n\r", ch, MXP_ALL );
break;
case POS_FIGHTING:
- send_to_char( "You are already fighting!\n\r", ch );
+ mxp_to_char( "You are already fighting!\n\r", ch, MXP_ALL );
break;
}
@@ -696,21 +696,21 @@
switch ( ch->position )
{
case POS_SLEEPING:
- send_to_char( "You are already sleeping.\n\r", ch );
+ mxp_to_char( "You are already sleeping.\n\r", ch, MXP_ALL );
break;
case POS_RESTING:
- send_to_char( "You are already resting.\n\r", ch );
+ mxp_to_char( "You are already resting.\n\r", ch, MXP_ALL );
break;
case POS_STANDING:
- send_to_char( "You rest.\n\r", ch );
+ mxp_to_char( "You rest.\n\r", ch, MXP_ALL );
act( "$n rests.", ch, NULL, NULL, TO_ROOM );
ch->position = POS_RESTING;
break;
case POS_FIGHTING:
- send_to_char( "You are already fighting!\n\r", ch );
+ mxp_to_char( "You are already fighting!\n\r", ch, MXP_ALL );
break;
}
@@ -724,18 +724,18 @@
switch ( ch->position )
{
case POS_SLEEPING:
- send_to_char( "You are already sleeping.\n\r", ch );
+ mxp_to_char( "You are already sleeping.\n\r", ch, MXP_ALL );
break;
case POS_RESTING:
case POS_STANDING:
- send_to_char( "You sleep.\n\r", ch );
+ mxp_to_char( "You sleep.\n\r", ch, MXP_ALL );
act( "$n sleeps.", ch, NULL, NULL, TO_ROOM );
ch->position = POS_SLEEPING;
break;
case POS_FIGHTING:
- send_to_char( "You are already fighting!\n\r", ch );
+ mxp_to_char( "You are already fighting!\n\r", ch, MXP_ALL );
break;
}
@@ -754,10 +754,10 @@
{ do_stand( ch, argument ); return; }
if ( !IS_AWAKE(ch) )
- { send_to_char( "You are asleep yourself!\n\r", ch ); return; }
+ { mxp_to_char( "You are asleep yourself!\n\r", ch, MXP_ALL ); return; }
if ( ( victim = get_char_room( ch, arg ) ) == NULL )
- { send_to_char( "They aren't here.\n\r", ch ); return; }
+ { mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL ); return; }
if ( IS_AWAKE(victim) )
{ act( "$N is already awake.", ch, NULL, victim, TO_CHAR ); return; }
@@ -777,7 +777,7 @@
{
AFFECT_DATA af;
- send_to_char( "You attempt to move silently.\n\r", ch );
+ mxp_to_char( "You attempt to move silently.\n\r", ch, MXP_ALL );
affect_strip( ch, gsn_sneak );
if ( IS_NPC(ch) || number_percent( ) < ch->pcdata->learned[gsn_sneak] )
@@ -797,7 +797,7 @@
void do_hide( CHAR_DATA *ch, char *argument )
{
- send_to_char( "You attempt to hide.\n\r", ch );
+ mxp_to_char( "You attempt to hide.\n\r", ch, MXP_ALL );
if ( IS_AFFECTED(ch, AFF_HIDE) )
REMOVE_BIT(ch->affected_by, AFF_HIDE);
@@ -821,7 +821,7 @@
REMOVE_BIT ( ch->affected_by, AFF_HIDE );
REMOVE_BIT ( ch->affected_by, AFF_INVISIBLE );
REMOVE_BIT ( ch->affected_by, AFF_SNEAK );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
return;
}
@@ -837,7 +837,7 @@
if ( ( location = get_room_index( ROOM_VNUM_TEMPLE ) ) == NULL )
{
- send_to_char( "You are completely lost.\n\r", ch );
+ mxp_to_char( "You are completely lost.\n\r", ch, MXP_ALL );
return;
}
@@ -847,7 +847,7 @@
if ( IS_SET(ch->in_room->room_flags, ROOM_NO_RECALL)
|| IS_AFFECTED(ch, AFF_CURSE) )
{
- send_to_char( "God has forsaken you.\n\r", ch );
+ mxp_to_char( "God has forsaken you.\n\r", ch, MXP_ALL );
return;
}
@@ -861,14 +861,14 @@
lose = (ch->desc != NULL) ? 50 : 100;
gain_exp( ch, 0 - lose );
sprintf( buf, "You failed! You lose %d exps.\n\r", lose );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
return;
}
lose = (ch->desc != NULL) ? 100 : 200;
gain_exp( ch, 0 - lose );
sprintf( buf, "You recall from combat! You lose %d exps.\n\r", lose );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
stop_fighting( ch, TRUE );
}
@@ -908,14 +908,14 @@
if ( mob == NULL )
{
- send_to_char( "You can't do that here.\n\r", ch );
+ mxp_to_char( "You can't do that here.\n\r", ch, MXP_ALL );
return;
}
if ( argument[0] == '\0' )
{
sprintf( buf, "You have %d practice sessions.\n\r", ch->practice );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
argument = "foo";
}
@@ -989,7 +989,7 @@
if ( buf[strlen(buf)-1] != ':' )
{
strcat( buf, ".\n\r" );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
}
return;
}
@@ -1001,7 +1001,7 @@
if ( cost > ch->practice )
{
- send_to_char( "You don't have enough practices.\n\r", ch );
+ mxp_to_char( "You don't have enough practices.\n\r", ch, MXP_ALL );
return;
}
@@ -1017,7 +1017,7 @@
if ( cost > ch->practice )
{
- send_to_char( "You don't have enough practices.\n\r", ch );
+ mxp_to_char( "You don't have enough practices.\n\r", ch, MXP_ALL );
return;
}
@@ -1035,7 +1035,7 @@
if ( cost > ch->practice )
{
- send_to_char( "You don't have enough practices.\n\r", ch );
+ mxp_to_char( "You don't have enough practices.\n\r", ch, MXP_ALL );
return;
}
diff -u srcorig/act_obj.c src/act_obj.c
--- srcorig/act_obj.c 2004-12-01 08:18:50.000000000 -0600
+++ src/act_obj.c 2004-12-06 07:10:06.000000000 -0600
@@ -47,7 +47,7 @@
{
if ( !CAN_WEAR(obj, ITEM_TAKE) )
{
- send_to_char( "You can't take that.\n\r", ch );
+ mxp_to_char( "You can't take that.\n\r", ch, MXP_ALL );
return;
}
@@ -108,7 +108,7 @@
/* Get type. */
if ( arg1[0] == '\0' )
{
- send_to_char( "Get what?\n\r", ch );
+ mxp_to_char( "Get what?\n\r", ch, MXP_ALL );
return;
}
@@ -144,7 +144,7 @@
if ( !found )
{
if ( arg1[3] == '\0' )
- send_to_char( "I see nothing here.\n\r", ch );
+ mxp_to_char( "I see nothing here.\n\r", ch, MXP_ALL );
else
act( "I see no $T here.", ch, NULL, &arg1[4], TO_CHAR );
}
@@ -155,7 +155,7 @@
/* 'get ... container' */
if ( !str_cmp( arg2, "all" ) || !str_prefix( "all.", arg2 ) )
{
- send_to_char( "You can't do that.\n\r", ch );
+ mxp_to_char( "You can't do that.\n\r", ch, MXP_ALL );
return;
}
@@ -168,7 +168,7 @@
switch ( container->item_type )
{
default:
- send_to_char( "That's not a container.\n\r", ch );
+ mxp_to_char( "That's not a container.\n\r", ch, MXP_ALL );
return;
case ITEM_CONTAINER:
@@ -183,7 +183,7 @@
if ( IS_NPC(ch) )
{
- send_to_char( "You can't do that.\n\r", ch );
+ mxp_to_char( "You can't do that.\n\r", ch, MXP_ALL );
return;
}
@@ -210,7 +210,7 @@
if ( !fGroup )
{
- send_to_char( "You can't do that.\n\r", ch );
+ mxp_to_char( "You can't do that.\n\r", ch, MXP_ALL );
return;
}
}
@@ -280,13 +280,13 @@
if ( arg1[0] == '\0' || arg2[0] == '\0' )
{
- send_to_char( "Put what in what?\n\r", ch );
+ mxp_to_char( "Put what in what?\n\r", ch, MXP_ALL );
return;
}
if ( !str_cmp( arg2, "all" ) || !str_prefix( "all.", arg2 ) )
{
- send_to_char( "You can't do that.\n\r", ch );
+ mxp_to_char( "You can't do that.\n\r", ch, MXP_ALL );
return;
}
@@ -298,7 +298,7 @@
if ( container->item_type != ITEM_CONTAINER )
{
- send_to_char( "That's not a container.\n\r", ch );
+ mxp_to_char( "That's not a container.\n\r", ch, MXP_ALL );
return;
}
@@ -313,26 +313,26 @@
/* 'put obj container' */
if ( ( obj = get_obj_carry( ch, arg1 ) ) == NULL )
{
- send_to_char( "You do not have that item.\n\r", ch );
+ mxp_to_char( "You do not have that item.\n\r", ch, MXP_ALL );
return;
}
if ( obj == container )
{
- send_to_char( "You can't fold it into itself.\n\r", ch );
+ mxp_to_char( "You can't fold it into itself.\n\r", ch, MXP_ALL );
return;
}
if ( !can_drop_obj( ch, obj ) )
{
- send_to_char( "You can't let go of it.\n\r", ch );
+ mxp_to_char( "You can't let go of it.\n\r", ch, MXP_ALL );
return;
}
if ( get_obj_weight( obj ) + get_obj_weight( container )
> container->value[0] )
{
- send_to_char( "It won't fit.\n\r", ch );
+ mxp_to_char( "It won't fit.\n\r", ch, MXP_ALL );
return;
}
@@ -380,7 +380,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Drop what?\n\r", ch );
+ mxp_to_char( "Drop what?\n\r", ch, MXP_ALL );
return;
}
@@ -394,13 +394,13 @@
if ( amount <= 0
|| ( str_cmp( arg, "coins" ) && str_cmp( arg, "coin" ) ) )
{
- send_to_char( "Sorry, you can't do that.\n\r", ch );
+ mxp_to_char( "Sorry, you can't do that.\n\r", ch, MXP_ALL );
return;
}
if ( ch->gold < amount )
{
- send_to_char( "You haven't got that many coins.\n\r", ch );
+ mxp_to_char( "You haven't got that many coins.\n\r", ch, MXP_ALL );
return;
}
@@ -426,7 +426,7 @@
obj_to_room( create_money( amount ), ch->in_room );
act( "$n drops some gold.", ch, NULL, NULL, TO_ROOM );
- send_to_char( "OK.\n\r", ch );
+ mxp_to_char( "OK.\n\r", ch, MXP_ALL );
return;
}
@@ -435,13 +435,13 @@
/* 'drop obj' */
if ( ( obj = get_obj_carry( ch, arg ) ) == NULL )
{
- send_to_char( "You do not have that item.\n\r", ch );
+ mxp_to_char( "You do not have that item.\n\r", ch, MXP_ALL );
return;
}
if ( !can_drop_obj( ch, obj ) )
{
- send_to_char( "You can't let go of it.\n\r", ch );
+ mxp_to_char( "You can't let go of it.\n\r", ch, MXP_ALL );
return;
}
@@ -499,7 +499,7 @@
if ( arg1[0] == '\0' || arg2[0] == '\0' )
{
- send_to_char( "Give what to whom?\n\r", ch );
+ mxp_to_char( "Give what to whom?\n\r", ch, MXP_ALL );
return;
}
@@ -512,26 +512,26 @@
if ( amount <= 0
|| ( str_cmp( arg2, "coins" ) && str_cmp( arg2, "coin" ) ) )
{
- send_to_char( "Sorry, you can't do that.\n\r", ch );
+ mxp_to_char( "Sorry, you can't do that.\n\r", ch, MXP_ALL );
return;
}
argument = one_argument( argument, arg2 );
if ( arg2[0] == '\0' )
{
- send_to_char( "Give what to whom?\n\r", ch );
+ mxp_to_char( "Give what to whom?\n\r", ch, MXP_ALL );
return;
}
if ( ( victim = get_char_room( ch, arg2 ) ) == NULL )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
if ( ch->gold < amount )
{
- send_to_char( "You haven't got that much gold.\n\r", ch );
+ mxp_to_char( "You haven't got that much gold.\n\r", ch, MXP_ALL );
return;
}
@@ -540,32 +540,32 @@
act( "$n gives you some gold.", ch, NULL, victim, TO_VICT );
act( "$n gives $N some gold.", ch, NULL, victim, TO_NOTVICT );
act( "You give $N some gold.", ch, NULL, victim, TO_CHAR );
- send_to_char( "OK.\n\r", ch );
+ mxp_to_char( "OK.\n\r", ch, MXP_ALL );
mprog_bribe_trigger(victim,ch,amount);
return;
}
if ( ( obj = get_obj_carry( ch, arg1 ) ) == NULL )
{
- send_to_char( "You do not have that item.\n\r", ch );
+ mxp_to_char( "You do not have that item.\n\r", ch, MXP_ALL );
return;
}
if ( obj->wear_loc != WEAR_NONE )
{
- send_to_char( "You must remove it first.\n\r", ch );
+ mxp_to_char( "You must remove it first.\n\r", ch, MXP_ALL );
return;
}
if ( ( victim = get_char_room( ch, arg2 ) ) == NULL )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
if ( !can_drop_obj( ch, obj ) )
{
- send_to_char( "You can't let go of it.\n\r", ch );
+ mxp_to_char( "You can't let go of it.\n\r", ch, MXP_ALL );
return;
}
@@ -611,13 +611,13 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Fill what?\n\r", ch );
+ mxp_to_char( "Fill what?\n\r", ch, MXP_ALL );
return;
}
if ( ( obj = get_obj_carry( ch, arg ) ) == NULL )
{
- send_to_char( "You do not have that item.\n\r", ch );
+ mxp_to_char( "You do not have that item.\n\r", ch, MXP_ALL );
return;
}
@@ -634,25 +634,25 @@
if ( !found )
{
- send_to_char( "There is no fountain here!\n\r", ch );
+ mxp_to_char( "There is no fountain here!\n\r", ch, MXP_ALL );
return;
}
if ( obj->item_type != ITEM_DRINK_CON )
{
- send_to_char( "You can't fill that.\n\r", ch );
+ mxp_to_char( "You can't fill that.\n\r", ch, MXP_ALL );
return;
}
if ( obj->value[1] != 0 && obj->value[2] != 0 )
{
- send_to_char( "There is already another liquid in it.\n\r", ch );
+ mxp_to_char( "There is already another liquid in it.\n\r", ch, MXP_ALL );
return;
}
if ( obj->value[1] >= obj->value[0] )
{
- send_to_char( "Your container is full.\n\r", ch );
+ mxp_to_char( "Your container is full.\n\r", ch, MXP_ALL );
return;
}
@@ -683,7 +683,7 @@
if ( obj == NULL )
{
- send_to_char( "Drink what?\n\r", ch );
+ mxp_to_char( "Drink what?\n\r", ch, MXP_ALL );
return;
}
}
@@ -691,34 +691,34 @@
{
if ( ( obj = get_obj_here( ch, arg ) ) == NULL )
{
- send_to_char( "You can't find it.\n\r", ch );
+ mxp_to_char( "You can't find it.\n\r", ch, MXP_ALL );
return;
}
}
if ( !IS_NPC(ch) && ch->pcdata->condition[COND_DRUNK] > 10 )
{
- send_to_char( "You fail to reach your mouth. *Hic*\n\r", ch );
+ mxp_to_char( "You fail to reach your mouth. *Hic*\n\r", ch, MXP_ALL );
return;
}
switch ( obj->item_type )
{
default:
- send_to_char( "You can't drink from that.\n\r", ch );
+ mxp_to_char( "You can't drink from that.\n\r", ch, MXP_ALL );
break;
case ITEM_FOUNTAIN:
if ( !IS_NPC(ch) )
ch->pcdata->condition[COND_THIRST] = 48;
act( "$n drinks from the fountain.", ch, NULL, NULL, TO_ROOM );
- send_to_char( "You are not thirsty.\n\r", ch );
+ mxp_to_char( "You are not thirsty.\n\r", ch, MXP_ALL );
break;
case ITEM_DRINK_CON:
if ( obj->value[1] <= 0 )
{
- send_to_char( "It is already empty.\n\r", ch );
+ mxp_to_char( "It is already empty.\n\r", ch, MXP_ALL );
return;
}
@@ -744,11 +744,11 @@
amount * liq_table[liquid].liq_affect[COND_THIRST ] );
if ( !IS_NPC(ch) && ch->pcdata->condition[COND_DRUNK] > 10 )
- send_to_char( "You feel drunk.\n\r", ch );
+ mxp_to_char( "You feel drunk.\n\r", ch, MXP_ALL );
if ( !IS_NPC(ch) && ch->pcdata->condition[COND_FULL] > 40 )
- send_to_char( "You are full.\n\r", ch );
+ mxp_to_char( "You are full.\n\r", ch, MXP_ALL );
if ( !IS_NPC(ch) && ch->pcdata->condition[COND_THIRST] > 40 )
- send_to_char( "You do not feel thirsty.\n\r", ch );
+ mxp_to_char( "You do not feel thirsty.\n\r", ch, MXP_ALL );
if ( obj->value[3] != 0 )
{
@@ -756,7 +756,7 @@
AFFECT_DATA af;
act( "$n chokes and gags.", ch, NULL, NULL, TO_ROOM );
- send_to_char( "You choke and gag.\n\r", ch );
+ mxp_to_char( "You choke and gag.\n\r", ch, MXP_ALL );
af.type = gsn_poison;
af.duration = 3 * amount;
af.location = APPLY_NONE;
@@ -768,7 +768,7 @@
obj->value[1] -= amount;
if ( obj->value[1] <= 0 )
{
- send_to_char( "The empty container vanishes.\n\r", ch );
+ mxp_to_char( "The empty container vanishes.\n\r", ch, MXP_ALL );
extract_obj( obj );
}
break;
@@ -787,13 +787,13 @@
one_argument( argument, arg );
if ( arg[0] == '\0' )
{
- send_to_char( "Eat what?\n\r", ch );
+ mxp_to_char( "Eat what?\n\r", ch, MXP_ALL );
return;
}
if ( ( obj = get_obj_carry( ch, arg ) ) == NULL )
{
- send_to_char( "You do not have that item.\n\r", ch );
+ mxp_to_char( "You do not have that item.\n\r", ch, MXP_ALL );
return;
}
@@ -801,13 +801,13 @@
{
if ( obj->item_type != ITEM_FOOD && obj->item_type != ITEM_PILL )
{
- send_to_char( "That's not edible.\n\r", ch );
+ mxp_to_char( "That's not edible.\n\r", ch, MXP_ALL );
return;
}
if ( !IS_NPC(ch) && ch->pcdata->condition[COND_FULL] > 40 )
{
- send_to_char( "You are too full to eat more.\n\r", ch );
+ mxp_to_char( "You are too full to eat more.\n\r", ch, MXP_ALL );
return;
}
}
@@ -826,9 +826,9 @@
condition = ch->pcdata->condition[COND_FULL];
gain_condition( ch, COND_FULL, obj->value[0] );
if ( condition == 0 && ch->pcdata->condition[COND_FULL] > 0 )
- send_to_char( "You are no longer hungry.\n\r", ch );
+ mxp_to_char( "You are no longer hungry.\n\r", ch, MXP_ALL );
else if ( ch->pcdata->condition[COND_FULL] > 40 )
- send_to_char( "You are full.\n\r", ch );
+ mxp_to_char( "You are full.\n\r", ch, MXP_ALL );
}
if ( obj->value[3] != 0 )
@@ -837,7 +837,7 @@
AFFECT_DATA af;
act( "$n chokes and gags.", ch, 0, 0, TO_ROOM );
- send_to_char( "You choke and gag.\n\r", ch );
+ mxp_to_char( "You choke and gag.\n\r", ch, MXP_ALL );
af.type = gsn_poison;
af.duration = 2 * obj->value[0];
@@ -901,7 +901,7 @@
{
sprintf( buf, "You must be level %d to use this object.\n\r",
obj->level );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
act( "$n tries to use $p, but is too inexperienced.",
ch, obj, NULL, TO_ROOM );
return;
@@ -942,7 +942,7 @@
}
bug( "Wear_obj: no free finger.", 0 );
- send_to_char( "You already wear two rings.\n\r", ch );
+ mxp_to_char( "You already wear two rings.\n\r", ch, MXP_ALL );
return;
}
@@ -971,7 +971,7 @@
}
bug( "Wear_obj: no free neck.", 0 );
- send_to_char( "You already wear two neck items.\n\r", ch );
+ mxp_to_char( "You already wear two neck items.\n\r", ch, MXP_ALL );
return;
}
@@ -1084,7 +1084,7 @@
}
bug( "Wear_obj: no free wrist.", 0 );
- send_to_char( "You already wear two wrist items.\n\r", ch );
+ mxp_to_char( "You already wear two wrist items.\n\r", ch, MXP_ALL );
return;
}
@@ -1105,7 +1105,7 @@
if ( get_obj_weight( obj ) > str_app[get_curr_str(ch)].wield )
{
- send_to_char( "It is too heavy for you to wield.\n\r", ch );
+ mxp_to_char( "It is too heavy for you to wield.\n\r", ch, MXP_ALL );
return;
}
@@ -1126,7 +1126,7 @@
}
if ( fReplace )
- send_to_char( "You can't wear, wield, or hold that.\n\r", ch );
+ mxp_to_char( "You can't wear, wield, or hold that.\n\r", ch, MXP_ALL );
return;
}
@@ -1142,7 +1142,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Wear, wield, or hold what?\n\r", ch );
+ mxp_to_char( "Wear, wield, or hold what?\n\r", ch, MXP_ALL );
return;
}
@@ -1162,7 +1162,7 @@
{
if ( ( obj = get_obj_carry( ch, arg ) ) == NULL )
{
- send_to_char( "You do not have that item.\n\r", ch );
+ mxp_to_char( "You do not have that item.\n\r", ch, MXP_ALL );
return;
}
@@ -1184,7 +1184,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Remove what?\n\r", ch );
+ mxp_to_char( "Remove what?\n\r", ch, MXP_ALL );
return;
}
@@ -1201,7 +1201,7 @@
if ( ( obj = get_obj_wear( ch, arg ) ) == NULL )
{
- send_to_char( "You do not have that item.\n\r", ch );
+ mxp_to_char( "You do not have that item.\n\r", ch, MXP_ALL );
return;
}
@@ -1223,15 +1223,15 @@
{
act( "$n offers $mself to God, who graciously declines.",
ch, NULL, NULL, TO_ROOM );
- send_to_char(
- "God appreciates your offer and may accept it later.", ch );
+ mxp_to_char(
+ "God appreciates your offer and may accept it later.", ch, MXP_ALL );
return;
}
obj = get_obj_list( ch, arg, ch->in_room->contents );
if ( obj == NULL )
{
- send_to_char( "You can't find it.\n\r", ch );
+ mxp_to_char( "You can't find it.\n\r", ch, MXP_ALL );
return;
}
@@ -1241,7 +1241,7 @@
return;
}
- send_to_char( "God gives you one gold coin for your sacrifice.\n\r", ch );
+ mxp_to_char( "God gives you one gold coin for your sacrifice.\n\r", ch, MXP_ALL );
ch->gold += 1;
act( "$n sacrifices $p to God.", ch, obj, NULL, TO_ROOM );
@@ -1260,19 +1260,19 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Quaff what?\n\r", ch );
+ mxp_to_char( "Quaff what?\n\r", ch, MXP_ALL );
return;
}
if ( ( obj = get_obj_carry( ch, arg ) ) == NULL )
{
- send_to_char( "You do not have that potion.\n\r", ch );
+ mxp_to_char( "You do not have that potion.\n\r", ch, MXP_ALL );
return;
}
if ( obj->item_type != ITEM_POTION )
{
- send_to_char( "You can quaff only potions.\n\r", ch );
+ mxp_to_char( "You can quaff only potions.\n\r", ch, MXP_ALL );
return;
}
@@ -1302,13 +1302,13 @@
if ( ( scroll = get_obj_carry( ch, arg1 ) ) == NULL )
{
- send_to_char( "You do not have that scroll.\n\r", ch );
+ mxp_to_char( "You do not have that scroll.\n\r", ch, MXP_ALL );
return;
}
if ( scroll->item_type != ITEM_SCROLL )
{
- send_to_char( "You can recite only scrolls.\n\r", ch );
+ mxp_to_char( "You can recite only scrolls.\n\r", ch, MXP_ALL );
return;
}
@@ -1322,7 +1322,7 @@
if ( ( victim = get_char_room ( ch, arg2 ) ) == NULL
&& ( obj = get_obj_here ( ch, arg2 ) ) == NULL )
{
- send_to_char( "You can't find it.\n\r", ch );
+ mxp_to_char( "You can't find it.\n\r", ch, MXP_ALL );
return;
}
}
@@ -1349,13 +1349,13 @@
if ( ( staff = get_eq_char( ch, WEAR_HOLD ) ) == NULL )
{
- send_to_char( "You hold nothing in your hand.\n\r", ch );
+ mxp_to_char( "You hold nothing in your hand.\n\r", ch, MXP_ALL );
return;
}
if ( staff->item_type != ITEM_STAFF )
{
- send_to_char( "You can brandish only with a staff.\n\r", ch );
+ mxp_to_char( "You can brandish only with a staff.\n\r", ch, MXP_ALL );
return;
}
@@ -1430,19 +1430,19 @@
one_argument( argument, arg );
if ( arg[0] == '\0' && ch->fighting == NULL )
{
- send_to_char( "Zap whom or what?\n\r", ch );
+ mxp_to_char( "Zap whom or what?\n\r", ch, MXP_ALL );
return;
}
if ( ( wand = get_eq_char( ch, WEAR_HOLD ) ) == NULL )
{
- send_to_char( "You hold nothing in your hand.\n\r", ch );
+ mxp_to_char( "You hold nothing in your hand.\n\r", ch, MXP_ALL );
return;
}
if ( wand->item_type != ITEM_WAND )
{
- send_to_char( "You can zap only with a wand.\n\r", ch );
+ mxp_to_char( "You can zap only with a wand.\n\r", ch, MXP_ALL );
return;
}
@@ -1455,7 +1455,7 @@
}
else
{
- send_to_char( "Zap whom or what?\n\r", ch );
+ mxp_to_char( "Zap whom or what?\n\r", ch, MXP_ALL );
return;
}
}
@@ -1464,7 +1464,7 @@
if ( ( victim = get_char_room ( ch, arg ) ) == NULL
&& ( obj = get_obj_here ( ch, arg ) ) == NULL )
{
- send_to_char( "You can't find it.\n\r", ch );
+ mxp_to_char( "You can't find it.\n\r", ch, MXP_ALL );
return;
}
}
@@ -1513,19 +1513,19 @@
if ( arg1[0] == '\0' || arg2[0] == '\0' )
{
- send_to_char( "Steal what from whom?\n\r", ch );
+ mxp_to_char( "Steal what from whom?\n\r", ch, MXP_ALL );
return;
}
if ( ( victim = get_char_room( ch, arg2 ) ) == NULL )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
if ( victim == ch )
{
- send_to_char( "That's pointless.\n\r", ch );
+ mxp_to_char( "That's pointless.\n\r", ch, MXP_ALL );
return;
}
@@ -1540,7 +1540,7 @@
/*
* Failure.
*/
- send_to_char( "Oops.\n\r", ch );
+ mxp_to_char( "Oops.\n\r", ch, MXP_ALL );
act( "$n tried to steal from you.\n\r", ch, NULL, victim, TO_VICT );
act( "$n tried to steal from $N.\n\r", ch, NULL, victim, TO_NOTVICT );
sprintf( buf, "%s is a bloody thief!", ch->name );
@@ -1557,7 +1557,7 @@
if ( !IS_SET(ch->act, PLR_THIEF) )
{
SET_BIT(ch->act, PLR_THIEF);
- send_to_char( "*** You are now a THIEF!! ***\n\r", ch );
+ mxp_to_char( "*** You are now a THIEF!! ***\n\r", ch, MXP_ALL );
save_char_obj( ch );
}
}
@@ -1575,20 +1575,20 @@
amount = victim->gold * number_range(1, 10) / 100;
if ( amount <= 0 )
{
- send_to_char( "You couldn't get any gold.\n\r", ch );
+ mxp_to_char( "You couldn't get any gold.\n\r", ch, MXP_ALL );
return;
}
ch->gold += amount;
victim->gold -= amount;
sprintf( buf, "Bingo! You got %d gold coins.\n\r", amount );
- send_to_char( buf, ch );
+ mxp_to_char( buf, ch, MXP_ALL );
return;
}
if ( ( obj = get_obj_carry( victim, arg1 ) ) == NULL )
{
- send_to_char( "You can't find it.\n\r", ch );
+ mxp_to_char( "You can't find it.\n\r", ch, MXP_ALL );
return;
}
@@ -1596,25 +1596,25 @@
|| IS_SET(obj->extra_flags, ITEM_INVENTORY)
|| obj->level > ch->level )
{
- send_to_char( "You can't pry it away.\n\r", ch );
+ mxp_to_char( "You can't pry it away.\n\r", ch, MXP_ALL );
return;
}
if ( ch->carry_number + get_obj_number( obj ) > can_carry_n( ch ) )
{
- send_to_char( "You have your hands full.\n\r", ch );
+ mxp_to_char( "You have your hands full.\n\r", ch, MXP_ALL );
return;
}
if ( ch->carry_weight + get_obj_weight( obj ) > can_carry_w( ch ) )
{
- send_to_char( "You can't carry that much weight.\n\r", ch );
+ mxp_to_char( "You can't carry that much weight.\n\r", ch, MXP_ALL );
return;
}
obj_from_char( obj );
obj_to_char( obj, ch );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
return;
}
@@ -1638,7 +1638,7 @@
if ( pShop == NULL )
{
- send_to_char( "You can't do that here.\n\r", ch );
+ mxp_to_char( "You can't do that here.\n\r", ch, MXP_ALL );
return NULL;
}
@@ -1740,7 +1740,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Buy what?\n\r", ch );
+ mxp_to_char( "Buy what?\n\r", ch, MXP_ALL );
return;
}
@@ -1758,7 +1758,7 @@
if ( pRoomIndexNext == NULL )
{
bug( "Do_buy: bad pet shop at vnum %d.", ch->in_room->vnum );
- send_to_char( "Sorry, you can't buy that here.\n\r", ch );
+ mxp_to_char( "Sorry, you can't buy that here.\n\r", ch, MXP_ALL );
return;
}
@@ -1769,25 +1769,25 @@
if ( pet == NULL || !IS_SET(pet->act, ACT_PET) )
{
- send_to_char( "Sorry, you can't buy that here.\n\r", ch );
+ mxp_to_char( "Sorry, you can't buy that here.\n\r", ch, MXP_ALL );
return;
}
if ( IS_SET(ch->act, PLR_BOUGHT_PET) )
{
- send_to_char( "You already bought one pet this level.\n\r", ch );
+ mxp_to_char( "You already bought one pet this level.\n\r", ch, MXP_ALL );
return;
}
if ( ch->gold < 10 * pet->level * pet->level )
{
- send_to_char( "You can't afford it.\n\r", ch );
+ mxp_to_char( "You can't afford it.\n\r", ch, MXP_ALL );
return;
}
if ( ch->level < pet->level )
{
- send_to_char( "You're not ready for this pet.\n\r", ch );
+ mxp_to_char( "You're not ready for this pet.\n\r", ch, MXP_ALL );
return;
}
@@ -1812,7 +1812,7 @@
char_to_room( pet, ch->in_room );
add_follower( pet, ch );
- send_to_char( "Enjoy your pet.\n\r", ch );
+ mxp_to_char( "Enjoy your pet.\n\r", ch, MXP_ALL );
act( "$n bought $N as a pet.", ch, NULL, pet, TO_ROOM );
return;
}
@@ -1854,13 +1854,13 @@
if ( ch->carry_number + get_obj_number( obj ) > can_carry_n( ch ) )
{
- send_to_char( "You can't carry that many items.\n\r", ch );
+ mxp_to_char( "You can't carry that many items.\n\r", ch, MXP_ALL );
return;
}
if ( ch->carry_weight + get_obj_weight( obj ) > can_carry_w( ch ) )
{
- send_to_char( "You can't carry that much weight.\n\r", ch );
+ mxp_to_char( "You can't carry that much weight.\n\r", ch, MXP_ALL );
return;
}
@@ -1898,7 +1898,7 @@
if ( pRoomIndexNext == NULL )
{
bug( "Do_list: bad pet shop at vnum %d.", ch->in_room->vnum );
- send_to_char( "You can't do that here.\n\r", ch );
+ mxp_to_char( "You can't do that here.\n\r", ch, MXP_ALL );
return;
}
@@ -1920,9 +1920,9 @@
}
}
if ( !found )
- send_to_char( "Sorry, we're out of pets right now.\n\r", ch );
+ mxp_to_char( "Sorry, we're out of pets right now.\n\r", ch, MXP_ALL );
- send_to_char( buf1, ch );
+ mxp_to_char( buf1, ch, MXP_ALL );
return;
}
else
@@ -1961,13 +1961,13 @@
if ( !found )
{
if ( arg[0] == '\0' )
- send_to_char( "You can't buy anything here.\n\r", ch );
+ mxp_to_char( "You can't buy anything here.\n\r", ch, MXP_ALL );
else
- send_to_char( "You can't buy that here.\n\r", ch );
+ mxp_to_char( "You can't buy that here.\n\r", ch, MXP_ALL );
return;
}
- send_to_char( buf1, ch );
+ mxp_to_char( buf1, ch, MXP_ALL );
return;
}
}
@@ -1986,7 +1986,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Sell what?\n\r", ch );
+ mxp_to_char( "Sell what?\n\r", ch, MXP_ALL );
return;
}
@@ -2003,7 +2003,7 @@
if ( !can_drop_obj( ch, obj ) )
{
- send_to_char( "You can't let go of it.\n\r", ch );
+ mxp_to_char( "You can't let go of it.\n\r", ch, MXP_ALL );
return;
}
@@ -2049,7 +2049,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Value what?\n\r", ch );
+ mxp_to_char( "Value what?\n\r", ch, MXP_ALL );
return;
}
@@ -2066,7 +2066,7 @@
if ( !can_drop_obj( ch, obj ) )
{
- send_to_char( "You can't let go of it.\n\r", ch );
+ mxp_to_char( "You can't let go of it.\n\r", ch, MXP_ALL );
return;
}
diff -u srcorig/act_wiz.c src/act_wiz.c
--- srcorig/act_wiz.c 2004-12-01 08:18:50.000000000 -0600
+++ src/act_wiz.c 2004-12-06 07:30:01.000000000 -0600
@@ -50,7 +50,7 @@
if ( col % 6 != 0 )
strcat( buf1, "\n\r" );
- send_to_char( buf1, ch );
+ mxp_to_char( buf1, ch, MXP_ALL );
return;
}
@@ -63,7 +63,7 @@
smash_tilde( argument );
free_string( ch->pcdata->bamfin );
ch->pcdata->bamfin = str_dup( argument );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
}
return;
}
@@ -77,7 +77,7 @@
smash_tilde( argument );
free_string( ch->pcdata->bamfout );
ch->pcdata->bamfout = str_dup( argument );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
}
return;
}
@@ -92,31 +92,31 @@
one_argument( argument, arg );
if ( arg[0] == '\0' )
{
- send_to_char( "Deny whom?\n\r", ch );
+ mxp_to_char( "Deny whom?\n\r", ch, MXP_ALL );
return;
}
if ( ( victim = get_char_world( ch, arg ) ) == NULL )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
if ( IS_NPC(victim) )
{
- send_to_char( "Not on NPC's.\n\r", ch );
+ mxp_to_char( "Not on NPC's.\n\r", ch, MXP_ALL );
return;
}
if ( get_trust( victim ) >= get_trust( ch ) )
{
- send_to_char( "You failed.\n\r", ch );
+ mxp_to_char( "You failed.\n\r", ch, MXP_ALL );
return;
}
SET_BIT(victim->act, PLR_DENY);
- send_to_char( "You are denied access!\n\r", victim );
- send_to_char( "OK.\n\r", ch );
+ mxp_to_char( "You are denied access!\n\r", victim, MXP_ALL );
+ mxp_to_char( "OK.\n\r", ch, MXP_ALL );
do_quit( victim, "" );
return;
@@ -133,13 +133,13 @@
one_argument( argument, arg );
if ( arg[0] == '\0' )
{
- send_to_char( "Disconnect whom?\n\r", ch );
+ mxp_to_char( "Disconnect whom?\n\r", ch, MXP_ALL );
return;
}
if ( ( victim = get_char_world( ch, arg ) ) == NULL )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
@@ -154,13 +154,13 @@
if ( d == victim->desc )
{
close_socket( d );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
return;
}
}
bug( "Do_disconnect: desc not found.", 0 );
- send_to_char( "Descriptor not found!\n\r", ch );
+ mxp_to_char( "Descriptor not found!\n\r", ch, MXP_ALL );
return;
}
@@ -177,19 +177,19 @@
if ( arg1[0] == '\0' || arg2[0] == '\0' )
{
- send_to_char( "Syntax: pardon <character> <killer|thief>.\n\r", ch );
+ mxp_to_char( "Syntax: pardon <character> <killer|thief>.\n\r", ch, MXP_ALL );
return;
}
if ( ( victim = get_char_world( ch, arg1 ) ) == NULL )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
if ( IS_NPC(victim) )
{
- send_to_char( "Not on NPC's.\n\r", ch );
+ mxp_to_char( "Not on NPC's.\n\r", ch, MXP_ALL );
return;
}
@@ -198,8 +198,8 @@
if ( IS_SET(victim->act, PLR_KILLER) )
{
REMOVE_BIT( victim->act, PLR_KILLER );
- send_to_char( "Killer flag removed.\n\r", ch );
- send_to_char( "You are no longer a KILLER.\n\r", victim );
+ mxp_to_char( "Killer flag removed.\n\r", ch, MXP_ALL );
+ mxp_to_char( "You are no longer a KILLER.\n\r", victim, MXP_ALL );
}
return;
}
@@ -209,13 +209,13 @@
if ( IS_SET(victim->act, PLR_THIEF) )
{
REMOVE_BIT( victim->act, PLR_THIEF );
- send_to_char( "Thief flag removed.\n\r", ch );
- send_to_char( "You are no longer a THIEF.\n\r", victim );
+ mxp_to_char( "Thief flag removed.\n\r", ch, MXP_ALL );
+ mxp_to_char( "You are no longer a THIEF.\n\r", victim, MXP_ALL );
}
return;
}
- send_to_char( "Syntax: pardon <character> <killer|thief>.\n\r", ch );
+ mxp_to_char( "Syntax: pardon <character> <killer|thief>.\n\r", ch, MXP_ALL );
return;
}
@@ -227,7 +227,7 @@
if ( argument[0] == '\0' )
{
- send_to_char( "Echo what?\n\r", ch );
+ mxp_to_char( "Echo what?\n\r", ch, MXP_ALL );
return;
}
@@ -235,8 +235,8 @@
{
if ( d->connected == CON_PLAYING )
{
- send_to_char( argument, d->character );
- send_to_char( "\n\r", d->character );
+ mxp_to_char( argument, d->character, MXP_ALL );
+ mxp_to_char( "\n\r", d->character, MXP_ALL );
}
}
@@ -251,7 +251,7 @@
if ( argument[0] == '\0' )
{
- send_to_char( "Recho what?\n\r", ch );
+ mxp_to_char( "Recho what?\n\r", ch, MXP_ALL );
return;
}
@@ -260,8 +260,8 @@
if ( d->connected == CON_PLAYING
&& d->character->in_room == ch->in_room )
{
- send_to_char( argument, d->character );
- send_to_char( "\n\r", d->character );
+ mxp_to_char( argument, d->character, MXP_ALL );
+ mxp_to_char( "\n\r", d->character, MXP_ALL );
}
}
@@ -302,7 +302,7 @@
if ( arg1[0] == '\0' )
{
- send_to_char( "Transfer whom (and where)?\n\r", ch );
+ mxp_to_char( "Transfer whom (and where)?\n\r", ch, MXP_ALL );
return;
}
@@ -334,26 +334,26 @@
{
if ( ( location = find_location( ch, arg2 ) ) == NULL )
{
- send_to_char( "No such location.\n\r", ch );
+ mxp_to_char( "No such location.\n\r", ch, MXP_ALL );
return;
}
if ( room_is_private( location ) )
{
- send_to_char( "That room is private right now.\n\r", ch );
+ mxp_to_char( "That room is private right now.\n\r", ch, MXP_ALL );
return;
}
}
if ( ( victim = get_char_world( ch, arg1 ) ) == NULL )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
if ( victim->in_room == NULL )
{
- send_to_char( "They are in limbo.\n\r", ch );
+ mxp_to_char( "They are in limbo.\n\r", ch, MXP_ALL );
return;
}
@@ -366,7 +366,7 @@
if ( ch != victim )
act( "$n has transferred you.", ch, NULL, victim, TO_VICT );
do_look( victim, "auto" );
- send_to_char( "Ok.\n\r", ch );
+ mxp_to_char( "Ok.\n\r", ch, MXP_ALL );
}
@@ -382,19 +382,19 @@
if ( arg[0] == '\0' || argument[0] == '\0' )
{
- send_to_char( "At where what?\n\r", ch );
+ mxp_to_char( "At where what?\n\r", ch, MXP_ALL );
return;
}
if ( ( location = find_location( ch, arg ) ) == NULL )
{
- send_to_char( "No such location.\n\r", ch );
+ mxp_to_char( "No such location.\n\r", ch, MXP_ALL );
return;
}
if ( room_is_private( location ) )
{
- send_to_char( "That room is private right now.\n\r", ch );
+ mxp_to_char( "That room is private right now.\n\r", ch, MXP_ALL );
return;
}
@@ -430,19 +430,19 @@
one_argument( argument, arg );
if ( arg[0] == '\0' )
{
- send_to_char( "Goto where?\n\r", ch );
+ mxp_to_char( "Goto where?\n\r", ch, MXP_ALL );
return;
}
if ( ( location = find_location( ch, arg ) ) == NULL )
{
- send_to_char( "No such location.\n\r", ch );
+ mxp_to_char( "No such location.\n\r", ch, MXP_ALL );
return;
}
if ( room_is_private( location ) )
{
- send_to_char( "That room is private right now.\n\r", ch );
+ mxp_to_char( "That room is private right now.\n\r", ch, MXP_ALL );
return;
}
@@ -485,13 +485,13 @@
location = ( arg[0] == '\0' ) ? ch->in_room : find_location( ch, arg );
if ( location == NULL )
{
- send_to_char( "No such location.\n\r", ch );
+ mxp_to_char( "No such location.\n\r", ch, MXP_ALL );
return;
}
if ( ch->in_room != location && room_is_private( location ) )
{
- send_to_char( "That room is private right now.\n\r", ch );
+ mxp_to_char( "That room is private right now.\n\r", ch, MXP_ALL );
return;
}
@@ -566,7 +566,7 @@
}
}
- send_to_char( buf1, ch );
+ mxp_to_char( buf1, ch, MXP_ALL );
return;
}
@@ -584,7 +584,7 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Ostat what?\n\r", ch );
+ mxp_to_char( "Ostat what?\n\r", ch, MXP_ALL );
return;
}
@@ -592,7 +592,7 @@
if ( ( obj = get_obj_world( ch, arg ) ) == NULL )
{
- send_to_char( "Nothing like that in hell, earth, or heaven.\n\r", ch );
+ mxp_to_char( "Nothing like that in hell, earth, or heaven.\n\r", ch, MXP_ALL );
return;
}
@@ -670,7 +670,7 @@
strcat( buf1, buf );
}
- send_to_char( buf1, ch );
+ mxp_to_char( buf1, ch, MXP_ALL );
return;
}
@@ -687,13 +687,13 @@
if ( arg[0] == '\0' )
{
- send_to_char( "Mstat whom?\n\r", ch );
+ mxp_to_char( "Mstat whom?\n\r", ch, MXP_ALL );
return;
}
if ( ( victim = get_char_world( ch, arg ) ) == NULL )
{
- send_to_char( "They aren't here.\n\r", ch );
+ mxp_to_char( "They aren't here.\n\r", ch, MXP_ALL );
return;
}
@@ -793,7 +793,7 @@
strcat( buf1, buf );
}
- send_to_char( buf1, ch );
+ mxp_to_char( buf1, ch, MXP_ALL );
return;
}
@@ -814,7 +814,7 @@
one_argument( argument, arg );
if ( arg[0] =Showing the first 100 KB of 190.9 KB. Download the archive for the full file.