浏览代码

Initial Commit

Gogs 4 年之前
父节点
当前提交
bc56c8b5c9
共有 4 个文件被更改,包括 199 次插入0 次删除
  1. 71 0
      LAUNCH EQ2EMU.bat
  2. 64 0
      Options.bat
  3. 2 0
      options/dangerous.sql
  4. 62 0
      options/reset.bat

+ 71 - 0
LAUNCH EQ2EMU.bat

@@ -0,0 +1,71 @@
+@echo off
+SET NAME=Zeklabs.com
+rem SQLDATE Will update, the EQ2Emu World DB. 1 for on, anything else for off.
+rem EXEDATE Wull update, EXE files. 1 for on, anything else for off.
+rem LUADATE Wull update, LUA files. 1 for on, anything else for off.
+rem MAPDATE Wull update, MAP files. 1 for on, anything else for off.
+rem strange name, It was supposed to be SQLUDATE etc but u got lost in the black whole that is my mind.
+rem ALL UPDATE OPTIONS ARE DESTRUCTIVE AND WILL DELETE YOUR DATA
+SET SQLDATE=1
+SET EXEDATE=1
+SET LUADATE=1
+SET MAPDATE=1
+TITLE %NAME%
+COLOR 0E
+
+
+if /I "%SQLDATE%" EQU "1" echo [Checking for SQL Updates and Downloading]
+if /I "%SQLDATE%" EQU "1" wget -q -N https://zeklabs.com/dl/eq2emudb.rar
+if /I "%SQLDATE%" EQU "1" unrar x -y -inul eq2emudb.rar
+if /I "%SQLDATE%" EQU "1" echo [Completed Dwonload of SQL Updates]
+
+if /I "%EXEDATE%" EQU "1" echo [Checking for EXE Updates]
+if /I "%EXEDATE%" EQU "1" cd server
+if /I "%EXEDATE%" EQU "1" wget -q -nc http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/EQ2Login__Debug64.exe
+if /I "%EXEDATE%" EQU "1" wget -q -nc http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/ EQ2World__Debug_x64.exe
+if /I "%EXEDATE%" EQU "1" echo [Completed EXE Updates]
+if /I "%EXEDATE%" EQU "1" cd ..
+
+if /I "%LUADATE%" EQU "1" echo [Checking for LUA Updates]
+if /I "%LUADATE%" EQU "1" echo [This will take a moment due to number of files]
+if /I "%LUADATE%" EQU "1" cd server
+if /I "%LUADATE%" EQU "1" wget -q -N https://zeklabs.com/dl/eq2emulua.rar
+if /I "%LUADATE%" EQU "1" ..\unrar x -y -inul eq2emulua.rar
+if /I "%LUADATE%" EQU "1" del eq2emulua.rar
+if /I "%LUADATE%" EQU "1" echo [Completed LUA Updates]
+if /I "%LUADATE%" EQU "1" cd ..
+
+if /I "%MAPDATE%" EQU "1" echo [Checking for MAP Updates]
+if /I "%MAPDATE%" EQU "1" echo [This will take a moment due to LARGE map size]
+if /I "%MAPDATE%" EQU "1" cd server
+if /I "%MAPDATE%" EQU "1" ..\wget -q -N https://zeklabs.com/dl/eq2emumaps.rar
+if /I "%MAPDATE%" EQU "1" ..\unrar x -y -inul eq2emumaps.rar
+if /I "%MAPDATE%" EQU "1" del eq2emumaps.rar
+if /I "%MAPDATE%" EQU "1" echo [Completed MAP Updates]
+if /I "%MAPDATE%" EQU "1" cd ..\
+
+
+echo [Loading MariaDB]
+cd mariadb\bin
+start db.bat
+echo [You Can Press Any Key To Continue Once MYSQL has Completed Loading]
+timeout /t 60
+echo [MariaDB Loaded]
+cd ..
+cd..
+
+if /I "%SQLDATE%" EQU "1" echo [Importing DB Update]
+if /I "%SQLDATE%" EQU "1" cd mariadb\bin\
+if /I "%SQLDATE%" EQU "1" rem mysql -ueq2emu -peq2emu --database=eq2emu <..\..\eq2emu.sql
+if /I "%SQLDATE%" EQU "1" cd ..
+if /I "%SQLDATE%" EQU "1" cd ..
+if /I "%SQLDATE%" EQU "1" del eq2emudb.rar
+if /I "%SQLDATE%" EQU "1" del eq2emu.sql
+if /I "%SQLDATE%" EQU "1" echo [Completed DB Update]
+
+
+echo [Starting World And Login]
+start srvls.bat
+start srvwrld.bat
+
+rem exit

+ 64 - 0
Options.bat

@@ -0,0 +1,64 @@
+@echo off
+rem OPTION Will update, the EQ2Emu World DB. 1 for on, anything else for off.
+rem Variables and Data
+SET NAME=ZekLabs.com
+TITLE %NAME%
+COLOR 0E
+
+rem start of the menu loop. exit after user input proccessed.
+:menu
+echo [ EQ2EMu Zeklabs Build Options ]
+echo 1) Update SQL.
+echo 2) Update LUA.
+echo 3) Update EXEs.
+echo 4) Update MAPs.
+echo 5) Full Rebuild (update DB/LUA/SQL/MAPS after delete. This will take a long time.).
+echo 6) Exit.
+
+set /p option=What would you like to do? 
+
+rem Parse User input.
+if /I "%OPTION%" EQU "1" echo [Checking for SQL Updates]
+rem if /I "%OPTION%" EQU "1" wget -q -N https://zeklabs.com/dl/eq2emudb.rar
+rem if /I "%OPTION%" EQU "1" unrar x -y -inul eq2emudb.rar
+if /I "%OPTION%" EQU "1" echo [Completed SQL Updates]
+
+if /I "%OPTION%" EQU "2" echo [Checking for LUA Updates]
+if /I "%OPTION%" EQU "2" echo [This will take a moment due to number of files]
+if /I "%OPTION%" EQU "2" cd server
+if /I "%OPTION%" EQU "2" wget -q -N https://zeklabs.com/dl/eq2emulua.rar
+if /I "%OPTION%" EQU "2" ..\unrar x -y -inul eq2emulua.rar
+if /I "%OPTION%" EQU "2" del eq2emulua.rar
+if /I "%OPTION%" EQU "2" echo [Completed LUA Updates]
+if /I "%OPTION%" EQU "2" cd ..
+
+if /I "%OPTION%" EQU "3" echo [Checking for EXE Updates]
+if /I "%OPTION%" EQU "3" cd server
+if /I "%OPTION%" EQU "3" wget -q -nc http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/EQ2Login__Debug64.exe
+if /I "%OPTION%" EQU "3" wget -q -nc http://cutpon.com:3000/devn00b/EQ2EMu/raw/master/server/ EQ2World__Debug_x64.exe
+if /I "%OPTION%" EQU "3" echo [Completed EXE Updates]
+if /I "%OPTION%" EQU "3" cd ..
+
+if /I "%OPTION%" EQU "4" echo [Checking for MAP Updates]
+if /I "%OPTION%" EQU "4" echo [This will take a moment due to LARGE map size]
+if /I "%OPTION%" EQU "4" cd server
+if /I "%OPTION%" EQU "4" ..\wget -q -N --show-progress --progress=bar:force:noscroll https://zeklabs.com/dl/eq2emumaps.rar
+if /I "%OPTION%" EQU "4" echo [Begining Extraction of MAPs]
+if /I "%OPTION%" EQU "4" ..\unrar x -y -inul eq2emumaps.rar
+if /I "%OPTION%" EQU "4" del eq2emumaps.rar
+if /I "%OPTION%" EQU "4" echo [Completed MAP Updates]
+if /I "%OPTION%" EQU "4" cd ..\
+
+if /I "%OPTION%" EQU "5" echo [Starting the reset script]
+if /I "%OPTION%" EQU "5" cd options
+if /I "%OPTION%" EQU "5" start reset.bat
+
+rem exit script
+if /I "%OPTION%" EQU "6" goto:eof
+
+rem User input complete actions completed or are running in another window lets return to the menu for more options
+goto menu
+rem start srvls.bat
+rem start srvwrld.bat
+
+rem exit

+ 2 - 0
options/dangerous.sql

@@ -0,0 +1,2 @@
+drop database eq2emu;
+create database eq2emu;

+ 62 - 0
options/reset.bat

@@ -0,0 +1,62 @@
+@echo off
+rem OPTION Will update, the EQ2Emu World DB. 1 for on, anything else for off.
+rem Variables and Data
+SET NAME=ZekLabs.com
+TITLE %NAME%
+COLOR 0E
+
+echo [Downloading SQL Wipe.]
+echo [Download of SQL Wipe Complete.]
+echo [Removing SQL Database.]
+copy dangerous.sql ..\mariadb\bin
+cd ..\mariadb\bin\
+mysql -ueq2emu -peq2emu <dangerous.sql
+del dangerous.sql
+cd ..\..
+echo [You now have an empty database.]
+
+echo [Getting a NEW DB to fill it with.]
+wget -q -N --show-progress --progress=bar:force:noscroll https://zeklabs.com/dl/eq2emudb.rar
+echo [Extracting NEW DB]
+unrar x -y -inul eq2emudb.rar
+
+echo [Importing New DB.]
+cd mariadb\bin\
+mysql -ueq2emu -peq2emu --database=eq2emu < ..\..\eq2emu.sql
+cd ..\..
+del eq2emudb.rar
+del eq2emu.sql
+echo [DB Import Completed.]
+
+echo [Removing LUA files.]
+cd server\lua
+rmdir . /s /q
+cd ..\..
+echo [The Above error is expected and will not cause issues]
+echo [All LUA files Deleted.]
+
+echo [Getting LUA Files.]
+echo [This will take a moment due to number of files]
+cd server
+wget -q -N https://zeklabs.com/dl/eq2emulua.rar
+..\unrar x -y -inul eq2emulua.rar
+del eq2emulua.rar
+echo [Completed LUA Updates]
+cd ..
+
+echo [Removing old Maps and Navs.]
+cd server\maps
+del /q *.eq2map
+rmdir nav /q
+cd ..\..
+echo [All Maps/Navs Deleted.]
+
+echo [Checking for MAP Updates]
+echo [This will take a moment due to LARGE map size]
+cd server
+..\wget -q -N --show-progress --progress=bar:force:noscroll https://zeklabs.com/dl/eq2emumaps.rar
+echo [Begining Extraction of MAPs]
+..\unrar x -y -inul eq2emumaps.rar
+del eq2emumaps.rar
+echo [Completed MAP Updates]
+cd ..\