View unanswered posts | View active topics It is currently Tue Apr 21, 2026 1:22 pm



Reply to topic  [ 4 posts ] 
 Automatically Open Closed Games 
Author Message
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 
The script below is a kludge, but it seems to work. It was written fairly quickly and given minimal testing.

Additions to the script should include a relog in the event you drop connection with your server that would relog into the admin screen.

Code:
# t-editOpenGames.ts
# automatically open closed games
# Log into through Admin mode and run
# a kludge of a script by Promethius


setVar $games "Not Set"
setVar $time "Not Set"

:menu
echo ANSI_11 "**(1)  Enter the game(s) to be opened. "  ANSI_15 $games
echo ANSI_11 "*(2)  Enter the time to be opened.  " ANSI_15 $time
echo ANSI_13 "*(S)  Start script"
echo ANSI_12 "*(Q)  Abort script*"
getConsoleInput  $menuChoice singlekey
lowercase $menuChoice

if ($menuChoice = 1)
   setVar $games ""
   setVar $i 1
   setVar $cnt 1
   while ($i <> 0)
     echo ansi_12 "*Enter Game Letter for game " ANSI_15 $cnt ANSI_12 " to open or" ansi_9 " 0 " ANSI_12 "to finish"
     getConsoleInput  $i singlekey
     add $cnt 1
     if ($i <> 0)
        setVar $games $games & $i & " "
     else
        goto :menu
     end
   end
elseif ($menuChoice = 2)
     echo "*Enter the hour to open the game and press enter"
     getConsoleInput $hour
     echo "*Enter the minutes to open the game in mm (00, 30)"
     getConsoleInput $minutes
     echo "*Enter is this AM or PM (a/p)?"
     getConsoleInput $amPM singlekey
     setVar $time $hour & ":" & $minutes & " " & $amPM
elseif ($menuChoice = "s") and ($time <> "Not Set") and ($games <> "Not Set")
     goto :begin
elseif ($menuChoice = "q")
     halt
end

goto :menu

:begin
  gettime $now "h mm a/p"
  getword $now $nowHour 1
  getword $now $nowMin 2
  getWord $now $nowAP 3
  if ($nowhour = $hour) and ($nowMin >= $minutes) and ($nowAP = $amPM)
     goto :opengames
  else
     setDelayTrigger delay :myDelay 10000
     pause
     :myDelay
     send "?"
     goto :begin
  end

  :opengames
   killtrigger myDelay
   setVar $arrayCnt 1
   getword $games $gameLetter $arrayCnt
   while ($gameLetter <> 0)
   send $gameLetter
   setTextTrigger inEdit :inEdit "Trade Wars 2002 Editor"
   pause
   :inEdit
   send "h"
   waitfor "General Editor Two"
   send "["
   waitfor "Should this be a"
   send "n"
    waitfor "General Editor Two"
    send "q"
    waitfor "Trade Wars 2002 Editor"
    send "q"
    setTextTrigger adminMenu :adminMenu "Selection (?"
    pause
    :adminMenu
    add $arrayCnt 1
    getWord $games $gameLetter $arrayCnt
   end

_________________
               / Promethius / Enigma / Wolfen /

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


Sun Aug 12, 2007 10:29 pm
Profile ICQ
Lieutenant

Joined: Fri Apr 05, 2002 3:00 am
Posts: 580
Location: USA
Unread post 
One thing I miss is there was a script that moved Space Dock every few minutes. It was cool in the old Campus Party Death Match Games.

Those were the days

_________________
My scripts can be downloaded at http://www.grimytrader.com/.
Ore *****.
Even in my signature it's blocked out.


Tue Aug 14, 2007 6:07 pm
Profile ICQ YIM
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
Wildstar wrote:
One thing I miss is there was a script that moved Space Dock every few minutes. It was cool in the old Campus Party Death Match Games.

Those were the days


I came across a script and plan to add to a game in our next rebang cycle. It moved a planet. I heard it was fun, so I am going to give it a whirl. Could you tell me where to locate the script to move StarDock? I find that to be very interesting.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Tue Aug 14, 2007 8:15 pm
Profile
Gameop
User avatar

Joined: Thu Aug 24, 2006 2:00 am
Posts: 1737
Location: USA
Unread post 
Wildstar wrote:
One thing I miss is there was a script that moved Space Dock every few minutes. It was cool in the old Campus Party Death Match Games.

Those were the days

Wow, that would be kinda cool!  Wonder if the roaming planet script could be modified?

_________________
American soldiers don't fight because they hate what's in front of them...they fight because they love what's behind them.
http://www.runawayproton.com <-- Expired
telnet://runawayproton.dyndns.org:223 V2.20b Games <-- Expired
http://www.twsubspace.com <-- Expired
Teamspeak 3 50.23.212.53:4196 <-- Expired
Just a has been now.


Wed Aug 15, 2007 10:34 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 7 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.