On Sun, 21 Dec 1997, Mike Schlagenhauf wrote: > practice, practices fine, etc. The problem comes when the character > acutally types sneak. When I stat 'em, here's what I get: > > <lotsa stuff snipped> > AFF: SNEAK > SPL: ( 2hr) TYPE UNDEFINED sets SNEAK Strange... Very, very strange.... I checked my MUD, and found the same damn thing! I checked stock code, and that bug isn't in there. I think that the bug may have been "introduced" when I did the 128 bits change over from the snippets site. Here's what I did to fix the problem: for (aff = k->affected; aff; aff = aff->next) { *buf2 = '\0'; sprintf(buf, "SPL: (%3dhr) %s%-21s%s ", aff->duration + 1, CCCYN(ch, C_NRM), - (aff->type >= 0 && aff->type <= MAX_SPELLS) ? + (aff->type >= 0 && aff->type <= MAX_SKILLS) ? spells[aff->type] : "TYPE UNDEFINED", CCNRM(ch, C_NRM)); if (aff->modifier) { sprintf(buf2, "%+d to %s", aff->modifier, apply_types[(int) aff->location]); strcat(buf, buf2); } if (aff->bitvector) { if (*buf2) strcat(buf, ", sets "); else strcat(buf, "sets "); strcpy(buf2, affected_bits[aff->bitvector]); strcat(buf, buf2); } send_to_char(strcat(buf, "\r\n"), ch); } That's all there was to it! :) (Thanks for letting me know about the bug.) John Evans <evansj@hi-line.net> http://www.hi-line.net/~evansj/ E Pluribus Unix +------------------------------------------------------------+ | 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