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
Stats and races.
Posted by USER007 on Sat 11 Oct 2003 12:18 AM — 15 posts, 45,300 views.
...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.
Hmmm...ok but doesn't anyone know how to set the HP to 100 when people make new chars? Zeno are you there? :D
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:
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;
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
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.
I know a lot more of C then C++, even though they are alike. I'm not that helpful with C++ though.
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
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.
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.
Anavel is using WinSmaug, or something like that. I tried it to, its a windows program that runs Smaug.
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.
Type "help motd", what does it say?
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.
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?
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... :)
hset helpfile level 0
or something like that. Maybe it's hset level helpfile 0, or hset level 0 helpfile. Type help hset... :)
Ok thanks.