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 ➜ SMAUG coding ➜ Stats and races.

Stats and races.

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


Posted by USER007   (124 posts)  Bio
Date Sat 11 Oct 2003 12:18 AM (UTC)

Amended on Sat 11 Oct 2003 12:20 AM (UTC) by USER007

Message
How do you remove stats and remove the entire class selection when ppl make a new char? And how do I make the mud add a new race that I created into the list so ppl can chose the race when they create a new char? I almost forgot this, how do I make the HP to 100 when people create a new char every time? :D
Top

Posted by Rob Harper   (108 posts)  Bio
Date Reply #1 on Sun 12 Oct 2003 08:57 AM (UTC)
Message
...ok..removing stats..maby a bit difficult, removing the class from the start up screen simply remove the section reguarding it from the nanny I think in handler.c, adding the race to the list, if it's created like you said and the file is in the races file, add the name of the file to the race list. I suggest you go to offical smaug site to get your bearings on how everything works, or adleast the basic how to get everything going, and coding, maby buy a book or somthing or play with snippets till you feel some what at ease.
Top

Posted by USER007   (124 posts)  Bio
Date Reply #2 on Mon 13 Oct 2003 09:14 PM (UTC)
Message
Hmmm...ok but doesn't anyone know how to set the HP to 100 when people make new chars? Zeno are you there? :D
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #3 on Mon 13 Oct 2003 11:25 PM (UTC)
Message
Nope. :P

Alright, I guess this is the easy way to do it, and you should change it later on. In comm.c, somewhere near the end when a new character is made, add this line:

ch->hit = 100;
ch->max_hit = 100;

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

Posted by USER007   (124 posts)  Bio
Date Reply #4 on Mon 13 Oct 2003 11:37 PM (UTC)
Message
I don't see comm.c only ones that I see is commands.CPP. :O Oh and can I add coding from C to CPP file? Like copy and paste? :P
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #5 on Tue 14 Oct 2003 09:38 PM (UTC)
Message
Err, I guess that Smaug is in C++. C++ is .ccp, C is .c

I know a lot more of C then C++, even though they are alike. I'm not that helpful with C++ though.

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

Posted by USER007   (124 posts)  Bio
Date Reply #6 on Tue 14 Oct 2003 11:37 PM (UTC)
Message
So if I tried to add a code that is written in C could it work in C++? I'm trying to add the atlantos compass thingy and its in C. :D
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #7 on Wed 15 Oct 2003 01:18 AM (UTC)
Message
Almost any C code will work in C++, unless you have variable names such as 'class' which interfere with C++ keywords. I ported SMAUG to C++ with next to no problems. Just had to get rid of variables like class and new and stuff.

Where'd you get a C++ version of SMAUG? Or what codebase are you using?

If you're using SMAUG, you could add the ch->max_hp = 100 thing after the character's stats are set... I don't remember where that is, and it looks like you have a very different codebase anyways, so I'm not sure I can help you much either.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #8 on Wed 15 Oct 2003 01:30 AM (UTC)
Message
Anavel is using WinSmaug, or something like that. I tried it to, its a windows program that runs Smaug.

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

Posted by USER007   (124 posts)  Bio
Date Reply #9 on Wed 15 Oct 2003 08:51 PM (UTC)
Message
I have 2. One of them is WinSmaug 1.4a and the other is SmaugWiz 2.2 or something like that. And it seems in SmaugWiz There is a bug... the MOTD for mortals does not work the NMOTD and IMOTD work. I put the message in the buffer for the MOTD but when a mortal char logs on it wont load it up and instead it says "No help with that word" then a few lines it says press enter. So how could I fix the MOTD? Its in the SmaugWiz one if that helps.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #10 on Wed 15 Oct 2003 09:11 PM (UTC)
Message
Type "help motd", what does it say?

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

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #11 on Wed 15 Oct 2003 09:51 PM (UTC)
Message
You might also want to make sure that the level of your help file is 0, so that mortals can read it. If an imm creates a help file, it defaults to that imm's level. You can only read help files that are of your level or lower.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by USER007   (124 posts)  Bio
Date Reply #12 on Thu 16 Oct 2003 12:45 PM (UTC)
Message
Well I'm at school right now so I can't check to see if "help motd" works, but how do you check/change the level of the help file?
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #13 on Thu 16 Oct 2003 05:47 PM (UTC)
Message
You type:
hset helpfile level 0
or something like that. Maybe it's hset level helpfile 0, or hset level 0 helpfile. Type help hset... :)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by USER007   (124 posts)  Bio
Date Reply #14 on Thu 16 Oct 2003 11:13 PM (UTC)
Message
Ok thanks.
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.


42,781 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.