Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, 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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Tips and tricks
➜ Character Logon Scripts
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Tricuspa
USA (13 posts) 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?
| Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) 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 | 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.
11,127 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top