LAUNCH EQ2EMU.bat 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @echo off
  2. SET NAME=Zeklabs.com
  3. rem SQLDATE Will update, the EQ2Emu World DB. 1 for on, anything else for off.
  4. rem EXEDATE Wull update, EXE files. 1 for on, anything else for off.
  5. rem LUADATE Wull update, LUA files. 1 for on, anything else for off.
  6. rem MAPDATE Wull update, MAP files. 1 for on, anything else for off.
  7. rem strange name, It was supposed to be SQLUDATE etc but u got lost in the black whole that is my mind.
  8. rem ALL UPDATE OPTIONS ARE DESTRUCTIVE AND WILL DELETE YOUR DATA
  9. SET SQLDATE=1
  10. SET EXEDATE=1
  11. SET LUADATE=1
  12. SET MAPDATE=1
  13. TITLE %NAME%
  14. COLOR 0E
  15. if /I "%SQLDATE%" EQU "1" echo [Checking for SQL Updates and Downloading]
  16. if /I "%SQLDATE%" EQU "1" wget -q -N https://zeklabs.com/dl/eq2emudb.rar
  17. if /I "%SQLDATE%" EQU "1" unrar x -y -inul eq2emudb.rar
  18. if /I "%SQLDATE%" EQU "1" echo [Completed Dwonload of SQL Updates]
  19. if /I "%EXEDATE%" EQU "1" echo [Checking for EXE Updates]
  20. if /I "%EXEDATE%" EQU "1" cd server
  21. if /I "%EXEDATE%" EQU "1" wget -q -nc http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/EQ2Login__Debug64.exe
  22. if /I "%EXEDATE%" EQU "1" wget -q -nc http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/ EQ2World__Debug_x64.exe
  23. if /I "%EXEDATE%" EQU "1" echo [Completed EXE Updates]
  24. if /I "%EXEDATE%" EQU "1" cd ..
  25. if /I "%LUADATE%" EQU "1" echo [Checking for LUA Updates]
  26. if /I "%LUADATE%" EQU "1" echo [This will take a moment due to number of files]
  27. if /I "%LUADATE%" EQU "1" cd server
  28. if /I "%LUADATE%" EQU "1" wget -q -N https://zeklabs.com/dl/eq2emulua.rar
  29. if /I "%LUADATE%" EQU "1" ..\unrar x -y -inul eq2emulua.rar
  30. if /I "%LUADATE%" EQU "1" del eq2emulua.rar
  31. if /I "%LUADATE%" EQU "1" echo [Completed LUA Updates]
  32. if /I "%LUADATE%" EQU "1" cd ..
  33. if /I "%MAPDATE%" EQU "1" echo [Checking for MAP Updates]
  34. if /I "%MAPDATE%" EQU "1" echo [This will take a moment due to LARGE map size]
  35. if /I "%MAPDATE%" EQU "1" cd server
  36. if /I "%MAPDATE%" EQU "1" ..\wget -q -N https://zeklabs.com/dl/eq2emumaps.rar
  37. if /I "%MAPDATE%" EQU "1" ..\unrar x -y -inul eq2emumaps.rar
  38. if /I "%MAPDATE%" EQU "1" del eq2emumaps.rar
  39. if /I "%MAPDATE%" EQU "1" echo [Completed MAP Updates]
  40. if /I "%MAPDATE%" EQU "1" cd ..\
  41. echo [Loading MariaDB]
  42. cd mariadb\bin
  43. start db.bat
  44. echo [You Can Press Any Key To Continue Once MYSQL has Completed Loading]
  45. timeout /t 60
  46. echo [MariaDB Loaded]
  47. cd ..
  48. cd..
  49. if /I "%SQLDATE%" EQU "1" echo [Importing DB Update]
  50. if /I "%SQLDATE%" EQU "1" cd mariadb\bin\
  51. if /I "%SQLDATE%" EQU "1" mysql -ueq2emu -peq2emu --database=eq2emu <..\..\eq2emu.sql
  52. if /I "%SQLDATE%" EQU "1" cd ..
  53. if /I "%SQLDATE%" EQU "1" cd ..
  54. if /I "%SQLDATE%" EQU "1" del eq2emudb.rar
  55. if /I "%SQLDATE%" EQU "1" del eq2emu.sql
  56. if /I "%SQLDATE%" EQU "1" echo [Completed DB Update]
  57. echo [Starting World And Login]
  58. start srvls.bat
  59. start srvwrld.bat
  60. rem exit