Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ do_who()

do_who()

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Typhon   USA  (112 posts)  Bio
Date Fri 18 Oct 2002 10:29 PM (UTC)
Message
ok :p do_who() is annoying the crap out of me... is there a way to just make it so the the pc's online are just in the order in which they logged in and not split up into imms/deadly/etc. i know who is a rather lengthy function but i just dont seem to see where in the fucntion it starts arranging them by the imms/deadly/etc. stuff.. if i can just get rid of all that crap where it trys to arrange the characters by that.. im sure it would speed up the who function a bit.
Top

Posted by AkiraMuyo   (41 posts)  Bio
Date Reply #1 on Sat 19 Oct 2002 12:28 AM (UTC)
Message
There sure is. You can even specify it to not show races and the such. Anyway, go into act_info.c and search for do who. Scroll down and look for the following then comment it out like I did.

/*
if ( first_deadly )
{
if ( !ch )
fprintf( whoout, "\n\r-------------------------------[ DEADLY CHARACTERS ]-------------------------\n\r\n\r" );
else
send_to_pager( "\n\r-------------------------------[ DEADLY CHARACTERS ]--------------------------\n\r\n\r", ch );
}

for ( cur_who = first_deadly; cur_who; cur_who = next_who )
{
if ( !ch )
fprintf( whoout, cur_who->text );
else
send_to_pager( cur_who->text, ch );
next_who = cur_who->next;
DISPOSE( cur_who->text );
DISPOSE( cur_who );
}

if (first_grouped)
{
/* if ( !ch )
fprintf( whoout, "\n\r-----------------------------[ GROUPED CHARACTERS ]---------------------------\n\r\n\r" );
else
send_to_pager( "\n\r-----------------------------[ GROUPED CHARACTERS ]---------------------------\n\r\n\r", ch );
}
for ( cur_who = first_grouped; cur_who; cur_who = next_who )
{
/* if ( !ch )
fprintf( whoout, cur_who->text );
else
send_to_pager( cur_who->text, ch );
next_who = cur_who->next;
DISPOSE( cur_who->text );
DISPOSE( cur_who );
}

if (first_groupwho)
{
if ( !ch )
fprintf( whoout, "\n\r-------------------------------[ WANTING GROUP ]------------------------------\n\r\n\r" );
else
send_to_pager( "\n\r-------------------------------[ WANTING GROUP ]------------------------------\n\r\n\r", ch );
}
for ( cur_who = first_groupwho; cur_who; cur_who = next_who )
{
if ( !ch )
fprintf( whoout, cur_who->text );
else
send_to_pager( cur_who->text, ch );
next_who = cur_who->next;
DISPOSE( cur_who->text );
DISPOSE( cur_who );
}

if ( first_imm )
{
if ( !ch )
fprintf( whoout, "\n\r-----------------------------------[ Akira is frustrated.. ]-----------------------------\n\r\n\r" );
else
send_to_pager( "\n\r-----------------------------------[ Akira is frustrated.. ]------------------------------\n\r\n\r", ch );
}
*/

If this doesn't help let me know and I'll explain it differently.

Sincerely,
Akira
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,536 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.