Options.bat 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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) Full Rebuild (update DB/LUA/SQL/MAPS after delete. This will take a long time.).
  15. echo 6) Exit.
  16. set /p option=What would you like to do?
  17. rem Parse User input.
  18. if /I "%OPTION%" EQU "1" echo [Checking for SQL Updates]
  19. rem if /I "%OPTION%" EQU "1" wget -q -N https://zeklabs.com/dl/eq2emudb.rar
  20. rem if /I "%OPTION%" EQU "1" unrar x -y -inul eq2emudb.rar
  21. if /I "%OPTION%" EQU "1" echo [Completed SQL Updates]
  22. if /I "%OPTION%" EQU "2" echo [Checking for LUA Updates]
  23. if /I "%OPTION%" EQU "2" echo [This will take a moment due to number of files]
  24. if /I "%OPTION%" EQU "2" cd server
  25. if /I "%OPTION%" EQU "2" wget -q -N https://zeklabs.com/dl/eq2emulua.rar
  26. if /I "%OPTION%" EQU "2" ..\unrar x -y -inul eq2emulua.rar
  27. if /I "%OPTION%" EQU "2" del eq2emulua.rar
  28. if /I "%OPTION%" EQU "2" echo [Completed LUA Updates]
  29. if /I "%OPTION%" EQU "2" cd ..
  30. if /I "%OPTION%" EQU "3" echo [Checking for EXE Updates]
  31. if /I "%OPTION%" EQU "3" cd server
  32. if /I "%OPTION%" EQU "3" wget -q -nc http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/EQ2Login__Debug64.exe
  33. if /I "%OPTION%" EQU "3" wget -q -nc http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/ EQ2World__Debug_x64.exe
  34. if /I "%OPTION%" EQU "3" echo [Completed EXE Updates]
  35. if /I "%OPTION%" EQU "3" cd ..
  36. if /I "%OPTION%" EQU "4" echo [Checking for MAP Updates]
  37. if /I "%OPTION%" EQU "4" echo [This will take a moment due to LARGE map size]
  38. if /I "%OPTION%" EQU "4" cd server
  39. if /I "%OPTION%" EQU "4" ..\wget -q -N --show-progress --progress=bar:force:noscroll https://zeklabs.com/dl/eq2emumaps.rar
  40. if /I "%OPTION%" EQU "4" echo [Begining Extraction of MAPs]
  41. if /I "%OPTION%" EQU "4" ..\unrar x -y -inul eq2emumaps.rar
  42. if /I "%OPTION%" EQU "4" del eq2emumaps.rar
  43. if /I "%OPTION%" EQU "4" echo [Completed MAP Updates]
  44. if /I "%OPTION%" EQU "4" cd ..\
  45. if /I "%OPTION%" EQU "5" echo [Starting the reset script]
  46. if /I "%OPTION%" EQU "5" cd options
  47. if /I "%OPTION%" EQU "5" start reset.bat
  48. rem exit script
  49. if /I "%OPTION%" EQU "6" goto:eof
  50. rem User input complete actions completed or are running in another window lets return to the menu for more options
  51. goto menu
  52. rem start srvls.bat
  53. rem start srvwrld.bat
  54. rem exit