Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Login changes
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Camulos
Canada (17 posts) Bio
|
Date
| Sat 01 Oct 2005 07:29 PM (UTC) |
Message
| So I'm trying to accomplish two things when an immortal logs in:
I) I want to make it automatically load their area
II) I want it to 'sset (immortal logging in) all 100'
Unfortunately I'm rather new at this and can't even find the login information, let alone figure out how to do this? | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Sat 01 Oct 2005 08:17 PM (UTC) |
Message
| In comm.c is where the login happens. Look for like "has entered the game" in there, then after add two lines, one for the loadarea, and one for sset.
The sset line will probably look like this:
do_sset( ch, "all 100" );
The loadarea will be a bit different. You need to do an ifcheck if they actually have an area, then just call do_loadarea |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Camulos
Canada (17 posts) Bio
|
Date
| Reply #2 on Sun 02 Oct 2005 07:26 AM (UTC) |
Message
| Thanks, that worked perfectly.
Also knowing which file the login info was in let me set new players to have their map toggled on, which was my next project, so thanks again. | Top |
|
Posted by
| Nick Cash
USA (626 posts) Bio
|
Date
| Reply #3 on Sun 02 Oct 2005 05:21 PM (UTC) |
Message
| Remember to add the if check to only set the skills if it is an immortal. Otherwise you will end up with some overpowered and happy players. :P |
~Nick Cash
http://www.nick-cash.com | Top |
|
Posted by
| Samson
USA (683 posts) Bio
|
Date
| Reply #4 on Sun 02 Oct 2005 10:26 PM (UTC) |
Message
| You might just want to put that in the immortalize command instead of having it check on each login. Slightly wasteful in resources to do it all the time like that :) | Top |
|
Posted by
| Metsuro
USA (389 posts) Bio
|
Date
| Reply #5 on Sun 02 Oct 2005 10:27 PM (UTC) |
Message
| I believe Samson was only refering to the sset? |
Everything turns around in the end | Top |
|
Posted by
| Camulos
Canada (17 posts) Bio
|
Date
| Reply #6 on Mon 03 Oct 2005 04:51 AM (UTC) |
Message
| The reason I'm putting it in the login is because we're fairly regularly having new skills/spells added and I'm rather tired of hearing 'XXXX doesn't work!' just because people either don't have sset or forget to do it :)
I actually added it to the end of the function that checks their player type to see which motd they get, seems to work fairly well since only imms get the imotd. | 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.
21,696 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top