Breakpoint 1, do_score (ch=0xa293288, argument=0x23eb55 "") at player.c:43
43 if (IS_NPC(ch))
(gdb) n
49 set_pager_color(AT_SCORE, ch);
(gdb) n
51 pager_printf(ch, "\n\r&zScore for %s%s%s.&w\n\r", ch->pcdata->pretitle, ch->nam
e, ch->pcdata->title);
(gdb) n
52 if ( get_trust( ch ) != ch->level )
(gdb) n
55 send_to_pager("&w--------------------------------------------------------------
--------------\n\r", ch);
(gdb) n
57 pager_printf(ch, "&zLEVEL: &w%-3d &zRACE : &w%-10.10s &z
PLAYED: &w%d hours\n\r", ch->level, capitalize(get_race(ch)), (get_age(ch) - 17) * 2);
(gdb) n
58 pager_printf(ch, "&zYEARS: &w%-6d &zCLASS: &w%-12.12s &zLOG IN: &w%s\
r", get_age(ch), capitalize(get_class(ch)), ctime(&(ch->logon)) );
(gdb) n
60 if (ch->level >= 15
(gdb) n
63 pager_printf(ch, "&zSTRENGTH : &w%2.2d &zHITROLL: &w%-4d
&zSAVED: &w%s\r", get_curr_strength(ch), GET_HITROLL(ch), ch->save_time ? ctime(&(ch->save_
time)) : "no save this session\n" );
(gdb) n
64 pager_printf(ch, "&zPSYCHE : &w%2.2d &zDAMROLL: &w%-4d
&zTIME: &w%s\r", get_curr_psyche(ch), GET_DAMROLL(ch), ctime(¤t_time) );
(gdb) n
72 if (GET_AC(ch) >= 101)
(gdb) n
74 else if (GET_AC(ch) >= 80)
(gdb) n
76 else if (GET_AC(ch) >= 55)
(gdb) n
77 sprintf(buf, "shabby and threadbare");
(gdb) n
103 if (ch->level > 24)
(gdb) n
104 pager_printf(ch, "&zENDURANCE : &w%2.2d &zARMOR: &w%4.4d, %s\n\r"
, get_curr_endurance(ch), GET_AC(ch), buf);
(gdb) n
108 if (ch->alignment > 900)
(gdb) n
110 else if (ch->alignment > 700)
(gdb) n
112 else if (ch->alignment > 350)
(gdb) n
114 else if (ch->alignment > 100)
(gdb) n
116 else if (ch->alignment > -100)
(gdb) n
117 sprintf(buf, "neutral");
(gdb) n
127 if (ch->level < 10)
(gdb) n
130 pager_printf(ch, "&zWARFARE : &w%2.2d &zALIGN: &w%+4.4d, %-14.14s
&zITEMS: &w%5.5d (max %5.5d)\n\r", get_curr_warfare(ch), ch->alignment, buf, ch->carry_num
ber, can_carry_n(ch));
(gdb) n
132 switch (ch->position)
(gdb) n
159 sprintf(buf, "standing");
(gdb) n
191 pager_printf(ch, "&zPOS'N: &w%-21.21s &zWEIGHT: &w%5.5d (MAX %7.7d)\n\r", ch->
carry_weight, can_carry_w(ch));
(gdb) n
Program received signal SIGSEGV, Segmentation fault.
0x610d2874 in memchr () from /home/KK and Li Li/smaug/area/cygwin1.dll
(gdb)
This is what I got for do_score. Been looking through the fread_char's info and haven't been getting any luck.
-Toy |