PHP Code:
@echo off
Title STAR (SummerStory Timed Auto Restarter) - Created by Cruze@SummerStory
:start
color cf
echo Created by
sleep -m 500
cls
echo Created by C
sleep -m 500
cls
echo Created by Cr
sleep -m 500
cls
echo Created by Cru
sleep -m 500
cls
echo Created by Cruz
sleep -m 500
cls
echo Created by Cruze
sleep -m 500
cls
echo Created by Cruze@SummerStory
echo ----------------
sleep -m 500
echo 1. To restart the server every 2Hrs type: Auto.
echo 2. To restart the server type: Restart.
echo 3. To start server type: Run.
echo 4. To shutdown the server type: Exit.
echo 5. To shutdown this restarter type: Close.
echo ----------------
set /p c=Option:
if %c%==run goto run
if %c%==exit goto exit
if %c%==restart goto restart
if %c%==auto goto auto
if %c%==close goto close
if %c%==Run goto run
if %c%==Exit goto exit
if %c%==Restart goto restart
if %c%==Auto goto auto
if %c%==Close goto close
:run
echo Starting 'launch_world.bat'
start launch_world.bat
sleep 3
echo Starting 'launch_login.bat'
start launch_login.bat
sleep 3
echo Starting 'launch_channel.bat'
start launch_channel.bat
echo 'Run' Complete
goto start
:exit
taskkill /f /im launch_world.bat
taskkill /f /im launch_login.bat
taskkill /f /im launch_channel.bat
cls
goto start
:restart
echo Restarting ...
taskkill /f /im launch_world.bat
taskkill /f /im launch_login.bat
taskkill /f /im launch_channel.bat
echo Starting 'launch_world.bat'
start launch_world.bat
sleep 3
echo Starting 'launch_login.bat
start launch_login.bat
sleep 3
echo Starting 'launch_channel.bat
start launch_channel.bat
echo Restart Complete
cls
goto start
:auto
echo Starting 'launch_world.bat'
start launch_world.bat
sleep 3
echo Starting 'launch_login.bat'
start launch_login.bat
sleep 3
echo Starting 'launch_channel.bat'.
start launch_channel.bat
echo Server Online.
echo (2Hrs)
sleep 1800
cls
echo (1Hr & 30Min)
sleep 1800
cls
echo (1Hr)
sleep 1800
cls
echo (30Min)
sleep 1500
cls
echo (5Min)
sleep 240
cls
echo (1Min)
sleep 30
cls
echo (30Sec)
sleep 20
cls
echo (10Sec)
sleep 10
cls
echo Restarting ...
Obliterating server processes ...
taskkill /f /im launch_world.bat
taskkill /f /im launch_login.bat
taskkill /f /im launch_channel.bat
Auto restart repeating.
cls
goto auto
:close
cls
PHP Code:
@echo off
Title STAR (SummerStory Timed Auto Restarter) - Created by Cruze@SummerStory
:start
color cf
echo Created by
PING 1.1.1.1 -n 1 -w 1 >NUL
cls
echo Created by C
PING 1.1.1.1 -n 1 -w 1 >NUL
cls
echo Created by Cr
PING 1.1.1.1 -n 1 -w 1 >NUL
cls
echo Created by Cru
PING 1.1.1.1 -n 1 -w 1 >NUL
cls
echo Created by Cruz
PING 1.1.1.1 -n 1 -w 1 >NUL
cls
echo Created by Cruze
PING 1.1.1.1 -n 1 -w 1 >NUL
cls
echo Created by Cruze@SummerStory
echo ----------------
PING 1.1.1.1 -n 1 -w 1 >NUL
echo 1. To restart the server every hour type 'Auto'.
echo 2. To restart the server type 'Restart'.
echo 3. To start server type 'Run'.
echo 4. To shutdown the server type 'Exit'.
echo 5. To shutdown this restarter type 'Close'.
echo ----------------
set /p c=Option:
if %c%==run goto run
if %c%==exit goto exit
if %c%==restart goto restart
if %c%==auto goto auto
if %c%==close goto close
if %c%==Run goto run
if %c%==Exit goto exit
if %c%==Restart goto restart
if %c%==Auto goto auto
if %c%==Close goto close
:run
echo Starting 'launch_world.bat'
start launch_world.bat
echo Starting 'launch_login.bat'
start launch_login.bat
echo Starting 'launch_channel.bat'
start launch_channel.bat
echo 'Run' Complete
goto start
:exit
taskkill /f /im launch_world.bat
taskkill /f /im launch_login.bat
taskkill /f /im launch_channel.bat
cls
goto start
:restart
echo Restarting ...
taskkill /f /im launch_world.bat
taskkill /f /im launch_login.bat
taskkill /f /im launch_channel.bat
echo Starting 'launch_world.bat'
start launch_world.bat
echo Starting 'launch_login.bat
start launch_login.bat
echo Starting 'launch_channel.bat
start launch_channel.bat
echo Restart Complete
cls
goto start
:auto
echo Starting 'launch_world.bat'
start launch_world.bat
PING 1.1.1.1 -n 3 -w 3 >NUL
echo Starting 'launch_login.bat
start launch_login.bat
PING 1.1.1.1 -n 3 -w 3 >NUL
echo Starting Channel.bat
start launch_channel.bat
echo Server Online.
echo restarting server in 2Hrs.
PING 1.1.1.1 -n 7200 -w 7200 >NUL
cls
echo Restarting ...
Killing server processes ...
taskkill /f /im launch_world.bat
taskkill /f /im launch_login.bat
taskkill /f /im launch_channel.bat
Auto restart repeating.
cls
goto auto
:close
cls