Login changes

Posted by Camulos on Sat 01 Oct 2005 07:29 PM — 7 posts, 30,345 views.

Canada #0
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?
USA #1
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
Canada #2
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.
USA #3
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
USA #4
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 :)
USA #5
I believe Samson was only refering to the sset?
Canada #6
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.