Submit player name and password?

Share your scripts and packages with other Mudlet users.
Post Reply
User avatar
fstltna
Posts: 29
Joined: Tue Oct 07, 2014 7:19 am
Location: South San Francisco, CA
Discord: MarisaG#2083
Contact:

Submit player name and password?

Post by fstltna »

Im guessing i use a trigger, but how do i reference the player name and password in my script? I dont want to hardcode this as i will be distributing the package to other people.

Thanks for any help!

Marisa
---- https://PocketMud.com - full-featured CoffeeMUD hosting - $14/month with first month free
---- https://discord.gg/HgDxtas - Semi-Official CoffeeMUD Discord server
---- https://EmpireDirectory.net - portal for Empire and Imperium

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Submit player name and password?

Post by Vadi »

That's not accessible to Lua scripts - you'd need to ask people to input that information into your system.

User avatar
SlySven
Posts: 1019
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: Submit player name and password?

Post by SlySven »

I think that a getPlayerName() to return the (utf-8 encoded) user name associated with the profile (the text stored against the login {?} field) is not unreasonable, but I'd be reluctant to code a lua setter for that or a getter/setter for the password (to protect against malicious packages/modules :twisted: ).

Nyyrazzilyss
Posts: 334
Joined: Thu Mar 05, 2015 2:53 am

Re: Submit player name and password?

Post by Nyyrazzilyss »

Agreed. It's the program itself that submits the username/password, the mud scripts/package don't need access to that information. I'd completely agree with Vadi in regards to it: If for some reason the package will need that information, code something in the package itself having the package ask the user to re-enter it and then save that information to disk.

The mud I play the username/password is associated to a profile, and logging in with that profile shows you a list of linked characters. You then select that character you wish to log in with. There are certain things within the mud itself that are accessed using the profilename, not the character name: I have a command the user enters 'set profilename xxx' to setup/save that information.

User avatar
fstltna
Posts: 29
Joined: Tue Oct 07, 2014 7:19 am
Location: South San Francisco, CA
Discord: MarisaG#2083
Contact:

Re: Submit player name and password?

Post by fstltna »

It seems that the user and password is being pushed to the server a second or two after the connection is made. I just need to have the user put a "!" Before the player password and it will do what i want, no need to modify the mudlet / login script...
---- https://PocketMud.com - full-featured CoffeeMUD hosting - $14/month with first month free
---- https://discord.gg/HgDxtas - Semi-Official CoffeeMUD Discord server
---- https://EmpireDirectory.net - portal for Empire and Imperium

User avatar
SlySven
Posts: 1019
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: Submit player name and password?

Post by SlySven »

@fstltna Yep, if those fields are filled out then they get sent one and two seconds (IIRC) after the connection is made. For some MUDS that is all that is needed to log in with an existing character. Others have a menu or some such that the user has to choose something to get on/in before they enter an identity and matching authentication. If you have several different "characters" on the same Mud it is not unreasonable to want to use the same/similar packages/modules/scripts for all of them - that being the case and the user having a common set-up that is "synced" between those profiles having the aforesaid, hypothetical getPlayerName() or perhaps getCharacterName() to reflect what the entry is on the "Connection Profile" dialogue does seem to me to be a good idea - but then I think rain is wet, so who am I to say? ;)

User avatar
fstltna
Posts: 29
Joined: Tue Oct 07, 2014 7:19 am
Location: South San Francisco, CA
Discord: MarisaG#2083
Contact:

Re: Submit player name and password?

Post by fstltna »

For Imperium games i think it is best to tell the players to create the player entry the first time they connect then enter the details in Mudlet and reconnect again.
---- https://PocketMud.com - full-featured CoffeeMUD hosting - $14/month with first month free
---- https://discord.gg/HgDxtas - Semi-Official CoffeeMUD Discord server
---- https://EmpireDirectory.net - portal for Empire and Imperium

User avatar
fstltna
Posts: 29
Joined: Tue Oct 07, 2014 7:19 am
Location: South San Francisco, CA
Discord: MarisaG#2083
Contact:

Re: Submit player name and password?

Post by fstltna »

fstltna wrote:It seems that the user and password is being pushed to the server a second or two after the connection is made. I just need to have the user put a "!" Before the player password and it will do what i want, no need to modify the mudlet / login script...
I meant player NAME of course :o
---- https://PocketMud.com - full-featured CoffeeMUD hosting - $14/month with first month free
---- https://discord.gg/HgDxtas - Semi-Official CoffeeMUD Discord server
---- https://EmpireDirectory.net - portal for Empire and Imperium

Post Reply