Score command.

From: Lew/Ryan Guthrie (guthrie@henge1.henge.com)
Date: 02/22/97


I have tried to change the score around so it shows stats, ac, weight and
some other stuff, well this is what it is showing:

Str: [25/100]  Int: [25]  Wis: [25]  Dex: [25]  Con: [25]  Cha: [25]
Hit points: 4306(4306)   Moves: 1938(1938)   Mana: 1862(1901)
Armor Class:100/10  Weight Carrying: 0
Coins: [ 519795 ], Bank: [ 0 ]
Lev: [34], XP: [7000000], Align: [-1000]
Status: Standing.
Affections:

And there some stuff not showing, this is the coding for it:
ACMD(do_score)
{
/*  struct time_info_data playing_time;*/  <----I am going to add this
stuff in later
/*  struct time_info_data real_time_passed(time_t t2, time_t t1);*/
  sprintf(buf, "                Score information for %s\r\n",
GET_NAME(ch));
  sprintf(buf, "Hit p.:[%d/%d]  Mana p.:[%d/%d]  Move p.:[%d/%d]\r\n",
          GET_HIT(ch), GET_MAX_HIT(ch), GET_MANA(ch),
          GET_MAX_MANA(ch), GET_MOVE(ch), GET_MAX_MOVE(ch));
  sprintf(buf, "%s\r\nLevel: %d   Race: %s    Class: %s     Sex: ", buf,
          GET_LEVEL(ch), RACE_ABBR(ch), CLASS_ABBR(ch));
  switch (GET_SEX(ch)) {
    case SEX_MALE: strcat(buf, "Male\r\n"); break;
    case SEX_FEMALE: strcat(buf, "Female\r\n"); break;
    default: strcat(buf, "Neutral\r\n"); break;
  }
  sprintf(buf, "Str: [%d/%d]  Int: [%d]  Wis: [%d]  "
          "Dex: [%d]  Con: [%d]  Cha: [%d]\r\n",
          GET_STR(ch), GET_ADD(ch), GET_INT(ch), GET_WIS(ch),
          GET_DEX(ch), GET_CON(ch), GET_CHA(ch));
  sprintf(buf, "%sHit points: %d(%d)   Moves: %d(%d)   Mana: %d(%d)\r\n", buf,
          GET_HIT(ch), GET_MAX_HIT(ch), GET_MOVE(ch),
          GET_MAX_MOVE(ch), GET_MANA(ch), GET_MAX_MANA(ch));
  sprintf(buf, "%sArmor Class:%d/10  Weight Carrying: %d\r\n", buf,
          GET_AC(ch), IS_CARRYING_W(ch));
  sprintf(buf, "%sCoins: [ %d ], Bank: [ %d ]\r\n", buf,
          GET_GOLD(ch), GET_BANK_GOLD(ch));
  sprintf(buf2, "Lev: [%2d], XP: [%7d], Align: [%4d]\r\n",
          GET_LEVEL(ch), GET_EXP(ch), GET_ALIGNMENT(ch));
  strcat(buf, buf2);
  sprintf(buf, "%sStatus: ", buf);
  switch (GET_POS(ch)) {
    case POS_DEAD: strcat(buf, "Dead.\r\n"); break;
    case POS_MORTALLYW: strcat(buf, "Mortally wounded.\r\n"); break;
    case POS_INCAP: strcat(buf, "Incapacitated.\r\n"); break;
    case POS_STUNNED: strcat(buf, "Stunned.\r\n"); break;
    case POS_SLEEPING: strcat(buf, "Sleeping.\r\n"); break;
    case POS_RESTING: strcat(buf, "Resting.\r\n"); break;
    case POS_SITTING: strcat(buf, "Sitting.\r\n"); break;
    case POS_FIGHTING: strcat(buf, "Fighting.\r\n"); break;
    case POS_STANDING: strcat(buf, "Standing.\r\n"); break;
    default: strcat(buf, "Floating.\r\n"); break;
  }
  sprintf(buf, "%sAffections: ", buf);
  if (IS_AFFECTED(ch, AFF_BLIND))
    strcat(buf, "Blindness   ");
  if (IS_AFFECTED(ch, AFF_INVISIBLE))
    strcat(buf, "Invisible   ");
  if (IS_AFFECTED(ch, AFF_DETECT_INVIS))
    strcat(buf, "Detect Invis   ");
  if (IS_AFFECTED(ch, AFF_SANCTUARY))
    strcat(buf, "Sanctuary   ");
  if (IS_AFFECTED(ch, AFF_POISON))
  if (affected_by_spell(ch, SPELL_ARMOR))
    strcat(buf, "Armor   ");
  if (IS_AFFECTED(ch, AFF_INFRAVISION))
    strcat(buf, "Infravision   ");
  strcat(buf, "\r\n");
  if (GET_COND(ch, DRUNK) > 10)
    strcat(buf, "You are intoxicated.\r\n");
  if (GET_COND(ch, FULL) == 0)
    strcat(buf, "You are hungry.\r\n");
  if (GET_COND(ch, THIRST) == 0)
    strcat(buf, "You are thirsty.\r\n");
  send_to_char(buf, ch);
}



			-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
			|          Ryan Guthrie	        |
			|       guthrie@henge.com       |
			-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
			

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
|    Or send 'info circle' to majordomo@cspo.queensu.ca     |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST