This file is the act.informative.c file but I have added some
stuff to the do_score take a look at it :)
Thanx,
Demond
*** act.informative.old Thu Jan 30 19:00:03 1997
--- act.informative.c Thu Jan 30 18:58:35 1997
***************
*** 653,762 ****
struct time_info_data playing_time;
struct time_info_data real_time_passed(time_t t2, time_t t1);
! sprintf(buf, "You are %d years old.", GET_AGE(ch));
!
! if ((age(ch).month == 0) && (age(ch).day == 0))
! strcat(buf, " It's your birthday today.\r\n");
! else
! strcat(buf, "\r\n");
!
! sprintf(buf,
! "%sYou have %d(%d) hit, %d(%d) mana and %d(%d) movement points.\r\n",
! buf, GET_HIT(ch), GET_MAX_HIT(ch), GET_MANA(ch), GET_MAX_MANA(ch),
! GET_MOVE(ch), GET_MAX_MOVE(ch));
!
! sprintf(buf, "%sYour armor class is %d/10, and your alignment is %d.\r\n",
! buf, GET_AC(ch), GET_ALIGNMENT(ch));
!
! sprintf(buf, "%sYou have scored %d exp, and have %d gold coins.\r\n",
! buf, GET_EXP(ch), GET_GOLD(ch));
!
! if (!IS_NPC(ch)) {
! if (GET_LEVEL(ch) < LVL_IMMORT)
! sprintf(buf, "%sYou need %d exp to reach your next level.\r\n", buf,
! (titles[(int) GET_CLASS(ch)][GET_LEVEL(ch) + 1].exp) - GET_EXP(ch));
!
! playing_time = real_time_passed((time(0) - ch->player.time.logon) +
! ch->player.time.played, 0);
! sprintf(buf, "%sYou have been playing for %d days and %d hours.\r\n",
! buf, playing_time.day, playing_time.hours);
!
! sprintf(buf, "%sThis ranks you as %s %s (level %d).\r\n", buf,
! GET_NAME(ch), GET_TITLE(ch), GET_LEVEL(ch));
}
!
switch (GET_POS(ch)) {
! case POS_DEAD:
! strcat(buf, "You are DEAD!\r\n");
! break;
! case POS_MORTALLYW:
! strcat(buf, "You are mortally wounded! You should seek help!\r\n");
! break;
! case POS_INCAP:
! strcat(buf, "You are incapacitated, slowly fading away...\r\n");
! break;
! case POS_STUNNED:
! strcat(buf, "You are stunned! You can't move!\r\n");
! break;
! case POS_SLEEPING:
! strcat(buf, "You are sleeping.\r\n");
! break;
! case POS_RESTING:
! strcat(buf, "You are resting.\r\n");
! break;
! case POS_SITTING:
! strcat(buf, "You are sitting.\r\n");
! break;
! case POS_FIGHTING:
! if (FIGHTING(ch))
! sprintf(buf, "%sYou are fighting %s.\r\n", buf, PERS(FIGHTING(ch), ch));
! else
! strcat(buf, "You are fighting thin air.\r\n");
! break;
! case POS_STANDING:
! strcat(buf, "You are standing.\r\n");
! break;
! default:
! strcat(buf, "You are floating.\r\n");
! break;
}
!
! 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");
!
if (IS_AFFECTED(ch, AFF_BLIND))
! strcat(buf, "You have been blinded!\r\n");
!
if (IS_AFFECTED(ch, AFF_INVISIBLE))
! strcat(buf, "You are invisible.\r\n");
!
if (IS_AFFECTED(ch, AFF_DETECT_INVIS))
! strcat(buf, "You are sensitive to the presence of invisible things.\r\n");
!
if (IS_AFFECTED(ch, AFF_SANCTUARY))
! strcat(buf, "You are protected by Sanctuary.\r\n");
!
if (IS_AFFECTED(ch, AFF_POISON))
! strcat(buf, "You are poisoned!\r\n");
!
! if (IS_AFFECTED(ch, AFF_CHARM))
! strcat(buf, "You have been charmed!\r\n");
!
if (affected_by_spell(ch, SPELL_ARMOR))
! strcat(buf, "You feel protected.\r\n");
!
! if (IS_AFFECTED(ch, AFF_INFRAVISION))
! strcat(buf, "Your eyes are glowing red.\r\n");
!
! if (PRF_FLAGGED(ch, PRF_SUMMONABLE))
! strcat(buf, "You are summonable by other players.\r\n");
!
send_to_char(buf, ch);
}
--- 634,702 ----
struct time_info_data playing_time;
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, "%s\r\nLevel: %d Class: %s Sex: ", buf,
! GET_LEVEL(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, "%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, "%sStr: %d Dex: %d Con: %d Wis: %d Int: %d\r\n", buf,
! GET_STR(ch), GET_DEX(ch), GET_CON(ch), GET_WIS(ch),
! GET_INT(ch));
! sprintf(buf, "%sArmor Class: %d \r\n", buf, GET_AC(ch));
! sprintf(buf, "%sAlignment: %d \r\n", buf, GET_ALIGNMENT(ch));
! sprintf(buf, "%sCoins carried: %d gold\r\n", buf, GET_GOLD(ch));
! sprintf(buf, "%sCoins in bank: %d gold\r\n", buf, GET_BANK_GOLD(ch));
! playing_time = real_time_passed((time(0) - ch->player.time.logon) +
! ch->player.time.played, 0);
! sprintf(buf, "%sPlaying time: %d days / %d hours.\r\n", buf, playing_time.day,
! playing_time.hours);
! 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, "%sEnchantments:\r\n", buf);
if (IS_AFFECTED(ch, AFF_BLIND))
! strcat(buf, "Blindness\r\n");
if (IS_AFFECTED(ch, AFF_INVISIBLE))
! strcat(buf, "Invisible\r\n");
if (IS_AFFECTED(ch, AFF_DETECT_INVIS))
! strcat(buf, "Detect Invis\r\n");
if (IS_AFFECTED(ch, AFF_SANCTUARY))
! strcat(buf, "Sanctuary\r\n");
if (IS_AFFECTED(ch, AFF_POISON))
! strcat(buf, "Poison\r\n");
if (affected_by_spell(ch, SPELL_ARMOR))
! strcat(buf, "Armor\r\n");
! if (affected_by_spell(ch, SPELL_FIRESHIELD))
! strcat(buf, "Fireshield\r\n");
! if (affected_by_spell(ch, SPELL_BLESS))
! strcat(buf, "Bless\r\n");
! if (affected_by_spell(ch, SPELL_ICESHIELD))
! strcat(buf, "Iceshield\r\n");
! if (IS_AFFECTED(ch,AFF_INFRAVISION))
! strcat(buf, "Infravision\r\n");
! 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);
}
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST