Merge remote-tracking branch 'upstream/master'
This commit is contained in:
53
.devcontainer/devcontainer.json
Normal file
53
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,53 @@
|
||||
// If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml.
|
||||
{
|
||||
"name": "ac-dev-server",
|
||||
|
||||
// Update the 'dockerComposeFile' list if you have more compose files or use different names.
|
||||
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
|
||||
"dockerComposeFile": [
|
||||
"../docker-compose.yml",
|
||||
"../docker-compose.override.yml", // needed until this issue will be solved: https://github.com/microsoft/vscode-remote-release/issues/1080
|
||||
"docker-compose.yml"
|
||||
],
|
||||
// The 'service' property is the name of the service for the container that VS Code should
|
||||
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
|
||||
"service": "ac-dev-server",
|
||||
|
||||
// The optional 'workspaceFolder' property is the path VS Code should open by default when
|
||||
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
|
||||
"workspaceFolder": "/azerothcore",
|
||||
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {
|
||||
"terminal.integrated.shell.linux": null
|
||||
},
|
||||
|
||||
// Add the IDs of extensions you want installed when the container is created.
|
||||
"extensions": [
|
||||
"notskm.clang-tidy",
|
||||
"xaver.clang-format",
|
||||
"bbenoist.doxygen",
|
||||
"ms-vscode.cpptools",
|
||||
"austin.code-gnu-global",
|
||||
"twxs.cmake",
|
||||
"mhutchie.git-graph",
|
||||
"github.vscode-pull-request-github",
|
||||
"eamodio.gitlens",
|
||||
"cschlosser.doxdocgen"
|
||||
],
|
||||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
|
||||
// Uncomment the next line if you want start specific services in your Docker Compose config.
|
||||
"runServices": ["ac-dev-server", "ac-database"],
|
||||
|
||||
// Uncomment the next line if you want to keep your containers running after VS Code shuts down.
|
||||
// "shutdownAction": "none",
|
||||
|
||||
// Uncomment the next line to run commands after the container is created - for example installing curl.
|
||||
// "postCreateCommand": "apt-get update && apt-get install -y curl",
|
||||
|
||||
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
|
||||
"remoteUser": "acore"
|
||||
}
|
||||
35
.devcontainer/docker-compose.yml
Normal file
35
.devcontainer/docker-compose.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
# Update this to the name of the service you want to work with in your docker-compose.yml file
|
||||
ac-dev-server:
|
||||
# If you want add a non-root user to your Dockerfile, you can use the "remoteUser"
|
||||
# property in devcontainer.json to cause VS Code its sub-processes (terminals, tasks,
|
||||
# debugging) to execute as the user. Uncomment the next line if you want the entire
|
||||
# container to run as this user instead. Note that, on Linux, you may need to
|
||||
# ensure the UID and GID of the container user you create matches your local user.
|
||||
# See https://aka.ms/vscode-remote/containers/non-root for details.
|
||||
#
|
||||
# user: vscode
|
||||
|
||||
# Uncomment if you want to override the service's Dockerfile to one in the .devcontainer
|
||||
# folder. Note that the path of the Dockerfile and context is relative to the *primary*
|
||||
# docker-compose.yml file (the first in the devcontainer.json "dockerComposeFile"
|
||||
# array). The sample below assumes your primary file is in the root of your project.
|
||||
#
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: .devcontainer/Dockerfile
|
||||
|
||||
#volumes:
|
||||
# Update this to wherever you want VS Code to mount the folder of your project
|
||||
#- .:/workspace:cached
|
||||
|
||||
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
|
||||
# - /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
|
||||
# cap_add:
|
||||
# - SYS_PTRACE
|
||||
# security_opt:
|
||||
# - seccomp:unconfined
|
||||
tty: true
|
||||
@@ -1,10 +1,12 @@
|
||||
build*/
|
||||
var/*
|
||||
data/contrib/*
|
||||
data/doc/*
|
||||
conf/*
|
||||
!conf/dist
|
||||
docker/worldserver/data/*
|
||||
docker/build/cache
|
||||
/cmake-build-debug/*
|
||||
/build*/
|
||||
/var/*
|
||||
/env/dist/*
|
||||
/env/user/*
|
||||
/env/docker/data/*
|
||||
/env/docker/logs/*
|
||||
/env/docker/etc/*
|
||||
!/env/docker/etc/authserver.conf.dockerdist
|
||||
!/env/docker/etc/worldserver.conf.dockerdist
|
||||
/.env*
|
||||
.idea
|
||||
cmake-build-debug/*
|
||||
|
||||
12
.env.dist
12
.env.dist
@@ -1,12 +0,0 @@
|
||||
WORLDSERVER_DATA=./docker/worldserver/data
|
||||
WORLDSERVER_ETC=./docker/worldserver/etc
|
||||
WORLDSERVER_LOGS=./docker/worldserver/logs
|
||||
|
||||
AUTHSERVER_ETC=./docker/authserver/etc
|
||||
AUTHSERVER_LOGS=./docker/authserver/logs
|
||||
|
||||
WORLD_EXTERNAL_PORT=8085
|
||||
AUTH_EXTERNAL_PORT=3724
|
||||
DB_EXTERNAL_PORT=3306
|
||||
DB_ROOT_PASSWORD=password
|
||||
SOAP_EXTERNAL_PORT=7878
|
||||
2
.github/README.md
vendored
2
.github/README.md
vendored
@@ -2,6 +2,8 @@
|
||||
|
||||
[](https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk)
|
||||
[](https://github.com/azerothcore/azerothcore-wotlk/actions?query=workflow%3Acore-build+branch%3Amaster+event%3Apush)
|
||||
[](https://github.com/azerothcore/azerothcore-wotlk/actions?query=workflow%3Awindows-build+branch%3Amaster+event%3Apush)
|
||||
[](https://github.com/azerothcore/azerothcore-wotlk/actions?query=workflow%3Amacos-build+branch%3Amaster+event%3Apush)
|
||||
[](https://www.bountysource.com/teams/azerothcore/bounties "Put money on issues or get paid for fixing them")
|
||||
[](https://stackoverflow.com/questions/tagged/azerothcore?sort=newest "Ask / browse questions here")
|
||||
[](https://discord.gg/gkt4y2x "Our community hub on Discord")
|
||||
|
||||
137
.github/workflows/core_build.yml
vendored
137
.github/workflows/core_build.yml
vendored
@@ -82,119 +82,40 @@ jobs:
|
||||
- name: Run unit tests
|
||||
run: source ./apps/ci/ci-run-unit-tests.sh
|
||||
|
||||
mac-build:
|
||||
docker-build-n-deploy:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- macos-10.15
|
||||
# - macos-11.0
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}
|
||||
needs: [build]
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk' && success()
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Cache
|
||||
uses: actions/cache@v1.1.2
|
||||
with:
|
||||
path: ~/.ccache
|
||||
key: ccache:${{ matrix.os }}:${{ github.ref }}:${{ github.sha }}
|
||||
restore-keys: |
|
||||
ccache:${{ matrix.os }}:${{ github.ref }}
|
||||
ccache:${{ matrix.os }}
|
||||
- name: Install latest bash
|
||||
run: brew install bash
|
||||
- name: Configure OS
|
||||
run: source ./acore.sh install-deps
|
||||
- name: Build
|
||||
run: source ./apps/ci/mac/ci-compile.sh
|
||||
- name: Run unit tests
|
||||
run: source ./apps/ci/ci-run-unit-tests.sh
|
||||
|
||||
windows-build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: windows-2019
|
||||
name: windows-2019-MSVC16
|
||||
fail-fast: true
|
||||
runs-on: ubuntu-20.04
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
||||
env:
|
||||
DOCKER_EXTENDS_BIND: abstract-no-bind
|
||||
DOCKER_BUILD_WORLD_TARGET: worldserver
|
||||
DOCKER_BUILD_AUTH_TARGET: authserver
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Configure OS
|
||||
run: choco install --no-progress openssl
|
||||
- name: Build
|
||||
- name: Extract branch name
|
||||
shell: bash
|
||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
||||
id: extract_branch
|
||||
- uses: actions/checkout@v2
|
||||
- name: Configure
|
||||
run: |
|
||||
mkdir -p build && cd build
|
||||
cmake .. -DTOOLS=ON
|
||||
cmake --build . --config Release --parallel 4
|
||||
- name: Copy dll files
|
||||
shell: bash
|
||||
docker --version
|
||||
docker-compose --version
|
||||
- name: Build
|
||||
#env:
|
||||
# DOCKER_IMAGE_TAG: ${{ steps.extract_branch.outputs.branch }}
|
||||
run: |
|
||||
cp "/c/mysql-5.7.21-winx64/lib/libmysql.dll" "build/bin/Release/"
|
||||
cp "/c/Program Files/OpenSSL-Win64/bin/libcrypto-1_1-x64.dll" "build/bin/Release/"
|
||||
cp "/c/Program Files/OpenSSL-Win64/bin/libssl-1_1-x64.dll" "build/bin/Release/"
|
||||
- uses: actions/upload-artifact@v2
|
||||
docker-compose --profile all build
|
||||
- name: Login to Docker Hub
|
||||
if: ${{ steps.extract_branch.outputs.branch == 'master' }}
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
name: windows-2019-MSVC16-release
|
||||
path: build/bin/Release
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Deploy
|
||||
#env:
|
||||
# DOCKER_IMAGE_TAG: ${{ steps.extract_branch.outputs.branch }}
|
||||
if: ${{ steps.extract_branch.outputs.branch == 'master' }}
|
||||
run: |
|
||||
docker-compose --profile all push
|
||||
|
||||
docker-build:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
runs-on: ubuntu-20.04
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Configure
|
||||
run: |
|
||||
docker --version
|
||||
docker-compose --version
|
||||
- name: Build
|
||||
run: |
|
||||
./bin/acore-docker-build-no-scripts
|
||||
|
||||
docker-worldserver:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
runs-on: ubuntu-20.04
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Configure
|
||||
run: |
|
||||
docker --version
|
||||
docker-compose --version
|
||||
- name: Build
|
||||
run: |
|
||||
docker build -t azerothcore/worldserver -f docker/worldserver/Dockerfile docker/worldserver
|
||||
|
||||
docker-authserver:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
runs-on: ubuntu-20.04
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Configure
|
||||
run: |
|
||||
docker --version
|
||||
docker-compose --version
|
||||
- name: Build
|
||||
run: |
|
||||
docker build -t azerothcore/authserver -f docker/authserver/Dockerfile docker/authserver
|
||||
|
||||
docker-database:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
runs-on: ubuntu-20.04
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Configure
|
||||
run: |
|
||||
docker --version
|
||||
docker-compose --version
|
||||
- name: Build
|
||||
run: |
|
||||
docker build -t azerothcore/database -f docker/database/Dockerfile .
|
||||
|
||||
37
.github/workflows/macos_build.yml
vendored
Normal file
37
.github/workflows/macos_build.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: macos-build
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**' # matches every branch
|
||||
- '!coverity_scan' # excludes coverity_scan
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
macos-build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- macos-10.15
|
||||
# - macos-11.0
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/Library/Caches/ccache
|
||||
key: ccache:${{ matrix.os }}:${{ github.ref }}:${{ github.sha }}
|
||||
restore-keys: |
|
||||
ccache:${{ matrix.os }}:${{ github.ref }}
|
||||
ccache:${{ matrix.os }}
|
||||
- name: Install latest bash
|
||||
run: brew install bash
|
||||
- name: Configure OS
|
||||
run: source ./acore.sh install-deps
|
||||
- name: Build
|
||||
run: source ./apps/ci/mac/ci-compile.sh
|
||||
- name: Run unit tests
|
||||
run: source ./apps/ci/ci-run-unit-tests.sh
|
||||
35
.github/workflows/windows_build.yml
vendored
Normal file
35
.github/workflows/windows_build.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: windows-build
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**' # matches every branch
|
||||
- '!coverity_scan' # excludes coverity_scan
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
windows-build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: windows-2019
|
||||
name: windows-2019-MSVC16
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Configure OS
|
||||
run: choco install --no-progress openssl
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p build && cd build
|
||||
cmake .. -DTOOLS=ON
|
||||
cmake --build . --config Release --parallel 4
|
||||
- name: Copy dll files
|
||||
shell: bash
|
||||
run: |
|
||||
cp "/c/mysql-5.7.21-winx64/lib/libmysql.dll" "build/bin/Release/"
|
||||
cp "/c/Program Files/OpenSSL-Win64/bin/libcrypto-1_1-x64.dll" "build/bin/Release/"
|
||||
cp "/c/Program Files/OpenSSL-Win64/bin/libssl-1_1-x64.dll" "build/bin/Release/"
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: windows-2019-MSVC16-release
|
||||
path: build/bin/Release
|
||||
47
.gitignore
vendored
47
.gitignore
vendored
@@ -2,29 +2,25 @@
|
||||
# AzerothCore
|
||||
#
|
||||
|
||||
conf/*
|
||||
!conf/dist
|
||||
apps/drassil/*
|
||||
env/dist/*
|
||||
env/user/*
|
||||
modules/*
|
||||
!modules/*.md
|
||||
!modules/*.sh
|
||||
build*/
|
||||
var/*
|
||||
docker/build/cache
|
||||
docker/authserver/bin
|
||||
docker/worldserver/bin
|
||||
docker/authserver/etc/authserver.conf
|
||||
docker/authserver/etc/authserver.conf.dist
|
||||
docker/worldserver/etc/worldserver.conf
|
||||
docker/worldserver/etc/worldserver.conf.dist
|
||||
docker/authserver/logs/
|
||||
docker/worldserver/logs/
|
||||
docker/worldserver/data/
|
||||
!docker/build
|
||||
.env
|
||||
apps/joiner
|
||||
/conf/*
|
||||
!/conf/dist
|
||||
/modules/*
|
||||
!/modules/*.md
|
||||
!/modules/*.sh
|
||||
/build*/
|
||||
/var/*
|
||||
/env/dist/*
|
||||
/env/user/*
|
||||
/env/docker/data/*
|
||||
/env/docker/logs/*
|
||||
/env/docker/etc/*
|
||||
!/env/docker/etc/authserver.conf.dockerdist
|
||||
!/env/docker/etc/worldserver.conf.dockerdist
|
||||
/.env*
|
||||
/apps/joiner
|
||||
/deps/deno
|
||||
|
||||
/docker-compose.override.yml
|
||||
|
||||
!.gitkeep
|
||||
|
||||
@@ -59,7 +55,6 @@ nbproject/
|
||||
.sync.ffs_db
|
||||
*.kate-swp
|
||||
.browse.VC*
|
||||
.vscode
|
||||
.idea
|
||||
cmake-build-debug/*
|
||||
cmake-build-debug-coverage/*
|
||||
@@ -85,9 +80,9 @@ local.properties
|
||||
# ==================
|
||||
#
|
||||
# CUSTOM
|
||||
#
|
||||
#
|
||||
# put below your custom ignore rules
|
||||
# for example , if you want to include a
|
||||
# for example , if you want to include a
|
||||
# module directly in repositoryyou can do:
|
||||
#
|
||||
# !modules/yourmodule
|
||||
|
||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "deps/git-subrepo"]
|
||||
path = deps/git-subrepo
|
||||
url = https://github.com/ingydotnet/git-subrepo.git
|
||||
15
.vscode/extensions.json
vendored
Normal file
15
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"ms-vscode-remote.remote-containers",
|
||||
"notskm.clang-tidy",
|
||||
"xaver.clang-format",
|
||||
"bbenoist.doxygen",
|
||||
"ms-vscode.cpptools",
|
||||
"austin.code-gnu-global",
|
||||
"twxs.cmake",
|
||||
"mhutchie.git-graph",
|
||||
"github.vscode-pull-request-github",
|
||||
"eamodio.gitlens",
|
||||
"cschlosser.doxdocgen"
|
||||
]
|
||||
}
|
||||
68
.vscode/launch.json
vendored
Normal file
68
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Linux/Docker debug",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "/azerothcore/env/dist/bin/worldserver",
|
||||
"cwd": "/azerothcore",
|
||||
"args": [],
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"sourceFileMap": {
|
||||
"/azerothcore": "${workspaceFolder}"
|
||||
},
|
||||
"linux": {
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "/usr/bin/gdb",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Enable pretty-printing for gdb",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": false
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "(docker run) Pipe Launch",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "/azerothcore/env/dist/bin/worldserver",
|
||||
"cwd": "/azerothcore",
|
||||
"args": [],
|
||||
"environment": [],
|
||||
"externalConsole": true,
|
||||
"pipeTransport": {
|
||||
"debuggerPath": "/usr/bin/gdb",
|
||||
"pipeProgram": "docker-compose",
|
||||
"pipeArgs": [
|
||||
"exec", "-T", "ac-worldserver", "sh", "-c"
|
||||
],
|
||||
"pipeCwd": "${workspaceFolder}"
|
||||
},
|
||||
"sourceFileMap": {
|
||||
"/azerothcore": "${workspaceFolder}"
|
||||
},
|
||||
"linux": {
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "/usr/bin/gdb",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Enable pretty-printing for gdb",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"osx": {
|
||||
"MIMode": "lldb"
|
||||
},
|
||||
"windows": {
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "C:\\MinGw\\bin\\gdb.exe"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
69
.vscode/settings.json
vendored
Normal file
69
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"array": "cpp",
|
||||
"atomic": "cpp",
|
||||
"bit": "cpp",
|
||||
"*.tcc": "cpp",
|
||||
"bitset": "cpp",
|
||||
"cctype": "cpp",
|
||||
"chrono": "cpp",
|
||||
"cinttypes": "cpp",
|
||||
"clocale": "cpp",
|
||||
"cmath": "cpp",
|
||||
"complex": "cpp",
|
||||
"condition_variable": "cpp",
|
||||
"csignal": "cpp",
|
||||
"cstdarg": "cpp",
|
||||
"cstddef": "cpp",
|
||||
"cstdint": "cpp",
|
||||
"cstdio": "cpp",
|
||||
"cstdlib": "cpp",
|
||||
"cstring": "cpp",
|
||||
"ctime": "cpp",
|
||||
"cwchar": "cpp",
|
||||
"cwctype": "cpp",
|
||||
"deque": "cpp",
|
||||
"list": "cpp",
|
||||
"map": "cpp",
|
||||
"set": "cpp",
|
||||
"unordered_map": "cpp",
|
||||
"unordered_set": "cpp",
|
||||
"vector": "cpp",
|
||||
"exception": "cpp",
|
||||
"algorithm": "cpp",
|
||||
"functional": "cpp",
|
||||
"iterator": "cpp",
|
||||
"memory": "cpp",
|
||||
"memory_resource": "cpp",
|
||||
"numeric": "cpp",
|
||||
"optional": "cpp",
|
||||
"random": "cpp",
|
||||
"ratio": "cpp",
|
||||
"string": "cpp",
|
||||
"string_view": "cpp",
|
||||
"system_error": "cpp",
|
||||
"tuple": "cpp",
|
||||
"type_traits": "cpp",
|
||||
"utility": "cpp",
|
||||
"fstream": "cpp",
|
||||
"initializer_list": "cpp",
|
||||
"iomanip": "cpp",
|
||||
"iosfwd": "cpp",
|
||||
"iostream": "cpp",
|
||||
"istream": "cpp",
|
||||
"limits": "cpp",
|
||||
"mutex": "cpp",
|
||||
"new": "cpp",
|
||||
"ostream": "cpp",
|
||||
"shared_mutex": "cpp",
|
||||
"sstream": "cpp",
|
||||
"stdexcept": "cpp",
|
||||
"streambuf": "cpp",
|
||||
"thread": "cpp",
|
||||
"cfenv": "cpp",
|
||||
"typeinfo": "cpp",
|
||||
"codecvt": "cpp"
|
||||
},
|
||||
"deno.enable": true,
|
||||
"deno.path" : "deps/deno/bin/deno"
|
||||
}
|
||||
19
.vscode/tasks.json
vendored
Normal file
19
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "build",
|
||||
"type": "shell",
|
||||
"command": "./acore.sh compiler build",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
},
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -39,9 +39,10 @@ list(APPEND CMAKE_MODULE_PATH
|
||||
|
||||
include(CheckCXXSourceRuns)
|
||||
include(CheckIncludeFiles)
|
||||
include(ConfigureScripts)
|
||||
|
||||
# some utils for cmake
|
||||
include(deps/drassil/cmake-utils/utils.cmake)
|
||||
include(deps/acore/cmake-utils/utils.cmake)
|
||||
|
||||
include(src/cmake/ac_macros.cmake)
|
||||
|
||||
|
||||
3
acore.sh
3
acore.sh
@@ -1,7 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
[ -z "$WITH_ERRORS" ] && set -e
|
||||
|
||||
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
|
||||
source "$CUR_PATH/apps/installer/main.sh"
|
||||
|
||||
152
apps/EnumUtils/enumutils_describe.py
Normal file
152
apps/EnumUtils/enumutils_describe.py
Normal file
@@ -0,0 +1,152 @@
|
||||
from re import compile, MULTILINE
|
||||
from os import walk, getcwd
|
||||
|
||||
notice = ('''/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
|
||||
* Copyright (C) 2021+ WarheadCore <https://github.com/WarheadCore>
|
||||
* Copyright (C) 2008-2021 TrinityCore <http://www.trinitycore.org/>
|
||||
*/
|
||||
|
||||
''')
|
||||
|
||||
if not getcwd().endswith('src'):
|
||||
print('Run this from the src directory!')
|
||||
print('(Invoke as \'python ../contrib/enumutils_describe.py\')')
|
||||
exit(1)
|
||||
|
||||
EnumPattern = compile(r'//\s*EnumUtils: DESCRIBE THIS(?:\s*\(in ([^\)]+)\))?\s+enum\s+([0-9A-Za-z]+)[^\n]*\s*{([^}]+)};')
|
||||
EnumValuesPattern = compile(r'\s+\S.+?(,|$)[^\n]*')
|
||||
EnumValueNamePattern = compile(r'^\s*([a-zA-Z0-9_]+)', flags=MULTILINE)
|
||||
EnumValueSkipLinePattern = compile(r'^\s*//')
|
||||
EnumValueCommentPattern = compile(r'//,?[ \t]*([^\n]+)$')
|
||||
CommentMatchFormat = compile(r'^(((TITLE +(.+?))|(DESCRIPTION +(.+?))) *){1,2}$')
|
||||
CommentSkipFormat = compile(r'^SKIP *$')
|
||||
|
||||
def strescape(str):
|
||||
res = ''
|
||||
for char in str:
|
||||
if char in ('\\', '"') or not (32 <= ord(char) < 127):
|
||||
res += ('\\%03o' % ord(char))
|
||||
else:
|
||||
res += char
|
||||
return '"' + res + '"'
|
||||
|
||||
def processFile(path, filename):
|
||||
input = open('%s/%s.h' % (path, filename),'r')
|
||||
if input is None:
|
||||
print('Failed to open %s.h' % filename)
|
||||
return
|
||||
|
||||
file = input.read()
|
||||
|
||||
enums = []
|
||||
for enum in EnumPattern.finditer(file):
|
||||
prefix = enum.group(1) or ''
|
||||
name = enum.group(2)
|
||||
values = []
|
||||
for value in EnumValuesPattern.finditer(enum.group(3)):
|
||||
valueData = value.group(0)
|
||||
|
||||
valueNameMatch = EnumValueNamePattern.search(valueData)
|
||||
if valueNameMatch is None:
|
||||
if EnumValueSkipLinePattern.search(valueData) is None:
|
||||
print('Name of value not found: %s' % repr(valueData))
|
||||
continue
|
||||
valueName = valueNameMatch.group(1)
|
||||
|
||||
valueCommentMatch = EnumValueCommentPattern.search(valueData)
|
||||
valueComment = None
|
||||
if valueCommentMatch:
|
||||
valueComment = valueCommentMatch.group(1)
|
||||
|
||||
valueTitle = None
|
||||
valueDescription = None
|
||||
|
||||
if valueComment is not None:
|
||||
if CommentSkipFormat.match(valueComment) is not None:
|
||||
continue
|
||||
commentMatch = CommentMatchFormat.match(valueComment)
|
||||
if commentMatch is not None:
|
||||
valueTitle = commentMatch.group(4)
|
||||
valueDescription = commentMatch.group(6)
|
||||
else:
|
||||
valueDescription = valueComment
|
||||
|
||||
if valueTitle is None:
|
||||
valueTitle = valueName
|
||||
if valueDescription is None:
|
||||
valueDescription = ''
|
||||
|
||||
values.append((valueName, valueTitle, valueDescription))
|
||||
|
||||
enums.append((prefix + name, prefix, values))
|
||||
print('%s.h: Enum %s parsed with %d values' % (filename, name, len(values)))
|
||||
|
||||
if not enums:
|
||||
return
|
||||
|
||||
print('Done parsing %s.h (in %s)\n' % (filename, path))
|
||||
output = open('%s/enuminfo_%s.cpp' % (path, filename), 'w')
|
||||
if output is None:
|
||||
print('Failed to create enuminfo_%s.cpp' % filename)
|
||||
return
|
||||
|
||||
# write output file
|
||||
output.write(notice)
|
||||
output.write('#include "%s.h"\n' % filename)
|
||||
output.write('#include "Define.h"\n')
|
||||
output.write('#include "SmartEnum.h"\n')
|
||||
output.write('#include <stdexcept>\n')
|
||||
output.write('\n')
|
||||
output.write('namespace acore::Impl::EnumUtilsImpl\n')
|
||||
output.write('{\n')
|
||||
for name, prefix, values in enums:
|
||||
tag = ('data for enum \'%s\' in \'%s.h\' auto-generated' % (name, filename))
|
||||
output.write('\n')
|
||||
output.write('/*' + ('*'*(len(tag)+2)) + '*\\\n')
|
||||
output.write('|* ' + tag + ' *|\n')
|
||||
output.write('\\*' + ('*'*(len(tag)+2)) + '*/\n')
|
||||
output.write('template <>\n')
|
||||
output.write('EnumText EnumUtils<%s>::ToString(%s value)\n' % (name, name))
|
||||
output.write('{\n')
|
||||
output.write(' switch (value)\n')
|
||||
output.write(' {\n')
|
||||
for label, title, description in values:
|
||||
output.write(' case %s: return { %s, %s, %s };\n' % (prefix + label, strescape(label), strescape(title), strescape(description)))
|
||||
output.write(' default: throw std::out_of_range("value");\n')
|
||||
output.write(' }\n')
|
||||
output.write('}\n')
|
||||
output.write('\n')
|
||||
output.write('template <>\n')
|
||||
output.write('size_t EnumUtils<%s>::Count() { return %d; }\n' % (name, len(values)))
|
||||
output.write('\n')
|
||||
output.write('template <>\n')
|
||||
output.write('%s EnumUtils<%s>::FromIndex(size_t index)\n' % (name, name))
|
||||
output.write('{\n')
|
||||
output.write(' switch (index)\n')
|
||||
output.write(' {\n')
|
||||
for (i, (label, title, description)) in enumerate(values):
|
||||
output.write(' case %d: return %s;\n' % (i, prefix + label))
|
||||
output.write(' default: throw std::out_of_range("index");\n')
|
||||
output.write(' }\n')
|
||||
output.write('}\n')
|
||||
output.write('\n')
|
||||
output.write('template <>\n')
|
||||
output.write('size_t EnumUtils<%s>::ToIndex(%s value)\n' % (name, name))
|
||||
output.write('{\n')
|
||||
output.write(' switch (value)\n')
|
||||
output.write(' {\n')
|
||||
for (i, (label, title, description)) in enumerate(values):
|
||||
output.write(' case %s: return %d;\n' % (prefix + label, i))
|
||||
output.write(' default: throw std::out_of_range("value");\n')
|
||||
output.write(' }\n')
|
||||
output.write('}\n')
|
||||
|
||||
output.write('}\n')
|
||||
|
||||
FilenamePattern = compile(r'^(.+)\.h$')
|
||||
for root, dirs, files in walk('.'):
|
||||
for n in files:
|
||||
nameMatch = FilenamePattern.match(n)
|
||||
if nameMatch is not None:
|
||||
processFile(root, nameMatch.group(1))
|
||||
@@ -1,12 +1,15 @@
|
||||
function registerHooks() { hwc_event_register_hooks "$@"; }
|
||||
function runHooks() { hwc_event_run_hooks "$@"; }
|
||||
function registerHooks() { acore_event_registerHooks "$@"; }
|
||||
function runHooks() { acore_event_runHooks "$@"; }
|
||||
|
||||
source "$AC_PATH_CONF/dist/config.sh" # include dist to avoid missing conf variables
|
||||
|
||||
if [ -f "$AC_PATH_CONF/config.sh" ]; then
|
||||
source "$AC_PATH_CONF/config.sh" # should overwrite previous
|
||||
# first check if it's defined in env, otherwise use the default
|
||||
USER_CONF_PATH=${USER_CONF_PATH:-"$AC_PATH_CONF/config.sh"}
|
||||
|
||||
if [ -f "$USER_CONF_PATH" ]; then
|
||||
source "$USER_CONF_PATH" # should overwrite previous
|
||||
else
|
||||
echo "NOTICE: file <$AC_PATH_CONF/config.sh> has not been found, you should create and configure it."
|
||||
echo "NOTICE: file <$USER_CONF_PATH> has not been found, you should create and configure it."
|
||||
fi
|
||||
|
||||
#
|
||||
@@ -15,7 +18,7 @@ fi
|
||||
|
||||
for entry in "$AC_PATH_MODULES/"*/include.sh
|
||||
do
|
||||
if [ -e "$entry" ]; then
|
||||
if [ -e "$entry" ]; then
|
||||
source "$entry"
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -14,6 +14,11 @@ else
|
||||
AC_PATH_ROOT=$(readlink -f "$AC_PATH_APPS/../")
|
||||
fi
|
||||
|
||||
case $AC_PATH_ROOT in
|
||||
/*) AC_PATH_ROOT=$AC_PATH_ROOT;;
|
||||
*) AC_PATH_ROOT=$PWD/$AC_PATH_ROOT;;
|
||||
esac
|
||||
|
||||
AC_PATH_CONF="$AC_PATH_ROOT/conf"
|
||||
|
||||
AC_PATH_MODULES="$AC_PATH_ROOT/modules"
|
||||
|
||||
23
apps/bash_shared/deno.sh
Normal file
23
apps/bash_shared/deno.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
DENO_MIN_VERSION="1.9.1"
|
||||
|
||||
function denoInstall() {
|
||||
|
||||
{ # try
|
||||
echo "Deno version check:" && denoCmd upgrade --version $DENO_MIN_VERSION
|
||||
} ||
|
||||
{ # catch
|
||||
echo "Installing Deno..."
|
||||
# just one line of command that works on all OSes
|
||||
# (temporary cd into AC_PATH_DEPS)
|
||||
curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL="$AC_PATH_DEPS/deno" sh
|
||||
}
|
||||
}
|
||||
|
||||
function denoCmd() {
|
||||
[[ "$OSTYPE" = "msys" ]] && DENOEXEC="./deps/deno/bin/deno.exe" || DENOEXEC="./deps/deno/bin/deno"
|
||||
(cd "$AC_PATH_ROOT" ; $DENOEXEC "$@")
|
||||
}
|
||||
|
||||
function denoRunFile() {
|
||||
denoCmd run --allow-all --unstable "$@"
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
[[ ${GUARDYVAR:-} -eq 1 ]] && return || readonly GUARDYVAR=1 # include it once
|
||||
|
||||
# force default language for applications
|
||||
LC_ALL=C
|
||||
LC_ALL=C
|
||||
|
||||
AC_PATH_APPS="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
|
||||
|
||||
@@ -9,9 +9,13 @@ AC_PATH_SHARED="$AC_PATH_APPS/bash_shared"
|
||||
|
||||
source "$AC_PATH_SHARED/defines.sh"
|
||||
|
||||
source "$AC_PATH_DEPS/hw-core/bash-lib-event/src/hooks.sh"
|
||||
source "$AC_PATH_DEPS/acore/bash-lib/src/event/hooks.sh"
|
||||
|
||||
source "$AC_PATH_SHARED/common.sh"
|
||||
|
||||
source "$AC_PATH_SHARED/deno.sh"
|
||||
|
||||
denoInstall
|
||||
|
||||
[[ "$OSTYPE" = "msys" ]] && AC_BINPATH_FULL="$BINPATH" || AC_BINPATH_FULL="$BINPATH/bin"
|
||||
|
||||
|
||||
@@ -2,6 +2,21 @@
|
||||
PROMPT_USER=""
|
||||
PROMPT_PASS=""
|
||||
|
||||
function dbasm_waitMysqlConn() {
|
||||
DBHOST="$1"
|
||||
DBPORT="$2"
|
||||
COUNT=0
|
||||
while ! mysqladmin ping -h"$DBHOST" --port="$DBPORT" --silent; do
|
||||
((COUNT++))
|
||||
if [ $COUNT -gt $DBASM_WAIT_RETRIES ]; then
|
||||
echo "DBASM Timeout: Cannot ping mysql!" 1>&2
|
||||
exit 64
|
||||
fi
|
||||
echo "Cannot ping mysql, retry in $DBASM_WAIT_TIMEOUT seconds (remaining: $COUNT/$DBASM_WAIT_RETRIES)..."
|
||||
sleep $DBASM_WAIT_TIMEOUT
|
||||
done
|
||||
}
|
||||
|
||||
# use in a subshell
|
||||
function dbasm_resetExitCode() {
|
||||
exit 0
|
||||
@@ -11,7 +26,7 @@ function dbasm_mysqlExec() {
|
||||
confs=$1
|
||||
command=$2
|
||||
options=$3
|
||||
|
||||
|
||||
# MYSQL_PORT needs to be reseted as the next eval might not overwite the current value causing the commands to use wrong port
|
||||
MYSQL_PORT=3306
|
||||
eval $confs
|
||||
@@ -21,6 +36,7 @@ function dbasm_mysqlExec() {
|
||||
MYSQL_PASS=$PROMPT_PASS
|
||||
fi
|
||||
|
||||
dbasm_waitMysqlConn $MYSQL_HOST $MYSQL_PORT
|
||||
|
||||
export MYSQL_PWD=$MYSQL_PASS
|
||||
|
||||
@@ -57,7 +73,7 @@ function dbasm_mysqlExec() {
|
||||
|
||||
eval $_confs
|
||||
echo "Grant permissions for ${MYSQL_USER}'@'${MYSQL_HOST} to ${_dbname}"
|
||||
"$DB_MYSQL_EXEC" -h "$MYSQL_HOST" -u "$PROMPT_USER" $options -P "$MYSQL_PORT" -e "GRANT ALL PRIVILEGES ON ${_dbname}.* TO '${MYSQL_USER}'@'${MYSQL_HOST}' WITH GRANT OPTION;"
|
||||
"$DB_MYSQL_EXEC" -h "$MYSQL_HOST" -u "$PROMPT_USER" $options -P "$MYSQL_PORT" -e "GRANT ALL PRIVILEGES ON ${_dbname}.* TO '${MYSQL_USER}'@'${MYSQL_HOST}' WITH GRANT OPTION; FLUSH PRIVILEGES;"
|
||||
done
|
||||
else
|
||||
exit
|
||||
@@ -109,9 +125,13 @@ function dbasm_createDB() {
|
||||
echo "$dbname database exists"
|
||||
else
|
||||
echo "Creating DB ${dbname} ..."
|
||||
dbasm_mysqlExec "$confs" "CREATE DATABASE \`${dbname}\`" ""
|
||||
dbasm_mysqlExec "$confs" "CREATE DATABASE \`${dbname}\`;" ""
|
||||
echo "Creating User ${CONF_USER}@${MYSQL_HOST} identified by ${CONF_PASS}..."
|
||||
dbasm_mysqlExec "$confs" "CREATE USER IF NOT EXISTS '${CONF_USER}'@'${MYSQL_HOST}' IDENTIFIED BY '${CONF_PASS}';"
|
||||
dbasm_mysqlExec "$confs" "GRANT ALL PRIVILEGES ON \`${dbname}\`.* TO '${CONF_USER}'@'${MYSQL_HOST}' WITH GRANT OPTION;"
|
||||
echo "Granting user privileges on: ${dbname} ..."
|
||||
dbasm_mysqlExec "$confs" "GRANT ALL PRIVILEGES ON \`${dbname}\`.* TO '${CONF_USER}'@'${MYSQL_HOST}'"
|
||||
echo "Flush privileges"
|
||||
dbasm_mysqlExec "$confs" "FLUSH PRIVILEGES;"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -247,7 +267,7 @@ function dbasm_db_backup() {
|
||||
|
||||
name="DB_"$uc"_NAME"
|
||||
dbname=${!name}
|
||||
|
||||
|
||||
# MYSQL_PORT needs to be reseted as the next eval might not overwite the current value causing the commands to use wrong port
|
||||
MYSQL_PORT=3306
|
||||
eval $confs;
|
||||
@@ -299,7 +319,7 @@ function dbasm_db_import() {
|
||||
fi
|
||||
|
||||
echo "importing $1 - $2 ..."
|
||||
|
||||
|
||||
# MYSQL_PORT needs to be reseted as the next eval might not overwite the current value causing the commands to use wrong port
|
||||
MYSQL_PORT=3306
|
||||
eval $confs;
|
||||
@@ -309,6 +329,8 @@ function dbasm_db_import() {
|
||||
MYSQL_PASS=$PROMPT_PASS
|
||||
fi
|
||||
|
||||
dbasm_waitMysqlConn $MYSQL_HOST $MYSQL_PORT
|
||||
|
||||
export MYSQL_PWD=$MYSQL_PASS
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
ROOTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../../" && pwd )"
|
||||
|
||||
source $ROOTPATH"/apps/bash_shared/includes.sh"
|
||||
source "$ROOTPATH/apps/bash_shared/includes.sh"
|
||||
|
||||
if [ -f "./config.sh" ]; then
|
||||
source "./config.sh" # should overwrite previous
|
||||
@@ -24,7 +24,7 @@ function export() {
|
||||
|
||||
var_base_path="DB_"$database"_PATHS"
|
||||
base_path=${!var_base_path%/}
|
||||
|
||||
|
||||
base_conf="TPATH="$base_path";\
|
||||
CLEANFOLDER=1; \
|
||||
CHMODE=0; \
|
||||
@@ -33,15 +33,15 @@ function export() {
|
||||
FULL=0; \
|
||||
DUMPOPTS='--skip-comments --skip-set-charset --routines --extended-insert --order-by-primary --single-transaction --quick'; \
|
||||
"
|
||||
|
||||
|
||||
var_base_conf="DB_"$database"_CONF"
|
||||
base_conf=$base_conf${!var_base_conf}
|
||||
|
||||
|
||||
var_base_name="DB_"$database"_NAME"
|
||||
base_name=${!var_base_name}
|
||||
|
||||
|
||||
bash $AC_PATH_DEPS"/drassil/mysql-tools/mysql-tools" dump "" $base_name "" "$base_conf"
|
||||
bash "$AC_PATH_DEPS/acore/mysql-tools/mysql-tools" "dump" "" "$base_name" "" "$base_conf"
|
||||
}
|
||||
|
||||
for db in ${DATABASES[@]}
|
||||
|
||||
128
apps/docker/Dockerfile
Normal file
128
apps/docker/Dockerfile
Normal file
@@ -0,0 +1,128 @@
|
||||
#================================================================
|
||||
#
|
||||
# DEV: Stage used for the development environment
|
||||
# and the locally built services
|
||||
#
|
||||
#=================================================================
|
||||
|
||||
FROM ubuntu:20.04 as dev
|
||||
ARG USER_ID=1000
|
||||
ARG GROUP_ID=1000
|
||||
|
||||
LABEL description="AC Worldserver Debug Container for use with Visual Studio"
|
||||
|
||||
# List of timezones: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||
|
||||
ENV DOCKER=1
|
||||
|
||||
# set timezone environment variable
|
||||
ENV TZ=Etc/UTC
|
||||
|
||||
# set noninteractive mode so tzdata doesn't ask to set timezone on install
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# install essentials
|
||||
RUN apt-get update && apt-get install -y gdb gdbserver git dos2unix lsb-core sudo curl unzip
|
||||
|
||||
# copy everything so we can work directly within the container
|
||||
# using tools such as vscode dev-container
|
||||
COPY . /azerothcore
|
||||
|
||||
# install the required dependencies to run the worldserver
|
||||
RUN /azerothcore/acore.sh install-deps
|
||||
|
||||
# change timezone in container
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
|
||||
|
||||
# Create a non-root user
|
||||
RUN addgroup --gid $GROUP_ID acore && \
|
||||
adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID acore && \
|
||||
passwd -d acore && \
|
||||
echo 'acore ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||
|
||||
RUN mkdir -p /azerothcore
|
||||
|
||||
# Correct permissions for non-root operations
|
||||
RUN chown -R acore:acore \
|
||||
/run \
|
||||
/home/acore \
|
||||
/opt/ \
|
||||
/azerothcore
|
||||
|
||||
USER acore
|
||||
|
||||
WORKDIR /azerothcore
|
||||
|
||||
#================================================================
|
||||
#
|
||||
# BUILD STAGE: to prepare binaries for the production services
|
||||
#
|
||||
#=================================================================
|
||||
FROM dev as build
|
||||
|
||||
RUN bash acore.sh compiler build
|
||||
|
||||
#================================================================
|
||||
#
|
||||
# SERVICE BASE: prepare the OS for the production-ready services
|
||||
#
|
||||
#=================================================================
|
||||
|
||||
FROM ubuntu:20.04 as servicebase
|
||||
|
||||
# List of timezones: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||
|
||||
# set timezone environment variable
|
||||
ENV TZ=Etc/UTC
|
||||
|
||||
# set noninteractive mode so tzdata doesn't ask to set timezone on install
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
COPY --from=build /azerothcore/env /azerothcore/env
|
||||
|
||||
# copy the sources from the host machine
|
||||
COPY apps /azerothcore/apps
|
||||
COPY bin /azerothcore/bin
|
||||
COPY conf /azerothcore/conf
|
||||
COPY data /azerothcore/data
|
||||
COPY deps /azerothcore/deps
|
||||
COPY acore.json /azerothcore/acore.json
|
||||
COPY acore.sh /azerothcore/acore.sh
|
||||
|
||||
# install the required dependencies to run the authserver
|
||||
RUN apt-get update && apt-get install -y gdb gdbserver net-tools tzdata libmysqlclient-dev libace-dev mysql-client curl unzip;
|
||||
|
||||
# change timezone in container
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
|
||||
|
||||
WORKDIR /azerothcore/
|
||||
|
||||
RUN cp -n "/azerothcore/env/docker/etc/worldserver.conf.dockerdist" "/azerothcore/env/dist/etc/worldserver.conf"
|
||||
RUN cp -n "/azerothcore/env/docker/etc/authserver.conf.dockerdist" "/azerothcore/env/dist/etc/authserver.conf"
|
||||
|
||||
#================================================================
|
||||
#
|
||||
# AUTH SERVICE: create a ready-to-use authserver image
|
||||
#
|
||||
#=================================================================
|
||||
|
||||
FROM servicebase as authserver
|
||||
|
||||
CMD ./acore.sh run-authserver
|
||||
|
||||
#================================================================
|
||||
#
|
||||
# WORLD SERVICE: create a ready-to-use worldserver image
|
||||
#
|
||||
#=================================================================
|
||||
|
||||
FROM servicebase as worldserver
|
||||
|
||||
ENV DATAPATH=/azerothcore/env/dist/data
|
||||
|
||||
RUN /azerothcore/acore.sh client-data
|
||||
|
||||
CMD ./acore.sh run-worldserver
|
||||
|
||||
|
||||
|
||||
27
apps/docker/README.md
Normal file
27
apps/docker/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Run AzerothCore with Docker
|
||||
|
||||
*This readme it's a summary of the AzerothCore docker features.*
|
||||
|
||||
Docker. is a software that performs operating-system-level virtualization, allowing to wrap and launch applications inside containers.
|
||||
|
||||
Thanks to Docker, you can quickly setup and run AzerothCore in any operating system.
|
||||
|
||||
The **only** requirement is having [Docker](https://docs.docker.com/install/) installed into your system. Forget about installing mysql, visual studio, cmake, etc...
|
||||
|
||||
### Installation instructions
|
||||
|
||||
Check the [Install with Docker](https://www.azerothcore.org/wiki/Install-with-Docker) guide.
|
||||
|
||||
### Memory usage
|
||||
|
||||
The total amount of RAM when running all AzerothCore docker containers is **less than 2 GB**.
|
||||
|
||||

|
||||
|
||||
|
||||
### Docker containers vs Virtual machines
|
||||
|
||||
Using Docker will have the same benefits as using virtual machines, but with much less overhead:
|
||||
|
||||

|
||||
|
||||
6
apps/docker/config-docker.sh
Normal file
6
apps/docker/config-docker.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# allow the user to override configs
|
||||
if [ -f "$AC_PATH_CONF/config.sh" ]; then
|
||||
source "$AC_PATH_CONF/config.sh" # should overwrite previous
|
||||
fi
|
||||
174
apps/docker/docker-cmd.ts
Normal file
174
apps/docker/docker-cmd.ts
Normal file
@@ -0,0 +1,174 @@
|
||||
import { Command } from "https://cdn.depjs.com/cmd/mod.ts";
|
||||
import * as ink from "https://deno.land/x/ink/mod.ts";
|
||||
import {
|
||||
Input,
|
||||
Select,
|
||||
} from "https://deno.land/x/cliffy@v0.18.2/prompt/mod.ts";
|
||||
|
||||
const program = new Command();
|
||||
|
||||
program.name("acore.sh docker")
|
||||
.description("Shell scripts for docker")
|
||||
.version("1.0.0");
|
||||
|
||||
shellCommandFactory(
|
||||
"start:app",
|
||||
"Startup the authserver and worldserver apps",
|
||||
"docker-compose --profile app up",
|
||||
);
|
||||
|
||||
shellCommandFactory(
|
||||
"start:app:d",
|
||||
"Startup the authserver and worldserver apps in detached mode",
|
||||
"docker-compose --profile app up -d",
|
||||
);
|
||||
|
||||
shellCommandFactory(
|
||||
"start:dev",
|
||||
"Startup the dev server",
|
||||
"docker-compose --profile dev up",
|
||||
);
|
||||
|
||||
shellCommandFactory(
|
||||
"build",
|
||||
"Build the authserver and worldserver",
|
||||
`docker-compose run --rm ac-dev-server bash bin/acore-docker-build`,
|
||||
);
|
||||
|
||||
shellCommandFactory(
|
||||
"build:clean",
|
||||
"Clean build data",
|
||||
`docker-compose run --rm ac-dev-server bash rm -rf var/build`,
|
||||
);
|
||||
|
||||
shellCommandFactory(
|
||||
"client-data",
|
||||
"Download client data inside the ac-data volume",
|
||||
"docker-compose run --rm ac-dev-server bash acore.sh client-data",
|
||||
);
|
||||
|
||||
shellCommandFactory(
|
||||
"db-import",
|
||||
"Create and upgrade the database with latest updates",
|
||||
"docker-compose run --rm ac-dev-server bash acore.sh db-assembler import-all",
|
||||
);
|
||||
|
||||
shellCommandFactory(
|
||||
"dashboard [args...]",
|
||||
"Execute acore dashboard within a running ac-dev-server",
|
||||
"docker-compose exec ac-dev-server bash acore.sh",
|
||||
);
|
||||
|
||||
program.command("attach [service]")
|
||||
.description("attach to a service")
|
||||
.action(async (service: string | undefined) => {
|
||||
const { run } = Deno;
|
||||
|
||||
let command = `docker-compose ps`;
|
||||
|
||||
if (service) {
|
||||
command = `${command} ${service}`;
|
||||
}
|
||||
|
||||
console.log(ink.colorize(`<green>>>>>> Running: ${command}</green>`));
|
||||
|
||||
let cmd = command.split(" ");
|
||||
const res = Deno.run({
|
||||
cmd,
|
||||
cwd: process.cwd(),
|
||||
stdout: "piped",
|
||||
stderr: "piped",
|
||||
});
|
||||
|
||||
const output = await res.output(); // "piped" must be set
|
||||
|
||||
let services = new TextDecoder().decode(output).split("\n");
|
||||
|
||||
services.pop();
|
||||
services = services.slice(2);
|
||||
|
||||
res.close(); // Don't forget to close it
|
||||
|
||||
let selService: string;
|
||||
if (services.length > 1) {
|
||||
selService = await Select.prompt({
|
||||
message: `Select a service`,
|
||||
options: services,
|
||||
});
|
||||
} else {
|
||||
selService = services[0];
|
||||
}
|
||||
|
||||
command = `docker attach ${selService.split(" ")[0]}`;
|
||||
|
||||
console.log(ink.colorize(`<green>>>>>> Running: ${command}</green>`));
|
||||
|
||||
console.log(
|
||||
ink.colorize(
|
||||
"<yellow>NOTE: you can detach from a container and leave it running using the CTRL-p CTRL-q key sequence.</yellow>",
|
||||
),
|
||||
);
|
||||
|
||||
cmd = command.split(" ");
|
||||
|
||||
const shellCmd = run({
|
||||
cmd,
|
||||
cwd: process.cwd(),
|
||||
});
|
||||
|
||||
await shellCmd.status();
|
||||
|
||||
shellCmd.close();
|
||||
});
|
||||
|
||||
program.command("quit").description("Close docker command").action(()=> {
|
||||
process.exit(0)
|
||||
})
|
||||
|
||||
// Handle it however you like
|
||||
// e.g. display usage
|
||||
while (true) {
|
||||
if (Deno.args.length === 0) {
|
||||
program.outputHelp();
|
||||
const command = await Input.prompt({
|
||||
message: "Enter the command:",
|
||||
});
|
||||
await program.parseAsync(command.split(" "));
|
||||
} else {
|
||||
await program.parseAsync(Deno.args);
|
||||
process.exit(0)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function shellCommandFactory(
|
||||
name: string,
|
||||
description: string,
|
||||
command: string,
|
||||
): Command {
|
||||
return program.command(name)
|
||||
.description(
|
||||
`${description}. Command: \n"${ink.colorize(`<green>${command}</green>`)}"\n`,
|
||||
)
|
||||
.action(async (args: any[] | undefined) => {
|
||||
const { run } = Deno;
|
||||
|
||||
console.log(ink.colorize(`<green>>>>>> Running: ${command}</green>`));
|
||||
|
||||
const cmd = command.split(" ");
|
||||
|
||||
if (Array.isArray(args)) {
|
||||
cmd.push(...args);
|
||||
}
|
||||
|
||||
const shellCmd = run({
|
||||
cmd,
|
||||
cwd: process.cwd(),
|
||||
});
|
||||
|
||||
await shellCmd.status();
|
||||
|
||||
shellCmd.close();
|
||||
});
|
||||
}
|
||||
@@ -2,7 +2,7 @@ function inst_configureOS() {
|
||||
echo "Platform: $OSTYPE"
|
||||
case "$OSTYPE" in
|
||||
solaris*) echo "Solaris is not supported yet" ;;
|
||||
darwin*) source "$AC_PATH_INSTALLER/includes/os_configs/osx.sh" ;;
|
||||
darwin*) source "$AC_PATH_INSTALLER/includes/os_configs/osx.sh" ;;
|
||||
linux*)
|
||||
# If $OSDISTRO is set, use this value (from config.sh)
|
||||
if [ ! -z "$OSDISTRO" ]; then
|
||||
@@ -68,7 +68,6 @@ function inst_cleanCompile() {
|
||||
|
||||
function inst_allInOne() {
|
||||
inst_configureOS
|
||||
inst_updateRepo
|
||||
inst_compile
|
||||
dbasm_import true true true
|
||||
}
|
||||
@@ -153,7 +152,7 @@ function inst_module_install {
|
||||
if [[ "$b" != "none" ]]; then
|
||||
Joiner:add_repo "https://github.com/azerothcore/$res" "$res" "$b" && echo "Done, please re-run compiling and db assembly. Read instruction on module repository for more information"
|
||||
else
|
||||
echo "Cannot install $res module: it doesn't exists or no version compatible with AC v$ACORE_VERSION are available"
|
||||
echo "Cannot install $res module: it doesn't exists or no version compatible with AC v$ACORE_VERSION are available"
|
||||
fi
|
||||
|
||||
echo "";
|
||||
@@ -219,9 +218,31 @@ function inst_simple_restarter {
|
||||
}
|
||||
|
||||
function inst_download_client_data {
|
||||
local path="$AC_BINPATH_FULL"
|
||||
# change the following version when needed
|
||||
local VERSION=v10
|
||||
|
||||
echo "#######################"
|
||||
echo "Client data downloader"
|
||||
echo "#######################"
|
||||
|
||||
# first check if it's defined in env, otherwise use the default
|
||||
local path="${DATAPATH:-$AC_BINPATH_FULL}"
|
||||
|
||||
dataVersionFile="$path/data-version"
|
||||
|
||||
[ -f "$dataVersionFile" ] && source "$dataVersionFile"
|
||||
|
||||
# create the path if doesn't exists
|
||||
mkdir -p "$path"
|
||||
|
||||
if [ "$VERSION" == "$INSTALLED_VERSION" ]; then
|
||||
echo "Data $VERSION already installed. If you want to force the download remove the following file: $dataVersionFile"
|
||||
return
|
||||
fi
|
||||
|
||||
echo "Downloading client data in: $path/data.zip ..."
|
||||
curl -L https://github.com/wowgaming/client-data/releases/download/v10/data.zip > "$path/data.zip" \
|
||||
&& unzip -o "$path/data.zip" -d "$path/" && rm "$path/data.zip"
|
||||
curl -L https://github.com/wowgaming/client-data/releases/download/$VERSION/data.zip > "$path/data.zip" \
|
||||
&& echo "unzip downloaded file..." && unzip -q -o "$path/data.zip" -d "$path/" \
|
||||
&& echo "Remove downloaded file" && rm "$path/data.zip" \
|
||||
&& echo "INSTALLED_VERSION=$VERSION" > "$dataVersionFile"
|
||||
}
|
||||
|
||||
@@ -6,24 +6,9 @@ source "$CURRENT_PATH/../../bash_shared/includes.sh"
|
||||
|
||||
AC_PATH_INSTALLER="$AC_PATH_APPS/installer"
|
||||
|
||||
|
||||
J_VER_REQ="v0.8.3"
|
||||
J_PATH="$AC_PATH_APPS/joiner"
|
||||
J_PATH="$AC_PATH_DEPS/acore/joiner"
|
||||
J_PATH_MODULES="$AC_PATH_MODULES"
|
||||
|
||||
#install/update and include joiner
|
||||
if [ ! -d "$J_PATH/.git" ]; then
|
||||
git clone https://github.com/azerothcore/joiner "$J_PATH" -b master
|
||||
git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" reset --hard "$J_VER_REQ"
|
||||
else
|
||||
# legacy code, with new rev of joiner the update process is internally handled
|
||||
_cur_branch=$(git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" rev-parse --abbrev-ref HEAD)
|
||||
_cur_ver=$(git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" name-rev --tags --name-only $_cur_branch)
|
||||
if [ "$_cur_ver" != "$J_VER_REQ" ]; then
|
||||
git --git-dir="$J_PATH/.git" --work-tree="$J_PATH/" rev-parse && git --git-dir="$J_PATH/.git" --work-tree="$J_PATH/" fetch --tags origin master --quiet
|
||||
git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" reset --hard "$J_VER_REQ"
|
||||
fi
|
||||
fi
|
||||
source "$J_PATH/joiner.sh"
|
||||
|
||||
if [ -f "$AC_PATH_INSTALLER/config.sh" ]; then
|
||||
|
||||
@@ -7,13 +7,16 @@ UBUNTU_VERSION=$(lsb_release -sr);
|
||||
|
||||
sudo apt-get update -y
|
||||
|
||||
if [[ $CONTINUOUS_INTEGRATION ]]; then
|
||||
sudo apt-get -y install build-essential libtool make cmake cmake-data clang openssl libgoogle-perftools-dev \
|
||||
libssl-dev libmysqlclient-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev libace-dev mysql-client \
|
||||
libncurses5-dev ccache
|
||||
# shared deps
|
||||
sudo apt-get -y install make cmake clang curl unzip libmysqlclient-dev libace-dev
|
||||
|
||||
if [[ $CONTINUOUS_INTEGRATION || $DOCKER ]]; then
|
||||
sudo apt-get -y install build-essential libtool cmake-data openssl libgoogle-perftools-dev \
|
||||
libssl-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev mysql-client \
|
||||
libncurses5-dev ccache curl unzip
|
||||
else
|
||||
sudo apt-get install -y git cmake make gcc g++ clang libmysqlclient-dev \
|
||||
sudo apt-get install -y git gcc g++ \
|
||||
libssl-dev libbz2-dev libreadline-dev libncurses-dev \
|
||||
mysql-server libace-6.* libace-dev curl unzip
|
||||
mysql-server libace-6.*
|
||||
fi
|
||||
|
||||
|
||||
|
||||
@@ -19,7 +19,8 @@ options=(
|
||||
"client-data: (gd): download client data from github repository (beta)" # 11
|
||||
"run-worldserver (rw): execute a simple restarter for worldserver" # 12
|
||||
"run-authserver (ra): execute a simple restarter for authserver" # 13
|
||||
"quit: Exit from this menu" # 14
|
||||
"docker (dr): Run docker tools" # 14
|
||||
"quit: Exit from this menu" # 15
|
||||
)
|
||||
|
||||
function _switch() {
|
||||
@@ -66,7 +67,11 @@ function _switch() {
|
||||
""|"ra"|"run-authserver"|"13")
|
||||
inst_simple_restarter authserver
|
||||
;;
|
||||
""|"quit"|"14")
|
||||
""|"dr"|"docker"|"14")
|
||||
DOCKER=1 denoRunFile "$AC_PATH_APPS/docker/docker-cmd.ts" "${@:2}"
|
||||
exit
|
||||
;;
|
||||
""|"quit"|"15")
|
||||
echo "Goodbye!"
|
||||
exit
|
||||
;;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
export GDB_ENABLED=0
|
||||
|
||||
# [optional] gdb file
|
||||
# default: gdb.txt
|
||||
# default: gdb.conf
|
||||
export GDB=""
|
||||
|
||||
# directory where binary are stored
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
PATH_RUNENGINE="./"
|
||||
|
||||
source $PATH_RUNENGINE/run-engine
|
||||
source "$PATH_RUNENGINE/run-engine"
|
||||
|
||||
# you must create your conf
|
||||
# copying conf.sh.dist
|
||||
# copying conf.sh.dist
|
||||
# and renaming as below
|
||||
source ./conf-auth.sh
|
||||
source "./conf-auth.sh"
|
||||
|
||||
restarter
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
PATH_RUNENGINE="./"
|
||||
|
||||
source $PATH_RUNENGINE/run-engine
|
||||
source "$PATH_RUNENGINE/run-engine"
|
||||
|
||||
# you must create your conf
|
||||
# copying conf.sh.dist
|
||||
# copying conf.sh.dist
|
||||
# and renaming as below
|
||||
source ./conf-world.sh
|
||||
source "./conf-world.sh"
|
||||
|
||||
restarter
|
||||
|
||||
|
||||
@@ -2,13 +2,12 @@
|
||||
|
||||
PATH_RUNENGINE="./"
|
||||
|
||||
source $PATH_RUNENGINE/run-engine
|
||||
source "$PATH_RUNENGINE/run-engine"
|
||||
|
||||
# you must create your conf
|
||||
# copying conf.sh.dist
|
||||
# and renaming as below
|
||||
source ./conf-auth.sh
|
||||
source "./conf-auth.sh"
|
||||
|
||||
starter
|
||||
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
PATH_RUNENGINE="./"
|
||||
|
||||
source $PATH_RUNENGINE/run-engine
|
||||
source "$PATH_RUNENGINE/run-engine"
|
||||
|
||||
# you must create your conf
|
||||
# copying conf.sh.dist
|
||||
# copying conf.sh.dist
|
||||
# and renaming as below
|
||||
source ./conf-world.sh
|
||||
source "./conf-world.sh"
|
||||
|
||||
starter
|
||||
|
||||
|
||||
4
apps/startup-scripts/gdb.conf
Normal file
4
apps/startup-scripts/gdb.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
set logging on
|
||||
set debug timestamp
|
||||
run
|
||||
bt
|
||||
@@ -2,56 +2,69 @@
|
||||
|
||||
#PARAMETER 1: directory
|
||||
#PARAMETER 2: binary file
|
||||
#PARAMETER 3: gdb on/off
|
||||
|
||||
_bin_path=$1
|
||||
_bin_file=$2
|
||||
bin_path="${1:-$AC_RESTARTER_BINPATH}"
|
||||
bin_file="${2:-$AC_RESTARTER_BINFILE}"
|
||||
with_gdb="${3:-$AC_RESTARTER_WITHGDB}"
|
||||
|
||||
CURRENT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd )
|
||||
|
||||
_instant_crash_count=0
|
||||
_restart_count=0
|
||||
|
||||
if [ "$#" -ne 2 ]; then
|
||||
echo "Usage: $0 path filename"
|
||||
echo "Example: $0 $HOME/azeroth-server/bin worldserver"
|
||||
echo "Example: $0 $HOME/azerothcore/bin worldserver"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
while true
|
||||
do
|
||||
if [ ! -f "$_bin_path/$_bin_file" ]; then
|
||||
echo "$_bin_path/$_bin_file doesn't exists!"
|
||||
if [ ! -f "$bin_path/$bin_file" ]; then
|
||||
echo "$bin_path/$bin_file doesn't exists!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
STARTING_TIME=$(date +%s)
|
||||
|
||||
cd "$_bin_path" && "./$_bin_file" # &>/dev/null;
|
||||
cd "$bin_path";
|
||||
|
||||
if [ "$with_gdb" = true ]; then
|
||||
echo "Running with GDB enabled"
|
||||
gdb -x "$CURRENT_PATH/gdb.conf" --batch "./$bin_file"
|
||||
else
|
||||
echo "Running without GDB"
|
||||
"./$bin_file"
|
||||
fi
|
||||
|
||||
_exit_code=$?
|
||||
|
||||
echo "exit code: $_exit_code"
|
||||
# stop restarter on SIGKILL (disabled for now)
|
||||
# 128 + 9 (SIGKILL)
|
||||
#if [ $_exit_code -eq 137 ]; then
|
||||
# echo "$_bin_file has been killed"
|
||||
# echo "$bin_file has been killed"
|
||||
# exit 0
|
||||
#fi
|
||||
|
||||
echo "$_bin_file terminated, restarting..."
|
||||
echo "$bin_file terminated, restarting..."
|
||||
|
||||
ENDING_TIME=$(date +%s)
|
||||
DIFFERENCE=$(( $ENDING_TIME - $STARTING_TIME ))
|
||||
|
||||
((_restart_count++))
|
||||
echo "$_bin_file Terminated after $DIFFERENCE seconds, termination count: : $_restart_count"
|
||||
echo "$bin_file Terminated after $DIFFERENCE seconds, termination count: : $_restart_count"
|
||||
|
||||
if [ $DIFFERENCE -lt 10 ]; then
|
||||
# increment instant crash if runtime is lower than 10 seconds
|
||||
# increment instant crash if runtime is lower than 10 seconds
|
||||
((_instant_crash_count++))
|
||||
else
|
||||
_instant_crash_count=0 # reset count
|
||||
fi
|
||||
|
||||
if [ $_instant_crash_count -gt 5 ]; then
|
||||
echo "$_bin_file Restarter exited. Infinite crash loop prevented. Please check your system"
|
||||
echo "$bin_file Restarter exited. Infinite crash loop prevented. Please check your system"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
3
apps/whitespace_remover/whitespace_remover.sh
Normal file
3
apps/whitespace_remover/whitespace_remover.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
# Change '*.cpp' and '*.h' to the extension you want to remove whitespaces in.
|
||||
find -name '*.cpp' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
|
||||
find -name '*.h' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
source "$CUR_PATH/../apps/db_assembler/db_assembler.sh"
|
||||
@@ -1,9 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
docker build -t acbuild -f docker/build/Dockerfile .
|
||||
bash acore.sh compiler build && bash acore.sh db-assembler import-all
|
||||
|
||||
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
ENV_PATH=$(readlink -f "$CUR_PATH/../env")
|
||||
|
||||
echo "Generating confs..."
|
||||
cp -n "$ENV_PATH/docker/etc/worldserver.conf.dockerdist" "$ENV_PATH/dist/etc/worldserver.conf"
|
||||
cp -n "$ENV_PATH/docker/etc/authserver.conf.dockerdist" "$ENV_PATH/dist/etc/authserver.conf"
|
||||
|
||||
echo "Fixing EOL..."
|
||||
dos2unix "$ENV_PATH/dist/etc/"*
|
||||
|
||||
docker run \
|
||||
-v /"$(pwd)"/docker/build/cache:/azerothcore/build \
|
||||
-v /"$(pwd)"/docker/worldserver/bin:/binworldserver \
|
||||
-v /"$(pwd)"/docker/authserver/bin:/binauthserver \
|
||||
acbuild
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
docker build --build-arg ENABLE_SCRIPTS=0 -t acbuild -f docker/build/Dockerfile .
|
||||
|
||||
docker run \
|
||||
-v /"$(pwd)"/docker/build/cache:/azerothcore/build \
|
||||
-v /"$(pwd)"/docker/worldserver/bin:/binworldserver \
|
||||
-v /"$(pwd)"/docker/authserver/bin:/binauthserver \
|
||||
acbuild
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cp src/server/worldserver/worldserver.conf.dist docker/worldserver/etc/worldserver.conf.dist
|
||||
cp src/server/authserver/authserver.conf.dist docker/authserver/etc/authserver.conf.dist
|
||||
|
||||
cp docker/worldserver/etc/worldserver.conf.dockerdist docker/worldserver/etc/worldserver.conf
|
||||
cp docker/authserver/etc/authserver.conf.dockerdist docker/authserver/etc/authserver.conf
|
||||
|
||||
if [ $OSTYPE = msys ]; then
|
||||
dos2unix docker/worldserver/etc/* docker/authserver/etc/*
|
||||
fi
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$(id -u)" != "0" ] && [ "$OSTYPE" != "msys" ] ; then
|
||||
echo "Please run the script with sudo"
|
||||
else
|
||||
rm -rf ./docker/build/cache/CMakeFiles
|
||||
rm -rf ./docker/build/cache/deps
|
||||
rm -rf ./docker/build/cache/src
|
||||
rm ./docker/build/cache/*.cmake
|
||||
rm ./docker/build/cache/*.txt
|
||||
rm ./docker/build/cache/*.h
|
||||
rm ./docker/build/cache/*.cpp
|
||||
rm ./docker/build/cache/Makefile
|
||||
fi
|
||||
34
bin/acore-subrepo-update
Executable file
34
bin/acore-subrepo-update
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#######################
|
||||
#
|
||||
# README
|
||||
#
|
||||
# This script is used to automatically update
|
||||
# submodules and subrepos included in this project
|
||||
# Subrepo are updated in bidirectional way (pull + push)
|
||||
# because they are intended to be developed by this organization
|
||||
#
|
||||
# NOTE: only maintainers and CI should run this script and
|
||||
# keep it updated
|
||||
#
|
||||
#######################
|
||||
|
||||
set -e
|
||||
ROOT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../"
|
||||
# update all submodules
|
||||
git submodule update --init --recursive
|
||||
git submodule foreach git pull origin master
|
||||
# include libraries for git subrepo
|
||||
source "$ROOT_PATH/deps/git-subrepo/.rc"
|
||||
source "$ROOT_PATH/deps/acore/bash-lib/src/git-utils/subrepo.sh"
|
||||
|
||||
echo "> Pulling and update all subrepos"
|
||||
|
||||
subrepoUpdate https://github.com/azerothcore/bash-lib master deps/acore/bash-lib
|
||||
|
||||
subrepoUpdate https://github.com/azerothcore/cmake-utils master deps/acore/cmake-utils
|
||||
|
||||
subrepoUpdate https://github.com/azerothcore/mysql-tools master deps/acore/mysql-tools
|
||||
|
||||
subrepoUpdate https://github.com/azerothcore/joiner master deps/acore/joiner
|
||||
13
conf/dist/config.cmake
vendored
13
conf/dist/config.cmake
vendored
@@ -12,6 +12,19 @@ option(WITHOUT_GIT "Disable the GIT testing routines"
|
||||
option(ENABLE_EXTRAS "Set to 0 to disable extra features optimizing performances" 1)
|
||||
option(ENABLE_VMAP_CHECKS "Enable Checks relative to DisableMgr system on vmap" 1)
|
||||
option(ENABLE_EXTRA_LOGS "Enable extra log functions that can be CPU intensive" 0)
|
||||
option(WITH_DYNAMIC_LINKING "Enable dynamic library linking." 0)
|
||||
|
||||
IsDynamicLinkingRequired(WITH_DYNAMIC_LINKING_FORCED)
|
||||
|
||||
if(WITH_DYNAMIC_LINKING AND WITH_DYNAMIC_LINKING_FORCED)
|
||||
set(WITH_DYNAMIC_LINKING_FORCED OFF)
|
||||
endif()
|
||||
|
||||
if(WITH_DYNAMIC_LINKING OR WITH_DYNAMIC_LINKING_FORCED)
|
||||
set(BUILD_SHARED_LIBS ON)
|
||||
else()
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
endif()
|
||||
|
||||
# Source tree in IDE
|
||||
set(WITH_SOURCE_TREE "hierarchical" CACHE STRING "Build the source tree for IDE's.")
|
||||
|
||||
57
conf/dist/config.sh
vendored
57
conf/dist/config.sh
vendored
@@ -5,7 +5,9 @@ SRCPATH="$AC_PATH_ROOT"
|
||||
# absolute path where build files must be stored
|
||||
BUILDPATH="$AC_PATH_ROOT/var/build/obj"
|
||||
|
||||
# absolute path where binary files must be stored
|
||||
# absolute path where azerothcore will be installed
|
||||
# NOTE: on linux the binaries are stored in a subfolder (/bin)
|
||||
# of the $BINPATH
|
||||
BINPATH="$AC_PATH_ROOT/env/dist"
|
||||
|
||||
# bash fills it by default with your os type. No need to change it.
|
||||
@@ -15,12 +17,17 @@ BINPATH="$AC_PATH_ROOT/env/dist"
|
||||
# When using linux, our installer automatically get information about your distro
|
||||
# using lsb_release. If your distro is not supported but it's based on ubuntu or debian,
|
||||
# please change it to one of these values.
|
||||
#OSDISTRO="ubuntu"
|
||||
# OSDISTRO="ubuntu"
|
||||
|
||||
# absolute path where config. files must be stored
|
||||
# default: the system will use binpath by default
|
||||
# CONFDIR="$AC_PATH_ROOT/env/dist/etc/"
|
||||
|
||||
# absolute path where maps and client data will be downloaded
|
||||
# by the AC dashboard
|
||||
# default: the system will use binpath by default
|
||||
# DATAPATH="$BINPATH/bin"
|
||||
|
||||
##############################################
|
||||
#
|
||||
# COMPILER_CONFIGURATIONS
|
||||
@@ -43,10 +50,16 @@ MTHREADS=0
|
||||
CWARNINGS=ON
|
||||
# enable/disable some debug informations ( it's not a debug compilation )
|
||||
CDEBUG=OFF
|
||||
# specify compilation type
|
||||
CTYPE=Release
|
||||
# specify compilation type:
|
||||
# * Release: high optimization level, no debug info, code or asserts.
|
||||
# * Debug: No optimization, asserts enabled, [custom debug (output) code enabled],
|
||||
# debug info included in executable (so you can step through the code with a
|
||||
# debugger and have address to source-file:line-number translation).
|
||||
# * RelWithDebInfo: optimized, *with* debug info, but no debug (output) code or asserts.
|
||||
# * MinSizeRel: same as Release but optimizing for size rather than speed.
|
||||
CTYPE=${CTYPE:-Release}
|
||||
# compile scripts
|
||||
CSCRIPTS=ON
|
||||
CSCRIPTS=${CSCRIPTS:-ON}
|
||||
# compile unit tests
|
||||
CBUILD_TESTING=OFF
|
||||
# compile server
|
||||
@@ -76,17 +89,21 @@ CCUSTOMOPTIONS=""
|
||||
##############################################
|
||||
|
||||
#
|
||||
# Basically you don't have to edit it
|
||||
# but if you have another database you can add it here
|
||||
# and create relative confiugurations below
|
||||
# Comma separated list of databases
|
||||
#
|
||||
# You can add another element here if you need
|
||||
# to support multiple databases
|
||||
#
|
||||
DATABASES=(
|
||||
"AUTH"
|
||||
"CHARACTERS"
|
||||
"WORLD"
|
||||
)
|
||||
|
||||
OUTPUT_FOLDER="$AC_PATH_ROOT/env/dist/sql/"
|
||||
DBLIST=${DBLIST:-"AUTH,CHARACTERS,WORLD"}
|
||||
# convert from comma separated list to an array.
|
||||
# This is needed to support environment variables
|
||||
readarray -td, DATABASES <<<"$DBLIST";
|
||||
|
||||
OUTPUT_FOLDER=${OUTPUT_FOLDER:-"$AC_PATH_ROOT/env/dist/sql/"}
|
||||
|
||||
DBASM_WAIT_TIMEOUT=${DBASM_WAIT_TIMEOUT:-1}
|
||||
DBASM_WAIT_RETRIES=${DBASM_WAIT_RETRIES:-3}
|
||||
|
||||
####### BACKUP
|
||||
# Set to true if you want to backup your azerothcore databases before importing the SQL with the db_assembler
|
||||
@@ -163,23 +180,23 @@ DB_MYSQL_EXEC="mysql"
|
||||
DB_MYSQL_DUMP_EXEC="mysqldump"
|
||||
|
||||
|
||||
DB_AUTH_CONF="MYSQL_USER='acore'; \
|
||||
DB_AUTH_CONF=${DB_AUTH_CONF:-"MYSQL_USER='acore'; \
|
||||
MYSQL_PASS='acore'; \
|
||||
MYSQL_HOST='localhost';\
|
||||
MYSQL_PORT='3306';\
|
||||
"
|
||||
"}
|
||||
|
||||
DB_CHARACTERS_CONF="MYSQL_USER='acore'; \
|
||||
DB_CHARACTERS_CONF=${DB_CHARACTERS_CONF:-"MYSQL_USER='acore'; \
|
||||
MYSQL_PASS='acore'; \
|
||||
MYSQL_HOST='localhost';\
|
||||
MYSQL_PORT='3306';\
|
||||
"
|
||||
"}
|
||||
|
||||
DB_WORLD_CONF="MYSQL_USER='acore'; \
|
||||
DB_WORLD_CONF=${DB_WORLD_CONF:-"MYSQL_USER='acore'; \
|
||||
MYSQL_PASS='acore'; \
|
||||
MYSQL_HOST='localhost';\
|
||||
MYSQL_PORT='3306';\
|
||||
"
|
||||
"}
|
||||
|
||||
DB_AUTH_NAME="acore_auth"
|
||||
|
||||
|
||||
4
conf/dist/docker-compose.override.yml
vendored
Normal file
4
conf/dist/docker-compose.override.yml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
version: '3.8'
|
||||
# services:
|
||||
# ac-worldserver-2:
|
||||
|
||||
31
conf/dist/env.ac
vendored
Normal file
31
conf/dist/env.ac
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# GENERAL
|
||||
#
|
||||
|
||||
USER_CONF_PATH=/azerothcore/apps/docker/config-docker.sh
|
||||
DATAPATH=/azerothcore/env/dist/data
|
||||
|
||||
#
|
||||
# COMPILER
|
||||
#
|
||||
CTYPE=RelWithDebInfo
|
||||
CSCRIPTS=ON
|
||||
|
||||
#
|
||||
# DATABASE
|
||||
#
|
||||
|
||||
OUTPUT_FOLDER=/azerothcore/var/build/sql/
|
||||
|
||||
DB_AUTH_CONF="MYSQL_USER='root'; MYSQL_PASS='password'; MYSQL_HOST='ac-database'; MYSQL_PORT='3306';"
|
||||
|
||||
DB_CHARACTERS_CONF="MYSQL_USER='root'; MYSQL_PASS='password'; MYSQL_HOST='ac-database'; MYSQL_PORT='3306';"
|
||||
|
||||
DB_WORLD_CONF="MYSQL_USER='root'; MYSQL_PASS='password'; MYSQL_HOST='ac-database'; MYSQL_PORT='3306';"
|
||||
|
||||
#
|
||||
# SIMPLE RESTARTER
|
||||
#
|
||||
AC_RESTARTER_BINPATH=
|
||||
AC_RESTARTER_BINFILE=
|
||||
AC_RESTARTER_WITHGDB=
|
||||
23
conf/dist/env.docker
vendored
Normal file
23
conf/dist/env.docker
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
#
|
||||
# Create a .env file in the root folder and use the following
|
||||
# variables to configure your docker-compose
|
||||
#
|
||||
|
||||
DOCKER_AC_ENV_FILE=
|
||||
|
||||
DOCKER_DATA=./env/docker/data
|
||||
DOCKER_ETC=./env/docker/etc
|
||||
DOCKER_LOGS=./env/docker/logs
|
||||
DOCKER_CONF=./conf
|
||||
|
||||
DOCKER_WORLD_EXTERNAL_PORT=8085
|
||||
DOCKER_AUTH_EXTERNAL_PORT=3724
|
||||
DOCKER_DB_EXTERNAL_PORT=3306
|
||||
DOCKER_DB_ROOT_PASSWORD=password
|
||||
DOCKER_SOAP_EXTERNAL_PORT=7878
|
||||
|
||||
# To maximize the performance on MAC you can change the DOCKER_EXTENDS_BIND variable
|
||||
# to "abstract-no-bind", however it won't bind the host directory inside the container.
|
||||
# It means that you need to work directly within the container using a tool
|
||||
# like the VScode dev-container of the remote-extension suite
|
||||
DOCKER_EXTENDS_BIND=abstract-bind
|
||||
143
data/sql/updates/db_world/2021_04_16_00.sql
Normal file
143
data/sql/updates/db_world/2021_04_16_00.sql
Normal file
@@ -0,0 +1,143 @@
|
||||
-- DB update 2021_04_14_02 -> 2021_04_16_00
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_14_02';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_14_02 2021_04_16_00 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1605009324701425500'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1605009324701425500');
|
||||
|
||||
SET @NPC_JONATHAN := 28136;
|
||||
SET @NPC_LAMOOF := 28142;
|
||||
SET @NPC_JOSEPHINE := 28148;
|
||||
|
||||
UPDATE `creature_template` SET `gossip_menu_id`=9660 WHERE `entry`=@NPC_JONATHAN;
|
||||
UPDATE `creature_template` SET `gossip_menu_id`=9659 WHERE `entry`=@NPC_LAMOOF;
|
||||
UPDATE `creature_template` SET `gossip_menu_id`=9658 WHERE `entry`=@NPC_JOSEPHINE;
|
||||
UPDATE `creature_template` SET `faction`=2070, `npcflag`=1, `unit_flags`=32768, `AIName`='SmartAI' WHERE `entry` IN (@NPC_JONATHAN,@NPC_LAMOOF,@NPC_JOSEPHINE);
|
||||
DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid` IN (@NPC_JONATHAN,@NPC_LAMOOF,@NPC_JOSEPHINE);
|
||||
DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid` IN (@NPC_JONATHAN*100,@NPC_LAMOOF*100,@NPC_JOSEPHINE*100);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
|
||||
(@NPC_JONATHAN,0,0,1,54,0,100,0,0,0,0,0,11,50665,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - Just summoned - Spellcast Bleeding Out'),
|
||||
(@NPC_JONATHAN,0,1,2,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Crusader Jonathan - Just summoned - Store targetlist'),
|
||||
(@NPC_JONATHAN,0,2,3,61,0,100,0,0,0,0,0,29,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Crusader Jonathan - Just summoned - Follow envoker'),
|
||||
(@NPC_JONATHAN,0,3,4,61,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - Just summoned - Set phase 1'),
|
||||
(@NPC_JONATHAN,0,4,0,61,0,100,0,0,0,0,0,91,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - Just summoned - Reset unit_field_bytes1'),
|
||||
(@NPC_JONATHAN,0,5,0,23,1,100,1,50665,0,0,0,80,@NPC_JONATHAN*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - Aura Bleeding Out missing (phase 1) - Call timed actionlist'),
|
||||
(@NPC_JONATHAN,0,6,7,40,0,100,1,5,0,0,0,90,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - On WP 5 reached - Set unit_field_bytes1'),
|
||||
(@NPC_JONATHAN,0,7,0,61,0,100,0,0,0,0,0,41,20000,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - On WP 5 reached - Despawn after 20 seconds'),
|
||||
(@NPC_JONATHAN,0,8,9,8,1,100,0,50669,0,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - On spellhit Quest Credit - Set phase 2'),
|
||||
(@NPC_JONATHAN,0,9,10,61,0,100,0,0,0,0,0,11,50671,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - On spellhit Quest Credit - Cast Kill Credit Jonathan 01'),
|
||||
(@NPC_JONATHAN,0,10,11,61,0,100,0,0,0,0,0,11,50709,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - On spellhit Quest Credit - Cast Strip Aura Jonathan 01'),
|
||||
(@NPC_JONATHAN,0,11,12,61,0,100,0,0,0,0,0,86,50680,0,12,1,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - On spellhit Quest Credit - Crosscast Kill Credit Jonathan'),
|
||||
(@NPC_JONATHAN,0,12,13,61,0,100,0,0,0,0,0,86,50710,0,12,1,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - On spellhit Quest Credit - Crosscast Strip Aura Jonanthan'),
|
||||
(@NPC_JONATHAN,0,13,14,61,0,100,0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 'Crusader Jonathan - On spellhit Quest Credit - Stop follow'),
|
||||
(@NPC_JONATHAN,0,14,15,61,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - On spellhit Quest Credit - Say text'),
|
||||
(@NPC_JONATHAN,0,15,16,61,0,100,0,0,0,0,0,53,0,@NPC_JONATHAN,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - On spellhit Quest Credit - Start WP movement'),
|
||||
(@NPC_JONATHAN,0,16,0,61,0,100,0,0,0,0,0,83,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan - On spellhit Quest Credit - Remove npcflag'),
|
||||
(@NPC_JONATHAN*100,9,0,0,0,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan script - Say text'),
|
||||
(@NPC_JONATHAN*100,9,1,0,0,0,100,0,0,0,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan script - Set phase 2'),
|
||||
(@NPC_JONATHAN*100,9,2,0,0,0,100,0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 'Crusader Jonathan script - Stop follow'),
|
||||
(@NPC_JONATHAN*100,9,3,0,0,0,100,0,2000,2000,0,0,37,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Jonathan script - Die'),
|
||||
|
||||
(@NPC_LAMOOF,0,0,1,54,0,100,0,0,0,0,0,11,50681,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - Just summoned - Spellcast Bleeding Out'),
|
||||
(@NPC_LAMOOF,0,1,2,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Crusader Lamoof - Just summoned - Store targetlist'),
|
||||
(@NPC_LAMOOF,0,2,3,61,0,100,0,0,0,0,0,29,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Crusader Lamoof - Just summoned - Follow envoker'),
|
||||
(@NPC_LAMOOF,0,3,4,61,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - Just summoned - Set phase 1'),
|
||||
(@NPC_LAMOOF,0,4,0,61,0,100,0,0,0,0,0,91,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - Just summoned - Reset unit_field_bytes1'),
|
||||
(@NPC_LAMOOF,0,5,0,23,1,100,1,50681,0,0,0,80,@NPC_LAMOOF*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - Aura Bleeding Out missing (phase 1) - Call timed actionlist'),
|
||||
(@NPC_LAMOOF,0,6,7,40,0,100,1,5,0,0,0,90,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - On WP 5 reached - Set unit_field_bytes1'),
|
||||
(@NPC_LAMOOF,0,7,0,61,0,100,0,0,0,0,0,41,20000,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - On WP 5 reached - Despawn after 20 seconds'),
|
||||
(@NPC_LAMOOF,0,8,9,8,1,100,0,50669,0,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - On spellhit Quest Credit - Set phase 2'),
|
||||
(@NPC_LAMOOF,0,9,10,61,0,100,0,0,0,0,0,11,50683,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - On spellhit Quest Credit - Cast Kill Credit Lamoof 01'),
|
||||
(@NPC_LAMOOF,0,10,11,61,0,100,0,0,0,0,0,11,50723,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - On spellhit Quest Credit - Cast Strip Aura Lamoof 01'),
|
||||
(@NPC_LAMOOF,0,11,12,61,0,100,0,0,0,0,0,86,50684,0,12,1,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - On spellhit Quest Credit - Crosscast Kill Credit Lamoof'),
|
||||
(@NPC_LAMOOF,0,12,13,61,0,100,0,0,0,0,0,86,50722,0,12,1,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - On spellhit Quest Credit - Crosscast Strip Aura Lamoof'),
|
||||
(@NPC_LAMOOF,0,13,14,61,0,100,0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 'Crusader Lamoof - On spellhit Quest Credit - Stop follow'),
|
||||
(@NPC_LAMOOF,0,14,15,61,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - On spellhit Quest Credit - Say text'),
|
||||
(@NPC_LAMOOF,0,15,16,61,0,100,0,0,0,0,0,53,0,@NPC_LAMOOF,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - On spellhit Quest Credit - Start WP movement'),
|
||||
(@NPC_LAMOOF,0,16,0,61,0,100,0,0,0,0,0,83,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof - On spellhit Quest Credit - Remove npcflag'),
|
||||
(@NPC_LAMOOF*100,9,0,0,0,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof script - Say text'),
|
||||
(@NPC_LAMOOF*100,9,1,0,0,0,100,0,0,0,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof script - Set phase 2'),
|
||||
(@NPC_LAMOOF*100,9,2,0,0,0,100,0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 'Crusader Lamoof script - Stop follow'),
|
||||
(@NPC_LAMOOF*100,9,3,0,0,0,100,0,2000,2000,0,0,37,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Lamoof script - Die'),
|
||||
|
||||
(@NPC_JOSEPHINE,0,0,1,54,0,100,0,0,0,0,0,11,50695,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - Just summoned - Spellcast Bleeding Out'),
|
||||
(@NPC_JOSEPHINE,0,1,2,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Crusader Josephine - Just summoned - Store targetlist'),
|
||||
(@NPC_JOSEPHINE,0,2,3,61,0,100,0,0,0,0,0,29,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Crusader Josephine - Just summoned - Follow envoker'),
|
||||
(@NPC_JOSEPHINE,0,3,4,61,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - Just summoned - Set phase 1'),
|
||||
(@NPC_JOSEPHINE,0,4,0,61,0,100,0,0,0,0,0,91,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - Just summoned - Reset unit_field_bytes1'),
|
||||
(@NPC_JOSEPHINE,0,5,0,23,1,100,1,50695,0,0,0,80,@NPC_JOSEPHINE*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - Aura Bleeding Out missing (phase 1) - Call timed actionlist'),
|
||||
(@NPC_JOSEPHINE,0,6,7,40,0,100,1,4,0,0,0,90,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - On WP 4 reached - Set unit_field_bytes1'),
|
||||
(@NPC_JOSEPHINE,0,7,0,61,0,100,0,0,0,0,0,41,20000,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - On WP 4 reached - Despawn after 20 seconds'),
|
||||
(@NPC_JOSEPHINE,0,8,9,8,1,100,0,50669,0,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - On spellhit Quest Credit - Set phase 2'),
|
||||
(@NPC_JOSEPHINE,0,9,10,61,0,100,0,0,0,0,0,11,50698,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - On spellhit Quest Credit - Cast Kill Credit Jospehine 01'),
|
||||
(@NPC_JOSEPHINE,0,10,11,61,0,100,0,0,0,0,0,11,50711,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - On spellhit Quest Credit - Cast Strip Aura Josephine 01'),
|
||||
(@NPC_JOSEPHINE,0,11,12,61,0,100,0,0,0,0,0,86,50699,0,12,1,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - On spellhit Quest Credit - Crosscast Kill Credit Josephine'),
|
||||
(@NPC_JOSEPHINE,0,12,13,61,0,100,0,0,0,0,0,86,50712,0,12,1,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - On spellhit Quest Credit - Crosscast Strip Aura Josephine'),
|
||||
(@NPC_JOSEPHINE,0,13,14,61,0,100,0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 'Crusader Josephine - On spellhit Quest Credit - Stop follow'),
|
||||
(@NPC_JOSEPHINE,0,14,15,61,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - On spellhit Quest Credit - Say text'),
|
||||
(@NPC_JOSEPHINE,0,15,16,61,0,100,0,0,0,0,0,53,0,@NPC_JOSEPHINE,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - On spellhit Quest Credit - Start WP movement'),
|
||||
(@NPC_JOSEPHINE,0,16,0,61,0,100,0,0,0,0,0,83,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine - On spellhit Quest Credit - Remove npcflag'),
|
||||
(@NPC_JOSEPHINE*100,9,0,0,0,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine script - Say text'),
|
||||
(@NPC_JOSEPHINE*100,9,1,0,0,0,100,0,0,0,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine script - Set phase 2'),
|
||||
(@NPC_JOSEPHINE*100,9,2,0,0,0,100,0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 'Crusader Josephine script - Stop follow'),
|
||||
(@NPC_JOSEPHINE*100,9,3,0,0,0,100,0,2000,2000,0,0,37,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Crusader Josephine script - Die');
|
||||
|
||||
DELETE FROM `waypoints` WHERE `entry` IN (@NPC_JONATHAN,@NPC_LAMOOF,@NPC_JOSEPHINE);
|
||||
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`) VALUES
|
||||
(@NPC_JONATHAN,1,5257.454,-3500.14,291.6933),
|
||||
(@NPC_JONATHAN,2,5253.089,-3516.885,291.6786),
|
||||
(@NPC_JONATHAN,3,5255.452,-3523.673,291.6932),
|
||||
(@NPC_JONATHAN,4,5262.733,-3527.41,291.6934),
|
||||
(@NPC_JONATHAN,5,5261.445,-3528.885,291.6929),
|
||||
|
||||
(@NPC_LAMOOF,1,5257.454,-3500.14,291.6933),
|
||||
(@NPC_LAMOOF,2,5253.089,-3516.885,291.6786),
|
||||
(@NPC_LAMOOF,3,5255.452,-3523.673,291.6932),
|
||||
(@NPC_LAMOOF,4,5260.741,-3525.38,291.69343),
|
||||
(@NPC_LAMOOF,5,5259.029,-3527.101,291.4913),
|
||||
|
||||
(@NPC_JOSEPHINE,1,5257.454,-3500.14,291.6933),
|
||||
(@NPC_JOSEPHINE,2,5253.089,-3516.885,291.6786),
|
||||
(@NPC_JOSEPHINE,3,5257.784,-3521.994,291.6931),
|
||||
(@NPC_JOSEPHINE,4,5256.293,-3523.494,291.6933);
|
||||
|
||||
DELETE FROM `creature_text` WHERE `creatureid` IN (@NPC_JONATHAN,@NPC_LAMOOF,@NPC_JOSEPHINE) AND `groupid`=1;
|
||||
INSERT INTO `creature_text` (`creatureid`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
|
||||
(@NPC_JONATHAN,1,0,'<sigh>... This is the end of me.',12,0,100,1,0,0,''),
|
||||
(@NPC_LAMOOF,1,0,'<sigh>... This is the end of me.',12,0,100,1,0,0,''),
|
||||
(@NPC_JOSEPHINE,1,0,'Ohhh, I... cannot go on....',12,0,100,1,0,0,'');
|
||||
|
||||
DELETE FROM `gossip_menu` WHERE `menuid` IN (9658,9659,9660);
|
||||
INSERT INTO `gossip_menu` (`menuid`,`textid`) VALUES
|
||||
(9658,13081),
|
||||
(9659,13083),
|
||||
(9660,13082);
|
||||
|
||||
DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (50709,50710,50711,50712,50722,50723);
|
||||
INSERT INTO `spell_linked_spell` (`spell_trigger`,`spell_effect`,`type`,`comment`) VALUES
|
||||
(50709,-50665,1,'Strip Aura Jonathan 01 remove aura Bleeding Out'),
|
||||
(50710,-50666,1,'Strip Aura Jonathan remove aura Jonathan Dying from player'),
|
||||
(50711,-50695,1,'Strip Aura Josephine 01 remove aura Bleeding Out'),
|
||||
(50712,-50693,1,'Strip Aura Josephine remove aura Josephine Dying from player'),
|
||||
(50722,-50679,1,'Strip Aura Lamoof remove aura Lamoof Dying from player'),
|
||||
(50723,-50681,1,'Strip Aura Lamoof 01 remove aura Bleeding Out');
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
30
data/sql/updates/db_world/2021_04_17_00.sql
Normal file
30
data/sql/updates/db_world/2021_04_17_00.sql
Normal file
@@ -0,0 +1,30 @@
|
||||
-- DB update 2021_04_16_00 -> 2021_04_17_00
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_16_00';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_16_00 2021_04_17_00 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618137493700140600'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618137493700140600');
|
||||
|
||||
-- Mulgore copper veins
|
||||
UPDATE `gameobject` SET `position_x` = -3050.334229, `position_y` = 316.995148, `position_z` = 151.141052 WHERE `guid` = 4696;
|
||||
UPDATE `gameobject` SET `position_x` = -3002.635986, `position_y` = 280.656830, `position_z` = 110.877350 WHERE `guid` = 20650;
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
31
data/sql/updates/db_world/2021_04_18_00.sql
Normal file
31
data/sql/updates/db_world/2021_04_18_00.sql
Normal file
@@ -0,0 +1,31 @@
|
||||
-- DB update 2021_04_17_00 -> 2021_04_18_00
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_17_00';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_17_00 2021_04_18_00 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617964644615239534'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617964644615239534');
|
||||
|
||||
SET @ENTRY := 11598;
|
||||
DELETE FROM `creature_onkill_reputation` WHERE (`creature_id` = @ENTRY);
|
||||
INSERT INTO `creature_onkill_reputation` (`creature_id`, `RewOnKillRepFaction1`, `RewOnKillRepFaction2`, `MaxStanding1`, `IsTeamAward1`, `RewOnKillRepValue1`, `MaxStanding2`, `IsTeamAward2`, `RewOnKillRepValue2`, `TeamDependent`) VALUES
|
||||
(@ENTRY, 529, 0, 6, 0, 0, 0, 0, 0, 0);
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
45
data/sql/updates/db_world/2021_04_18_01.sql
Normal file
45
data/sql/updates/db_world/2021_04_18_01.sql
Normal file
@@ -0,0 +1,45 @@
|
||||
-- DB update 2021_04_18_00 -> 2021_04_18_01
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_18_00';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_18_00 2021_04_18_01 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618698984447935300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618698984447935300');
|
||||
|
||||
-- Ground & water
|
||||
UPDATE `creature_template` SET `InhabitType`=3 WHERE entry IN (
|
||||
3632, -- Deviate Creeper
|
||||
3633, -- Deviate Slayer
|
||||
3634, -- Deviate Stalker
|
||||
3636, -- Deviate Ravager
|
||||
3638); -- Devouring Ectoplasm
|
||||
|
||||
-- Ground & air
|
||||
UPDATE `creature_template` SET `InhabitType`=5 WHERE entry IN (
|
||||
3630, -- Deviate Coiler
|
||||
3631, -- Deviate Stinglash
|
||||
20797); -- Deviate Coiler Hatchling
|
||||
|
||||
-- Improve SAI for Deviate Stinglash
|
||||
-- https://wowgaming.altervista.org/aowow/?npc=3631#abilities
|
||||
UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=7000, `event_param3`=12000, `event_param4`=18000, `comment`='Deviate Stinglash - In Combat - Cast Lash' WHERE `entryorguid`=3631 AND `source_type`=0 AND `id`=0 AND `link`=0;
|
||||
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
168
data/sql/updates/db_world/2021_04_18_02.sql
Normal file
168
data/sql/updates/db_world/2021_04_18_02.sql
Normal file
@@ -0,0 +1,168 @@
|
||||
-- DB update 2021_04_18_01 -> 2021_04_18_02
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_18_01';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_18_01 2021_04_18_02 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1614130170345582600'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1614130170345582600');
|
||||
|
||||
DELETE FROM `creature` WHERE `id` IN (2603, 2604, 2605, 2606, 14231, 14233, 14235, 14236, 14237, 14429);
|
||||
DELETE FROM `creature_addon` WHERE `guid` IN (301300, 301292, 300777);
|
||||
DELETE FROM `waypoint_data` WHERE `id` IN (3013000, 3012920, 3007770);
|
||||
DELETE FROM `pool_creature` WHERE `pool_entry` IN (2605, 2606, 42939, 43157);
|
||||
DELETE FROM `pool_template` WHERE `entry` IN (2605, 2606, 42939, 43157);
|
||||
INSERT INTO `pool_template` (`entry`, `max_limit`, `description`) VALUES
|
||||
(2605, 1, 'zalas witherbark'),
|
||||
(2606, 1, 'nimar the slayer'),
|
||||
(42939, 1, 'Drogoth the Roamer'),
|
||||
(43157, 1, 'Ripscale');
|
||||
|
||||
-- arathi highlands
|
||||
-- Kovork,
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES (300753, 2603, 0, -1192.92, -2079.91, 44.328, 1.92247, 27000, 0, 0);
|
||||
-- molok the crusher
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES (300754, 2604, 0, -2044.39, -2803.18, 72.7163, 5.29147, 54000, 5, 1);
|
||||
-- zalas witherbark
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES
|
||||
(300757, 2605, 0, -2044.94, -3359.01, 60.6886, 0.443181, 252000, 5, 1),
|
||||
(301300, 2605, 0, -2056.85, -3271.49, 49.4426, 3.13338, 252000, 0, 2),
|
||||
(301301, 2605, 0, -2021.36, -3309.32, 54.3502, 5.92935, 252000, 0, 0),
|
||||
(301302, 2605, 0, -2075.02, -3289.68, 67.3143, 3.72238, 252000, 5, 1);
|
||||
INSERT INTO `pool_creature` (`guid`, `pool_entry`, `chance`, `description`) VALUES
|
||||
(301300, 2605, 0, 'Zalas Witherbark (Youfie)'),
|
||||
(301301, 2605, 0, 'Zalas Witherbark (Youfie)'),
|
||||
(301302, 2605, 0, 'Zalas Witherbark (Youfie)'),
|
||||
(300757, 2605, 0, 'Zalas Witherbark (Youfie)');
|
||||
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `isLarge`, `auras`) VALUES (301300, 3013000, 0, 0, 1, 0, 0, '');
|
||||
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`) VALUES
|
||||
(3013000, 1, -2056.85, -3271.49, 49.4426, 3.13338, 0),
|
||||
(3013000, 2, -2061.19, -3271.54, 50.2861, 3.15301, 500000),
|
||||
(3013000, 3, -2083.62, -3276.01, 51.4356, 3.35722, 0),
|
||||
(3013000, 4, -2098.75, -3286.29, 51.7022, 4.22115, 10000),
|
||||
(3013000, 5, -2106.52, -3322.71, 56.8964, 1.3191, 0),
|
||||
(3013000, 6, -2115.63, -3344.91, 58.7511, 4.33895, 10000),
|
||||
(3013000, 7, -2109.39, -3369.78, 61.0127, 5.03795, 0),
|
||||
(3013000, 8, -2091.81, -3381.89, 59.4361, 5.79586, 5000),
|
||||
(3013000, 9, -2095.79, -3366.71, 59.3, 2.34403, 0),
|
||||
(3013000, 10, -2093.88, -3364.27, 59.1176, 0.808577, 500000),
|
||||
(3013000, 11, -2099.47, -3360.35, 59.2716, 2.55215, 0),
|
||||
(3013000, 12, -2102.05, -3333.13, 58.104, 1.66465, 10000),
|
||||
(3013000, 13, -2095.42, -3295.27, 52.4655, 1.09524, 0),
|
||||
(3013000, 14, -2078.4, -3272.51, 51.7336, 0.965648, 0),
|
||||
(3013000, 15, -2055.61, -3271.22, 49.3672, 3.19225, 0);
|
||||
-- add two missing spells to Zalas and correct his timers based on vmangos
|
||||
SET @ENTRY := 2605;
|
||||
DELETE FROM smart_scripts WHERE entryOrGuid = 2605 AND source_type = 0;
|
||||
UPDATE creature_template SET AIName="SmartAI" WHERE entry= @ENTRY;
|
||||
INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES
|
||||
(@ENTRY, 0, 0, 0, 0, 0, 80, 0, 5000, 5000, 15000, 25000, 11, 512, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Every 15 - 25 seconds (5 - 5s initially) - Self: Cast spell Chains of Ice (512) on Victim"),
|
||||
(@ENTRY, 0, 1, 0, 0, 0, 80, 0, 3000, 3000, 15000, 15000, 11, 851, 1, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, "Every 15 seconds (3s initially) - Self: Cast spell Polymorph: Sheep (851) on Random hostile (not top) (flags: interrupt previous)"),
|
||||
(@ENTRY, 0, 2, 0, 60, 0, 100, 0, 1000, 3000, 5000, 15000, 11, 4974, 32, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, "Every 5 - 15 seconds (1 - 3s initially) - Self: Cast spell Wither Touch (4974) on Random hostile (flags: aura not present)"),
|
||||
(@ENTRY, 0, 3, 0, 60, 0, 100, 0, 5000, 8000, 8000, 15000, 11, 9081, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, "Every 8 - 15 seconds (5 - 8s initially) - Self: Cast spell Shadow Bolt Volley (9081) on Random hostile");
|
||||
|
||||
|
||||
-- nimar the slayer
|
||||
-- TODO : he has a script or emote where he eats meat
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES
|
||||
(300755, 2606, 0, -1902.16, -3193.09, 56.5808, 5.63212, 27000, 0, 0),
|
||||
(301290, 2606, 0, -1810.14, -3417.2, 45.4232, 0.985671, 27000, 0, 0),
|
||||
(301291, 2606, 0, -1701.21, -3509.16, 60.2556, 6.26748, 27000, 5, 1),
|
||||
(301292, 2606, 0, -1672.56, -3246.93, 25.7297, 4.51998, 27000, 0, 2);
|
||||
INSERT INTO `pool_creature` (`guid`, `pool_entry`, `chance`, `description`) VALUES
|
||||
(300755, 2606, 0, 'Nimar the Slayer (Youfie)'),
|
||||
(301290, 2606, 0, 'Nimar the Slayer (Youfie)'),
|
||||
(301291, 2606, 0, 'Nimar the Slayer (Youfie)'),
|
||||
(301292, 2606, 0, 'Nimar the Slayer (Youfie)');
|
||||
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `isLarge`, `auras`) VALUES (301292, 3012920, 0, 0, 1, 0, 0, '');
|
||||
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`) VALUES
|
||||
(3012920, 1, -1672.56, -3246.93, 25.7297, 4.51998, 0),
|
||||
(3012920, 2, -1673.33, -3252.4, 25.7306, 4.57495, 120000),
|
||||
(3012920, 3, -1679.78, -3257.49, 25.5371, 3.8406, 0),
|
||||
(3012920, 4, -1678.29, -3264.48, 24.3447, 5.92976, 0),
|
||||
(3012920, 5, -1650.41, -3263.6, 26.8072, 6.20386, 0),
|
||||
(3012920, 6, -1642.67, -3252.82, 31.5431, 1.3933, 0),
|
||||
(3012920, 7, -1645.48, -3241.07, 33.4071, 2.38133, 0),
|
||||
(3012920, 8, -1654.84, -3232.66, 33.5165, 2.42452, 0),
|
||||
(3012920, 9, -1670.32, -3228.45, 34.6906, 2.91933, 0),
|
||||
(3012920, 10, -1693.22, -3231.79, 29.2882, 6.01379, 0),
|
||||
(3012920, 11, -1693.78, -3246.29, 26.4924, 4.78071, 0),
|
||||
(3012920, 12, -1672.47, -3263.53, 25.0571, 5.57397, 15000),
|
||||
(3012920, 13, -1668.16, -3255.58, 25.73, 2.7269, 0),
|
||||
(3012920, 14, -1673.27, -3253.71, 25.7309, 1.5056, 0);
|
||||
-- add cleave and berserker stance
|
||||
SET @ENTRY := 2606;
|
||||
DELETE FROM smart_scripts WHERE entryOrGuid = 2606 AND source_type = 0;
|
||||
UPDATE creature_template SET AIName="SmartAI" WHERE entry= @ENTRY;
|
||||
INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES
|
||||
(@ENTRY, 0, 0, 0, 60, 0, 100, 0, 1000, 1000, 240000, 240000, 11, 2458, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Every 240 seconds (1s initially) - Self: Cast spell Berserker Stance (2458) on Self"),
|
||||
(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 7800, 10000, 11100, 24200, 11, 17207, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Every 11.1 - 24.2 seconds (7.8 - 10s initially) - Self: Cast spell Whirlwind (17207) on Victim"),
|
||||
(@ENTRY, 0, 2, 0, 0, 0, 100, 0, 7000, 13000, 7000, 23000, 11, 15496, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Every 7 - 23 seconds (7 - 13s initially) - Self: Cast spell Cleave (15496) on Victim"),
|
||||
(@ENTRY, 0, 3, 0, 12, 0, 100, 1, 0, 30, 0, 0, 11, 7160, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When victim health between 0 - 30 (check every 0 - 0) - Self: Cast spell Execute (7160) on Victim (flags: interrupt previous)"),
|
||||
(@ENTRY, 0, 4, 0, 2, 0, 100, 1, 0, 15, 0, 0, 25, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "When health between 0 and 15 (check every 0 - 0 ms) - Self: Flee for assist");
|
||||
|
||||
-- dustwallow marsh
|
||||
-- drogoth the roamer
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES
|
||||
(300769, 14231, 1, -2608.36, -3011.72, 29.4168, 0.0195422, 27000, 10, 1),
|
||||
(300770, 14231, 1, -2799.72, -3129.45, 28.7032, 4.41743, 27000, 5, 1);
|
||||
INSERT INTO `pool_creature` (`guid`, `pool_entry`, `chance`, `description`) VALUES (300769, 42939, 0, 'Dustwallow Marsh: Drogoth the Roamer');
|
||||
INSERT INTO `pool_creature` (`guid`, `pool_entry`, `chance`, `description`) VALUES (300770, 42939, 0, 'Dustwallow Marsh: Drogoth the Roamer');
|
||||
-- ripscale
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES
|
||||
(300775, 14233, 1, -3969.57, -3182.07, 28.8974, 3.08685, 38000, 10, 1),
|
||||
(300776, 14233, 1, -4040.93, -3557.63, 28.5225, 5.65789, 38000, 10, 1);
|
||||
DELETE FROM `pool_creature` WHERE `guid` IN (300775,300776);
|
||||
INSERT INTO `pool_creature` (`guid`, `pool_entry`, `chance`, `description`) VALUES
|
||||
(300775, 43157, 0, 'Dustwallow Marsh: Ripscale'),
|
||||
(300776, 43157, 0, 'Dustwallow Marsh: Ripscale');
|
||||
-- The rot
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES (300773, 14235, 1, -4042.09, -3753.6, 43.2492, 6.26622, 108000, 5, 1);
|
||||
-- lord angler
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES (300771, 14236, 1, -4250.64, -3849.09, -6.71606, 5.12114, 108000, 5, 1);
|
||||
-- oozeworm
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES (300772, 14237, 1, -4207.99, -2911.04, 44.9497, 2.051, 180000, 5, 1);
|
||||
|
||||
-- teldrassil
|
||||
-- grimmaw
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES (300777, 14429, 1, 9132.61, 1651.7, 1322.14, 4.25837, 9000, 0, 2);
|
||||
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `isLarge`, `auras`) VALUES (300777, 3007770, 0, 0, 1, 0, 0, '');
|
||||
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`) VALUES
|
||||
(3007770, 1, 9132.81, 1664.76, 1320.77, 4.74146, 0),
|
||||
(3007770, 2, 9141.27, 1690.01, 1320.05, 1.23858, 0),
|
||||
(3007770, 3, 9141.58, 1727.6, 1319.16, 1.73339, 0),
|
||||
(3007770, 4, 9137.61, 1753.82, 1319.01, 1.808, 0),
|
||||
(3007770, 5, 9116, 1771.33, 1321.66, 2.04362, 0),
|
||||
(3007770, 6, 9109.14, 1808.41, 1325.54, 1.66663, 0),
|
||||
(3007770, 7, 9111.24, 1823.84, 1328.53, 4.67864, 0),
|
||||
(3007770, 8, 9108.77, 1809.06, 1325.75, 4.86517, 0),
|
||||
(3007770, 9, 9115.99, 1771.94, 1321.74, 5.14595, 0),
|
||||
(3007770, 10, 9136.82, 1754.07, 1318.87, 4.75914, 0),
|
||||
(3007770, 11, 9141.64, 1726.7, 1319.16, 4.60991, 0),
|
||||
(3007770, 12, 9141.35, 1689.69, 1320.03, 4.60991, 0),
|
||||
(3007770, 13, 9131.44, 1665.16, 1320.95, 4.71202, 0),
|
||||
(3007770, 14, 9132.59, 1646.61, 1322.61, 4.6806, 0);
|
||||
-- add missing spell vicious bite
|
||||
SET @ENTRY := 14429;
|
||||
DELETE FROM smart_scripts WHERE entryOrGuid = 14429 AND source_type = 0;
|
||||
UPDATE creature_template SET AIName="SmartAI" WHERE entry= @ENTRY;
|
||||
INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES
|
||||
(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 4000, 4000, 6000, 8000, 11, 19319, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Every 6 - 8 seconds (4 - 4s initially) - Self: Cast spell Vicious Bite (19319) on Victim");
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
42
data/sql/updates/db_world/2021_04_18_03.sql
Normal file
42
data/sql/updates/db_world/2021_04_18_03.sql
Normal file
@@ -0,0 +1,42 @@
|
||||
-- DB update 2021_04_18_02 -> 2021_04_18_03
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_18_02';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_18_02 2021_04_18_03 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618147391543148390'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618147391543148390');
|
||||
|
||||
DELETE FROM `creature` WHERE (`id` = 6909) AND (`guid` IN (2499));
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
|
||||
(2499, 6909, 1, 0, 0, 1, 1, 0, 0, 11077.9, 1902.37, 1342.63, 2.18262, 516, 0, 0, 247, 0, 2, 0, 0, 0, '', 0);
|
||||
|
||||
DELETE FROM `creature_addon` WHERE (`guid` IN (2499));
|
||||
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `isLarge`, `auras`) VALUES
|
||||
(2499, 24990, 0, 0, 4097, 0, 0, NULL);
|
||||
|
||||
DELETE FROM `waypoint_data` WHERE `id` = 24990;
|
||||
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES
|
||||
(24990, 1, 11052.318359, 1921.549927, 1332.641724, 2.536241, 0, 0, 0, 100, 0),
|
||||
(24990, 2, 11021.328125, 1909.217896, 1327.031128, 3.541551, 12000, 0, 0, 100, 0),
|
||||
(24990, 3, 11027.135742, 1911.013672, 1327.976685, 1.816816, 5000, 0, 0, 100, 0),
|
||||
(24990, 4, 11052.318359, 1921.549927, 1332.641724, 2.536241, 0, 0, 0, 100, 0),
|
||||
(24990, 5, 11077.9, 1902.37, 1342.63, 2.18262, 3000, 0, 0, 100, 0);
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
31
data/sql/updates/db_world/2021_04_19_00.sql
Normal file
31
data/sql/updates/db_world/2021_04_19_00.sql
Normal file
@@ -0,0 +1,31 @@
|
||||
-- DB update 2021_04_18_03 -> 2021_04_19_00
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_18_03';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_18_03 2021_04_19_00 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618166495075484153'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618166495075484153');
|
||||
|
||||
UPDATE `creature_equip_template` SET `itemID3`=5870 WHERE `CreatureID` IN (701);
|
||||
UPDATE `smart_scripts` SET `action_param2`=`action_param2`|2 WHERE `source_type`=0 AND `entryorguid`=7856 AND `id`=0;
|
||||
UPDATE `creature_equip_template` SET `itemID3`=5856 WHERE `CreatureID` IN (1162);
|
||||
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
37
data/sql/updates/db_world/2021_04_19_01.sql
Normal file
37
data/sql/updates/db_world/2021_04_19_01.sql
Normal file
@@ -0,0 +1,37 @@
|
||||
-- DB update 2021_04_19_00 -> 2021_04_19_01
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_19_00';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_19_00 2021_04_19_01 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618169172923159272'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618169172923159272');
|
||||
|
||||
DELETE FROM `gameobject` WHERE (`id` = 2040) AND (`guid` IN (32880)); -- mithril vein duplicate
|
||||
DELETE FROM `gameobject` WHERE (`id` = 3726) AND (`guid` IN (13596)); -- earthroot duplicate
|
||||
DELETE FROM `gameobject` WHERE (`id` = 175404) AND (`guid` IN (17506, 17507)); -- rich thorium veins duplicate
|
||||
|
||||
-- fix spawn small thorium vein
|
||||
DELETE FROM `gameobject` WHERE (`id` = 324) AND (`guid` IN (317));
|
||||
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `ScriptName`, `VerifiedBuild`) VALUES
|
||||
(317, 324, 1, 0, 0, 1, 1, -7213.251465, -2300.464355, -262.501099, 3.603, 0, 0, -0.973506, 0.228663, 2700, 100, 1, '', 0);
|
||||
|
||||
DELETE FROM `gameobject` WHERE (`id` = 324) AND (`guid` IN (374)); -- small thorium vein cluster (removed 1 on 3)
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
30
data/sql/updates/db_world/2021_04_19_02.sql
Normal file
30
data/sql/updates/db_world/2021_04_19_02.sql
Normal file
@@ -0,0 +1,30 @@
|
||||
-- DB update 2021_04_19_01 -> 2021_04_19_02
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_19_01';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_19_01 2021_04_19_02 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618169871194421039'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618169871194421039');
|
||||
|
||||
DELETE FROM `creature` WHERE (`id` = 9164) AND (`guid` IN (24506));
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
|
||||
(24506, 9164, 1, 0, 0, 1, 1, 8512, 0, -7306.250977, -375.499695, -268.558746, 0.703892, 300, 5, 0, 3293, 0, 1, 0, 0, 0, '', 0);
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
31
data/sql/updates/db_world/2021_04_19_03.sql
Normal file
31
data/sql/updates/db_world/2021_04_19_03.sql
Normal file
@@ -0,0 +1,31 @@
|
||||
-- DB update 2021_04_19_02 -> 2021_04_19_03
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_19_02';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_19_02 2021_04_19_03 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618170334855143471'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618170334855143471');
|
||||
|
||||
DELETE FROM `creature` WHERE (`id` = 6491) AND (`guid` IN (950));
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
|
||||
(950, 6491, 0, 0, 0, 1, 1, 0, 0, 2053.1, -5019.08, 75.2506, 0.0315629, 300, 0, 0, 4121, 0, 0, 0, 0, 0, '', 0);
|
||||
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
35
data/sql/updates/db_world/2021_04_19_04.sql
Normal file
35
data/sql/updates/db_world/2021_04_19_04.sql
Normal file
@@ -0,0 +1,35 @@
|
||||
-- DB update 2021_04_19_03 -> 2021_04_19_04
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_19_03';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_19_03 2021_04_19_04 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618177960313931100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618177960313931100');
|
||||
|
||||
-- Links a gossip text to NPC Terenthis in Auberdine, Darkshore
|
||||
-- https://github.com/azerothcore/azerothcore-wotlk/issues/5227
|
||||
-- https://www.youtube.com/watch?v=ZwFgc6P3ERc
|
||||
DELETE FROM `gossip_menu` WHERE (`MenuID` = 6456) AND (`TextID` IN (3334));
|
||||
INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES (6456, 3334);
|
||||
UPDATE `creature_template` SET `gossip_menu_id` = 6456 WHERE `entry` = 3693; -- Add created gossip menu to NPC
|
||||
UPDATE `npc_text` SET `BroadcastTextID0` = '0' WHERE `ID` = 3334; -- This was set to a text with typos, not sure why
|
||||
UPDATE `creature_template` SET `npcflag` = `npcflag` | 1 WHERE `entry` = 3693; -- Make sure the NPC has the gossip flag
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
30
data/sql/updates/db_world/2021_04_19_05.sql
Normal file
30
data/sql/updates/db_world/2021_04_19_05.sql
Normal file
@@ -0,0 +1,30 @@
|
||||
-- DB update 2021_04_19_04 -> 2021_04_19_05
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_19_04';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_19_04 2021_04_19_05 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618180915871216782'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618180915871216782');
|
||||
|
||||
DELETE FROM `creature_loot_template` WHERE `Reference` = 24048;
|
||||
INSERT INTO `creature_loot_template` VALUES (2345, 24048, 24048, 4, 0, 1, 1, 1, 1, 'Dun Garok Rifleman - (ReferenceTable)');
|
||||
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
39
data/sql/updates/db_world/2021_04_19_06.sql
Normal file
39
data/sql/updates/db_world/2021_04_19_06.sql
Normal file
@@ -0,0 +1,39 @@
|
||||
-- DB update 2021_04_19_05 -> 2021_04_19_06
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_19_05';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_19_05 2021_04_19_06 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618250435092390200'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618250435092390200');
|
||||
|
||||
DELETE FROM `spell_dbc` WHERE (`ID` IN (16256, 16257, 16277, 16278, 16279, 16280, 16281, 16282, 16283, 16284));
|
||||
INSERT INTO `spell_dbc` VALUES
|
||||
(16256, 0, 0, 0, 208, 0, 0, 67108864, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 20, 100, 0, 0, 0, 1, 21, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16257, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 108, 0, 50, 'Flurry','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 1','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Increases your attack speed by $16257s1% for your next 3 swings after dealing a critical strike.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190,'','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
(16257, 0, 0, 0, 0, 0, 0, 524288, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 20, 100, 3, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 1, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 138, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2759, 0, 108, 0, 50, 'Flurry','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 1','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Increases your attack speed by $16257s1% for your next 3 swings after dealing a critical strike.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Attack speed increased by $16257s1%.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 0, 0, 0, 0, 11, 0, 512, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
(16277, 0, 0, 0, 0, 0, 0, 524288, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 20, 100, 3, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 1, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 138, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2759, 0, 108, 0, 50, 'Flurry','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 2','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Increases your attack speed by $16277s1% for your next 3 swings after dealing a critical strike.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Attack speed increased by $16277s1%.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 0, 0, 0, 0, 11, 0, 512, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
(16278, 0, 0, 0, 0, 0, 0, 524288, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 20, 100, 3, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 1, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 138, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2759, 0, 108, 0, 50, 'Flurry','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 3','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Increases your attack speed by $16278s1% for your next 3 swings after dealing a critical strike.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Attack speed increased by $16278s1%.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 0, 0, 0, 0, 11, 0, 512, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
(16279, 0, 0, 0, 0, 0, 0, 524288, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 20, 100, 3, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 1, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 138, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2759, 0, 108, 0, 50, 'Flurry','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 4','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Increases your attack speed by $16279s1% for your next 3 swings after dealing a critical strike.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Attack speed increased by $16279s1%.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 0, 0, 0, 0, 11, 0, 512, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
(16280, 0, 0, 0, 0, 0, 0, 524288, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 20, 100, 3, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 1, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 138, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2759, 0, 108, 0, 50, 'Flurry','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 5','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Increases your attack speed by $16280s1% for your next 3 swings after dealing a critical strike.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Attack speed increased by $16280s1%.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 0, 0, 0, 0, 11, 0, 512, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
(16281, 0, 0, 0, 208, 0, 0, 67108864, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 20, 100, 0, 0, 0, 1, 21, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16277, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 108, 0, 50, 'Flurry','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 2','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Increases your attack speed by $16277s1% for your next 3 swings after dealing a critical strike.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190,'','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
(16282, 0, 0, 0, 208, 0, 0, 67108864, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 20, 100, 0, 0, 0, 1, 21, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 108, 0, 50, 'Flurry','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 3','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Increases your attack speed by $16278s1% for your next 3 swings after dealing a critical strike.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190,'','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
(16283, 0, 0, 0, 208, 0, 0, 67108864, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 20, 100, 0, 0, 0, 1, 21, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 108, 0, 50, 'Flurry','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 4','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Increases your attack speed by $16279s1% for your next 3 swings after dealing a critical strike.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190,'','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
(16284, 0, 0, 0, 208, 0, 0, 67108864, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 20, 100, 0, 0, 0, 1, 21, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 108, 0, 50, 'Flurry','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 5','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Increases your attack speed by $16280s1% for your next 3 swings after dealing a critical strike.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190,'','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
44
data/sql/updates/db_world/2021_04_19_07.sql
Normal file
44
data/sql/updates/db_world/2021_04_19_07.sql
Normal file
@@ -0,0 +1,44 @@
|
||||
-- DB update 2021_04_19_06 -> 2021_04_19_07
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_19_06';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_19_06 2021_04_19_07 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618383191741891235'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618383191741891235');
|
||||
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 1090 WHERE (`ID` = 8989);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 9 WHERE (`ID` = 8990);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 144 WHERE (`ID` = 8991);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 260 WHERE (`ID` = 8992);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 9 WHERE (`ID` = 8985);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 1090 WHERE (`ID` = 8986);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 144 WHERE (`ID` = 8987);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 260 WHERE (`ID` = 8988);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 129 WHERE (`ID` = 8966);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 1280 WHERE (`ID` = 8967);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 12 WHERE (`ID` = 8968);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 82 WHERE (`ID` = 8969);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 129 WHERE (`ID` = 8962);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 1280 WHERE (`ID` = 8963);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 12 WHERE (`ID` = 8964);
|
||||
UPDATE `quest_template_addon` SET `AllowableClasses` = 82 WHERE (`ID` = 8965);
|
||||
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
29
data/sql/updates/db_world/2021_04_19_08.sql
Normal file
29
data/sql/updates/db_world/2021_04_19_08.sql
Normal file
@@ -0,0 +1,29 @@
|
||||
-- DB update 2021_04_19_07 -> 2021_04_19_08
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_19_07';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_19_07 2021_04_19_08 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618695684001514600'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618695684001514600');
|
||||
|
||||
UPDATE `gameobject` SET `position_x`=2660.25, `position_y`=1490.65, `position_z`=234.041, `zoneId`=406, `areaId`=467 WHERE `guid`=3716;
|
||||
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
29
data/sql/updates/db_world/2021_04_19_09.sql
Normal file
29
data/sql/updates/db_world/2021_04_19_09.sql
Normal file
@@ -0,0 +1,29 @@
|
||||
-- DB update 2021_04_19_08 -> 2021_04_19_09
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_19_08';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_19_08 2021_04_19_09 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618694589843475600'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618694589843475600');
|
||||
|
||||
UPDATE `gameobject` SET `position_x`=1360.45, `position_y`=1536.73, `position_z`=149.534 WHERE `guid`=4186;
|
||||
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
334
data/sql/updates/db_world/2021_04_19_10.sql
Normal file
334
data/sql/updates/db_world/2021_04_19_10.sql
Normal file
@@ -0,0 +1,334 @@
|
||||
-- DB update 2021_04_19_09 -> 2021_04_19_10
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_19_09';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_19_09 2021_04_19_10 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1616252834972147900'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1616252834972147900');
|
||||
/*
|
||||
* Zone: Shadowmoon Valley
|
||||
* Update by Knindza | <www.azerothcore.org>
|
||||
*/
|
||||
|
||||
/* SMARTSCRIPT */
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 19788;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 19788);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(19788, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 38232, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Coilskar Muckwatcher - On Aggro - Cast \'38232\' (No Repeat)'),
|
||||
(19788, 0, 1, 0, 0, 0, 100, 0, 5000, 10000, 15000, 20000, 11, 38029, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Coilskar Muckwatcher - In Combat - Cast \'38029\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 19784;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 19784);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(19784, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 15000, 20000, 11, 38030, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Coilskar Cobra - In Combat - Cast \'38030\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 19767;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 19767);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(19767, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 10000, 15000, 11, 32011, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Coilskar Sorceress - In Combat - Cast \'32011\''),
|
||||
(19767, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 38026, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Coilskar Sorceress - Between 20-80% Health - Cast \'38026\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 19765;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 19765);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(19765, 0, 0, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 38027, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Coilskar Myrmidon - Between 20-80% Health - Cast \'38027\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 20795;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 20795);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(20795, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 10000, 15000, 11, 32011, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Keeper of the Cistern - In Combat - Cast \'32011\''),
|
||||
(20795, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 11831, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Keeper of the Cistern - Between 20-80% Health - Cast \'11831\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21205;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21205);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21205, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 15000, 20000, 11, 38363, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Ravenous Flayer Matriarch - In Combat - Cast \'38363\''),
|
||||
(21205, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 36464, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Ravenous Flayer Matriarch - Between 20-80% Health - Cast \'36464\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21196;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21196);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21196, 0, 0, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 37933, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Ravenous Flayer - Between 20-80% Health - Cast \'37933\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21663;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21663);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21663, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 12550, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Oronu the Elder - On Aggro - Cast \'12550\' (No Repeat)'),
|
||||
(21663, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 34079, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Oronu the Elder - Between 20-80% Health - Cast \'34079\' (No Repeat)'),
|
||||
(21663, 0, 2, 0, 2, 0, 100, 1, 10, 30, 0, 0, 11, 11986, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Oronu the Elder - Between 10-30% Health - Cast \'11986\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21803;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21803);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21803, 0, 0, 0, 2, 0, 100, 1, 5, 30, 0, 0, 11, 8599, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ashtongue Handler - Between 5-30% Health - Cast \'8599\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21802;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21802);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21802, 0, 0, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 38045, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Elekk Demolisher - Between 20-80% Health - Cast \'38045\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21453;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21453);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21453, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 12550, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ashtongue Shaman - On Aggro - Cast \'12550\' (No Repeat)'),
|
||||
(21453, 0, 1, 0, 0, 0, 100, 0, 5000, 10000, 20000, 25000, 11, 32062, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Ashtongue Shaman - In Combat - Cast \'32062\''),
|
||||
(21453, 0, 2, 0, 2, 0, 100, 1, 5, 30, 0, 0, 11, 37067, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ashtongue Shaman - Between 5-30% Health - Cast \'37067\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21808;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21808);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21808, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 15000, 20000, 11, 11977, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Overseer - In Combat - Cast \'11977\''),
|
||||
(21808, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 32736, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Overseer - Between 20-80% Health - Cast \'32736\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21455;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21455);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21455, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 15000, 20000, 11, 6016, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Ashtongue Worker - In Combat - Cast \'6016\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 22037;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 22037);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(22037, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 10000, 15000, 11, 13444, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Smith Gorlunk - In Combat - Cast \'13444\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 22859;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 22859);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(22859, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 13338, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Shadowhoof Summoner - On Aggro - Cast \'13338\' (No Repeat)'),
|
||||
(22859, 0, 1, 0, 0, 0, 100, 0, 2500, 4000, 8500, 10000, 11, 38386, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Shadowhoof Summoner - In Combat - Cast \'38386\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21166;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21166);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21166, 0, 0, 0, 0, 0, 100, 0, 2500, 4000, 8500, 10000, 11, 17287, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Dreadlord - In Combat - Cast \'17287\''),
|
||||
(21166, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 12098, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Dreadlord - Between 20-80% Health - Cast \'12098\' (No Repeat)'),
|
||||
(21166, 0, 2, 0, 2, 0, 100, 1, 5, 30, 0, 0, 11, 13704, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Dreadlord - Between 5-30% Health - Cast \'13704\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21908;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21908);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21908, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 15000, 20000, 11, 31553, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Spellbound Terrorguard - In Combat - Cast \'31553\''),
|
||||
(21908, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 37488, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Spellbound Terrorguard - Between 20-80% Health - Cast \'37488\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21178;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21178);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21178, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 38010, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Varedis - On Aggro - Cast \'38010\' (No Repeat)'),
|
||||
(21178, 0, 1, 0, 0, 0, 100, 0, 5000, 15000, 25000, 35000, 11, 39262, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 'Varedis - In Combat - Cast \'39262\''),
|
||||
(21178, 0, 2, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 37683, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Varedis - Between 20-80% Health - Cast \'37683\' (No Repeat)'),
|
||||
(21178, 0, 3, 0, 0, 0, 100, 0, 25000, 35000, 55000, 75000, 11, 38608, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Varedis - In Combat - Cast \'38608\''),
|
||||
(21178, 0, 4, 0, 2, 0, 100, 1, 45, 50, 0, 0, 11, 36298, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Varedis - Between 45-50% Health - Cast \'36298\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21171;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21171);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21171, 0, 0, 0, 0, 0, 100, 0, 5000, 15000, 25000, 35000, 11, 39262, 32, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 'Alandien - In Combat - Cast \'39262\''),
|
||||
(21171, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 37683, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Alandien - Between 20-80% Health - Cast \'37683\' (No Repeat)'),
|
||||
(21171, 0, 2, 0, 2, 0, 100, 1, 45, 50, 0, 0, 11, 36298, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Alandien - Between 45-50% Health - Cast \'36298\' (No Repeat)'),
|
||||
(21171, 0, 3, 0, 0, 0, 100, 0, 25000, 35000, 55000, 75000, 11, 39082, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Alandien - In Combat - Cast \'39082\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21164;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21164);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21164, 0, 0, 0, 0, 0, 100, 0, 5000, 15000, 25000, 35000, 11, 39262, 32, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 'Netharel - In Combat - Cast \'39262\''),
|
||||
(21164, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 37683, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Netharel - Between 20-80% Health - Cast \'37683\' (No Repeat)'),
|
||||
(21164, 0, 2, 0, 0, 0, 100, 0, 10000, 20000, 30000, 40000, 11, 39135, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Netharel - In Combat - Cast \'39135\''),
|
||||
(21164, 0, 3, 0, 2, 0, 100, 1, 45, 50, 0, 0, 11, 36298, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Netharel - Between 45-50% Health - Cast \'36298\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21168;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21168);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21168, 0, 0, 0, 0, 0, 100, 0, 5000, 15000, 25000, 35000, 11, 39262, 32, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 'Theras - In Combat - Cast \'39262\''),
|
||||
(21168, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 37683, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Theras - Between 20-80% Health - Cast \'37683\' (No Repeat)'),
|
||||
(21168, 0, 2, 0, 0, 0, 100, 0, 10000, 20000, 30000, 40000, 11, 35871, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Theras - In Combat - Cast \'35871\''),
|
||||
(21168, 0, 3, 0, 2, 0, 100, 1, 45, 50, 0, 0, 11, 36298, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Theras - Between 45-50% Health - Cast \'36298\' (No Repeat)'),
|
||||
(21168, 0, 4, 0, 0, 0, 100, 0, 25000, 35000, 55000, 75000, 11, 31534, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Theras - In Combat - Cast \'31534\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21505;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21505);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21505, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 10000, 15000, 11, 13901, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sunfury Summoner - In Combat - Cast \'13901\''),
|
||||
(21505, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 14514, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sunfury Summoner - Between 20-80% Health - Cast \'14514\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21179;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21179);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21179, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 32720, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Demon Hunter Supplicant - On Aggro - Cast \'32720\' (No Repeat)'),
|
||||
(21179, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 37683, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Demon Hunter Supplicant - Between 20-80% Health - Cast \'37683\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21180;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21180);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21180, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 36051, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Demon Hunter Initiate - On Aggro - Cast \'36051\' (No Repeat)'),
|
||||
(21180, 0, 1, 0, 0, 0, 100, 0, 5000, 10000, 15000, 20000, 11, 35871, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Demon Hunter Initiate - In Combat - Cast \'35871\''),
|
||||
(21180, 0, 2, 0, 2, 0, 100, 1, 10, 30, 0, 0, 11, 27565, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Demon Hunter Initiate - Between 10-30% Health - Cast \'27565\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21742;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21742);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21742, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 38008, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sunfury Eradicator - On Aggro - Cast \'38008\' (No Repeat)'),
|
||||
(21742, 0, 1, 0, 2, 0, 100, 1, 10, 30, 0, 0, 11, 17137, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sunfury Eradicator - Between 10-30% Health - Cast \'17137\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21827;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21827);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21827, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 38051, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Zandras - On Aggro - Cast \'38051\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 19744;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 19744);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(19744, 0, 0, 0, 0, 0, 100, 0, 5000, 10000, 15000, 20000, 11, 32736, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dreadwarden - In Combat - Cast \'32736\''),
|
||||
(19744, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 11443, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dreadwarden - Between 20-80% Health - Cast \'11443\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 19801;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 19801);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(19801, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 10000, 12500, 11, 36227, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Agonizer - In Combat - Cast \'36227\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21520;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21520);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21520, 0, 0, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 38051, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Jailor - Between 20-80% Health - Cast \'38051\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21478;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21478);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21478, 0, 0, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 33912, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Rocknail Ripper - Between 20-80% Health - Cast \'33912\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21901;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21901);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21901, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 20000, 25000, 11, 36659, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Netherskate - In Combat - Cast \'36659\''),
|
||||
(21901, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 17008, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Netherskate - Between 20-80% Health - Cast \'17008\' (No Repeat)'),
|
||||
(21901, 0, 2, 0, 2, 0, 100, 1, 10, 30, 0, 0, 11, 35334, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Netherskate - Between 10-30% Health - Cast \'35334\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 23269;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 23269);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(23269, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 32732, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Barash the Den Mother - On Aggro - Cast \'32732\' (No Repeat)'),
|
||||
(23269, 0, 1, 0, 0, 0, 100, 0, 2500, 5000, 20000, 25000, 11, 13443, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Barash the Den Mother - In Combat - Cast \'13443\''),
|
||||
(23269, 0, 2, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 33810, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Barash the Den Mother - Between 20-80% Health - Cast \'33810\' (No Repeat)'),
|
||||
(23269, 0, 3, 0, 2, 0, 100, 1, 10, 30, 0, 0, 11, 40636, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Barash the Den Mother - Between 10-30% Health - Cast \'40636\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 23267;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 23267);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(23267, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 32732, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arvoar the Rapacious - On Aggro - Cast \'32732\' (No Repeat)'),
|
||||
(23267, 0, 1, 0, 0, 0, 100, 0, 2500, 5000, 20000, 25000, 11, 13443, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Arvoar the Rapacious - In Combat - Cast \'13443\''),
|
||||
(23267, 0, 2, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 33810, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arvoar the Rapacious - Between 20-80% Health - Cast \'33810\' (No Repeat)'),
|
||||
(23267, 0, 3, 0, 2, 0, 100, 1, 10, 30, 0, 0, 11, 40636, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Arvoar the Rapacious - Between 10-30% Health - Cast \'40636\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 23264;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 23264);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(23264, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 20000, 25000, 11, 13443, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Overmine Flayer - In Combat - Cast \'13443\''),
|
||||
(23264, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 33810, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overmine Flayer - Between 20-80% Health - Cast \'33810\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 22274;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 22274);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(22274, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 38859, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - On Aggro - Cast \'38859\' (No Repeat)'),
|
||||
(22274, 0, 1, 0, 0, 0, 100, 0, 5000, 10000, 15000, 20000, 11, 38861, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - In Combat - Cast \'38861\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21711;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21711);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21711, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 10000, 12500, 11, 9532, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Haalum - In Combat - Cast \'9532\''),
|
||||
(21711, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 12058, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Haalum - Between 20-80% Health - Cast \'12058\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 22093;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 22093);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(22093, 0, 0, 0, 0, 0, 100, 0, 5000, 10000, 15000, 20000, 11, 32736, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Watcher - In Combat - Cast \'32736\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 22011;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 22011);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(22011, 0, 0, 0, 0, 0, 100, 0, 5000, 10000, 15000, 20000, 11, 12612, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Corok the Mighty - In Combat - Cast \'12612\''),
|
||||
(22011, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 15550, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Corok the Mighty - Between 20-80% Health - Cast \'15550\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21979;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21979);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21979, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 10000, 12500, 11, 38094, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Val\'zareq the Conqueror - In Combat - Cast \'38094\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 19824;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 19824);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(19824, 0, 0, 0, 0, 0, 100, 0, 5000, 10000, 15000, 20000, 11, 12612, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Son of Corok - In Combat - Cast \'12612\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21639;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21639);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21639, 0, 0, 1, 4, 0, 100, 1, 0, 0, 0, 0, 11, 22120, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Slayer - On Aggro - Cast \'22120\' (No Repeat)'),
|
||||
(21639, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Illidari Slayer - On Aggro - Set Run Off (No Repeat)'),
|
||||
(21639, 0, 2, 0, 0, 0, 100, 0, 2500, 5000, 10000, 15000, 11, 15496, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Slayer - In Combat - Cast \'15496\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21450;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21450);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21450, 0, 0, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 38254, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Skethyl Owl - Between 20-80% Health - Cast \'38254\' (No Repeat)'),
|
||||
(21450, 0, 1, 0, 2, 0, 100, 1, 10, 30, 0, 0, 11, 38021, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Skethyl Owl - Between 10-30% Health - Cast \'38021\' (No Repeat)');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 19757;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 19757);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(19757, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 15000, 20000, 11, 11969, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Infernal Soul - In Combat - Cast \'11969\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21337;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21337);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21337, 0, 0, 0, 1, 0, 100, 1, 1000, 1500, 0, 0, 11, 5916, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Illidari Shadowstalker - Out of Combat - Cast \'5916\' (No Repeat)'),
|
||||
(21337, 0, 1, 0, 0, 0, 100, 0, 2500, 5000, 10000, 12500, 11, 7159, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Shadowstalker - In Combat - Cast \'7159\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21928;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21928);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21928, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 38166, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lothros - On Aggro - Cast \'38166\' (No Repeat)'),
|
||||
(21928, 0, 1, 0, 0, 0, 100, 0, 5000, 10000, 20000, 25000, 11, 38167, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Lothros - In Combat - Cast \'38167\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 19800;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 19800);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(19800, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 10000, 15000, 11, 15968, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Painlasher - In Combat - Cast \'15968\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 19799;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 19799);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(19799, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 38166, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Illidari Dreadbringer - On Aggro - Cast \'38166\' (No Repeat)'),
|
||||
(19799, 0, 1, 0, 0, 0, 100, 0, 5000, 10000, 20000, 25000, 11, 38167, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Dreadbringer - In Combat - Cast \'38167\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21656;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21656);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21656, 0, 0, 0, 0, 0, 100, 0, 2500, 5000, 15000, 20000, 11, 38048, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Satyr - In Combat - Cast \'38048\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 19802;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 19802);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(19802, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 22120, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Shocktrooper - On Aggro - Cast \'22120\' (No Repeat)'),
|
||||
(19802, 0, 1, 0, 0, 0, 100, 0, 2500, 5000, 10000, 15000, 11, 15496, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Illidari Shocktrooper - In Combat - Cast \'15496\'');
|
||||
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21408;
|
||||
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 21408);
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(21408, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 37941, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Felfire Diemetradon - On Aggro - Cast \'37941\' (No Repeat)'),
|
||||
(21408, 0, 1, 0, 0, 0, 100, 0, 2500, 5000, 10000, 12500, 11, 36247, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Felfire Diemetradon - In Combat - Cast \'36247\'');
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
30
data/sql/updates/db_world/2021_04_19_11.sql
Normal file
30
data/sql/updates/db_world/2021_04_19_11.sql
Normal file
@@ -0,0 +1,30 @@
|
||||
-- DB update 2021_04_19_10 -> 2021_04_19_11
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_19_10';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_19_10 2021_04_19_11 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618438031594589517'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618438031594589517');
|
||||
|
||||
DELETE FROM `game_event_creature` WHERE `guid`=137686 AND `eventEntry`=5;
|
||||
INSERT INTO `game_event_creature` (`eventEntry`, `guid`) VALUES
|
||||
(5, 137686);
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
29
data/sql/updates/db_world/2021_04_21_00.sql
Normal file
29
data/sql/updates/db_world/2021_04_21_00.sql
Normal file
@@ -0,0 +1,29 @@
|
||||
-- DB update 2021_04_19_11 -> 2021_04_21_00
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_19_11';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_19_11 2021_04_21_00 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1618848739269957700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1618848739269957700');
|
||||
|
||||
UPDATE `gameobject` SET `position_x`=-2076.86, `position_y`=-3631.41, `position_z`=60.910 WHERE `guid`=3538;
|
||||
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
35
data/sql/updates/db_world/2021_04_22_00.sql
Normal file
35
data/sql/updates/db_world/2021_04_22_00.sql
Normal file
@@ -0,0 +1,35 @@
|
||||
-- DB update 2021_04_21_00 -> 2021_04_22_00
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_21_00';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_21_00 2021_04_22_00 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1619032787077995400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1619032787077995400');
|
||||
|
||||
-- Despawn minions on death
|
||||
DELETE FROM `smart_scripts` WHERE `entryorguid`=12203 AND `source_type`=0 AND `id`=3;
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(12203, 0, 3, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 41, 500, 0, 0, 0, 0, 0, 11, 11783, 100, 0, 0, 0, 0, 0, 0, 'Landslide - On death - Despawn minions');
|
||||
|
||||
-- Use correct spell for Knock Away
|
||||
UPDATE `smart_scripts` SET `action_param1`=10101 WHERE `entryorguid`=12203 AND `source_type`=0 AND `id`=1 AND `link`=0;
|
||||
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
29
data/sql/updates/db_world/2021_04_22_01.sql
Normal file
29
data/sql/updates/db_world/2021_04_22_01.sql
Normal file
@@ -0,0 +1,29 @@
|
||||
-- DB update 2021_04_22_00 -> 2021_04_22_01
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_22_00';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_22_00 2021_04_22_01 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1619115153766529700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1619115153766529700');
|
||||
|
||||
UPDATE `npc_text` SET `text0_0`='Welcome to Camp Mojache, brave $c. How may I assist you this day?' WHERE `ID`=2368;
|
||||
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
115
data/sql/updates/db_world/2021_04_24_00.sql
Normal file
115
data/sql/updates/db_world/2021_04_24_00.sql
Normal file
@@ -0,0 +1,115 @@
|
||||
-- DB update 2021_04_22_01 -> 2021_04_24_00
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_22_01';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_22_01 2021_04_24_00 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1615627556897035768'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1615627556897035768');
|
||||
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2500 WHERE `entry`=485; -- Blackrock Outrunner, was 2000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2800 WHERE `entry`=584; -- Kazon, was 1425
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1500 WHERE `entry`=947; -- Rohh the Silent, was 1425
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2200 WHERE `entry`=2271; -- Dalaran Shield Guard, was 2000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1300 WHERE `entry`=2275; -- Enraged Stanley, was 1770
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=2475; -- Sloth, was 1700
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=2479; -- Sludge, was 1700
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=2502; -- "Shaky" Phillipe, was 2400
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=2713; -- Kinelory, was 2500
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1000 WHERE `entry`=2850; -- Broken Tooth, was 2000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=4049; -- Seereth Stonebreak, was 1750
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=4400; -- Mudrock Snapjaw, was 1600
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=5399; -- Veyzhak the Cannibal, was 1250
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=5400; -- Zekkis, was 1250
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=5781; -- Silithid Creeper Egg, was 1800
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=5809; -- Watch Commander Zalaphil, was 1575
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2700 WHERE `entry`=5827; -- Brontus, was 1425
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1300 WHERE `entry`=5828; -- Humar the Pridelord, was 2000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1500 WHERE `entry`=5865; -- Dishu, was 1525
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=6239; -- Cyclonian, was 1300
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1625 WHERE `entry`=6913; -- Lost One Rift Traveler, was 1760
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=4000 WHERE `entry`=7226; -- Sand Storm, was 1570
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=7846; -- Teremus the Devourer, was 1500
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2800 WHERE `entry`=7895; -- Ambassador Bloodrage, was 1350
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2600 WHERE `entry`=8215; -- Grimungous, was 1233
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1300 WHERE `entry`=8300; -- Ravage, was 1216
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=8585; -- Frost Spectre, was 1600
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=8932; -- Borer Beetle, was 1500
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1800 WHERE `entry`=9027; -- Gorosh the Dervish, was 1183
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2400 WHERE `entry`=9032; -- Hedrum the Creeper, was 1208
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1300 WHERE `entry`=9236; -- Shadow Hunter Vosh'gajin, was 800
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1300 WHERE `entry`=9264; -- Firebrand Pyromancer, was 1158
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2400 WHERE `entry`=9456; -- Warlord Krom'zar, was 1770
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=9462; -- Chieftain Bloodmaw, was 2000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=9568; -- Overlord Wyrmthalak, was 800
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2600 WHERE `entry`=9605; -- Blackrock Raider, was 1420
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=10184; -- Onyxia, was 1500
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1100 WHERE `entry`=10220; -- Halycon, was 1175
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1400 WHERE `entry`=10261; -- Burning Felhound, was 1470
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2300 WHERE `entry`=10263; -- Burning Felguard, was 1175
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1500 WHERE `entry`=10374; -- Spire Spider, was 1175
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1500 WHERE `entry`=10375; -- Spire Spiderling, was 1480
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1500 WHERE `entry`=10376; -- Crystal Fang, was 1150
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=3000 WHERE `entry`=10506; -- Kirtonos the Herald, was 1600
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=3200 WHERE `entry`=10584; -- Urok Doomhowl, was 1166
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1500 WHERE `entry`=10596; -- Mother Smolderweb, was 1100
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2200 WHERE `entry`=11347; -- Zealot Lor'Khan, was 2000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1600 WHERE `entry`=11467; -- Tsu'zee, was 1166
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=3000 WHERE `entry`=11627; -- Tamed Kodo, was 1660
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=11677; -- Taskmaster Snivvle, was 1175
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=11949; -- Captain Balinda Stonehearth, was 2400
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=11981; -- Flamegor, was 1300
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=12121; -- Drakan, was 1846
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2400 WHERE `entry`=12467; -- Death Talon Captain, was 1091
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=12756; -- Lady Onyxia, was 850
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2660 WHERE `entry`=12860; -- Duriel Moonfire, was 1710
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2800 WHERE `entry`=12865; -- Ambassador Malcin, was 2000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=13020; -- Vaelastrasz the Corrupt, was 1600
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2500 WHERE `entry`=13147; -- Lieutenant Lewis, was 2000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=13456; -- Noxxion's Spawn, was 1500
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=14020; -- Chromaggus, was 1500
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1000 WHERE `entry`=14370; -- Cadaverous Worm, was 1400
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2800 WHERE `entry`=14372; -- Winterfall Ambusher, was 1450
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=10000 WHERE `entry`=14396; -- Eye of Immol'thar, was 1410
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=14484; -- Injured Peasant, was 1500
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=900 WHERE `entry`=14490; -- Rippa, was 1283
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=14601; -- Ebonroc, was 1100
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2700 WHERE `entry`=14603; -- Zapped Shore Strider, was 1530
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2600 WHERE `entry`=14604; -- Zapped Land Walker, was 1510
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2500 WHERE `entry`=14638; -- Zapped Wave Strider, was 1520
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2700 WHERE `entry`=14639; -- Zapped Deep Strider, was 1520
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2700 WHERE `entry`=14640; -- Zapped Cliff Giant, was 1510
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=14890; -- Taerar, was 1000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1000 WHERE `entry`=14965; -- Frenzied Bloodseeker Bat, was 1440
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1400 WHERE `entry`=15041; -- Spawn of Mar'li, was 1440
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2500 WHERE `entry`=15085; -- Wushoolay, was 2000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1600 WHERE `entry`=15101; -- Zulian Prowler, was 1440
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=3000 WHERE `entry`=15195; -- Wickerman Guardian, was 1175
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=15334; -- Giant Eye Tentacle, was 1000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2700 WHERE `entry`=15517; -- Ouro, was 1750
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1500 WHERE `entry`=15721; -- Mechanical Greench, was 2000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1000 WHERE `entry`=15725; -- Claw Tentacle, was 1500
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1000 WHERE `entry`=15726; -- Eye Tentacle, was 1500
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2500 WHERE `entry`=15728; -- Giant Claw Tentacle, was 2000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2400 WHERE `entry`=15742; -- Colossus of Ashi, was 1500
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=2000 WHERE `entry`=15802; -- Flesh Tentacle, was 1500
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=1800 WHERE `entry`=15952; -- Maexxna, was 2000
|
||||
UPDATE `creature_template` SET `BaseAttackTime`=750 WHERE `entry`=16028; -- Patchwerk, was 1200
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
34
data/sql/updates/db_world/2021_04_24_01.sql
Normal file
34
data/sql/updates/db_world/2021_04_24_01.sql
Normal file
@@ -0,0 +1,34 @@
|
||||
-- DB update 2021_04_24_00 -> 2021_04_24_01
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_04_24_00';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_04_24_00 2021_04_24_01 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1616619114792330400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1616619114792330400');
|
||||
|
||||
DELETE FROM `spell_dbc` WHERE `ID`=39183;
|
||||
INSERT INTO `spell_dbc` (`ID`, `Category`, `DispelType`, `Mechanic`, `Attributes`, `AttributesEx`, `AttributesExB`, `AttributesExC`, `AttributesExD`, `AttributesExE`, `AttributesExF`, `AttributesExG`, `ShapeshiftMask`, `unk_320_2`, `ShapeshiftExclude`, `unk_320_3`, `Targets`, `TargetCreatureType`, `RequiresSpellFocus`, `FacingCasterFlags`, `CasterAuraState`, `TargetAuraState`, `ExcludeCasterAuraState`, `ExcludeTargetAuraState`, `CasterAuraSpell`, `TargetAuraSpell`, `ExcludeCasterAuraSpell`, `ExcludeTargetAuraSpell`, `CastingTimeIndex`, `RecoveryTime`, `CategoryRecoveryTime`, `InterruptFlags`, `AuraInterruptFlags`, `ChannelInterruptFlags`, `ProcTypeMask`, `ProcChance`, `ProcCharges`, `MaxLevel`, `BaseLevel`, `SpellLevel`, `DurationIndex`, `PowerType`, `ManaCost`, `ManaCostPerLevel`, `ManaPerSecond`, `ManaPerSecondPerLevel`, `RangeIndex`, `Speed`, `ModalNextSpell`, `CumulativeAura`, `Totem_1`, `Totem_2`, `Reagent_1`, `Reagent_2`, `Reagent_3`, `Reagent_4`, `Reagent_5`, `Reagent_6`, `Reagent_7`, `Reagent_8`, `ReagentCount_1`, `ReagentCount_2`, `ReagentCount_3`, `ReagentCount_4`, `ReagentCount_5`, `ReagentCount_6`, `ReagentCount_7`, `ReagentCount_8`, `EquippedItemClass`, `EquippedItemSubclass`, `EquippedItemInvTypes`, `Effect_1`, `Effect_2`, `Effect_3`, `EffectDieSides_1`, `EffectDieSides_2`, `EffectDieSides_3`, `EffectRealPointsPerLevel_1`, `EffectRealPointsPerLevel_2`, `EffectRealPointsPerLevel_3`, `EffectBasePoints_1`, `EffectBasePoints_2`, `EffectBasePoints_3`, `EffectMechanic_1`, `EffectMechanic_2`, `EffectMechanic_3`, `ImplicitTargetA_1`, `ImplicitTargetA_2`, `ImplicitTargetA_3`, `ImplicitTargetB_1`, `ImplicitTargetB_2`, `ImplicitTargetB_3`, `EffectRadiusIndex_1`, `EffectRadiusIndex_2`, `EffectRadiusIndex_3`, `EffectAura_1`, `EffectAura_2`, `EffectAura_3`, `EffectAuraPeriod_1`, `EffectAuraPeriod_2`, `EffectAuraPeriod_3`, `EffectMultipleValue_1`, `EffectMultipleValue_2`, `EffectMultipleValue_3`, `EffectChainTargets_1`, `EffectChainTargets_2`, `EffectChainTargets_3`, `EffectItemType_1`, `EffectItemType_2`, `EffectItemType_3`, `EffectMiscValue_1`, `EffectMiscValue_2`, `EffectMiscValue_3`, `EffectMiscValueB_1`, `EffectMiscValueB_2`, `EffectMiscValueB_3`, `EffectTriggerSpell_1`, `EffectTriggerSpell_2`, `EffectTriggerSpell_3`, `EffectPointsPerCombo_1`, `EffectPointsPerCombo_2`, `EffectPointsPerCombo_3`, `EffectSpellClassMaskA_1`, `EffectSpellClassMaskA_2`, `EffectSpellClassMaskA_3`, `EffectSpellClassMaskB_1`, `EffectSpellClassMaskB_2`, `EffectSpellClassMaskB_3`, `EffectSpellClassMaskC_1`, `EffectSpellClassMaskC_2`, `EffectSpellClassMaskC_3`, `SpellVisualID_1`, `SpellVisualID_2`, `SpellIconID`, `ActiveIconID`, `SpellPriority`, `Name_Lang_enUS`, `Name_Lang_enGB`, `Name_Lang_koKR`, `Name_Lang_frFR`, `Name_Lang_deDE`, `Name_Lang_enCN`, `Name_Lang_zhCN`, `Name_Lang_enTW`, `Name_Lang_zhTW`, `Name_Lang_esES`, `Name_Lang_esMX`, `Name_Lang_ruRU`, `Name_Lang_ptPT`, `Name_Lang_ptBR`, `Name_Lang_itIT`, `Name_Lang_Unk`, `Name_Lang_Mask`, `NameSubtext_Lang_enUS`, `NameSubtext_Lang_enGB`, `NameSubtext_Lang_koKR`, `NameSubtext_Lang_frFR`, `NameSubtext_Lang_deDE`, `NameSubtext_Lang_enCN`, `NameSubtext_Lang_zhCN`, `NameSubtext_Lang_enTW`, `NameSubtext_Lang_zhTW`, `NameSubtext_Lang_esES`, `NameSubtext_Lang_esMX`, `NameSubtext_Lang_ruRU`, `NameSubtext_Lang_ptPT`, `NameSubtext_Lang_ptBR`, `NameSubtext_Lang_itIT`, `NameSubtext_Lang_Unk`, `NameSubtext_Lang_Mask`, `Description_Lang_enUS`, `Description_Lang_enGB`, `Description_Lang_koKR`, `Description_Lang_frFR`, `Description_Lang_deDE`, `Description_Lang_enCN`, `Description_Lang_zhCN`, `Description_Lang_enTW`, `Description_Lang_zhTW`, `Description_Lang_esES`, `Description_Lang_esMX`, `Description_Lang_ruRU`, `Description_Lang_ptPT`, `Description_Lang_ptBR`, `Description_Lang_itIT`, `Description_Lang_Unk`, `Description_Lang_Mask`, `AuraDescription_Lang_enUS`, `AuraDescription_Lang_enGB`, `AuraDescription_Lang_koKR`, `AuraDescription_Lang_frFR`, `AuraDescription_Lang_deDE`, `AuraDescription_Lang_enCN`, `AuraDescription_Lang_zhCN`, `AuraDescription_Lang_enTW`, `AuraDescription_Lang_zhTW`, `AuraDescription_Lang_esES`, `AuraDescription_Lang_esMX`, `AuraDescription_Lang_ruRU`, `AuraDescription_Lang_ptPT`, `AuraDescription_Lang_ptBR`, `AuraDescription_Lang_itIT`, `AuraDescription_Lang_Unk`, `AuraDescription_Lang_Mask`, `ManaCostPct`, `StartRecoveryCategory`, `StartRecoveryTime`, `MaxTargetLevel`, `SpellClassSet`, `SpellClassMask_1`, `SpellClassMask_2`, `SpellClassMask_3`, `MaxTargets`, `DefenseType`, `PreventionType`, `StanceBarOrder`, `EffectChainAmplitude_1`, `EffectChainAmplitude_2`, `EffectChainAmplitude_3`, `MinFactionID`, `MinReputation`, `RequiredAuraVision`, `RequiredTotemCategoryID_1`, `RequiredTotemCategoryID_2`, `RequiredAreasID`, `SchoolMask`, `RuneCostID`, `SpellMissileID`, `PowerDisplayID`, `Field227`, `Field228`, `Field229`, `SpellDescriptionVariableID`, `SpellDifficultyID`) VALUES
|
||||
(39183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 7, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 76, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185298, 22444, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8959, 0, 1, 0, 0, 'Create Anchorite Relic', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712188, 'Place the Anchorite Relic at Gor\'gaz Outpost.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 88, 1, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
|
||||
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 22454) AND (`source_type` = 0) AND (`id` IN (0));
|
||||
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
|
||||
(22454, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Fel Spirit - On Just Summoned - Say Line 0');
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
12
deps/acore/bash-lib/.gitrepo
vendored
Normal file
12
deps/acore/bash-lib/.gitrepo
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
; DO NOT EDIT (unless you know what you are doing)
|
||||
;
|
||||
; This subdirectory is a git "subrepo", and this file is maintained by the
|
||||
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
|
||||
;
|
||||
[subrepo]
|
||||
remote = https://github.com/azerothcore/bash-lib
|
||||
branch = master
|
||||
commit = 86fcff1dd6167078f863d45b3cd233e802bebe89
|
||||
parent = 0ebf9eb7365e4c73f423e2acd9fb1f21b84c6ef6
|
||||
method = merge
|
||||
cmdver = 0.4.3
|
||||
@@ -4,4 +4,4 @@ CUR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
source $CUR_DIR"/../src/subtree.sh"
|
||||
|
||||
hwc_git_subtree_list
|
||||
subtreeFlow
|
||||
23
deps/acore/bash-lib/docs/README.md
vendored
Normal file
23
deps/acore/bash-lib/docs/README.md
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# BASH-LIB
|
||||
|
||||
## description
|
||||
|
||||
bash-lib is a collection of generic purpose functions and defines that can be used
|
||||
and shared by other bash scripts.
|
||||
|
||||
## Documentation
|
||||
|
||||
### src/event
|
||||
|
||||
Libraries for event-driven functions
|
||||
|
||||
#### hooks.sh
|
||||
|
||||
Library that implements a simple Observer Pattern
|
||||
|
||||
### src/git-utils
|
||||
|
||||
#### subrepo.sh
|
||||
|
||||
|
||||
#### subtree.sh
|
||||
152
deps/acore/bash-lib/docs/_config.yml
vendored
Normal file
152
deps/acore/bash-lib/docs/_config.yml
vendored
Normal file
@@ -0,0 +1,152 @@
|
||||
# based on git-wiki-theme 2.6.1
|
||||
remote_theme: Drassil/git-wiki-theme@master
|
||||
# (string) Title of your wiki
|
||||
title: "bash-lib"
|
||||
baseurl: /bash-lib/
|
||||
# (string) if you've installed your wiki in subfolder, you must change this configuration
|
||||
# with your folder name, otherwise leave it empty
|
||||
# baseurl: "/git-wiki-skeleton"
|
||||
# (string) Description of your wiki
|
||||
description:
|
||||
# (boolean) Enable/disable wiki page list in sidebar
|
||||
show_wiki_pages: true
|
||||
# (integer) Maximum number of wiki page to shown in sidebar
|
||||
show_wiki_pages_limit: 10
|
||||
# (boolean) Enable/disable blog feature
|
||||
blog_feature: true
|
||||
# (boolean) Enable/disable wiki posts list in sidebar (needs blog_feature enabled)
|
||||
show_wiki_posts: true
|
||||
# (integer) Maximum number of wiki posts to shown in sidebar
|
||||
show_wiki_posts_limit: 10
|
||||
# from jekyll (read jekyll doc)
|
||||
paginate: 5
|
||||
paginate_path: "/blog/page:num"
|
||||
permalink: /blog/posts/:year/:month/:day/:title:output_ext
|
||||
# (boolean) Enable/disable download buttons in sidebar
|
||||
show_downloads: true
|
||||
# (string) Specify branch rendered by gitpages allowing wiki tool buttons to work
|
||||
git_branch: "master"
|
||||
# (string) Url of logo image, it can be full, absolute or relative.
|
||||
logo_url: https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Gnu-bash-logo.svg/1200px-Gnu-bash-logo.svg.png
|
||||
# (string) The UA-XXXXX-Y code from google analytic to enable GA on your wiki
|
||||
google_analytics:
|
||||
# (string) folder where wiki pages are stored, it's needed for tool buttons
|
||||
wiki_folder:
|
||||
# (boolean) if you're using github wiki as submodule then this config
|
||||
# must be enabled to allow tool buttons to work properly
|
||||
use_github_wiki: false
|
||||
# (boolean) Enable "Edit with Prose.io" button in tools, it's a 3rd party
|
||||
# service to edit github markdown pages easily
|
||||
use_prose_io: true
|
||||
# Select search_engine component from:
|
||||
# - js: it uses a built in javascript component that uses generated js object
|
||||
# - js_rss: it uses a built in javascript component that uses generated sitemap_full.xml to search inside your wiki with lunr library (slow and experimental)
|
||||
# - github : it uses internal github repository search
|
||||
# - google : it uses cse search bar, you need to configure google_cse_token
|
||||
#
|
||||
search_engine : "js"
|
||||
# Setting google custom search engine for google. Default: empty
|
||||
# cse search bar (https://cse.google.it/cse/)
|
||||
google_cse_token:
|
||||
|
||||
|
||||
# (string) path of site root. Normally it's must be empty because _config.yml resides in the root of your repository.
|
||||
# If you have _config.yml and your site in a subfolder, then change this config accordly
|
||||
site_root: docs/
|
||||
|
||||
#
|
||||
# Jekyll configurations
|
||||
#
|
||||
|
||||
# You can customize it changing default layout for all pages
|
||||
# More info: https://jekyllrb.com/docs/configuration/
|
||||
#
|
||||
# git-wiki includes some internal themes that you can choose
|
||||
# check _layouts folder
|
||||
#
|
||||
markdown: kramdown
|
||||
highlighter: rouge
|
||||
kramdown:
|
||||
input: GFM
|
||||
syntax_highlighter: rouge
|
||||
|
||||
defaults:
|
||||
-
|
||||
scope:
|
||||
path: "wiki"
|
||||
values:
|
||||
permalink: /:basename
|
||||
-
|
||||
scope:
|
||||
path: "" # an empty string here means all files in the project
|
||||
values:
|
||||
layout: "git-wiki-default"
|
||||
-
|
||||
scope:
|
||||
path: ""
|
||||
type: "pages"
|
||||
values:
|
||||
layout: "git-wiki-default"
|
||||
-
|
||||
scope:
|
||||
path: ""
|
||||
type: "posts"
|
||||
values:
|
||||
layout: "git-wiki-post"
|
||||
-
|
||||
scope:
|
||||
path: blog
|
||||
values:
|
||||
layout: "git-wiki-blog"
|
||||
sass:
|
||||
style: compressed
|
||||
plugins:
|
||||
- jekyll-avatar
|
||||
- jekyll-coffeescript
|
||||
- jekyll-default-layout
|
||||
- jekyll-feed
|
||||
- jekyll-gist
|
||||
- jekyll-paginate
|
||||
- jekyll-mentions
|
||||
- jekyll-optional-front-matter
|
||||
- jekyll-readme-index
|
||||
- jekyll-redirect-from
|
||||
- jekyll-remote-theme
|
||||
- jekyll-relative-links
|
||||
- jekyll-seo-tag
|
||||
- jekyll-sitemap
|
||||
- jekyll-titles-from-headings
|
||||
- jemoji
|
||||
- jekyll-gitlab-metadata
|
||||
|
||||
#
|
||||
# INCLUDING HOOKS
|
||||
# They are optional, change them only if you need
|
||||
# Check wiki documentation to learn how they work
|
||||
#
|
||||
|
||||
inc_before_toc :
|
||||
inc_after_toc :
|
||||
inc_before_content :
|
||||
inc_after_content :
|
||||
inc_before_footer :
|
||||
inc_after_footer :
|
||||
inc_before_head :
|
||||
inc_after_head :
|
||||
inc_before_meta :
|
||||
inc_after_meta :
|
||||
inc_before_scripts :
|
||||
inc_after_scripts :
|
||||
inc_before_styles :
|
||||
inc_after_styles :
|
||||
inc_before_header :
|
||||
inc_after_header :
|
||||
inc_before_tail :
|
||||
inc_after_tail :
|
||||
inc_before_tools :
|
||||
inc_after_tools :
|
||||
|
||||
inc_before_page_list :
|
||||
inc_after_page_list :
|
||||
inc_before_post_list :
|
||||
inc_after_post_list :
|
||||
@@ -1,5 +1,5 @@
|
||||
# par 1: hook_name
|
||||
function hwc_event_run_hooks() {
|
||||
function acore_event_runHooks() {
|
||||
hook_name="HOOKS_MAP_$1"
|
||||
read -r -a SRCS <<< ${!hook_name}
|
||||
echo "Running hooks: $hook_name"
|
||||
@@ -9,7 +9,7 @@ function hwc_event_run_hooks() {
|
||||
done
|
||||
}
|
||||
|
||||
function hwc_event_register_hooks() {
|
||||
function acore_event_registerHooks() {
|
||||
hook_name="HOOKS_MAP_$1"
|
||||
hooks=${@:2}
|
||||
declare -g "$hook_name+=$hooks "
|
||||
36
deps/acore/bash-lib/src/git-utils/subrepo.sh
vendored
Normal file
36
deps/acore/bash-lib/src/git-utils/subrepo.sh
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
|
||||
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/"
|
||||
|
||||
echo "> Init and updating submodules..."
|
||||
|
||||
function subrepoUpdate() {
|
||||
repo=$1
|
||||
branch=$2
|
||||
folder=$3
|
||||
|
||||
toClone=$(git ls-remote --heads "$repo" "$branch" | wc -l)
|
||||
|
||||
if [[ -d "$folder" ]]; then
|
||||
if [[ ! -f "$folder/.gitrepo" ]]; then
|
||||
git subrepo init "$folder" -r "$repo" -b "$branch"
|
||||
fi
|
||||
|
||||
if [[ $toClone -eq 0 ]]; then
|
||||
git subrepo push "$folder"
|
||||
fi
|
||||
else
|
||||
# try-catch
|
||||
set +e
|
||||
git subrepo clone "$repo" "$folder" -b "$branch"
|
||||
set -e
|
||||
fi
|
||||
|
||||
git subrepo clean "$folder"
|
||||
git subrepo pull "$folder"
|
||||
git subrepo push "$folder" -s
|
||||
git subrepo clean "$folder"
|
||||
}
|
||||
12
deps/acore/bash-lib/src/git-utils/subtree.sh
vendored
Normal file
12
deps/acore/bash-lib/src/git-utils/subtree.sh
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
function subtreeFlow {
|
||||
local name=$1
|
||||
local path=$2
|
||||
local repo=$3
|
||||
local branch=$4
|
||||
local prefix="$path/$name"
|
||||
|
||||
echo "> Adding subtree if not exists"
|
||||
git subtree add --prefix "$prefix" "$repo" "$branch"
|
||||
echo "> Pulling latest changes from remote subtree"
|
||||
git subtree pull --prefix "$prefix" "$repo" "$branch"
|
||||
}
|
||||
12
deps/acore/cmake-utils/.gitrepo
vendored
Normal file
12
deps/acore/cmake-utils/.gitrepo
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
; DO NOT EDIT (unless you know what you are doing)
|
||||
;
|
||||
; This subdirectory is a git "subrepo", and this file is maintained by the
|
||||
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
|
||||
;
|
||||
[subrepo]
|
||||
remote = https://github.com/azerothcore/cmake-utils
|
||||
branch = master
|
||||
commit = 1589c53ac61b7909c6950f1d85833441cbd58790
|
||||
method = merge
|
||||
cmdver = 0.4.3
|
||||
parent = ebcbd4e904f835beef8db05c88f2e971c48c2820
|
||||
12
deps/acore/joiner/.gitrepo
vendored
Normal file
12
deps/acore/joiner/.gitrepo
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
; DO NOT EDIT (unless you know what you are doing)
|
||||
;
|
||||
; This subdirectory is a git "subrepo", and this file is maintained by the
|
||||
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
|
||||
;
|
||||
[subrepo]
|
||||
remote = https://github.com/azerothcore/joiner
|
||||
branch = master
|
||||
commit = 9b74caa2ca609738a944bcf25c025a2a67de78ed
|
||||
parent = 5f910409ec1e5f27f49fe26b0662b19b37bdabb3
|
||||
method = merge
|
||||
cmdver = 0.4.3
|
||||
661
deps/acore/joiner/LICENSE
vendored
Normal file
661
deps/acore/joiner/LICENSE
vendored
Normal file
@@ -0,0 +1,661 @@
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero General Public License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU Affero General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU Affero General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU Affero General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program 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 Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
211
deps/acore/joiner/README.md
vendored
Normal file
211
deps/acore/joiner/README.md
vendored
Normal file
@@ -0,0 +1,211 @@
|
||||
# Joiner v0.8.4
|
||||
|
||||
Universal crossplatform and agnostic dependency manager written in bash for any kind of module.
|
||||
|
||||
it is compatible with:
|
||||
|
||||
- Linux (natively)
|
||||
- MacOS (natively)
|
||||
- Windows (via mingw, wsl or other installable bash console)
|
||||
|
||||
This script is able to install and update modules and its dependencies via git clone, submodule or files directly.
|
||||
To install dependencies you must configure your repository to support Joiner. Read instructions below.
|
||||
|
||||
## Projects that are using Joiner
|
||||
|
||||
- https://github.com/azerothcore/azerothcore-wotlk
|
||||
|
||||
- https://github.com/hw-core
|
||||
|
||||
## features
|
||||
|
||||
- install modules via git clone/submodule or files/zipped folders
|
||||
- update modules downloaded via git
|
||||
- remove modules and its dependencies
|
||||
- define and install dependencies or suggested modules
|
||||
- since it uses bash, you can run any kind of task/script during install/uninstall (compilation, configuration etc.)
|
||||
|
||||
## requirements
|
||||
|
||||
- bash
|
||||
- git
|
||||
- unzip
|
||||
- curl
|
||||
|
||||
## Installation
|
||||
|
||||
This command will download the script then you can directly run it or include in your script to run commands programmatically
|
||||
|
||||
```
|
||||
git clone https://github.com/drassil/joiner.git drassil/joiner
|
||||
```
|
||||
|
||||
if you want to include in your scripts you can use this code that will also automatically download the joiner if you don't have it yet and will keep it updated at each run (internally handled by joiner script):
|
||||
|
||||
```
|
||||
J_PATH_MODULES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/modules"
|
||||
[ ! -d $J_PATH_MODULES/drassil/joiner ] && git clone https://github.com/drassil/joiner $J_PATH_MODULES/drassil/joiner -b master
|
||||
source "$J_PATH_MODULES/drassil/joiner/joiner.sh"
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
You can run joiner executing it in a bash shell. It will prompt an interactive menu where you can run commands or just run them directly via command line (see below)
|
||||
|
||||
Alternatively you can use it programmatically running internal functions in your scripts (see below). It's also needed to create a module compatible with Joiner dependency manager.
|
||||
|
||||
## Sample
|
||||
|
||||
This command will install js-lib-class modules and its dependencies
|
||||
|
||||
joiner add-repo https://github.com/HW-Core/js-lib-class
|
||||
|
||||
To install also development dependencies (test and documentation modules) you've to run:
|
||||
|
||||
joiner add-repo --dev https://github.com/HW-Core/js-lib-class
|
||||
|
||||
## Options
|
||||
|
||||
-d|--dev: install development dependencies (see Joiner:with_dev)
|
||||
|
||||
-e|--extras: install extras dependencies (see Joiner:with_extras)
|
||||
|
||||
-z|--unzip: if adding a compressed file, this option will unzip it
|
||||
|
||||
## Command line
|
||||
|
||||
- **add-repo (a)**: download and install a module from git repository.
|
||||
|
||||
Syntax: joiner.sh add-repo [-d] [-e] url name branch [basedir]
|
||||
|
||||
If you set name/branch as empty string ("") the system will use default values
|
||||
|
||||
- **upd-repo (u)**: update a module.
|
||||
Syntax: joiner.sh upd-repo [-d] [-e] url name branch [basedir]
|
||||
|
||||
If you set name/branch as empty string ("") the system will use default values
|
||||
|
||||
- **add-git-submodule (s)**: download and install module from git repository as git submodule.
|
||||
|
||||
Syntax: joiner.sh add-git-submodule [-d] [-e] url name branch [basedir]
|
||||
|
||||
If you set name/branch as empty string ("") the system will use default values
|
||||
|
||||
|
||||
- **add-file (f)**: download and install a file or zipped folder.
|
||||
|
||||
Syntax: joiner.sh add-file [-d] [-e] [-z] source [destination]
|
||||
|
||||
- **remove (r)**: uninstall and remove a module.
|
||||
|
||||
Syntax: joiner.sh remove name [basedir]
|
||||
|
||||
- **self-update (j)**: Update joiner version to the latest stable (master branch)
|
||||
|
||||
Syntax: joiner.sh self-update
|
||||
|
||||
|
||||
|
||||
## Programmatically usage
|
||||
|
||||
### commands methods
|
||||
Download and install a module from git repository.
|
||||
|
||||
Joiner:add_repo [-d] [-e] url name branch [basedir]
|
||||
|
||||
Update a module.
|
||||
|
||||
Joiner:upd_repo [-d] [-e] url name branch [basedir]
|
||||
|
||||
Download and install module from git repository as git submodule.
|
||||
|
||||
Joiner:add_git_submodule [-d] [-e] url name branch [basedir]
|
||||
|
||||
Download and install a file or zipped folder.
|
||||
|
||||
Joiner:add_file [-d] [-e] [-z] source [destination]
|
||||
|
||||
Uninstall and remove a module.
|
||||
|
||||
Joiner:remove name [basedir]
|
||||
|
||||
### conditional methods
|
||||
|
||||
Check if Joiner has been run with --dev|-d option
|
||||
|
||||
Joiner:with_dev
|
||||
|
||||
return: true|false
|
||||
|
||||
Check if Joiner has been run with --extras|-e option
|
||||
|
||||
Joiner:with_extras
|
||||
|
||||
return: true|false
|
||||
|
||||
Update joiner version to the latest stable (master branch)
|
||||
|
||||
Joiner:self_update
|
||||
|
||||
|
||||
## How to create a Joiner module
|
||||
|
||||
Creating a Joiner compatible module is extremely simple.
|
||||
You just have to create following files in the root directory of your project:
|
||||
|
||||
### install.sh
|
||||
|
||||
```
|
||||
#!/usr/bin/env bash
|
||||
|
||||
J_PATH_MODULES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/modules"
|
||||
[ ! -d $J_PATH_MODULES/drassil/joiner ] && git clone https://github.com/drassil/joiner $J_PATH_MODULES/drassil/joiner -b master
|
||||
source "$J_PATH_MODULES/drassil/joiner/joiner.sh"
|
||||
|
||||
## You can do any kind of pre-install task here
|
||||
|
||||
# ADD DEPENDENCIES
|
||||
|
||||
Joiner:add_repo "dependency-repo-url"
|
||||
|
||||
if Joiner:with_dev ; then
|
||||
Joiner:add_repo "dev-dependency-repo-url"
|
||||
fi
|
||||
|
||||
## You can do any kind of post-install task here
|
||||
```
|
||||
|
||||
|
||||
### uninstall.sh
|
||||
|
||||
|
||||
```
|
||||
#!/usr/bin/env bash
|
||||
|
||||
J_PATH_MODULES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/modules"
|
||||
[ ! -d $J_PATH_MODULES/drassil/joiner ] && git clone https://github.com/drassil/joiner $J_PATH_MODULES/drassil/joiner -b master
|
||||
source "$J_PATH_MODULES/drassil/joiner/joiner.sh"
|
||||
|
||||
#
|
||||
# REMOVE DEPENDENCIES
|
||||
#
|
||||
|
||||
Joiner:remove "dependency-folder-name"
|
||||
|
||||
```
|
||||
|
||||
If other dependencies are Joiner modules then joiner will install dependencies recursively, otherwise will just download them.
|
||||
|
||||
|
||||
## Contribute
|
||||
|
||||
Please use github platform to report an issue or ask anything you like:
|
||||
|
||||
https://github.com/Drassil/joiner
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1
deps/acore/joiner/_config.yml
vendored
Normal file
1
deps/acore/joiner/_config.yml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
theme: jekyll-theme-architect
|
||||
441
deps/acore/joiner/joiner.sh
vendored
Executable file
441
deps/acore/joiner/joiner.sh
vendored
Executable file
@@ -0,0 +1,441 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# bash >= 4.x required
|
||||
#
|
||||
|
||||
#
|
||||
# DEFINES
|
||||
#
|
||||
|
||||
# boolean bash convention ( inverse )
|
||||
declare -A J_OPT;
|
||||
|
||||
TRUE=0
|
||||
FALSE=1
|
||||
|
||||
J_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
unamestr=`uname`
|
||||
if [ -z "$J_PATH_MODULES" ]; then
|
||||
if [[ "$unamestr" == 'Darwin' ]]; then
|
||||
J_PATH_MODULES=$(greadlink -f "$J_PATH/../../")
|
||||
else
|
||||
J_PATH_MODULES=$(readlink -f "$J_PATH/../../")
|
||||
fi
|
||||
fi
|
||||
|
||||
for i in "$@"
|
||||
do
|
||||
case $i in
|
||||
--parent=*) #internally used
|
||||
J_OPT[parent]="${i#*=}"
|
||||
shift
|
||||
;;
|
||||
--child=*) #internally used
|
||||
J_OPT[child]="${i#*=}"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
# unknown option
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
J_PARAMS="$@"
|
||||
|
||||
function Joiner:is_submodule()
|
||||
{
|
||||
path=$1
|
||||
(cd "$path" && cd "$(git rev-parse --show-toplevel 2>&1)/.."
|
||||
git rev-parse --is-inside-work-tree 2>&1) | grep -q true
|
||||
}
|
||||
|
||||
|
||||
function Joiner:_help() {
|
||||
hasReq=$1
|
||||
firstParam=$2
|
||||
msg=$3
|
||||
|
||||
if [ $hasReq = false ]; then
|
||||
echo "Argument missing: $msg"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$firstParam" = "--help" || "$firstParam" = "-h" ]]; then
|
||||
echo "Help: $msg"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
function Joiner:_searchFirstValiPath() {
|
||||
path="$1"
|
||||
until $(cd -- "$path")
|
||||
do
|
||||
case "$path" in(*[!/]/*)
|
||||
path="${path%/*}"
|
||||
;;
|
||||
(*)
|
||||
! break
|
||||
esac
|
||||
done 2>/dev/null
|
||||
echo "$path"
|
||||
}
|
||||
|
||||
#
|
||||
# JOINER FUNCTIONS
|
||||
#
|
||||
|
||||
function Joiner:add_repo() (
|
||||
set -e
|
||||
url="$1"
|
||||
name=${2:-""}
|
||||
branch=${3:-"master"}
|
||||
basedir="${4:-""}"
|
||||
|
||||
[[ -z $url ]] && hasReq=false || hasReq=true
|
||||
Joiner:_help $hasReq "$1" "Syntax: joiner.sh add-repo [-d] [-e] url name branch [basedir]"
|
||||
|
||||
# retrieving info from url if not set
|
||||
if [[ -z $name ]]; then
|
||||
basename=$(basename $url)
|
||||
name=${basename%%.*}
|
||||
|
||||
if [[ -z "$basedir" ]]; then
|
||||
dir=$(dirname "$url")
|
||||
basedir=$(basename "$dir")
|
||||
fi
|
||||
|
||||
name="${name,,}" #to lowercase
|
||||
basedir="${basedir,,}" #to lowercase
|
||||
fi
|
||||
|
||||
path="$J_PATH_MODULES/$basedir/$name"
|
||||
changed="yes"
|
||||
|
||||
if [ -e "$path/.git/" ]; then
|
||||
# if exists , update
|
||||
git --git-dir="$path/.git/" rev-parse && git --git-dir="$path/.git/" pull origin $branch | grep 'Already up-to-date.' && changed="no" || true
|
||||
else
|
||||
# otherwise clone
|
||||
git clone $url -c advice.detachedHead=0 -b $branch "$path"
|
||||
fi
|
||||
|
||||
if [ "$?" -ne "0" ]; then
|
||||
return $FALSE
|
||||
fi
|
||||
|
||||
# parent/child to avoid redundancy
|
||||
[[ -f $path/install.sh && "$changed" = "yes"
|
||||
&& "${J_OPT[parent]}" != "$path" && "${J_OPT[child]}" != "$path" ]] && bash "$path/install.sh" --child="${J_OPT[parent]}" --parent="$path" $J_PARAMS
|
||||
|
||||
return $TRUE
|
||||
)
|
||||
|
||||
function Joiner:add_git_submodule() (
|
||||
set -e
|
||||
url=$1
|
||||
name=${2:-""}
|
||||
branch=${3:-"master"}
|
||||
basedir=${4:-""}
|
||||
|
||||
[[ -z $url ]] && hasReq=false || hasReq=true
|
||||
Joiner:_help $hasReq "$1" "Syntax: joiner.sh add-git-submodule [-d] [-e] url name branch [basedir]"
|
||||
|
||||
# retrieving info from url if not set
|
||||
if [[ -z $name ]]; then
|
||||
basename=$(basename $url)
|
||||
name=${basename%%.*}
|
||||
|
||||
if [[ -z $basedir ]]; then
|
||||
dir=$(dirname $url)
|
||||
basedir=$(basename $dir)
|
||||
fi
|
||||
|
||||
name="${name,,}" #to lowercase
|
||||
basedir="${basedir,,}" #to lowercase
|
||||
fi
|
||||
|
||||
path="$J_PATH_MODULES/$basedir/$name"
|
||||
valid_path=`Joiner:_searchFirstValiPath "$path"`
|
||||
rel_path=${path#$valid_path}
|
||||
rel_path=${rel_path#/}
|
||||
|
||||
if [ -e $path/ ]; then
|
||||
# if exists , update
|
||||
(cd "$path" && git pull origin $branch)
|
||||
(cd "$valid_path" && git submodule update -f --init $rel_path)
|
||||
else
|
||||
# otherwise add
|
||||
(cd "$valid_path" && git submodule add -f -b $branch $url $rel_path)
|
||||
(cd "$valid_path" && git submodule update -f --init $rel_path)
|
||||
fi
|
||||
|
||||
if [ "$?" -ne "0" ]; then
|
||||
return $FALSE
|
||||
fi
|
||||
|
||||
# parent/child to avoid redundancy
|
||||
[[ -f $path/install.sh && "$changed" = "yes"
|
||||
&& "${J_OPT[parent]}" != "$path" && "${J_OPT[child]}" != "$path" ]] && bash "$path/install.sh" --child="${J_OPT[parent]}" --parent="$path" $J_PARAMS
|
||||
|
||||
return $TRUE
|
||||
)
|
||||
|
||||
function Joiner:add_file() (
|
||||
set -e
|
||||
declare -A _OPT;
|
||||
for i in "$@"
|
||||
do
|
||||
case $i in
|
||||
--unzip|-z)
|
||||
_OPT[unzip]=true
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
# unknown option
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
source=$1
|
||||
destination="$J_PATH_MODULES/$2"
|
||||
|
||||
[[ -z $source ]] && hasReq=false || hasReq=true
|
||||
Joiner:_help $hasReq "$1" "Syntax: joiner.sh add-file [-d] [-e] [-z] source [destination]"
|
||||
|
||||
if [[ "$destination" =~ '/'$ ]]; then
|
||||
mkdir -p "$destination"
|
||||
else
|
||||
mkdir -p "$(dirname $destination)"
|
||||
fi
|
||||
|
||||
[ ! -e $J_PATH_MODULES/$2 ] && curl -o "$destination" "$source"
|
||||
|
||||
if [ "${_OPT[unzip]}" = true ]; then
|
||||
dir=$(dirname $destination)
|
||||
unzip -d $dir $destination
|
||||
rm $destination
|
||||
|
||||
filename=$(basename -- "$destination")
|
||||
newpath="$dir${filename%%.*}"
|
||||
|
||||
# parent/child to avoid redundancy
|
||||
[[ -f $newpath/install.sh && "$changed" = "yes"
|
||||
&& "${J_OPT[parent]}" != "$newpath" && "${J_OPT[child]}" != "$newpath" ]] && bash "$newpath/install.sh" --child="${J_OPT[parent]}" --parent="$newpath" $J_PARAMS
|
||||
fi
|
||||
|
||||
if [ "$?" -ne "0" ]; then
|
||||
return $FALSE
|
||||
fi
|
||||
|
||||
return $TRUE
|
||||
)
|
||||
|
||||
function Joiner:upd_repo() (
|
||||
set -e
|
||||
url=$1
|
||||
name=${2:-""}
|
||||
branch=${3:-"master"}
|
||||
basedir=${4:-""}
|
||||
|
||||
[[ -z $url ]] && hasReq=false || hasReq=true
|
||||
Joiner:_help $hasReq "$1" "Syntax: joiner.sh upd-repo [-d] [-e] url name branch [basedir]"
|
||||
|
||||
# retrieving info from url if not set
|
||||
if [[ -z $name ]]; then
|
||||
basename=$(basename $url)
|
||||
name=${basename%%.*}
|
||||
|
||||
if [[ -z $basedir ]]; then
|
||||
dir=$(dirname $url)
|
||||
basedir=$(basename $dir)
|
||||
fi
|
||||
|
||||
name="${name,,}" #to lowercase
|
||||
basedir="${basedir,,}" #to lowercase
|
||||
fi
|
||||
|
||||
path="$J_PATH_MODULES/$basedir/$name"
|
||||
|
||||
if [[ -z $url ]]; then
|
||||
url=`git --git-dir="$path/.git" remote get-url origin`
|
||||
fi
|
||||
|
||||
if [[ `Joiner:is_submodule "$path"` = true ]]; then
|
||||
Joiner:add_git_submodule $@
|
||||
else
|
||||
Joiner:add_repo $@
|
||||
fi
|
||||
|
||||
if [ "$?" -ne "0" ]; then
|
||||
return $FALSE
|
||||
fi
|
||||
|
||||
return $TRUE
|
||||
)
|
||||
|
||||
function Joiner:remove() (
|
||||
set -e
|
||||
name=$1
|
||||
basedir=$2
|
||||
|
||||
[[ -z $name ]] && hasReq=false || hasReq=true
|
||||
Joiner:_help $hasReq "$1" "Syntax: joiner.sh remove name [basedir]"
|
||||
|
||||
path="$J_PATH_MODULES/$basedir/$name"
|
||||
|
||||
if [ -d "$path" ]; then
|
||||
rm -r --interactive=never "$path"
|
||||
[[ -f $path/uninstall.sh ]] && bash "$path/uninstall.sh" $J_PARAMS
|
||||
elif [ -f "$path" ]; then
|
||||
rm --interactive=never "$path"
|
||||
else
|
||||
return $FALSE
|
||||
fi
|
||||
|
||||
return $TRUE
|
||||
)
|
||||
|
||||
function Joiner:with_dev() (
|
||||
set -e
|
||||
if [ "${J_OPT[dev]}" = true ]; then
|
||||
return $TRUE;
|
||||
else
|
||||
return $FALSE;
|
||||
fi
|
||||
)
|
||||
|
||||
function Joiner:with_extras() (
|
||||
set -e
|
||||
if [ "${J_OPT[extra]}" = true ]; then
|
||||
return $TRUE;
|
||||
else
|
||||
return $FALSE;
|
||||
fi
|
||||
)
|
||||
|
||||
#
|
||||
# Parsing parameters
|
||||
#
|
||||
function Joiner:self_update() {
|
||||
if [ -e "$J_PATH/.git/" ]; then
|
||||
# self update
|
||||
if [ ! -z "$J_VER_REQ" ]; then
|
||||
# if J_VER_REQ is defined then update only if tag is different
|
||||
_cur_branch=`git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" rev-parse --abbrev-ref HEAD`
|
||||
_cur_ver=`git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" name-rev --tags --name-only $_cur_branch`
|
||||
if [ "$_cur_ver" != "$J_VER_REQ" ]; then
|
||||
git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" rev-parse && git --git-dir="$J_PATH/.git/" fetch --tags origin "$_cur_branch" --quiet
|
||||
git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" checkout "tags/$J_VER_REQ" -b "$_cur_branch"
|
||||
fi
|
||||
else
|
||||
# else always try to keep at latest available version (worst performances)
|
||||
|
||||
git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" rev-parse && git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" fetch origin "$_cur_branch" --quiet
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function Joiner:_checkOptions() {
|
||||
for i in "$@"
|
||||
do
|
||||
case $i in
|
||||
-e=*|--extras=*)
|
||||
echo "Extras enabled"
|
||||
J_OPT[extra]="${i#*=}"
|
||||
shift
|
||||
;;
|
||||
--dev|-d)
|
||||
echo "Development enabled"
|
||||
J_OPT[dev]=true
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
# unknown option
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
function Joiner:menu() {
|
||||
PS3='[Please enter your choice]: '
|
||||
options=(
|
||||
"add-repo (a): download and install a module from git repository." # 1
|
||||
"upd-repo (u): update a module." # 2
|
||||
"add-git-submodule (s): download and install module from git repository as git submodule." # 3
|
||||
"add-file (f): download and install a file or zipped folder." # 4
|
||||
"remove (r): uninstall and remove a module." # 5
|
||||
"self-update (j): Update joiner version to the latest stable (master branch)"
|
||||
"quit: Exit from this menu"
|
||||
)
|
||||
|
||||
function _switch() {
|
||||
_reply="$1"
|
||||
shift
|
||||
|
||||
Joiner:_checkOptions
|
||||
|
||||
_opt="$@"
|
||||
|
||||
case $_reply in
|
||||
""|"a"|"add-repo"|"1")
|
||||
Joiner:add_repo $_opt
|
||||
;;
|
||||
""|"u"|"upd-repo"|"2")
|
||||
Joiner:upd_repo $_opt
|
||||
;;
|
||||
""|"s"|"add-git-submodule"|"3")
|
||||
Joiner:add_git_submodule $_opt
|
||||
;;
|
||||
""|"f"|"add-file"|"4")
|
||||
Joiner:add_file $_opt
|
||||
;;
|
||||
""|"r"|"remove"|"5")
|
||||
Joiner:remove $_opt
|
||||
;;
|
||||
""|"j"|"self-update"|"6")
|
||||
Joiner:self_update
|
||||
;;
|
||||
""|"quit"|"7")
|
||||
echo "Goodbye!"
|
||||
exit
|
||||
;;
|
||||
""|"--help")
|
||||
echo "Available commands:"
|
||||
printf '%s\n' "${options[@]}"
|
||||
echo "Arguments:"
|
||||
echo "-d, --dev: install also dev dependencies"
|
||||
echo "-e, --extras: install extra dependencies (suggested by module)"
|
||||
echo "-z, --unzip: extract a zipped file downloaded by add-file command"
|
||||
;;
|
||||
*) echo "invalid option, use --help option for the commands list";;
|
||||
esac
|
||||
}
|
||||
|
||||
while true
|
||||
do
|
||||
# run option directly if specified in argument
|
||||
[ ! -z $1 ] && _switch $@
|
||||
[ ! -z $1 ] && exit 0
|
||||
|
||||
echo ""
|
||||
echo "==== JOINER MENU ===="
|
||||
select opt in "${options[@]}"
|
||||
do
|
||||
echo ""
|
||||
_switch $REPLY
|
||||
break
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
# Call menu only when run from command line.
|
||||
# if you wish to run joiner menu when sourced
|
||||
# you must call the relative function
|
||||
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
||||
Joiner:menu $@
|
||||
else
|
||||
Joiner:_checkOptions $@
|
||||
fi
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/mysql_config
|
||||
mysql_tools_(for usr-local-bin)
|
||||
|
||||
#
|
||||
# Editors / debuggers / other output files
|
||||
#
|
||||
*~
|
||||
*.bak
|
||||
*.orig
|
||||
*.patch
|
||||
callgrind.out.*
|
||||
|
||||
.upt.json
|
||||
/mysql_config
|
||||
mysql_tools_(for usr-local-bin)
|
||||
|
||||
#
|
||||
# Editors / debuggers / other output files
|
||||
#
|
||||
*~
|
||||
*.bak
|
||||
*.orig
|
||||
*.patch
|
||||
callgrind.out.*
|
||||
|
||||
.upt.json
|
||||
12
deps/acore/mysql-tools/.gitrepo
vendored
Normal file
12
deps/acore/mysql-tools/.gitrepo
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
; DO NOT EDIT (unless you know what you are doing)
|
||||
;
|
||||
; This subdirectory is a git "subrepo", and this file is maintained by the
|
||||
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
|
||||
;
|
||||
[subrepo]
|
||||
remote = https://github.com/azerothcore/mysql-tools
|
||||
branch = master
|
||||
commit = 6e9f39989cf4769c8972fb575aecf2b0291f3e6e
|
||||
parent = 2668a0e170fbfd776380bf2d5edc4d0c39e0630d
|
||||
method = merge
|
||||
cmdver = 0.4.3
|
||||
@@ -1,62 +1,62 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# * Copyright (C) 2007 - 2015 Hyperweb2 All rights reserved.
|
||||
# * GNU General Public License version 3; see www.hyperweb2.com/terms/
|
||||
#
|
||||
# This file contains login/password information for accessing the MySQL database
|
||||
# and is used by all the mysql_* scripts.
|
||||
#
|
||||
|
||||
#
|
||||
# MYSQL
|
||||
#
|
||||
|
||||
# change these lines with your mysql config
|
||||
MYSQL_DB=test
|
||||
MYSQL_USER=usr
|
||||
MYSQL_PASS=pwd
|
||||
MYSQL_HOST=localhost
|
||||
#MYSQL_SOCK=/var/lib/mysql/mysql.sock
|
||||
|
||||
#
|
||||
# File Options
|
||||
#
|
||||
|
||||
# path of directory where extract separated tables ( without end slash )
|
||||
TPATH=./tables
|
||||
|
||||
# (boolean) clean directory before dump, in this way non-existant db tables will be deleted
|
||||
CLEANFOLDER=1
|
||||
|
||||
# path of file to extract database full dump
|
||||
FPATH=./full/full.sql
|
||||
|
||||
# (boolean) switch to enable(1)/disable(0) the dump/import of full db file
|
||||
# ( you can do it manually using command parameters )
|
||||
FULL=0
|
||||
|
||||
# (boolean) set 1 to enable --tab option for mysqldump and import data from it
|
||||
# it's very fast import/export process but doesn't utilize the insert query
|
||||
# NOTE: full db continue to be dumped with normal sql format
|
||||
# NOTE2: if you have problem with permissions ( mysql errorcode:13) mostly in linux
|
||||
# you should enable CHMODE config and disable/edit
|
||||
# some protections such as AppArmor in Ubuntu or SELinux in Fedora..
|
||||
|
||||
TEXTDUMPS=1
|
||||
|
||||
# (boolean) allow to change "TPATH" folder permissions to enable mysql server writing
|
||||
|
||||
CHMODE=0
|
||||
|
||||
|
||||
#
|
||||
# TOOLS OPTIONS
|
||||
#
|
||||
|
||||
#number of threads you want to use in TEXT import mode ( you can safely set it to your number of processor increasing process speed )
|
||||
THREADS=1
|
||||
|
||||
IMPORTOPTS_TEXT="--use-threads=$THREADS --local --compress --delete --lock-tables"
|
||||
|
||||
DUMPOPTS="--skip-comments --skip-set-charset --extended-insert --order-by-primary --single-transaction --quick"
|
||||
|
||||
#!/bin/bash
|
||||
#
|
||||
# * Copyright (C) 2007 - 2015 Hyperweb2 All rights reserved.
|
||||
# * GNU General Public License version 3; see www.hyperweb2.com/terms/
|
||||
#
|
||||
# This file contains login/password information for accessing the MySQL database
|
||||
# and is used by all the mysql_* scripts.
|
||||
#
|
||||
|
||||
#
|
||||
# MYSQL
|
||||
#
|
||||
|
||||
# change these lines with your mysql config
|
||||
MYSQL_DB=test
|
||||
MYSQL_USER=usr
|
||||
MYSQL_PASS=pwd
|
||||
MYSQL_HOST=localhost
|
||||
#MYSQL_SOCK=/var/lib/mysql/mysql.sock
|
||||
|
||||
#
|
||||
# File Options
|
||||
#
|
||||
|
||||
# path of directory where extract separated tables ( without end slash )
|
||||
TPATH=./tables
|
||||
|
||||
# (boolean) clean directory before dump, in this way non-existant db tables will be deleted
|
||||
CLEANFOLDER=1
|
||||
|
||||
# path of file to extract database full dump
|
||||
FPATH=./full/full.sql
|
||||
|
||||
# (boolean) switch to enable(1)/disable(0) the dump/import of full db file
|
||||
# ( you can do it manually using command parameters )
|
||||
FULL=0
|
||||
|
||||
# (boolean) set 1 to enable --tab option for mysqldump and import data from it
|
||||
# it's very fast import/export process but doesn't utilize the insert query
|
||||
# NOTE: full db continue to be dumped with normal sql format
|
||||
# NOTE2: if you have problem with permissions ( mysql errorcode:13) mostly in linux
|
||||
# you should enable CHMODE config and disable/edit
|
||||
# some protections such as AppArmor in Ubuntu or SELinux in Fedora..
|
||||
|
||||
TEXTDUMPS=1
|
||||
|
||||
# (boolean) allow to change "TPATH" folder permissions to enable mysql server writing
|
||||
|
||||
CHMODE=0
|
||||
|
||||
|
||||
#
|
||||
# TOOLS OPTIONS
|
||||
#
|
||||
|
||||
#number of threads you want to use in TEXT import mode ( you can safely set it to your number of processor increasing process speed )
|
||||
THREADS=1
|
||||
|
||||
IMPORTOPTS_TEXT="--use-threads=$THREADS --local --compress --delete --lock-tables"
|
||||
|
||||
DUMPOPTS="--skip-comments --skip-set-charset --extended-insert --order-by-primary --single-transaction --quick"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user