Quote:
Originally Posted by Dr. Peacock
Try this one, it works without any Error / Start Failures.
Code:
@echo off
:commands
cls
color 0f
echo ----------------------------------------------------------
echo.
echo PGuard - FlyFF PServer Tool 2018!
echo.
echo ----------------------------------------------------------
echo [PGuard] If you want to Start the Server = Press [ 1 ]
echo [PGuard] If you want to Stop the Server = Press [ 2 ]
echo [PGuard] If you want to Restart the Server = Press [ 3 ]
echo ----------------------------------------------------------
echo If you need some help with the Program? = Press [ 4 ]
echo ----------------------------------------------------------
echo Please type your Commmand!
set /p command=
if '%command%' == 'Start' goto Start
if '%command%' == 'start' goto Start
if '%command%' == '1' goto Start
if '%command%' == 'Stop' goto Stop
if '%command%' == 'stop' goto Stop
if '%command%' == '2' goto Stop
if '%command%' == 'Restart' goto Restart
if '%command%' == 'restart' goto Restart
if '%command%' == '3' goto Restart
if '%command%' == 'Help' goto Help
if '%command%' == 'help' goto help
if '%command%' == '4' goto help
goto commands
:Start
Color 4f
echo ---------------------------
echo Starting Account Server...
start /min 1.AccountServer.exe
ping 1.1.1.1 -n 1 -w 2000>nul
echo Starting Database Server...
start /min 2.DatabaseServer.exe
ping 1.1.1.1 -n 1 -w 12000>nul
echo Starting Core Server...
start /min 3.CoreServer.exe
ping 1.1.1.1 -n 1 -w 4000>nul
echo Starting Certifier...
start /min 4.Certifier.exe
ping 1.1.1.1 -n 1 -w 4000>nul
echo Starting Cache Server...
start /min 5.CacheServer.exe
ping 1.1.1.1 -n 1 -w 4000>nul
echo Starting Login Server....
start /min 6.LoginServer.exe
ping 1.1.1.1 -n 1 -w 4000>nul
echo Starting World Server...
start /min 7.WorldServer.exe
ping 1.1.1.1 -n 1 -w 6000>nul
color 2f
echo -----------------------------
echo [PGuard] Server Files loaded!
echo -----------------------------
ping 1.1.1.1 -n 1 -w 4000>nul
goto commands
:Restart
Color 4f
echo -----------------------------
taskkill /im 1.AccountServer.exe
taskkill /im 2.DatabaseServer.exe
taskkill /im 3.CoreServer.exe
taskkill /im 4.Certifier.exe
taskkill /im 5.CacheServer.exe
taskkill /im 6.LoginServer.exe
taskkill /im 7.WorldServer.exe
echo ---------------------------
echo [PGuard] Server Restarting!
echo ---------------------------
goto start
:stop
Color 4f
echo -----------------------------
taskkill /im 1.AccountServer.exe
taskkill /im 2.DatabaseServer.exe
taskkill /im 3.CoreServer.exe
taskkill /im 4.Certifier.exe
taskkill /im 5.CacheServer.exe
taskkill /im 6.LoginServer.exe
taskkill /im 7.WorldServer.exe
echo -----------------------
echo [PGuard] Server Closed!
echo -----------------------
ping 1.1.1.1 -n 1 -w 1000>nul
goto commands
:help
echo.
echo.
echo.
echo ---------------------------------
echo It seems that you have a problem!
echo ---------------------------------
echo.
echo Do you run the following Programms as Administrator?
echo and are you sure that you have the right Programm Name?
echo.
echo Name: 1.AccountServer.exe
echo Name: 2.DatabaseServer.exe
echo Name: 3.CoreServer.exe
echo Name: 4.Certifier.exe
echo Name: 5.CacheServer.exe
echo Name: 6.LoginServer.exe
echo Name: 7.WorldServer.exe
echo.
echo --------------------------------------------
echo Thanks for using PGuard FlyFF P-Server Tool!
ping 1.1.1.1 -n 1 -w 60000>nul
goto commands
|
sir , i start my server without auto start , and my acount and wolrd server crash after a while, but it is not always , idk why