Smaug setting hp higher

Posted by Zeno on Tue 07 Jan 2003 10:18 PM — 7 posts, 25,994 views.

USA #0
How would I correctly set the max hp in Smaug up to 99999? I tried editing some stuff then setting my hp to 99999 but it took it negative.
Australia Forum Administrator #1
Various places in the code which store hp are "sh_int" (see mud.h) - this is a short integer which can go to a maximum of 32767 before going negative.

You would need to change them all to "long" which can be much larger, however you may need to find the spots where they are calculated. Here is one example:

sh_int hpused; /* Amount of hps used to morph */

USA #2
Hrm, could you be more specific? Would there be a certain line(s) I could grep/search for?
USA #3
in mud.h ud change the
sh_int hit;
to
int hit;
then u go into build.c and ud want to change the mset hp so it u can set it higher then 32000, look for the " if ( !str_cmp( arg2, "hp" ) )" in do_mset and change the "if ( value < 1 || value > 32700 )"

...
i think ;)
#4
how could you do this if you only have the binaries?
USA #5
You can't. It can only be done with the sources.
#6
That's the downfall of binaries...