Options.bat 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. @echo off
  2. rem OPTION Will update, the EQ2Emu World DB. 1 for on, anything else for off.
  3. rem Variables and Data
  4. SET NAME=ZekLabs.com
  5. TITLE %NAME%
  6. COLOR 0E
  7. rem start of the menu loop. exit after user input proccessed.
  8. :menu
  9. echo [ EQ2EMu Zeklabs Build Options ]
  10. echo 1) Update SQL.
  11. echo 2) Update LUA.
  12. echo 3) Update EXEs.
  13. echo 4) Update MAPs.
  14. echo 5) Update Startup Script.
  15. echo 6) Full Rebuild (update DB/LUA/SQL/MAPS after delete. This will take a long time.).
  16. echo x) Exit.
  17. set /p option=What would you like to do?
  18. rem Parse User input.
  19. if /I "%OPTION%" EQU "1" echo [Checking for SQL Updates]
  20. if /I "%OPTION%" EQU "1" wget -q -N https://zeklabs.com/dl/eq2emudb.rar
  21. if /I "%OPTION%" EQU "1" unrar x -y -inul eq2emudb.rar
  22. if /I "%OPTION%" EQU "1" echo [Completed SQL Updates]
  23. if /I "%OPTION%" EQU "2" echo [Checking for LUA Updates]
  24. if /I "%OPTION%" EQU "2" echo [This will take a moment due to number of files]
  25. if /I "%OPTION%" EQU "2" cd server
  26. if /I "%OPTION%" EQU "2" wget -q -N https://zeklabs.com/dl/eq2emulua.rar
  27. if /I "%OPTION%" EQU "2" ..\unrar x -y -inul eq2emulua.rar
  28. if /I "%OPTION%" EQU "2" del eq2emulua.rar
  29. if /I "%OPTION%" EQU "2" echo [Completed LUA Updates]
  30. if /I "%OPTION%" EQU "2" cd ..
  31. if /I "%OPTION%" EQU "3" echo [Checking for EXE Updates]
  32. if /I "%OPTION%" EQU "3" cd server
  33. if /I "%OPTION%" EQU "3" wget -q -nc http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/EQ2Login__Debug64.exe
  34. if /I "%OPTION%" EQU "3" wget -q -nc http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/ EQ2World__Debug_x64.exe
  35. if /I "%OPTION%" EQU "3" echo [Completed EXE Updates]
  36. if /I "%OPTION%" EQU "3" cd ..
  37. if /I "%OPTION%" EQU "4" echo [Checking for MAP Updates]
  38. if /I "%OPTION%" EQU "4" echo [This will take a moment due to LARGE map size]
  39. if /I "%OPTION%" EQU "4" cd server
  40. if /I "%OPTION%" EQU "4" ..\wget -q -N --show-progress --progress=bar:force:noscroll https://zeklabs.com/dl/eq2emumaps.rar
  41. if /I "%OPTION%" EQU "4" echo [Begining Extraction of MAPs]
  42. if /I "%OPTION%" EQU "4" ..\unrar x -y -inul eq2emumaps.rar
  43. if /I "%OPTION%" EQU "4" del eq2emumaps.rar
  44. if /I "%OPTION%" EQU "4" echo [Completed MAP Updates]
  45. if /I "%OPTION%" EQU "4" cd ..\
  46. if /I "%OPTION%" EQU "5" echo [Updating Startup Script]
  47. if /I "%OPTION%" EQU "5" del /f /q "LAUNCH EQ2EMU.bat"
  48. if /I "%OPTION%" EQU "5" wget -q "https://zeklabs.com/dl/LAUNCH EQ2EMU.rar"
  49. if /I "%OPTION%" EQU "5" unrar x -y -inul"LAUNCH EQ2EMU.rar"
  50. if /I "%OPTION%" EQU "5" del /f /q "LAUNCH EQ2EMU.rar"
  51. if /I "%OPTION%" EQU "5" echo [Updated Startup Script]
  52. if /I "%OPTION%" EQU "6" echo [Starting the reset script]
  53. if /I "%OPTION%" EQU "6" cd options
  54. if /I "%OPTION%" EQU "6" start reset.bat
  55. rem exit script
  56. if /I "%OPTION%" EQU "x" goto:eof
  57. rem User input complete actions completed or are running in another window lets return to the menu for more options
  58. goto menu
  59. rem start srvls.bat
  60. rem start srvwrld.bat
  61. rem exit