Author Topic: SuperSlayer's Auto Login Script for OpenEUO Version 1.8  (Read 29010 times)

0 Members and 1 Guest are viewing this topic.

Offline SuperslayerTopic starter

  • Elite
  • *
  • *
  • Posts: 1006
  • Activity:
    0%
  • Reputation Power: 14
  • Superslayer barely matters.Superslayer barely matters.
  • Gender: Male
  • Well what do you drink? Not tea.
  • Respect: +43
  • Referrals: 0
    • View Profile
SuperSlayer's Auto Login Script for OpenEUO Version 1.8
« on: October 18, 2010, 07:48:37 AM »
0
Wow, this thing is wicked fast! This is kinda basic, not too advanced imo. And yes, this is my very first OpenEUO script ! Yay me! So without further delay,... :)

Code: [Select]
Script Name: SuperSlayer's Login
Author: SuperSlayer
Version: 1.8
Client Tested: 7.0.10.1
oEUO Version: 0.91.0008
Razor Version: 1.0.12.15
Shard: OSI
Public Release: 11-2-2010
Purpose: Relog your character in after daily maintenance, or any other time your connection is lost.

FYI: Shard numeric values have changed over the last year, so at the bottom of the script is a list
of shards and their values current as of 11-02-2010.

Setup Directions:
- Place your UO account name and password in the variables provided below. -Case SeNsiTivE !!
- If you know your shard is within the first 'x' many in the list, put that value in in 'Shards2Scan.
- Select the character to login by number. Top character slot = 1.
- Select the shard to login by number. Shard numeric values are at the bottom of this script for you.

Thanks and acknowledgments:
Kal for the original script structure, the entire scripting communities at SUO and EasyUO and Cheffe for OpenEUO !

Call the file from within your script and change character/shard without opening and changing the login script.
Use this example and be sure to set the correct atoms!
     
     setatom('Custom',true)        -- set the boolean value to true to use the atom set variable. Set to false to not use
     setatom('AN','BobsAccount')   -- your UO account name
     setatom('PW','BobsPassword')  -- your UO password
     setatom('S2',5)               -- shards to scan
     setatom('CS',1)               -- character slot
     setatom('SH',890981139)       -- shard to select by numeric value
     dofile('ss_autologinoeuov1.8.lua')
     
Loop it in your script with this example:

     repeat
     ** your code **
       if UO.CliLogged == false then
         wait(500)
         dofile('ss_autologinoeuov1.8.lua')
       end 
     ** your code **       
     until 1 == 2

Version 1.8
- Added ClientSwap function; confirms the client to log in to based on an empty 'CharName'.     
- Added additional login validation step to avoid hanging at character selection gump.
- Adjusted shard scanning technique to first scan for the existence of shard
    names and run a pixel sum test to verify.
- Misc. wait adjustments and subtle code changes to certain function
- Print function included to provide feedback to the user that the character is logged in, and
    the characters name is no longer "".

Version 1.7
- Removed LShard function in favor of speed of script and shard selection accuracy. Using LShard at login properly
  sets the last used shard, but during maintenance, the shards get reassigned. Otherwise, this is so fast
  that it still only takes less than a few seconds to get into the game.
- Added atom functionality so the script may be 'called' using variables set in your own script. Useful for bod
  collecting scripts, multi-account script setups, (Manwinc's army perhaps?) and more!
- Little more code cleanup as well.

Version 1.6
- Put LShard check in proper place -- oops!

Version 1.5
- Adjusted wait throughout script to better ensure values.
- Uses LShard if already logged in and connection is lost.
- Better control of single and double clicks.

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
ss_autologinoeuov1.8.lua
« Last Edit: November 02, 2010, 03:07:11 PM by Superslayer »

Offline _C2_

  • AFK FtW
  • Global Moderator
  • *
  • *
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +254
  • Referrals: 4
    • View Profile
Re: SuperSlayer's Auto Login Script for OpenEUO
« Reply #1 on: October 18, 2010, 08:07:31 AM »
0
It the dofile command cap sensative; does it have to match your saved file name perfectly with caps/lowercase?  I know there are many commands that are so far from my learning. 

Offline SuperslayerTopic starter

  • Elite
  • *
  • *
  • Posts: 1006
  • Activity:
    0%
  • Reputation Power: 14
  • Superslayer barely matters.Superslayer barely matters.
  • Gender: Male
  • Well what do you drink? Not tea.
  • Respect: +43
  • Referrals: 0
    • View Profile
Re: SuperSlayer's Auto Login Script for OpenEUO
« Reply #2 on: October 18, 2010, 08:13:06 AM »
0
nope, I just called it like this to see if it mattered and it worked just fine.
Quote
dofile('Ss_auTologinoEuov1.lua')

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: SuperSlayer's Auto Login Script for OpenEUO
« Reply #3 on: October 18, 2010, 10:53:48 AM »
0
nice super slayer..   I put in a request for #lshard to be made available again.. :)
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline SuperslayerTopic starter

  • Elite
  • *
  • *
  • Posts: 1006
  • Activity:
    0%
  • Reputation Power: 14
  • Superslayer barely matters.Superslayer barely matters.
  • Gender: Male
  • Well what do you drink? Not tea.
  • Respect: +43
  • Referrals: 0
    • View Profile
Re: SuperSlayer's Auto Login Script for OpenEUO
« Reply #4 on: October 18, 2010, 05:09:08 PM »
0
nice super slayer..   I put in a request for #lshard to be made available again.. :)

I've never used #lshard in euo, how would that be used in this?  Btw, I'll be posting an update for this in a little while, a few improvements and checks.

Offline _C2_

  • AFK FtW
  • Global Moderator
  • *
  • *
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +254
  • Referrals: 4
    • View Profile
Re: SuperSlayer's Auto Login Script for OpenEUO
« Reply #5 on: October 18, 2010, 05:21:31 PM »
0
i use lshard in my logger script.  you can set last shard on the login page where you put your mane and then just click the last shard symble on the next page instead of messing with shards on list.  it is really nice

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: SuperSlayer's Auto Login Script for OpenEUO
« Reply #6 on: October 18, 2010, 05:42:22 PM »
0
UO.LShard =   shard number ... (see wikki on EUO)

if you set above to the shard number you want prior to loggin in it will auto maktically set that as the default shard when you press enter that way you dont have to scroll down to the correct shard to select saves alot of headache.
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline SuperslayerTopic starter

  • Elite
  • *
  • *
  • Posts: 1006
  • Activity:
    0%
  • Reputation Power: 14
  • Superslayer barely matters.Superslayer barely matters.
  • Gender: Male
  • Well what do you drink? Not tea.
  • Respect: +43
  • Referrals: 0
    • View Profile
Re: SuperSlayer's Auto Login Script for OpenEUO
« Reply #7 on: October 18, 2010, 06:09:33 PM »
0
I'm working on this now, and my question is..when the shards go down for maintenance and LShard has a value of say, 45, will the shard even be selectable? Is 45 a unique identifier to the shard?

Scrripty

  • Guest
Re: SuperSlayer's Auto Login Script for OpenEUO
« Reply #8 on: October 18, 2010, 07:06:24 PM »
0
I'm working on this now, and my question is..when the shards go down for maintenance and LShard has a value of say, 45, will the shard even be selectable? Is 45 a unique identifier to the shard?

Code: [Select]
; ============ Shard Numbers
; 0  = Atlantic            ; 19 = Oceania
; 1  = Lake Superior       ; 20 = Yamato
; 2  = Pacific             ; 21 = Asuka
; 3  = Great Lakes         ; 22 = Wakoku
; 5  = Baja                ; 23 = Hokuto
; 6  = Chesapeake          ; 24 = Europa
; 7  = Nappa Valley        ; 25 = Drachenfels
; 8  = Catskills           ; 26 = Formosa
; 9  = Sonoma              ; 27 = Izumo
; 10 = Lake Austin         ; 28 = Arirang
; 12 = Seige Perilous      ; 29 = Balhae
; 14 = Legends             ; 31 = Mizuho
; 16 = Sakura              ; 41 = Test Center
; 18 = Mugen               ; 45 = Origin

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: SuperSlayer's Auto Login Script for OpenEUO
« Reply #9 on: October 18, 2010, 07:07:08 PM »
0
I'm working on this now, and my question is..when the shards go down for maintenance and LShard has a value of say, 45, will the shard even be selectable? Is 45 a unique identifier to the shard?

well if you carnt normally login .. lshard is not gonig to make it so you can.
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Scrripty

  • Guest
Re: SuperSlayer's Auto Login Script for OpenEUO
« Reply #10 on: October 18, 2010, 07:09:25 PM »
0
I'm working on this now, and my question is..when the shards go down for maintenance and LShard has a value of say, 45, will the shard even be selectable? Is 45 a unique identifier to the shard?

well if you carnt normally login .. lshard is not gonig to make it so you can.

Also, you kinda have to set the #lshard at a specific spot in EUO.  At the login screen I believe.  But not sure for OEUO.  Haven't tested.

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
Re: SuperSlayer's Auto Login Script for OpenEUO
« Reply #11 on: October 18, 2010, 07:30:22 PM »
0
Just in time for holiday gift season.  Well done.  I'll be stealing this to recreate C2's bod gatherer this weekend, if my trip to Napa falls thru.

Offline SuperslayerTopic starter

  • Elite
  • *
  • *
  • Posts: 1006
  • Activity:
    0%
  • Reputation Power: 14
  • Superslayer barely matters.Superslayer barely matters.
  • Gender: Male
  • Well what do you drink? Not tea.
  • Respect: +43
  • Referrals: 0
    • View Profile
Re: SuperSlayer's Auto Login Script for OpenEUO Version 1.5
« Reply #12 on: October 18, 2010, 10:37:39 PM »
0
Good deal Nobama, just make sure you get the most recent version!

@Twinkle McNugget: It seems that what worked in EUO will be the same in OEUO, and that just leads me to believe that it's actually the way the client works. It doesn't look like the values you posted are matching with my attempts, but I'll play with it more.

Offline SuperslayerTopic starter

  • Elite
  • *
  • *
  • Posts: 1006
  • Activity:
    0%
  • Reputation Power: 14
  • Superslayer barely matters.Superslayer barely matters.
  • Gender: Male
  • Well what do you drink? Not tea.
  • Respect: +43
  • Referrals: 0
    • View Profile
Re: SuperSlayer's Auto Login Script for OpenEUO Version 1.6
« Reply #13 on: October 18, 2010, 11:10:29 PM »
0
Sorry to whoever downloaded version 1.5, I didn't have the LShard check in the proper place!  Version 1.6 is up and is corrected.

Scrripty

  • Guest
Re: SuperSlayer's Auto Login Script for OpenEUO Version 1.5
« Reply #14 on: October 18, 2010, 11:25:01 PM »
0
Good deal Nobama, just make sure you get the most recent version!

@Twinkle McNugget: It seems that what worked in EUO will be the same in OEUO, and that just leads me to believe that it's actually the way the client works. It doesn't look like the values you posted are matching with my attempts, but I'll play with it more.

I just looked at the variable pane in OEUO, and the number matched perfectly with the shard I was on... :)

Tags: OEUO