Auto_Login script

Talk about anything!

Moderator: Station Managers

Auto_Login script

Postby Antu » Thu Oct 18, 2012 5:20 pm

So, I posted something like this in my cabal's RP forum since Roleplayers are such channel-hungry fiends. Many of you, particularly those who came from AO and/or AoC probably know this already, but I thought I would enlighten. This is how to create an auto-login script that will log you in to our beloved #gridstream chat channel everytime you log-in.

  1. Create a text file and save it as "auto_login" without the quotes. I use Aranaea because it lets me save without an extension, but you can use any Notepad or Wordpad for the same effect. With those you will just have to delete the extension when you are done.
  2. Put "/chat join gridstream" into the file. You can put others in there, so I will show you something like the code I used for mine for reference.
    Code: Select all
    /chat join IC
    /chat join OOC
    /chat join Gridstream
    /alias c cabal
  3. Save the file in the Scripts folder in your game directory. If there is no Scripts folder, create one in your top level directory (the one that has Data, Screenshots, etc., in it).
  4. Create a second file calles "aliases" or whatever you want to call it, and do something like this:
    Code: Select all
    /alias 1 #IC
    /alias 2 #OOC
    /alias 3 #Gridstream
  5. Log in
  6. Type "/aliases" without the quotes.
  7. Profit
For reference on the other code I used in there, "/alias", this is really useful for making longer commands shorter. For example from above, "/alias c cabal" makes it so that I can type "/c <message>" to speak to my cabal, where I used to have to type "/cabal <message>." It's a nice time-saver. Obviously when applied to the chat channels, it can save even more time.

The default for group chat is "/g" by the way.

User-defined channels don't seem to want to resolve in the auto_login script, which is why I created the aliases script. Using the aliases script, I can now (theoretically) type "/3 <message>" to chat to #gridstream, regardless of what my current default channel or window is.

If you want to re-map an alias, you have to clear it first. I'll use the example of switching channels one and two above.
Code: Select all
/alias 1
/alias 2
/alias 1 #OOC
/alias 2 #IC

Obviously you don't need to put that into your script (just do it right the first time), but if you change your mind after logging in, this will help. The first two commands, "/alias 1" and "/alias 2" cleared the aliases. The second and third re-wrote them.

Aliases do not persist between client re-starts, so that makes them even more useful to keep in the script.
Last edited by Antu on Thu Oct 18, 2012 6:03 pm, edited 1 time in total.
Image
Ravafea Antu Skydancer - Twitter | WordPress | Tumblr
Alexandra "Rekvijem" Rest - Twitter | Journal (OOC Info)
User avatar
Antu
Forum Preacher
 
Posts: 249
Joined: Sun Jul 29, 2012 2:40 am
Location: Maryland

Re: Auto_Login script

Postby Antu » Thu Oct 18, 2012 5:52 pm

Fun fact: apparently the game cannot resolve the identity of #IC, et al., during the execution of that script. I tried putting in a "/delay 1000" after the "/alias c cabal" and it was not long enough. I ran into the same error. So then I put in a delay of 2000...and nothing happened. The channels don't work. My theory is the auto_login script must process within the first second or two, and everything after that needs to go into a new script. Someone smarter at this than me can elucidate. For my purposes, I just created a second script called "aliases" which I then run using /aliases.
Image
Ravafea Antu Skydancer - Twitter | WordPress | Tumblr
Alexandra "Rekvijem" Rest - Twitter | Journal (OOC Info)
User avatar
Antu
Forum Preacher
 
Posts: 249
Joined: Sun Jul 29, 2012 2:40 am
Location: Maryland

Re: Auto_Login script

Postby Vallikat » Thu Oct 18, 2012 7:18 pm

Thanks! I didn't know about that alias command. I am sure I will put that to use.
Image
User avatar
Vallikat
Station Manager & Events Lead
 
Posts: 8119
Joined: Tue Feb 04, 2003 4:44 pm


Return to General/Discussion

Who is online

Users browsing this forum: No registered users and 14 guests