im trying to create a "deaths' command so that when u type it, it
displays a list of the last 30 pks showing who died and by whom which
is viewable by all players. in fight.c before die(victim) i
created the following code:
if (!IS_NPC(victim)){
GET_PK_CNT(ch) += 1;
DLIST(ch) += DLIST(ch) + "%s killed by %s/r/n",
GET_NAME(victim),GET_NAME(ch));
this line dosent compile but i was trying to make it add the next death to
itself. Also in the command in act.info i am not sure how
to make it display the list was thinking maype
sprintf(buf + strlen(buf), "%s\r\n", Dlist(ch));
and need help on how to set a buf to only 30 lines or so.
Thanks for any help
Brian Juba
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT