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
➜ A few inquiries
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Akula
(24 posts) Bio
|
| Date
| Tue 15 Jan 2002 01:32 AM (UTC) |
| Message
| I dislike the movement point system and wish to remove it from the game, how do I go about doing this? Also I will need to change the default prompt for that and don't know how to.
I downloaded this bank snippet where the NPC needs a banker flag. In area editor is there a way to add this flag?
And if I do indeed put banking into the game, I want the player to lose all the money on their corpse at the time of death.
Someone please help me with this stuff :)
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,169 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 15 Jan 2002 02:16 AM (UTC) Amended on Tue 15 Jan 2002 02:17 AM (UTC) by Nick Gammon
|
| Message
|
Quote:
I dislike the movement point system and wish to remove it from the game, how do I go about doing this?
Look for references to ch->move and remove them.
For example:
if ( ch->move <= 0 ) {
send_to_char( "You're too exhausted to flee from combat!\n\r", ch );
return;
}
As for the default prompt, remove "%vmv" from functions default_fprompt and default_prompt.
Quote:
In area editor is there a way to add this flag?
You can add or change flags in the Area Editor by editing the configuration file. You can only do this for registered copies, however with an unregistered copy look at the smaugconfig.dat file to see the general idea.
Quote:
And if I do indeed put banking into the game, I want the player to lose all the money on their corpse at the time of death.
Quote:
You could do that by adding this:
ch->gold = 0;
to wherever the code is for dying (fight.c?).
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Akula
(24 posts) Bio
|
| Date
| Reply #2 on Wed 16 Jan 2002 03:38 AM (UTC) |
| Message
| Thanks a lot for your responses to my questions, Nick Gammon, they really did help me a whole bunch :)
One last brief question I forgot to post before I'm all set:
Your starting level is at level 2, is it possible to make it that you start at level '0' and on completion of the newbie area you become level 1?
Thanks again for your help in the past.
Akula
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,169 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Wed 16 Jan 2002 09:29 PM (UTC) |
| Message
| | I suppose. You might need to be careful, a whole lot of code might assume the lowest level is 1, and if you have a player at level 0 you might get "array out of bounds" errors, in other words, a crash. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Akula
(24 posts) Bio
|
| Date
| Reply #4 on Thu 17 Jan 2002 01:24 AM (UTC) |
| Message
| Well then, how do I make it that you start off at level 1 ( not level 2) then become level 2 on completion of the newbie area?
Thanks
Akula
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,169 posts) Bio
Forum Administrator |
| Date
| Reply #5 on Thu 17 Jan 2002 02:23 AM (UTC) |
| Message
| In the file system/sysdata.dat you should have the line:
Waitforauth 1
That forces players through the introduction area, where they start at level 1, as far as I know.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Akula
(24 posts) Bio
|
| Date
| Reply #6 on Thu 17 Jan 2002 02:45 PM (UTC) |
| Message
| Thanks, so now I made it that you start off at level 1. Now when completing the newbie area (entering a certain room the challenge is finding the key to open it) is there a prog or somthing I can add to make it that you are now level 2? Also it would be nice to automatically 'save' as if someone would forget to save their character will be deleted.
Thanks a lot.
Akula
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,169 posts) Bio
Forum Administrator |
| Date
| Reply #7 on Thu 17 Jan 2002 08:09 PM (UTC) |
| Message
| I think the command is "mpadvance".
I also think SMAUG is originally set so that you need to be level 2 to save, if you could find that code you could change it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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.
26,308 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top