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

Gammon 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]  Login changes
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Login changes

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Camulos   Canada  (17 posts)  [Biography] 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?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by Camulos   Canada  (17 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] 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
[Go to top] top

Posted by Samson   USA  (683 posts)  [Biography] 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 :)

SmaugMuds.org: http://www.smaugmuds.org - The Smaug MUDs Community Center

"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984
[Go to top] top

Posted by Metsuro   USA  (389 posts)  [Biography] 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
[Go to top] top

Posted by Camulos   Canada  (17 posts)  [Biography] 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.
[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.


4,884 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]