Updated login script
Page 1 of 1

Author:  Grey Gamer [ Wed Aug 10, 2022 11:50 am ]
Post subject:  Updated login script

I don't know if something is interfering with SWATH, but in some games it doesn't even seem to try to keep me logged in, so I tried the included KeepAlive script, but sure enough, it interfered with some stuff, so after bothering Micro a bit I improved it!

This sends and invisible character, just like SWATH is supposed to, but every 60 seconds.

It doesn't even try to watch for the inactivity warning!

Any suggestions?
# Copyright (C) 2005  Remco Mulder
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
# For source notes please refer to Notes.txt
# For license terms please refer to GPL.txt.
# These files should be stored in the root of the compression you
# received this source in.

# TWX Script Pack 1: Keepalive script
# Author           : Xide
# Description      : A VERY simple script which sends an invisible character every 60
#                    seconds to keep the connection alive.
# Trigger Point    : Anywhere within TW where the global functions are
#                    working.
# Warnings         : Will send an invisible character every 60 sectors, whether
#                    the program is connected or not.  This character shouldn't
#                    disrupt anything, but use at your own risk.
#                  : Updated by Grey Gamer the Grey on 10Sep2022.

send #145
setDelayTrigger delay :wait 60000

1_KeepAlive.ts [1.59 KiB]
Downloaded 67 times

Author:  Grey Gamer [ Wed Aug 10, 2022 2:58 pm ]
Post subject:  This still interferes with the game

I hadn't thought that I was receiving inactivity warnings and it turns out that I'm not!

Aside from write a script to detect when I have gone inactive and then and only then send invisible characters until I return to the keyboard I simply do not know what to do.

Just never do anything else until I log out? :)

Author:  Micro [ Wed Aug 10, 2022 6:07 pm ]
Post subject:  Re: This still interferes with the game

Grey Gamer wrote:
Just never do anything else until I log out? :)

I have never used 1_KeepAlive, because Mombot does this automatically.

Why would you ever log out, unless there is a time limit?

Author:  Grey Gamer [ Thu Jan 12, 2023 9:15 pm ]
Post subject:  Re: Updated login script

I didn't like running scripts when I wasn't at the keyboard and I was playing one of Farley's rogue games, so there were only a handful of available ports.

I traded at them, cleared as may fighters as possible, and logged out for the day.

I wish that I had tried out my version of the script [longer], it interrupted the other script I was doing, so instead of running a world trade script, for example, it was just sending #145 every minute.

It seems that Vid Kid has the answer all along:
Vid Kid wrote:
Its so easy, I'm not sure why it was not done in the first place.
The twx script keep alive, replace the Send "#" with Send #27
no "s around it, its the escape character and is invisible.

Then all you need to do is figure a good delay setting and its all done.


#27 seems to work. From the same discussion:
Vid Kid wrote:
As for all bots with the invisible keep alive, this was developed because a server could have interactive sub-prompts turned off.
This in some cases would disallow the timeout prompt from being seen.
So the invisible keep alive would keep you connected.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group