ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Khameleon on September 25, 2008, 06:01:34 PM

Title: #Time
Post by: Khameleon on September 25, 2008, 06:01:34 PM
I'm sure its been coded somewhere I've searched but haven't had any luck.. and for the life of me I can't seem to simplify it in code.
basically what I'm trying to do it stay in the logout screen until lets say... the shard comes up from shard maintenance.

so if I log off UO and goto bed (Yes I don't Macro 24/7)
and want my character to log in at 3:30 am

Repeat
until #time < 240000 && #Time > 030000
Login script goes here.

but that time is so vague... that technically wouldn't work until the clock passed Midnight. maybe I gota work something into the date?

set %date #Date
if %Date > #Date
Goto Login
Title: Re: #Time
Post by: talkmill on September 25, 2008, 11:39:05 PM
Hmmm, can't you just set the expected login time/date when you logout. For example:

Code: [Select]
set %logindate #date + 1
set %logintime 033000
and then:

Code: [Select]
Repeat
until #date >= %logindate && #Time >= %logintime
Login script goes here.

I guess you could calculate the time to wait instead of using a repeat until to save some cpu but i'm to tired for that right now :)
Title: Re: #Time
Post by: Endless Night on September 26, 2008, 08:35:36 AM
I belive C2 release a login script over on the www.winuo.com boards.
Title: Re: #Time
Post by: Khameleon on September 26, 2008, 01:32:22 PM
I belive C2 release a login script over on the www.winuo.com boards.

ya that's the one I currently use, but it just auto logs you in when you disconnect.
I'm looking to log in a specific time. then log off, or idle out.