Alternative database installer.

This commit is contained in:
mobius
2015-01-01 23:19:30 +00:00
parent 4bfdcf4dee
commit a6983133c3
456 changed files with 173 additions and 6832 deletions

View File

@@ -1,14 +0,0 @@
-- These queries are meant to delete any communityserver table you may have from
-- previous L2J installations.
--
-- Queries that create these tables and/or populate them apropiately are
-- available in the ../cb_sql/ folder. See the documentation.txt file
-- for more details.
DROP TABLE IF EXISTS
clan_introductions,
comments,
forums,
registered_gameservers,
posts,
topics;

View File

@@ -1,899 +1,93 @@
@echo off
REM ##############################################
REM ## L2JDP Database Installer - (by DrLecter) ##
REM ##############################################
REM ## Interactive script setup - (by TanelTM) ##
REM ##############################################
REM Copyright (C) 2004-2013 L2J DataPack
REM
REM This file is part of L2J DataPack.
REM
REM L2J DataPack is free software: you can redistribute it and/or modify
REM it under the terms of the GNU General Public License as published by
REM the Free Software Foundation, either version 3 of the License, or
REM (at your option) any later version.
REM
REM L2J DataPack is distributed in the hope that it will be useful,
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
REM General Public License for more details.
REM
REM You should have received a copy of the GNU General Public License
REM along with this program. If not, see <http://www.gnu.org/licenses/>.
set config_file=vars.txt
set config_version=0
set workdir="%cd%"
set full=0
set stage=0
set logging=0
set upgrade_mode=0
set backup=.
set logdir=.
set safe_mode=1
set cmode=c
set fresh_setup=0
:loadconfig
@Echo off
TITLE Mobius Project - Database Installer
cls
title L2JDP Installer - Reading Configuration from File...
if not exist %config_file% goto configure
ren %config_file% vars.bat
call vars.bat
ren vars.bat %config_file%
call :colors 17
if /i %config_version% == 2 goto ls_backup
set upgrade_mode=2
echo It seems to be the first time you run this version of
echo database_installer but I found a settings file already.
echo I'll hopefully ask this questions just once.
echo.
echo Configuration upgrade options:
echo.
echo (1) Import and continue: I'll read your old settings and
echo continue execution, but since no new settings will be
echo saved, you'll see this menu again next time.
echo.
echo (2) Import and configure: This tool has some new available
echo options, you choose the values that fit your needs
echo using former settings as a base.
echo.
echo (3) Ignore stored settings: I'll let you configure me
echo with a fresh set of default values as a base.
echo.
echo (4) View saved settings: See the contents of the config
echo file.
echo.
echo (5) Quit: Did you came here by mistake?
echo.
set /P upgrade_mode="Type a number, press Enter (default is '%upgrade_mode%'): "
if %upgrade_mode%==1 goto ls_backup
if %upgrade_mode%==2 goto configure
if %upgrade_mode%==3 goto configure
if %upgrade_mode%==4 (cls&type %config_file%&pause&goto loadconfig)
if %upgrade_mode%==5 goto :eof
goto loadconfig
echo This script will help you install the server database.
echo To continue, press the space bar to exit Ctrl + C
pause > nul
echo ======================================================================
echo Checks environment ...
mysql --help >nul 2>nul
if errorlevel 1 goto nomysql
echo - MySQL... ok
echo ======================================================================
echo Database installer is ready.
echo Please perform the initial configuration
echo ======================================================================
set DO_INSTALL=Y
set /P DO_INSTALL=Install the login server [Y/n]
if "%DO_INSTALL%"=="N" goto installgame
if "%DO_INSTALL%"=="n" goto installgame
set INSTALL_MODE=login
:prepare
set DB_HOST=localhost
set DB_USER=root
set DB_PASSWORD=
set DB_NAME=lineage2
:step2
:colors
if /i "%cmode%"=="n" (
if not "%1"=="17" ( color F ) else ( color )
) else ( color %1 )
goto :eof
set /P DB_HOST=The database server [%DB_HOST%]:
:configure
set /P DB_USER=User DB [%DB_USER%]:
set /P DB_PASSWORD=The %DB_USER% user password:
set /P DB_NAME=DB name [%DB_NAME%]:
SET MYSQL_PARAM=-u %DB_USER% -h %DB_HOST%
if NOT "%DB_PASSWORD%"=="" SET MYSQL_PARAM=%MYSQL_PARAM% --password=%DB_PASSWORD%
echo exit | mysql %MYSQL_PARAM% >nul 2>nul
if errorlevel 1 goto dberror
echo exit | mysql %MYSQL_PARAM% %DB_NAME% >nul 2>nul
if errorlevel 1 goto dbnotexists
goto install
:dbnotexists
echo The database %DB_NAME% does not exist!
set ANSWER=Y
set /P ANSWER=Create it [Y/n]?
if "%ANSWER%"=="y" goto createdb
if "%ANSWER%"=="Y" goto createdb
goto step2
:createdb
echo create database %DB_NAME% charset=utf8; | mysql %MYSQL_PARAM%
if errorlevel 1 goto dberror
goto install
:dberror
echo ! Can not connect to the database. Check the connection settings!
goto step2
:install
cls
call :colors 17
title L2JDP Installer - Setup
set config_version=2
if NOT %upgrade_mode% == 2 (
set fresh_setup=1
set mysqlBinPath=%ProgramFiles%\MySQL\MySQL Server 5.6\bin
set lsuser=root
set lspass=
set lsdb=l2jls
set lshost=localhost
set cbuser=root
set cbpass=
set cbdb=l2jcs
set cbhost=localhost
set gsuser=root
set gspass=
set gsdb=l2jgs
set gshost=localhost
set cmode=c
set backup=.
set logdir=.
)
set mysqlPath=%mysqlBinPath%\mysql.exe
echo New settings will be created for this tool to run in
echo your computer, so I need to ask you some questions.
echo.
echo 1-MySql Binaries
echo --------------------
echo In order to perform my tasks, I need the path for commands
echo such as 'mysql' and 'mysqldump'. Both executables are
echo usually stored in the same place.
echo.
if "%mysqlBinPath%" == "" (
set mysqlBinPath=use path
echo I can't determine if the binaries are available with your
echo default settings.
) else (
echo I can try to find out if the current setting actually works...
echo.
echo %mysqlPath%
)
if not "%mysqlBinPath%" == "use path" call :binaryfind
echo.
path|find "MySQL">NUL
if %errorlevel% == 0 (
echo I found MySQL is in your PATH, this will be used by default.
echo If you want to use something different, change 'use path' for
echo something else.
set mysqlBinPath=use path
) else (
echo Look, I can't find "MYSQL" in your PATH environment variable.
echo It would be good if you go and find out where "mysql.exe" and
echo "mysqldump.exe" are.
echo.
echo If you have no idea about the meaning of words such as MYSQL
echo or PATH, you'd better close this window, and consider googling
echo and reading about it. Setup and host an L2J server requires a
echo minimum of technical skills.
)
echo.
echo Write the path to your MySQL binaries (no trailing slash needed):
set /P mysqlBinPath="(default %mysqlBinPath%): "
cls
echo.
echo 2-Login Server settings
echo -----------------------
echo In order to connect to the MySQL Server, you should
echo specify the Login Server DataBase parameters here.
echo.
set /P lsuser="MySQL Username (default is '%lsuser%'): "
set /P lspass="Password (default is '%lspass%'): "
set /P lsdb="Database (default is '%lsdb%'): "
set /P lshost="Host (default is '%lshost%'): "
echo.
cls
echo.
echo 3-Community Server settings
echo ---------------------------
echo In order to connect to the MySQL Server, you should
echo specify the Community Server DataBase parameters here.
echo.
set /P cbuser="MySQL Username (default is '%cbuser%'): "
set /P cbpass="Password (default is '%cbpass%'): "
set /P cbdb="Database (default is '%cbdb%'): "
set /P cbhost="Host (default is '%cbhost%'): "
echo.
cls
echo.
echo 4-Game Server settings
echo ----------------------
echo In order to connect to the MySQL Server, you should
echo specify the Game Server DataBase parameters here.
echo.
set /P gsuser="User (default is '%gsuser%'): "
set /P gspass="Pass (default is '%gspass%'): "
set /P gsdb="Database (default is '%gsdb%'): "
set /P gshost="Host (default is '%gshost%'): "
echo.
cls
echo.
echo 5-Misc. settings
echo --------------------
set /P cmode="Color mode (c)olor or (n)on-color, default %cmode% : "
set /P backup="Path for your backups (default '%backup%'): "
set /P logdir="Path for your logs (default '%logdir%'): "
:safe1
set safemode=y
set /P safemode="Debugging messages and increase verbosity a lil bit (y/n, default '%safemode%'): "
if /i %safemode%==y (set safe_mode=1&goto safe2)
if /i %safemode%==n (set safe_mode=0&goto safe2)
goto safe1
:safe2
cls
echo.
if "%mysqlBinPath%" == "use path" (
set mysqlBinPath=
set mysqldumpPath=mysqldump
set mysqlPath=mysql
) else (
set mysqldumpPath=%mysqlBinPath%\mysqldump.exe
set mysqlPath=%mysqlBinPath%\mysql.exe
)
echo @echo off > %config_file%
echo set config_version=%config_version% >> %config_file%
echo set cmode=%cmode%>> %config_file%
echo set safe_mode=%safe_mode% >> %config_file%
echo set mysqlPath=%mysqlPath%>> %config_file%
echo set mysqlBinPath=%mysqlBinPath%>> %config_file%
echo set mysqldumpPath=%mysqldumpPath%>> %config_file%
echo set lsuser=%lsuser%>> %config_file%
echo set lspass=%lspass%>> %config_file%
echo set lsdb=%lsdb%>> %config_file%
echo set lshost=%lshost% >> %config_file%
echo set cbuser=%cbuser%>> %config_file%
echo set cbpass=%cbpass%>> %config_file%
echo set cbdb=%cbdb%>> %config_file%
echo set cbhost=%cbhost% >> %config_file%
echo set gsuser=%gsuser%>> %config_file%
echo set gspass=%gspass%>> %config_file%
echo set gsdb=%gsdb%>> %config_file%
echo set gshost=%gshost%>> %config_file%
echo set logdir=%logdir%>> %config_file%
echo set backup=%backup%>> %config_file%
echo.
echo Script setup complete, your settings were saved in the
echo '%config_file%' file. Remember: your passwords are stored
echo as clear text.
echo.
pause
goto loadconfig
:ls_backup
cls
call :colors 17
set cmdline=
set stage=1
title L2JDP Installer - Login Server DataBase Backup
echo.
echo Trying to make a backup of your Login Server DataBase.
set cmdline="%mysqldumpPath%" --add-drop-table -h %lshost% -u %lsuser% --password=%lspass% %lsdb% ^> "%backup%\ls_backup.sql" 2^> NUL
%cmdline%
if %ERRORLEVEL% == 0 goto ls_db_ok
:ls_err1
cls
set lsdbprompt=y
call :colors 47
title L2JDP Installer - Login Server DataBase Backup ERROR!
echo.
echo Backup attempt failed! A possible reason for this to
echo happen, is that your DB doesn't exist yet. I could
echo try to create %lsdb% for you, or maybe you prefer to
echo continue with the Community Server part of this tool.
echo.
echo ATTEMPT TO CREATE LOGINSERVER DATABASE:
echo.
echo (y) Yes
echo.
echo (n) No
echo.
echo (r) Reconfigure
echo.
echo (q) Quit
echo.
set /p lsdbprompt=Choose (default yes):
if /i %lsdbprompt%==y goto ls_db_create
if /i %lsdbprompt%==n goto cs_backup
if /i %lsdbprompt%==r goto configure
if /i %lsdbprompt%==q goto end
goto ls_err1
:ls_db_create
cls
call :colors 17
set cmdline=
set stage=2
title L2JDP Installer - Login Server DataBase Creation
echo.
echo Trying to create a Login Server DataBase.
set cmdline="%mysqlPath%" -h %lshost% -u %lsuser% --password=%lspass% -e "CREATE DATABASE %lsdb%" 2^> NUL
%cmdline%
if %ERRORLEVEL% == 0 goto ls_db_ok
if %safe_mode% == 1 goto omfg
:ls_err2
cls
set omfgprompt=q
call :colors 47
title L2JDP Installer - Login Server DataBase Creation ERROR!
echo.
echo An error occured while trying to create a database for
echo your login server.
echo.
echo Possible reasons:
echo 1-You provided inaccurate info , check user, password, etc.
echo 2-User %lsuser% don't have enough privileges for
echo database creation. Check your MySQL privileges.
echo 3-Database exists already...?
echo.
echo Unless you're sure that the pending actions of this tool
echo could work, i'd suggest you to look for correct values
echo and try this script again later.
echo.
echo (c) Continue running
echo.
echo (r) Reconfigure
echo.
echo (q) Quit now
echo.
set /p omfgprompt=Choose (default quit):
if /i %omfgprompt%==c goto cs_backup
if /i %omfgprompt%==r goto configure
if /i %omfgprompt%==q goto end
goto ls_err2
:ls_db_ok
cls
set loginprompt=u
call :colors 17
title L2JDP Installer - Login Server DataBase WARNING!
echo.
echo LOGINSERVER DATABASE install type:
echo.
echo (f) Full: WARNING! I'll destroy ALL of your existing login
echo data.
echo.
echo (u) Upgrade: I'll do my best to preserve all login data.
echo.
echo (s) Skip: I'll take you to the communityserver database
echo installation and upgrade options.
echo.
echo (r) Reconfigure: You'll be able to redefine MySQL path,
echo user and database information and start over with
echo those fresh values.
echo.
echo (q) Quit
echo.
set /p loginprompt=Choose (default upgrade):
if /i %loginprompt%==f goto ls_cleanup
if /i %loginprompt%==u goto ls_upgrade
if /i %loginprompt%==s goto cs_backup
if /i %loginprompt%==r goto configure
if /i %loginprompt%==q goto end
goto ls_db_ok
:ls_cleanup
call :colors 17
set cmdline=
title L2JDP Installer - Login Server DataBase Full Install
echo.
echo Deleting Login Server tables for new content.
set cmdline="%mysqlPath%" -h %lshost% -u %lsuser% --password=%lspass% -D %lsdb% ^< ls_cleanup.sql 2^> NUL
%cmdline%
if not %ERRORLEVEL% == 0 goto omfg
set full=1
echo.
echo Login Server tables has been deleted.
goto ls_install
:ls_upgrade
cls
echo.
echo Upgrading structure of Login Server tables.
echo.
echo @echo off> temp.bat
if exist ls_errors.log del ls_errors.log
for %%i in (..\sql\login\updates\*.sql) do echo "%mysqlPath%" -h %lshost% -u %lsuser% --password=%lspass% -D %lsdb% --force ^< %%i 2^>^> ls_errors.log >> temp.bat
call temp.bat> nul
del temp.bat
move ls_errors.log %workdir%
goto ls_install
:ls_install
cls
set cmdline=
if %full% == 1 (
title L2JDP Installer - Login Server DataBase Installing...
echo.
echo Installing new Login Server content.
echo.
) else (
title L2JDP Installer - Login Server DataBase Upgrading...
echo.
echo Upgrading Login Server content.
echo.
)
if %logging% == 0 set output=NUL
set dest=ls
for %%i in (..\sql\login\*.sql) do call :dump %%i
echo done...
echo.
goto cs_backup
:cs_backup
cls
call :colors 17
set cmdline=
set stage=3
title L2JDP Installer - Community Server DataBase Backup
echo.
echo Trying to make a backup of your Comunity Server DataBase.
set cmdline="%mysqldumpPath%" --add-drop-table -h %cbhost% -u %cbuser% --password=%cbpass% %cbdb% ^> "%backup%\cs_backup.sql" 2^> NUL
%cmdline%
if %ERRORLEVEL% == 0 goto cs_db_ok
:cs_err1
cls
set cbdbprompt=y
call :colors 47
title L2JDP Installer - Community Server DataBase Backup ERROR!
echo.
echo Backup attempt failed! A possible reason for this to
echo happen, is that your DB doesn't exist yet. I could
echo try to create %cbdb% for you, or maybe you prefer to
echo continue with the GameServer part of this tool.
echo.
echo ATTEMPT TO CREATE COMMUNITY SERVER DATABASE:
echo.
echo (y) Yes
echo.
echo (n) No
echo.
echo (r) Reconfigure
echo.
echo (q) Quit
echo.
set /p cbdbprompt=Choose (default yes):
if /i %cbdbprompt%==y goto cs_db_create
if /i %cbdbprompt%==n goto gs_backup
if /i %cbdbprompt%==r goto configure
if /i %cbdbprompt%==q goto end
goto cs_err1
:cs_db_create
cls
call :colors 17
set cmdline=
set stage=4
title L2JDP Installer - Community Server DataBase Creation
echo.
echo Trying to create a Community Server DataBase...
set cmdline="%mysqlPath%" -h %cbhost% -u %cbuser% --password=%cbpass% -e "CREATE DATABASE %cbdb%" 2^> NUL
%cmdline%
if %ERRORLEVEL% == 0 goto cs_db_ok
if %safe_mode% == 1 goto omfg
:cs_err2
cls
set omfgprompt=q
call :colors 47
title L2JDP Installer - Community Server DataBase Creation ERROR!
echo.
echo An error occured while trying to create a database for
echo your Community Server.
echo.
echo Possible reasons:
echo 1-You provided inaccurate info , check user, password, etc.
echo 2-User %cbuser% don't have enough privileges for
echo database creation. Check your MySQL privileges.
echo 3-Database exists already...?
echo.
echo Unless you're sure that the pending actions of this tool
echo could work, i'd suggest you to look for correct values
echo and try this script again later.
echo.
echo (c) Continue running
echo.
echo (r) Reconfigure
echo.
echo (q) Quit now
echo.
set /p omfgprompt=Choose (default quit):
if /i %omfgprompt%==c goto gs_backup
if /i %omfgprompt%==r goto configure
if /i %omfgprompt%==q goto end
goto cs_err2
:cs_db_ok
cls
set communityprompt=u
call :colors 17
title L2JDP Installer - Community Server DataBase WARNING!
echo.
echo COMMUNITY SERVER DATABASE install type:
echo.
echo (f) Full: WARNING! I'll destroy ALL of your existing community
echo data (i really mean it: mail, forum, memo.. ALL)
echo.
echo (u) Upgrade: I'll do my best to preserve all of your community
echo data.
echo.
echo (s) Skip: I'll take you to the gameserver database
echo installation and upgrade options.
echo.
echo (r) Reconfigure: You'll be able to redefine MySQL path,
echo user and database information and start over with
echo those fresh values.
echo.
echo (q) Quit
echo.
set /p communityprompt=Choose (default upgrade):
if /i %communityprompt%==f goto cs_cleanup
if /i %communityprompt%==u goto cs_upgrade
if /i %communityprompt%==s goto gs_backup
if /i %communityprompt%==r goto configure
if /i %communityprompt%==q goto end
goto cs_db_ok
:cs_cleanup
call :colors 17
set cmdline=
title L2JDP Installer - Community Server DataBase Full Install
echo.
echo Deleting Community Server tables for new content.
set cmdline="%mysqlPath%" -h %cbhost% -u %cbuser% --password=%cbpass% -D %cbdb% ^< cs_cleanup.sql 2^> NUL
%cmdline%
if not %ERRORLEVEL% == 0 goto omfg
set full=1
echo.
echo Community Server tables has been deleted.
goto cs_install
:cs_upgrade
cls
echo.
echo Upgrading structure of Community Server tables.
echo.
echo @echo off> temp.bat
if exist cs_errors.log del cs_errors.log
for %%i in (..\sql\community\updates\*.sql) do echo "%mysqlPath%" -h %cbhost% -u %cbuser% --password=%cbpass% -D %cbdb% --force ^< %%i 2^>^> cs_errors.log >> temp.bat
call temp.bat> nul
del temp.bat
move cs_errors.log %workdir%
goto cs_install
:cs_install
cls
set cmdline=
if %full% == 1 (
title L2JDP Installer - Community Server DataBase Installing...
echo.
echo Installing new Community Server content.
echo.
) else (
title L2JDP Installer - Community Server DataBase Upgrading...
echo.
echo Upgrading Community Server content.
echo.
)
if %logging% == 0 set output=NUL
set dest=cb
for %%i in (..\sql\community\*.sql) do call :dump %%i
echo done...
echo.
goto gs_backup
:gs_backup
cls
call :colors 17
set cmdline=
set stage=5
title L2JDP Installer - Game Server DataBase Backup
echo.
echo Trying to make a backup of your Game Server DataBase.
set cmdline="%mysqldumpPath%" --add-drop-table -h %gshost% -u %gsuser% --password=%gspass% %gsdb% ^> "%backup%\gs_backup.sql" 2^> NUL
%cmdline%
if %ERRORLEVEL% == 0 goto gs_db_ok
:gs_err1
cls
set gsdbprompt=y
call :colors 47
title L2JDP Installer - Game Server DataBase Backup ERROR!
echo.
echo Backup attempt failed! A possible reason for this to
echo happen, is that your DB doesn't exist yet. I could
echo try to create %gsdb% for you, but maybe you prefer to
echo continue with last part of the script.
echo.
echo ATTEMPT TO CREATE GAME SERVER DATABASE?
echo.
echo (y) Yes
echo.
echo (n) No
echo.
echo (r) Reconfigure
echo.
echo (q) Quit
echo.
set /p gsdbprompt=Choose (default yes):
if /i %gsdbprompt%==y goto gs_db_create
if /i %gsdbprompt%==n goto eof
if /i %gsdbprompt%==r goto configure
if /i %gsdbprompt%==q goto end
goto gs_err1
:gs_db_create
cls
call :colors 17
set stage=6
set cmdline=
title L2JDP Installer - Game Server DataBase Creation
echo.
echo Trying to create a Game Server DataBase...
set cmdline="%mysqlPath%" -h %gshost% -u %gsuser% --password=%gspass% -e "CREATE DATABASE %gsdb%" 2^> NUL
%cmdline%
if %ERRORLEVEL% == 0 goto gs_db_ok
if %safe_mode% == 1 goto omfg
:gs_err2
cls
set omfgprompt=q
call :colors 47
title L2JDP Installer - Game Server DataBase Creation ERROR!
echo.
echo An error occured while trying to create a database for
echo your Game Server.
echo.
echo Possible reasons:
echo 1-You provided inaccurate info, check username, pass, etc.
echo 2-User %gsuser% don't have enough privileges for
echo database creation.
echo 3-Database exists already...?
echo.
echo I'd suggest you to look for correct values and try this
echo script again later. But you can try to reconfigure it now.
echo.
echo (r) Reconfigure
echo.
echo (q) Quit now
echo.
set /p omfgprompt=Choose (default quit):
if /i %omfgprompt%==r goto configure
if /i %omfgprompt%==q goto end
goto gs_err2
:gs_db_ok
cls
set installtype=u
call :colors 17
title L2JDP Installer - Game Server DataBase WARNING!
echo.
echo GAME SERVER DATABASE install:
echo.
echo (f) Full: WARNING! I'll destroy ALL of your existing character
echo data (i really mean it: items, pets.. ALL)
echo.
echo (u) Upgrade: I'll do my best to preserve all of your character
echo data.
echo.
echo (s) Skip: We'll get into the last set of questions (cummulative
echo updates, custom stuff...)
echo.
echo (q) Quit
echo.
set /p installtype=Choose (default upgrade):
if /i %installtype%==f goto gs_cleanup
if /i %installtype%==u goto gs_upgrade
if /i %installtype%==s goto custom_ask
if /i %installtype%==q goto end
goto gs_db_ok
:gs_cleanup
call :colors 17
set cmdline=
title L2JDP Installer - Game Server DataBase Full Install
echo.
echo Deleting all Game Server tables for new content.
set cmdline="%mysqlPath%" -h %gshost% -u %gsuser% --password=%gspass% -D %gsdb% ^< gs_cleanup.sql 2^> NUL
%cmdline%
if not %ERRORLEVEL% == 0 goto omfg
set full=1
echo.
echo Game Server tables has been deleted.
goto gs_install
:gs_upgrade
cls
echo.
echo Upgrading structure of Game Server tables (this could take awhile, be patient).
echo.
echo @echo off> temp.bat
if exist gs_errors.log del gs_errors.log
for %%i in (..\sql\game\updates\*.sql) do echo "%mysqlPath%" -h %gshost% -u %gsuser% --password=%gspass% -D %gsdb% --force ^< %%i 2^>^> gs_errors.log >> temp.bat
call temp.bat> nul
del temp.bat
move gs_errors.log %workdir%
goto gs_install
:gs_install
cls
set cmdline=
if %full% == 1 (
title L2JDP Installer - Game Server DataBase Installing...
echo.
echo Installing new Game Server content.
echo.
) else (
title L2JDP Installer - Game Server DataBase Upgrading...
echo.
echo Upgrading Game Server content.
echo.
)
if %logging% == 0 set output=NUL
set dest=gs
for %%i in (..\sql\game\*.sql) do call :dump %%i
echo done...
echo.
goto custom_ask
:dump
set cmdline=
if /i %full% == 1 (set action=Installing) else (set action=Upgrading)
echo %action% %1>>"%output%"
echo %action% %~nx1
if "%dest%"=="ls" set cmdline="%mysqlPath%" -h %lshost% -u %lsuser% --password=%lspass% -D %lsdb% ^< %1 2^>^>"%output%"
if "%dest%"=="cb" set cmdline="%mysqlPath%" -h %cbhost% -u %cbuser% --password=%cbpass% -D %cbdb% ^< %1 2^>^>"%output%"
if "%dest%"=="gs" set cmdline="%mysqlPath%" -h %gshost% -u %gsuser% --password=%gspass% -D %gsdb% ^< %1 2^>^>"%output%"
%cmdline%
if %logging%==0 if NOT %ERRORLEVEL%==0 call :omfg2 %1
goto :eof
:omfg2
cls
set ntpebcak=c
call :colors 47
title L2JDP Installer - Potential DataBase Issue at stage %stage%
echo.
echo Something caused an error while executing instruction :
echo %mysqlPath% -h %gshost% -u %gsuser% --password=%gspass% -D %gsdb%
echo.
echo with file %~nx1
echo.
echo What we should do now?
echo.
echo (l) Log it: I will create a log for this file, then continue
echo with the rest of the list in non-logging mode.
echo.
echo (c) Continue: Let's pretend that nothing happened and continue with
echo the rest of the list.
echo.
echo (r) Reconfigure: Perhaps these errors were caused by a typo.
echo you can restart from scratch and redefine paths, databases
echo and user info again.
echo.
echo (q) Quit now
echo.
set /p ntpebcak=Choose (default continue):
if /i %ntpebcak%==c (call :colors 17 & goto :eof)
if /i %ntpebcak%==l (call :logginon %1 & goto :eof)
if /i %ntpebcak%==r (call :configure & exit)
if /i %ntpebcak%==q (call :end)
goto omfg2
:logginon
cls
call :colors 17
title L2JDP Installer - Game Server Logging Options turned on
set logging=1
if %full% == 1 (
set output=%logdir%\install-%~nx1.log
) else (
set output=%logdir%\upgrade-%~nx1.log
)
echo.
echo Per your request, i'll create a log file for your reading pleasure.
echo.
echo I'll call it %output%
echo.
echo If you already have such a file and would like to keep a copy.
echo go now and read it or back it up, because it's not going to be rotated
echo or anything, instead i'll just overwrite it.
echo.
pause
set cmdline="%mysqlPath%" -h %gshost% -u %gsuser% --password=%gspass% -D %gsdb% ^<..\sql\%1 2^>^>"%output%"
date /t >"%output%"
time /t >>"%output%"
%cmdline%
echo Log file created, resuming normal operations...
call :colors 17
set logging=0
set output=NUL
goto :eof
:custom_ask
title L2JDP Installer - Custom Server Tables
cls
set cstprompt=n
echo.
echo L2J provides some "Custom Server Tables" for non-retail modifications
echo in order to avoid override the original Server Tables.
echo.
echo Remember that in order to get these additions actually working
echo you need to edit your configuration files.
echo.
set /p cstprompt=Install Custom Server Tables: (y) yes or (n) no (default no):
if /i %cstprompt%==y goto custom_install
if /i %cstprompt%==n goto mod_ask
:custom_install
cls
echo.
echo Installing Custom content.
echo @echo off> temp.bat
if exist custom_errors.log del custom_errors.log
for %%i in (..\sql\game\custom\*.sql) do echo "%mysqlPath%" -h %gshost% -u %gsuser% --password=%gspass% -D %gsdb% ^< %%i 2^>^> custom_errors.log >> temp.bat
call temp.bat> nul
del temp.bat
move custom_errors.log %workdir%
goto mod_ask
:mod_ask
title L2JDP Installer - Mod Server Tables
cls
set cstprompt=n
echo.
echo L2J provides a basic infraestructure for some non-retail features
echo (aka L2J mods) to get enabled with a minimum of changes.
echo.
echo Some of these mods would require extra tables in order to work
echo and those tables could be created now if you wanted to.
echo.
echo Remember that in order to get these additions actually working
echo you need to edit your configuration files.
echo.
set /p cstprompt=Install Mod Server Tables: (y) yes or (n) no (default no):
if /i %cstprompt%==y goto mod_install
if /i %cstprompt%==n goto end
:mod_install
cls
echo.
echo Installing Mods content.
echo @echo off> temp.bat
if exist mods_errors.log del mods_errors.log
for %%i in (..\sql\game\mods\*.sql) do echo "%mysqlPath%" -h %gshost% -u %gsuser% --password=%gspass% -D %gsdb% ^< %%i 2^>^> mods_errors.log >> temp.bat
call temp.bat> nul
del temp.bat
move mods_errors.log %workdir%
echo ======================================================================
echo Check the input parameters
echo - The server will be installed in %INSTALL_DIR%
echo - The database server %DB_HOST%
echo - Database Name %DB_NAME%
set ANSWER=Y
set /P ANSWER=All settings are correct [Y/n]?
if "%ANSWER%"=="n" goto step1
if "%ANSWER%"=="N" goto step1
echo - Installing the database, wait...
for %%i in (sql\%INSTALL_MODE%\*.sql) do mysql %MYSQL_PARAM% %DB_NAME% < %%i
if "%INSTALL_MODE%"=="login" goto installgame
goto end
:omfg
set omfgprompt=q
call :colors 57
:installgame
cls
title L2JDP Installer - Potential PICNIC detected at stage %stage%
echo.
echo There was some problem while executing:
echo.
echo "%cmdline%"
echo.
echo I'd suggest you to look for correct values and try this
echo script again later. But maybe you'd prefer to go on now.
if %stage% == 1 set label=ls_err1
if %stage% == 2 set label=ls_err2
if %stage% == 3 set label=cs_err1
if %stage% == 4 set label=cs_err2
if %stage% == 5 set label=gs_err1
if %stage% == 6 set label=gs_err2
echo.
echo (c) Continue running the script
echo.
echo (r) Reconfigure
echo.
echo (q) Quit now
echo.
set /p omfgprompt=Choose (default quit):
if /i %omfgprompt%==c goto %label%
if /i %omfgprompt%==r goto configure
if /i %omfgprompt%==q goto end
goto omfg
:binaryfind
if EXIST "%mysqlBinPath%" (echo Found) else (echo Not Found)
goto :eof
set DO_INSTALL=Y
set /P DO_INSTALL=Install game server [Y/n]
if "%DO_INSTALL%"=="N" goto end
if "%DO_INSTALL%"=="n" goto end
set INSTALL_MODE=server
goto prepare
:nomysql
cls
echo ! Utility mysql available
echo Make sure that mysql.exe in the environment variable
echo or the current directory with the script installation
goto end
:end
call :colors 17
title L2JDP Installer - Script Execution Finished
cls
echo.
echo L2JDP Database Installer
echo.
echo Thanks for using our software.
echo visit http://www.l2jdp.com for more info about
echo the L2J DataPack Project.
echo.
pause
echo ======================================================================
echo ======================================================================
echo Installation is complete...
echo ======================================================================
echo ======================================================================
pause > nul

View File

@@ -1,39 +1,4 @@
#!/bin/bash
##########################################################################
## Copyright (C) 2004-2013 L2J DataPack ##
## ##
## This file is part of L2J DataPack. ##
## ##
## L2J DataPack is free software: you can redistribute it and/or modify ##
## it under the terms of the GNU General Public License as published by ##
## the Free Software Foundation, either version 3 of the License, or ##
## (at your option) any later version. ##
## ##
## L2J DataPack is distributed in the hope that it will be useful, ##
## but WITHOUT ANY WARRANTY; without even the implied warranty of ##
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ##
## General Public License for more details. ##
## ##
## You should have received a copy of the GNU General Public License ##
## along with this program. If not, see <http://www.gnu.org/licenses/>. ##
##########################################################################
## WARNING! WARNING! WARNING! WARNING! ##
## ##
## DON'T USE NOTEPAD TO CHANGE THIS FILE ##
## INSTEAD USE SOME DECENT TEXT EDITOR. ##
## NEWLINE CHARACTERS DIFFER BETWEEN DOS/ ##
## WINDOWS AND UNIX. ##
## ##
## USING NOTEPAD TO SAVE THIS FILE WILL ##
## LEAVE IT IN A BROKEN STATE!!! ##
############################################
## Writen by DrLecter ##
## License: GNU GPL ##
## Based on Tiago Tagliaferri's script ##
## E-mail: tiago_tagliaferri@msn.com ##
## From "L2J-DataPack" ##
## Bug reports: http://trac.l2jdp.com/ ##
############################################
trap finish 2
configure() {
@@ -68,10 +33,10 @@ read LSDBHOST
if [ -z "$LSDBHOST" ]; then
LSDBHOST="localhost"
fi
echo -ne "\nPlease enter MySQL Login Server database name (default l2jls): "
echo -ne "\nPlease enter MySQL Login Server database name (default lineage2): "
read LSDB
if [ -z "$LSDB" ]; then
LSDB="l2jls"
LSDB="lineage2"
fi
echo -ne "\nPlease enter MySQL Login Server user (default root): "
read LSUSER
@@ -88,34 +53,8 @@ if [ -z "$LSPASS" ]; then
elif [ "$LSUSER" == "$LSPASS" ]; then
echo "You're not too brilliant choosing passwords huh?"
fi
#CB
echo -ne "\nPlease enter MySQL Community Server hostname (default localhost): "
read CBDBHOST
if [ -z "$CBDBHOST" ]; then
CBDBHOST="localhost"
fi
echo -ne "\nPlease enter MySQL Community Server database name (default l2jcs): "
read CBDB
if [ -z "$CBDB" ]; then
CBDB="l2jcs"
fi
echo -ne "\nPlease enter MySQL Community Server user (default root): "
read CBUSER
if [ -z "$CBUSER" ]; then
CBUSER="root"
fi
echo -ne "\nPlease enter MySQL Community Server $CBUSER's password (won't be displayed) :"
stty -echo
read CBPASS
stty echo
echo ""
if [ -z "$CBPASS" ]; then
echo "Hum.. I'll let it be but don't be stupid and avoid empty passwords"
elif [ "$CBUSER" == "$CBPASS" ]; then
echo "You're not too brilliant choosing passwords huh?"
fi
#GS
echo -ne "\nPlease enter MySQL Game Server hostname (default localhost): "
echo -ne "\nPlease enter MySQL Game Server hostname (default $LSDBHOST): "
read GSDBHOST
if [ -z "$GSDBHOST" ]; then
GSDBHOST="localhost"
@@ -123,9 +62,9 @@ fi
echo -ne "\nPlease enter MySQL Game Server database name (default l2jgs): "
read GSDB
if [ -z "$GSDB" ]; then
GSDB="l2jgs"
GSDB="lineage2"
fi
echo -ne "\nPlease enter MySQL Game Server user (default root): "
echo -ne "\nPlease enter MySQL Game Server user (default $LSUSER): "
read GSUSER
if [ -z "$GSUSER" ]; then
GSUSER="root"
@@ -163,10 +102,6 @@ LSDBHOST=$LSDBHOST
LSDB=$LSDB
LSUSER=$LSUSER
LSPASS=$LSPASS
CBDBHOST=$CBDBHOST
CBDB=$CBDB
CBUSER=$CBUSER
CBPASS=$CBPASS
GSDBHOST=$GSDBHOST
GSDB=$GSDB
GSUSER=$GSUSER
@@ -200,7 +135,68 @@ configure $CONF
fi
}
ls_backup(){
asklogin(){
clear
echo "#############################################"
echo "# WARNING: This section of the script CAN #"
echo "# destroy your characters and accounts #"
echo "# information. Read questions carefully #"
echo "# before you reply. #"
echo "#############################################"
echo ""
echo "Choose full (f) if you don't have and 'accounts' table or would"
echo "prefer to erase the existing accounts information."
echo "Choose skip (s) to skip loginserver DB installation and go to"
echo "gameserver DB installation/upgrade."
echo -ne "LOGINSERVER DB install type: (f) full, (s) skip or (q) quit? "
read LOGINPROMPT
case "$LOGINPROMPT" in
"f"|"F") logininstall; loginupgrade;;
"s"|"S") gsbackup;;
"q"|"Q") finish;;
*) asklogin;;
esac
}
logininstall(){
echo "Deleting loginserver tables for new content."
$MYL < ls_cleanup.sql
}
loginupgrade(){
clear
echo "Installling new loginserver content."
for login in $(ls ./sql/login/*.sql);do
echo "Installing loginserver table : $login"
$MYL < $login
done
gsbackup
}
gsbackup(){
while :
do
echo ""
echo -ne "Do you want to make a backup copy of your GSDB? (y/n): "
read LSB
if [ "$LSB" == "Y" -o "$LSB" == "y" ]; then
echo "Making a backup of the original gameserver database."
$MYSQLDUMPPATH --add-drop-table -h $GSDBHOST -u $GSUSER --password=$GSPASS $GSDB > gs_backup.sql
if [ $? -ne 0 ];then
clear
echo ""
echo "There was a problem accesing your GS database, either it wasnt created or authentication data is incorrect."
exit 1
fi
break
elif [ "$LSB" == "n" -o "$LSB" == "N" ]; then
break
fi
done
asktype
}
lsbackup(){
while :
do
clear
@@ -208,7 +204,7 @@ while :
echo -ne "Do you want to make a backup copy of your LSDB? (y/n): "
read LSB
if [ "$LSB" == "Y" -o "$LSB" == "y" ]; then
echo "Trying to make a backup of your Login Server DataBase."
echo "Making a backup of the original loginserver database."
$MYSQLDUMPPATH --add-drop-table -h $LSDBHOST -u $LSUSER --password=$LSPASS $LSDB > ls_backup.sql
if [ $? -ne 0 ];then
clear
@@ -221,315 +217,48 @@ while :
break
fi
done
ls_ask
}
ls_ask(){
clear
asktype(){
echo ""
echo "LOGINSERVER DATABASE install type:"
echo ""
echo "(f) Full: WARNING! I'll destroy ALL of your existing login"
echo " data."
echo ""
echo "(u) Upgrade: I'll do my best to preserve all login data."
echo ""
echo "(s) Skip: I'll take you to the communityserver database"
echo " installation and upgrade options."
echo ""
echo "(q) Quit"
echo ""
echo -ne "LOGINSERVER DB install type: "
read LSASK
case "$LSASK" in
"f"|"F") ls_cleanup I;;
"u"|"U") ls_upgrade U;;
"s"|"S") cs_backup;;
echo "WARNING: A full install (f) will destroy all existing character data."
echo -ne "GAMESERVER DB install type: (f) full install, (u) upgrade or (q) quit? "
read INSTALLTYPE
case "$INSTALLTYPE" in
"f"|"F") fullinstall; upgradeinstall I;;
"u"|"U") upgradeinstall U;;
"q"|"Q") finish;;
*) ls_ask;;
*) asktype;;
esac
}
ls_cleanup(){
fullinstall(){
clear
echo "Deleting Login Server tables for new content."
$MYL < ls_cleanup.sql
ls_install
}
ls_upgrade(){
clear
echo ""
echo "Upgrading structure of Login Server tables."
echo ""
for file in $(ls ../sql/login/updates/*.sql);do
$MYL --force < $file 2>> ls_error.log
done
ls_install
}
ls_install(){
clear
if [ "$1" == "I" ]; then
echo ""
echo "Installing new Login Server content."
echo ""
else
echo ""
echo "Upgrading Login Server content."
echo ""
fi
for login in $(ls ../sql/login/*.sql);do
echo "Installing loginserver table : $login"
$MYL < $login
done
cs_ask
}
cs_backup(){
while :
do
clear
echo ""
echo -ne "Do you want to make a backup copy of your CBDB? (y/n): "
read CSB
if [ "$CSB" == "Y" -o "$CSB" == "y" ]; then
echo "Trying to make a backup of your Community Server DataBase."
$MYSQLDUMPPATH --add-drop-table -h $CBDBHOST -u $CBUSER --password=$CBPASS $CBDB > cs_backup.sql
if [ $? -ne 0 ];then
clear
echo ""
echo "There was a problem accesing your CB database, either it wasnt created or authentication data is incorrect."
exit 1
fi
break
elif [ "$CSB" == "n" -o "$CSB" == "N" ]; then
break
fi
done
cs_ask
}
cs_ask(){
clear
echo ""
echo "COMMUNITY SERVER DATABASE install type:"
echo ""
echo "(f) Full: WARNING! I'll destroy ALL of your existing community"
echo " data (i really mean it: mail, forum, memo.. ALL)"
echo ""
echo "(u) Upgrade: I'll do my best to preserve all of your community"
echo " data."
echo ""
echo "(s) Skip: I'll take you to the gameserver database"
echo " installation and upgrade options."
echo ""
echo "(q) Quit"
echo ""
echo -ne "COMMUNITYSERVER DB install type: "
read CSASK
case "$CSASK" in
"f"|"F") cs_cleanup I;;
"u"|"U") cs_upgrade U;;
"s"|"S") gs_backup;;
"q"|"Q") finish;;
*) cs_ask;;
esac
}
cs_cleanup(){
clear
echo "Deleting Community Server tables for new content."
$MYC < cs_cleanup.sql
cs_install
}
cs_upgrade(){
clear
echo ""
echo "Upgrading structure of Community Server tables."
echo ""
for file in $(ls ../sql/community/updates/*sql);do
$MYC --force < $file 2>> cs_error.log
done
cs_install
}
cs_install(){
clear
if [ "$1" == "I" ]; then
echo ""
echo "Installing new Community Server content."
echo ""
else
echo ""
echo "Upgrading Community Server content."
echo ""
fi
for cb in $(ls ../sql/community/*.sql);do
echo "Installing Communityserver table : $cb"
$MYC < $cb
done
gs_ask
}
gs_backup(){
while :
do
clear
echo ""
echo -ne "Do you want to make a backup copy of your GSDB? (y/n): "
read GSB
if [ "$GSB" == "Y" -o "$GSB" == "y" ]; then
echo "Trying to create a Game Server DataBase."
$MYSQLDUMPPATH --add-drop-table -h $GSDBHOST -u $GSUSER --password=$GSPASS $GSDB > gs_backup.sql
if [ $? -ne 0 ];then
clear
echo ""
echo "There was a problem accesing your GS database, either it wasnt created or authentication data is incorrect."
exit 1
fi
break
elif [ "$GSB" == "n" -o "$GSB" == "N" ]; then
break
fi
done
gs_ask
}
gs_ask(){
clear
echo ""
echo "GAME SERVER DATABASE install:"
echo ""
echo "(f) Full: WARNING! I'll destroy ALL of your existing character"
echo " data (i really mean it: items, pets.. ALL)"
echo ""
echo "(u) Upgrade: I'll do my best to preserve all of your character"
echo " data."
echo ""
echo "(s) Skip: We'll get into the last set of questions (cummulative"
echo " updates, custom stuff...)"
echo ""
echo "(q) Quit"
echo ""
echo -ne "GAMESERVER DB install type: "
read GSASK
case "$GSASK" in
"f"|"F") gs_cleanup I;;
"u"|"U") gs_upgrade U;;
"s"|"S") custom_ask;;
"q"|"Q") finish;;
*) gs_ask;;
esac
}
gs_cleanup(){
clear
echo "Deleting all Game Server tables for new content."
echo "Deleting all gameserver tables for new content."
$MYG < gs_cleanup.sql
gs_install
}
gs_upgrade(){
clear
echo ""
echo "Upgrading structure of Game Server tables (this could take awhile, be patient)"
echo ""
for file in $(ls ../sql/game/updates/*.sql);do
$MYG --force < $file 2>> gs_error.log
done
gs_install
}
gs_install(){
upgradeinstall(){
clear
if [ "$1" == "I" ]; then
echo ""
echo "Installing new Game Server content."
echo ""
echo "Installling new gameserver content."
else
echo ""
echo "Upgrading Game Server content."
echo ""
echo "Upgrading gameserver content"
fi
for gs in $(ls ../sql/game/*.sql);do
for gs in $(ls ./sql/server/*.sql);do
echo "Installing GameServer table : $gs"
$MYG < $gs
done
custom_ask
}
custom_ask(){
clear
echo ""
echo "L2J provides some Custom Server Tables for non-retail modifications"
echo "in order to avoid override the original Server Tables."
echo ""
echo "Remember that in order to get these additions actually working"
echo "you need to edit your configuration files."
echo ""
echo -ne "Install Custom Server Tables: (y) yes or (n) no ?"
read CSASK
case "$CSASK" in
"y"|"Y") custom_install;;
"n"|"N") mod_ask;;
*) custom_ask;;
esac
}
custom_install(){
clear
echo ""
echo "Installing Custom content."
for custom in $(ls ../sql/game/custom/*.sql);do
echo "Installing custom table: $custom"
$MYG < $custom
done
clear
mod_ask
}
mod_ask(){
clear
echo ""
echo "L2J provides a basic infraestructure for some non-retail features"
echo "(aka L2J mods) to get enabled with a minimum of changes."
echo ""
echo "Some of these mods would require extra tables in order to work"
echo "and those tables could be created now if you wanted to."
echo ""
echo "Remember that in order to get these additions actually working"
echo "you need to edit your configuration files."
echo ""
echo -ne "Install Mod Server Tables: (y) yes or (n) no ?"
read MDASK
case "$MDASK" in
"y"|"Y") mod_install;;
"n"|"N") finish;;
*) mod_ask;;
esac
}
mod_install(){
clear
echo ""
echo "Installing Mods content."
for mod in $(ls ../sql/game/mods/*.sql);do
echo "Installing custom mod table : $mod"
$MYG < $mod
done
clear
finish
}
finish(){
clear
echo "L2JDP Database Installer"
echo "Script execution finished."
echo ""
echo "Thanks for using our software."
echo "visit http://www.l2jdp.com for more info about"
echo "the L2J DataPack Project."
exit 0
}
@@ -537,5 +266,5 @@ clear
load_config $1
MYL="$MYSQLPATH -h $LSDBHOST -u $LSUSER --password=$LSPASS -D $LSDB"
MYG="$MYSQLPATH -h $GSDBHOST -u $GSUSER --password=$GSPASS -D $GSDB"
MYC="$MYSQLPATH -h $CBDBHOST -u $CBUSER --password=$CBPASS -D $CBDB"
ls_backup
lsbackup
asklogin

View File

@@ -1,116 +0,0 @@
-- These queries are meant to delete any gameserver table you may have from previous
-- L2J installations.
--
-- Queries that create these tables and/or populate them apropiately are available in
-- the ../sql/ folder.
--
-- See the documentation.txt file for more details.
DROP TABLE IF EXISTS
account_gsdata,
airships,
auction,
auction_bid,
auction_watch,
announcements,
buylists,
castle,
castle_doorupgrade,
castle_functions,
castle_manor_procure,
castle_manor_production,
castle_siege_guards,
character_contacts,
character_friends,
character_hennas,
character_instance_time,
character_item_reuse_save,
character_macroses,
character_mentees,
character_norestart_zone_time,
character_offline_trade_items,
character_offline_trade,
character_pet_skills_save,
character_quest_global_data,
character_quests,
character_raid_points,
character_recipebook,
character_recipeshoplist,
character_reco_bonus,
character_shortcuts,
character_skills,
character_skills_save,
character_subclasses,
character_summons,
character_summon_skills_save,
character_tpbookmark,
character_ui_actions,
character_ui_categories,
character_variables,
characters,
clan_data,
clan_notices,
clan_privs,
clan_skills,
clan_subpledges,
clan_wars,
clanhall,
clanhall_functions,
clanhall_siege_attackers,
clanhall_siege_guards,
crest,
cursed_weapons,
droplist,
fort,
fort_doorupgrade,
fort_functions,
fort_siege_guards,
fort_spawnlist,
fortsiege_clans,
forums,
four_sepulchers_spawnlist,
games,
global_tasks,
global_variables,
grandboss_data,
grandboss_list,
hellbound_spawnlist,
herb_droplist_groups,
heroes,
heroes_diary,
item_attributes,
item_auction_bid,
item_auction,
item_elementals,
items,
itemsonground,
locations,
merchant_lease,
messages,
mods_wedding,
npc,
npc_buffer,
npcaidata,
npc_elementals,
npcskills,
olympiad_data,
olympiad_fights,
olympiad_nobles,
olympiad_nobles_eom,
petition_feedback,
pets,
pets_skills,
posts,
punishments,
quest_global_data,
raidboss_spawnlist,
rainbowsprings_attacker_list,
random_spawn,
random_spawn_loc,
siegable_clanhall,
siegable_hall_flagwar_attackers,
siegable_hall_flagwar_attackers_members,
siege_clans,
spawnlist,
teleport,
topic;

View File

@@ -1,12 +0,0 @@
-- These queries are meant to delete any loginserver table you may have from
-- previous L2J installations.
--
-- Queries that create these tables and/or populate them apropiately are
-- available in the ../sql/ folder. See the documentation.txt file
-- for more details.
DROP TABLE IF EXISTS
account_data,
accounts,
accounts_ipauth,
gameservers;

BIN
trunk/dist/tools/mysql.exe vendored Normal file

Binary file not shown.

BIN
trunk/dist/tools/mysqldump.exe vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `account_data` (
`account_name` VARCHAR(45) NOT NULL DEFAULT '',
`var` VARCHAR(20) NOT NULL DEFAULT '',
`value` VARCHAR(255) ,
PRIMARY KEY (`account_name`,`var`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

16
trunk/dist/tools/sql/login/accounts.sql vendored Normal file
View File

@@ -0,0 +1,16 @@
CREATE TABLE IF NOT EXISTS `accounts` (
`login` VARCHAR(45) NOT NULL default '',
`password` VARCHAR(45),
`email` varchar(255) DEFAULT NULL,
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastactive` bigint(13) unsigned NOT NULL DEFAULT '0',
`accessLevel` TINYINT NOT NULL DEFAULT 0,
`lastIP` CHAR(15) NULL DEFAULT NULL,
`lastServer` TINYINT DEFAULT 1,
`pcIp` char(15) DEFAULT NULL,
`hop1` char(15) DEFAULT NULL,
`hop2` char(15) DEFAULT NULL,
`hop3` char(15) DEFAULT NULL,
`hop4` char(15) DEFAULT NULL,
PRIMARY KEY (`login`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS `accounts_ipauth` (
`login` varchar(45) NOT NULL,
`ip` char(15) NOT NULL,
`type` enum('deny','allow') NULL DEFAULT 'allow'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `gameservers` (
`server_id` int(11) NOT NULL DEFAULT '0',
`hexid` varchar(50) NOT NULL DEFAULT '',
`host` varchar(50) NOT NULL DEFAULT '',
PRIMARY KEY (`server_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `account_gsdata` (
`account_name` VARCHAR(45) NOT NULL DEFAULT '',
`var` VARCHAR(255) NOT NULL DEFAULT '',
`value` text NOT NULL,
PRIMARY KEY (`account_name`,`var`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS `airships` (
`owner_id` INT, -- object id of the player or clan, owner of this airship
`fuel` decimal(5,0) NOT NULL DEFAULT 600,
PRIMARY KEY (`owner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,12 @@
CREATE TABLE IF NOT EXISTS `announcements` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`type` int(11) NOT NULL,
`initial` bigint(20) NOT NULL DEFAULT 0,
`delay` bigint(20) NOT NULL DEFAULT 0,
`repeat` int(11) NOT NULL DEFAULT 0,
`author` text NOT NULL,
`content` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO announcements (`type`, `author`, `content`) VALUES (0, 'L2JServer', 'Thanks for using L2J.');

16
trunk/dist/tools/sql/server/auction.sql vendored Normal file
View File

@@ -0,0 +1,16 @@
CREATE TABLE IF NOT EXISTS `auction` (
`id` int(11) NOT NULL DEFAULT '0',
`sellerId` int(11) NOT NULL DEFAULT '0',
`sellerName` varchar(50) NOT NULL DEFAULT 'NPC',
`sellerClanName` varchar(50) NOT NULL DEFAULT '',
`itemType` varchar(25) NOT NULL DEFAULT '',
`itemId` int(11) NOT NULL DEFAULT '0',
`itemObjectId` int(11) NOT NULL DEFAULT '0',
`itemName` varchar(40) NOT NULL DEFAULT '',
`itemQuantity` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`startingBid` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`currentBid` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`endDate` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`itemType`,`itemId`,`itemObjectId`),
KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS `auction_bid` (
`id` INT NOT NULL DEFAULT 0,
`auctionId` INT NOT NULL DEFAULT 0,
`bidderId` INT NOT NULL DEFAULT 0,
`bidderName` varchar(50) NOT NULL,
`clan_name` varchar(50) NOT NULL,
`maxBid` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`time_bid` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`auctionId`,`bidderId`),
KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS `auction_watch` (
`charObjId` INT NOT NULL DEFAULT 0,
`auctionId` INT NOT NULL DEFAULT 0,
PRIMARY KEY (`charObjId`,`auctionId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,12 @@
CREATE TABLE IF NOT EXISTS `bbs_favorites` (
`favId` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`playerId` INT UNSIGNED NOT NULL,
`favTitle` VARCHAR(50) NOT NULL,
`favBypass` VARCHAR(127) NOT NULL,
`favAddDate` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`favId`),
UNIQUE INDEX `favId_playerId` (`favId`, `playerId`)
)
COMMENT='This table saves the Favorite links from each player for the community board.'
COLLATE='utf8_unicode_ci'
ENGINE=InnoDB;

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `bot_reported_char_data` (
`botId` INT UNSIGNED NOT NULL DEFAULT 0,
`reporterId` INT UNSIGNED NOT NULL DEFAULT 0,
`reportDate` BIGINT(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`botId`, `reporterId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS `buylists` (
`buylist_id` INT UNSIGNED,
`item_id` INT UNSIGNED,
`count` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`next_restock_time` BIGINT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`buylist_id`, `item_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

24
trunk/dist/tools/sql/server/castle.sql vendored Normal file
View File

@@ -0,0 +1,24 @@
CREATE TABLE IF NOT EXISTS `castle` (
`id` INT NOT NULL DEFAULT 0,
`name` varchar(25) NOT NULL,
`taxPercent` INT NOT NULL DEFAULT 15,
`treasury` BIGINT NOT NULL DEFAULT 0,
`siegeDate` bigint(13) unsigned NOT NULL DEFAULT '0',
`regTimeOver` enum('true','false') DEFAULT 'true' NOT NULL,
`regTimeEnd` bigint(13) unsigned NOT NULL DEFAULT '0',
`showNpcCrest` enum('true','false') DEFAULT 'false' NOT NULL,
`ticketBuyCount` smallint(3) NOT NULL DEFAULT 0,
PRIMARY KEY (`name`),
KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT IGNORE INTO `castle` VALUES
(1,'Gludio',0,0,0,'true',0,'false',0),
(2,'Dion',0,0,0,'true',0,'false',0),
(3,'Giran',0,0,0,'true',0,'false',0),
(4,'Oren',0,0,0,'true',0,'false',0),
(5,'Aden',0,0,0,'true',0,'false',0),
(6,'Innadril',0,0,0,'true',0,'false',0),
(7,'Goddard',0,0,0,'true',0,'false',0),
(8,'Rune',0,0,0,'true',0,'false',0),
(9,'Schuttgart',0,0,0,'true',0,'false',0);

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `castle_doorupgrade` (
`doorId` int(8) unsigned NOT NULL DEFAULT '0',
`ratio` tinyint(3) unsigned NOT NULL DEFAULT '0',
`castleId` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`doorId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS `castle_functions` (
`castle_id` int(2) NOT NULL DEFAULT '0',
`type` int(1) NOT NULL DEFAULT '0',
`lvl` int(3) NOT NULL DEFAULT '0',
`lease` int(10) NOT NULL DEFAULT '0',
`rate` decimal(20,0) NOT NULL DEFAULT '0',
`endTime` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`castle_id`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS `castle_manor_procure` (
`castle_id` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`crop_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`amount` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`start_amount` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`price` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`reward_type` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
`next_period` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
PRIMARY KEY (`castle_id`,`crop_id`,`next_period`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS `castle_manor_production` (
`castle_id` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`seed_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`amount` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`start_amount` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`price` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`next_period` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
PRIMARY KEY (`castle_id`, `seed_id`, `next_period`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `castle_trapupgrade` (
`castleId` tinyint(3) unsigned NOT NULL DEFAULT '0',
`towerIndex` tinyint(3) unsigned NOT NULL DEFAULT '0',
`level` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`towerIndex`,`castleId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS `character_contacts` (
charId INT UNSIGNED NOT NULL DEFAULT 0,
contactId INT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`contactId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `character_friends` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`friendId` INT UNSIGNED NOT NULL DEFAULT 0,
`relation` INT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`friendId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS `character_hennas` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`symbol_id` INT,
`slot` INT NOT NULL DEFAULT 0,
`class_index` INT(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`slot`,`class_index`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `character_instance_time` (
`charId` INT UNSIGNED NOT NULL DEFAULT '0',
`instanceId` int(3) NOT NULL DEFAULT '0',
`time` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`charId`,`instanceId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `character_item_reuse_save` (
`charId` INT NOT NULL DEFAULT 0,
`itemId` INT NOT NULL DEFAULT 0,
`itemObjId` INT(3) NOT NULL DEFAULT 1,
`reuseDelay` INT(8) NOT NULL DEFAULT 0,
`systime` BIGINT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`itemId`,`itemObjId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS `character_macroses` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`id` INT NOT NULL DEFAULT 0,
`icon` INT,
`name` VARCHAR(40) ,
`descr` VARCHAR(80) ,
`acronym` VARCHAR(4) ,
`commands` VARCHAR(500) ,
PRIMARY KEY (`charId`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,4 @@
CREATE TABLE IF NOT EXISTS `character_mentees` (
`charId` int(10) unsigned NOT NULL DEFAULT '0',
`mentorId` int(10) unsigned NOT NULL DEFAULT '0'
);

View File

@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS `character_offline_trade` (
`charId` int(10) unsigned NOT NULL,
`time` bigint(13) unsigned NOT NULL DEFAULT '0',
`type` tinyint(4) NOT NULL DEFAULT '0',
`title` varchar(50) DEFAULT NULL,
PRIMARY KEY (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `character_offline_trade_items` (
`charId` int(10) unsigned NOT NULL,
`item` int(10) unsigned NOT NULL DEFAULT '0', -- itemId(for buy) & ObjectId(for sell)
`count` bigint(20) unsigned NOT NULL DEFAULT '0',
`price` bigint(20) unsigned NOT NULL DEFAULT '0',
KEY `charId` (`charId`),
KEY `item` (`item`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `character_pet_skills_save` (
`petObjItemId` INT NOT NULL DEFAULT 0,
`skill_id` INT NOT NULL DEFAULT 0,
`skill_level` INT(3) NOT NULL DEFAULT 1,
`remaining_time` INT NOT NULL DEFAULT 0,
`buff_index` INT(2) NOT NULL DEFAULT 0,
PRIMARY KEY (`petObjItemId`,`skill_id`,`skill_level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS `character_premium_items` (
`charId` int(11) NOT NULL,
`itemNum` int(11) NOT NULL,
`itemId` int(11) NOT NULL,
`itemCount` bigint(20) unsigned NOT NULL,
`itemSender` varchar(50) NOT NULL,
KEY `charId` (`charId`),
KEY `itemNum` (`itemNum`),
KEY `itemId` (`itemId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `character_quest_global_data` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`var` VARCHAR(20) NOT NULL DEFAULT '',
`value` VARCHAR(255) ,
PRIMARY KEY (`charId`,`var`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `character_quests` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`name` VARCHAR(60) NOT NULL DEFAULT '',
`var` VARCHAR(20) NOT NULL DEFAULT '',
`value` VARCHAR(255) ,
`class_index` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`charId`,`name`,`var`,`class_index`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `character_raid_points` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`boss_id` INT UNSIGNED NOT NULL DEFAULT 0,
`points` INT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`boss_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS `character_recipebook` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`id` decimal(11) NOT NULL DEFAULT 0,
`classIndex` TINYINT NOT NULL DEFAULT 0,
`type` INT NOT NULL DEFAULT 0,
PRIMARY KEY (`id`,`charId`,`classIndex`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS `character_recipeshoplist` (
`charId` int(10) unsigned NOT NULL DEFAULT 0,
`recipeId` int(11) UNSIGNED NOT NULL DEFAULT 0,
`price` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
`index` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`recipeId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS `character_reco_bonus` (
`charId` int(10) unsigned NOT NULL,
`rec_have` tinyint(3) unsigned NOT NULL DEFAULT '0',
`rec_left` tinyint(3) unsigned NOT NULL DEFAULT '0',
`time_left` bigint(13) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `charId` (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS `character_shortcuts` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`slot` decimal(3) NOT NULL DEFAULT 0,
`page` decimal(3) NOT NULL DEFAULT 0,
`type` decimal(3) ,
`shortcut_id` decimal(16) ,
`level` varchar(4) ,
`class_index` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`charId`,`slot`,`page`,`class_index`),
KEY `shortcut_id` (`shortcut_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS `character_skills` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`skill_id` INT NOT NULL DEFAULT 0,
`skill_level` INT(3) NOT NULL DEFAULT 1,
`class_index` INT(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`skill_id`,`class_index`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,12 @@
CREATE TABLE IF NOT EXISTS `character_skills_save` (
`charId` INT NOT NULL DEFAULT 0,
`skill_id` INT NOT NULL DEFAULT 0,
`skill_level` INT(3) NOT NULL DEFAULT 1,
`remaining_time` INT NOT NULL DEFAULT 0,
`reuse_delay` INT(8) NOT NULL DEFAULT 0,
`systime` bigint(13) unsigned NOT NULL DEFAULT '0',
`restore_type` INT(1) NOT NULL DEFAULT 0,
`class_index` INT(1) NOT NULL DEFAULT 0,
`buff_index` INT(2) NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`skill_id`,`skill_level`,`class_index`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS `character_subclasses` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`class_id` int(2) NOT NULL DEFAULT 0,
`exp` bigint(20) NOT NULL DEFAULT 0,
`sp` bigint(10) NOT NULL DEFAULT 0,
`level` int(2) NOT NULL DEFAULT 40,
`class_index` int(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS `character_summon_skills_save` (
`ownerId` INT NOT NULL DEFAULT 0,
`ownerClassIndex` INT(1) NOT NULL DEFAULT 0,
`summonSkillId` INT NOT NULL DEFAULT 0,
`skill_id` INT NOT NULL DEFAULT 0,
`skill_level` INT(3) NOT NULL DEFAULT 1,
`remaining_time` INT NOT NULL DEFAULT 0,
`buff_index` INT(2) NOT NULL DEFAULT 0,
PRIMARY KEY (`ownerId`,`ownerClassIndex`,`summonSkillId`,`skill_id`,`skill_level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `character_summons` (
`ownerId` int(10) unsigned NOT NULL,
`summonSkillId` int(10) unsigned NOT NULL,
`curHp` int(9) unsigned DEFAULT '0',
`curMp` int(9) unsigned DEFAULT '0',
`time` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`ownerId`,`summonSkillId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS `character_tpbookmark` (
`charId` int(20) NOT NULL,
`Id` int(20) NOT NULL,
`x` int(20) NOT NULL,
`y` int(20) NOT NULL,
`z` int(20) NOT NULL,
`icon` int(20) NOT NULL,
`tag` varchar(50) DEFAULT NULL,
`name` varchar(50) NOT NULL,
PRIMARY KEY (`charId`,`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS `character_ui_actions` (
`charId` int(10) unsigned NOT NULL DEFAULT '0',
`cat` tinyint(4) NOT NULL,
`order` tinyint(4) NOT NULL,
`cmd` int(8) NOT NULL DEFAULT '0',
`key` int(8) NOT NULL,
`tgKey1` int(8) DEFAULT NULL,
`tgKey2` int(8) DEFAULT NULL,
`show` tinyint(4) NOT NULL,
PRIMARY KEY (`charId`,`cat`,`cmd`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS `character_ui_categories` (
`charId` int(10) unsigned NOT NULL DEFAULT '0',
`catId` tinyint(4) NOT NULL,
`order` tinyint(4) NOT NULL,
`cmdId` int(8) NOT NULL DEFAULT '0',
PRIMARY KEY (`charId`,`catId`,`order`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS `character_variables` (
`charId` int(10) UNSIGNED NOT NULL,
`var` varchar(255) NOT NULL,
`val` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,63 @@
CREATE TABLE IF NOT EXISTS `characters` (
`account_name` VARCHAR(45) DEFAULT NULL,
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`char_name` VARCHAR(35) NOT NULL,
`level` TINYINT UNSIGNED DEFAULT NULL,
`maxHp` MEDIUMINT UNSIGNED DEFAULT NULL,
`curHp` MEDIUMINT UNSIGNED DEFAULT NULL,
`maxCp` MEDIUMINT UNSIGNED DEFAULT NULL,
`curCp` MEDIUMINT UNSIGNED DEFAULT NULL,
`maxMp` MEDIUMINT UNSIGNED DEFAULT NULL,
`curMp` MEDIUMINT UNSIGNED DEFAULT NULL,
`face` TINYINT UNSIGNED DEFAULT NULL,
`hairStyle` TINYINT UNSIGNED DEFAULT NULL,
`hairColor` TINYINT UNSIGNED DEFAULT NULL,
`sex` TINYINT UNSIGNED DEFAULT NULL,
`heading` MEDIUMINT DEFAULT NULL,
`x` MEDIUMINT DEFAULT NULL,
`y` MEDIUMINT DEFAULT NULL,
`z` MEDIUMINT DEFAULT NULL,
`exp` BIGINT UNSIGNED DEFAULT 0,
`expBeforeDeath` BIGINT UNSIGNED DEFAULT 0,
`sp` BIGINT(10) UNSIGNED NOT NULL DEFAULT 0,
`karma` INT UNSIGNED DEFAULT NULL,
`fame` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0,
`pvpkills` SMALLINT UNSIGNED DEFAULT NULL,
`pkkills` SMALLINT UNSIGNED DEFAULT NULL,
`clanid` INT UNSIGNED DEFAULT NULL,
`race` TINYINT UNSIGNED DEFAULT NULL,
`classid` TINYINT UNSIGNED DEFAULT NULL,
`base_class` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`transform_id` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`deletetime` bigint(13) unsigned NOT NULL DEFAULT '0',
`cancraft` TINYINT UNSIGNED DEFAULT NULL,
`title` VARCHAR(21) DEFAULT NULL,
`title_color` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0xECF9A2,
`accesslevel` MEDIUMINT DEFAULT 0,
`online` TINYINT UNSIGNED DEFAULT NULL,
`onlinetime` INT DEFAULT NULL,
`char_slot` TINYINT UNSIGNED DEFAULT NULL,
`newbie` MEDIUMINT UNSIGNED DEFAULT 1,
`lastAccess` bigint(13) unsigned NOT NULL DEFAULT '0',
`clan_privs` MEDIUMINT UNSIGNED DEFAULT 0,
`wantspeace` TINYINT UNSIGNED DEFAULT 0,
`isin7sdungeon` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`power_grade` TINYINT UNSIGNED DEFAULT NULL,
`nobless` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`subpledge` SMALLINT NOT NULL DEFAULT 0,
`lvl_joined_academy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`apprentice` INT UNSIGNED NOT NULL DEFAULT 0,
`sponsor` INT UNSIGNED NOT NULL DEFAULT 0,
`clan_join_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0',
`clan_create_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0',
`death_penalty_level` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`bookmarkslot` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`vitality_points` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`createDate` date NOT NULL DEFAULT '0000-00-00',
`language` VARCHAR(2) DEFAULT NULL,
PRIMARY KEY (`charId`),
KEY `account_name` (`account_name`),
KEY `char_name` (`char_name`),
KEY `clanid` (`clanid`),
KEY `online` (`online`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,25 @@
CREATE TABLE IF NOT EXISTS `clan_data` (
`clan_id` INT NOT NULL DEFAULT 0,
`clan_name` varchar(45) ,
`clan_level` INT,
`reputation_score` INT NOT NULL DEFAULT 0,
`hasCastle` INT,
`blood_alliance_count` smallint(5) unsigned NOT NULL DEFAULT 0,
`blood_oath_count` smallint(5) unsigned NOT NULL DEFAULT 0,
`ally_id` INT,
`ally_name` varchar(45),
`leader_id` INT,
`crest_id` INT,
`crest_large_id` INT,
`ally_crest_id` INT,
`auction_bid_at` INT NOT NULL DEFAULT 0,
`ally_penalty_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0',
`ally_penalty_type` tinyint(1) NOT NULL DEFAULT 0,
`char_penalty_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0',
`dissolving_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0',
`new_leader_id` INT(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`clan_id`),
KEY `ally_id` (`ally_id`),
KEY `leader_id` (`leader_id`),
KEY `auction_bid_at` (`auction_bid_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `clan_notices` (
`clan_id` INT NOT NULL DEFAULT 0,
`enabled` enum('true','false') DEFAULT 'false' NOT NULL,
`notice` TEXT NOT NULL,
PRIMARY KEY (`clan_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS `clan_privs` (
`clan_id` INT NOT NULL DEFAULT 0,
`rank` INT NOT NULL DEFAULT 0,
`party` INT NOT NULL DEFAULT 0,
`privs` INT NOT NULL DEFAULT 0,
PRIMARY KEY (`clan_id`,`rank`,`party`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `clan_skills` (
`clan_id` int(11) NOT NULL DEFAULT 0,
`skill_id` int(11) NOT NULL DEFAULT 0,
`skill_level` int(5) NOT NULL DEFAULT 0,
`skill_name` varchar(26) DEFAULT NULL,
`sub_pledge_id` INT NOT NULL DEFAULT '-2',
PRIMARY KEY (`clan_id`,`skill_id`,`sub_pledge_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `clan_subpledges` (
`clan_id` INT NOT NULL DEFAULT '0',
`sub_pledge_id` INT NOT NULL DEFAULT '0',
`name` varchar(45),
`leader_id` INT NOT NULL DEFAULT '0',
PRIMARY KEY (`clan_id`,`sub_pledge_id`),
KEY `leader_id` (`leader_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `clan_wars` (
`clan1` varchar(35) NOT NULL DEFAULT '',
`clan2` varchar(35) NOT NULL DEFAULT '',
`wantspeace1` decimal(1,0) NOT NULL DEFAULT '0',
`wantspeace2` decimal(1,0) NOT NULL DEFAULT '0',
KEY `clan1` (`clan1`),
KEY `clan2` (`clan2`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,21 @@
CREATE TABLE `pledge_applicant` (
`charId` int(10) NOT NULL,
`clanId` int(10) NOT NULL,
`karma` tinyint(1) NOT NULL,
`message` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`charId`,`clanId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `pledge_recruit` (
`clan_id` int(10) NOT NULL,
`karma` tinyint(1) NOT NULL,
`information` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`detailed_information` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`clan_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `pledge_waiting_list` (
`char_id` int(10) NOT NULL,
`karma` tinyint(1) NOT NULL,
PRIMARY KEY (`char_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

View File

@@ -0,0 +1,53 @@
CREATE TABLE IF NOT EXISTS `clanhall` (
`id` int(11) NOT NULL DEFAULT '0',
`name` varchar(40) NOT NULL DEFAULT '',
`ownerId` int(11) NOT NULL DEFAULT '0',
`lease` int(10) NOT NULL DEFAULT '0',
`desc` text NOT NULL,
`location` varchar(15) NOT NULL DEFAULT '',
`paidUntil` bigint(13) unsigned NOT NULL DEFAULT '0',
`Grade` decimal(1,0) NOT NULL DEFAULT '0',
`paid` int( 1 ) NOT NULL DEFAULT '0',
PRIMARY KEY `id` (`id`),
KEY `ownerId` (`ownerId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT IGNORE INTO `clanhall` VALUES
('22','Moonstone Hall','0','500000','Clan hall located in the Town of Gludio','Gludio','0','2','0'),
('23','Onyx Hall','0','500000','Clan hall located in the Town of Gludio','Gludio','0','2','0'),
('24','Topaz Hall','0','500000','Clan hall located in the Town of Gludio','Gludio','0','2','0'),
('25','Ruby Hall','0','500000','Clan hall located in the Town of Gludio','Gludio','0','2','0'),
('26','Crystal Hall','0','500000','Clan hall located in Gludin Village','Gludin','0','2','0'),
('27','Onyx Hall','0','500000','Clan hall located in Gludin Village','Gludin','0','2','0'),
('28','Sapphire Hall','0','500000','Clan hall located in Gludin Village','Gludin','0','2','0'),
('29','Moonstone Hall','0','500000','Clan hall located in Gludin Village','Gludin','0','2','0'),
('30','Emerald Hall','0','500000','Clan hall located in Gludin Village','Gludin','0','2','0'),
('31','The Atramental Barracks','0','200000','Clan hall located in the Town of Dion','Dion','0','1','0'),
('32','The Scarlet Barracks','0','200000','Clan hall located in the Town of Dion','Dion','0','1','0'),
('33','The Viridian Barracks','0','200000','Clan hall located in the Town of Dion','Dion','0','1','0'),
('36','The Golden Chamber','0','1000000','Clan hall located in the Town of Aden','Aden','0','3','0'),
('37','The Silver Chamber','0','1000000','Clan hall located in the Town of Aden','Aden','0','3','0'),
('38','The Mithril Chamber','0','1000000','Clan hall located in the Town of Aden','Aden','0','3','0'),
('39','Silver Manor','0','1000000','Clan hall located in the Town of Aden','Aden','0','3','0'),
('40','Gold Manor','0','1000000','Clan hall located in the Town of Aden','Aden','0','3','0'),
('41','The Bronze Chamber','0','1000000','Clan hall located in the Town of Aden','Aden','0','3','0'),
('42','The Golden Chamber','0','1000000','Clan hall located in the Town of Giran','Giran','0','3','0'),
('43','The Silver Chamber','0','1000000','Clan hall located in the Town of Giran','Giran','0','3','0'),
('44','The Mithril Chamber','0','1000000','Clan hall located in the Town of Giran','Giran','0','3','0'),
('45','The Bronze Chamber','0','1000000','Clan hall located in the Town of Giran','Giran','0','3','0'),
('46','Silver Manor','0','1000000','Clan hall located in the Town of Giran','Giran','0','3','0'),
('47','Moonstone Hall','0','1000000','Clan hall located in the Town of Goddard','Goddard','0','3','0'),
('48','Onyx Hall','0','1000000','Clan hall located in the Town of Goddard','Goddard','0','3','0'),
('49','Emerald Hall','0','1000000','Clan hall located in the Town of Goddard','Goddard','0','3','0'),
('50','Sapphire Hall','0','1000000','Clan hall located in the Town of Goddard','Goddard','0','3','0'),
('51','Mont Chamber','0','1000000','An upscale Clan hall located in the Rune Township','Rune','0','3','0'),
('52','Astaire Chamber','0','1000000','An upscale Clan hall located in the Rune Township','Rune','0','3','0'),
('53','Aria Chamber','0','1000000','An upscale Clan hall located in the Rune Township','Rune','0','3','0'),
('54','Yiana Chamber','0','1000000','An upscale Clan hall located in the Rune Township','Rune','0','3','0'),
('55','Roien Chamber','0','1000000','An upscale Clan hall located in the Rune Township','Rune','0','3','0'),
('56','Luna Chamber','0','1000000','An upscale Clan hall located in the Rune Township','Rune','0','3','0'),
('57','Traban Chamber','0','1000000','An upscale Clan hall located in the Rune Township','Rune','0','3','0'),
('58','Eisen Hall','0','500000','Clan hall located in the Town of Schuttgart','Schuttgart','0','2','0'),
('59','Heavy Metal Hall','0','500000','Clan hall located in the Town of Schuttgart','Schuttgart','0','2','0'),
('60','Molten Ore Hall','0','500000','Clan hall located in the Town of Schuttgart','Schuttgart','0','2','0'),
('61','Titan Hall','0','500000','Clan hall located in the Town of Schuttgart','Schuttgart','0','2','0');

View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS `clanhall_functions` (
`hall_id` int(2) NOT NULL DEFAULT '0',
`type` int(1) NOT NULL DEFAULT '0',
`lvl` int(3) NOT NULL DEFAULT '0',
`lease` int(10) NOT NULL DEFAULT '0',
`rate` decimal(20,0) NOT NULL DEFAULT '0',
`endTime` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`hall_id`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,4 @@
CREATE TABLE IF NOT EXISTS `clanhall_siege_attackers` (
`clanhall_id` int(3) NOT NULL DEFAULT '0',
`attacker_id` int(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,785 @@
DROP TABLE IF EXISTS `clanhall_siege_guards`;
CREATE TABLE IF NOT EXISTS `clanhall_siege_guards` (
`clanHallId` tinyint(2) unsigned NOT NULL DEFAULT '0',
`npcId` smallint(5) unsigned NOT NULL DEFAULT '0',
`x` mediumint(6) NOT NULL DEFAULT '0',
`y` mediumint(6) NOT NULL DEFAULT '0',
`z` mediumint(6) NOT NULL DEFAULT '0',
`heading` mediumint(6) NOT NULL DEFAULT '0',
`respawnDelay` mediumint(5) NOT NULL DEFAULT '0',
`isSiegeBoss` enum('false','true') NOT NULL DEFAULT 'false',
KEY `clanHallId` (`clanHallId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `clanhall_siege_guards` VALUES
-- Devasted Castle
-- Front Gate
(34,35408,178306,-17535,-2200,32768,7200,'false'),
(34,35409,178304,-17712,-2200,32768,7200,'false'),
(34,35413,178222,-14944,-2200,16384,7200,'false'),
(34,35413,178255,-14944,-2200,16384,7200,'false'),
(34,35413,178288,-14944,-2200,16384,7200,'false'),
(34,35413,178321,-14944,-2200,16384,7200,'false'),
(34,35413,178354,-14944,-2200,16384,7200,'false'),
(34,35413,178387,-14944,-2200,16384,7200,'false'),
(34,35413,178420,-14944,-2200,16384,7200,'false'),
(34,35413,178454,-14944,-2200,16384,7200,'false'),
(34,35413,178222,-14924,-2200,16384,7200,'false'),
(34,35413,178255,-14924,-2200,16384,7200,'false'),
(34,35413,178288,-14924,-2200,16384,7200,'false'),
(34,35413,178321,-14924,-2200,16384,7200,'false'),
(34,35413,178354,-14924,-2200,16384,7200,'false'),
(34,35413,178387,-14924,-2200,16384,7200,'false'),
(34,35413,178420,-14924,-2200,16384,7200,'false'),
(34,35413,178454,-14924,-2200,16384,7200,'false'),
(34,35412,178222,-14904,-2200,16384,7200,'false'),
(34,35412,178255,-14904,-2200,16384,7200,'false'),
(34,35412,178288,-14904,-2200,16384,7200,'false'),
(34,35412,178321,-14904,-2200,16384,7200,'false'),
(34,35412,178354,-14904,-2200,16384,7200,'false'),
(34,35412,178387,-14904,-2200,16384,7200,'false'),
(34,35412,178420,-14904,-2200,16384,7200,'false'),
(34,35412,178454,-14904,-2200,16384,7200,'false'),
(34,35412,178222,-14884,-2200,16384,7200,'false'),
(34,35412,178255,-14884,-2200,16384,7200,'false'),
(34,35412,178288,-14884,-2200,16384,7200,'false'),
(34,35412,178321,-14884,-2200,16384,7200,'false'),
(34,35412,178354,-14884,-2200,16384,7200,'false'),
(34,35412,178387,-14884,-2200,16384,7200,'false'),
(34,35412,178420,-14884,-2200,16384,7200,'false'),
(34,35412,178454,-14884,-2200,16384,7200,'false'),
-- East Terrace
(34,35413,178801,-14975,-2080,16384,7200,'false'),
(34,35413,178822,-14936,-2080,16384,7200,'false'),
(34,35413,178843,-14897,-2080,16384,7200,'false'),
(34,35413,178865,-14857,-2080,16384,7200,'false'),
(34,35413,178886,-14818,-2080,16384,7200,'false'),
(34,35413,178908,-14778,-2080,16384,7200,'false'),
(34,35413,178929,-14739,-2080,16384,7200,'false'),
(34,35413,178951,-14699,-2080,16384,7200,'false'),
-- West Terrace
(34,35413,177834,-15015,-2210,16384,7200,'false'),
(34,35413,177803,-14971,-2210,16384,7200,'false'),
(34,35413,177772,-14927,-2210,16384,7200,'false'),
(34,35413,177741,-14883,-2210,16384,7200,'false'),
(34,35413,177711,-14838,-2210,16384,7200,'false'),
(34,35413,177680,-14794,-2210,16384,7200,'false'),
(34,35413,177649,-14750,-2210,16384,7200,'false'),
(34,35413,177619,-14705,-2210,16384,7200,'false'),
-- Area 2 (back wall of resistance)
(34,35413,178640,-18216,-2200,-16384,7200,'false'),
(34,35413,178661,-18218,-2200,-16384,7200,'false'),
(34,35413,178682,-18220,-2200,-16384,7200,'false'),
(34,35413,178703,-18222,-2200,-16384,7200,'false'),
(34,35413,178724,-18224,-2200,-16384,7200,'false'),
(34,35413,178745,-18226,-2200,-16384,7200,'false'),
(34,35413,178766,-18228,-2200,-16384,7200,'false'),
(34,35413,178788,-18229,-2200,-16384,7200,'false'),
(34,35414,178640,-18196,-2200,-16384,7200,'false'),
(34,35414,178661,-18198,-2200,-16384,7200,'false'),
(34,35414,178682,-18200,-2200,-16384,7200,'false'),
(34,35414,178703,-18202,-2200,-16384,7200,'false'),
(34,35414,178724,-18204,-2200,-16384,7200,'false'),
(34,35414,178745,-18206,-2200,-16384,7200,'false'),
(34,35414,178766,-18208,-2200,-16384,7200,'false'),
(34,35414,178788,-18209,-2200,-16384,7200,'false'),
(34,35412,178640,-18176,-2200,-16384,7200,'false'),
(34,35412,178661,-18178,-2200,-16384,7200,'false'),
(34,35412,178682,-18180,-2200,-16384,7200,'false'),
(34,35412,178703,-18182,-2200,-16384,7200,'false'),
(34,35412,178724,-18184,-2200,-16384,7200,'false'),
(34,35412,178745,-18186,-2200,-16384,7200,'false'),
(34,35412,178766,-18188,-2200,-16384,7200,'false'),
(34,35412,178788,-18189,-2200,-16384,7200,'false'),
-- Area 3
(34,35413,177335,-17128,-2200,16384,7200,'false'),
(34,35413,177305,-17128,-2200,16384,7200,'false'),
(34,35413,177276,-17128,-2200,16384,7200,'false'),
(34,35413,177246,-17128,-2200,16384,7200,'false'),
(34,35413,177217,-17128,-2200,16384,7200,'false'),
(34,35413,177187,-17128,-2200,16384,7200,'false'),
(34,35413,177158,-17128,-2200,16384,7200,'false'),
(34,35413,177129,-17128,-2200,16384,7200,'false'),
(34,35414,177335,-17148,-2200,16384,7200,'false'),
(34,35414,177305,-17148,-2200,16384,7200,'false'),
(34,35414,177276,-17148,-2200,16384,7200,'false'),
(34,35414,177246,-17148,-2200,16384,7200,'false'),
(34,35414,177217,-17148,-2200,16384,7200,'false'),
(34,35414,177187,-17148,-2200,16384,7200,'false'),
(34,35414,177158,-17148,-2200,16384,7200,'false'),
(34,35414,177129,-17148,-2200,16384,7200,'false'),
(34,35412,177335,-17168,-2200,16384,7200,'false'),
(34,35412,177305,-17168,-2200,16384,7200,'false'),
(34,35412,177276,-17168,-2200,16384,7200,'false'),
(34,35412,177246,-17168,-2200,16384,7200,'false'),
(34,35412,177217,-17168,-2200,16384,7200,'false'),
(34,35412,177187,-17168,-2200,16384,7200,'false'),
(34,35412,177158,-17168,-2200,16384,7200,'false'),
(34,35412,177129,-17168,-2200,16384,7200,'false'),
-- Region 1 (left)
(34,35413,177707,-15427,-2226,3000,7200,'false'),
(34,35413,177727,-15464,-2226,3000,7200,'false'),
(34,35413,177680,-15485,-2226,3000,7200,'false'),
(34,35413,177745,-15498,-2226,3000,7200,'false'),
(34,35413,177769,-15540,-2226,3000,7200,'false'),
(34,35413,177722,-15561,-2226,3000,7200,'false'),
(34,35413,177788,-15578,-2226,3000,7200,'false'),
(34,35413,177811,-15622,-2226,3000,7200,'false'),
(34,35413,177765,-15643,-2226,3000,7200,'false'),
(34,35413,177838,-15664,-2226,3000,7200,'false'),
(34,35413,177859,-15704,-2226,3000,7200,'false'),
(34,35413,177813,-15726,-2226,3000,7200,'false'),
(34,35413,177880,-15744,-2226,3000,7200,'false'),
(34,35413,177906,-15791,-2226,3000,7200,'false'),
(34,35413,177859,-15812,-2226,3000,7200,'false'),
(34,35411,177470,-15856,-2250,10000,7200,'false'),
(34,35411,177506,-15887,-2250,10000,7200,'false'),
(34,35411,177627,-15953,-2250,10000,7200,'false'),
(34,35411,177703,-15999,-2250,10000,7200,'false'),
(34,35411,177400,-15854,-2250,10000,7200,'false'),
(34,35411,177517,-15930,-2250,10000,7200,'false'),
(34,35411,177564,-15963,-2250,10000,7200,'false'),
(34,35411,177608,-15985,-2250,10000,7200,'false'),
(34,35411,177709,-16043,-2253,10000,7200,'false'),
(34,35411,177387,-15955,-2250,10000,7200,'false'),
(34,35411,177661,-16014,-2253,10000,7200,'false'),
(34,35411,177308,-15861,-2253,10000,7200,'false'),
(34,35411,177606,-16035,-2253,10000,7200,'false'),
(34,35411,177861,-16164,-2253,10000,7200,'false'),
(34,35411,177810,-16145,-2253,10000,7200,'false'),
(34,35411,177719,-15951,-2253,10000,7200,'false'),
(34,35411,177667,-15921,-2253,10000,7200,'false'),
(34,35415,177428,-15981,-2250,10000,7200,'false'),
(34,35415,177473,-16011,-2250,10000,7200,'false'),
(34,35415,177612,-16090,-2250,10000,7200,'false'),
(34,35415,177657,-16113,-2250,10000,7200,'false'),
(34,35415,177387,-15996,-2250,10000,7200,'false'),
(34,35415,177433,-16026,-2250,10000,7200,'false'),
(34,35415,177530,-16079,-2250,10000,7200,'false'),
(34,35415,177571,-16105,-2250,10000,7200,'false'),
(34,35415,177663,-16154,-2250,10000,7200,'false'),
-- Region 1 (right)
(34,35413,179009,-15201,-2221,40000,7200,'false'),
(34,35413,179052,-15226,-2221,40000,7200,'false'),
(34,35413,179073,-15203,-2221,40000,7200,'false'),
(34,35413,179101,-15253,-2221,40000,7200,'false'),
(34,35413,179144,-15271,-2221,40000,7200,'false'),
(34,35413,179164,-15247,-2221,40000,7200,'false'),
(34,35413,179189,-15286,-2221,40000,7200,'false'),
(34,35413,179226,-15309,-2221,40000,7200,'false'),
(34,35413,179246,-15285,-2221,40000,7200,'false'),
(34,35413,179260,-15341,-2221,40000,7200,'false'),
(34,35413,179302,-15372,-2221,40000,7200,'false'),
(34,35413,179322,-15349,-2221,40000,7200,'false'),
(34,35413,179341,-15406,-2221,40000,7200,'false'),
(34,35413,179391,-15439,-2221,40000,7200,'false'),
(34,35411,179327,-16101,-2253,25000,7200,'false'),
(34,35411,179426,-16009,-2253,25000,7200,'false'),
(34,35415,179491,-15981,-2256,25000,7200,'false'),
(34,35415,179503,-15925,-2256,25000,7200,'false'),
(34,35415,179544,-15882,-2256,25000,7200,'false'),
(34,35415,179570,-15901,-2256,25000,7200,'false'),
(34,35415,179279,-16219,-2256,25000,7200,'false'),
(34,35415,179370,-16196,-2256,25000,7200,'false'),
(34,35415,179408,-16158,-2256,25000,7200,'false'),
(34,35415,179562,-15984,-2256,25000,7200,'false'),
(34,35415,179599,-15943,-2256,25000,7200,'false'),
-- Region 2
(34,35411,179433,-16991,-2246,16384,1200,'false'),
(34,35411,179715,-17454,-2246,16384,1200,'false'),
(34,35411,179438,-16875,-2246,16384,1200,'false'),
(34,35411,179540,-16876,-2246,16384,1200,'false'),
(34,35411,179593,-16876,-2246,16384,1200,'false'),
(34,35411,179485,-17213,-2246,16384,1200,'false'),
(34,35411,179537,-17214,-2246,16384,1200,'false'),
(34,35411,179641,-17215,-2246,16384,1200,'false'),
(34,35411,179542,-17453,-2246,16384,1200,'false'),
(34,35411,179594,-17453,-2246,16384,1200,'false'),
(34,35411,179444,-16937,-2256,16384,1200,'false'),
(34,35411,179468,-17280,-2256,16384,1200,'false'),
(34,35411,179514,-17281,-2256,16384,1200,'false'),
(34,35411,179479,-17133,-2256,16384,1200,'false'),
(34,35411,179525,-17135,-2256,16384,1200,'false'),
(34,35415,179576,-17137,-2256,16384,1200,'false'),
(34,35415,179633,-17137,-2256,16384,1200,'false'),
(34,35415,179436,-17776,-2256,16384,1200,'false'),
(34,35415,179636,-17780,-2256,16384,1200,'false'),
(34,35415,179697,-17781,-2256,16384,1200,'false'),
(34,35415,179446,-17391,-2252,16384,1200,'false'),
(34,35415,179508,-17341,-2252,16384,1200,'false'),
(34,35415,179432,-17719,-2252,16384,1200,'false'),
(34,35415,179437,-17522,-2252,16384,1200,'false'),
(34,35415,179557,-17524,-2252,16384,1200,'false'),
(34,35415,179707,-17722,-2252,16384,1200,'false'),
(34,35415,179604,-17525,-2252,16384,1200,'false'),
(34,35415,179665,-17527,-2252,16384,1200,'false'),
(34,35415,179534,-17892,-2252,16384,1200,'false'),
(34,35415,179436,-17841,-2252,16384,1200,'false'),
(34,35415,179482,-17841,-2252,16384,1200,'false'),
(34,35415,179536,-17842,-2252,16384,1200,'false'),
(34,35415,179694,-17897,-2252,16384,1200,'false'),
(34,35415,179696,-17844,-2252,16384,1200,'false'),
-- Region 3
(34,35413,178578,-18383,-2250,0,7200,'false'),
(34,35413,178577,-18422,-2250,0,7200,'false'),
(34,35413,178576,-18461,-2250,0,7200,'false'),
(34,35413,178575,-18500,-2250,0,7200,'false'),
(34,35413,178574,-18539,-2250,0,7200,'false'),
(34,35413,178573,-18577,-2250,0,7200,'false'),
(34,35413,178571,-18618,-2250,0,7200,'false'),
(34,35413,178571,-18657,-2250,0,7200,'false'),
(34,35413,178571,-18697,-2250,0,7200,'false'),
(34,35413,178570,-18736,-2250,0,7200,'false'),
(34,35413,178530,-18382,-2250,0,7200,'false'),
(34,35413,178530,-18421,-2250,0,7200,'false'),
(34,35413,178528,-18461,-2250,0,7200,'false'),
(34,35413,178528,-18499,-2250,0,7200,'false'),
(34,35413,178526,-18538,-2250,0,7200,'false'),
(34,35413,178526,-18576,-2250,0,7200,'false'),
(34,35413,178524,-18618,-2250,0,7200,'false'),
(34,35413,178523,-18656,-2250,0,7200,'false'),
(34,35413,178523,-18696,-2250,0,7200,'false'),
(34,35413,178523,-18735,-2250,0,7200,'false'),
-- Region 4
(34,35413,178437,-16548,-2217,0,7200,'false'),
(34,35413,178437,-16587,-2217,0,7200,'false'),
(34,35413,178435,-16627,-2217,0,7200,'false'),
(34,35413,178435,-16665,-2217,0,7200,'false'),
(34,35413,178433,-16704,-2217,0,7200,'false'),
(34,35413,178433,-16742,-2217,0,7200,'false'),
(34,35413,178431,-16784,-2217,0,7200,'false'),
(34,35413,178431,-16822,-2217,0,7200,'false'),
(34,35413,178430,-16862,-2217,0,7200,'false'),
(34,35413,178430,-16901,-2217,0,7200,'false'),
(34,35413,178161,-16562,-2217,0,7200,'false'),
(34,35413,178160,-16600,-2217,0,7200,'false'),
(34,35413,178158,-16640,-2217,0,7200,'false'),
(34,35413,178158,-16679,-2217,0,7200,'false'),
(34,35413,178156,-16718,-2217,0,7200,'false'),
(34,35413,178156,-16756,-2217,0,7200,'false'),
(34,35413,178154,-16797,-2217,0,7200,'false'),
(34,35413,178154,-16836,-2217,0,7200,'false'),
(34,35413,178153,-16876,-2217,0,7200,'false'),
(34,35413,178153,-16914,-2217,0,7200,'false'),
(34,35413,177876,-16558,-2217,0,7200,'false'),
(34,35413,177876,-16597,-2217,0,7200,'false'),
(34,35413,177874,-16637,-2217,0,7200,'false'),
(34,35413,177873,-16675,-2217,0,7200,'false'),
(34,35413,177872,-16714,-2217,0,7200,'false'),
(34,35413,177871,-16752,-2217,0,7200,'false'),
(34,35413,177870,-16794,-2217,0,7200,'false'),
(34,35413,177869,-16832,-2217,0,7200,'false'),
(34,35413,177869,-16873,-2217,0,7200,'false'),
(34,35413,177868,-16911,-2217,0,7200,'false'),
(34,35411,178403,-16566,-2218,0,7200,'false'),
(34,35411,178398,-16781,-2218,0,7200,'false'),
(34,35411,178397,-16824,-2218,0,7200,'false'),
(34,35411,178395,-16865,-2218,0,7200,'false'),
(34,35411,178326,-16720,-2218,0,7200,'false'),
(34,35411,178324,-16762,-2218,0,7200,'false'),
(34,35411,178324,-16804,-2218,0,7200,'false'),
(34,35411,178122,-16672,-2218,0,7200,'false'),
(34,35411,178120,-16714,-2218,0,7200,'false'),
(34,35411,178122,-16759,-2218,0,7200,'false'),
(34,35411,178117,-16885,-2218,0,7200,'false'),
(34,35411,178061,-16738,-2218,0,7200,'false'),
(34,35411,178063,-16784,-2218,0,7200,'false'),
(34,35411,178060,-16826,-2218,0,7200,'false'),
(34,35411,178060,-16868,-2218,0,7200,'false'),
(34,35415,178366,-16582,-2217,0,7200,'false'),
(34,35415,178366,-16674,-2217,0,7200,'false'),
(34,35415,178366,-16721,-2217,0,7200,'false'),
(34,35415,178363,-16768,-2217,0,7200,'false'),
(34,35415,178290,-16550,-2217,0,7200,'false'),
(34,35415,178290,-16690,-2217,0,7200,'false'),
(34,35415,178288,-16783,-2217,0,7200,'false'),
(34,35415,178285,-16832,-2217,0,7200,'false'),
(34,35415,178095,-16736,-2217,0,7200,'false'),
(34,35415,178092,-16782,-2217,0,7200,'false'),
(34,35415,178090,-16878,-2217,0,7200,'false'),
(34,35415,178029,-16587,-2217,0,7200,'false'),
(34,35415,178029,-16727,-2217,0,7200,'false'),
(34,35415,178027,-16773,-2217,0,7200,'false'),
(34,35415,178027,-16820,-2217,0,7200,'false'),
-- Region 5
(34,35413,177466,-17397,-2207,32768,7200,'false'),
(34,35415,177440,-17380,-2215,32768,7200,'false'),
(34,35416,177501,-17384,-2219,32768,7200,'false'),
(34,35415,177439,-17426,-2215,32768,7200,'false'),
(34,35415,177438,-17472,-2215,32768,7200,'false'),
(34,35415,177436,-17605,-2215,32768,7200,'false'),
(34,35415,177432,-17791,-2215,32768,7200,'false'),
(34,35415,177431,-17836,-2215,32768,7200,'false'),
(34,35415,177559,-17708,-2215,32768,7200,'false'),
(34,35415,177558,-17755,-2215,32768,7200,'false'),
(34,35415,177564,-17425,-2215,32768,7200,'false'),
(34,35415,177561,-17563,-2215,32768,7200,'false'),
(34,35413,177466,-17445,-2207,32768,7200,'false'),
(34,35413,177466,-17537,-2207,32768,7200,'false'),
(34,35413,177466,-17627,-2207,32768,7200,'false'),
(34,35413,177466,-17716,-2207,32768,7200,'false'),
(34,35413,177467,-17809,-2207,32768,7200,'false'),
(34,35413,177603,-17446,-2207,32768,7200,'false'),
(34,35413,177603,-17539,-2207,32768,7200,'false'),
(34,35413,177604,-17628,-2207,32768,7200,'false'),
(34,35413,177604,-17718,-2207,32768,7200,'false'),
(34,35413,177601,-17811,-2207,32768,7200,'false'),
(34,35413,177693,-17447,-2207,32768,7200,'false'),
(34,35413,177693,-17539,-2207,32768,7200,'false'),
(34,35413,177693,-17629,-2207,32768,7200,'false'),
(34,35413,177693,-17718,-2207,32768,7200,'false'),
(34,35413,177694,-17811,-2207,32768,7200,'false'),
(34,35413,177396,-17452,-2207,32768,7200,'false'),
(34,35413,177396,-17545,-2207,32768,7200,'false'),
(34,35413,177397,-17634,-2207,32768,7200,'false'),
(34,35413,177397,-17723,-2207,32768,7200,'false'),
(34,35413,177398,-17817,-2207,32768,7200,'false'),
(34,35413,177749,-17446,-2207,32768,7200,'false'),
(34,35413,177749,-17538,-2207,32768,7200,'false'),
(34,35413,177750,-17628,-2207,32768,7200,'false'),
(34,35413,177750,-17717,-2207,32768,7200,'false'),
(34,35413,177751,-17810,-2207,32768,7200,'false'),
(34,35415,177531,-17399,-2215,32768,7200,'false'),
(34,35415,177527,-17537,-2215,32768,7200,'false'),
(34,35415,177527,-17578,-2215,32768,7200,'false'),
(34,35415,177524,-17763,-2215,32768,7200,'false'),
(34,35415,177523,-17810,-2215,32768,7200,'false'),
(34,35415,177636,-17516,-2215,32768,7200,'false'),
(34,35415,177635,-17603,-2215,32768,7200,'false'),
(34,35415,177633,-17740,-2215,32768,7200,'false'),
(34,35415,177632,-17788,-2215,32768,7200,'false'),
(34,35415,177631,-17835,-2215,32768,7200,'false'),
(34,35416,177501,-17424,-2219,32768,7200,'false'),
(34,35416,177500,-17469,-2219,32768,7200,'false'),
(34,35416,177496,-17645,-2219,32768,7200,'false'),
(34,35416,177496,-17686,-2219,32768,7200,'false'),
(34,35416,177666,-17508,-2219,32768,7200,'false'),
(34,35416,177664,-17559,-2219,32768,7200,'false'),
(34,35416,177664,-17599,-2219,32768,7200,'false'),
(34,35416,177662,-17644,-2219,32768,7200,'false'),
(34,35416,177662,-17685,-2219,32768,7200,'false'),
(34,35416,177661,-17818,-2219,32768,7200,'false'),
(34,35416,177728,-17377,-2219,32768,7200,'false'),
(34,35416,177725,-17503,-2219,32768,7200,'false'),
(34,35416,177724,-17553,-2219,32768,7200,'false'),
(34,35416,177724,-17594,-2219,32768,7200,'false'),
(34,35416,177722,-17728,-2219,32768,7200,'false'),
(34,35416,177722,-17768,-2219,32768,7200,'false'),
(34,35416,177721,-17813,-2219,32768,7200,'false'),
(34,35416,177567,-17376,-2219,32768,7200,'false'),
(34,35416,177560,-17849,-2219,32768,7200,'false'),
-- Region 6
(34,35410,178298,-17624,-2194,32768,7200,'true');
INSERT INTO `clanhall_siege_guards` VALUES
-- Partisan's Hideaway (Fortress of Resistance)
-- Mercury Monster
(21,35369,44545,108867,-2020,0,60,'false'),
(21,35369,44505,108867,-2020,0,60,'false'),
(21,35371,44535,108884,-2020,0,60,'false'),
(21,35371,44515,108884,-2020,0,60,'false'),
(21,35371,44515,108850,-2020,0,60,'false'),
(21,35371,44535,108850,-2020,0,60,'false'),
(21,35370,44565,108867,-2020,0,60,'false'),
(21,35370,44553,108895,-2020,0,60,'false'),
(21,35370,44535,108895,-2020,0,60,'false'),
(21,35370,44497,108895,-2020,0,60,'false'),
(21,35370,44485,108867,-2020,0,60,'false'),
(21,35370,44497,108839,-2020,0,60,'false'),
(21,35370,44525,108827,-2020,0,60,'false'),
(21,35370,44553,108839,-2020,0,60,'false'),
(21,35374,44812,109492,-1705,0,60,'false'),
(21,35373,44788,109492,-1705,0,60,'false'),
(21,35374,45236,108980,-1705,0,60,'false'),
(21,35373,45168,109020,-1705,0,60,'false'),
-- (21,35372,anywhere - total 15,0,60,'false'), TODO: needs support for random spawn by zone.
(21,35382,50343,111282,-1970,0,60,'false'),
(21,35383,43129,108841,-1980,0,60,'false'),
(21,35375,44525,108867,-2020,0,10800,'true');
INSERT INTO `clanhall_siege_guards` VALUES
-- Bandit Stronghold
(35,35560,79745,-15472,-1792,0,1200,'false'),
(35,35561,83348,-18267,-1248,14536,1200,'false'),
(35,35562,81258,-17387,-1248,11144,1200,'false'),
(35,35563,81832,-14223,-1248,-17664,1200,'false'),
(35,35564,83687,-14532,-1248,-19008,1200,'false'),
(35,35565,85263,-15447,-1248,-21328,1200,'false');
INSERT INTO `clanhall_siege_guards` VALUES
-- Beast Farm
(63,35612,60606,-93984,-1344,0,1200,'false'),
(63,35613,56098,-91770,-1360,0,1200,'false'),
(63,35614,58276,-90672,-1360,0,1200,'false'),
(63,35615,59970,-92422,-1360,0,1200,'false'),
(63,35616,58783,-94540,-1360,0,1200,'false'),
(63,35617,56415,-94126,-1360,0,1200,'false');
INSERT INTO `clanhall_siege_guards` VALUES
-- Fortress of the Dead
(64,35630,59282,-26496,568,49000,7200,'false'),
(64,35631,56619,-27866,568,49000,7200,'false'),
(64,35634,57931,-29540,565,49152,7200,'false'),
(64,35634,57888,-29540,565,49152,7200,'false'),
(64,35634,57845,-29540,565,49152,7200,'false'),
(64,35634,57801,-29540,565,49152,7200,'false'),
(64,35634,57758,-29540,565,49152,7200,'false'),
(64,35634,58150,-29540,565,49152,7200,'false'),
(64,35634,58107,-29540,565,49152,7200,'false'),
(64,35634,58063,-29540,565,49152,7200,'false'),
(64,35634,58020,-29540,565,49152,7200,'false'),
(64,35634,57977,-29540,565,49152,7200,'false'),
(64,35634,57783,-29569,565,49152,7200,'false'),
(64,35634,57740,-29569,565,49152,7200,'false'),
(64,35634,58170,-29570,565,49152,7200,'false'),
(64,35634,58128,-29570,565,49152,7200,'false'),
(64,35633,57929,-29570,575,49152,7200,'false'),
(64,35633,57885,-29570,575,49152,7200,'false'),
(64,35633,57836,-29570,575,49152,7200,'false'),
(64,35633,58072,-29570,575,49152,7200,'false'),
(64,35633,58029,-29570,575,49152,7200,'false'),
(64,35633,57980,-29570,575,49152,7200,'false'),
(64,35633,57928,-29606,575,49152,7200,'false'),
(64,35633,57885,-29606,575,49152,7200,'false'),
(64,35633,57836,-29606,575,49152,7200,'false'),
(64,35633,58072,-29607,575,49152,7200,'false'),
(64,35633,58028,-29607,575,49152,7200,'false'),
(64,35633,57979,-29607,575,49152,7200,'false'),
(64,35633,57780,-29606,575,49152,7200,'false'),
(64,35633,57731,-29606,575,49152,7200,'false'),
(64,35633,58172,-29608,575,49152,7200,'false'),
(64,35633,58123,-29608,575,49152,7200,'false'),
(64,35634,58435,-29647,567,49152,7200,'false'),
(64,35634,58450,-29681,567,49152,7200,'false'),
(64,35634,58468,-29713,567,49152,7200,'false'),
(64,35634,58484,-29745,567,49152,7200,'false'),
(64,35634,58500,-29777,567,49152,7200,'false'),
(64,35634,58520,-29815,587,49152,7200,'false'),
(64,35634,58536,-29848,587,49152,7200,'false'),
(64,35634,58556,-29886,567,49152,7200,'false'),
(64,35634,57473,-29664,567,49152,7200,'false'),
(64,35634,57452,-29695,567,49152,7200,'false'),
(64,35634,57435,-29728,567,49152,7200,'false'),
(64,35634,57420,-29760,567,49152,7200,'false'),
(64,35634,57409,-29791,567,49152,7200,'false'),
(64,35634,57394,-29824,580,49152,7200,'false'),
(64,35634,57379,-29856,580,49152,7200,'false'),
(64,35634,57363,-29888,567,49152,7200,'false'),
(64,35634,57893,-26684,591,-88,7200,'false'),
(64,35634,57893,-26722,591,-88,7200,'false'),
(64,35634,57893,-26759,591,-88,7200,'false'),
(64,35634,57893,-26646,591,-88,7200,'false'),
(64,35634,57863,-26646,591,-88,7200,'false'),
(64,35634,57863,-26684,591,-88,7200,'false'),
(64,35634,57863,-26722,591,-88,7200,'false'),
(64,35634,57863,-26758,591,-88,7200,'false'),
(64,35635,57973,-26684,591,-88,7200,'false'),
(64,35635,57973,-26722,591,-88,7200,'false'),
(64,35635,57973,-26759,591,-88,7200,'false'),
(64,35635,57973,-26646,591,-88,7200,'false'),
(64,35635,57943,-26646,591,-88,7200,'false'),
(64,35635,57943,-26684,591,-88,7200,'false'),
(64,35635,57943,-26721,591,-88,7200,'false'),
(64,35635,57943,-26758,591,-88,7200,'false'),
(64,35633,58046,-26682,591,-88,7200,'false'),
(64,35633,58046,-26720,591,-88,7200,'false'),
(64,35633,58046,-26758,591,-88,7200,'false'),
(64,35633,58046,-26644,591,-88,7200,'false'),
(64,35633,58017,-26644,591,-88,7200,'false'),
(64,35633,58017,-26682,591,-88,7200,'false'),
(64,35633,58017,-26720,591,-88,7200,'false'),
(64,35633,58017,-26757,591,-88,7200,'false'),
(64,35634,58889,-26764,565,-88,7200,'false'),
(64,35634,58889,-26802,565,-88,7200,'false'),
(64,35634,58889,-26840,565,-88,7200,'false'),
(64,35634,58889,-26876,565,-88,7200,'false'),
(64,35634,58889,-26726,565,-88,7200,'false'),
(64,35634,58889,-26570,565,-88,7200,'false'),
(64,35634,58889,-26608,565,-88,7200,'false'),
(64,35634,58889,-26645,565,-88,7200,'false'),
(64,35634,58889,-26682,565,-88,7200,'false'),
(64,35634,58889,-26532,565,-88,7200,'false'),
(64,35634,58887,-26379,565,-88,7200,'false'),
(64,35634,58887,-26417,565,-88,7200,'false'),
(64,35634,58887,-26454,565,-88,7200,'false'),
(64,35634,58887,-26491,565,-88,7200,'false'),
(64,35634,58887,-26341,565,-88,7200,'false'),
(64,35632,56669,-26839,592,16384,7200,'false'),
(64,35634,56708,-26902,565,16448,7200,'false'),
(64,35634,56746,-26902,565,16448,7200,'false'),
(64,35634,56784,-26902,565,16448,7200,'false'),
(64,35634,56820,-26902,565,16448,7200,'false'),
(64,35634,56858,-26903,565,16448,7200,'false'),
(64,35634,56894,-26903,565,16448,7200,'false'),
(64,35634,56670,-26902,565,16448,7200,'false'),
(64,35634,56935,-26903,565,16448,7200,'false'),
(64,35634,57018,-26902,565,16448,7200,'false'),
(64,35634,57056,-26902,565,16448,7200,'false'),
(64,35634,57093,-26902,565,16448,7200,'false'),
(64,35634,57130,-26902,565,16448,7200,'false'),
(64,35634,57168,-26903,565,16448,7200,'false'),
(64,35634,57204,-26903,565,16448,7200,'false'),
(64,35634,56980,-26902,565,16448,7200,'false'),
(64,35634,56708,-26874,565,16448,7200,'false'),
(64,35634,56746,-26874,565,16448,7200,'false'),
(64,35634,56783,-26874,565,16448,7200,'false'),
(64,35634,56820,-26874,565,16448,7200,'false'),
(64,35634,56857,-26875,565,16448,7200,'false'),
(64,35634,56894,-26875,565,16448,7200,'false'),
(64,35634,56670,-26874,565,16448,7200,'false'),
(64,35634,56935,-26875,565,16448,7200,'false'),
(64,35634,57018,-26875,565,16448,7200,'false'),
(64,35634,57056,-26875,565,16448,7200,'false'),
(64,35634,57094,-26875,565,16448,7200,'false'),
(64,35634,57131,-26875,565,16448,7200,'false'),
(64,35634,57168,-26876,565,16448,7200,'false'),
(64,35634,57205,-26876,565,16448,7200,'false'),
(64,35634,56980,-26875,565,16448,7200,'false'),
(64,35632,56708,-26839,592,16384,7200,'false'),
(64,35632,56748,-26839,592,16384,7200,'false'),
(64,35632,56788,-26839,592,16384,7200,'false'),
(64,35632,56829,-26839,592,16384,7200,'false'),
(64,35632,56870,-26839,592,16384,7200,'false'),
(64,35632,56910,-26839,592,16384,7200,'false'),
(64,35632,56950,-26839,592,16384,7200,'false'),
(64,35632,56989,-26839,592,16384,7200,'false'),
(64,35632,57030,-26839,592,16384,7200,'false'),
(64,35632,56667,-26799,592,16384,7200,'false'),
(64,35632,56706,-26799,592,16384,7200,'false'),
(64,35632,56747,-26799,592,16384,7200,'false'),
(64,35632,56786,-26799,592,16384,7200,'false'),
(64,35632,56827,-26799,592,16384,7200,'false'),
(64,35636,56869,-26802,587,16384,7200,'false'),
(64,35636,56908,-26802,587,16384,7200,'false'),
(64,35636,56948,-26802,587,16384,7200,'false'),
(64,35636,56989,-26802,587,16384,7200,'false'),
(64,35636,57030,-26802,587,16384,7200,'false'),
(64,35636,57071,-26804,587,16384,7200,'false'),
(64,35636,57111,-26804,587,16384,7200,'false'),
(64,35636,57151,-26804,587,16384,7200,'false'),
(64,35636,57191,-26804,587,16384,7200,'false'),
(64,35636,57233,-26804,587,16384,7200,'false'),
(64,35636,57070,-26842,587,16384,7200,'false'),
(64,35636,57110,-26842,587,16384,7200,'false'),
(64,35636,57150,-26842,587,16384,7200,'false'),
(64,35636,57190,-26842,587,16384,7200,'false'),
(64,35636,57232,-26842,587,16384,7200,'false'),
(64,35634,57461,-28550,565,0,7200,'false'),
(64,35634,57461,-28503,565,0,7200,'false'),
(64,35634,57461,-28455,565,0,7200,'false'),
(64,35634,57461,-28408,565,0,7200,'false'),
(64,35634,57461,-28360,565,0,7200,'false'),
(64,35634,57461,-28791,565,0,7200,'false'),
(64,35634,57461,-28744,565,0,7200,'false'),
(64,35634,57461,-28696,565,0,7200,'false'),
(64,35634,57461,-28649,565,0,7200,'false'),
(64,35634,57461,-28601,565,0,7200,'false'),
(64,35632,57543,-28587,592,0,7200,'false'),
(64,35636,57605,-28901,587,0,7200,'false'),
(64,35632,57543,-28632,592,0,7200,'false'),
(64,35632,57543,-28678,592,0,7200,'false'),
(64,35632,57543,-28727,592,0,7200,'false'),
(64,35632,57543,-28775,592,0,7200,'false'),
(64,35632,57606,-28399,592,0,7200,'false'),
(64,35632,57543,-28398,592,0,7200,'false'),
(64,35632,57543,-28444,592,0,7200,'false'),
(64,35632,57543,-28494,592,0,7200,'false'),
(64,35632,57543,-28541,592,0,7200,'false'),
(64,35636,57605,-28856,587,0,7200,'false'),
(64,35636,57605,-28807,587,0,7200,'false'),
(64,35636,57605,-28761,587,0,7200,'false'),
(64,35636,57605,-28716,587,0,7200,'false'),
(64,35636,57605,-28668,587,0,7200,'false'),
(64,35636,57605,-28624,587,0,7200,'false'),
(64,35636,57605,-28575,587,0,7200,'false'),
(64,35636,57605,-28529,587,0,7200,'false'),
(64,35636,57605,-28483,587,0,7200,'false'),
(64,35632,57543,-28826,592,0,7200,'false'),
(64,35632,57545,-28882,592,0,7200,'false'),
(64,35632,57545,-28933,592,0,7200,'false'),
(64,35634,57462,-29031,565,0,7200,'false'),
(64,35634,57462,-28984,565,0,7200,'false'),
(64,35634,57462,-28937,565,0,7200,'false'),
(64,35634,57462,-28889,565,0,7200,'false'),
(64,35634,57462,-28841,565,0,7200,'false'),
(64,35632,57546,-28986,592,0,7200,'false'),
(64,35632,57606,-28984,592,0,7200,'false'),
(64,35632,58972,-28365,592,-24512,7200,'false'),
(64,35634,58879,-28217,565,-24440,7200,'false'),
(64,35634,58913,-28250,565,-24440,7200,'false'),
(64,35634,58948,-28284,565,-24440,7200,'false'),
(64,35634,58980,-28316,565,-24440,7200,'false'),
(64,35634,59015,-28349,565,-24440,7200,'false'),
(64,35634,59050,-28384,565,-24440,7200,'false'),
(64,35634,59084,-28417,565,-24440,7200,'false'),
(64,35634,59119,-28450,565,-24440,7200,'false'),
(64,35634,59151,-28481,565,-24440,7200,'false'),
(64,35634,59187,-28518,565,-24440,7200,'false'),
(64,35634,59222,-28552,565,-24440,7200,'false'),
(64,35634,59256,-28585,565,-24440,7200,'false'),
(64,35634,59291,-28619,565,-24440,7200,'false'),
(64,35634,59322,-28650,565,-24440,7200,'false'),
(64,35632,59166,-28557,592,-24512,7200,'false'),
(64,35636,58894,-28289,587,41088,7200,'false'),
(64,35636,58931,-28325,587,41088,7200,'false'),
(64,35636,59007,-28399,587,41088,7200,'false'),
(64,35636,59044,-28435,587,41088,7200,'false'),
(64,35636,59090,-28484,587,41088,7200,'false'),
(64,35636,59127,-28519,587,41088,7200,'false'),
(64,35636,59207,-28597,587,41088,7200,'false'),
(64,35636,59244,-28633,587,41088,7200,'false'),
(64,35634,56938,-27347,576,32768,7200,'false'),
(64,35634,56938,-27309,576,32768,7200,'false'),
(64,35634,56938,-27271,576,32768,7200,'false'),
(64,35634,56938,-27235,576,32768,7200,'false'),
(64,35634,56940,-27197,576,32768,7200,'false'),
(64,35634,56940,-27160,576,32768,7200,'false'),
(64,35634,56938,-27385,576,32768,7200,'false'),
(64,35634,56940,-27120,576,32768,7200,'false'),
(64,35635,56910,-27347,576,32768,7200,'false'),
(64,35635,56910,-27309,576,32768,7200,'false'),
(64,35635,56910,-27271,576,32768,7200,'false'),
(64,35635,56910,-27234,576,32768,7200,'false'),
(64,35635,56912,-27197,576,32768,7200,'false'),
(64,35635,56912,-27160,576,32768,7200,'false'),
(64,35635,56910,-27385,576,32768,7200,'false'),
(64,35635,56912,-27119,576,32768,7200,'false'),
(64,35633,56880,-27346,576,32768,7200,'false'),
(64,35633,56881,-27308,576,32768,7200,'false'),
(64,35633,56881,-27271,576,32768,7200,'false'),
(64,35633,56881,-27234,576,32768,7200,'false'),
(64,35633,56882,-27197,576,32768,7200,'false'),
(64,35633,56882,-27160,576,32768,7200,'false'),
(64,35633,56880,-27384,576,32768,7200,'false'),
(64,35633,56883,-27119,576,32768,7200,'false'),
(64,35632,59015,-27459,575,49152,7200,'false'),
(64,35632,59054,-27459,575,49152,7200,'false'),
(64,35632,59094,-27459,575,49152,7200,'false'),
(64,35632,59134,-27459,575,49152,7200,'false'),
(64,35632,59175,-27459,575,49152,7200,'false'),
(64,35632,59220,-27459,575,49152,7200,'false'),
(64,35632,59259,-27459,575,49152,7200,'false'),
(64,35632,59299,-27459,575,49152,7200,'false'),
(64,35632,59015,-27409,575,49152,7200,'false'),
(64,35632,59054,-27409,575,49152,7200,'false'),
(64,35632,59094,-27409,575,49152,7200,'false'),
(64,35632,59133,-27409,575,49152,7200,'false'),
(64,35632,59174,-27409,575,49152,7200,'false'),
(64,35632,59220,-27409,575,49152,7200,'false'),
(64,35632,59259,-27409,575,49152,7200,'false'),
(64,35632,59299,-27409,575,49152,7200,'false'),
(64,35636,59015,-27352,575,49152,7200,'false'),
(64,35636,59054,-27352,575,49152,7200,'false'),
(64,35636,59094,-27352,575,49152,7200,'false'),
(64,35636,59134,-27352,575,49152,7200,'false'),
(64,35636,59175,-27352,575,49152,7200,'false'),
(64,35636,59220,-27352,575,49152,7200,'false'),
(64,35636,59259,-27352,575,49152,7200,'false'),
(64,35636,59299,-27352,575,49152,7200,'false'),
(64,35636,59016,-27299,575,49152,7200,'false'),
(64,35636,59055,-27299,575,49152,7200,'false'),
(64,35636,59095,-27299,575,49152,7200,'false'),
(64,35636,59134,-27299,575,49152,7200,'false'),
(64,35636,59175,-27299,575,49152,7200,'false'),
(64,35636,59220,-27299,575,49152,7200,'false'),
(64,35636,59260,-27299,575,49152,7200,'false'),
(64,35636,59300,-27299,575,49152,7200,'false'),
(64,35637,57288,-27776,587,32768,7200,'false'),
(64,35636,57174,-27680,587,32768,7200,'false'),
(64,35636,57175,-27643,587,32768,7200,'false'),
(64,35636,57175,-27606,587,32768,7200,'false'),
(64,35636,57175,-27755,587,32768,7200,'false'),
(64,35636,57174,-27718,587,32768,7200,'false'),
(64,35634,57237,-27608,576,32768,7200,'false'),
(64,35634,57239,-27763,576,32768,7200,'false'),
(64,35636,57209,-27701,587,32768,7200,'false'),
(64,35636,57210,-27664,587,32768,7200,'false'),
(64,35636,57209,-27627,587,32768,7200,'false'),
(64,35636,57210,-27776,587,32768,7200,'false'),
(64,35636,57209,-27739,587,32768,7200,'false'),
(64,35634,57239,-27725,576,32768,7200,'false'),
(64,35634,57238,-27687,576,32768,7200,'false'),
(64,35634,57237,-27648,576,32768,7200,'false'),
(64,35634,57260,-27625,576,32768,7200,'false'),
(64,35634,57262,-27779,576,32768,7200,'false'),
(64,35634,57262,-27742,576,32768,7200,'false'),
(64,35634,57262,-27704,576,32768,7200,'false'),
(64,35634,57261,-27665,576,32768,7200,'false'),
(64,35637,57288,-27732,587,32768,7200,'false'),
(64,35637,57288,-27687,587,32768,7200,'false'),
(64,35637,57288,-27644,587,32768,7200,'false'),
(64,35637,57288,-27599,587,32768,7200,'false'),
(64,35637,57256,-27574,587,32768,7200,'false'),
(64,35637,57543,-27786,587,32768,1200,'false'),
(64,35636,57429,-27690,587,32768,1200,'false'),
(64,35636,57430,-27653,587,32768,1200,'false'),
(64,35636,57429,-27616,587,32768,1200,'false'),
(64,35636,57430,-27765,587,32768,1200,'false'),
(64,35636,57429,-27727,587,32768,1200,'false'),
(64,35634,57492,-27618,576,32768,1200,'false'),
(64,35634,57494,-27772,576,32768,1200,'false'),
(64,35636,57464,-27711,587,32768,1200,'false'),
(64,35636,57465,-27674,587,32768,1200,'false'),
(64,35636,57464,-27637,587,32768,1200,'false'),
(64,35636,57464,-27785,587,32768,1200,'false'),
(64,35636,57463,-27748,587,32768,1200,'false'),
(64,35634,57494,-27735,576,32768,1200,'false'),
(64,35634,57493,-27697,576,32768,1200,'false'),
(64,35634,57492,-27658,576,32768,1200,'false'),
(64,35634,57515,-27634,576,32768,1200,'false'),
(64,35634,57517,-27789,576,32768,1200,'false'),
(64,35634,57517,-27752,576,32768,1200,'false'),
(64,35634,57516,-27714,576,32768,1200,'false'),
(64,35634,57515,-27675,576,32768,1200,'false'),
(64,35637,57543,-27742,587,32768,1200,'false'),
(64,35637,57543,-27697,587,32768,1200,'false'),
(64,35637,57543,-27654,587,32768,1200,'false'),
(64,35637,57543,-27609,587,32768,1200,'false'),
(64,35637,57578,-27783,587,32768,1200,'false'),
(64,35637,57578,-27739,587,32768,1200,'false'),
(64,35637,57578,-27695,587,32768,1200,'false'),
(64,35637,57578,-27651,587,32768,1200,'false'),
(64,35637,57578,-27607,587,32768,1200,'false'),
(64,35637,57476,-27575,587,32768,1200,'false'),
(64,35637,57511,-27573,587,32768,1200,'false'),
(64,35637,57473,-27837,587,32768,1200,'false'),
(64,35637,57508,-27835,587,32768,1200,'false'),
(64,35637,57905,-27648,576,32768,7200,'false'),
(64,35637,57905,-27712,576,32768,7200,'false'),
(64,35637,58233,-27182,576,32768,7200,'false'),
(64,35637,58233,-27232,576,32768,7200,'false'),
(64,35637,58233,-27282,576,32768,7200,'false'),
(64,35637,58233,-27332,576,32768,7200,'false'),
(64,35637,58233,-27382,576,32768,7200,'false'),
(64,35637,58233,-27432,576,32768,7200,'false'),
(64,35637,58233,-27482,576,32768,7200,'false'),
(64,35637,58233,-27532,576,32768,7200,'false'),
(64,35637,58233,-27582,576,32768,7200,'false'),
(64,35637,58233,-27632,576,32768,7200,'false'),
(64,35637,58233,-27682,576,32768,7200,'false'),
(64,35637,58233,-27732,576,32768,7200,'false'),
(64,35637,58233,-27782,576,32768,7200,'false'),
(64,35629,58680,-27507,592,32768,7200,'true');
INSERT INTO `clanhall_siege_guards` VALUES
-- Rainbow Springs
(62,35596,151552,-127075,-2208,5896,60,'false'),
(62,35588,151557,-126987,-2224,0,7200,'false'),
-- (62,35593,anywhere - total 1,0,60,'false'), TODO: needs support for random spawn by zone.
-- (62,35594,anywhere - total 1,0,60,'false'), TODO: needs support for random spawn by zone.
-- (62,35595,anywhere - total 10,0,60,'false'), TODO: needs support for random spawn by zone.
(62,35597,153136,-125333,-2208,-16328,60,'false'),
(62,35589,153135,-125425,-2224,0,7200,'false'),
-- (62,35593,anywhere - total 1,0,60,'false'), TODO: needs support for random spawn by zone.
-- (62,35594,anywhere - total 1,0,60,'false'), TODO: needs support for random spawn by zone.
-- (62,35595,anywhere - total 10,0,60,'false'), TODO: needs support for random spawn by zone.
(62,35598,155660,-125753,-2208,-16496,60,'false'),
(62,35590,155661,-125844,-2224,0,7200,'false'),
-- (62,35593,anywhere - total 1,0,60,'false'), TODO: needs support for random spawn by zone.
-- (62,35594,anywhere - total 1,0,60,'false'), TODO: needs support for random spawn by zone.
-- (62,35595,anywhere - total 10,0,60,'false'), TODO: needs support for random spawn by zone.
(62,35599,153887,-127538,-2208,15992,60,'false'),
(62,35591,153888,-127444,-2224,0,7200,'false');
-- (62,35593,anywhere - total 1,0,60,'false'), TODO: needs support for random spawn by zone.
-- (62,35594,anywhere - total 1,0,60,'false'), TODO: needs support for random spawn by zone.
-- (62,35595,anywhere - total 10,0,60,'false'); TODO: needs support for random spawn by zone.

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `crests` (
`crest_id` INT,
`data` VARBINARY(2176) NOT NULL,
`type` TINYINT NOT NULL,
PRIMARY KEY(`crest_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS `cursed_weapons` (
`itemId` INT,
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`playerKarma` INT DEFAULT 0,
`playerPkKills` INT DEFAULT 0,
`nbKills` INT DEFAULT 0,
`endTime` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`itemId`),
KEY `charId` (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,65 @@
CREATE TABLE IF NOT EXISTS `custom_npc_buffer` (
`npc_id` mediumint(7) NOT NULL,
`skill_id` int(6) NOT NULL,
`skill_level` int(6) NOT NULL DEFAULT '1',
`skill_fee_id` int(6) NOT NULL DEFAULT '0',
`skill_fee_amount` int(6) NOT NULL DEFAULT '0',
`buff_group` int(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`npc_id`,`skill_id`,`buff_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT IGNORE INTO `custom_npc_buffer` VALUES
(1000003,264,1,57,100,264),
(1000003,265,1,57,100,265),
(1000003,266,1,57,100,266),
(1000003,267,1,57,100,267),
(1000003,268,1,57,100,268),
(1000003,269,1,57,100,269),
(1000003,270,1,57,100,270),
(1000003,271,1,57,100,271),
(1000003,272,1,57,100,272),
(1000003,273,1,57,100,273),
(1000003,274,1,57,100,274),
(1000003,275,1,57,100,275),
(1000003,276,1,57,100,276),
(1000003,277,1,57,100,277),
(1000003,304,1,57,100,304),
(1000003,305,1,57,100,305),
(1000003,306,1,57,100,306),
(1000003,307,1,57,100,307),
(1000003,308,1,57,100,308),
(1000003,309,1,57,100,309),
(1000003,310,1,57,100,310),
(1000003,311,1,57,100,311),
(1000003,349,1,57,100,349),
(1000003,363,1,57,100,363),
(1000003,364,1,57,100,364),
(1000003,366,1,57,100,366),
(1000003,367,1,57,100,367),
(1000003,529,1,57,100,529),
(1000003,530,1,57,100,530),
(1000003,1032,1,57,100,1032),
(1000003,1033,1,57,100,1033),
(1000003,1035,1,57,100,1035),
(1000003,1036,1,57,100,1036),
(1000003,1040,1,57,100,1040),
(1000003,1043,1,57,100,1043),
(1000003,1044,1,57,100,1044),
(1000003,1045,1,57,100,1045),
(1000003,1048,1,57,100,1048),
(1000003,1059,1,57,100,1059),
(1000003,1062,1,57,100,1062),
(1000003,1068,1,57,100,1068),
(1000003,1077,1,57,100,1077),
(1000003,1078,1,57,100,1078),
(1000003,1085,1,57,100,1085),
(1000003,1086,1,57,100,1086),
(1000003,1182,1,57,100,1182),
(1000003,1189,1,57,100,1189),
(1000003,1191,1,57,100,1191),
(1000003,1204,1,57,100,1204),
(1000003,1240,1,57,100,1240),
(1000003,1242,1,57,100,1242),
(1000003,1243,1,57,100,1243),
(1000003,1303,1,57,100,1303),
(1000003,1397,1,57,100,1397);

View File

@@ -0,0 +1,15 @@
CREATE TABLE IF NOT EXISTS `custom_spawnlist` (
`location` varchar(40) NOT NULL DEFAULT '',
`count` tinyint(1) unsigned NOT NULL DEFAULT '0',
`npc_templateid` mediumint(7) unsigned NOT NULL DEFAULT '0',
`locx` mediumint(6) NOT NULL DEFAULT '0',
`locy` mediumint(6) NOT NULL DEFAULT '0',
`locz` mediumint(6) NOT NULL DEFAULT '0',
`randomx` mediumint(6) NOT NULL DEFAULT '0',
`randomy` mediumint(6) NOT NULL DEFAULT '0',
`heading` mediumint(6) NOT NULL DEFAULT '0',
`respawn_delay` mediumint(5) NOT NULL DEFAULT '0',
`respawn_random` mediumint(5) NOT NULL DEFAULT '0',
`loc_id` int(9) NOT NULL DEFAULT '0',
`periodOfDay` tinyint(1) unsigned NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS `custom_teleport` (
`Description` varchar(75) DEFAULT NULL,
`id` mediumint(7) unsigned NOT NULL DEFAULT '0',
`loc_x` mediumint(6) DEFAULT NULL,
`loc_y` mediumint(6) DEFAULT NULL,
`loc_z` mediumint(6) DEFAULT NULL,
`price` int(10) unsigned DEFAULT NULL,
`fornoble` tinyint(1) NOT NULL DEFAULT '0',
`itemId` smallint(5) unsigned NOT NULL DEFAULT '57',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,3 @@
This directory contains tables required by the Game Server.
Eventually, additional SQL scripts are locates in: custom/mods/updates folders.

36
trunk/dist/tools/sql/server/fort.sql vendored Normal file
View File

@@ -0,0 +1,36 @@
CREATE TABLE IF NOT EXISTS `fort` (
`id` int(11) NOT NULL DEFAULT 0,
`name` varchar(25) NOT NULL,
`siegeDate` bigint(13) unsigned NOT NULL DEFAULT '0',
`lastOwnedTime` bigint(13) unsigned NOT NULL DEFAULT '0',
`owner` int(11) NOT NULL DEFAULT 0,
`fortType` int(1) NOT NULL DEFAULT 0,
`state` int(1) NOT NULL DEFAULT 0,
`castleId` int(1) NOT NULL DEFAULT 0,
`supplyLvL` int(2) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `owner` (`owner`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT IGNORE INTO `fort` VALUES
(101,'Shanty',0,0,0,0,0,0,0),
(102,'Southern',0,0,0,1,0,0,0),
(103,'Hive',0,0,0,0,0,0,0),
(104,'Valley',0,0,0,1,0,0,0),
(105,'Ivory',0,0,0,0,0,0,0),
(106,'Narsell',0,0,0,0,0,0,0),
(107,'Bayou',0,0,0,1,0,0,0),
(108,'White Sands',0,0,0,0,0,0,0),
(109,'Borderland',0,0,0,1,0,0,0),
(110,'Swamp',0,0,0,1,0,0,0),
(111,'Archaic',0,0,0,0,0,0,0),
(112,'Floran',0,0,0,1,0,0,0),
(113,'Cloud Mountain',0,0,0,1,0,0,0),
(114,'Tanor',0,0,0,0,0,0,0),
(115,'Dragonspine',0,0,0,0,0,0,0),
(116,'Antharas',0,0,0,1,0,0,0),
(117,'Western',0,0,0,1,0,0,0),
(118,'Hunters',0,0,0,1,0,0,0),
(119,'Aaru',0,0,0,0,0,0,0),
(120,'Demon',0,0,0,0,0,0,0),
(121,'Monastic',0,0,0,0,0,0,0);

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `fort_doorupgrade` (
`doorId` int(11) NOT NULL DEFAULT '0',
`fortId` int(11) NOT NULL,
`hp` int(11) NOT NULL DEFAULT '0',
`pDef` int(11) NOT NULL DEFAULT '0',
`mDef` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`doorId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS `fort_functions` (
`fort_id` int(2) NOT NULL DEFAULT '0',
`type` int(1) NOT NULL DEFAULT '0',
`lvl` int(3) NOT NULL DEFAULT '0',
`lease` int(10) NOT NULL DEFAULT '0',
`rate` decimal(20,0) NOT NULL DEFAULT '0',
`endTime` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`fort_id`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,384 @@
DROP TABLE IF EXISTS `fort_spawnlist`;
CREATE TABLE `fort_spawnlist` (
`fortId` tinyint(3) unsigned NOT NULL DEFAULT '0',
`id` smallint(4) unsigned NOT NULL AUTO_INCREMENT,
`npcId` smallint(5) unsigned NOT NULL DEFAULT '0',
`x` mediumint(6) NOT NULL DEFAULT '0',
`y` mediumint(6) NOT NULL DEFAULT '0',
`z` mediumint(6) NOT NULL DEFAULT '0',
`heading` mediumint(6) NOT NULL DEFAULT '0',
`spawnType` tinyint(1) unsigned NOT NULL DEFAULT '0', -- 0-always spawned, 1-despawned during siege, 2-despawned 10min before siege, 3-spawned after fort taken
`castleId` tinyint(1) unsigned NOT NULL DEFAULT '0', -- Castle ID for Special Envoys
PRIMARY KEY (`id`),
KEY `id` (`fortId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `fort_spawnlist` VALUES
(101,null,35658,-53273,156650,-1896,62000,0,0),
(101,null,35659,-58672,154703,-2688,0,2,0),
(101,null,35660,-52128,157752,-2024,29864,1,0),
(101,null,35661,-52435,155188,-1768,20000,1,0),
(101,null,35662,-53944,155433,-2024,7304,1,0),
(101,null,35664,-51269,157584,-2048,39999,0,0),
(101,null,35666,-53422,158079,-2055,51999,0,0),
(101,null,35667,-50640,156000,-2056,63088,0,0),
(101,null,35667,-50938,155810,-2056,30136,0,0),
(101,null,35668,-54608,157216,-2048,62984,0,0),
(101,null,35668,-54896,157008,-2048,29696,0,0),
(101,null,35669,-53351,156814,-2048,30248,0,0),
(101,null,35669,-52160,156176,-2048,62376,0,0),
(101,null,35669,-52272,156208,-2048,29344,0,0),
(101,null,35669,-53240,156729,-2048,62712,0,0),
(101,null,36457,-53768,158042,-2048,62264,0,0),
(101,null,36393,-52680,156525,-2051,30000,3,1),
(102,null,35689,-22256,219808,-3072,32904,0,0),
(102,null,35690,-28169,216864,-3544,0,2,0),
(102,null,35691,-22992,218160,-3208,0,1,0),
(102,null,35692,-21328,218864,-2952,0,1,0),
(102,null,35694,-21520,221504,-3208,45328,1,0),
(102,null,35696,-24640,220960,-3232,60060,0,0),
(102,null,35698,-24128,221488,-3232,54428,0,0),
(102,null,35699,-20116,219724,-3232,0,0,0),
(102,null,35699,-20327,220028,-3232,33316,0,0),
(102,null,35700,-25038,219733,-3232,0,0,0),
(102,null,35700,-25246,220033,-3240,32608,0,0),
(102,null,35701,-23248,219696,-3232,0,0,0),
(102,null,35701,-23360,219904,-3232,32612,0,0),
(102,null,35701,-22176,219907,-3232,33500,0,0),
(102,null,35701,-22048,219696,-3232,0,0,0),
(102,null,36458,-23885,221728,-3232,32672,0,0),
(102,null,36394,-22368,219776,-3080,0,3,1),
(103,null,35727,16885,188473,-2760,42916,0,0),
(103,null,35728,19408,189422,-3136,0,2,0),
(103,null,35729,17984,187536,-2896,45056,1,0),
(103,null,35730,15152,188128,-2640,0,1,0),
(103,null,35731,16016,189520,-2888,0,1,0),
(103,null,35733,17008,186240,-2920,16384,0,0),
(103,null,35735,18304,188604,-2920,36864,0,0),
(103,null,35736,18048,189792,-2920,10324,0,0),
(103,null,35736,17632,189760,-2920,45348,0,0),
(103,null,35737,15282,186259,-2920,43140,0,0),
(103,null,35737,15728,186352,-2920,12288,0,0),
(103,null,35738,16784,188544,-2920,43884,0,0),
(103,null,35738,17060,188551,-2920,11484,0,0),
(103,null,35738,16080,187568,-2920,42884,0,0),
(103,null,35738,16368,187568,-2920,10432,0,0),
(103,null,36459,18397,188339,-2920,42948,0,0),
(103,null,36395,16772,188253,-2768,10232,3,2),
(104,null,35758,126080,123808,-2424,48972,0,0),
(104,null,35759,123383,121093,-2864,0,2,0),
(104,null,35760,124299,123614,-2552,49192,1,0),
(104,null,35761,124768,121856,-2296,0,1,0),
(104,null,35763,124768,124640,-2552,54480,1,0),
(104,null,35765,127920,124384,-2584,36616,0,0),
(104,null,35767,128106,122635,-2588,33036,0,0),
(104,null,35768,126208,120768,-2584,16384,0,0),
(104,null,35768,125904,120544,-2584,49024,0,0),
(104,null,35769,125920,125483,-2584,49024,0,0),
(104,null,35769,126208,125680,-2584,16384,0,0),
(104,null,35770,126186,122800,-2584,16384,0,0),
(104,null,35770,125974,122689,-2584,49024,0,0),
(104,null,35770,125974,123879,-2584,49024,0,0),
(104,null,35770,126177,124007,-2584,16384,0,0),
(104,null,36460,128133,122310,-2584,48972,0,0),
(104,null,36396,126111,123738,-2432,16248,3,3),
(105,null,35796,72544,4608,-2888,56456,0,0),
(105,null,35797,75280,1387,-3268,0,2,0),
(105,null,35798,73788,5479,-3016,55136,1,0),
(105,null,35799,72400,2896,-2760,0,1,0),
(105,null,35800,71264,4144,-3008,0,1,0),
(105,null,35802,74736,4160,-3040,34596,0,0),
(105,null,35804,73119,6121,-3047,46480,0,0),
(105,null,35805,71536,5808,-3040,56456,0,0),
(105,null,35805,71634,6146,-3040,23840,0,0),
(105,null,35806,74256,2960,-3040,23657,0,0),
(105,null,35806,74164,2606,-3040,56453,0,0),
(105,null,35807,73281,3925,-3040,23840,0,0),
(105,null,35807,73194,3703,-3040,56456,0,0),
(105,null,35807,72430,4624,-3040,56456,0,0),
(105,null,35807,72532,4853,-3040,23840,0,0),
(105,null,36461,73470,6019,-3040,56456,0,0),
(105,null,36397,72619,4569,-2889,23840,3,4),
(106,null,35827,154544,55600,-3096,58368,0,0),
(106,null,35828,159377,52403,-3312,0,2,0),
(106,null,35829,155576,56592,-3224,59224,1,0),
(106,null,35830,154704,53856,-2968,0,1,0),
(106,null,35831,153328,54848,-3216,5512,1,0),
(106,null,35833,156768,55552,-3256,32252,0,0),
(106,null,35835,154800,57146,-3257,49096,0,0),
(106,null,35836,153312,56544,-3256,58368,0,0),
(106,null,35836,153328,56896,-3256,25416,0,0),
(106,null,35837,156496,53920,-3256,58368,0,0),
(106,null,35837,156528,54272,-3256,25416,0,0),
(106,null,35838,155385,55045,-3248,25416,0,0),
(106,null,35838,155328,54800,-3256,58368,0,0),
(106,null,35838,154407,55563,-3248,58368,0,0),
(106,null,35838,154468,55805,-3256,25416,0,0),
(106,null,36462,155166,57115,-3256,58368,0,0),
(106,null,36398,154592,55527,-3098,25416,3,5),
(107,null,35858,189968,40224,-3248,0,0,0),
(107,null,35859,190423,43540,-3656,0,2,0),
(107,null,35860,188160,39920,-3376,49284,1,0),
(107,null,35861,188624,38240,-3128,0,1,0),
(107,null,35863,188626,41066,-3376,57140,1,0),
(107,null,35865,191760,40752,-3408,39112,0,0),
(107,null,35867,190992,41376,-3412,45180,0,0),
(107,null,35868,189776,41872,-3408,49148,0,0),
(107,null,35868,190048,42064,-3408,16316,0,0),
(107,null,35869,189776,36960,-3408,49148,0,0),
(107,null,35869,190048,37152,-3408,16316,0,0),
(107,null,35870,189812,39071,-3408,49148,0,0),
(107,null,35870,190044,39197,-3408,16316,0,0),
(107,null,35870,189825,40269,-3408,49148,0,0),
(107,null,35870,190048,40400,-3408,16316,0,0),
(107,null,36463,190798,41513,-3408,49148,0,0),
(107,null,36399,189984,40112,-3254,0,3,5),
(108,null,35896,118827,205186,-3176,38352,0,0),
(108,null,35897,114436,202528,-3408,0,2,0),
(108,null,35898,118880,203568,-3304,5396,1,0),
(108,null,35899,117216,205648,-3048,0,1,0),
(108,null,35900,118560,206560,-3304,48872,1,0),
(108,null,35902,120160,204256,-3336,30272,0,0),
(108,null,35904,118138,203228,-3336,17176,0,0),
(108,null,35905,120113,205939,-3336,38352,0,0),
(108,null,35905,120407,205831,-3336,5396,0,0),
(108,null,35906,116741,203878,-3336,5396,0,0),
(108,null,35906,116460,203986,-3336,38352,0,0),
(108,null,35907,117785,204712,-3336,38352,0,0),
(108,null,35907,117980,204551,-3328,5396,0,0),
(108,null,35907,118832,205280,-3328,38352,0,0),
(108,null,35907,119040,205120,-3336,5396,0,0),
(108,null,36464,117889,203183,-3336,38352,0,0),
(108,null,36400,118785,205138,-3177,5396,3,6),
(109,null,35927,158720,-70032,-2704,59020,0,0),
(109,null,35928,161876,-73407,-2984,0,2,0),
(109,null,35929,157968,-71659,-2832,59020,1,0),
(109,null,35930,159664,-72224,-2584,0,1,0),
(109,null,35932,157312,-70640,-2832,0,1,0),
(109,null,35934,159312,-68240,-2864,49028,0,0),
(109,null,35936,160832,-69056,-2866,42144,0,0),
(109,null,35937,157293,-69255,-2864,59020,0,0),
(109,null,35937,157280,-68912,-2864,27244,0,0),
(109,null,35938,161373,-71636,-2864,27244,0,0),
(109,null,35938,161371,-71992,-2864,59020,0,0),
(109,null,35939,158672,-69856,-2864,27244,0,0),
(109,null,35939,158635,-70096,-2864,59020,0,0),
(109,null,35939,159632,-70761,-2864,59020,0,0),
(109,null,35939,159670,-70518,-2864,27244,0,0),
(109,null,36465,161130,-69197,-2864,59020,0,0),
(109,null,36401,158776,-70042,-2708,27244,3,7),
(110,null,35965,70062,-60958,-2624,45292,0,0),
(110,null,35966,71436,-58182,-2904,0,2,0),
(110,null,35967,71248,-62352,-2752,12388,1,0),
(110,null,35968,71264,-60512,-2504,0,1,0),
(110,null,35970,68688,-59648,-2752,56012,1,0),
(110,null,35972,70144,-63584,-2784,18252,0,0),
(110,null,35974,70944,-63168,-2784,25448,0,0),
(110,null,35975,68995,-63605,-2784,12388,0,0),
(110,null,35975,68668,-63690,-2784,45292,0,0),
(110,null,35976,70884,-59059,-2784,12388,0,0),
(110,null,35976,70535,-59147,-2784,45292,0,0),
(110,null,35977,70194,-60871,-2784,12388,0,0),
(110,null,35977,69936,-60882,-2784,45292,0,0),
(110,null,35977,69736,-61986,-2784,12388,0,0),
(110,null,35977,69472,-61984,-2784,45292,0,0),
(110,null,36466,71273,-62968,-2784,45292,0,0),
(110,null,36433,70058,-61012,-2630,12388,3,8),
(111,null,36003,109024,-141072,-2800,62612,0,0),
(111,null,36004,105447,-139845,-3120,0,2,0),
(111,null,36005,109600,-139735,-2928,62612,1,0),
(111,null,36006,109856,-142640,-2672,0,1,0),
(111,null,36007,108223,-142209,-2920,8524,1,0),
(111,null,36009,108544,-139488,-2952,55116,0,0),
(111,null,36011,110859,-139960,-2952,40492,0,0),
(111,null,36012,111383,-141559,-2960,29804,0,0),
(111,null,36012,111494,-141882,-2952,62612,0,0),
(111,null,36013,107424,-140362,-2960,29804,0,0),
(111,null,36013,107538,-140682,-2960,62612,0,0),
(111,null,36014,110078,-141517,-2952,62612,0,0),
(111,null,36014,108896,-140928,-2952,29804,0,0),
(111,null,36014,108931,-141177,-2952,62612,0,0),
(111,null,36014,110048,-141271,-2952,29804,0,0),
(111,null,36467,111163,-140542,-2952,62612,0,0),
(111,null,36434,109080,-141070,-2801,29804,3,9),
(112,null,36034,5136,149728,-2728,0,0,0),
(112,null,36035,14186,149947,-3352,0,2,0),
(112,null,36036,7006,148242,-2856,32768,1,0),
(112,null,36037,6528,151872,-2608,0,1,0),
(112,null,36039,4384,150992,-2856,0,1,0),
(112,null,36041,5968,146864,-2888,19216,0,0),
(112,null,36043,4320,150032,-2892,0,0,0),
(112,null,36044,7345,150866,-2888,32768,0,0),
(112,null,36044,7552,150601,-2888,0,0,0),
(112,null,36045,3905,148865,-2888,32768,0,0),
(112,null,36045,4101,148594,-2888,0,0,0),
(112,null,36046,6257,149635,-2888,0,0,0),
(112,null,36046,6165,149868,-2888,32768,0,0),
(112,null,36046,5065,149635,-2888,0,0,0),
(112,null,36046,4962,149869,-2888,32768,0,0),
(112,null,36468,4326,149651,-2888,0,0,0),
(112,null,36435,5217,149697,-2736,32768,3,1),
(112,null,36436,5217,149754,-2736,32768,3,2),
(113,null,36072,-53232,91696,-2664,49152,0,0),
(113,null,36073,-56032,86017,-3259,0,2,0),
(113,null,36074,-55791,91856,-2792,0,1,0),
(113,null,36075,-55248,90496,-2536,0,1,0),
(113,null,36077,-54168,92604,-2784,49196,1,0),
(113,null,36079,-52080,89808,-2824,16384,0,0),
(113,null,36081,-50544,91424,-2824,32768,0,0),
(113,null,36082,-52404,92892,-2824,49151,0,0),
(113,null,36082,-52121,93104,-2816,16384,0,0),
(113,null,36083,-54393,89462,-2824,49151,0,0),
(113,null,36083,-54092,89676,-2824,16384,0,0),
(113,null,36084,-53118,91881,-2824,16384,0,0),
(113,null,36084,-53116,90671,-2816,16384,0,0),
(113,null,36084,-53352,90572,-2824,49151,0,0),
(113,null,36084,-53348,91765,-2816,49151,0,0),
(113,null,36469,-50510,91023,-2824,49152,0,0),
(113,null,36437,-53210,91642,-2665,16384,3,1),
(113,null,36438,-53258,91642,-2665,16384,3,4),
(114,null,36110,60379,139950,-1592,46872,0,0),
(114,null,36111,58314,136319,-2000,0,2,0),
(114,null,36112,61864,139257,-1728,46896,1,0),
(114,null,36113,58480,139648,-1464,0,1,0),
(114,null,36114,59436,140834,-1720,47296,1,0),
(114,null,36116,60576,138064,-1752,16532,0,0),
(114,null,36118,60400,140688,-1757,48196,0,0),
(114,null,36119,61696,140832,-1752,14120,0,0),
(114,null,36119,61395,140689,-1752,46936,0,0),
(114,null,36120,58828,138054,-1752,46872,0,0),
(114,null,36120,59137,138189,-1752,14120,0,0),
(114,null,36121,60265,139991,-1752,46872,0,0),
(114,null,36121,60522,140048,-1752,14480,0,0),
(114,null,36121,60042,138817,-1752,46872,0,0),
(114,null,36121,60285,138872,-1752,14480,0,0),
(114,null,36470,60145,140737,-1752,46872,0,0),
(114,null,36439,60391,139884,-1600,14480,3,2),
(114,null,36440,60343,139892,-1600,14480,3,3),
(115,null,36141,11537,95509,-3264,49151,0,0),
(115,null,36142,9318,92253,-3536,0,2,0),
(115,null,36143,9472,94992,-3392,0,1,0),
(115,null,36144,13184,94928,-3144,0,1,0),
(115,null,36145,12829,96214,-3392,49152,1,0),
(115,null,36147,10112,93760,-3424,16384,0,0),
(115,null,36149,9485,96089,-3424,57220,0,0),
(115,null,36150,12633,93599,-3424,16384,0,0),
(115,null,36150,12365,93398,-3424,49151,0,0),
(115,null,36151,10615,96684,-3424,16384,0,0),
(115,null,36151,10344,96478,-3424,49151,0,0),
(115,null,36152,11654,95634,-3424,16384,0,0),
(115,null,36152,11422,95531,-3424,49151,0,0),
(115,null,36152,11660,94437,-3424,16384,0,0),
(115,null,36152,11420,94333,-3424,49151,0,0),
(115,null,36471,9203,95842,-3424,49151,0,0),
(115,null,36441,11549,95447,-3270,16384,3,2),
(115,null,36442,11517,95447,-3270,16384,3,4),
(116,null,36172,79686,91280,-2720,37660,0,0),
(116,null,36173,74810,90814,-3344,0,2,0),
(116,null,36174,77262,91704,-2856,5112,1,0),
(116,null,36175,79440,88752,-2600,0,1,0),
(116,null,36177,80929,90510,-2856,40192,1,0),
(116,null,36179,77600,93440,-2880,57688,0,0),
(116,null,36181,76848,92624,-2880,62456,0,0),
(116,null,36182,80031,92773,-2880,37568,0,0),
(116,null,36182,80329,92637,-2880,5012,0,0),
(116,null,36183,78231,89249,-2880,5012,0,0),
(116,null,36183,77927,89390,-2880,37920,0,0),
(116,null,36184,78812,90685,-2880,5012,0,0),
(116,null,36184,79666,91408,-2880,37660,0,0),
(116,null,36184,78611,90849,-2880,37660,0,0),
(116,null,36184,79865,91249,-2880,5012,0,0),
(116,null,36472,76880,92931,-2880,37660,0,0),
(116,null,36443,79618,91276,-2728,5012,3,4),
(116,null,36444,79641,91231,-2728,5012,3,3),
(117,null,36210,111368,-14624,-832,49151,0,0),
(117,null,36211,114221,-18762,-1768,0,2,0),
(117,null,36212,109872,-16624,-968,16384,1,0),
(117,null,36213,113481,-16058,-712,0,1,0),
(117,null,36215,112601,-13933,-960,49152,1,0),
(117,null,36217,108496,-15504,-992,0,0,0),
(117,null,36219,108880,-16492,-992,8356,0,0),
(117,null,36220,110219,-13636,-992,49151,0,0),
(117,null,36220,110478,-13435,-992,16384,0,0),
(117,null,36221,112216,-17087,-992,49151,0,0),
(117,null,36221,112482,-16883,-992,16384,0,0),
(117,null,36222,111248,-15800,-992,49151,0,0),
(117,null,36222,111487,-15701,-992,16384,0,0),
(117,null,36222,111253,-14604,-992,49151,0,0),
(117,null,36222,111486,-14503,-992,16384,0,0),
(117,null,36473,108614,-16342,-992,49151,0,0),
(117,null,36445,111323,-14680,-839,16384,3,5),
(117,null,36446,111368,-14680,-839,16384,3,4),
(117,null,36447,111412,-14681,-839,16384,3,7),
(118,null,36248,125246,95621,-1976,49151,0,0),
(118,null,36249,121072,93215,-2736,0,2,0),
(118,null,36250,122688,95760,-2112,0,1,0),
(118,null,36251,123232,94400,-1856,0,1,0),
(118,null,36253,124305,96528,-2104,49151,1,0),
(118,null,36255,126384,93728,-2144,16384,0,0),
(118,null,36257,127968,95328,-2144,32768,0,0),
(118,null,36258,124357,93571,-2144,16384,0,0),
(118,null,36258,124080,93379,-2144,49151,0,0),
(118,null,36259,126328,97008,-2144,16384,0,0),
(118,null,36259,126064,96813,-2144,49151,0,0),
(118,null,36260,125128,94482,-2144,49151,0,0),
(118,null,36260,125364,95782,-2144,16384,0,0),
(118,null,36260,125131,95677,-2136,49151,0,0),
(118,null,36260,125365,94582,-2136,16384,0,0),
(118,null,36474,128023,94941,-2144,49151,0,0),
(118,null,36448,125266,95558,-1984,16384,3,5),
(118,null,36449,125226,95559,-1984,16384,3,3),
(119,null,36286,72834,186402,-2424,54844,0,0),
(119,null,36287,71692,188004,-2616,0,2,0),
(119,null,36288,71392,184720,-2552,5528,1,0),
(119,null,36289,74288,186912,-2296,0,1,0),
(119,null,36290,71542,186410,-2552,55088,1,0),
(119,null,36292,74832,185648,-2584,24516,0,0),
(119,null,36294,70768,185632,-2584,63668,0,0),
(119,null,36295,73081,188000,-2584,22248,0,0),
(119,null,36295,72974,187690,-2584,54844,0,0),
(119,null,36296,73127,184321,-2584,22248,0,0),
(119,null,36296,73008,184000,-2584,54844,0,0),
(119,null,36297,73523,185589,-2576,22248,0,0),
(119,null,36297,73376,185380,-2584,54844,0,0),
(119,null,36297,72713,186369,-2576,54844,0,0),
(119,null,36297,72851,186593,-2584,22248,0,0),
(119,null,36475,70720,185261,-2584,54844,0,0),
(119,null,36450,72880,186364,-2425,22248,3,6),
(119,null,36451,72850,186346,-2425,22248,3,3),
(120,null,36317,100213,-55318,-488,0,0,0),
(120,null,36318,104686,-57581,-944,0,2,0),
(120,null,36319,100688,-57440,-616,16384,1,0),
(120,null,36320,100752,-53664,-360,0,1,0),
(120,null,36322,99484,-54027,-616,0,1,0),
(120,null,36324,101952,-56752,-640,32768,0,0),
(120,null,36326,99600,-57360,-648,8476,0,0),
(120,null,36327,102103,-54225,-640,32768,0,0),
(120,null,36327,102308,-54490,-640,0,0,0),
(120,null,36328,99016,-56242,-632,32768,0,0),
(120,null,36328,99229,-56507,-640,0,0,0),
(120,null,36329,101363,-55435,-640,0,0,0),
(120,null,36329,101268,-55199,-640,32768,0,0),
(120,null,36329,100168,-55434,-640,0,0,0),
(120,null,36329,100064,-55200,-640,32768,0,0),
(120,null,36476,99834,-57649,-648,0,0,0),
(120,null,36452,100280,-55302,-489,32768,3,8),
(120,null,36453,100280,-55334,-489,32768,3,7),
(121,null,36355,72365,-94294,-1264,44872,0,0),
(121,null,36356,69553,-91746,-1488,0,2,0),
(121,null,36357,70189,-93935,-1400,61576,1,0),
(121,null,36358,73680,-95456,-1144,0,1,0),
(121,null,36360,73831,-94119,-1400,45536,1,0),
(121,null,36362,70384,-95360,-1424,11308,0,0),
(121,null,36364,70704,-92960,-1424,53872,0,0),
(121,null,36365,71641,-92931,-1424,44872,0,0),
(121,null,36365,71971,-92846,-1424,12456,0,0),
(121,null,36366,72323,-96557,-1424,44872,0,0),
(121,null,36366,72653,-96469,-1424,12456,0,0),
(121,null,36367,72264,-94213,-1424,44872,0,0),
(121,null,36367,72066,-95317,-1424,12456,0,0),
(121,null,36367,71810,-95321,-1424,44872,0,0),
(121,null,36367,72526,-94209,-1424,12456,0,0),
(121,null,36477,70350,-93054,-1424,44872,0,0),
(121,null,36454,72358,-94360,-1272,12456,3,8),
(121,null,36455,72324,-94346,-1272,12456,3,9);

View File

@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS `fortsiege_clans` (
`fort_id` int(1) NOT NULL DEFAULT '0',
`clan_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`clan_id`,`fort_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

17
trunk/dist/tools/sql/server/forums.sql vendored Normal file
View File

@@ -0,0 +1,17 @@
CREATE TABLE IF NOT EXISTS `forums` (
`forum_id` int(8) NOT NULL DEFAULT '0',
`forum_name` varchar(255) NOT NULL DEFAULT '',
`forum_parent` int(8) NOT NULL DEFAULT '0',
`forum_post` int(8) NOT NULL DEFAULT '0',
`forum_type` int(8) NOT NULL DEFAULT '0',
`forum_perm` int(8) NOT NULL DEFAULT '0',
`forum_owner_id` int(8) NOT NULL DEFAULT '0',
PRIMARY KEY (`forum_id`),
KEY `forum_owner_id` (`forum_owner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT IGNORE INTO `forums` VALUES
(1, 'NormalRoot', 0, 0, 0, 1, 0),
(2, 'ClanRoot', 0, 0, 0, 0, 0),
(3, 'MemoRoot', 0, 0, 0, 0, 0),
(4, 'MailRoot', 0, 0, 0, 0, 0);

File diff suppressed because it is too large Load Diff

14
trunk/dist/tools/sql/server/games.sql vendored Normal file
View File

@@ -0,0 +1,14 @@
CREATE TABLE IF NOT EXISTS `games` (
`id` INT NOT NULL DEFAULT 0,
`idnr` INT NOT NULL DEFAULT 0,
`number1` INT NOT NULL DEFAULT 0,
`number2` INT NOT NULL DEFAULT 0,
`prize` INT NOT NULL DEFAULT 0,
`newprize` INT NOT NULL DEFAULT 0,
`prize1` INT NOT NULL DEFAULT 0,
`prize2` INT NOT NULL DEFAULT 0,
`prize3` INT NOT NULL DEFAULT 0,
`enddate` bigint(13) unsigned NOT NULL DEFAULT '0',
`finished` INT NOT NULL DEFAULT 0,
PRIMARY KEY (`id`,`idnr`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS `global_tasks` (
`id` int(11) NOT NULL auto_increment,
`task` varchar(50) NOT NULL DEFAULT '',
`type` varchar(50) NOT NULL DEFAULT '',
`last_activation` bigint(13) unsigned NOT NULL DEFAULT '0',
`param1` varchar(100) NOT NULL DEFAULT '',
`param2` varchar(100) NOT NULL DEFAULT '',
`param3` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS `global_variables` (
`var` VARCHAR(20) NOT NULL DEFAULT '',
`value` VARCHAR(255) ,
PRIMARY KEY (`var`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,39 @@
CREATE TABLE IF NOT EXISTS `grandboss_data` (
`boss_id` smallint(5) unsigned NOT NULL,
`loc_x` mediumint(6) NOT NULL,
`loc_y` mediumint(6) NOT NULL,
`loc_z` mediumint(6) NOT NULL,
`heading` mediumint(6) NOT NULL DEFAULT '0',
`respawn_time` bigint(13) unsigned NOT NULL DEFAULT '0',
`currentHP` decimal(30,15) NOT NULL,
`currentMP` decimal(30,15) NOT NULL,
`status` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`boss_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT IGNORE INTO `grandboss_data` (`boss_id`,`loc_x`,`loc_y`,`loc_z`,`heading`,`currentHP`,`currentMP`) VALUES
(29001, -21610, 181594, -5734, 0, 229898.48, 667.776), -- Queen Ant (40)
(29006, 17726, 108915, -6480, 0, 622493.58388, 3793.536), -- Core (50)
(29014, 55024, 17368, -5412, 10126, 622493.58388, 3793.536), -- Orfen (50)
-- (29019, 185708, 114298, -8221, 32768, 17850000, 39960), -- Antharas (79)
(29020, 116033, 17447, 10107, -25348, 4068372, 39960), -- Baium (75)
-- (29022, 55312, 219168, -3223, 0, 858518.36, 399600), -- Zaken (60)
-- (29025, 0, 0, 0, 0, 0, 0), -- Baium (Stone) (75)
(29028, -105200, -253104, -15264, 0, 62041918, 2248572), -- Valakas (85)
-- (29066, 185708, 114298, -8221,32768, 14518000, 3996000), -- Antharas Weak (79)
-- (29067, 185708, 114298, -8221,32768, 16184000, 3996000), -- Antharas Normal (79)
(29068, 185708, 114298, -8221,32768, 62802301, 1998000), -- Antharas Strong (85)
(29118, 0, 0, 0, 0, 4109288, 1220547); -- Beleth (83)
-- (29045, -87780, -155086, -9080, 16384, 1018821.42723286, 52001.06567747795), -- Frintezza (85)
-- (29046, -87789, -153295, -9176, 16384, 1824900, 23310), -- Scarlet Van Halisha (85)
-- (29047, -87789, -153295, -9176, 16384, 898044, 4519), -- Scarlet Van Halisha (85)
-- (29099, 0, 0, 0, 0, 1703893, 111000), -- Baylor (83)
-- (29150, 0, 0, 0, 0, 8727677, 204995), -- Ekimus (82)
-- (29163, 0, 0, 0, 0, 8727677, 204995), -- Tiat (87)
-- (29175, 0, 0, 0, 0, 8727677, 204995), -- Tiat (87)
-- (29176, 0, 0, 0, 0, 0, 0), -- Zaken Day (60)
-- (29177, 0, 0, 0, 0, 0, 0), -- Freya (Throne) (85)
-- (29178, 0, 0, 0, 0, 0, 0), -- Freya (Spelling) (85)
-- (29178, 0, 0, 0, 0, 0, 0), -- Freya (Stand) (85)
-- (29178, 0, 0, 0, 0, 0, 0), -- Freya (Stand Hard) (85)
-- (29179, 0, 0, 0, 0, 0, 0), -- Zaken Day (83)

View File

@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS `grandboss_list` (
`player_id` decimal(11,0) NOT NULL,
`zone` decimal(11,0) NOT NULL,
PRIMARY KEY (`player_id`,`zone`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,138 @@
-- This table holds data definitions for different herb dropping groups.
-- These groups once they're bound with mobs in the npc table, define which mobs
-- drop which herbs (with a certain chance to drop none, one or more of them).
--
-- If a mob appertain to group 0 (table default), it won't drop herbs at all.
-- For any other group larger than zero, herbs will be drop same way as droplists works
-- You can add any type of items here even not herbs, but players will auto loot it if
-- AUTO_LOOT_HERBS config is true.
--
-- About categries:
-- 0: is for Vitality herbs
-- 1: is for Life herbs
-- 2: is for Mana herbs
-- 3: is for special herbs
-- all other: is for Common herbs
DROP TABLE IF EXISTS `herb_droplist_groups`;
CREATE TABLE `herb_droplist_groups` (
`groupId` tinyint(1) unsigned NOT NULL DEFAULT '0',
`itemId` smallint(5) unsigned NOT NULL DEFAULT '0',
`min` smallint(2) unsigned NOT NULL DEFAULT '0',
`max` smallint(2) unsigned NOT NULL DEFAULT '0',
`category` smallint(3) NOT NULL DEFAULT '0',
`chance` mediumint(7) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`groupId`,`itemId`,`category`),
KEY `key_mobId` (`groupId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `herb_droplist_groups` VALUES
-- default group
(1,13028,1,1,0,20000), -- Vitality Replenishing Herb
(1,8600,1,1,1,100000), -- Herb of Life
(1,8601,1,1,1,40000), -- Greater Herb of Life
(1,8602,1,1,1,8000), -- Superior Herb of Life
(1,8603,1,1,2,100000), -- Herb of Mana
(1,8604,1,1,2,40000), -- Greater Herb of Mana
(1,8605,1,1,2,8000), -- Superior Herb of Mana
(1,8612,1,1,3,2000), -- Herb of the Warrior
(1,8613,1,1,3,2000), -- Herb of the Mystic
(1,8614,1,1,3,2000), -- Herb of Recovery
(1,8606,1,1,4,150000), -- Herb of Power
(1,8607,1,1,5,150000), -- Herb of Magic
(1,8608,1,1,6,150000), -- Herb of Atk. Spd.
(1,8609,1,1,7,150000), -- Herb of Casting Spd.
(1,8610,1,1,8,150000), -- Herb of Critical Attack - Probability
(1,8611,1,1,9,150000), -- Herb of Speed
(1,10655,1,1,10,150000), -- Herb of Vampiric Rage
(1,10656,1,1,11,150000), -- Herb of Critical Attack - Power
(1,10657,1,1,12,50000), -- Herb of Doubt
-- primeval island mobs. Guessed chances
(2,13028,1,1,0,20000), -- Vitality Replenishing Herb
(2,8600,1,1,1,200000), -- Herb of Life
(2,8601,1,1,1,80000), -- Greater Herb of Life
(2,8602,1,1,1,16000), -- Superior Herb of Life
(2,8603,1,1,2,150000), -- Herb of Mana
(2,8604,1,1,2,60000), -- Greater Herb of Mana
(2,8605,1,1,2,12000), -- Superior Herb of Mana
(2,8613,1,1,3,4000), -- Herb of the Mystic
(2,8614,1,1,3,4000), -- Herb of Recovery
(2,8607,1,1,4,150000), -- Herb of Magic
(2,8609,1,1,5,150000), -- Herb of Casting Spd.
(2,8611,1,1,6,150000), -- Herb of Speed
(2,10657,1,1,7,75000), -- Herb of Doubt
-- Field of Silence & Field of Whisper mobs
(3,13028,1,1,0,5000), -- Vitality Replenishing Herb
(3,8600,1,1,1,210000), -- Herb of Life
(3,8601,1,1,1,150000), -- Greater Herb of Life
(3,8602,1,1,1,35000), -- Superior Herb of Life
(3,8603,1,1,2,190000), -- Herb of Mana
(3,8604,1,1,2,180000), -- Greater Herb of Mana
(3,8605,1,1,2,50000), -- Superior Herb of Mana
(3,8612,1,1,3,2000), -- Herb of the Warrior
(3,8613,1,1,3,10000), -- Herb of the Mystic
(3,8614,1,1,3,2000), -- Herb of Recovery
(3,8606,1,1,4,60000), -- Herb of Power
(3,8607,1,1,5,60000), -- Herb of Magic
(3,8608,1,1,6,80000), -- Herb of Atk. Spd.
(3,8609,1,1,7,40000), -- Herb of Casting Spd.
(3,8610,1,1,8,20000), -- Herb of Critical Attack - Probability
(3,8611,1,1,9,90000), -- Herb of Speed
(3,10655,1,1,10,60000), -- Herb of Vampiric Rage
(3,10656,1,1,11,30000), -- Herb of Critical Attack - Power
(3,10657,1,1,12,5000), -- Herb of Doubt
(3,14824,1,1,13,9000),-- Ancient Herb - Slayer
(3,14825,1,1,13,9000),-- Ancient Herb - Immortal
(3,14826,1,1,13,25000), -- Ancient Herb - Terminator
(3,14827,1,1,13,30000), -- Ancient Herb - Guide
-- Sel Mahum training grounds - chief group
(4,13028,1,1,0,3299), -- Vitality Replenishing Herb
(4,8600,1,1,1,231000), -- Herb of Life
(4,8601,1,1,1,159600), -- Greater Herb of Life
(4,8602,1,1,1,29400), -- Superior Herb of Life
(4,8603,1,1,2,44000), -- Herb of Mana
(4,8604,1,1,2,57200), -- Greater Herb of Mana
(4,8605,1,1,2,8800), -- Superior Herb of Mana
(4,8612,1,1,3,3300), -- Herb of the Warrior
(4,8613,1,1,3,3300), -- Herb of the Mystic
(4,8614,1,1,3,3400), -- Herb of Recovery
(4,8606,1,1,4,50000), -- Herb of Power
(4,8608,1,1,4,50000), -- Herb of Atk. Spd.
(4,8610,1,1,4,50000), -- Herb of Critical Attack - Probability
(4,10655,1,1,4,50000), -- Herb of Vampiric Rage
(4,10656,1,1,4,50000), -- Herb of Critical Attack - Power
(4,8607,1,1,5,50000), -- Herb of Magic
(4,8609,1,1,5,50000), -- Herb of Casting Spd.
(4,8611,1,1,6,103400), -- Herb of Speed
(4,10657,1,1,6,3299), -- Herb of Doubt
-- Sel Mahum training grounds - soldier group
(5,8600,1,1,1,275000), -- Herb of Life
(5,8601,1,1,1,190000), -- Greater Herb of Life
(5,8602,1,1,1,35000), -- Superior Herb of Life
-- Sel Mahum training grounds - squad leader group
(6,13028,1,1,0,3300), -- Vitality Replenishing Herb
(6,8600,1,1,1,231000), -- Herb of Life
(6,8601,1,1,1,159600), -- Greater Herb of Life
(6,8602,1,1,1,29400), -- Superior Herb of Life
(6,8603,1,1,2,44000), -- Herb of Mana
(6,8604,1,1,2,57200), -- Greater Herb of Mana
(6,8605,1,1,2,8800), -- Superior Herb of Mana
(6,8606,1,1,3,50000), -- Herb of Power
(6,8608,1,1,3,50000), -- Herb of Atk. Spd.
(6,8610,1,1,3,50000), -- Herb of Critical Attack - Probability
(6,10655,1,1,3,50000), -- Herb of Vampiric Rage
(6,10656,1,1,3,50000), -- Herb of Critical Attack - Power
(6,8607,1,1,4,50000), -- Herb of Magic
(6,8609,1,1,4,50000), -- Herb of Casting Spd.
(6,8612,1,1,5,3300), -- Herb of the Warrior
(6,8613,1,1,5,3300), -- Herb of the Mystic
(6,8614,1,1,5,3400), -- Herb of Recovery
(6,8611,1,1,6,103400), -- Herb of Speed
(6,10657,1,1,6,3300), -- Herb of Doubt
(6,10655,1,1,7,450000), -- Herb of Vampiric Rage
-- Antharas minions - Behemoth and Tarask Dragon
(7,8952,10,20,1,1000000), -- Greater Herb of Life
(7,8953,10,20,2,1000000), -- Greater Herb of Mana
-- Antharas minions - Dragon Bomber
(8,8952,10,20,1,1000000), -- Greater Herb of Life
(8,8953,10,20,2,1000000); -- Greater Herb of Mana

View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS `heroes` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`class_id` decimal(3,0) NOT NULL DEFAULT 0,
`count` decimal(3,0) NOT NULL DEFAULT 0,
`played` decimal(1,0) NOT NULL DEFAULT 0,
`claimed` ENUM('true','false') NOT NULL DEFAULT 'false',
`message` varchar(300) NOT NULL DEFAULT '',
PRIMARY KEY (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS `heroes_diary` (
`charId` int(10) unsigned NOT NULL,
`time` bigint(13) unsigned NOT NULL DEFAULT '0',
`action` tinyint(2) unsigned NOT NULL DEFAULT '0',
`param` int(11) unsigned NOT NULL DEFAULT '0',
KEY `charId` (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS `item_attributes` (
`itemId` int(11) NOT NULL DEFAULT 0,
`augAttributes` int(11) NOT NULL DEFAULT -1,
PRIMARY KEY (`itemId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS `item_auction` (
`auctionId` int(11) NOT NULL,
`instanceId` int(11) NOT NULL,
`auctionItemId` int(11) NOT NULL,
`startingTime` bigint(13) unsigned NOT NULL DEFAULT '0',
`endingTime` bigint(13) unsigned NOT NULL DEFAULT '0',
`auctionStateId` tinyint(1) NOT NULL,
PRIMARY KEY (`auctionId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `item_auction_bid` (
`auctionId` int(11) NOT NULL,
`playerObjId` int(11) NOT NULL,
`playerBid` bigint(20) NOT NULL,
PRIMARY KEY (`auctionId`,`playerObjId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
CREATE TABLE IF NOT EXISTS `item_elementals` (
`itemId` int(11) NOT NULL DEFAULT 0,
`elemType` tinyint(1) NOT NULL DEFAULT -1,
`elemValue` int(11) NOT NULL DEFAULT -1,
PRIMARY KEY (`itemId`, `elemType`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

19
trunk/dist/tools/sql/server/items.sql vendored Normal file
View File

@@ -0,0 +1,19 @@
CREATE TABLE IF NOT EXISTS `items` (
`owner_id` INT, -- object id of the player or clan,owner of this item
`object_id` INT NOT NULL DEFAULT 0, -- object id of the item
`item_id` INT,
`count` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`enchant_level` INT,
`loc` VARCHAR(10), -- inventory,paperdoll,npc,clan warehouse,pet,and so on
`loc_data` INT, -- depending on location: equiped slot,npc id,pet id,etc
`time_of_use` INT, -- time of item use, for calculate of breackages
`custom_type1` INT DEFAULT 0,
`custom_type2` INT DEFAULT 0,
`mana_left` decimal(5,0) NOT NULL DEFAULT -1,
`time` decimal(13) NOT NULL DEFAULT 0,
PRIMARY KEY (`object_id`),
KEY `owner_id` (`owner_id`),
KEY `item_id` (`item_id`),
KEY `loc` (`loc`),
KEY `time_of_use` (`time_of_use`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,12 @@
CREATE TABLE IF NOT EXISTS `itemsonground` (
`object_id` int(11) NOT NULL DEFAULT '0',
`item_id` int(11) DEFAULT NULL,
`count` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`enchant_level` int(11) DEFAULT NULL,
`x` int(11) DEFAULT NULL,
`y` int(11) DEFAULT NULL,
`z` int(11) DEFAULT NULL,
`drop_time` bigint(13) NOT NULL DEFAULT '0',
`equipable` int(1) DEFAULT '0',
PRIMARY KEY (`object_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

18399
trunk/dist/tools/sql/server/locations.sql vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `merchant_lease` (
`merchant_id` int(11) NOT NULL DEFAULT 0,
`player_id` int(11) NOT NULL DEFAULT 0,
`bid` int(11),
`type` int(11) NOT NULL DEFAULT 0,
`player_name` varchar(35),
PRIMARY KEY (`merchant_id`,`player_id`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,17 @@
CREATE TABLE IF NOT EXISTS `messages` (
`messageId` INT NOT NULL DEFAULT 0,
`senderId` INT NOT NULL DEFAULT 0,
`receiverId` INT NOT NULL DEFAULT 0,
`subject` TINYTEXT,
`content` TEXT,
`expiration` bigint(13) unsigned NOT NULL DEFAULT '0',
`reqAdena` BIGINT NOT NULL DEFAULT 0,
`hasAttachments` enum('true','false') DEFAULT 'false' NOT NULL,
`isUnread` enum('true','false') DEFAULT 'true' NOT NULL,
`isDeletedBySender` enum('true','false') DEFAULT 'false' NOT NULL,
`isDeletedByReceiver` enum('true','false') DEFAULT 'false' NOT NULL,
`isLocked` enum('true','false') DEFAULT 'false' NOT NULL,
`sendBySystem` tinyint(1) NOT NULL DEFAULT 0,
`isReturned` enum('true','false') DEFAULT 'false' NOT NULL,
PRIMARY KEY (`messageId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS `mods_wedding` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`player1Id` int(11) NOT NULL DEFAULT '0',
`player2Id` int(11) NOT NULL DEFAULT '0',
`married` varchar(5) DEFAULT NULL,
`affianceDate` decimal(20,0) DEFAULT '0',
`weddingDate` decimal(20,0) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `player1Id` (`player1Id`),
KEY `player2Id` (`player2Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,22 @@
DROP TABLE IF EXISTS `npc_buffer`;
CREATE TABLE `npc_buffer` (
`npc_id` int(6) NOT NULL,
`skill_id` int(6) NOT NULL,
`skill_level` int(6) NOT NULL DEFAULT '1',
`skill_fee_id` int(6) NOT NULL DEFAULT '0',
`skill_fee_amount` int(6) NOT NULL DEFAULT '0',
`buff_group` int(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`npc_id`,`skill_id`,`buff_group`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `npc_buffer` VALUES
(36402,4356,3,0,0,4356),
(36402,4352,2,0,0,4352),
(36402,4345,3,0,0,4345),
(36402,4359,3,0,0,4359),
(36402,4351,6,0,0,4351),
(36402,4355,3,0,0,4355),
(36402,4357,2,0,0,4357),
(36402,4342,2,0,0,4342),
(36402,4358,3,0,0,4358),
(36402,4360,3,0,0,4360);

View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS `olympiad_data` (
`id` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`current_cycle` MEDIUMINT UNSIGNED NOT NULL DEFAULT 1,
`period` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0,
`olympiad_end` bigint(13) unsigned NOT NULL DEFAULT '0',
`validation_end` bigint(13) unsigned NOT NULL DEFAULT '0',
`next_weekly_change` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Some files were not shown because too many files have changed in this diff Show More