Re: How can I add the following to plist snippet

From: Kras Kresh (kras_kresh@hotmail.com)
Date: 04/12/02


>From: Ken Kreb <rocker@SIRENTEL.NET>
>Subject: [CIRCLE] How can I add the following to plist snippet
>Date: Thu, 11 Apr 2002 21:00:07 -0400
>
>Here is the current code:
>
>ACMD(do_plist)
>{
>   int i, count = 0;
>   *buf = 0;
>
>   for (i = 0; i <= top_of_p_table; i++) {
>     sprintf(buf, "%s  %-20.20s", buf, (player_table + i)->name);
>     count++;
>     if (count == 3) {
>       count = 0;
>       strcat(buf, "\r\n");
>     }
>   }
>   page_string(ch->desc, buf, 1);
>}
>
>How can I add the player level and days idel to this.

Maybe you should look at the do_stat function.
player_table[] isn't going to work for this since it doesn't store levels
and time.
You'll have to load_char() for each player in the loop you have above.
Then you can figure out the rest.

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT