/* All defaults are set to Alsherok default scheme, if you don't
like it, change it around to suite your own needs - Samson */
const short default_set[MAX_COLORS] =
{
AT_BLACK, AT_BLOOD, AT_DGREEN, AT_ORANGE, /* 3 */
AT_DBLUE, AT_PURPLE, AT_CYAN, AT_GREY, /* 7 */
AT_DGREY, AT_RED, AT_GREEN, AT_YELLOW, /* 11 */
AT_BLUE, AT_PINK, AT_LBLUE, AT_WHITE, /* 15 */
AT_BLACK_BLINK, AT_BLOOD_BLINK, AT_DGREEN_BLINK, AT_ORANGE_BLINK, /* 19 */
AT_DBLUE_BLINK, AT_PURPLE_BLINK, AT_CYAN_BLINK, AT_GREY_BLINK, /* 23 */
AT_DGREY_BLINK, AT_RED_BLINK, AT_GREEN_BLINK, AT_YELLOW_BLINK, /* 27 */
AT_BLUE_BLINK, AT_PINK_BLINK, AT_LBLUE_BLINK, AT_WHITE_BLINK, /* 31 */
AT_GREY, AT_GREY, AT_BLUE, /* 34 */
AT_GREEN, AT_LBLUE, AT_WHITE, AT_GREY, /* 38 */
AT_GREY, AT_YELLOW, AT_GREY, AT_GREY, /* 42 */
AT_GREY, AT_BLUE, AT_GREY, AT_GREY, /* 46 */
AT_DGREEN, AT_CYAN, AT_GREY, AT_GREY, /* 50 */
AT_BLUE, AT_GREY, AT_GREY, AT_GREY, /* 54 */
AT_RED, AT_GREY, AT_BLUE, AT_PINK, /* 58 */
AT_GREY, AT_GREY, AT_YELLOW, AT_GREY, /* 62 */
AT_GREY, AT_ORANGE, AT_BLUE, AT_RED, /* 66 */
AT_GREY, AT_GREY, AT_GREEN, AT_DGREEN, /* 70 */
AT_DGREEN, AT_ORANGE, AT_GREY, AT_RED, /* 74 */
AT_GREY, AT_DGREEN, AT_RED, AT_BLUE, /* 78 */
AT_RED, AT_CYAN, AT_YELLOW, AT_PINK, /* 82 */
AT_DGREEN, AT_PINK, AT_WHITE, AT_BLUE, /* 86 */
AT_BLUE, AT_BLUE, AT_GREEN, AT_GREY, /* 90 */
AT_GREEN, AT_GREEN, AT_YELLOW, AT_DGREY, /* 94 */
AT_GREEN, AT_PINK, AT_DGREEN, AT_CYAN, /* 98 */
AT_RED, AT_WHITE, AT_BLUE, AT_DGREEN, /* 102 */
AT_CYAN, AT_BLOOD, AT_RED, AT_DGREEN, /* 106 */
AT_GREEN, AT_GREY, AT_GREEN, AT_WHITE /* 110 */
};
-=[ AFKMud ]=-
——————————–=[ Players ]=———————————
Warrior [—–] Bob the Novice
Mage [—–] Dole the Lesser Apprentice
[2 Players] [Homepage: No page set] [2 Max since reboot]
[3 logins since last reboot on Wed Dec 3, 2008 11:12:28 AM EST]
/* Derived directly from the i3who code, which is a hybrid mix of Smaug, RM, and Dale who. */
int afk_who( char_data * ch, char *argument )
{
list<descriptor_data*>::iterator ds;
vector<char_data*> players;
vector<char_data*> immortals;
vector<char_data*>::iterator iplr;
char s1[16], s2[16], s3[16], s4[16], s5[16], s6[16], s7[16];
int pcount = 0;
if( !ch )
{
bug( "%s: Called with no *ch!", __FUNCTION__ );
return 0;
}
snprintf( s1, 16, "%s", ch->color_str( AT_WHO ) );
snprintf( s2, 16, "%s", ch->color_str( AT_WHO2 ) );
snprintf( s3, 16, "%s", ch->color_str( AT_WHO3 ) );
snprintf( s4, 16, "%s", ch->color_str( AT_WHO4 ) );
snprintf( s5, 16, "%s", ch->color_str( AT_WHO5 ) );
snprintf( s6, 16, "%s", ch->color_str( AT_WHO6 ) );
snprintf( s7, 16, "%s", ch->color_str( AT_WHO7 ) );
players.clear();
immortals.clear();
// Construct the two vectors.
for( ds = dlist.begin(); ds != dlist.end(); ++ds )
{
descriptor_data *d = (*ds);
char_data *person = d->original ? d->original : d->character;
if( person && d->connected >= CON_PLAYING )
{
if( !ch->can_see( person, true ) || is_ignoring( person, ch ) )
continue;
if( person->level >= LEVEL_IMMORTAL )
immortals.push_back( person );
else
players.push_back( person );
}
}
// Display any players who were visible to the person calling the command.
if( !players.empty() )
{
pcount += players.size();
ch->pagerf( "\r\n%s——————————–=[ %sPlayers %s]=———————————
\r\n\r\n",
s7, s6, s7 );
for( iplr = players.begin(); iplr != players.end(); ++iplr )
{
char_data *player = *iplr;
ch->pager( output_person( ch, player ) );
}
}
// Display any immortals who were visible to the person calling the command.
if( !immortals.empty() )
{
pcount += immortals.size();
ch->pagerf( "\r\n%s——————————-=[ %sImmortals %s]=——————————–
\r\n\r\n",
s1, s6, s1 );
for( iplr = immortals.begin(); iplr != immortals.end(); ++iplr )
{
char_data *player = *iplr;
ch->pager( output_person( ch, player ) );
}
}
return pcount;
}
CMDF( do_who )
{
char buf[MSL], buf2[MSL], outbuf[MSL];
char s1[16], s2[16], s3[16];
int amount = 0, xx = 0, pcount = 0;
snprintf( s1, 16, "%s", ch->color_str( AT_WHO ) );
snprintf( s2, 16, "%s", ch->color_str( AT_WHO6 ) );
snprintf( s3, 16, "%s", ch->color_str( AT_WHO2 ) );
outbuf[0] = '\0';
snprintf( buf, MSL, "%s-=[ %s%s %s]=-", s1, s2, sysdata->mud_name, s1 );
snprintf( buf2, MSL, "&R-=[ &W%s &R]=-", sysdata->mud_name );
amount = 78 - color_strlen( buf2 ); /* Determine amount to put in front of line */
if( amount < 1 )
amount = 1;
amount = amount / 2;
for( xx = 0; xx < amount; ++xx )
mudstrlcat( outbuf, " ", MSL );
mudstrlcat( outbuf, buf, MSL );
ch->pagerf( "%s\r\n", outbuf );
pcount = afk_who( ch, argument );
ch->pagerf( "\r\n%s[%s%d Player%s%s] ", s3, s2, pcount, pcount == 1 ? "" : "s", s3 );
if( ch->MXP_ON( ) )
{
ch->
pagerf( "%s[%sHomepage: " MXP_TAG_SECURE "<a href='%s' hint='%s Homepage'>%s</a>" MXP_TAG_LOCKED
"%s] [%s%3d Max Since Reboot%s]\r\n", s3, s2, sysdata->http, sysdata->mud_name, sysdata->h
ttp, s3, s2,
sysdata->maxplayers, s3 );
}
else
{
ch->pagerf( "%s[%sHomepage: %s%s] [%s%d Max since reboot%s]\r\n",
s3, s2, sysdata->http, s3, s2, sysdata->maxplayers, s3 );
}
ch->pagerf( "%s[%s%d login%s since last reboot on %s%s]\r\n", s3, s2,
num_logins, num_logins == 1 ? "" : "s", str_boot_time, s3 );
}
snprintf( s1, 16, "%s", ch->color_str( AT_WHO ) );
snprintf( s2, 16, "%s", ch->color_str( AT_WHO2 ) );
snprintf( s3, 16, "%s", ch->color_str( AT_WHO3 ) );
snprintf( s4, 16, "%s", ch->color_str( AT_WHO4 ) );
snprintf( s5, 16, "%s", ch->color_str( AT_WHO5 ) );
snprintf( s6, 16, "%s", ch->color_str( AT_WHO6 ) );
snprintf( s7, 16, "%s", ch->color_str( AT_WHO7 ) );
cd ../system/
ls
After that look through the output and see if reserved.lst is there. If not, well, we'll see what happens. :P