View unanswered posts | View active topics It is currently Thu Apr 23, 2026 11:07 am



Reply to topic  [ 8 posts ] 
 ST-Bot Timed Login Mod 
Author Message
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 
The code snippet below will allow you to logoff and back into a game after a specified time (in minutes). Your corpies can use this if you are AFK and in a time limit game to save your time and bring you back in.

The command is <bot name> timedlogin xxx where xxx is the number of minutes to wait (20, 240 or whatever you want).

The code was used effectively in the recent turns game.

Code:

# 1st backup your bot script!!!

# search for "goto :qss" and insert the following in the command function

elseif ($command = "timedlogin")
        goto :timedlogin


# search for "end_nmac_send" label you should be at:

#:end_nmac_send
#     send "'<" $bot_name "> - Numbered Macro - " $nmac " Cycles Complete*"
#     goto :wait_for_command

# insert the following (do not comment out the above label/commands!)

:timedlogin
        isNumber $test $parm1
        if ($test)
           killtrigger relog
           setdelaytrigger mjunk :mjunk 2000
           pause
           :mjunk
           getword currentline $promptLogoff 1
           send "'Logging off - back in " $parm1 " minutes*"
           if ($promptLogoff = "Citadel")
               send "ryyqxq"
           elseif ($promptLogoff = "<Stardock>")
               send "qqyyxq"
           else
               send "qyxq"
           end
           setVar $i 1
           while ($i <= $parm1)
               setDelayTrigger  timeDelay :timeDelay 60000
                pause
               :timeDelay
               add $i 1
           end
        else
             send "'Usage is timedlogin followed by the number of minutes to wait*"
            goto :wait_for_command
        end
        goto :relog

# search for "#help =-=-=-=-=" and in the available command list insert

        send "'    TIMEDLOGIN -  Logoff and then log in after x minutes*"


_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Sun Feb 25, 2007 8:41 pm
Profile ICQ
Gameop
User avatar

Joined: Sun Oct 08, 2006 2:00 am
Posts: 991
Unread post 
Prom,

That is sweet.

Cerne

_________________
"All warfare is based on deception..." - Art of War
"Time will tell all tales" - SG
Any advanced tactic in TW is indistinguishable from cheating.


Sun Feb 25, 2007 9:31 pm
Profile ICQ
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
Very nice indeed. Another quality script.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Sun Feb 25, 2007 10:11 pm
Profile
Warrant Officer

Joined: Tue Sep 17, 2002 2:00 am
Posts: 84
Location: USA
Unread post 
lol people still using that old bot?

_________________
Space Tyrants :
Grid Defense isn't just a job... It's an ADVENTURE!!!

ICQ - 277696938


Mon Feb 26, 2007 7:10 am
Profile ICQ YIM WWW
Lieutenant J.G.
User avatar

Joined: Fri Sep 12, 2003 2:00 am
Posts: 352
Location: USA
Unread post 
big12ozHOG wrote:
lol people still using that old bot?

Looks like it will be around longer than you.
Unless your planing on comeing back.   

_________________
It's a game. Have fun!
Desert Fox / Tommy Gunn
Member of Phoenix Rising


Mon Feb 26, 2007 7:26 am
Profile ICQ
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 
big12ozHOG wrote:
lol people still using that old bot?


My first use of it was in the recent turns game. I had seen people use it, but had never tried it myself. Once I got to looking at it, I realized that it was a very good script to have around and had a couple of possibilities - esp for a TL game.

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Mon Feb 26, 2007 8:27 am
Profile ICQ
Lieutenant

Joined: Sun Nov 07, 2004 3:00 am
Posts: 588
Location: USA
Unread post 
Laff Oz is still lurking around...

The timedlogin was very nice for the timelimit game, I know I used it alot, very helpful. Thanks Prom...


Mon Feb 26, 2007 2:32 pm
Profile
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post 
OZ The reason that people are still using that bot is because there is not much out there that is better. Take that as a compliment/insult your choice. As someone that has come by a collections of your scripts nefariously I want to give you a "Warm Fuzzy" and say Thanks.

I have modded some of your scripts to fit a situation and I have not given you proper KUDO's Well let me fix that I appreciate your contribution to TW and to TWXProxy (even though you did blow BG2.X or was it 3.X) your motives to me were honorable.
You were trying to get an edge, and I do not fault anyone for trying to get an edge. Your scripting style is one that I can understand and read through and I believe that if you wanted to come back and return to scripting your scripts with the improvements made to TWXProxy would rock and roll over our attempts to duplicate your genius.

Thank you 12ozHog and I could be converted over to drinking Coors if you can just kill that Darn Hamms* bear.

*For a little history lesson Hamms beer had a cute little bear for a "spokesperson" that had a peculiar sort of cuteness to him. (BTW the beer sucked but the bear was OK)

Alright now someone is gonna bring up old beer commercials that they thought was bad/cute/outrageous well lets go.

_________________
Find out just what any people will quietly submit to and you have the exact measure of the injustice and wrong which will be imposed on them. Frederick Douglas


Mon Feb 26, 2007 11:05 pm
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: Google [Bot] and 34 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.