[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  A few inquiries

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: A few inquiries
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Thu 17 Jan 2002 08:09 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Akula   (24 posts)  [Biography] bio
Date Thu 17 Jan 2002 02:45 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Thu 17 Jan 2002 02:23 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Akula   (24 posts)  [Biography] bio
Date Thu 17 Jan 2002 01:24 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Wed 16 Jan 2002 09:29 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Akula   (24 posts)  [Biography] bio
Date Wed 16 Jan 2002 03:38 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Tue 15 Jan 2002 02:16 AM (UTC)  quote  ]

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
[Go to top] top

Posted by Akula   (24 posts)  [Biography] bio
Date Tue 15 Jan 2002 01:32 AM (UTC)  quote  ]
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 :)
[Go to top] 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.


2,630 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]