Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Running the server ➜ Smaug setting hp higher

Smaug setting hp higher

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zeno   USA  (2,871 posts)  Bio
Date Tue 07 Jan 2003 10:18 PM (UTC)
Message
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.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 07 Jan 2003 11:53 PM (UTC)
Message
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 */


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #2 on Thu 09 Jan 2003 01:13 AM (UTC)
Message
Hrm, could you be more specific? Would there be a certain line(s) I could grep/search for?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Chris L   USA  (57 posts)  Bio
Date Reply #3 on Thu 09 Jan 2003 02:19 AM (UTC)
Message
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 ;)
Top

Posted by Darisan   (57 posts)  Bio
Date Reply #4 on Mon 14 Apr 2003 02:42 AM (UTC)
Message
how could you do this if you only have the binaries?
Top

Posted by Boborak   USA  (228 posts)  Bio
Date Reply #5 on Mon 14 Apr 2003 02:53 AM (UTC)
Message
You can't. It can only be done with the sources.
Top

Posted by Leprakon   (28 posts)  Bio
Date Reply #6 on Sun 27 Jul 2003 10:42 PM (UTC)
Message
That's the downfall of binaries...
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


22,529 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.