do_who problem

From: Phillip A. Ames (kirk47@JUNO.COM)
Date: 09/19/98


Alright all, I have a bit of a problem...  I put in the new do_who
function from George's site, and made a few changes to it, so it would
display clans + ships after the names.  Now, to the problem:  When you
type who, this displays:

32000H/32000H 32000M/32000M 32000V/32000V> who
[Engineer aboard the White Star]
 [Satai of Grey Council] [Entil'Za aboard the White Star] (cloaked)
 Listing of the Gods
 -=-=-=-=-=-=-=-=-=-=-
[     Q     ] Gowron the Implementor (AFK)

There is 1 visible immortal.

 Listing of the Mortals
 -=-=-=-=-=-=-=-=-=-=-=-
[ 1 Th Brg ] Grathol the Newbie [Engineer aboard the White Star]
[ 1 Mu Hum ] Julian the Newbie God [Satai of Grey Council] [Entil'Za
aboard the White Star] (cloaked)

There are 2 visible mortals.

Total visible players: 3.

Here's the code for the clan+ship names:
      // Add the clan title to the title between [].
        if
((clan_num=find_clan_by_id(GET_CLAN(tch)))>=0&&clan_num<num_of_clans) {
        if(GET_CLAN_RANK(tch)>0)
          sprintf(buf, "%s [%s of %s]",
                  buf,
        clan[clan_num].rank_name[GET_CLAN_RANK(tch) -1],
                clan[clan_num].name);
        else
          sprintf(buf, "%s [Applying to %s]", buf, clan[clan_num].name);
       }
      // Add the ship name to the title between [].

        if
((ship_num=find_ship_by_id(GET_SHIP(tch)))>=0&&ship_num<num_of_ships) {
        if(GET_SHIP_RANK(tch)>0)
          sprintf(buf, "%s [%s aboard the %s]",
                  buf,
        ship[ship_num].rank_name[GET_SHIP_RANK(tch) -1],
                ship[ship_num].name);
        else
          sprintf(buf, "%s [Applying to %s]", buf, ship[ship_num].name);
       }

... and below all that is the 'if flagged this, then display this'
stuff...  Anyone run into a problem like this before?  Thanks,

-Phillip

Phillip Ames    | Satisfaction is not guaranteed.
kirk47@juno.com | -Ferengi Rule of Acquisition #19
ICQ: 8778335    | AOL IM: Grathol
http://members.xoom.com/Gowron/index.html(Unfinished)


_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]


     +------------------------------------------------------------+
     | 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/15/00 PST