Character Logon Scripts

Posted by Tricuspa on Wed 16 Jan 2002 07:46 PM — 2 posts, 14,033 views.

USA #0
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?
Australia Forum Administrator #1
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