Compare commits

...

142 Commits

Author SHA1 Message Date
Yehonal 6f7a046575 Merge branch 'master' of git@github.com:azerothcore/azerothcore-wotlk.git into gh-master 2016-08-08 13:01:22 +02:00
Yehonal e54bfb31e4 Import pvpstats sql and fix previous updates with ALTER TABLE
Please test
2016-08-08 13:00:17 +02:00
Yehonal ce20864257 Merge pull request #43 from ShinDarth/git
Fixed Mac OS X build and minor changes to worldconf
2016-08-08 12:26:27 +02:00
Yehonal 83c9046ae3 Fixed compilation 2016-08-08 12:12:33 +02:00
Yehonal 28d7f59b32 Impl usefull functions 2016-08-08 11:51:59 +02:00
Yehonal 7a592e28e3 Fix for hardcoded commands security level 2016-08-08 11:51:42 +02:00
Yehonal 2ee9fb4eb3 Get Team Id by group Leader instead of random player 2016-08-08 11:51:02 +02:00
Yehonal 9cf50f7c87 Fix for DK pet , Thanks to Mik & Harlock 2016-08-08 11:50:38 +02:00
Yehonal 052fc7e1ae Removed useless configurations 2016-08-08 11:49:59 +02:00
Yehonal 4578edcc2f Minor changes for HandleBattleFieldPortOpcode 2016-08-08 11:49:33 +02:00
Yehonal e896daee11 Gossip script for items 2016-08-08 11:47:41 +02:00
Yehonal 8586373c9b Ensuring original team for this check 2016-08-08 11:47:03 +02:00
Yehonal 2636b90869 Improved ScriptMgr with more hooks 2016-08-08 11:46:34 +02:00
Yehonal 9d3f4767c0 Moved GetSkill in ItemPrototype 2016-08-08 11:44:22 +02:00
Yehonal 5517b99d06 Missing query for PVPSTATS 2016-08-08 11:39:57 +02:00
Yehonal 7d0943abe1 Missing code for XP Battlegrounds 2016-08-08 11:28:55 +02:00
Yehonal e358c0bb74 [CORE] Imported PVP stats , special thanks to Mik & Shin 2016-08-08 11:23:30 +02:00
Yehonal 895558c85c [CORE] Arena points rate , thanks to Mik1983 for import 2016-08-08 11:15:20 +02:00
ShinDarth a7a81f90b1 Merge branch 'master' into git 2016-08-07 14:55:21 +02:00
Gargarensis 1fcfb9af5a i forgot something 2016-08-07 13:03:52 +02:00
Yehonal 47c2b72123 Merging 2016-08-07 12:47:10 +02:00
Yehonal 16083b7115 [BASH] improved db assembler with more effective md5 check 2016-08-07 12:42:06 +02:00
Yehonal 2b5605da5c [CORE] force reloading of logs configurations at start
allowing sScriptMgr to change logs confs
2016-08-07 12:41:22 +02:00
mik1893 be9627d0d0 Core/Spells: Fix Spirit Heal (battleground), abilities with rage/energy should also have no cost 2016-08-07 12:38:10 +02:00
Yehonal 10699894e8 Fix Gargoyle dk being feared/confused properly 2016-08-07 12:37:54 +02:00
mik1893 88700a7c8c Some faction fixes 2016-08-07 12:36:00 +02:00
mik1893 a6a771a6e0 Toc5 - Fix also heroic factions 2016-08-07 12:35:33 +02:00
mik1893 3679de3710 Core/Unit: fix the 1/10000 chance to miss with 100% chance 2016-08-07 12:35:17 +02:00
mik1893 2aa3a463f0 Fix instance binding 2016-08-07 12:34:47 +02:00
mik1893 160da9450b Fix Zul Aman 2016-08-07 12:34:08 +02:00
mik1893 c08a5d5499 DB/Spell: Fix spell area issue with spell WGA Phase 2016-08-07 12:33:24 +02:00
Yehonal 7247f2a5ee [CORE] guild safety check only when two side guild interaction is disabled 2016-08-07 12:33:05 +02:00
mik1893 6773cd3128 Core/Spells: Fix Chain Heal 2016-08-07 12:32:36 +02:00
mik1893 5b51a76848 Core/ToC5: Fix faction issues on champion bosses 2016-08-07 12:31:40 +02:00
mik1893 a76afc6fdb Core/Spells: Judgements do not require facing 2016-08-07 12:31:23 +02:00
Yehonal 9bee4e2885 [DB] fix for wrong update file 2016-08-07 12:31:06 +02:00
mik1893 d9e4622e1a Core/Pet: Casting pet spells on enemies at a distance - now the pet goes at casting distance and does the cast 2016-08-07 12:30:23 +02:00
Yehonal 0ca7526822 Core/Spells: DK Dancing Rune weapon diseases now count towards Heart Strike bonus damage 2016-08-07 12:30:02 +02:00
Yehonal 5b824569a9 [CORE] Rewritten ScriptMgr to be initialized before server load
Now ScriptMgr can be initialized before config allowing

to create scripts that can change the behaviour of

server before loading anything
2016-08-07 12:28:17 +02:00
Yehonal e5f8ecd7ec [BASH] allow additional custom config for cmake 2016-08-07 12:26:30 +02:00
mik1893 cb34241544 Fix issue in db query 2016-08-07 12:26:18 +02:00
mik1893 5e97846bbf Fix Compile 2016-08-07 12:26:07 +02:00
Yehonal 444012104b Core/Tickets: Ticket System updated 2016-08-07 12:25:59 +02:00
Yehonal 2ca258e179 [CORE] implemented multiple configuration files loading
currently it's used to load the default [auth|world]server.conf.dist

but you can use sConfigMgr->LoadMore to load your custom config

in your modules to add/overwrite properties
2016-08-07 12:24:19 +02:00
Yehonal 648163a2e0 Fixed .gitignore to support modules inclusion 2016-08-07 12:24:00 +02:00
Yehonal 4a3afdb448 loading modules for bash system 2016-08-07 12:23:48 +02:00
Yehonal a3a6488f51 [DB] implemented automatic version retrieving 2016-08-07 12:23:39 +02:00
Yehonal 5d5718905a fixed db_assembler script 2016-08-07 12:23:11 +02:00
Yehonal 41d763fd19 [DB] Renamed databases -> base 2016-08-07 12:23:03 +02:00
Yehonal 8c3067a039 [DB] moved full databases in folder
to support splitted sql files soon
2016-08-07 12:22:47 +02:00
Yehonal ca53686579 ignoring conf for db_assembler 2016-08-07 12:22:36 +02:00
Yehonal a549500b01 fix buildpath in compilation script 2016-08-07 12:22:03 +02:00
Yehonal 1aef789c85 [Core/Cmake] Scripts are now added dynamically
You can now add your scripts using cmake inside your module
instead patch core cpp files
2016-08-07 12:21:52 +02:00
mik1893 e72b8ac1cc Core/Wintergrasp: Fix Wintergrasp tenacity 2016-08-07 12:20:10 +02:00
mik1893 5d3a91576e Core/Battleground: Fix reputation assignment in case of switched team 2016-08-07 12:19:57 +02:00
Yehonal 69aa0b47b8 Core/Player: Check original faction in case of quest-reputations-items 2016-08-07 12:16:05 +02:00
Yehonal 2c6264915e fixed cmake and compilation 2016-08-07 12:11:23 +02:00
Yehonal 765fad6133 some fixes to bash config files 2016-08-07 12:10:51 +02:00
mik1893 4da34f630f Core/Pet: Gargoyle now attacks Ghoul target, thx Harlock 2016-08-07 12:10:22 +02:00
Yehonal 42ad4da954 starting bash rewriting job [WIP] 2016-08-07 12:10:05 +02:00
Yehonal 548d0db9d5 skip inclusion of modules without CMakeLists
+ added hook for after load conf
2016-08-07 12:09:56 +02:00
Yehonal 4c47ac3d9b updated docs with latest revision 2016-08-07 12:09:40 +02:00
Yehonal b0bc413af7 created install script
It works on all platform that supports basic bash

( windows, linux, osx etc )
2016-08-07 12:08:56 +02:00
Gargarensis 3917cf0965 fix loot for mindless servant 2016-08-07 12:08:41 +02:00
mik1893 5f04d03f75 Allow rewarding kills from same ip address 2016-08-07 12:08:23 +02:00
Yehonal e978ec306b [CMAKE] Hooks for after binaries cmakes 2016-08-07 12:07:54 +02:00
Yehonal 479176d328 [CORE] Impl. GetTeamId parameter to get original team 2016-08-07 12:06:34 +02:00
Yehonal d1b8eea42f configuration system for cmake
- moved cmake options under conf
and created default/custom configuration system for cmake
2016-08-07 12:02:55 +02:00
Yehonal b91b679669 Fix import BG rate exp 2016-08-07 12:00:52 +02:00
Yehonal 2fc723e92c [Core] Fix compile when include InstanceSaveMgr 2016-08-07 11:48:55 +02:00
ShinDarth b96f058c17 Fix clang build 2016-08-06 19:26:03 +02:00
ShinDarth 16baf121f1 Replace some labels 2016-08-06 19:15:55 +02:00
ShinDarth d252bbc586 Fix DB-assembler on Mac OS X 2016-08-06 18:59:25 +02:00
Yehonal df78f91e0c Merge pull request #32 from ShinDarth/welcome-text
Core/Misc improved welcome message
2016-07-25 16:34:56 +02:00
Yehonal e69d1b96af Merge pull request #30 from ShinDarth/misc
Misc improvements
2016-07-25 16:32:08 +02:00
Bodeguero d16d8fde70 Core/Misc improved welcome message 2016-07-24 17:03:47 +02:00
ShinDarth 68e0035ad9 Added VS Code system file to the .gitignore 2016-07-24 16:59:46 +02:00
ShinDarth 59d3a438f5 Credits to SunwellCore, TrinityCore and MaNGOS authors 2016-07-24 16:14:13 +02:00
ShinDarth b618b6a56f Added AzerothCore labels 2016-07-24 15:55:38 +02:00
Yehonal 033924d8b4 Merge pull request #19 from Bodeguero/System_Travis_CI
Core/Fixes: Added System Travis CI.
2016-07-20 18:11:55 +02:00
Yehonal d05abc374e Merge pull request #20 from ShinDarth/patch-1
Added basic README information
2016-07-20 18:11:28 +02:00
Francesco Borzì e371c757de Added basic README information 2016-07-20 17:29:33 +02:00
Bodeguero 80bc3daae2 Core/Fixes: Added System Travis CI.
PS: Look Integration: https://docs.travis-ci.com/user/getting-started/
2016-07-20 10:52:17 -04:00
mik1893 eec8b797e0 [Core/Script] As the crow flies - delete horrible hack and properly fix 2016-07-14 23:02:05 +02:00
Yehonal 5aabfac4bf fixed alter table for update sql 2016-07-14 23:02:00 +02:00
Yehonal 2b960b42d0 Merge pull request #8 from lellonicole/quest_addingInjuryToInsult
[Db/Quest] Adding injury to insult, fix mob speed run
2016-07-14 09:07:33 +02:00
Yehonal 6dcb9a9285 Merge pull request #10 from lellonicole/Kelthuzad_mainGate
[Core/Script] Kelthuzad, add door open/close on combat state change
2016-07-14 09:07:29 +02:00
Yehonal c71e63d75d Merge pull request #11 from lellonicole/CastSpellOnPlayer_pvpZone
[Core/Mechanics] Player, add support to gameobject to cast spell on p…
2016-07-14 09:07:26 +02:00
Yehonal 0d275e8e38 Merge pull request #7 from lellonicole/gunship_mage
[Core/Script] Gunship battle, fix evade for battlemage & [Core/script] Quest, fix complete quest and remove morph on movementSpline complete
2016-07-12 10:39:42 +02:00
lellonicole d8be5aaa0e Correct tab4space to naxxramas.h 2016-07-12 09:33:42 +02:00
lello 3323fc00c6 [Core/Mechanics] Player, add support to gameobject to cast spell on player in Pv…
…p zone. Also fix quest 9422/9419
2016-07-12 01:40:48 +02:00
lello 56f28b2f0d [Core/Script] Kelthuzad, add door open/close on combat state change 2016-07-12 01:31:34 +02:00
lello 2886a9a0f5 [DB/Quest] Fix speed_run creature 2016-07-12 01:16:55 +02:00
lello 9220456edb [Core/Script] Gunship battle, fix evade battle mage 2016-07-12 00:48:18 +02:00
lello e010dbf3fa [Core/Script] As the crow flies, fix quest complete and remove morph at movement complete 2016-07-11 23:38:26 +02:00
Yehonal b1e9ba9994 Merge pull request #5 from lellonicole/master
[DB/Creature] Midsummer fire festival, fix some bugs to gobject/creature
2016-07-11 23:26:00 +02:00
lello ad3d901931 [DB/Creature] Midsummer fire festival, fix some bugs to gobject/creature 2016-07-11 15:30:30 +02:00
Yehonal 7ed24f48bc Rename README to README.md 2016-07-10 19:59:52 +02:00
Yehonal bb43022497 Create README 2016-07-10 19:59:04 +02:00
Yehonal f54866dcf1 moved @lellonicole sql update under correct folder
adding versioning too
2016-07-10 18:28:33 +02:00
Yehonal e50d560ad6 Merge pull request #4 from lellonicole/master
[Core/Script] Gundrak, fix spawn Eck only in heroic mode
2016-07-10 18:07:24 +02:00
lello 326200c62b [DB/Quest] Torch Catching, fix quest spell id 2016-07-10 18:03:49 +02:00
lello 678429bcd5 [Core/Script] Gundrak, fix spawn Eck only in heroic mode 2016-07-10 17:38:05 +02:00
Yehonal 83fe345c6e removed useless files from various data 2016-07-10 17:17:20 +02:00
Yehonal 1e21bab2f3 updated characters db with pvpstats tables 2016-07-10 17:17:14 +02:00
Yehonal 21ea24267e updated auth with autobroadcast table 2016-07-10 17:17:02 +02:00
Yehonal 64e7daeb54 minor change on config.sh.dist 2016-07-10 17:16:57 +02:00
mik1893 74507831e0 Force CMAKE to check for MYSQL libraries - do not use mysql sources 2016-07-10 17:16:36 +02:00
mik1893 e1ddffb2ed Fix compile VS2015 2016-07-10 17:16:30 +02:00
Yehonal ac2d30abe1 reorganized sql 2016-07-10 17:15:46 +02:00
Yehonal 97c3f36d2b implemented first version of db_assembler script 2016-07-10 17:14:52 +02:00
Yehonal 6028585ea0 added 2 cmake hooks for game library 2016-07-10 17:14:22 +02:00
Yehonal 3c517a2b0e compilation fixed 2016-07-10 17:14:06 +02:00
lello c1db268e67 [Core/Boss] Oculus/Orum, fix spawn mob position 2016-07-10 17:13:27 +02:00
Yehonal a816d11f74 ignoring bash compiler configuration 2016-07-10 17:12:50 +02:00
Yehonal c170910cc2 fixed path inclusion 2016-07-10 17:12:36 +02:00
Yehonal 03cc9e5a18 removed deprecated defines 2016-07-10 17:12:17 +02:00
Yehonal 0a376a3e20 improved cmake hook system 2016-07-10 17:12:10 +02:00
Yehonal cd61ed610a Implemented dynamic module loading and hooks system for cmake 2016-07-10 17:11:51 +02:00
Yehonal 9e19774c45 ignoring IDE & other softwares specific files 2016-07-10 17:11:44 +02:00
Yehonal ac7ed64dd2 added github wiki repo ( submodule ) as doc folder 2016-07-10 17:11:37 +02:00
Yehonal 9fd22872c0 restructured repository based on following standards:
https://github.com/HW-Core/directory-structure
2016-07-08 23:58:11 +02:00
yehonal eda1171939 readme for compiler scripts 2016-07-08 23:55:11 +02:00
yehonal aaa7a82ca0 commented security hacks 2016-07-08 23:54:59 +02:00
mik1893 b88e0fe9a8 Fix Compile Unix 2016-07-08 23:54:33 +02:00
mik1893 741bbd3109 Fix Unix/Windows Compile (timezone issue) 2016-07-08 23:54:30 +02:00
mik1893 13d8210867 Fix VS2015 Compile - Part 2 2016-07-08 23:54:26 +02:00
mik1893 f978f833b0 Fix VS2015 Compile 2016-07-08 23:54:22 +02:00
yehonal 63b5613a7a flags for compiler 2016-07-08 23:54:10 +02:00
Yehonal 3d9dd30cea Merge pull request #2 from AzerothShard-Dev/prose-patch-1
Updated README.md
2016-07-02 00:58:07 +02:00
AzerothShard-Dev d9d8dc713d Updated README.md 2016-07-02 00:57:41 +02:00
Yehonal d2102394fe Update README.md 2016-06-30 17:09:57 +02:00
Yehonal 26879bea8b Update README.md 2016-06-29 10:46:39 +02:00
Yehonal f419d54db7 Create README.md 2016-06-28 02:36:40 +02:00
yehonal 540a9d8916 uploading compiler scripts 2016-06-27 16:40:47 +02:00
yehonal bf139c3d34 Removing multi-vendor Rochet2 patch
It caused compilation errors too
2016-06-27 00:19:46 +02:00
Yehonal f6eefedcd5 converted all tabs to 4 spaces 2016-06-26 19:23:57 +02:00
Yehonal 52f305111c importing changes from callmephil repo
a special thanks to him
2016-06-26 19:22:35 +02:00
Yehonal 5bb70a86be Merge branch 'master' of https://github.com/azerothcore/azerothcore.git 2016-06-26 17:50:05 +02:00
Yehonal 6bc919e7d4 fix compilation 2016-06-26 17:33:35 +02:00
mik1893 0c102b79de Fix MMAPS Generation 2016-06-26 12:51:33 +01:00
mik1893 d8b67c27cc Add GitIgnore 2016-06-26 12:51:16 +01:00
3326 changed files with 137683 additions and 136260 deletions
+66
View File
@@ -0,0 +1,66 @@
#
# AzerothCore
#
conf/*
!conf/*.dist
modules/*
#
# Allow modules to control git ignoring
#
!modules/*
modules/*/*
!modules/*/.gitignore
build*/
#
#Generic
#
.directory
.mailmap
*.orig
*.rej
*~
.hg/
*.kdev*
.DS_Store
CMakeLists.txt.user
*.bak
*.patch
*.diff
*.REMOTE.*
*.BACKUP.*
*.BASE.*
*.LOCAL.*
#
# IDE & other softwares
#
/.settings/
/.externalToolBuilders/*
# exclude in all levels
nbproject/
.sync.ffs_db
*.kate-swp
.browse.VC*
.vscode
#
# Eclipse
#
*.pydevproject
.metadata
.gradle
tmp/
*.tmp
*.swp
*~.nib
local.properties
.settings/
.loadpath
.project
.cproject
+3
View File
@@ -0,0 +1,3 @@
[submodule "data/doc"]
path = data/doc
url = https://github.com/azerothcore/azerothcore-wotlk.wiki.git
+44
View File
@@ -0,0 +1,44 @@
# Copyright (C)
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
language: cpp
git:
depth: 1
branches:
only:
- master
compiler:
- clang
- gcc ## Uncomment when we are up to full c++11 standards.
before_install:
- sudo add-apt-repository ppa:kalakris/cmake -y
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo add-apt-repository 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.7 main'
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install clang-3.7
- sudo apt-get install libace-dev
- sudo apt-get install libncurses5-dev
- sudo apt-get install build-essential autoconf libtool make cmake git-core patch wget links zip unzip unrar
- sudo apt-get install openssl libssl-dev mysql-server mysql-client libmysqlclient15-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev
- if [ "$CXX" = "clang++" ]; then sudo apt-get install -qq libstdc++-4.8-dev; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
script:
- mkdir build
- cd build
- cmake ../ -DSCRIPTS=1 -DTOOLS=1
- make -j8
+36 -18
View File
@@ -1,15 +1,15 @@
# Copyright (C)
# Copyright (C)
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Set projectname (must be done AFTER setting configurationtypes)
project(SunwellCore)
project(AzerothCore)
# CMake policies (can not be handled elsewhere)
cmake_minimum_required(VERSION 2.8)
@@ -26,19 +26,29 @@ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH 1)
# set macro-directory
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/macros")
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/src/cmake/macros")
include(CheckCXXSourceRuns)
include(CheckIncludeFiles)
# some utils for cmake
include(src/cmake/utils.cmake)
# set default buildoptions and print them
include(conf/config.cmake.dist)
# load custom configurations for cmake if exists
if(EXISTS "conf/config.cmake")
include(conf/config.cmake)
endif()
RUN_HOOK("AFTER_LOAD_CONF")
# build in Release-mode by default if not explicitly set
if( NOT CMAKE_BUILD_TYPE )
set(CMAKE_BUILD_TYPE "Release")
endif()
include(CheckCXXSourceRuns)
include(CheckIncludeFiles)
# set default buildoptions and print them
include(cmake/options.cmake)
# turn off PCH totally if enabled (hidden setting, mainly for devs)
if( NOPCH )
set(USE_COREPCH 0)
@@ -55,10 +65,7 @@ find_package(PCHSupport)
find_package(ACE REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(Threads REQUIRED)
if( NOT USE_MYSQL_SOURCES )
find_package(MySQL REQUIRED)
endif()
find_package(MySQL REQUIRED)
if( UNIX )
find_package(Readline)
@@ -71,13 +78,24 @@ endif()
#endif()
# Find revision ID and hash of the sourcetree
include(cmake/genrev.cmake)
include(src/cmake/genrev.cmake)
# print out the results before continuing
include(cmake/showoptions.cmake)
include(src/cmake/showoptions.cmake)
# add dependencies
add_subdirectory(dep)
# add modules and dependencies
AZTH_SUBDIRLIST(sub_DIRS "${CMAKE_SOURCE_DIR}/modules" FALSE FALSE)
FOREACH(subdir ${sub_DIRS})
STRING(REGEX REPLACE "^${CMAKE_SOURCE_DIR}/" "" subdir_rel ${subdir})
if(EXISTS "${subdir}/CMakeLists.txt")
message("Loading module: ${subdir_rel}")
add_subdirectory("${subdir_rel}")
endif()
ENDFOREACH()
RUN_HOOK("BEFORE_SRC_LOAD")
# add core sources
add_subdirectory(src)
RUN_HOOK("AFTER_SRC_LOAD")
+34
View File
@@ -0,0 +1,34 @@
# AzerothCore
[![Gitter](https://badges.gitter.im/azerothcore/azerothcore.svg)](https://gitter.im/azerothcore/azerothcore?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
## Introduction
AzerothCore is an open source game-server application for World of Warcraft, currently supporting the 3.3.5a game version.
It is written in C++ and based on MaNGOS, TrinityCore and SunwellCore.
## Why AzerothCore?
Our main goal is to create a playable game server, offering a fully working game experience. In short, we focus on the **user experience (UX)**.
Like MaNGOS and TrinityCore did in past, we like to write clean code and doing software development right, but **our main goal is to have fully working features**. In other terms, we always prefer proper solutions to problems, but we may accept "*hackfixes*" (when they do not affect the game stability) if a proper solution is not available yet.
We also believe in [software modularity](https://en.wikipedia.org/wiki/Modular_programming), because the more the software is modular, and the more it will be easy to be maintained, understood, developed, etc...
## Work in progress...
The project is still under a work in progress phase, so all guidelines may not be available yet and PRs may be not merged immediately, but feel free to starting contributing. We will love to review and accept your PRs.
## Authors & Contributors
This project is brought to you thanks to:
- The [AzerothCore developers and contributors](https://github.com/AzerothCore/azerothcore-wotlk/graphs/contributors)
- The SunwellCore developers **xinef** and **pussywizard**
- All the [TrinityCore developers and contributors](https://github.com/TrinityCore/TrinityCore/blob/3.3.5/THANKS)
- All the [MaNGOS, ScriptDev2 and UDB developers and contributors](https://github.com/cmangos/mangos-wotlk/blob/master/AUTHORS.md)
## Links
- [Website](https://azerothcore.github.io/)
+7
View File
@@ -0,0 +1,7 @@
AZTH_PATH_ROOT=$(readlink -f "$AZTH_PATH_BIN/../")
AZTH_PATH_CONF="$AZTH_PATH_ROOT/conf"
AZTH_PATH_MODULES="$AZTH_PATH_ROOT/modules"
AZTH_PATH_CUSTOM=$(readlink -f "$AZTH_PATH_ROOT/../azth_custom")
+16
View File
@@ -0,0 +1,16 @@
# par 1: hook_name
function runHooks() {
hook_name="HOOKS_MAP_$1"
read -r -a SRCS <<< ${!hook_name}
echo "Running hooks: $hook_name"
for i in "${SRCS[@]}"
do
$i # run registered hook
done
}
function registerHooks() {
hook_name="HOOKS_MAP_$1"
hooks=${@:2}
declare -g "$hook_name+=$hooks "
}
+24
View File
@@ -0,0 +1,24 @@
AZTH_PATH_BIN="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
AZTH_PATH_SHARED="$AZTH_PATH_BIN/bash_shared"
source "$AZTH_PATH_SHARED/defines.sh"
source "$AZTH_PATH_SHARED/functions.sh"
source "$AZTH_PATH_CONF/config.sh.dist" # "hack" to avoid missing conf variables
if [ -f "$AZTH_PATH_CONF/config.sh" ]; then
source "$AZTH_PATH_CONF/config.sh" # should overwrite previous
fi
#
# Load modules
#
for entry in "$AZTH_PATH_MODULES/"*/include.sh
do
if [ -e $entry ]; then
source $entry
fi
done
+2
View File
@@ -0,0 +1,2 @@
config.sh
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
bash "$CURRENT_PATH/compiler.sh" 1
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
bash "$CURRENT_PATH/compiler.sh" 2
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
bash "$CURRENT_PATH/compiler.sh" 3
+24
View File
@@ -0,0 +1,24 @@
## How to compile:
first of all, if you need some custom configuration you have to copy and rename
/conf/config.sh.dist in /conf/config.sh and configure it
* for a "clean" compilation you must run all scripts in their order:
./1-clean.sh
./2-configure.sh
./3-build.sh
* if you add/rename/delete some sources and you need to compile it you have to run:
./2-configure.sh
./3-build.sh
* if you have modified code only, you just need to run
./3-build.sh
## Note:
For an optimal development process and **really faster** compilation time, is suggested to use clang instead of gcc
+43
View File
@@ -0,0 +1,43 @@
#!/bin/bash
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$CURRENT_PATH/includes/includes.sh"
function all() {
clean
configure
build
}
function run_option() {
if test "${comp_functions[$1-1]+'test'}"; then
${comp_functions[$1-1]}
else
echo "invalid option"
fi
}
comp_options=("Clean" "Configure" "Build" "All")
comp_functions=("clean" "configure" "build" "all")
runHooks "ON_AFTER_OPTIONS" #you can create your custom options
# push exit after custom options
comp_options+=('Exit')
comp_functions+=('exit 0')
# run option directly if specified in argument
[ ! -z $1 ] && run_option $1 && exit 0
PS3='[ Please enter your choice ]: '
select opt in "${comp_options[@]}"
do
case $opt in
'Exit')
break
;;
*)
run_option $REPLY
;;
esac
done
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
# you can choose build type from cmd argument
if [ ! -z $1 ]
then
CCTYPE=$1
CCTYPE=${CCTYPE^} # capitalize first letter if it's not yet
fi
BUILDPATH=$BINPATH
INSTALL_PATH=$(readlink -f "$BINPATH/../")
[ $CTYPE == "Debug" ] && BUILDPATH="$BUILDPATH/debug/build/" || BUILDPATH="$BUILDPATH/release/build/"
[ $CTYPE == "Debug" ] && BINPATH="$BINPATH/debug" || BINPATH="$BINPATH/release"
+57
View File
@@ -0,0 +1,57 @@
function clean() {
echo "Cleaning build files"
CWD=$(pwd)
cd $BUILDPATH
make -f Makefile clean
make clean
find -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} \+
cd $CWD
}
function configure() {
CWD=$(pwd)
cd $BUILDPATH
echo "Build path: $BUILDPATH"
echo "DEBUG info: $CDEBUG"
echo "Compilation type: $CTYPE"
# -DCMAKE_BUILD_TYPE=$CCTYPE disable optimization "slow and huge amount of ram"
# -DWITH_COREDEBUG=$CDEBUG compiled with debug information
#-DSCRIPTS_COMMANDS=$CSCRIPTS -DSCRIPTS_CUSTOM=$CSCRIPTS -DSCRIPTS_EASTERNKINGDOMS=$CSCRIPTS -DSCRIPTS_EVENTS=$CSCRIPTS -DSCRIPTS_KALIMDOR=$CSCRIPTS \
#-DSCRIPTS_NORTHREND=$CSCRIPTS -DSCRIPTS_OUTDOORPVP=$CSCRIPTS -DSCRIPTS_OUTLAND=$CSCRIPTS -DSCRIPTS_PET=$CSCRIPTS -DSCRIPTS_SPELLS=$CSCRIPTS -DSCRIPTS_WORLD=$CSCRIPTS \
#-DAZTH_WITH_UNIT_TEST=$CAZTH_UNIT_TEST -DAZTH_WITH_PLUGINS=$CAZTH_PLG \
cmake $SRCPATH -DCMAKE_INSTALL_PREFIX=$BINPATH -DCONF_DIR=$CONFDIR -DSERVERS=$CSERVERS \
-DSCRIPTS=$CSCRIPTS \
-DTOOLS=$CTOOLS -DUSE_SCRIPTPCH=$CSCRIPTPCH -DUSE_COREPCH=$CCOREPCH -DWITH_COREDEBUG=$CDEBUG -DCMAKE_BUILD_TYPE=$CTYPE -DWITH_WARNINGS=$CWARNINGS \
-DCMAKE_C_COMPILER=$CCOMPILERC -DCMAKE_CXX_COMPILER=$CCOMPILERCXX $CCUSTOMOPTIONS
cd $CWD
runHooks "ON_AFTER_CONFIG"
}
function build() {
[ $MTHREADS == 0 ] && MTHREADS=`grep -c ^processor /proc/cpuinfo` && MTHREADS=$(($MTHREADS + 2))
echo "Using $MTHREADS threads"
CWD=$(pwd)
cd $BUILDPATH
time make -j $MTHREADS
make -j $MTHREADS install
cd $CWD
runHooks "ON_AFTER_BUILD"
}
+23
View File
@@ -0,0 +1,23 @@
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$CURRENT_PATH/../../bash_shared/includes.sh"
AZTH_PATH_COMPILER="$AZTH_PATH_BIN/compiler"
if [ -f "$AZTH_PATH_COMPILER/config.sh" ]; then
source "$AZTH_PATH_COMPILER/config.sh" # should overwrite previous
fi
function azth_on_after_build() {
# move the run engine
cp -rvf "$AZTH_PATH_BIN/runners/"* "$INSTALL_PATH/bin/"
}
registerHooks "ON_AFTER_BUILD" azth_on_after_build
source "$AZTH_PATH_COMPILER/includes/defines.sh"
source "$AZTH_PATH_COMPILER/includes/functions.sh"
mkdir -p $BUILDPATH
mkdir -p $BINPATH
+2
View File
@@ -0,0 +1,2 @@
/output/
config.sh
+154
View File
@@ -0,0 +1,154 @@
#!/bin/bash
unamestr=`uname`
if [[ "$unamestr" == 'Darwin' ]]; then
SRCPATH=$(greadlink -f "../../")
else
SRCPATH=$(readlink -f "../../")
fi
source $SRCPATH"/bin/bash_shared/includes.sh"
if [ -f "./config.sh" ]; then
source "./config.sh" # should overwrite previous
fi
unamestr=`uname`
if [[ "$unamestr" == 'Darwin' ]]; then
MD5_CMD="md5"
else
MD5_CMD="md5sum"
fi
reg_file="$OUTPUT_FOLDER/.zzz_db_assembler_registry.sh"
declare -A registry
if [ -f "$reg_file" ]; then
source "$reg_file"
fi
echo "===== STARTING PROCESS ====="
function assemble() {
database=$1
start_sql=$2
var_base="DB_"$database"_PATHS"
base=${!var_base}
var_updates="DB_"$database"_UPDATE_PATHS"
updates=${!var_updates}
var_custom="DB_"$database"_CUSTOM_PATHS"
custom=${!var_custom}
suffix_base=""
suffix_upd=""
suffix_custom=""
if (( $ALL_IN_ONE == 0 )); then
suffix_base="_base"
fi;
echo "" > $OUTPUT_FOLDER$database$suffix_base".sql"
if [ ! ${#base[@]} -eq 0 ]; then
echo "Generating $OUTPUT_FOLDER$database$suffix_base ..."
for d in "${base[@]}"
do
if [ ! -z $d ]; then
for entry in "$d"/*.sql "$d"/**/*.sql
do
if [[ -e $entry ]]; then
cat "$entry" >> $OUTPUT_FOLDER$database$suffix_base".sql"
fi
done
fi
done
fi
if (( $ALL_IN_ONE == 0 )); then
suffix_upd="_updates"
echo "" > $OUTPUT_FOLDER$database$suffix_upd".sql"
fi;
if [ ! ${#updates[@]} -eq 0 ]; then
echo "Generating $OUTPUT_FOLDER$database$suffix_upd ..."
for d in "${updates[@]}"
do
if [ ! -z $d ]; then
for entry in "$d"/*.sql "$d"/**/*.sql
do
if [[ ! -e $entry ]]; then
continue
fi
file=$(basename "$entry")
hash=$($MD5_CMD "$entry")
hash="${hash%% *}" #remove file path
if [[ -z ${registry[$hash]} ]]; then
registry["$hash"]="$file"
echo "-- New update sql: "$file
cat "$entry" >> $OUTPUT_FOLDER$database$suffix_upd".sql"
fi
done
fi
done
fi
if (( $ALL_IN_ONE == 0 )); then
suffix_custom="_custom"
echo "" > $OUTPUT_FOLDER$database$suffix_custom".sql"
fi;
if [ ! ${#custom[@]} -eq 0 ]; then
echo "Generating $OUTPUT_FOLDER$database$suffix_custom ..."
for d in "${custom[@]}"
do
if [ ! -z $d ]; then
for entry in "$d"/*.sql "$d"/**/*.sql
do
if [[ ! -e $entry ]]; then
continue
fi
file=$(basename "$entry")
hash=$($MD5_CMD "$entry")
hash="${hash%% *}" #remove file path
if [[ -z ${registry[$hash]} ]]; then
registry["$hash"]="$file"
echo "-- New custom sql: "$file
cat "$entry" >> $OUTPUT_FOLDER$database$suffix_custom".sql"
fi
done
fi
done
fi
}
mkdir -p $OUTPUT_FOLDER
for db in ${DATABASES[@]}
do
assemble "$db" $version".sql"
done
echo "" > $reg_file
for i in "${!registry[@]}"
do
echo "registry['"$i"']='"${registry[$i]}"'" >> "$reg_file"
done
echo "===== DONE ====="
+68
View File
@@ -0,0 +1,68 @@
#!/bin/bash
function checkStatus() {
if [ -d "/proc/"$1 ]; then
eval "TEST=1"
else
eval "TEST=0"
fi
}
function starter() {
local CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $BINPATH
mkdir -p "$LOGS_PATH"
TRACE_BEGIN_STRING="SIGSEGV"
TRACE_FILE="$LOGS_PATH/"$SCREEN_NAME"_trace.log"
ERR_FILE="$LOGS_PATH/"$SCREEN_NAME"_error.log"
SYSLOG="$LOGS_PATH/"$SCREEN_NAME"_system.log"
SYSERR="$LOGS_PATH/"$SCREEN_NAME"_system.err"
LINKS_FILE="$LOGS_PATH/"$SCREEN_NAME"_crash_links.link"
$CURRENT_PATH/starter $SERVERBIN $GDB "$CONFIG" "$SYSLOG" "$SYSERR" $GDB_ENABLED
}
function restarter() {
local CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $BINPATH
mkdir -p "$LOGS_PATH"
TRACE_BEGIN_STRING="SIGSEGV"
TRACE_FILE="$LOGS_PATH/"$SCREEN_NAME"_trace.log"
ERR_FILE="$LOGS_PATH/"$SCREEN_NAME"_error.log"
SYSLOG="$LOGS_PATH/"$SCREEN_NAME"_system.log"
SYSERR="$LOGS_PATH/"$SCREEN_NAME"_system.err"
LINKS_FILE="$LOGS_PATH/"$SCREEN_NAME"_crash_links.link"
if [ ! -f $TRACE_FILE ]; then
touch $TRACE_FILE
fi
while :
do
PID=$(cat $SERVERPID)
checkStatus $PID
if [ $TEST -eq 0 ]; then
DATE=$(date)
echo "Restarting $SCREEN_NAME Core blizz($DATE)"
if [ $GDB_ENABLED -eq 1 ]; then
echo "GDB enabled"
grep -B 10 -A 1800 "$TRACE_BEGIN_STRING" "$SYSLOG" >> "$TRACE_FILE"
cat "$SYSERR" > "$ERR_FILE"
screen -A -m -d -S $SCREEN_NAME "$CURRENT_PATH/starter" $SERVERBIN $GDB "$CONFIG" "$SYSLOG" "$SYSERR" 1
fi
if [ $GDB_ENABLED -eq 0 ]; then
echo "GDB disabled"
screen -A -m -d -S $SCREEN_NAME "$CURRENT_PATH/starter" $SERVERBIN null "$CONFIG" null null 0
fi
fi
sleep 15
done
}
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
GDB_FILE="$2"
CONFIG="$3"
SYSLOG="$4"
SYSERR="$5"
GBD_ENABLED="$6"
if [ $GBD_ENABLED -eq 1 ]; then
echo "set logging on" > "$GDB_FILE"
echo "set debug timestamp" >> "$GDB_FILE"
echo "run -c $3" >> "$GDB_FILE"
echo "bt" >> "$GDB_FILE"
[ ! -f "$SYSLOG" ] && touch "$SYSLOG"
[ ! -f "$SYSERR" ] && touch "$SYSERR"
gdb -x $GDB_FILE --batch $1 >> "$SYSLOG" 2>> "$SYSERR"
elif [ $GBD_ENABLED -eq 0 ]; then
"./$1" -c "$CONFIG"
fi
@@ -1,13 +1,3 @@
# Copyright (C)
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
option(SERVERS "Build worldserver and authserver" 1)
option(SCRIPTS "Build core with scripts included" 1)
option(TOOLS "Build map/vmap/mmap extraction/assembler tools" 0)
+132
View File
@@ -0,0 +1,132 @@
#!/bin/bash
#!/bin/bash
# absolute root path of your azerothshard repository
SRCPATH="$AZTH_PATH_ROOT"
# absolute path where binary files must be stored
BINPATH="$AZTH_PATH_ROOT/build/"
# absolute path where config. files must be stored
CONFDIR="$AZTH_PATH_ROOT/build/etc/"
##############################################
#
# COMPILER_CONFIGURATIONS
#
##############################################
# set preferred compilers
#CCOMPILERC="/usr/bin/clang-3.6"
#CCOMPILERCC="/usr/bin/clang-3.6"
#CCOMPILERCXX="/usr/bin/clang++-3.6"
CCOMPILERC="/usr/bin/gcc"
CCOMPILERCC="/usr/bin/gcc"
CCOMPILERCXX="/usr/bin/g++"
# how many thread must be used for compilation ( leave zero to use all available )
MTHREADS=0
# enable/disable warnings during compilation
CWARNINGS=1
# enable/disable some debug informations ( it's not a debug compilation )
CDEBUG=0
# specify compilation type
CTYPE=Release
# compile scripts
CSCRIPTS=1
# compile server
CSERVERS=1
# compile tools
CTOOLS=0
# use precompiled headers ( fatest compilation but not optimized if you change headers often )
CSCRIPTPCH=1
CCOREPCH=1
# you can add your custom definitions here ( -D )
CCUSTOMOPTIONS=""
##############################################
#
# RUNNER CONFIGURATION
#
##############################################
# enable/disable GDB execution
export GDB_ENABLED=0
# gdb file
export GDB=""
# directory where binary are stored
export BINPATH=""
### Put here the pid you configured on your worldserver.conf file ###
export SERVERPID=""
# path to conf file
export CONFIG=""
# path of log files
export LOGS_PATH="";
# exec name
export SERVERBIN=""
# name of screen service ( for restarter )
export SCREEN_NAME=""
##############################################
#
# DB ASSEMBLER CONFIGURATIONS
#
##############################################
# 0 if you want create an sql for each kind of following categories
# 1 to create a single big file to import ( suggested for new installations )
ALL_IN_ONE=0
DATABASES=(
"AUTH"
"CHARACTERS"
"WORLD"
)
OUTPUT_FOLDER="output/"
# FULL DB
DB_CHARACTERS_PATHS=(
$SRCPATH"/data/sql/base/characters"
)
DB_AUTH_PATHS=(
$SRCPATH"/data/sql/base/auth/"
)
DB_WORLD_PATHS=(
$SRCPATH"/data/sql/base/world/"
)
# UPDATES
DB_CHARACTERS_UPDATE_PATHS=(
$SRCPATH"/data/sql/updates/characters/"
)
DB_AUTH_UPDATE_PATHS=(
$SRCPATH"/data/sql/updates/auth/"
)
DB_WORLD_UPDATE_PATHS=(
$SRCPATH"/data/sql/updates/world/"
)
# CUSTOM
DB_CHARACTERS_CUSTOM_PATHS=(
)
DB_AUTH_CUSTOM_PATHS=(
)
DB_WORLD_CUSTOM_PATHS=(
)
Submodule
+1
Submodule data/doc added at 352f3c6a77

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 130 KiB

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 142 KiB

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Before

Width:  |  Height:  |  Size: 261 KiB

After

Width:  |  Height:  |  Size: 261 KiB

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 140 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

@@ -57,7 +57,7 @@ RealmID = 1
# DataDir
# Description: Data directory setting.
# Important: DataDir needs to be quoted, as the string might contain space characters.
# Example: "@prefix@/share/sunwellcore"
# Example: "/home/youruser/azeroth-server/data"
# Default: "."
DataDir = "./"
@@ -1353,9 +1353,9 @@ BeepAtStart = 1
# Motd
# Description: Message of the Day, displayed at login.
# Use '@' for a newline and be sure to escape special characters.
# Example: "Welcome to John\'s Server@This server runs on SunwellCore."
# Example: "Welcome to John\'s Server@This server runs on AzerothCore."
Motd = "Welcome to X Server.@This server runs on SunwellCore."
Motd = "Welcome to X Server.@This server runs on AzerothCore."
#
# Server.LoginInfo
@@ -1,6 +1,6 @@
-- MySQL dump 10.13 Distrib 5.6.10, for Win64 (x86_64)
--
-- Host: localhost Database: clean_logon
-- Host: localhost Database: clean_auth
-- ------------------------------------------------------
-- Server version 5.6.10
+27
View File
@@ -0,0 +1,27 @@
All files contained in this folders **must not be re-applicable**!
For this purpose we're versioning it using this format:
**File name**: yyyy_mm_dd_XX.sql
yyyy -> year
mm -> month
dd -> day
XX -> an incremental number if an sql with same date already exists, by default: 00
**SQL Header ( the first query ):**
The following is an example of the query that must be present in first row of every sql updates ( This example is specifically for auth database:)
ALTER TABLE auth_db_version
CHANGE COLUMN 2016_07_09_01
2016_07_10_00 bit;
Of course the rule is:
CHANGE COLUMN 2016_07_09_01 <- the previous version
2016_07_10_00 bit <-- the next version
+3
View File
@@ -0,0 +1,3 @@
CREATE TABLE `auth_db_version` (
`2016_07_09_00` BIT(1) DEFAULT NULL
) ENGINE=MYISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Last applied sql update to DB';
+1
View File
@@ -0,0 +1 @@
ALTER TABLE auth_db_version CHANGE COLUMN 2016_07_09_00 2016_07_09_01 bit;
+16
View File
@@ -0,0 +1,16 @@
ALTER TABLE auth_db_version CHANGE COLUMN 2016_07_09_01 2016_07_10_00 bit;
DROP TABLE IF EXISTS `autobroadcast`;
CREATE TABLE `autobroadcast` (
`realmid` int(10) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
`weight` tinyint(3) DEFAULT 1,
`text` longtext NOT NULL,
PRIMARY KEY (`id`, `realmid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
ALTER TABLE `autobroadcast`
CHANGE `realmid` `realmid` INT(11) NOT NULL DEFAULT '-1',
CHANGE `id` `id` TINYINT(3) UNSIGNED NOT NULL AUTO_INCREMENT,
CHANGE `weight` `weight` TINYINT(3) UNSIGNED DEFAULT '1',
ENGINE=INNODB;
@@ -0,0 +1,3 @@
CREATE TABLE `characters_db_version` (
`2016_07_09_00` BIT(1) DEFAULT NULL
) ENGINE=MYISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Last applied sql update to DB';
@@ -0,0 +1 @@
ALTER TABLE characters_db_version CHANGE COLUMN 2016_07_09_00 2016_07_09_01 bit;
@@ -0,0 +1,28 @@
ALTER TABLE characters_db_version CHANGE COLUMN 2016_07_09_01 2016_07_10_00 bit;
CREATE TABLE IF NOT EXISTS `pvpstats_battlegrounds` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`winner_faction` tinyint(4) NOT NULL,
`bracket_id` tinyint(3) unsigned NOT NULL,
`type` tinyint(3) unsigned NOT NULL,
`date` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `pvpstats_players` (
`battleground_id` bigint(20) unsigned NOT NULL,
`character_guid` int(10) unsigned NOT NULL,
`winner` bit(1) NOT NULL,
`score_killing_blows` mediumint(8) unsigned NOT NULL,
`score_deaths` mediumint(8) unsigned NOT NULL,
`score_honorable_kills` mediumint(8) unsigned NOT NULL,
`score_bonus_honor` mediumint(8) unsigned NOT NULL,
`score_damage_done` mediumint(8) unsigned NOT NULL,
`score_healing_done` mediumint(8) unsigned NOT NULL,
`attr_1` mediumint(8) unsigned NOT NULL DEFAULT '0',
`attr_2` mediumint(8) unsigned NOT NULL DEFAULT '0',
`attr_3` mediumint(8) unsigned NOT NULL DEFAULT '0',
`attr_4` mediumint(8) unsigned NOT NULL DEFAULT '0',
`attr_5` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`battleground_id`,`character_guid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
@@ -0,0 +1,25 @@
ALTER TABLE characters_db_version CHANGE COLUMN 2016_07_10_00 2016_07_30_00 bit;
CREATE TABLE IF NOT EXISTS `gm_ticket` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0 open, 1 closed, 2 character deleted',
`playerGuid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier of ticket creator',
`name` varchar(12) NOT NULL COMMENT 'Name of ticket creator',
`description` text NOT NULL,
`createTime` int(10) unsigned NOT NULL DEFAULT '0',
`mapId` smallint(5) unsigned NOT NULL DEFAULT '0',
`posX` float NOT NULL DEFAULT '0',
`posY` float NOT NULL DEFAULT '0',
`posZ` float NOT NULL DEFAULT '0',
`lastModifiedTime` int(10) unsigned NOT NULL DEFAULT '0',
`closedBy` int(10) unsigned NOT NULL DEFAULT '0',
`assignedTo` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'GUID of admin to whom ticket is assigned',
`comment` text NOT NULL,
`response` text NOT NULL,
`completed` tinyint(3) unsigned NOT NULL DEFAULT '0',
`escalated` tinyint(3) unsigned NOT NULL DEFAULT '0',
`viewed` tinyint(3) unsigned NOT NULL DEFAULT '0',
`needMoreHelp` tinyint(3) unsigned NOT NULL DEFAULT '0',
`resolvedBy` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'GUID of GM who resolved the ticket',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10572 DEFAULT CHARSET=utf8 COMMENT='Player System';
@@ -0,0 +1,35 @@
ALTER TABLE characters_db_version CHANGE COLUMN 2016_07_30_00 2016_08_08_00 bit;
CREATE TABLE IF NOT EXISTS `battleground_deserters` (
`guid` INT(10) UNSIGNED NOT NULL COMMENT 'characters.guid',
`type` TINYINT(3) UNSIGNED NOT NULL COMMENT 'type of the desertion',
`datetime` DATETIME NOT NULL COMMENT 'datetime of the desertion'
);
CREATE TABLE IF NOT EXISTS `pvpstats_battlegrounds` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`winner_faction` tinyint(4) NOT NULL,
`bracket_id` tinyint(3) unsigned NOT NULL,
`type` tinyint(3) unsigned NOT NULL,
`date` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8298 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `pvpstats_players` (
`battleground_id` bigint(20) unsigned NOT NULL,
`character_guid` int(10) unsigned NOT NULL,
`winner` bit(1) NOT NULL,
`score_killing_blows` mediumint(8) unsigned NOT NULL,
`score_deaths` mediumint(8) unsigned NOT NULL,
`score_honorable_kills` mediumint(8) unsigned NOT NULL,
`score_bonus_honor` mediumint(8) unsigned NOT NULL,
`score_damage_done` mediumint(8) unsigned NOT NULL,
`score_healing_done` mediumint(8) unsigned NOT NULL,
`attr_1` mediumint(8) unsigned NOT NULL DEFAULT '0',
`attr_2` mediumint(8) unsigned NOT NULL DEFAULT '0',
`attr_3` mediumint(8) unsigned NOT NULL DEFAULT '0',
`attr_4` mediumint(8) unsigned NOT NULL DEFAULT '0',
`attr_5` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`battleground_id`,`character_guid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+3
View File
@@ -0,0 +1,3 @@
CREATE TABLE `world_db_version` (
`2016_07_09_00` BIT(1) DEFAULT NULL
) ENGINE=MYISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Last applied sql update to DB';
+1
View File
@@ -0,0 +1 @@
ALTER TABLE world_db_version CHANGE COLUMN 2016_07_09_00 2016_07_09_01 bit;
@@ -0,0 +1,4 @@
ALTER TABLE world_db_version CHANGE COLUMN 2016_07_09_01 2016_07_10_00 bit;
DELETE FROM `item_template` WHERE `entry` = 34833;
INSERT INTO `item_template` (`entry`, `class`, `subclass`, `SoundOverrideSubclass`, `name`, `displayid`, `Quality`, `Flags`, `FlagsExtra`, `BuyCount`, `BuyPrice`, `SellPrice`, `InventoryType`, `AllowableClass`, `AllowableRace`, `ItemLevel`, `RequiredLevel`, `RequiredSkill`, `RequiredSkillRank`, `requiredspell`, `requiredhonorrank`, `RequiredCityRank`, `RequiredReputationFaction`, `RequiredReputationRank`, `maxcount`, `stackable`, `ContainerSlots`, `StatsCount`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `ScalingStatDistribution`, `ScalingStatValue`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `delay`, `ammo_type`, `RangedModRange`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmRate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmRate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmRate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmRate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmRate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `description`, `PageText`, `LanguageID`, `PageMaterial`, `startquest`, `lockid`, `Material`, `sheath`, `RandomProperty`, `RandomSuffix`, `block`, `itemset`, `MaxDurability`, `area`, `Map`, `BagFamily`, `TotemCategory`, `socketColor_1`, `socketContent_1`, `socketColor_2`, `socketContent_2`, `socketColor_3`, `socketContent_3`, `socketBonus`, `GemProperties`, `RequiredDisenchantSkill`, `ArmorDamageModifier`, `duration`, `ItemLimitCategory`, `HolidayId`, `ScriptName`, `DisenchantID`, `FoodType`, `minMoneyLoot`, `maxMoneyLoot`, `flagsCustom`, `VerifiedBuild`) VALUES (34833, 12, 0, 0, 'Unlit Torches', 7290, 1, 2, 0, 1, 0, 0, 0, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 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, 0, 0, 0, 0, 0, 45671, 0, 0, 0, 5000, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 4, '', 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 12340);
+90
View File
@@ -0,0 +1,90 @@
ALTER TABLE world_db_version CHANGE COLUMN 2016_07_10_00 2016_07_10_01 bit;
/* Spawn missing Midsummer bonfire */
SET @STARTGUID := 268968;
DELETE FROM `gameobject` WHERE guid = @STARTGUID+0;
DELETE FROM `gameobject` WHERE guid = @STARTGUID+1;
/* Ironforge */
INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `VerifiedBuild`) VALUES (@STARTGUID+0, 181371, 0, 1, 1, -4699.790039, -1222.770020, 501.658997, -1.378810, 0, 0, 0, 0, 300, 0, 1, 0);
/* Shattrath */
INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `VerifiedBuild`) VALUES (@STARTGUID+1, 181371, 530, 1, 1, -1747.849976, 5326.290039, -12.428100, -3.019420, 0, 0, 0, 0, 300, 0, 1, 0);
/* Add missing Midsummer creature */
SET @STARTGUID := 248565;
DELETE FROM `creature` WHERE `guid` BETWEEN @STARTGUID+00 AND @STARTGUID+29;
DELETE FROM `game_event_creature` WHERE `guid` BETWEEN @STARTGUID+00 AND @STARTGUID+29;
INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `MovementType`) VALUES
(@STARTGUID+0, 32801, 571, 1, 1, 4131.279, 5394.604, 26.09047, 3.595378, 120, 0, 0), -- 32801
(@STARTGUID+1, 32809, 571, 1, 1, 4454.667, 5623.537, 56.91562, 4.13643, 120, 0, 0), -- 32809
(@STARTGUID+2, 32810, 571, 1, 1, 5499.812, 4878.976, -197.8652, 3.176499, 120, 0, 0), -- 32810
(@STARTGUID+3, 32802, 571, 1, 1, 5360.002, 4834.393, -196.3981, 5.550147, 120, 0, 0), -- 32802
(@STARTGUID+4, 32811, 571, 1, 1, 3762.387, 1481.287, 92.8882, 3.438299, 120, 0, 0), -- 32811
(@STARTGUID+5, 32803, 571, 1, 1, 3936.924, -595.4437, 241.1534, 5.951573, 120, 0, 0), -- 32803
(@STARTGUID+6, 32812, 571, 1, 1, 2586.682, -4337.068, 276.0698, 4.13643, 120, 0, 0), -- 32812
(@STARTGUID+7, 32804, 571, 1, 1, 2466.965, -4892.675, 262.5474, 2.303835, 120, 0, 0), -- 32804
(@STARTGUID+8, 32813, 571, 1, 1, 3376.009, -2124.778, 124.664, 0.1396263, 120, 0, 0), -- 32813
(@STARTGUID+9, 32805, 571, 1, 1, 3400.944, -2890.375, 201.4968, 2.303835, 120, 0, 0), -- 32805
(@STARTGUID+10, 32814, 571, 1, 1, 6150.945, -1023.05, 408.3642, 1.43117, 120, 0, 0), -- 32814
(@STARTGUID+11, 32806, 571, 1, 1, 6087.442, -1105.523, 418.2672, 1.099557, 120, 0, 0), -- 32806
(@STARTGUID+12, 32815, 571, 1, 1, 5536.516, -733.7185, 149.6217, 3.124139, 120, 0, 0), -- 32815
(@STARTGUID+13, 32807, 571, 1, 1, 5141.776, -685.0027, 170.2738, 5.951573, 120, 0, 0), -- 32807
(@STARTGUID+14, 32816, 571, 1, 1, 5280.307, -2766.146, 292.5019, 2.303835, 120, 0, 0), -- 32816
(@STARTGUID+15, 32808, 571, 1, 1, 5627.932, -2616.493, 292.5019, 1.518436, 120, 0, 0), -- 32808
(@STARTGUID+16, 25892, 0, 1, 1, -8258.798, -2618.704, 133.3752, 1.343904, 120, 0, 0), -- 25892
(@STARTGUID+17, 25899, 1, 1, 1, -4391.495, 2187.865, 12.22644, 5.864306, 120, 0, 0), -- 25899
(@STARTGUID+18, 25936, 1, 1, 1, -2321.744, -619.7491, -9.089149, 5.67232, 120, 0, 0), -- 25936
(@STARTGUID+19, 25888, 530, 1, 1, -4219.219, -12310.55, 2.439188, 5.934119, 120, 0, 0), -- 25888
(@STARTGUID+20, 25891, 530, 1, 1, -2234.83, -11895.94, 26.62421, 4.694936, 120, 0, 0), -- 25891
(@STARTGUID+21, 25907, 530, 1, 1, -2998.854, 4164.042, 5.169014, 0.5934119, 120, 0, 0), -- 25907
(@STARTGUID+22, 25938, 530, 1, 1, -3067.278, 2387.903, 62.19349, 3.368485, 120, 0, 0), -- 25938
(@STARTGUID+23, 25905, 530, 1, 1, -3951.305, 2045.65, 95.14804, 4.520403, 120, 0, 0), -- 25905
(@STARTGUID+24, 25912, 530, 1, 1, 193.7309, 6016.713, 22.73373, 6.161012, 120, 0, 0), -- 25912
(@STARTGUID+25, 25903, 530, 1, 1, -2517.064, 7555.085, -1.793157, 5.375614, 120, 0, 0), -- 25903
(@STARTGUID+26, 25889, 530, 1, 1, 2024.906, 6590.532, 135.3214, 5.934119, 120, 0, 0), -- 25889
(@STARTGUID+27, 25926, 530, 1, 1, 2286.707, 6137.618, 136.3056, 1.570796, 120, 0, 0), -- 25926
(@STARTGUID+28, 25913, 530, 1, 1, 3127.551, 3743.148, 141.7706, 6.161012, 120, 0, 0), -- 25913
(@STARTGUID+29, 25918, 530, 1, 1, 2917.222, 3693.411, 143.7703, 2.932153, 120, 0, 0); -- 25918
INSERT INTO `game_event_creature` (`eventEntry`, `guid`) VALUES
(1, @STARTGUID+00),
(1, @STARTGUID+01),
(1, @STARTGUID+02),
(1, @STARTGUID+03),
(1, @STARTGUID+04),
(1, @STARTGUID+05),
(1, @STARTGUID+06),
(1, @STARTGUID+07),
(1, @STARTGUID+08),
(1, @STARTGUID+09),
(1, @STARTGUID+10),
(1, @STARTGUID+11),
(1, @STARTGUID+12),
(1, @STARTGUID+13),
(1, @STARTGUID+14),
(1, @STARTGUID+15),
(1, @STARTGUID+16),
(1, @STARTGUID+17),
(1, @STARTGUID+18),
(1, @STARTGUID+19),
(1, @STARTGUID+20),
(1, @STARTGUID+21),
(1, @STARTGUID+22),
(1, @STARTGUID+23),
(1, @STARTGUID+24),
(1, @STARTGUID+25),
(1, @STARTGUID+26),
(1, @STARTGUID+27),
(1, @STARTGUID+28),
(1, @STARTGUID+29);
/* Delete some double spawn creature of midsummer fire festival */
DELETE FROM `creature` WHERE `guid`=86358 AND `id`=25915;
DELETE FROM `creature` WHERE `guid`=86387 AND `id`=25920;
DELETE FROM `creature` WHERE `guid`=86241 AND `id`=25887;
DELETE FROM `creature` WHERE `guid`=86327 AND `id`=25914;
DELETE FROM `creature` WHERE `guid`=86376 AND `id`=25916;
DELETE FROM `creature` WHERE `guid`=86426 AND `id`=25921;
DELETE FROM `creature` WHERE `guid`=86165 AND `id`=26123;
DELETE FROM `creature` WHERE `guid`=202863 AND `id`=25975;
+4
View File
@@ -0,0 +1,4 @@
ALTER TABLE world_db_version CHANGE COLUMN 2016_07_10_01 2016_07_10_02 bit;
/* Quest adding injury to insult, fix mob speed run, from 2.2 to 1.0 */
UPDATE `creature_template` SET `speed_run` = 1 WHERE `entry` = 24238;
+5
View File
@@ -0,0 +1,5 @@
ALTER TABLE world_db_version CHANGE COLUMN 2016_07_10_02 2016_07_14_00 bit;
/* add spellscript for crow spell */
DELETE FROM spell_script_names WHERE spell_id = 38776;
INSERT INTO spell_script_names VALUES (38776,'spell_q9718_crow_transform');
+17
View File
@@ -0,0 +1,17 @@
ALTER TABLE world_db_version CHANGE COLUMN 2016_07_14_00 2016_07_28_00 bit;
-- loot for mindless servant 26536 in utgarde pinnacle
DELETE FROM `creature_loot_template` WHERE (Entry = 26536);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `ChanceOrQuestChance`, `LootMode`, `GroupId`, `mincountOrRef`, `maxcount`) VALUES
(26536, 33470, 10.7, 1, 0, 1, 7),
(26536, 26002, 3, 1, 1, -26002, 1),
(26536, 26011, 1, 1, 1, -26011, 1),
(26536, 26012, 1, 1, 1, -26012, 1),
(26536, 26040, 21.4, 1, 0, -26040, 1),
(26536, 33370, 3.6, 1, 1, 1, 1),
(26536, 33399, 3.6, 1, 1, 1, 1),
(26536, 33454, 35.5, 1, 0, 1, 1),
(26536, 37068, 0.69, 1, 1, 1, 1),
(26536, 37069, 0.69, 1, 1, 1, 1),
(26536, 37070, 0.69, 1, 1, 1, 1),
(26536, 45912, 0.1, 1, 1, 1, 1);
+5
View File
@@ -0,0 +1,5 @@
ALTER TABLE world_db_version CHANGE COLUMN 2016_07_28_00 2016_08_01_00 bit;
UPDATE creature_template SET faction = 14 WHERE faction != 35 and entry in (
35572,35569,35571,35570,35617,34705,34702,34701,34657,34703,35329,35328,35331,35330,
35332,35314,35326,35325,35323,35327,35119,35518,34928,35517,35309,35305,35307,35451,35004,35005,35545,35564,33628,36085,36090,36084,35517,35490,36089,35518,36091,36087,36086,36083,36082,36088,35310,35308,35546,35568,35306);
+3
View File
@@ -0,0 +1,3 @@
ALTER TABLE world_db_version CHANGE COLUMN 2016_08_01_00 2016_08_03_00 bit;
DELETE from spell_area where spell = 60815 and area = 14;

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