fix.txt
snippets · 1.3 KB · 2010-03-30
Fix for a bust_a_prompt problem, posted by David Carroll.
Download « Back to the snippets list
From: David Carroll <david@hgo.net>
> Sometime around the first of the year, a small fix was posted to fix
> bust_a_prompts problem of trying to call up a mobs exp per level on
> polymorphed players. It's not in the archive yet and Darkoth doesn't have
> it in his "new link" snips... Could someone repost or forward that to me
> please, thanks.
I believe this may be what you are looking for...
------------< Snippo >---------------
From: "James M Tompkins" <blusky@eskimo.com>
To: "Synwulfe" <cook@InfoAve.Net>, "ROM mailing list"
Jan 1998 03:42:11 -0800 Forwarded by: rom@rom.org
In void bust_a_prompt in comm.c in case X (calculating exp to level)
change to the following:
if(ch->desc->original == NULL) /* add this line */
{
sprintf(buf2, "%d",((ch->level + 1) * exp_per_level(ch,
ch->pcdata->points))-(ch->exp));
i = buf2;
}
break;
The code chokes when possessing (or morphing) into a mob by trying to
calculate the mob's experience to level. Now when possessing/morphing
the exp to level will be blank. The fix was made by our former coder
Menion after I found where it was occurring.
--------------------------------
David Carroll
(david@hgo.net)
--------------------------------
Dimension --==X==-- Coder
mud.skool.com 8000