View unanswered posts | View active topics It is currently Mon Jan 30, 2023 10:39 pm



Reply to topic  [ 4 posts ] 
 Updated login script 
Author Message
Chief Warrant Officer

Joined: Sun Mar 06, 2011 12:22 am
Posts: 172
Unread post 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?
Code:
# 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
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# 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.

:wait
send #145
setDelayTrigger delay :wait 60000
pause


Attachments:
1_KeepAlive.ts [1.59 KiB]
Downloaded 31 times

_________________
Photons away!
Wed Aug 10, 2022 11:50 am
Profile
Chief Warrant Officer

Joined: Sun Mar 06, 2011 12:22 am
Posts: 172
Unread post 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? :)

_________________
Photons away!


Wed Aug 10, 2022 2:58 pm
Profile
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2553
Location: Oklahoma City, OK 73170 US
Unread post 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?

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Wed Aug 10, 2022 6:07 pm
Profile ICQ YIM WWW
Chief Warrant Officer

Joined: Sun Mar 06, 2011 12:22 am
Posts: 172
Unread post 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.

Vid
http://www.classictw.com/viewtopic.php?f=13&t=34259&p=245010&hilit=+The+twx+script+keep+alive+#p245010

#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.

_________________
Photons away!


Thu Jan 12, 2023 9:15 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: gypsy rogue and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.