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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Character Logon Scripts

Character Logon Scripts

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


Posted by Tricuspa   USA  (13 posts)  [Biography] bio
Date Wed 16 Jan 2002 07:46 PM (UTC)
Message
Although this is not my forte and more programming than mushclient specific, I was thinking folks might have a basic idea of what to try, or at least tell me if its even possible.

What I am looking for is a script (probably Vbasic) that upon logging on to a MU* it would prompt the person sign on as... Read a data array and than upon making the selection use the associated password to logon to that character.

My programming is quite out of date but here is how I visualize it in old pseudo code

(World Loads Up)
<User is prompted>
1) Tricuspa
2) Wizard
Which character do you want to sign on to?

(Upon choosing one or two it sends the MU* the name and password in a connect statement. If otherwise it just allows for a manual logon)

Now I can see this as either fixed information
send tricuspa tricuspa's password or
send wizard wizard's password or
end program

Or it pulls the information into a data-list and then sends the appropriate data to the MU*.

So anyone care to take this dare?
[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Wed 16 Jan 2002 10:01 PM (UTC)
Message
You could probably do it with a few "world.note" in the script run "on connect".

Make a batch of aliases that match on the response "1" "2" and so on. So the script pops up the question and the alias sends the appropriate response.

Then, once you have logged on a trigger could disable all the aliases (so typing "1" doesn't send the password later on).

Thus, the initial script would need to enable them. A code snippet might be ...


sub OnWorldConnect
world.enablealias "response_1", 1
world.enablealias "response_2", 1
world.enablealias "response_3", 1
world.enablealias "response_4", 1

world.note "1) Tricuspa"
world.note "2) Wizard"
end sub


You would make 4 aliases called "response_1", "response_2" and so on. Then the trigger which is called when the login is successful (eg. matching on "welcome to" blah blah) could disable them ...



world.enablealias "response_1", 0
world.enablealias "response_2", 0
world.enablealias "response_3", 0
world.enablealias "response_4", 0



- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


10,520 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 HostDash]