> >i know this is a newbie question, but i have been trying to redo the >do_score & do_who for sometime. I have added races in. which thats what i >am trying to add to both of these commands or atleast the who command. > In do_score i have been trying to edit it so when you type score it looks > like this: > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >| HitPoints: Mana: Move: Age: | >| MaxHit: MaxMana: MaxMove: Race: | >| | >| PlayersName: Ac: XP: Gold: | >| Class: Level: XPtoLvl: | >| | >| STR: DEX: WIS: INT: CON: CHR: | >| | >| { Name mud HERE} | > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This is too lame...Look at the current do_score, and just add some spaces and shit in it...read a C book, specifically the printf function, sprintf being the same but using a buffer... I'll even step you through the first line... >| HitPoints: Mana: Move: Age: | sprintf( buf, "| HitPoints: %4d Mana: %4d Move: %4d Age: %4d |\r\n", GET_HIT( ch ), GET_MANA( ch ), GET_MOVE( ch ), GET_AGE( ch )); Look in utils.h for the defines... +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST