if( xIS_SET( ch->act, PLR_WIZINVIS ) )
{
xREMOVE_BIT( ch->act, PLR_WIZINVIS );
act( AT_IMMORT, "$n slowly fades into existence.", ch, NULL, NULL, TO_ROOM );
send_to_char( "You slowly fade back into existence.\r\n", ch );
}
else
{
act( AT_IMMORT, "$n slowly fades into thin air.", ch, NULL, NULL, TO_ROOM );
send_to_char( "You slowly vanish into thin air.\r\n", ch );
xSET_BIT( ch->act, PLR_WIZINVIS );
}
should be:
if ( IS_NPC(ch) )
return;
if( xIS_SET( ch->act, PLR_WIZINVIS ) )
{
xREMOVE_BIT( ch->act, PLR_WIZINVIS );
act( AT_IMMORT, "$n slowly fades into existence.", ch, NULL, NULL, TO_ROOM );
send_to_char( "You slowly fade back into existence.\r\n", ch );
}
else
{
act( AT_IMMORT, "$n slowly fades into thin air.", ch, NULL, NULL, TO_ROOM );
send_to_char( "You slowly vanish into thin air.\r\n", ch );
xSET_BIT( ch->act, PLR_WIZINVIS );
}