Options.bat 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 Structs.
  15. echo 6) Update Startup Script.
  16. echo 7) Full Rebuild (update DB/LUA/SQL/MAPS after delete. This will take a long time).
  17. echo x) Exit.
  18. set /p option=What would you like to do?
  19. rem Parse User input.
  20. if /I "%OPTION%" EQU "1" echo [Checking for SQL Updates]
  21. if /I "%OPTION%" EQU "1" wget -q -N --no-check-certificate https://zeklabs.com/dl/eq2emudb.rar
  22. if /I "%OPTION%" EQU "1" unrar x -y -inul eq2emudb.rar
  23. if /I "%OPTION%" EQU "1" echo [Completed SQL Updates]
  24. if /I "%OPTION%" EQU "2" echo [Checking for LUA Updates]
  25. if /I "%OPTION%" EQU "2" echo [This will take a moment due to number of files]
  26. if /I "%OPTION%" EQU "2" cd server
  27. if /I "%OPTION%" EQU "2" wget -q -N --no-check-certificate https://zeklabs.com/dl/eq2emulua.rar
  28. if /I "%OPTION%" EQU "2" ..\unrar x -y -inul eq2emulua.rar
  29. if /I "%OPTION%" EQU "2" del eq2emulua.rar
  30. if /I "%OPTION%" EQU "2" echo [Completed LUA Updates]
  31. if /I "%OPTION%" EQU "2" cd ..
  32. if /I "%OPTION%" EQU "3" echo [Checking for EXE Updates]
  33. if /I "%OPTION%" EQU "3" cd server
  34. if /I "%OPTION%" EQU "3" move EQ2Login__Debug64.exe oldfiles
  35. if /I "%OPTION%" EQU "3" move EQ2World__Debug_x64.exe oldfiles
  36. if /I "%OPTION%" EQU "3" wget -q -nc http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/EQ2Login__Debug64.exe
  37. if /I "%OPTION%" EQU "3" wget -q -nc http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/EQ2World__Debug_x64.exe
  38. if /I "%OPTION%" EQU "3" echo [Completed EXE Updates]
  39. if /I "%OPTION%" EQU "3" cd ..
  40. if /I "%OPTION%" EQU "4" echo [Checking for MAP Updates]
  41. if /I "%OPTION%" EQU "4" echo [This will take a moment due to LARGE map size]
  42. if /I "%OPTION%" EQU "4" cd server
  43. if /I "%OPTION%" EQU "4" ..\wget -q -N --show-progress --progress=bar:force:noscroll --no-check-certificate https://zeklabs.com/dl/eq2emumaps.rar
  44. if /I "%OPTION%" EQU "4" echo [Begining Extraction of MAPs]
  45. if /I "%OPTION%" EQU "4" ..\unrar x -y -inul eq2emumaps.rar
  46. if /I "%OPTION%" EQU "4" del eq2emumaps.rar
  47. if /I "%OPTION%" EQU "4" echo [Completed MAP Updates]
  48. if /I "%OPTION%" EQU "4" cd ..\
  49. if /I "%OPTION%" EQU "5" echo [Checking for Struct Updates]
  50. if /I "%OPTION%" EQU "5" cd server
  51. if /I "%OPTION%" EQU "5" move SpawnStructs.xml oldfiles/
  52. if /I "%OPTION%" EQU "5" move WorldStructs.xml oldfiles/
  53. if /I "%OPTION%" EQU "5" move EQ2_Structs.xml oldfiles/
  54. if /I "%OPTION%" EQU "5" move ItemStructs.xml oldfiles/
  55. if /I "%OPTION%" EQU "5" move LoginStructs.xml oldfiles/
  56. if /I "%OPTION%" EQU "5" move CommonStructs.xml oldfiles/
  57. if /I "%OPTION%" EQU "5" wget -q http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/SpawnStructs.xml
  58. if /I "%OPTION%" EQU "5" wget -q http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/WorldStructs.xml
  59. if /I "%OPTION%" EQU "5" wget -q http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/EQ2_Structs.xml
  60. if /I "%OPTION%" EQU "5" wget -q http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/ItemStructs.xml
  61. if /I "%OPTION%" EQU "5" wget -q http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/LoginStructs.xml
  62. if /I "%OPTION%" EQU "5" wget -q http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/CommonStructs.xml
  63. if /I "%OPTION%" EQU "5" cd ..
  64. if /I "%OPTION%" EQU "6" echo [Updating Startup Script]
  65. if /I "%OPTION%" EQU "6" del /f /q "LAUNCH EQ2EMU.bat"
  66. if /I "%OPTION%" EQU "6" wget -q --no-check-certificate "https://zeklabs.com/dl/LAUNCH EQ2EMU.rar"
  67. if /I "%OPTION%" EQU "6" unrar x -y -inul "LAUNCH EQ2EMU.rar"
  68. if /I "%OPTION%" EQU "6" del /f /q "LAUNCH EQ2EMU.rar"
  69. if /I "%OPTION%" EQU "6" echo [Updated Startup Script]
  70. if /I "%OPTION%" EQU "7" echo [Starting the reset script]
  71. if /I "%OPTION%" EQU "7" cd options
  72. if /I "%OPTION%" EQU "7" start reset.bat
  73. rem exit script
  74. if /I "%OPTION%" EQU "x" goto:eof
  75. rem User input complete actions completed or are running in another window lets return to the menu for more options
  76. goto menu
  77. rem start srvls.bat
  78. rem start srvwrld.bat
  79. exit