ScriptUO

Ultima Online Fan Board => General UO Chat => Topic started by: Ali on December 18, 2022, 01:15:50 AM

Title: Information on AFK Time Out?
Post by: Ali on December 18, 2022, 01:15:50 AM
Does anyone have some insight on what exactly prevents the AFK timeout on OSI? I can't seem to find good info on this. Opening backpack periodically seems to prevent it, as does moving. Using bow or salute emote works as long as you're not mounted.

Standing at Luna bank prevents timeout, is it the other players nearby that does it? NPCs? Updating journal? I've been disconnected with recent 'You see' messages in my journal, so I'm not sure what the deal is with that.

I usually use the opening backpack method to prevent timeout, but I'm interested in learning of other ways that don't use the item cooldown timer and don't interfere with targeting cursors.
Title: Re: Information on AFK Time Out?
Post by: The Ghost on December 18, 2022, 07:48:10 AM
Ali,
Like you mention, all those action will prevent you to timeout.    I just use a Salute macro  every 5 min.   I like to think the it less obvious and  it  haven't mess my targeting system
In easy  I just use   if #sCnt > %timer  + 300 .....

Still need to find a function in Orion that wont spike my CPU
Title: Re: Information on AFK Time Out?
Post by: Ali on December 18, 2022, 11:54:12 AM
Yeah, salute is great as long as you're not mounted or in animal form.

In Orion, you can use Timer or I usually just use Orion.Now() + 300000 and then check it against Orion.Now()

Code: [Select]
var endTime = Orion.Now() + 300000;
while(true)
    {
    if(Orion.Now() > endTime)
        {
        Orion.EmoteAction('Salute');
        endTime = Orion.Now() + 300000;
        }
    Orion.Wait(100);
    }
Title: Re: Information on AFK Time Out?
Post by: Piller on December 19, 2022, 06:31:17 AM
I believe its the multi trainer on this site will open a spell/rune book and close it. Not sure where it is on the code I can try to figure it out tonight but have just seen it happen while training
Title: Re: Information on AFK Time Out?
Post by: Gaderian on December 19, 2022, 09:58:22 AM
There are also some gumps on OSI that prevent logout without all that other actions. If you open the gump to a Magincia Broker (I did this with the commodity broker, but likely both pet and commodity function the same) then you will not get kicked for being what it deems idle.