From cf27f1cf39c4ba3fb644f0a0e8659e90ff935fac Mon Sep 17 00:00:00 2001 From: Aokromes Date: Mon, 18 Nov 2024 08:12:33 +0100 Subject: [PATCH 01/10] DB/Creature: Update a Firemane Flamecaller spawn position closes #30448 by CraftedRO --- sql/updates/world/3.3.5/2024_11_18_00_world.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 sql/updates/world/3.3.5/2024_11_18_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_18_00_world.sql b/sql/updates/world/3.3.5/2024_11_18_00_world.sql new file mode 100644 index 0000000000..2f938cc085 --- /dev/null +++ b/sql/updates/world/3.3.5/2024_11_18_00_world.sql @@ -0,0 +1,2 @@ +-- Firemane Flamecaller +UPDATE `creature` SET `position_x`=-4964.78955078125, `position_y`=-3821.1826171875, `position_z`=43.62102127075195312, `orientation`=2.776098012924194335, `wander_distance`=5, `MovementType`=1 WHERE `guid`=30504; From 225a1bbf7dabdc318bd340e15afa7378a7622612 Mon Sep 17 00:00:00 2001 From: ModoX Date: Fri, 30 Dec 2022 00:02:40 +0100 Subject: [PATCH 02/10] Core/Vmaps: Fix inconsistency of hitInstance and hitModel to cause wrong area ids (#28632) Closes #19761 Closes #28326 Co-authored-by: Gosha <284210+Lordron@users.noreply.github.com> (cherry picked from commit 6ce66659929cbd680a91dd5caa1a5957f30b0716) --- src/common/Collision/Maps/MapTree.h | 6 ++++++ src/common/Collision/Models/GameObjectModel.cpp | 4 +++- src/common/Collision/Models/ModelInstance.cpp | 6 +++++- src/common/Collision/Models/WorldModel.cpp | 2 +- src/common/Collision/Models/WorldModel.h | 3 ++- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/common/Collision/Maps/MapTree.h b/src/common/Collision/Maps/MapTree.h index bcb24f5870..c70e94a635 100644 --- a/src/common/Collision/Maps/MapTree.h +++ b/src/common/Collision/Maps/MapTree.h @@ -30,6 +30,12 @@ namespace VMAP enum class LoadResult : uint8; enum class ModelIgnoreFlags : uint32; + struct GroupLocationInfo + { + const GroupModel* hitModel = nullptr; + int32 rootId = -1; + }; + struct TC_COMMON_API LocationInfo { LocationInfo(): rootId(-1), hitInstance(nullptr), hitModel(nullptr), ground_Z(-G3D::finf()) { } diff --git a/src/common/Collision/Models/GameObjectModel.cpp b/src/common/Collision/Models/GameObjectModel.cpp index 23735f2d8e..88357333e6 100644 --- a/src/common/Collision/Models/GameObjectModel.cpp +++ b/src/common/Collision/Models/GameObjectModel.cpp @@ -216,7 +216,9 @@ bool GameObjectModel::GetLocationInfo(G3D::Vector3 const& point, VMAP::LocationI Vector3 pModel = iInvRot * (point - iPos) * iInvScale; Vector3 zDirModel = iInvRot * Vector3(0.f, 0.f, -1.f); float zDist; - if (iModel->GetLocationInfo(pModel, zDirModel, zDist, info)) + + VMAP::GroupLocationInfo groupInfo; + if (iModel->GetLocationInfo(pModel, zDirModel, zDist, groupInfo)) { Vector3 modelGround = pModel + zDist * zDirModel; float world_Z = ((modelGround * iInvRot) * iScale + iPos).z; diff --git a/src/common/Collision/Models/ModelInstance.cpp b/src/common/Collision/Models/ModelInstance.cpp index db0bc491a0..616488bd9a 100644 --- a/src/common/Collision/Models/ModelInstance.cpp +++ b/src/common/Collision/Models/ModelInstance.cpp @@ -116,7 +116,9 @@ namespace VMAP Vector3 pModel = iInvRot * (p - iPos) * iInvScale; Vector3 zDirModel = iInvRot * Vector3(0.f, 0.f, -1.f); float zDist; - if (iModel->GetLocationInfo(pModel, zDirModel, zDist, info)) + + GroupLocationInfo groupInfo; + if (iModel->GetLocationInfo(pModel, zDirModel, zDist, groupInfo)) { Vector3 modelGround = pModel + zDist * zDirModel; // Transform back to world space. Note that: @@ -125,6 +127,8 @@ namespace VMAP float world_Z = ((modelGround * iInvRot) * iScale + iPos).z; if (info.ground_Z < world_Z) // hm...could it be handled automatically with zDist at intersection? { + info.rootId = groupInfo.rootId; + info.hitModel = groupInfo.hitModel; info.ground_Z = world_Z; info.hitInstance = this; return true; diff --git a/src/common/Collision/Models/WorldModel.cpp b/src/common/Collision/Models/WorldModel.cpp index 59bc304ca7..8b59bb4988 100644 --- a/src/common/Collision/Models/WorldModel.cpp +++ b/src/common/Collision/Models/WorldModel.cpp @@ -548,7 +548,7 @@ namespace VMAP return false; } - bool WorldModel::GetLocationInfo(const G3D::Vector3 &p, const G3D::Vector3 &down, float &dist, LocationInfo &info) const + bool WorldModel::GetLocationInfo(const G3D::Vector3& p, const G3D::Vector3& down, float& dist, GroupLocationInfo& info) const { if (groupModels.empty()) return false; diff --git a/src/common/Collision/Models/WorldModel.h b/src/common/Collision/Models/WorldModel.h index 093a4ea84e..24954e57b6 100644 --- a/src/common/Collision/Models/WorldModel.h +++ b/src/common/Collision/Models/WorldModel.h @@ -31,6 +31,7 @@ namespace VMAP class TreeNode; struct AreaInfo; struct LocationInfo; + struct GroupLocationInfo; enum class ModelIgnoreFlags : uint32; class TC_COMMON_API MeshTriangle @@ -113,7 +114,7 @@ namespace VMAP void setRootWmoID(uint32 id) { RootWMOID = id; } bool IntersectRay(const G3D::Ray &ray, float &distance, bool stopAtFirstHit, ModelIgnoreFlags ignoreFlags) const; bool IntersectPoint(const G3D::Vector3 &p, const G3D::Vector3 &down, float &dist, AreaInfo &info) const; - bool GetLocationInfo(const G3D::Vector3 &p, const G3D::Vector3 &down, float &dist, LocationInfo &info) const; + bool GetLocationInfo(const G3D::Vector3 &p, const G3D::Vector3 &down, float &dist, GroupLocationInfo& info) const; bool writeFile(const std::string &filename); bool readFile(const std::string &filename); void getGroupModels(std::vector& outGroupModels); From b4d6ca277aef81a49e3654a3eec131ea621da991 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 19 Nov 2024 20:20:33 +0100 Subject: [PATCH 03/10] Core/vmaps: Removed vmap lookup functions duplicating functionality of each other (cherry picked from commit 45ee989c70682c001d4467d97bf1ecedcf7dbcc3) --- src/common/Collision/DynamicTree.cpp | 46 ++--------- src/common/Collision/DynamicTree.h | 4 +- .../Collision/Management/IVMapManager.h | 24 +++--- .../Collision/Management/VMapManager2.cpp | 76 ++++--------------- .../Collision/Management/VMapManager2.h | 4 +- src/common/Collision/Maps/MapDefines.h | 48 +++++++++++- src/common/Collision/Maps/MapTree.cpp | 32 -------- src/common/Collision/Maps/MapTree.h | 1 - .../Collision/Models/GameObjectModel.cpp | 21 ----- src/common/Collision/Models/GameObjectModel.h | 1 - src/common/Collision/Models/ModelInstance.cpp | 34 --------- src/common/Collision/Models/ModelInstance.h | 1 - src/common/Collision/Models/WorldModel.cpp | 19 ----- src/common/Collision/Models/WorldModel.h | 1 - .../game/Entities/Creature/Creature.cpp | 6 +- src/server/game/Entities/Object/Object.cpp | 2 +- src/server/game/Entities/Object/Object.h | 3 +- src/server/game/Maps/Map.cpp | 70 +++++++---------- src/server/game/Maps/Map.h | 47 +----------- src/server/game/Movement/PathGenerator.cpp | 4 +- src/server/game/Spells/Spell.cpp | 2 +- src/server/scripts/Commands/cs_misc.cpp | 2 +- src/server/scripts/Spells/spell_generic.cpp | 2 +- 23 files changed, 127 insertions(+), 323 deletions(-) diff --git a/src/common/Collision/DynamicTree.cpp b/src/common/Collision/DynamicTree.cpp index 34c38d98fa..ceddd74061 100644 --- a/src/common/Collision/DynamicTree.cpp +++ b/src/common/Collision/DynamicTree.cpp @@ -150,22 +150,6 @@ struct DynamicTreeIntersectionCallback bool didHit() const { return did_hit;} }; -struct DynamicTreeAreaInfoCallback -{ - DynamicTreeAreaInfoCallback(uint32 phaseMask) : _phaseMask(phaseMask) {} - - void operator()(G3D::Vector3 const& p, GameObjectModel const& obj) - { - obj.intersectPoint(p, _areaInfo, _phaseMask); - } - - VMAP::AreaInfo const& GetAreaInfo() const { return _areaInfo; } - -private: - uint32 _phaseMask; - VMAP::AreaInfo _areaInfo; -}; - struct DynamicTreeLocationInfoCallback { DynamicTreeLocationInfoCallback(uint32 phaseMask) : _phaseMask(phaseMask), _hitModel(nullptr) {} @@ -265,24 +249,7 @@ float DynamicMapTree::getHeight(float x, float y, float z, float maxSearchDist, return -G3D::finf(); } -bool DynamicMapTree::getAreaInfo(float x, float y, float& z, uint32 phasemask, uint32& flags, int32& adtId, int32& rootId, int32& groupId) const -{ - G3D::Vector3 v(x, y, z + 0.5f); - DynamicTreeAreaInfoCallback intersectionCallBack(phasemask); - impl->intersectPoint(v, intersectionCallBack); - if (intersectionCallBack.GetAreaInfo().result) - { - flags = intersectionCallBack.GetAreaInfo().flags; - adtId = intersectionCallBack.GetAreaInfo().adtId; - rootId = intersectionCallBack.GetAreaInfo().rootId; - groupId = intersectionCallBack.GetAreaInfo().groupId; - z = intersectionCallBack.GetAreaInfo().ground_Z; - return true; - } - return false; -} - -void DynamicMapTree::getAreaAndLiquidData(float x, float y, float z, uint32 phasemask, uint8 reqLiquidType, VMAP::AreaAndLiquidData& data) const +bool DynamicMapTree::getAreaAndLiquidData(float x, float y, float z, uint32 phasemask, Optional reqLiquidType, VMAP::AreaAndLiquidData& data) const { G3D::Vector3 v(x, y, z + 0.5f); DynamicTreeLocationInfoCallback intersectionCallBack(phasemask); @@ -292,13 +259,16 @@ void DynamicMapTree::getAreaAndLiquidData(float x, float y, float z, uint32 phas data.floorZ = intersectionCallBack.GetLocationInfo().ground_Z; uint32 liquidType = intersectionCallBack.GetLocationInfo().hitModel->GetLiquidType(); float liquidLevel; - if (!reqLiquidType || VMAP::VMapFactory::createOrGetVMapManager()->GetLiquidFlagsPtr(liquidType) & reqLiquidType) + if (!reqLiquidType || VMAP::VMapFactory::createOrGetVMapManager()->GetLiquidFlagsPtr(liquidType) & *reqLiquidType) if (intersectionCallBack.GetHitModel()->GetLiquidLevel(v, intersectionCallBack.GetLocationInfo(), liquidLevel)) data.liquidInfo.emplace(liquidType, liquidLevel); - data.areaInfo.emplace(0, + data.areaInfo.emplace(intersectionCallBack.GetLocationInfo().hitModel->GetWmoID(), + 0, intersectionCallBack.GetLocationInfo().rootId, - intersectionCallBack.GetLocationInfo().hitModel->GetWmoID(), - intersectionCallBack.GetLocationInfo().hitModel->GetMogpFlags()); + intersectionCallBack.GetLocationInfo().hitModel->GetMogpFlags(), + 0); + return true; } + return false; } diff --git a/src/common/Collision/DynamicTree.h b/src/common/Collision/DynamicTree.h index b62044b954..0bcdbed423 100644 --- a/src/common/Collision/DynamicTree.h +++ b/src/common/Collision/DynamicTree.h @@ -19,6 +19,7 @@ #define _DYNTREE_H #include "Define.h" +#include "Optional.h" namespace G3D { @@ -48,8 +49,7 @@ class TC_COMMON_API DynamicMapTree bool getIntersectionTime(uint32 phasemask, const G3D::Ray& ray, const G3D::Vector3& endPos, float& maxDist) const; - bool getAreaInfo(float x, float y, float& z, uint32 phasemask, uint32& flags, int32& adtId, int32& rootId, int32& groupId) const; - void getAreaAndLiquidData(float x, float y, float z, uint32 phasemask, uint8 reqLiquidType, VMAP::AreaAndLiquidData& data) const; + bool getAreaAndLiquidData(float x, float y, float z, uint32 phasemask, Optional reqLiquidType, VMAP::AreaAndLiquidData& data) const; bool getObjectHitPos(uint32 phasemask, const G3D::Vector3& pPos1, const G3D::Vector3& pPos2, G3D::Vector3& pResultHitPos, diff --git a/src/common/Collision/Management/IVMapManager.h b/src/common/Collision/Management/IVMapManager.h index b25d93bd9b..e48b4f38b7 100644 --- a/src/common/Collision/Management/IVMapManager.h +++ b/src/common/Collision/Management/IVMapManager.h @@ -53,17 +53,21 @@ namespace VMAP { struct AreaInfo { - AreaInfo(int32 _adtId, int32 _rootId, int32 _groupId, uint32 _flags) : adtId(_adtId), rootId(_rootId), groupId(_groupId), mogpFlags(_flags) { } - int32 const adtId; - int32 const rootId; - int32 const groupId; - uint32 const mogpFlags; + AreaInfo() = default; + AreaInfo(int32 _groupId, int32 _adtId, int32 _rootId, uint32 _mogpFlags, uint32 _uniqueId) + : groupId(_groupId), adtId(_adtId), rootId(_rootId), mogpFlags(_mogpFlags), uniqueId(_uniqueId) { } + int32 groupId = 0; + int32 adtId = 0; + int32 rootId = 0; + uint32 mogpFlags = 0; + uint32 uniqueId = 0; }; struct LiquidInfo { + LiquidInfo() = default; LiquidInfo(uint32 _type, float _level) : type(_type), level(_level) { } - uint32 const type; - float const level; + uint32 type = 0; + float level = 0.0f; }; float floorZ = VMAP_INVALID_HEIGHT; @@ -117,14 +121,12 @@ namespace VMAP bool isMapLoadingEnabled() const { return(iEnableLineOfSightCalc || iEnableHeightCalc ); } virtual std::string getDirFileName(unsigned int pMapId, int x, int y) const =0; + /** Query world model area info. \param z gets adjusted to the ground height for which this are info is valid */ - virtual bool getAreaInfo(uint32 mapId, float x, float y, float &z, uint32 &flags, int32 &adtId, int32 &rootId, int32 &groupId) const=0; - virtual bool GetLiquidLevel(uint32 mapId, float x, float y, float z, uint8 reqLiquidType, float& level, float& floor, uint32& type, uint32& mogpFlags) const=0; - // get both area + liquid data in a single vmap lookup - virtual void getAreaAndLiquidData(unsigned int mapId, float x, float y, float z, uint8 reqLiquidType, AreaAndLiquidData& data) const=0; + virtual bool getAreaAndLiquidData(unsigned int mapId, float x, float y, float z, Optional reqLiquidType, AreaAndLiquidData& data) const = 0; }; } diff --git a/src/common/Collision/Management/VMapManager2.cpp b/src/common/Collision/Management/VMapManager2.cpp index 9ee1d5a0b3..4fed17787d 100644 --- a/src/common/Collision/Management/VMapManager2.cpp +++ b/src/common/Collision/Management/VMapManager2.cpp @@ -233,63 +233,8 @@ namespace VMAP return VMAP_INVALID_HEIGHT_VALUE; } - bool VMapManager2::getAreaInfo(uint32 mapId, float x, float y, float& z, uint32& flags, int32& adtId, int32& rootId, int32& groupId) const + bool VMapManager2::getAreaAndLiquidData(unsigned int mapId, float x, float y, float z, Optional reqLiquidType, AreaAndLiquidData& data) const { - if (!IsVMAPDisabledForPtr(mapId, VMAP_DISABLE_AREAFLAG)) - { - InstanceTreeMap::const_iterator instanceTree = GetMapTree(mapId); - if (instanceTree != iInstanceMapTrees.end()) - { - Vector3 pos = convertPositionToInternalRep(x, y, z); - bool result = instanceTree->second->getAreaInfo(pos, flags, adtId, rootId, groupId); - // z is not touched by convertPositionToInternalRep(), so just copy - z = pos.z; - return result; - } - } - - return false; - } - - bool VMapManager2::GetLiquidLevel(uint32 mapId, float x, float y, float z, uint8 reqLiquidType, float& level, float& floor, uint32& type, uint32& mogpFlags) const - { - if (!IsVMAPDisabledForPtr(mapId, VMAP_DISABLE_LIQUIDSTATUS)) - { - InstanceTreeMap::const_iterator instanceTree = GetMapTree(mapId); - if (instanceTree != iInstanceMapTrees.end()) - { - LocationInfo info; - Vector3 pos = convertPositionToInternalRep(x, y, z); - if (instanceTree->second->GetLocationInfo(pos, info)) - { - floor = info.ground_Z; - ASSERT(floor < std::numeric_limits::max()); - ASSERT(info.hitModel); - type = info.hitModel->GetLiquidType(); // entry from LiquidType.dbc - mogpFlags = info.hitModel->GetMogpFlags(); - if (reqLiquidType && !(GetLiquidFlagsPtr(type) & reqLiquidType)) - return false; - ASSERT(info.hitInstance); - if (info.hitInstance->GetLiquidLevel(pos, info, level)) - return true; - } - } - } - - return false; - } - - void VMapManager2::getAreaAndLiquidData(unsigned int mapId, float x, float y, float z, uint8 reqLiquidType, AreaAndLiquidData& data) const - { - if (IsVMAPDisabledForPtr(mapId, VMAP_DISABLE_LIQUIDSTATUS)) - { - data.floorZ = z; - int32 adtId, rootId, groupId; - uint32 flags; - if (getAreaInfo(mapId, x, y, data.floorZ, flags, adtId, rootId, groupId)) - data.areaInfo.emplace(adtId, rootId, groupId, flags); - return; - } InstanceTreeMap::const_iterator instanceTree = GetMapTree(mapId); if (instanceTree != iInstanceMapTrees.end()) { @@ -300,16 +245,23 @@ namespace VMAP ASSERT(info.hitModel); ASSERT(info.hitInstance); data.floorZ = info.ground_Z; - uint32 liquidType = info.hitModel->GetLiquidType(); - float liquidLevel; - if (!reqLiquidType || (GetLiquidFlagsPtr(liquidType) & reqLiquidType)) - if (info.hitInstance->GetLiquidLevel(pos, info, liquidLevel)) - data.liquidInfo.emplace(liquidType, liquidLevel); + if (!IsVMAPDisabledForPtr(mapId, VMAP_DISABLE_LIQUIDSTATUS)) + { + uint32 liquidType = info.hitModel->GetLiquidType(); // entry from LiquidType.dbc + float liquidLevel; + if (!reqLiquidType || (GetLiquidFlagsPtr(liquidType) & *reqLiquidType)) + if (info.hitInstance->GetLiquidLevel(pos, info, liquidLevel)) + data.liquidInfo.emplace(liquidType, liquidLevel); + } if (!IsVMAPDisabledForPtr(mapId, VMAP_DISABLE_AREAFLAG)) - data.areaInfo.emplace(info.hitInstance->adtId, info.rootId, info.hitModel->GetWmoID(), info.hitModel->GetMogpFlags()); + data.areaInfo.emplace(info.hitModel->GetWmoID(), info.hitInstance->adtId, info.rootId, info.hitModel->GetMogpFlags(), info.hitInstance->ID); + + return true; } } + + return false; } WorldModel* VMapManager2::acquireModelInstance(const std::string& basepath, const std::string& filename, uint32 flags/* Only used when creating the model */) diff --git a/src/common/Collision/Management/VMapManager2.h b/src/common/Collision/Management/VMapManager2.h index 10a357318a..25f4257997 100644 --- a/src/common/Collision/Management/VMapManager2.h +++ b/src/common/Collision/Management/VMapManager2.h @@ -115,9 +115,7 @@ namespace VMAP bool processCommand(char* /*command*/) override { return false; } // for debug and extensions - bool getAreaInfo(uint32 mapId, float x, float y, float& z, uint32& flags, int32& adtId, int32& rootId, int32& groupId) const override; - bool GetLiquidLevel(uint32 mapId, float x, float y, float z, uint8 reqLiquidType, float& level, float& floor, uint32& type, uint32& mogpFlags) const override; - void getAreaAndLiquidData(uint32 mapId, float x, float y, float z, uint8 reqLiquidType, AreaAndLiquidData& data) const override; + bool getAreaAndLiquidData(uint32 mapId, float x, float y, float z, Optional reqLiquidType, AreaAndLiquidData& data) const override; WorldModel* acquireModelInstance(const std::string& basepath, const std::string& filename, uint32 flags = 0); void releaseModelInstance(const std::string& filename); diff --git a/src/common/Collision/Maps/MapDefines.h b/src/common/Collision/Maps/MapDefines.h index 6e7aa4410e..1877d3eec1 100644 --- a/src/common/Collision/Maps/MapDefines.h +++ b/src/common/Collision/Maps/MapDefines.h @@ -19,7 +19,8 @@ #define _MAPDEFINES_H #include "Define.h" -#include "DetourNavMesh.h" +#include "Optional.h" +#include const uint32 MMAP_MAGIC = 0x4d4d4150; // 'MMAP' #define MMAP_VERSION 15 @@ -69,4 +70,47 @@ enum NavTerrainFlag NAV_MAGMA_SLIME = 1 << (NAV_AREA_MAX_VALUE - NAV_AREA_MAGMA_SLIME) }; -#endif /* _MAPDEFINES_H */ +enum ZLiquidStatus : uint32 +{ + LIQUID_MAP_NO_WATER = 0x00000000, + LIQUID_MAP_ABOVE_WATER = 0x00000001, + LIQUID_MAP_WATER_WALK = 0x00000002, + LIQUID_MAP_IN_WATER = 0x00000004, + LIQUID_MAP_UNDER_WATER = 0x00000008, +}; + +#define MAP_LIQUID_STATUS_SWIMMING (LIQUID_MAP_IN_WATER | LIQUID_MAP_UNDER_WATER) +#define MAP_LIQUID_STATUS_IN_CONTACT (MAP_LIQUID_STATUS_SWIMMING | LIQUID_MAP_WATER_WALK) + +struct LiquidData +{ + uint32 type_flags; + uint32 entry; + float level; + float depth_level; +}; + +struct WmoLocation +{ + WmoLocation() = default; + WmoLocation(int32 groupId, int32 nameSetId, int32 rootId, uint32 uniqueId) + : GroupId(groupId), NameSetId(nameSetId), RootId(rootId), UniqueId(uniqueId) { } + + int32 GroupId = 0; + int32 NameSetId = 0; + int32 RootId = 0; + uint32 UniqueId = 0; +}; + +struct PositionFullTerrainStatus +{ + PositionFullTerrainStatus() : areaId(0), floorZ(0.0f), outdoors(true), liquidStatus(LIQUID_MAP_NO_WATER) { } + uint32 areaId; + float floorZ; + bool outdoors; + ZLiquidStatus liquidStatus; + Optional wmoLocation; + Optional liquidInfo; +}; + +#endif // _MAPDEFINES_H diff --git a/src/common/Collision/Maps/MapTree.cpp b/src/common/Collision/Maps/MapTree.cpp index b023e134cd..55d33e7ee6 100644 --- a/src/common/Collision/Maps/MapTree.cpp +++ b/src/common/Collision/Maps/MapTree.cpp @@ -50,22 +50,6 @@ namespace VMAP ModelIgnoreFlags flags; }; - class AreaInfoCallback - { - public: - AreaInfoCallback(ModelInstance* val): prims(val) { } - void operator()(Vector3 const& point, uint32 entry) - { -#ifdef VMAP_DEBUG - TC_LOG_DEBUG("maps", "AreaInfoCallback: trying to intersect '{}'", prims[entry].name); -#endif - prims[entry].intersectPoint(point, aInfo); - } - - ModelInstance* prims; - AreaInfo aInfo; - }; - class LocationInfoCallback { public: @@ -96,22 +80,6 @@ namespace VMAP return tilefilename.str(); } - bool StaticMapTree::getAreaInfo(Vector3 &pos, uint32 &flags, int32 &adtId, int32 &rootId, int32 &groupId) const - { - AreaInfoCallback intersectionCallBack(iTreeValues); - iTree.intersectPoint(pos, intersectionCallBack); - if (intersectionCallBack.aInfo.result) - { - flags = intersectionCallBack.aInfo.flags; - adtId = intersectionCallBack.aInfo.adtId; - rootId = intersectionCallBack.aInfo.rootId; - groupId = intersectionCallBack.aInfo.groupId; - pos.z = intersectionCallBack.aInfo.ground_Z; - return true; - } - return false; - } - bool StaticMapTree::GetLocationInfo(Vector3 const& pos, LocationInfo &info) const { LocationInfoCallback intersectionCallBack(iTreeValues, info); diff --git a/src/common/Collision/Maps/MapTree.h b/src/common/Collision/Maps/MapTree.h index c70e94a635..9fed79314b 100644 --- a/src/common/Collision/Maps/MapTree.h +++ b/src/common/Collision/Maps/MapTree.h @@ -79,7 +79,6 @@ namespace VMAP bool isInLineOfSight(const G3D::Vector3& pos1, const G3D::Vector3& pos2, ModelIgnoreFlags ignoreFlags) const; bool getObjectHitPos(const G3D::Vector3& pos1, const G3D::Vector3& pos2, G3D::Vector3& pResultHitPos, float pModifyDist) const; float getHeight(const G3D::Vector3& pPos, float maxSearchDist) const; - bool getAreaInfo(G3D::Vector3 &pos, uint32 &flags, int32 &adtId, int32 &rootId, int32 &groupId) const; bool GetLocationInfo(const G3D::Vector3 &pos, LocationInfo &info) const; bool InitMap(const std::string &fname, VMapManager2* vm); diff --git a/src/common/Collision/Models/GameObjectModel.cpp b/src/common/Collision/Models/GameObjectModel.cpp index 88357333e6..1b3bb2ff09 100644 --- a/src/common/Collision/Models/GameObjectModel.cpp +++ b/src/common/Collision/Models/GameObjectModel.cpp @@ -183,27 +183,6 @@ bool GameObjectModel::intersectRay(const G3D::Ray& ray, float& MaxDist, bool Sto return hit; } -void GameObjectModel::intersectPoint(G3D::Vector3 const& point, VMAP::AreaInfo& info, uint32 ph_mask) const -{ - if (!(phasemask & ph_mask) || !owner->IsSpawned() || !isMapObject()) - return; - - if (!iBound.contains(point)) - return; - - // child bounds are defined in object space: - Vector3 pModel = iInvRot * (point - iPos) * iInvScale; - Vector3 zDirModel = iInvRot * Vector3(0.f, 0.f, -1.f); - float zDist; - if (iModel->IntersectPoint(pModel, zDirModel, zDist, info)) - { - Vector3 modelGround = pModel + zDist * zDirModel; - float world_Z = ((modelGround * iInvRot) * iScale + iPos).z; - if (info.ground_Z < world_Z) - info.ground_Z = world_Z; - } -} - bool GameObjectModel::GetLocationInfo(G3D::Vector3 const& point, VMAP::LocationInfo& info, uint32 ph_mask) const { if (!(phasemask & ph_mask) || !owner->IsSpawned() || !isMapObject()) diff --git a/src/common/Collision/Models/GameObjectModel.h b/src/common/Collision/Models/GameObjectModel.h index 78f17b7539..46de9bec4c 100644 --- a/src/common/Collision/Models/GameObjectModel.h +++ b/src/common/Collision/Models/GameObjectModel.h @@ -71,7 +71,6 @@ class TC_COMMON_API GameObjectModel /*, public Intersectable*/ bool isMapObject() const { return isWmo; } bool intersectRay(const G3D::Ray& Ray, float& MaxDist, bool StopAtFirstHit, uint32 ph_mask, VMAP::ModelIgnoreFlags ignoreFlags) const; - void intersectPoint(G3D::Vector3 const& point, VMAP::AreaInfo& info, uint32 ph_mask) const; bool GetLocationInfo(G3D::Vector3 const& point, VMAP::LocationInfo& info, uint32 ph_mask) const; bool GetLiquidLevel(G3D::Vector3 const& point, VMAP::LocationInfo& info, float& liqHeight) const; diff --git a/src/common/Collision/Models/ModelInstance.cpp b/src/common/Collision/Models/ModelInstance.cpp index 616488bd9a..32415be8fc 100644 --- a/src/common/Collision/Models/ModelInstance.cpp +++ b/src/common/Collision/Models/ModelInstance.cpp @@ -63,40 +63,6 @@ namespace VMAP return hit; } - void ModelInstance::intersectPoint(const G3D::Vector3& p, AreaInfo &info) const - { - if (!iModel) - { -#ifdef VMAP_DEBUG - std::cout << "\n"; -#endif - return; - } - - // M2 files don't contain area info, only WMO files - if (flags & MOD_M2) - return; - if (!iBound.contains(p)) - return; - // child bounds are defined in object space: - Vector3 pModel = iInvRot * (p - iPos) * iInvScale; - Vector3 zDirModel = iInvRot * Vector3(0.f, 0.f, -1.f); - float zDist; - if (iModel->IntersectPoint(pModel, zDirModel, zDist, info)) - { - Vector3 modelGround = pModel + zDist * zDirModel; - // Transform back to world space. Note that: - // Mat * vec == vec * Mat.transpose() - // and for rotation matrices: Mat.inverse() == Mat.transpose() - float world_Z = ((modelGround * iInvRot) * iScale + iPos).z; - if (info.ground_Z < world_Z) - { - info.ground_Z = world_Z; - info.adtId = adtId; - } - } - } - bool ModelInstance::GetLocationInfo(const G3D::Vector3& p, LocationInfo &info) const { if (!iModel) diff --git a/src/common/Collision/Models/ModelInstance.h b/src/common/Collision/Models/ModelInstance.h index e984aa1065..366f1eee97 100644 --- a/src/common/Collision/Models/ModelInstance.h +++ b/src/common/Collision/Models/ModelInstance.h @@ -67,7 +67,6 @@ namespace VMAP ModelInstance(ModelSpawn const& spawn, WorldModel* model); void setUnloaded() { iModel = nullptr; } bool intersectRay(G3D::Ray const& pRay, float& pMaxDist, bool pStopAtFirstHit, ModelIgnoreFlags ignoreFlags) const; - void intersectPoint(G3D::Vector3 const& p, AreaInfo &info) const; bool GetLocationInfo(G3D::Vector3 const& p, LocationInfo &info) const; bool GetLiquidLevel(G3D::Vector3 const& p, LocationInfo &info, float &liqHeight) const; WorldModel* getWorldModel() { return iModel; } diff --git a/src/common/Collision/Models/WorldModel.cpp b/src/common/Collision/Models/WorldModel.cpp index 8b59bb4988..454b45c349 100644 --- a/src/common/Collision/Models/WorldModel.cpp +++ b/src/common/Collision/Models/WorldModel.cpp @@ -529,25 +529,6 @@ namespace VMAP } }; - bool WorldModel::IntersectPoint(const G3D::Vector3 &p, const G3D::Vector3 &down, float &dist, AreaInfo &info) const - { - if (groupModels.empty()) - return false; - - WModelAreaCallback callback(groupModels, down); - groupTree.intersectPoint(p, callback); - if (callback.hit != groupModels.end()) - { - info.rootId = RootWMOID; - info.groupId = callback.hit->GetWmoID(); - info.flags = callback.hit->GetMogpFlags(); - info.result = true; - dist = callback.zDist; - return true; - } - return false; - } - bool WorldModel::GetLocationInfo(const G3D::Vector3& p, const G3D::Vector3& down, float& dist, GroupLocationInfo& info) const { if (groupModels.empty()) diff --git a/src/common/Collision/Models/WorldModel.h b/src/common/Collision/Models/WorldModel.h index 24954e57b6..10fa529f00 100644 --- a/src/common/Collision/Models/WorldModel.h +++ b/src/common/Collision/Models/WorldModel.h @@ -113,7 +113,6 @@ namespace VMAP void setGroupModels(std::vector &models); void setRootWmoID(uint32 id) { RootWMOID = id; } bool IntersectRay(const G3D::Ray &ray, float &distance, bool stopAtFirstHit, ModelIgnoreFlags ignoreFlags) const; - bool IntersectPoint(const G3D::Vector3 &p, const G3D::Vector3 &down, float &dist, AreaInfo &info) const; bool GetLocationInfo(const G3D::Vector3 &p, const G3D::Vector3 &down, float &dist, GroupLocationInfo& info) const; bool writeFile(const std::string &filename); bool readFile(const std::string &filename); diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index 56cfb3713e..fa44b3deac 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -1062,9 +1062,9 @@ bool Creature::Create(ObjectGuid::LowType guidlow, Map* map, uint32 phaseMask, u } { // area/zone id is needed immediately for ZoneScript::GetCreatureEntry hook before it is known which creature template to load (no model/scale available yet) - PositionFullTerrainStatus data; - GetMap()->GetFullTerrainStatusForPosition(GetPhaseMask(), GetPositionX(), GetPositionY(), GetPositionZ(), data, MAP_ALL_LIQUIDS, DEFAULT_COLLISION_HEIGHT); - ProcessPositionDataChanged(data); + PositionFullTerrainStatus terrainStatus; + GetMap()->GetFullTerrainStatusForPosition(GetPhaseMask(), GetPositionX(), GetPositionY(), GetPositionZ(), terrainStatus); + ProcessPositionDataChanged(terrainStatus); } // Allow players to see those units while dead, do it here (mayby altered by addon auras) diff --git a/src/server/game/Entities/Object/Object.cpp b/src/server/game/Entities/Object/Object.cpp index f74b666884..df73ba3c1d 100644 --- a/src/server/game/Entities/Object/Object.cpp +++ b/src/server/game/Entities/Object/Object.cpp @@ -1048,7 +1048,7 @@ void WorldObject::_Create(ObjectGuid::LowType guidlow, HighGuid guidhigh, uint32 void WorldObject::UpdatePositionData() { PositionFullTerrainStatus data; - GetMap()->GetFullTerrainStatusForPosition(GetPhaseMask(), GetPositionX(), GetPositionY(), GetPositionZ(), data, MAP_ALL_LIQUIDS, GetCollisionHeight()); + GetMap()->GetFullTerrainStatusForPosition(GetPhaseMask(), GetPositionX(), GetPositionY(), GetPositionZ(), data, {}, GetCollisionHeight()); ProcessPositionDataChanged(data); } diff --git a/src/server/game/Entities/Object/Object.h b/src/server/game/Entities/Object/Object.h index 8b31f2ed2d..f9587e64f4 100644 --- a/src/server/game/Entities/Object/Object.h +++ b/src/server/game/Entities/Object/Object.h @@ -21,6 +21,7 @@ #include "Common.h" #include "Duration.h" #include "EventProcessor.h" +#include "MapDefines.h" #include "ModelIgnoreFlags.h" #include "MovementInfo.h" #include "ObjectDefines.h" @@ -57,9 +58,7 @@ class WorldObject; class WorldPacket; class ZoneScript; struct FactionTemplateEntry; -struct PositionFullTerrainStatus; struct QuaternionData; -enum ZLiquidStatus : uint32; typedef std::unordered_map UpdateDataMapType; diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index d9dba83832..ecc900b41b 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -2352,7 +2352,7 @@ float GridMap::getLiquidLevel(float x, float y) const } // Get water state on map -inline ZLiquidStatus GridMap::GetLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, LiquidData* data, float collisionHeight) +inline ZLiquidStatus GridMap::GetLiquidStatus(float x, float y, float z, Optional ReqLiquidType, LiquidData* data, float collisionHeight) { // Check water type (if no water return) if (!_liquidGlobalFlags && !_liquidFlags) @@ -2400,7 +2400,7 @@ inline ZLiquidStatus GridMap::GetLiquidStatus(float x, float y, float z, uint8 R return LIQUID_MAP_NO_WATER; // Check req liquid type mask - if (ReqLiquidType && !(ReqLiquidType&type)) + if (ReqLiquidType && !(*ReqLiquidType & type)) return LIQUID_MAP_NO_WATER; // Check water level: @@ -2466,7 +2466,7 @@ float Map::GetWaterOrGroundLevel(uint32 phasemask, float x, float y, float z, fl LiquidData liquid_status; - ZLiquidStatus res = GetLiquidStatus(phasemask, x, y, ground_z, MAP_ALL_LIQUIDS, &liquid_status, collisionHeight); + ZLiquidStatus res = GetLiquidStatus(phasemask, x, y, ground_z, {}, &liquid_status, collisionHeight); switch (res) { case LIQUID_MAP_ABOVE_WATER: @@ -2542,27 +2542,18 @@ static inline bool IsInWMOInterior(uint32 mogpFlags) bool Map::GetAreaInfo(uint32 phaseMask, float x, float y, float z, uint32& flags, int32& adtId, int32& rootId, int32& groupId) const { - float vmap_z = z; - float dynamic_z = z; float check_z = z; VMAP::IVMapManager* vmgr = VMAP::VMapFactory::createOrGetVMapManager(); - uint32 vflags; - int32 vadtId; - int32 vrootId; - int32 vgroupId; - uint32 dflags; - int32 dadtId; - int32 drootId; - int32 dgroupId; - - bool hasVmapAreaInfo = vmgr->getAreaInfo(GetId(), x, y, vmap_z, vflags, vadtId, vrootId, vgroupId); - bool hasDynamicAreaInfo = _dynamicTree.getAreaInfo(x, y, dynamic_z, phaseMask, dflags, dadtId, drootId, dgroupId); - auto useVmap = [&]() { check_z = vmap_z; flags = vflags; adtId = vadtId; rootId = vrootId; groupId = vgroupId; }; - auto useDyn = [&]() { check_z = dynamic_z; flags = dflags; adtId = dadtId; rootId = drootId; groupId = dgroupId; }; + VMAP::AreaAndLiquidData vdata; + VMAP::AreaAndLiquidData ddata; + bool hasVmapAreaInfo = vmgr->getAreaAndLiquidData(GetId(), x, y, z, {}, vdata) && vdata.areaInfo.has_value(); + bool hasDynamicAreaInfo = _dynamicTree.getAreaAndLiquidData(x, y, z, phaseMask, {}, ddata) && ddata.areaInfo.has_value(); + auto useVmap = [&] { check_z = vdata.floorZ; groupId = vdata.areaInfo->groupId; adtId = vdata.areaInfo->adtId; rootId = vdata.areaInfo->rootId; flags = vdata.areaInfo->mogpFlags; }; + auto useDyn = [&] { check_z = ddata.floorZ; groupId = ddata.areaInfo->groupId; adtId = ddata.areaInfo->adtId; rootId = ddata.areaInfo->rootId; flags = ddata.areaInfo->mogpFlags; }; if (hasVmapAreaInfo) { - if (hasDynamicAreaInfo && dynamic_z > vmap_z) + if (hasDynamicAreaInfo && ddata.floorZ > vdata.floorZ) useDyn(); else useVmap(); @@ -2641,34 +2632,31 @@ void Map::GetZoneAndAreaId(uint32 phaseMask, uint32& zoneid, uint32& areaid, flo zoneid = area->ParentAreaID; } -ZLiquidStatus Map::GetLiquidStatus(uint32 phaseMask, float x, float y, float z, uint8 ReqLiquidType, LiquidData* data, float collisionHeight) const +ZLiquidStatus Map::GetLiquidStatus(uint32 phaseMask, float x, float y, float z, Optional ReqLiquidType, LiquidData* data, float collisionHeight) const { ZLiquidStatus result = LIQUID_MAP_NO_WATER; VMAP::IVMapManager* vmgr = VMAP::VMapFactory::createOrGetVMapManager(); - float liquid_level = INVALID_HEIGHT; - float ground_level = INVALID_HEIGHT; - uint32 liquid_type = 0; - uint32 mogpFlags = 0; + VMAP::AreaAndLiquidData vmapData; bool useGridLiquid = true; - if (vmgr->GetLiquidLevel(GetId(), x, y, z, ReqLiquidType, liquid_level, ground_level, liquid_type, mogpFlags)) + if (vmgr->getAreaAndLiquidData(GetId(), x, y, z, ReqLiquidType, vmapData) && vmapData.liquidInfo) { - useGridLiquid = !IsInWMOInterior(mogpFlags); - TC_LOG_DEBUG("maps", "GetLiquidStatus(): vmap liquid level: {} ground: {} type: {}", liquid_level, ground_level, liquid_type); + useGridLiquid = !vmapData.areaInfo || !IsInWMOInterior(vmapData.areaInfo->mogpFlags); + TC_LOG_DEBUG("maps", "GetLiquidStatus(): vmap liquid level: {} ground: {} type: {}", vmapData.liquidInfo->level, vmapData.floorZ, vmapData.liquidInfo->type); // Check water level and ground level - if (liquid_level > ground_level && G3D::fuzzyGe(z, ground_level - GROUND_HEIGHT_TOLERANCE)) + if (vmapData.liquidInfo->level > vmapData.floorZ && G3D::fuzzyGe(z, vmapData.floorZ - GROUND_HEIGHT_TOLERANCE)) { // All ok in water -> store data if (data) { // hardcoded in client like this - if (GetId() == 530 && liquid_type == 2) - liquid_type = 15; + if (GetId() == 530 && vmapData.liquidInfo->type == 2) + vmapData.liquidInfo->type = 15; uint32 liquidFlagType = 0; - if (LiquidTypeEntry const* liq = sLiquidTypeStore.LookupEntry(liquid_type)) + if (LiquidTypeEntry const* liq = sLiquidTypeStore.LookupEntry(vmapData.liquidInfo->type)) liquidFlagType = liq->SoundBank; - if (liquid_type && liquid_type < 21) + if (vmapData.liquidInfo->type && vmapData.liquidInfo->type < 21) { if (AreaTableEntry const* area = sAreaTableStore.LookupEntry(GetAreaId(phaseMask, x, y, z))) { @@ -2682,20 +2670,20 @@ ZLiquidStatus Map::GetLiquidStatus(uint32 phaseMask, float x, float y, float z, if (LiquidTypeEntry const* liq = sLiquidTypeStore.LookupEntry(overrideLiquid)) { - liquid_type = overrideLiquid; + vmapData.liquidInfo->type = overrideLiquid; liquidFlagType = liq->SoundBank; } } } - data->level = liquid_level; - data->depth_level = ground_level; + data->level = vmapData.liquidInfo->level; + data->depth_level = vmapData.floorZ; - data->entry = liquid_type; + data->entry = vmapData.liquidInfo->type; data->type_flags = 1 << liquidFlagType; } - float delta = liquid_level - z; + float delta = vmapData.liquidInfo->level - z; // Get position delta if (delta > collisionHeight) // Under water @@ -2715,7 +2703,7 @@ ZLiquidStatus Map::GetLiquidStatus(uint32 phaseMask, float x, float y, float z, LiquidData map_data; ZLiquidStatus map_result = gmap->GetLiquidStatus(x, y, z, ReqLiquidType, &map_data, collisionHeight); // Not override LIQUID_MAP_ABOVE_WATER with LIQUID_MAP_NO_WATER: - if (map_result != LIQUID_MAP_NO_WATER && (map_data.level > ground_level)) + if (map_result != LIQUID_MAP_NO_WATER && (map_data.level > vmapData.floorZ)) { if (data) { @@ -2732,7 +2720,7 @@ ZLiquidStatus Map::GetLiquidStatus(uint32 phaseMask, float x, float y, float z, return result; } -void Map::GetFullTerrainStatusForPosition(uint32 phaseMask, float x, float y, float z, PositionFullTerrainStatus& data, uint8 reqLiquidType, float collisionHeight) const +void Map::GetFullTerrainStatusForPosition(uint32 phaseMask, float x, float y, float z, PositionFullTerrainStatus& data, Optional reqLiquidType, float collisionHeight) const { VMAP::IVMapManager* vmgr = VMAP::VMapFactory::createOrGetVMapManager(); VMAP::AreaAndLiquidData vmapData; @@ -2779,7 +2767,7 @@ void Map::GetFullTerrainStatusForPosition(uint32 phaseMask, float x, float y, fl { if (wmoData->areaInfo) { - data.areaInfo.emplace(wmoData->areaInfo->adtId, wmoData->areaInfo->rootId, wmoData->areaInfo->groupId, wmoData->areaInfo->mogpFlags); + data.wmoLocation.emplace(wmoData->areaInfo->groupId, wmoData->areaInfo->adtId, wmoData->areaInfo->rootId, wmoData->areaInfo->uniqueId); // wmo found WMOAreaTableEntry const* wmoEntry = GetWMOAreaTableEntryByTripple(wmoData->areaInfo->rootId, wmoData->areaInfo->adtId, wmoData->areaInfo->groupId); data.outdoors = (wmoData->areaInfo->mogpFlags & 0x8) != 0; @@ -2908,7 +2896,7 @@ bool Map::IsInWater(uint32 phaseMask, float x, float y, float pZ, LiquidData* da { LiquidData liquid_status; LiquidData* liquid_ptr = data ? data : &liquid_status; - return (GetLiquidStatus(phaseMask, x, y, pZ, MAP_ALL_LIQUIDS, liquid_ptr) & (LIQUID_MAP_IN_WATER | LIQUID_MAP_UNDER_WATER)) != 0; + return (GetLiquidStatus(phaseMask, x, y, pZ, {}, liquid_ptr) & (LIQUID_MAP_IN_WATER | LIQUID_MAP_UNDER_WATER)) != 0; } bool Map::IsUnderWater(uint32 phaseMask, float x, float y, float z) const diff --git a/src/server/game/Maps/Map.h b/src/server/game/Maps/Map.h index af77c92585..dfe0ff4a37 100644 --- a/src/server/game/Maps/Map.h +++ b/src/server/game/Maps/Map.h @@ -24,6 +24,7 @@ #include "DynamicTree.h" #include "GridDefines.h" #include "GridRefManager.h" +#include "MapDefines.h" #include "MapRefManager.h" #include "MPSCQueue.h" #include "ObjectGuid.h" @@ -140,18 +141,6 @@ struct map_liquidHeader float liquidLevel; }; -enum ZLiquidStatus : uint32 -{ - LIQUID_MAP_NO_WATER = 0x00000000, - LIQUID_MAP_ABOVE_WATER = 0x00000001, - LIQUID_MAP_WATER_WALK = 0x00000002, - LIQUID_MAP_IN_WATER = 0x00000004, - LIQUID_MAP_UNDER_WATER = 0x00000008 -}; - -#define MAP_LIQUID_STATUS_SWIMMING (LIQUID_MAP_IN_WATER | LIQUID_MAP_UNDER_WATER) -#define MAP_LIQUID_STATUS_IN_CONTACT (MAP_LIQUID_STATUS_SWIMMING | LIQUID_MAP_WATER_WALK) - #define MAP_LIQUID_TYPE_NO_WATER 0x00 #define MAP_LIQUID_TYPE_WATER 0x01 #define MAP_LIQUID_TYPE_OCEAN 0x02 @@ -162,34 +151,6 @@ enum ZLiquidStatus : uint32 #define MAP_LIQUID_TYPE_DARK_WATER 0x10 -struct LiquidData -{ - uint32 type_flags; - uint32 entry; - float level; - float depth_level; -}; - -struct PositionFullTerrainStatus -{ - struct AreaInfo - { - AreaInfo(int32 _adtId, int32 _rootId, int32 _groupId, uint32 _flags) : adtId(_adtId), rootId(_rootId), groupId(_groupId), mogpFlags(_flags) { } - int32 const adtId; - int32 const rootId; - int32 const groupId; - uint32 const mogpFlags; - }; - - PositionFullTerrainStatus() : areaId(0), floorZ(0.0f), outdoors(true), liquidStatus(LIQUID_MAP_NO_WATER) { } - uint32 areaId; - float floorZ; - bool outdoors; - ZLiquidStatus liquidStatus; - Optional areaInfo; - Optional liquidInfo; -}; - class TC_GAME_API GridMap { uint32 _flags; @@ -250,7 +211,7 @@ class TC_GAME_API GridMap inline float getHeight(float x, float y) const {return (this->*_gridGetHeight)(x, y);} float getMinHeight(float x, float y) const; float getLiquidLevel(float x, float y) const; - ZLiquidStatus GetLiquidStatus(float x, float y, float z, uint8 ReqLiquidType, LiquidData* data = 0, float collisionHeight = 2.03128f); // DEFAULT_COLLISION_HEIGHT in Object.h + ZLiquidStatus GetLiquidStatus(float x, float y, float z, Optional ReqLiquidType, LiquidData* data = 0, float collisionHeight = 2.03128f); // DEFAULT_COLLISION_HEIGHT in Object.h }; #pragma pack(push, 1) @@ -400,8 +361,8 @@ class TC_GAME_API Map : public GridRefManager Map const* GetParent() const { return m_parentMap; } - void GetFullTerrainStatusForPosition(uint32 phaseMask, float x, float y, float z, PositionFullTerrainStatus& data, uint8 reqLiquidType, float collisionHeight) const; - ZLiquidStatus GetLiquidStatus(uint32 phaseMask, float x, float y, float z, uint8 ReqLiquidType, LiquidData* data = nullptr, float collisionHeight = 2.03128f) const; // DEFAULT_COLLISION_HEIGHT in Object.h + void GetFullTerrainStatusForPosition(uint32 phaseMask, float x, float y, float z, PositionFullTerrainStatus& data, Optional reqLiquidType = {}, float collisionHeight = 2.03128f) const; // DEFAULT_COLLISION_HEIGHT in Object.h + ZLiquidStatus GetLiquidStatus(uint32 phaseMask, float x, float y, float z, Optional ReqLiquidType, LiquidData* data = nullptr, float collisionHeight = 2.03128f) const; // DEFAULT_COLLISION_HEIGHT in Object.h bool GetAreaInfo(uint32 phaseMask, float x, float y, float z, uint32& mogpflags, int32& adtId, int32& rootId, int32& groupId) const; uint32 GetAreaId(uint32 phaseMask, float x, float y, float z) const; diff --git a/src/server/game/Movement/PathGenerator.cpp b/src/server/game/Movement/PathGenerator.cpp index 08de2f4e12..bb90f28859 100644 --- a/src/server/game/Movement/PathGenerator.cpp +++ b/src/server/game/Movement/PathGenerator.cpp @@ -184,7 +184,7 @@ void PathGenerator::BuildPolyPath(G3D::Vector3 const& startPos, G3D::Vector3 con // Check both start and end points, if they're both in water, then we can *safely* let the creature move for (uint32 i = 0; i < _pathPoints.size(); ++i) { - ZLiquidStatus status = _source->GetMap()->GetLiquidStatus(_source->GetPhaseMask(), _pathPoints[i].x, _pathPoints[i].y, _pathPoints[i].z, MAP_ALL_LIQUIDS, nullptr, _source->GetCollisionHeight()); + ZLiquidStatus status = _source->GetMap()->GetLiquidStatus(_source->GetPhaseMask(), _pathPoints[i].x, _pathPoints[i].y, _pathPoints[i].z, {}, nullptr, _source->GetCollisionHeight()); // One of the points is not in the water, cancel movement. if (status == LIQUID_MAP_NO_WATER) { @@ -696,7 +696,7 @@ void PathGenerator::UpdateFilter() NavTerrainFlag PathGenerator::GetNavTerrain(float x, float y, float z) { LiquidData data; - ZLiquidStatus liquidStatus = _source->GetMap()->GetLiquidStatus(_source->GetPhaseMask(), x, y, z, MAP_ALL_LIQUIDS, &data, _source->GetCollisionHeight()); + ZLiquidStatus liquidStatus = _source->GetMap()->GetLiquidStatus(_source->GetPhaseMask(), x, y, z, {}, &data, _source->GetCollisionHeight()); if (liquidStatus == LIQUID_MAP_NO_WATER) return NAV_GROUND; diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index c5fe2d9dfd..53be3ce0f1 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -1377,7 +1377,7 @@ void Spell::SelectImplicitCasterDestTargets(SpellEffectInfo const& spellEffectIn float ground = m_caster->GetMapHeight(x, y, z); float liquidLevel = VMAP_INVALID_HEIGHT_VALUE; LiquidData liquidData; - if (m_caster->GetMap()->GetLiquidStatus(m_caster->GetPhaseMask(), x, y, z, MAP_ALL_LIQUIDS, &liquidData, m_caster->GetCollisionHeight())) + if (m_caster->GetMap()->GetLiquidStatus(m_caster->GetPhaseMask(), x, y, z, {}, &liquidData, m_caster->GetCollisionHeight())) liquidLevel = liquidData.level; if (liquidLevel <= ground) // When there is no liquid Map::GetWaterOrGroundLevel returns ground level diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp index 65c671bef2..8b26d375c2 100644 --- a/src/server/scripts/Commands/cs_misc.cpp +++ b/src/server/scripts/Commands/cs_misc.cpp @@ -296,7 +296,7 @@ class misc_commandscript : public CommandScript zoneX, zoneY, groundZ, floorZ, map->GetMinHeight(object->GetPositionX(), object->GetPositionY()), haveMap, haveVMap, haveMMap); LiquidData liquidStatus; - ZLiquidStatus status = map->GetLiquidStatus(object->GetPhaseMask(), object->GetPositionX(), object->GetPositionY(), object->GetPositionZ(), MAP_ALL_LIQUIDS, &liquidStatus, object->GetCollisionHeight()); + ZLiquidStatus status = map->GetLiquidStatus(object->GetPhaseMask(), object->GetPositionX(), object->GetPositionY(), object->GetPositionZ(), {}, &liquidStatus); if (status) handler->PSendSysMessage(LANG_LIQUID_STATUS, liquidStatus.level, liquidStatus.depth_level, liquidStatus.entry, liquidStatus.type_flags, status); diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp index 8126459250..f9a30113a3 100644 --- a/src/server/scripts/Spells/spell_generic.cpp +++ b/src/server/scripts/Spells/spell_generic.cpp @@ -214,7 +214,7 @@ class spell_spawn_blood_pool : public SpellScript Unit* caster = GetCaster(); Position summonPos = caster->GetPosition(); LiquidData liquidStatus; - if (caster->GetMap()->GetLiquidStatus(caster->GetPhaseMask(), caster->GetPositionX(), caster->GetPositionY(), caster->GetPositionZ(), MAP_ALL_LIQUIDS, &liquidStatus, caster->GetCollisionHeight())) + if (caster->GetMap()->GetLiquidStatus(caster->GetPhaseMask(), caster->GetPositionX(), caster->GetPositionY(), caster->GetPositionZ(), {}, &liquidStatus, caster->GetCollisionHeight())) summonPos.m_positionZ = liquidStatus.level; dest.Relocate(summonPos); } From 5eed7506a253fea65cef7dfb8560667defe4a564 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 19 Nov 2024 20:20:33 +0100 Subject: [PATCH 04/10] Core/vmaps: Improved WMO detection for group models that don't have floor (cherry picked from commit 28c9474337d0d30bc1d131b12b635c31a98bc97a) --- .../Collision/BoundingIntervalHierarchy.h | 1 + src/common/Collision/Models/WorldModel.cpp | 128 +++++++++++------- src/common/Collision/Models/WorldModel.h | 6 +- 3 files changed, 86 insertions(+), 49 deletions(-) diff --git a/src/common/Collision/BoundingIntervalHierarchy.h b/src/common/Collision/BoundingIntervalHierarchy.h index a5717637a3..66bb7c61c6 100644 --- a/src/common/Collision/BoundingIntervalHierarchy.h +++ b/src/common/Collision/BoundingIntervalHierarchy.h @@ -113,6 +113,7 @@ class TC_COMMON_API BIH delete[] dat.indices; } uint32 primCount() const { return uint32(objects.size()); } + G3D::AABox const& bound() const { return bounds; } template void intersectRay(const G3D::Ray &r, RayCallback& intersectCallback, float &maxDist, bool stopAtFirst = false) const diff --git a/src/common/Collision/Models/WorldModel.cpp b/src/common/Collision/Models/WorldModel.cpp index 454b45c349..a68651d5e3 100644 --- a/src/common/Collision/Models/WorldModel.cpp +++ b/src/common/Collision/Models/WorldModel.cpp @@ -20,9 +20,9 @@ #include "MapTree.h" #include "ModelInstance.h" #include "ModelIgnoreFlags.h" +#include using G3D::Vector3; -using G3D::Ray; template<> struct BoundsTrait { @@ -416,17 +416,46 @@ namespace VMAP return callback.hit; } - bool GroupModel::IsInsideObject(Vector3 const& pos, Vector3 const& down, float& z_dist) const + inline bool IsInsideOrAboveBound(G3D::AABox const& bounds, const G3D::Point3& point) { - if (triangles.empty() || !iBound.contains(pos)) - return false; - Vector3 rPos = pos - 0.1f * down; - float dist = G3D::finf(); - G3D::Ray ray(rPos, down); - bool hit = IntersectRay(ray, dist, false); - if (hit) - z_dist = dist - 0.1f; - return hit; + return point.x >= bounds.low().x + && point.y >= bounds.low().y + && point.z >= bounds.low().z + && point.x <= bounds.high().x + && point.y <= bounds.high().y; + } + + GroupModel::InsideResult GroupModel::IsInsideObject(G3D::Ray const& ray, float& z_dist) const + { + if (triangles.empty() || !IsInsideOrAboveBound(iBound, ray.origin())) + return OUT_OF_BOUNDS; + + if (meshTree.bound().high().z >= ray.origin().z) + { + float dist = G3D::finf(); + if (IntersectRay(ray, dist, false)) + { + z_dist = dist - 0.1f; + return INSIDE; + } + if (meshTree.bound().contains(ray.origin())) + return MAYBE_INSIDE; + } + else + { + // some group models don't have any floor to intersect with + // so we should attempt to intersect with a model part below this group + // then find back where we originated from (in WorldModel::GetLocationInfo) + float dist = G3D::finf(); + float delta = ray.origin().z - meshTree.bound().high().z; + if (IntersectRay(ray.bumpedRay(delta), dist, false)) + { + z_dist = dist - 0.1f + delta; + return ABOVE; + } + } + + return OUT_OF_BOUNDS; } bool GroupModel::GetLiquidLevel(Vector3 const& pos, float& liqHeight) const @@ -492,41 +521,33 @@ namespace VMAP return isc.hit; } - class WModelAreaCallback { - public: - WModelAreaCallback(std::vector const& vals, Vector3 const& down) : - prims(vals.begin()), hit(vals.end()), minVol(G3D::finf()), zDist(G3D::finf()), zVec(down) { } - std::vector::const_iterator prims; - std::vector::const_iterator hit; - float minVol; - float zDist; - Vector3 zVec; - void operator()(Vector3 const& point, uint32 entry) + class WModelAreaCallback + { + public: + WModelAreaCallback(std::vector const& vals) : + prims(vals), hit() { } + std::vector const& prims; + std::array hit; + + bool operator()(G3D::Ray const& ray, uint32 entry, float& distance, bool /*stopAtFirstHit*/) + { + float group_Z; + if (GroupModel::InsideResult result = prims[entry].IsInsideObject(ray, group_Z); result != GroupModel::OUT_OF_BOUNDS) { - float group_Z; - //float pVol = prims[entry].GetBound().volume(); - //if (pVol < minVol) - //{ - /* if (prims[entry].iBound.contains(point)) */ - if (prims[entry].IsInsideObject(point, zVec, group_Z)) + if (result != GroupModel::MAYBE_INSIDE) + { + if (group_Z < distance) { - //minVol = pVol; - //hit = prims + entry; - if (group_Z < zDist) - { - zDist = group_Z; - hit = prims + entry; - } -#ifdef VMAP_DEBUG - GroupModel const& gm = prims[entry]; - printf("%10u %8X %7.3f, %7.3f, %7.3f | %7.3f, %7.3f, %7.3f | z=%f, p_z=%f\n", gm.GetWmoID(), gm.GetMogpFlags(), - gm.GetBound().low().x, gm.GetBound().low().y, gm.GetBound().low().z, - gm.GetBound().high().x, gm.GetBound().high().y, gm.GetBound().high().z, group_Z, point.z); -#endif + distance = group_Z; + hit[result] = &prims[entry]; + return true; } - //} - //std::cout << "trying to intersect '" << prims[entry].name << "'\n"; + } + else + hit[result] = &prims[entry]; } + return false; + } }; bool WorldModel::GetLocationInfo(const G3D::Vector3& p, const G3D::Vector3& down, float& dist, GroupLocationInfo& info) const @@ -534,13 +555,26 @@ namespace VMAP if (groupModels.empty()) return false; - WModelAreaCallback callback(groupModels, down); - groupTree.intersectPoint(p, callback); - if (callback.hit != groupModels.end()) + WModelAreaCallback callback(groupModels); + G3D::Ray r(p - down * 0.1f, down); + float zDist = groupTree.bound().extent().length(); + groupTree.intersectRay(r, callback, zDist, false); + if (callback.hit[GroupModel::INSIDE]) + { + info.rootId = RootWMOID; + info.hitModel = callback.hit[GroupModel::INSIDE]; + dist = zDist; + return true; + } + + // some group models don't have any floor to intersect with + // so we should attempt to intersect with a model part below the group `p` is in (stored in GroupModel::ABOVE) + // then find back where we originated from (GroupModel::MAYBE_INSIDE) + if (callback.hit[GroupModel::MAYBE_INSIDE] && callback.hit[GroupModel::ABOVE]) { info.rootId = RootWMOID; - info.hitModel = &(*callback.hit); - dist = callback.zDist; + info.hitModel = callback.hit[GroupModel::MAYBE_INSIDE]; + dist = zDist; return true; } return false; diff --git a/src/common/Collision/Models/WorldModel.h b/src/common/Collision/Models/WorldModel.h index 10fa529f00..e06807687d 100644 --- a/src/common/Collision/Models/WorldModel.h +++ b/src/common/Collision/Models/WorldModel.h @@ -84,12 +84,14 @@ namespace VMAP void setMeshData(std::vector &vert, std::vector &tri); void setLiquidData(WmoLiquid*& liquid) { iLiquid = liquid; liquid = nullptr; } bool IntersectRay(const G3D::Ray &ray, float &distance, bool stopAtFirstHit) const; - bool IsInsideObject(const G3D::Vector3 &pos, const G3D::Vector3 &down, float &z_dist) const; + enum InsideResult { INSIDE = 0, MAYBE_INSIDE = 1, ABOVE = 2, OUT_OF_BOUNDS = -1 }; + InsideResult IsInsideObject(G3D::Ray const& ray, float& z_dist) const; bool GetLiquidLevel(const G3D::Vector3 &pos, float &liqHeight) const; uint32 GetLiquidType() const; bool writeToFile(FILE* wf); bool readFromFile(FILE* rf); - const G3D::AABox& GetBound() const { return iBound; } + G3D::AABox const& GetBound() const { return iBound; } + G3D::AABox const& GetMeshTreeBound() const { return meshTree.bound(); } uint32 GetMogpFlags() const { return iMogpFlags; } uint32 GetWmoID() const { return iGroupWMOID; } void getMeshData(std::vector& outVertices, std::vector& outTriangles, WmoLiquid*& liquid); From ab8c1d6277a77448393a8bb3ea101985dd1c47c9 Mon Sep 17 00:00:00 2001 From: Aokromes Date: Wed, 20 Nov 2024 01:39:07 +0100 Subject: [PATCH 05/10] DB/Creature: Aldor Neophyte at Aldor Rise shoud only be draenei closes #28743 by CraftedRO --- sql/updates/world/3.3.5/2024_11_20_00_world.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 sql/updates/world/3.3.5/2024_11_20_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_20_00_world.sql b/sql/updates/world/3.3.5/2024_11_20_00_world.sql new file mode 100644 index 0000000000..dcec2e975e --- /dev/null +++ b/sql/updates/world/3.3.5/2024_11_20_00_world.sql @@ -0,0 +1,2 @@ +-- they only have one gender and it seems DisplayID_Other_Gender will be dropped in the future +UPDATE `creature_model_info` SET `DisplayID_Other_Gender`=0 WHERE `DisplayID` IN (18566,18567,18568,18569); From a93b1151f20271b4149834912e7d3e7fc3a39747 Mon Sep 17 00:00:00 2001 From: Aokromes Date: Wed, 20 Nov 2024 02:20:19 +0100 Subject: [PATCH 06/10] DB/Skills: Death Knights shoud start with Journeyman Riding (150) closes #30449 by CraftedRO --- sql/updates/world/3.3.5/2024_11_20_01_world.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 sql/updates/world/3.3.5/2024_11_20_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_20_01_world.sql b/sql/updates/world/3.3.5/2024_11_20_01_world.sql new file mode 100644 index 0000000000..ba85644e89 --- /dev/null +++ b/sql/updates/world/3.3.5/2024_11_20_01_world.sql @@ -0,0 +1,2 @@ +-- Death Knights shoud start with Journeyman Riding (150) +UPDATE `playercreateinfo_skills` SET `rank`=2 WHERE `raceMask`=0 AND `classMask`=32 AND `skill`=762; From c6fb43947bf531eb737c17c1a95d8157db421c75 Mon Sep 17 00:00:00 2001 From: CraftedRO <24683355+CraftedRO@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:55:58 +0200 Subject: [PATCH 07/10] Core/Unit: Fix DualWield Off-hand hit penalty (#30444) * Offhand attacks that occur while on-next-hit abilities such as Heroic Strike are queued do not suffer the dual wield to-hit penalty. --- src/server/game/Entities/Unit/Unit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 4ef204e5f7..cc67ca2da6 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -12128,8 +12128,8 @@ float Unit::MeleeSpellMissChance(Unit const* victim, WeaponAttackType attType, i //calculate miss chance float missChance = victim->GetUnitMissChance(); - // melee attacks while dual wielding have +19% chance to miss - if (!spellId && haveOffhandWeapon()) + // Check if dual wielding, add additional miss penalty - when mainhand has on next swing spell, offhand doesnt suffer penalty + if (!spellId && haveOffhandWeapon() && attType != RANGED_ATTACK && !m_currentSpells[CURRENT_MELEE_SPELL]) missChance += 19.0f; // bonus from skills is 0.04% From b7471244adb08f112214634b27d7daf2da19aa0f Mon Sep 17 00:00:00 2001 From: Aokromes Date: Fri, 22 Nov 2024 01:56:11 +0100 Subject: [PATCH 08/10] DB/Creature: Fix people still on combat after killing tyrannus updates #30420 by Odyssey --- sql/updates/world/3.3.5/2024_11_22_00_world.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 sql/updates/world/3.3.5/2024_11_22_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_22_00_world.sql b/sql/updates/world/3.3.5/2024_11_22_00_world.sql new file mode 100644 index 0000000000..1e516578e9 --- /dev/null +++ b/sql/updates/world/3.3.5/2024_11_22_00_world.sql @@ -0,0 +1,2 @@ +-- Pit of Saron: Set Tyrannus as vehicle minion +UPDATE `vehicle_template_accessory` SET `minion`=1 WHERE `entry`=36794; From c354f25e5dec1ead1f12118aa42d51c91c60d6e9 Mon Sep 17 00:00:00 2001 From: TDB Release Date: Fri, 22 Nov 2024 23:19:50 +0000 Subject: [PATCH 09/10] TDB 335.24111 - 2024/11/22 --- revision_data.h.in.cmake | 2 +- sql/base/auth_database.sql | 13 +++++++------ sql/base/characters_database.sql | 9 +++++---- sql/base/dev/world_database.sql | 16 ++++++++++------ .../24081_2024_11_22}/2024_08_17_00_auth.sql | 0 .../24081_2024_11_22}/2024_08_28_01_auth.sql | 0 .../24081_2024_11_22}/2024_08_30_00_auth.sql | 0 .../24081_2024_11_22}/2024_09_26_00_auth.sql | 0 .../2024_08_17_00_characters.sql | 0 .../2024_10_03_00_characters.sql | 0 .../24081_2024_11_22}/2024_08_17_00_world.sql | 0 .../24081_2024_11_22}/2024_08_21_00_world.sql | 0 .../24081_2024_11_22}/2024_09_07_00_world.sql | 0 .../24081_2024_11_22}/2024_09_11_00_world.sql | 0 .../24081_2024_11_22}/2024_09_14_00_world.sql | 0 .../24081_2024_11_22}/2024_09_29_00_world.sql | 0 .../24081_2024_11_22}/2024_09_29_01_world.sql | 0 .../24081_2024_11_22}/2024_10_02_00_world.sql | 0 .../2024_10_05_00_world_2022_12_27_01_world.sql | 0 .../2024_10_05_01_world_2023_07_30_00_world.sql | 0 .../24081_2024_11_22}/2024_10_06_00_world.sql | 0 .../24081_2024_11_22}/2024_10_07_00_world.sql | 0 .../24081_2024_11_22}/2024_10_07_01_world.sql | 0 .../24081_2024_11_22}/2024_10_10_00_world.sql | 0 .../24081_2024_11_22}/2024_10_10_01_world.sql | 0 .../24081_2024_11_22}/2024_10_10_02_world.sql | 0 .../24081_2024_11_22}/2024_10_10_03_world.sql | 0 .../24081_2024_11_22}/2024_10_10_04_world.sql | 0 .../24081_2024_11_22}/2024_10_10_05_world.sql | 0 .../24081_2024_11_22}/2024_10_10_06_world.sql | 0 .../24081_2024_11_22}/2024_10_10_07_world.sql | 0 .../24081_2024_11_22}/2024_10_10_08_world.sql | 0 .../24081_2024_11_22}/2024_10_10_09_world.sql | 0 .../24081_2024_11_22}/2024_10_10_10_world.sql | 0 .../24081_2024_11_22}/2024_10_10_11_world.sql | 0 .../24081_2024_11_22}/2024_10_10_12_world.sql | 0 .../24081_2024_11_22}/2024_10_10_13_world.sql | 0 .../24081_2024_11_22}/2024_10_10_14_world.sql | 0 .../24081_2024_11_22}/2024_10_11_00_world.sql | 0 .../24081_2024_11_22}/2024_10_11_01_world.sql | 0 .../24081_2024_11_22}/2024_10_17_00_world.sql | 0 .../24081_2024_11_22}/2024_10_20_00_world.sql | 0 .../24081_2024_11_22}/2024_10_20_01_world.sql | 0 .../24081_2024_11_22}/2024_10_20_02_world.sql | 0 .../24081_2024_11_22}/2024_10_20_03_world.sql | 0 .../24081_2024_11_22}/2024_10_20_04_world.sql | 0 .../24081_2024_11_22}/2024_10_20_05_world.sql | 0 .../24081_2024_11_22}/2024_10_20_06_world.sql | 0 .../24081_2024_11_22}/2024_10_24_00_world.sql | 0 .../24081_2024_11_22}/2024_10_24_01_world.sql | 0 .../24081_2024_11_22}/2024_10_24_02_world.sql | 0 .../24081_2024_11_22}/2024_10_24_03_world.sql | 0 .../24081_2024_11_22}/2024_10_26_00_world.sql | 0 .../24081_2024_11_22}/2024_10_29_00_world.sql | 0 .../24081_2024_11_22}/2024_10_29_01_world.sql | 0 .../24081_2024_11_22}/2024_11_01_00_world.sql | 0 .../24081_2024_11_22}/2024_11_01_01_world.sql | 0 .../24081_2024_11_22}/2024_11_03_00_world.sql | 0 .../24081_2024_11_22}/2024_11_05_00_world.sql | 0 .../24081_2024_11_22}/2024_11_05_01_world.sql | 0 .../24081_2024_11_22}/2024_11_05_02_world.sql | 0 .../24081_2024_11_22}/2024_11_07_00_world.sql | 0 .../24081_2024_11_22}/2024_11_07_01_world.sql | 0 .../24081_2024_11_22}/2024_11_08_00_world.sql | 0 .../24081_2024_11_22}/2024_11_10_00_world.sql | 0 .../24081_2024_11_22}/2024_11_10_01_world.sql | 0 .../24081_2024_11_22}/2024_11_10_02_world.sql | 0 .../24081_2024_11_22}/2024_11_12_00_world.sql | 0 .../24081_2024_11_22}/2024_11_12_01_world.sql | 0 .../24081_2024_11_22}/2024_11_12_02_world.sql | 0 .../24081_2024_11_22}/2024_11_12_03_world.sql | 0 .../24081_2024_11_22}/2024_11_12_04_world.sql | 0 .../24081_2024_11_22}/2024_11_12_05_world.sql | 0 .../24081_2024_11_22}/2024_11_12_06_world.sql | 0 .../24081_2024_11_22}/2024_11_12_07_world.sql | 0 .../24081_2024_11_22}/2024_11_12_08_world.sql | 0 .../24081_2024_11_22}/2024_11_13_00_world.sql | 0 .../24081_2024_11_22}/2024_11_14_00_world.sql | 0 .../24081_2024_11_22}/2024_11_14_01_world.sql | 0 .../24081_2024_11_22}/2024_11_18_00_world.sql | 0 .../24081_2024_11_22}/2024_11_20_00_world.sql | 0 .../24081_2024_11_22}/2024_11_20_01_world.sql | 0 .../24081_2024_11_22}/2024_11_22_00_world.sql | 0 sql/updates/auth/3.3.5/2024_11_22_00_auth.sql | 2 ++ .../3.3.5/2024_11_22_00_characters.sql | 2 ++ sql/updates/world/3.3.5/2024_11_22_01_world.sql | 3 +++ 86 files changed, 30 insertions(+), 17 deletions(-) rename sql/{updates/auth/3.3.5 => old/3.3.5a/auth/24081_2024_11_22}/2024_08_17_00_auth.sql (100%) rename sql/{updates/auth/3.3.5 => old/3.3.5a/auth/24081_2024_11_22}/2024_08_28_01_auth.sql (100%) rename sql/{updates/auth/3.3.5 => old/3.3.5a/auth/24081_2024_11_22}/2024_08_30_00_auth.sql (100%) rename sql/{updates/auth/3.3.5 => old/3.3.5a/auth/24081_2024_11_22}/2024_09_26_00_auth.sql (100%) rename sql/{updates/characters/3.3.5 => old/3.3.5a/characters/24081_2024_11_22}/2024_08_17_00_characters.sql (100%) rename sql/{updates/characters/3.3.5 => old/3.3.5a/characters/24081_2024_11_22}/2024_10_03_00_characters.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_08_17_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_08_21_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_09_07_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_09_11_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_09_14_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_09_29_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_09_29_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_02_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_05_00_world_2022_12_27_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_05_01_world_2023_07_30_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_06_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_07_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_07_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_02_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_03_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_04_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_05_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_06_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_07_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_08_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_09_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_10_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_11_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_12_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_13_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_10_14_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_11_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_11_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_17_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_20_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_20_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_20_02_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_20_03_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_20_04_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_20_05_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_20_06_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_24_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_24_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_24_02_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_24_03_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_26_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_29_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_10_29_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_01_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_01_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_03_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_05_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_05_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_05_02_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_07_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_07_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_08_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_10_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_10_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_10_02_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_12_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_12_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_12_02_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_12_03_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_12_04_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_12_05_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_12_06_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_12_07_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_12_08_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_13_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_14_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_14_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_18_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_20_00_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_20_01_world.sql (100%) rename sql/{updates/world/3.3.5 => old/3.3.5a/world/24081_2024_11_22}/2024_11_22_00_world.sql (100%) create mode 100644 sql/updates/auth/3.3.5/2024_11_22_00_auth.sql create mode 100644 sql/updates/characters/3.3.5/2024_11_22_00_characters.sql create mode 100644 sql/updates/world/3.3.5/2024_11_22_01_world.sql diff --git a/revision_data.h.in.cmake b/revision_data.h.in.cmake index 761a721172..e206a88e52 100644 --- a/revision_data.h.in.cmake +++ b/revision_data.h.in.cmake @@ -9,7 +9,7 @@ #define _SOURCE_DIRECTORY R"(@CMAKE_SOURCE_DIR@)" #define _BUILD_DIRECTORY R"(@BUILDDIR@)" #define _MYSQL_EXECUTABLE R"(@MYSQL_EXECUTABLE@)" - #define _FULL_DATABASE "TDB_full_world_335.24081_2024_08_17.sql" + #define _FULL_DATABASE "TDB_full_world_335.24111_2024_11_22.sql" #define VER_COMPANYNAME_STR "TrinityCore Developers" #define VER_LEGALCOPYRIGHT_STR "(c)2008-@rev_year@ TrinityCore" #define VER_FILEVERSION 0,0,0 diff --git a/sql/base/auth_database.sql b/sql/base/auth_database.sql index a17106cb4b..d90850cc9b 100644 --- a/sql/base/auth_database.sql +++ b/sql/base/auth_database.sql @@ -1,8 +1,8 @@ --- MySQL dump 10.13 Distrib 8.0.39, for Linux (x86_64) +-- MySQL dump 10.13 Distrib 8.0.40, for Linux (x86_64) -- -- Host: localhost Database: auth -- ------------------------------------------------------ --- Server version 8.0.39-0ubuntu0.22.04.1 +-- Server version 8.0.40-0ubuntu0.22.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; @@ -2528,9 +2528,10 @@ INSERT INTO `updates` VALUES ('2024_01_21_00_auth.sql','B45B95D7B608D6ACF1BCBA656718C7DEED8CFF00','ARCHIVED','2024-01-21 11:38:22',0), ('2024_04_10_00_auth.sql','CE8BD4D6DF6DE85DBF892507B1B18B746FE4A71D','ARCHIVED','2024-04-10 16:07:02',0), ('2024_08_17_00_auth.sql','B6D7D00D5573958EE84321B029D869C52793F924','ARCHIVED','2024-08-17 22:26:12',0), -('2024_08_28_01_auth.sql','BC5D74553AF2D92606F55C1C462D2700FE73BD34','RELEASED','2024-08-28 14:55:05',0), -('2024_08_30_00_auth.sql','BD76942F1C29AAA2450E051E7CA552672B5E331B','RELEASED','2024-08-30 19:24:30',0), -('2024_09_26_00_auth.sql','E37C3997FD7851EA360774AC568912846C448272','RELEASED','2024-09-26 18:27:26',0); +('2024_08_28_01_auth.sql','BC5D74553AF2D92606F55C1C462D2700FE73BD34','ARCHIVED','2024-08-28 14:55:05',0), +('2024_08_30_00_auth.sql','BD76942F1C29AAA2450E051E7CA552672B5E331B','ARCHIVED','2024-08-30 19:24:30',0), +('2024_09_26_00_auth.sql','E37C3997FD7851EA360774AC568912846C448272','ARCHIVED','2024-09-26 18:27:26',0), +('2024_11_22_00_auth.sql','F2C1D1572A3968E9E9D778EF7DC82778DF3EF887','ARCHIVED','2024-11-22 23:18:14',0); /*!40000 ALTER TABLE `updates` ENABLE KEYS */; UNLOCK TABLES; @@ -2669,4 +2670,4 @@ SET character_set_client = @saved_cs_client; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2024-08-17 22:26:14 +-- Dump completed on 2024-11-22 23:18:17 diff --git a/sql/base/characters_database.sql b/sql/base/characters_database.sql index 12faae6da4..dddc50c1ff 100644 --- a/sql/base/characters_database.sql +++ b/sql/base/characters_database.sql @@ -1,8 +1,8 @@ --- MySQL dump 10.13 Distrib 8.0.39, for Linux (x86_64) +-- MySQL dump 10.13 Distrib 8.0.40, for Linux (x86_64) -- -- Host: localhost Database: characters -- ------------------------------------------------------ --- Server version 8.0.39-0ubuntu0.22.04.1 +-- Server version 8.0.40-0ubuntu0.22.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; @@ -2687,7 +2687,8 @@ INSERT INTO `updates` VALUES ('2024_02_05_00_characters.sql','1777CBCA822AD85777DA4A390DF7AAF41AF68EBD','ARCHIVED','2024-02-05 12:17:19',0), ('2024_04_10_00_characters.sql','E0D6E19ACE6759332402FA27C23B0F7745C49742','ARCHIVED','2024-04-10 16:07:02',0), ('2024_08_17_00_characters.sql','08705FBCB8504E8B1009FDAF955F56D734FAD782','ARCHIVED','2024-08-17 22:26:12',0), -('2024_10_03_00_characters.sql','408249A6992999A36EB94089D184972E8E0767A3','RELEASED','2024-10-03 11:10:18',0); +('2024_10_03_00_characters.sql','408249A6992999A36EB94089D184972E8E0767A3','ARCHIVED','2024-10-03 11:10:18',0), +('2024_11_22_00_characters.sql','9EA2A4F88036D1D5F47EE8A6B634D52D0014986E','ARCHIVED','2024-11-22 23:18:14',0); /*!40000 ALTER TABLE `updates` ENABLE KEYS */; UNLOCK TABLES; @@ -2858,4 +2859,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2024-08-17 22:26:14 +-- Dump completed on 2024-11-22 23:18:18 diff --git a/sql/base/dev/world_database.sql b/sql/base/dev/world_database.sql index 6c2b3747ac..857872f96a 100644 --- a/sql/base/dev/world_database.sql +++ b/sql/base/dev/world_database.sql @@ -1,8 +1,8 @@ --- MySQL dump 10.13 Distrib 8.0.39, for Linux (x86_64) +-- MySQL dump 10.13 Distrib 8.0.40, for Linux (x86_64) -- -- Host: localhost Database: world -- ------------------------------------------------------ --- Server version 8.0.39-0ubuntu0.22.04.1 +-- Server version 8.0.40-0ubuntu0.22.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; @@ -342,6 +342,7 @@ CREATE TABLE `creature` ( `unit_flags` int unsigned NOT NULL DEFAULT '0', `dynamicflags` int unsigned NOT NULL DEFAULT '0', `ScriptName` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '', + `StringId` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `VerifiedBuild` int DEFAULT '0', PRIMARY KEY (`guid`), KEY `idx_map` (`map`), @@ -676,6 +677,7 @@ CREATE TABLE `creature_template` ( `spell_school_immune_mask` int unsigned NOT NULL DEFAULT '0', `flags_extra` int unsigned NOT NULL DEFAULT '0', `ScriptName` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `StringId` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `VerifiedBuild` int DEFAULT NULL, PRIMARY KEY (`entry`), KEY `idx_name` (`name`) @@ -1223,6 +1225,7 @@ CREATE TABLE `gameobject` ( `animprogress` tinyint unsigned NOT NULL DEFAULT '0', `state` tinyint unsigned NOT NULL DEFAULT '0', `ScriptName` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '', + `StringId` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `VerifiedBuild` int DEFAULT NULL, PRIMARY KEY (`guid`) ) ENGINE=InnoDB AUTO_INCREMENT=2134507 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Gameobject System'; @@ -1370,6 +1373,7 @@ CREATE TABLE `gameobject_template` ( `Data23` int unsigned NOT NULL DEFAULT '0', `AIName` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `ScriptName` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `StringId` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `VerifiedBuild` int DEFAULT NULL, PRIMARY KEY (`entry`), KEY `idx_name` (`name`) @@ -4016,7 +4020,7 @@ CREATE TABLE `waypoints` ( /*!50001 SET character_set_results = utf8mb3 */; /*!50001 SET collation_connection = utf8mb3_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ -/*!50013 */ +/*!50013 SQL SECURITY DEFINER */ /*!50001 VIEW `vw_conditions_with_labels` AS select (case when (`conditions`.`SourceTypeOrReferenceId` = 0) then 'CONDITION_SOURCE_TYPE_NONE' when (`conditions`.`SourceTypeOrReferenceId` = 1) then 'CONDITION_SOURCE_TYPE_CREATURE_LOOT_TEMPLATE' when (`conditions`.`SourceTypeOrReferenceId` = 2) then 'CONDITION_SOURCE_TYPE_DISENCHANT_LOOT_TEMPLATE' when (`conditions`.`SourceTypeOrReferenceId` = 3) then 'CONDITION_SOURCE_TYPE_FISHING_LOOT_TEMPLATE' when (`conditions`.`SourceTypeOrReferenceId` = 4) then 'CONDITION_SOURCE_TYPE_GAMEOBJECT_LOOT_TEMPLATE' when (`conditions`.`SourceTypeOrReferenceId` = 5) then 'CONDITION_SOURCE_TYPE_ITEM_LOOT_TEMPLATE' when (`conditions`.`SourceTypeOrReferenceId` = 6) then 'CONDITION_SOURCE_TYPE_MAIL_LOOT_TEMPLATE' when (`conditions`.`SourceTypeOrReferenceId` = 7) then 'CONDITION_SOURCE_TYPE_MILLING_LOOT_TEMPLATE' when (`conditions`.`SourceTypeOrReferenceId` = 8) then 'CONDITION_SOURCE_TYPE_PICKPOCKETING_LOOT_TEMPLATE' when (`conditions`.`SourceTypeOrReferenceId` = 9) then 'CONDITION_SOURCE_TYPE_PROSPECTING_LOOT_TEMPLATE' when (`conditions`.`SourceTypeOrReferenceId` = 10) then 'CONDITION_SOURCE_TYPE_REFERENCE_LOOT_TEMPLATE' when (`conditions`.`SourceTypeOrReferenceId` = 11) then 'CONDITION_SOURCE_TYPE_SKINNING_LOOT_TEMPLATE' when (`conditions`.`SourceTypeOrReferenceId` = 12) then 'CONDITION_SOURCE_TYPE_SPELL_LOOT_TEMPLATE' when (`conditions`.`SourceTypeOrReferenceId` = 13) then 'CONDITION_SOURCE_TYPE_SPELL_IMPLICIT_TARGET' when (`conditions`.`SourceTypeOrReferenceId` = 14) then 'CONDITION_SOURCE_TYPE_GOSSIP_MENU' when (`conditions`.`SourceTypeOrReferenceId` = 15) then 'CONDITION_SOURCE_TYPE_GOSSIP_MENU_OPTION' when (`conditions`.`SourceTypeOrReferenceId` = 16) then 'CONDITION_SOURCE_TYPE_CREATURE_TEMPLATE_VEHICLE' when (`conditions`.`SourceTypeOrReferenceId` = 17) then 'CONDITION_SOURCE_TYPE_SPELL' when (`conditions`.`SourceTypeOrReferenceId` = 18) then 'CONDITION_SOURCE_TYPE_SPELL_CLICK_EVENT' when (`conditions`.`SourceTypeOrReferenceId` = 19) then 'CONDITION_SOURCE_TYPE_QUEST_AVAILABLE' when (`conditions`.`SourceTypeOrReferenceId` = 21) then 'CONDITION_SOURCE_TYPE_VEHICLE_SPELL' when (`conditions`.`SourceTypeOrReferenceId` = 22) then 'CONDITION_SOURCE_TYPE_SMART_EVENT' when (`conditions`.`SourceTypeOrReferenceId` = 23) then 'CONDITION_SOURCE_TYPE_NPC_VENDOR' when (`conditions`.`SourceTypeOrReferenceId` = 24) then 'CONDITION_SOURCE_TYPE_SPELL_PROC' when (`conditions`.`SourceTypeOrReferenceId` = 25) then 'CONDITION_SOURCE_TYPE_TERRAIN_SWAP' when (`conditions`.`SourceTypeOrReferenceId` = 26) then 'CONDITION_SOURCE_TYPE_PHASE' when (`conditions`.`SourceTypeOrReferenceId` = 27) then 'CONDITION_SOURCE_TYPE_GRAVEYARD' else `conditions`.`SourceTypeOrReferenceId` end) AS `SourceTypeOrReferenceId`,`conditions`.`SourceGroup` AS `SourceGroup`,`conditions`.`SourceEntry` AS `SourceEntry`,`conditions`.`SourceId` AS `SourceId`,`conditions`.`ElseGroup` AS `ElseGroup`,(case when (`conditions`.`SourceTypeOrReferenceId` = 0) then 'CONDITION_NONE' when (`conditions`.`SourceTypeOrReferenceId` = 1) then 'CONDITION_AURA' when (`conditions`.`SourceTypeOrReferenceId` = 2) then 'CONDITION_ITEM' when (`conditions`.`SourceTypeOrReferenceId` = 3) then 'CONDITION_ITEM_EQUIPPED' when (`conditions`.`SourceTypeOrReferenceId` = 4) then 'CONDITION_ZONEID' when (`conditions`.`SourceTypeOrReferenceId` = 5) then 'CONDITION_REPUTATION_RANK' when (`conditions`.`SourceTypeOrReferenceId` = 6) then 'CONDITION_TEAM' when (`conditions`.`SourceTypeOrReferenceId` = 7) then 'CONDITION_SKILL' when (`conditions`.`SourceTypeOrReferenceId` = 8) then 'CONDITION_QUESTREWARDED' when (`conditions`.`SourceTypeOrReferenceId` = 9) then 'CONDITION_QUESTTAKEN' when (`conditions`.`SourceTypeOrReferenceId` = 10) then 'CONDITION_DRUNKENSTATE' when (`conditions`.`SourceTypeOrReferenceId` = 11) then 'CONDITION_WORLD_STATE' when (`conditions`.`SourceTypeOrReferenceId` = 12) then 'CONDITION_ACTIVE_EVENT' when (`conditions`.`SourceTypeOrReferenceId` = 13) then 'CONDITION_INSTANCE_INFO' when (`conditions`.`SourceTypeOrReferenceId` = 14) then 'CONDITION_QUEST_NONE' when (`conditions`.`SourceTypeOrReferenceId` = 15) then 'CONDITION_CLASS' when (`conditions`.`SourceTypeOrReferenceId` = 16) then 'CONDITION_RACE' when (`conditions`.`SourceTypeOrReferenceId` = 17) then 'CONDITION_ACHIEVEMENT' when (`conditions`.`SourceTypeOrReferenceId` = 18) then 'CONDITION_TITLE' when (`conditions`.`SourceTypeOrReferenceId` = 19) then 'CONDITION_SPAWNMASK' when (`conditions`.`SourceTypeOrReferenceId` = 20) then 'CONDITION_GENDER' when (`conditions`.`SourceTypeOrReferenceId` = 21) then 'CONDITION_UNIT_STATE' when (`conditions`.`SourceTypeOrReferenceId` = 22) then 'CONDITION_MAPID' when (`conditions`.`SourceTypeOrReferenceId` = 23) then 'CONDITION_AREAID' when (`conditions`.`SourceTypeOrReferenceId` = 24) then 'CONDITION_CREATURE_TYPE' when (`conditions`.`SourceTypeOrReferenceId` = 25) then 'CONDITION_SPELL' when (`conditions`.`SourceTypeOrReferenceId` = 26) then 'CONDITION_PHASEMASK' when (`conditions`.`SourceTypeOrReferenceId` = 27) then 'CONDITION_LEVEL' when (`conditions`.`SourceTypeOrReferenceId` = 28) then 'CONDITION_QUEST_COMPLETE' when (`conditions`.`SourceTypeOrReferenceId` = 29) then 'CONDITION_NEAR_CREATURE' when (`conditions`.`SourceTypeOrReferenceId` = 30) then 'CONDITION_NEAR_GAMEOBJECT' when (`conditions`.`SourceTypeOrReferenceId` = 31) then 'CONDITION_OBJECT_ENTRY_GUID' when (`conditions`.`SourceTypeOrReferenceId` = 32) then 'CONDITION_TYPE_MASK' when (`conditions`.`SourceTypeOrReferenceId` = 33) then 'CONDITION_RELATION_TO' when (`conditions`.`SourceTypeOrReferenceId` = 34) then 'CONDITION_REACTION_TO' when (`conditions`.`SourceTypeOrReferenceId` = 35) then 'CONDITION_DISTANCE_TO' when (`conditions`.`SourceTypeOrReferenceId` = 36) then 'CONDITION_ALIVE' when (`conditions`.`SourceTypeOrReferenceId` = 37) then 'CONDITION_HP_VAL' when (`conditions`.`SourceTypeOrReferenceId` = 38) then 'CONDITION_HP_PCT' when (`conditions`.`SourceTypeOrReferenceId` = 39) then 'CONDITION_REALM_ACHIEVEMENT' when (`conditions`.`SourceTypeOrReferenceId` = 40) then 'CONDITION_IN_WATER' when (`conditions`.`SourceTypeOrReferenceId` = 41) then 'CONDITION_TERRAIN_SWAP' when (`conditions`.`SourceTypeOrReferenceId` = 42) then 'CONDITION_STAND_STATE' when (`conditions`.`SourceTypeOrReferenceId` = 43) then 'CONDITION_DAILY_QUEST_DONE' when (`conditions`.`SourceTypeOrReferenceId` = 44) then 'CONDITION_CHARMED' when (`conditions`.`SourceTypeOrReferenceId` = 45) then 'CONDITION_PET_TYPE' when (`conditions`.`SourceTypeOrReferenceId` = 46) then 'CONDITION_TAXI' when (`conditions`.`SourceTypeOrReferenceId` = 47) then 'CONDITION_QUESTSTATE' when (`conditions`.`SourceTypeOrReferenceId` = 48) then 'CONDITION_QUEST_OBJECTIVE_PROGRESS' when (`conditions`.`SourceTypeOrReferenceId` = 49) then 'CONDITION_DIFFICULTY_ID' when (`conditions`.`SourceTypeOrReferenceId` = 50) then 'CONDITION_GAMEMASTER' when (`conditions`.`SourceTypeOrReferenceId` = 51) then 'CONDITION_OBJECT_ENTRY_GUID_MASTER' when (`conditions`.`SourceTypeOrReferenceId` = 52) then 'CONDITION_TYPE_MASK_MASTER' else `conditions`.`ConditionTypeOrReference` end) AS `ConditionTypeOrReference`,`conditions`.`ConditionTarget` AS `ConditionTarget`,`conditions`.`ConditionValue1` AS `ConditionValue1`,`conditions`.`ConditionValue2` AS `ConditionValue2`,`conditions`.`ConditionValue3` AS `ConditionValue3`,`conditions`.`NegativeCondition` AS `NegativeCondition`,`conditions`.`ErrorType` AS `ErrorType`,`conditions`.`ErrorTextId` AS `ErrorTextId`,`conditions`.`ScriptName` AS `ScriptName`,`conditions`.`Comment` AS `Comment` from `conditions` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; @@ -4034,7 +4038,7 @@ CREATE TABLE `waypoints` ( /*!50001 SET character_set_results = utf8mb3 */; /*!50001 SET collation_connection = utf8mb3_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ -/*!50013 */ +/*!50013 SQL SECURITY DEFINER */ /*!50001 VIEW `vw_disables_with_labels` AS select (case when (`disables`.`sourceType` = 0) then 'DISABLE_TYPE_SPELL' when (`disables`.`sourceType` = 1) then 'DISABLE_TYPE_QUEST' when (`disables`.`sourceType` = 2) then 'DISABLE_TYPE_MAP' when (`disables`.`sourceType` = 3) then 'DISABLE_TYPE_BATTLEGROUND' when (`disables`.`sourceType` = 4) then 'DISABLE_TYPE_ACHIEVEMENT_CRITERIA' when (`disables`.`sourceType` = 5) then 'DISABLE_TYPE_OUTDOORPVP' when (`disables`.`sourceType` = 6) then 'DISABLE_TYPE_VMAP' when (`disables`.`sourceType` = 7) then 'DISABLE_TYPE_MMAP' when (`disables`.`sourceType` = 8) then 'DISABLE_TYPE_LFG_MAP' else `disables`.`sourceType` end) AS `sourceType`,`disables`.`entry` AS `entry`,`disables`.`flags` AS `flags`,`disables`.`params_0` AS `params_0`,`disables`.`params_1` AS `params_1`,`disables`.`comment` AS `comment` from `disables` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; @@ -4052,7 +4056,7 @@ CREATE TABLE `waypoints` ( /*!50001 SET character_set_results = utf8mb3 */; /*!50001 SET collation_connection = utf8mb3_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ -/*!50013 */ +/*!50013 SQL SECURITY DEFINER */ /*!50001 VIEW `vw_smart_scripts_with_labels` AS select `smart_scripts`.`entryorguid` AS `entryorguid`,`smart_scripts`.`source_type` AS `source_type`,`smart_scripts`.`id` AS `id`,`smart_scripts`.`link` AS `link`,(case when (`smart_scripts`.`event_type` = 0) then 'SMART_EVENT_UPDATE_IC' when (`smart_scripts`.`event_type` = 1) then 'SMART_EVENT_UPDATE_OOC' when (`smart_scripts`.`event_type` = 2) then 'SMART_EVENT_HEALTH_PCT' when (`smart_scripts`.`event_type` = 3) then 'SMART_EVENT_MANA_PCT' when (`smart_scripts`.`event_type` = 4) then 'SMART_EVENT_AGGRO' when (`smart_scripts`.`event_type` = 5) then 'SMART_EVENT_KILL' when (`smart_scripts`.`event_type` = 6) then 'SMART_EVENT_DEATH' when (`smart_scripts`.`event_type` = 7) then 'SMART_EVENT_EVADE' when (`smart_scripts`.`event_type` = 8) then 'SMART_EVENT_SPELLHIT' when (`smart_scripts`.`event_type` = 9) then 'SMART_EVENT_RANGE' when (`smart_scripts`.`event_type` = 10) then 'SMART_EVENT_OOC_LOS' when (`smart_scripts`.`event_type` = 11) then 'SMART_EVENT_RESPAWN' when (`smart_scripts`.`event_type` = 12) then 'SMART_EVENT_TARGET_HEALTH_PCT' when (`smart_scripts`.`event_type` = 13) then 'SMART_EVENT_VICTIM_CASTING' when (`smart_scripts`.`event_type` = 14) then 'SMART_EVENT_FRIENDLY_HEALTH' when (`smart_scripts`.`event_type` = 15) then 'SMART_EVENT_FRIENDLY_IS_CC' when (`smart_scripts`.`event_type` = 16) then 'SMART_EVENT_FRIENDLY_MISSING_BUFF' when (`smart_scripts`.`event_type` = 17) then 'SMART_EVENT_SUMMONED_UNIT' when (`smart_scripts`.`event_type` = 18) then 'SMART_EVENT_TARGET_MANA_PCT' when (`smart_scripts`.`event_type` = 19) then 'SMART_EVENT_ACCEPTED_QUEST' when (`smart_scripts`.`event_type` = 20) then 'SMART_EVENT_REWARD_QUEST' when (`smart_scripts`.`event_type` = 21) then 'SMART_EVENT_REACHED_HOME' when (`smart_scripts`.`event_type` = 22) then 'SMART_EVENT_RECEIVE_EMOTE' when (`smart_scripts`.`event_type` = 23) then 'SMART_EVENT_HAS_AURA' when (`smart_scripts`.`event_type` = 24) then 'SMART_EVENT_TARGET_BUFFED' when (`smart_scripts`.`event_type` = 25) then 'SMART_EVENT_RESET' when (`smart_scripts`.`event_type` = 26) then 'SMART_EVENT_IC_LOS' when (`smart_scripts`.`event_type` = 27) then 'SMART_EVENT_PASSENGER_BOARDED' when (`smart_scripts`.`event_type` = 28) then 'SMART_EVENT_PASSENGER_REMOVED' when (`smart_scripts`.`event_type` = 29) then 'SMART_EVENT_CHARMED' when (`smart_scripts`.`event_type` = 30) then 'SMART_EVENT_CHARMED_TARGET' when (`smart_scripts`.`event_type` = 31) then 'SMART_EVENT_SPELLHIT_TARGET' when (`smart_scripts`.`event_type` = 32) then 'SMART_EVENT_DAMAGED' when (`smart_scripts`.`event_type` = 33) then 'SMART_EVENT_DAMAGED_TARGET' when (`smart_scripts`.`event_type` = 34) then 'SMART_EVENT_MOVEMENTINFORM' when (`smart_scripts`.`event_type` = 35) then 'SMART_EVENT_SUMMON_DESPAWNED' when (`smart_scripts`.`event_type` = 36) then 'SMART_EVENT_CORPSE_REMOVED' when (`smart_scripts`.`event_type` = 37) then 'SMART_EVENT_AI_INIT' when (`smart_scripts`.`event_type` = 38) then 'SMART_EVENT_DATA_SET' when (`smart_scripts`.`event_type` = 39) then 'SMART_EVENT_WAYPOINT_START' when (`smart_scripts`.`event_type` = 40) then 'SMART_EVENT_WAYPOINT_REACHED' when (`smart_scripts`.`event_type` = 41) then 'SMART_EVENT_TRANSPORT_ADDPLAYER' when (`smart_scripts`.`event_type` = 42) then 'SMART_EVENT_TRANSPORT_ADDCREATURE' when (`smart_scripts`.`event_type` = 43) then 'SMART_EVENT_TRANSPORT_REMOVE_PLAYER' when (`smart_scripts`.`event_type` = 44) then 'SMART_EVENT_TRANSPORT_RELOCATE' when (`smart_scripts`.`event_type` = 45) then 'SMART_EVENT_INSTANCE_PLAYER_ENTER' when (`smart_scripts`.`event_type` = 46) then 'SMART_EVENT_AREATRIGGER_ONTRIGGER' when (`smart_scripts`.`event_type` = 47) then 'SMART_EVENT_QUEST_ACCEPTED' when (`smart_scripts`.`event_type` = 48) then 'SMART_EVENT_QUEST_OBJ_COPLETETION' when (`smart_scripts`.`event_type` = 49) then 'SMART_EVENT_QUEST_COMPLETION' when (`smart_scripts`.`event_type` = 50) then 'SMART_EVENT_QUEST_REWARDED' when (`smart_scripts`.`event_type` = 51) then 'SMART_EVENT_QUEST_FAIL' when (`smart_scripts`.`event_type` = 52) then 'SMART_EVENT_TEXT_OVER' when (`smart_scripts`.`event_type` = 53) then 'SMART_EVENT_RECEIVE_HEAL' when (`smart_scripts`.`event_type` = 54) then 'SMART_EVENT_JUST_SUMMONED' when (`smart_scripts`.`event_type` = 55) then 'SMART_EVENT_WAYPOINT_PAUSED' when (`smart_scripts`.`event_type` = 56) then 'SMART_EVENT_WAYPOINT_RESUMED' when (`smart_scripts`.`event_type` = 57) then 'SMART_EVENT_WAYPOINT_STOPPED' when (`smart_scripts`.`event_type` = 58) then 'SMART_EVENT_WAYPOINT_ENDED' when (`smart_scripts`.`event_type` = 59) then 'SMART_EVENT_TIMED_EVENT_TRIGGERED' when (`smart_scripts`.`event_type` = 60) then 'SMART_EVENT_UPDATE' when (`smart_scripts`.`event_type` = 61) then 'SMART_EVENT_LINK' when (`smart_scripts`.`event_type` = 62) then 'SMART_EVENT_GOSSIP_SELECT' when (`smart_scripts`.`event_type` = 63) then 'SMART_EVENT_JUST_CREATED' when (`smart_scripts`.`event_type` = 64) then 'SMART_EVENT_GOSSIP_HELLO' when (`smart_scripts`.`event_type` = 65) then 'SMART_EVENT_FOLLOW_COMPLETED' when (`smart_scripts`.`event_type` = 66) then 'SMART_EVENT_EVENT_PHASE_CHANGE' when (`smart_scripts`.`event_type` = 67) then 'SMART_EVENT_IS_BEHIND_TARGET' when (`smart_scripts`.`event_type` = 68) then 'SMART_EVENT_GAME_EVENT_START' when (`smart_scripts`.`event_type` = 69) then 'SMART_EVENT_GAME_EVENT_END' when (`smart_scripts`.`event_type` = 70) then 'SMART_EVENT_GO_LOOT_STATE_CHANGED' when (`smart_scripts`.`event_type` = 71) then 'SMART_EVENT_GO_EVENT_INFORM' when (`smart_scripts`.`event_type` = 72) then 'SMART_EVENT_ACTION_DONE' when (`smart_scripts`.`event_type` = 73) then 'SMART_EVENT_ON_SPELLCLICK' when (`smart_scripts`.`event_type` = 74) then 'SMART_EVENT_FRIENDLY_HEALTH_PCT' when (`smart_scripts`.`event_type` = 75) then 'SMART_EVENT_DISTANCE_CREATURE' when (`smart_scripts`.`event_type` = 76) then 'SMART_EVENT_DISTANCE_GAMEOBJECT' when (`smart_scripts`.`event_type` = 77) then 'SMART_EVENT_COUNTER_SET' when (`smart_scripts`.`event_type` = 78) then 'SMART_EVENT_SCENE_START' when (`smart_scripts`.`event_type` = 79) then 'SMART_EVENT_SCENE_TRIGGER' when (`smart_scripts`.`event_type` = 80) then 'SMART_EVENT_SCENE_CANCEL' when (`smart_scripts`.`event_type` = 81) then 'SMART_EVENT_SCENE_COMPLETE' when (`smart_scripts`.`event_type` = 82) then 'SMART_EVENT_SUMMONED_UNIT_DIES' else `smart_scripts`.`event_type` end) AS `event_type`,`smart_scripts`.`event_phase_mask` AS `event_phase_mask`,`smart_scripts`.`event_chance` AS `event_chance`,`smart_scripts`.`event_flags` AS `event_flags`,`smart_scripts`.`event_param1` AS `event_param1`,`smart_scripts`.`event_param2` AS `event_param2`,`smart_scripts`.`event_param3` AS `event_param3`,`smart_scripts`.`event_param4` AS `event_param4`,`smart_scripts`.`event_param5` AS `event_param5`,(case when (`smart_scripts`.`action_type` = 0) then 'SMART_ACTION_NONE' when (`smart_scripts`.`action_type` = 1) then 'SMART_ACTION_TALK' when (`smart_scripts`.`action_type` = 2) then 'SMART_ACTION_SET_FACTION' when (`smart_scripts`.`action_type` = 3) then 'SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL' when (`smart_scripts`.`action_type` = 4) then 'SMART_ACTION_SOUND' when (`smart_scripts`.`action_type` = 5) then 'SMART_ACTION_PLAY_EMOTE' when (`smart_scripts`.`action_type` = 6) then 'SMART_ACTION_FAIL_QUEST' when (`smart_scripts`.`action_type` = 7) then 'SMART_ACTION_OFFER_QUEST' when (`smart_scripts`.`action_type` = 8) then 'SMART_ACTION_SET_REACT_STATE' when (`smart_scripts`.`action_type` = 9) then 'SMART_ACTION_ACTIVATE_GOBJECT' when (`smart_scripts`.`action_type` = 10) then 'SMART_ACTION_RANDOM_EMOTE' when (`smart_scripts`.`action_type` = 11) then 'SMART_ACTION_CAST' when (`smart_scripts`.`action_type` = 12) then 'SMART_ACTION_SUMMON_CREATURE' when (`smart_scripts`.`action_type` = 13) then 'SMART_ACTION_THREAT_SINGLE_PCT' when (`smart_scripts`.`action_type` = 14) then 'SMART_ACTION_THREAT_ALL_PCT' when (`smart_scripts`.`action_type` = 15) then 'SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS' when (`smart_scripts`.`action_type` = 16) then 'SMART_ACTION_RESERVED_16' when (`smart_scripts`.`action_type` = 17) then 'SMART_ACTION_SET_EMOTE_STATE' when (`smart_scripts`.`action_type` = 18) then 'SMART_ACTION_SET_UNIT_FLAG' when (`smart_scripts`.`action_type` = 19) then 'SMART_ACTION_REMOVE_UNIT_FLAG' when (`smart_scripts`.`action_type` = 20) then 'SMART_ACTION_AUTO_ATTACK' when (`smart_scripts`.`action_type` = 21) then 'SMART_ACTION_ALLOW_COMBAT_MOVEMENT' when (`smart_scripts`.`action_type` = 22) then 'SMART_ACTION_SET_EVENT_PHASE' when (`smart_scripts`.`action_type` = 23) then 'SMART_ACTION_INC_EVENT_PHASE' when (`smart_scripts`.`action_type` = 24) then 'SMART_ACTION_EVADE' when (`smart_scripts`.`action_type` = 25) then 'SMART_ACTION_FLEE_FOR_ASSIST' when (`smart_scripts`.`action_type` = 26) then 'SMART_ACTION_CALL_GROUPEVENTHAPPENS' when (`smart_scripts`.`action_type` = 27) then 'SMART_ACTION_COMBAT_STOP' when (`smart_scripts`.`action_type` = 28) then 'SMART_ACTION_REMOVEAURASFROMSPELL' when (`smart_scripts`.`action_type` = 29) then 'SMART_ACTION_FOLLOW' when (`smart_scripts`.`action_type` = 30) then 'SMART_ACTION_RANDOM_PHASE' when (`smart_scripts`.`action_type` = 31) then 'SMART_ACTION_RANDOM_PHASE_RANGE' when (`smart_scripts`.`action_type` = 32) then 'SMART_ACTION_RESET_GOBJECT' when (`smart_scripts`.`action_type` = 33) then 'SMART_ACTION_CALL_KILLEDMONSTER' when (`smart_scripts`.`action_type` = 34) then 'SMART_ACTION_SET_INST_DATA' when (`smart_scripts`.`action_type` = 35) then 'SMART_ACTION_SET_INST_DATA64' when (`smart_scripts`.`action_type` = 36) then 'SMART_ACTION_UPDATE_TEMPLATE' when (`smart_scripts`.`action_type` = 37) then 'SMART_ACTION_DIE' when (`smart_scripts`.`action_type` = 38) then 'SMART_ACTION_SET_IN_COMBAT_WITH_ZONE' when (`smart_scripts`.`action_type` = 39) then 'SMART_ACTION_CALL_FOR_HELP' when (`smart_scripts`.`action_type` = 40) then 'SMART_ACTION_SET_SHEATH' when (`smart_scripts`.`action_type` = 41) then 'SMART_ACTION_FORCE_DESPAWN' when (`smart_scripts`.`action_type` = 42) then 'SMART_ACTION_SET_INVINCIBILITY_HP_LEVEL' when (`smart_scripts`.`action_type` = 43) then 'SMART_ACTION_MOUNT_TO_ENTRY_OR_MODEL' when (`smart_scripts`.`action_type` = 44) then 'SMART_ACTION_SET_INGAME_PHASE_MASK' when (`smart_scripts`.`action_type` = 45) then 'SMART_ACTION_SET_DATA' when (`smart_scripts`.`action_type` = 46) then 'SMART_ACTION_ATTACK_STOP' when (`smart_scripts`.`action_type` = 47) then 'SMART_ACTION_SET_VISIBILITY' when (`smart_scripts`.`action_type` = 48) then 'SMART_ACTION_SET_ACTIVE' when (`smart_scripts`.`action_type` = 49) then 'SMART_ACTION_ATTACK_START' when (`smart_scripts`.`action_type` = 50) then 'SMART_ACTION_SUMMON_GO' when (`smart_scripts`.`action_type` = 51) then 'SMART_ACTION_KILL_UNIT' when (`smart_scripts`.`action_type` = 52) then 'SMART_ACTION_ACTIVATE_TAXI' when (`smart_scripts`.`action_type` = 53) then 'SMART_ACTION_WP_START' when (`smart_scripts`.`action_type` = 54) then 'SMART_ACTION_WP_PAUSE' when (`smart_scripts`.`action_type` = 55) then 'SMART_ACTION_WP_STOP' when (`smart_scripts`.`action_type` = 56) then 'SMART_ACTION_ADD_ITEM' when (`smart_scripts`.`action_type` = 57) then 'SMART_ACTION_REMOVE_ITEM' when (`smart_scripts`.`action_type` = 58) then 'SMART_ACTION_INSTALL_AI_TEMPLATE' when (`smart_scripts`.`action_type` = 59) then 'SMART_ACTION_SET_RUN' when (`smart_scripts`.`action_type` = 60) then 'SMART_ACTION_SET_DISABLE_GRAVITY' when (`smart_scripts`.`action_type` = 61) then 'SMART_ACTION_SET_SWIM' when (`smart_scripts`.`action_type` = 62) then 'SMART_ACTION_TELEPORT' when (`smart_scripts`.`action_type` = 63) then 'SMART_ACTION_SET_COUNTER' when (`smart_scripts`.`action_type` = 64) then 'SMART_ACTION_STORE_TARGET_LIST' when (`smart_scripts`.`action_type` = 65) then 'SMART_ACTION_WP_RESUME' when (`smart_scripts`.`action_type` = 66) then 'SMART_ACTION_SET_ORIENTATION' when (`smart_scripts`.`action_type` = 67) then 'SMART_ACTION_CREATE_TIMED_EVENT' when (`smart_scripts`.`action_type` = 68) then 'SMART_ACTION_PLAYMOVIE' when (`smart_scripts`.`action_type` = 69) then 'SMART_ACTION_MOVE_TO_POS' when (`smart_scripts`.`action_type` = 70) then 'SMART_ACTION_ENABLE_TEMP_GOBJ' when (`smart_scripts`.`action_type` = 71) then 'SMART_ACTION_EQUIP' when (`smart_scripts`.`action_type` = 72) then 'SMART_ACTION_CLOSE_GOSSIP' when (`smart_scripts`.`action_type` = 73) then 'SMART_ACTION_TRIGGER_TIMED_EVENT' when (`smart_scripts`.`action_type` = 74) then 'SMART_ACTION_REMOVE_TIMED_EVENT' when (`smart_scripts`.`action_type` = 75) then 'SMART_ACTION_ADD_AURA' when (`smart_scripts`.`action_type` = 76) then 'SMART_ACTION_OVERRIDE_SCRIPT_BASE_OBJECT' when (`smart_scripts`.`action_type` = 77) then 'SMART_ACTION_RESET_SCRIPT_BASE_OBJECT' when (`smart_scripts`.`action_type` = 78) then 'SMART_ACTION_CALL_SCRIPT_RESET' when (`smart_scripts`.`action_type` = 79) then 'SMART_ACTION_SET_RANGED_MOVEMENT' when (`smart_scripts`.`action_type` = 80) then 'SMART_ACTION_CALL_TIMED_ACTIONLIST' when (`smart_scripts`.`action_type` = 81) then 'SMART_ACTION_SET_NPC_FLAG' when (`smart_scripts`.`action_type` = 82) then 'SMART_ACTION_ADD_NPC_FLAG' when (`smart_scripts`.`action_type` = 83) then 'SMART_ACTION_REMOVE_NPC_FLAG' when (`smart_scripts`.`action_type` = 84) then 'SMART_ACTION_SIMPLE_TALK' when (`smart_scripts`.`action_type` = 85) then 'SMART_ACTION_SELF_CAST' when (`smart_scripts`.`action_type` = 86) then 'SMART_ACTION_CROSS_CAST' when (`smart_scripts`.`action_type` = 87) then 'SMART_ACTION_CALL_RANDOM_TIMED_ACTIONLIST' when (`smart_scripts`.`action_type` = 88) then 'SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST' when (`smart_scripts`.`action_type` = 89) then 'SMART_ACTION_RANDOM_MOVE' when (`smart_scripts`.`action_type` = 90) then 'SMART_ACTION_SET_UNIT_FIELD_BYTES_1' when (`smart_scripts`.`action_type` = 91) then 'SMART_ACTION_REMOVE_UNIT_FIELD_BYTES_1' when (`smart_scripts`.`action_type` = 92) then 'SMART_ACTION_INTERRUPT_SPELL' when (`smart_scripts`.`action_type` = 93) then 'SMART_ACTION_SEND_GO_CUSTOM_ANIM' when (`smart_scripts`.`action_type` = 94) then 'SMART_ACTION_SET_DYNAMIC_FLAG' when (`smart_scripts`.`action_type` = 95) then 'SMART_ACTION_ADD_DYNAMIC_FLAG' when (`smart_scripts`.`action_type` = 96) then 'SMART_ACTION_REMOVE_DYNAMIC_FLAG' when (`smart_scripts`.`action_type` = 97) then 'SMART_ACTION_JUMP_TO_POS' when (`smart_scripts`.`action_type` = 98) then 'SMART_ACTION_SEND_GOSSIP_MENU' when (`smart_scripts`.`action_type` = 99) then 'SMART_ACTION_GO_SET_LOOT_STATE' when (`smart_scripts`.`action_type` = 100) then 'SMART_ACTION_SEND_TARGET_TO_TARGET' when (`smart_scripts`.`action_type` = 101) then 'SMART_ACTION_SET_HOME_POS' when (`smart_scripts`.`action_type` = 102) then 'SMART_ACTION_SET_HEALTH_REGEN' when (`smart_scripts`.`action_type` = 103) then 'SMART_ACTION_SET_ROOT' when (`smart_scripts`.`action_type` = 104) then 'SMART_ACTION_SET_GO_FLAG' when (`smart_scripts`.`action_type` = 105) then 'SMART_ACTION_ADD_GO_FLAG' when (`smart_scripts`.`action_type` = 106) then 'SMART_ACTION_REMOVE_GO_FLAG' when (`smart_scripts`.`action_type` = 107) then 'SMART_ACTION_SUMMON_CREATURE_GROUP' when (`smart_scripts`.`action_type` = 108) then 'SMART_ACTION_SET_POWER' when (`smart_scripts`.`action_type` = 109) then 'SMART_ACTION_ADD_POWER' when (`smart_scripts`.`action_type` = 110) then 'SMART_ACTION_REMOVE_POWER' when (`smart_scripts`.`action_type` = 111) then 'SMART_ACTION_GAME_EVENT_STOP' when (`smart_scripts`.`action_type` = 112) then 'SMART_ACTION_GAME_EVENT_START' when (`smart_scripts`.`action_type` = 113) then 'SMART_ACTION_START_CLOSEST_WAYPOINT' when (`smart_scripts`.`action_type` = 114) then 'SMART_ACTION_MOVE_OFFSET' when (`smart_scripts`.`action_type` = 115) then 'SMART_ACTION_RANDOM_SOUND' when (`smart_scripts`.`action_type` = 116) then 'SMART_ACTION_SET_CORPSE_DELAY' when (`smart_scripts`.`action_type` = 117) then 'SMART_ACTION_DISABLE_EVADE' when (`smart_scripts`.`action_type` = 118) then 'SMART_ACTION_GO_SET_GO_STATE' when (`smart_scripts`.`action_type` = 119) then 'SMART_ACTION_SET_CAN_FLY' when (`smart_scripts`.`action_type` = 120) then 'SMART_ACTION_REMOVE_AURAS_BY_TYPE' when (`smart_scripts`.`action_type` = 121) then 'SMART_ACTION_SET_SIGHT_DIST' when (`smart_scripts`.`action_type` = 122) then 'SMART_ACTION_FLEE' when (`smart_scripts`.`action_type` = 123) then 'SMART_ACTION_ADD_THREAT' when (`smart_scripts`.`action_type` = 124) then 'SMART_ACTION_LOAD_EQUIPMENT' when (`smart_scripts`.`action_type` = 125) then 'SMART_ACTION_TRIGGER_RANDOM_TIMED_EVENT' when (`smart_scripts`.`action_type` = 126) then 'SMART_ACTION_REMOVE_ALL_GAMEOBJECTS' when (`smart_scripts`.`action_type` = 127) then 'SMART_ACTION_PAUSE_MOVEMENT' when (`smart_scripts`.`action_type` = 128) then 'SMART_ACTION_PLAY_ANIMKIT' when (`smart_scripts`.`action_type` = 129) then 'SMART_ACTION_SCENE_PLAY' when (`smart_scripts`.`action_type` = 130) then 'SMART_ACTION_SCENE_CANCEL' when (`smart_scripts`.`action_type` = 131) then 'SMART_ACTION_SPAWN_SPAWNGROUP' when (`smart_scripts`.`action_type` = 132) then 'SMART_ACTION_DESPAWN_SPAWNGROUP' when (`smart_scripts`.`action_type` = 133) then 'SMART_ACTION_RESPAWN_BY_SPAWNID' when (`smart_scripts`.`action_type` = 134) then 'SMART_ACTION_INVOKER_CAST' when (`smart_scripts`.`action_type` = 135) then 'SMART_ACTION_PLAY_CINEMATIC' when (`smart_scripts`.`action_type` = 136) then 'SMART_ACTION_SET_MOVEMENT_SPEED' when (`smart_scripts`.`action_type` = 137) then 'SMART_ACTION_PLAY_SPELL_VISUAL_KIT' when (`smart_scripts`.`action_type` = 138) then 'SMART_ACTION_OVERRIDE_LIGHT' when (`smart_scripts`.`action_type` = 139) then 'SMART_ACTION_OVERRIDE_WEATHER' else `smart_scripts`.`action_type` end) AS `action_type`,`smart_scripts`.`action_param1` AS `action_param1`,`smart_scripts`.`action_param2` AS `action_param2`,`smart_scripts`.`action_param3` AS `action_param3`,`smart_scripts`.`action_param4` AS `action_param4`,`smart_scripts`.`action_param5` AS `action_param5`,`smart_scripts`.`action_param6` AS `action_param6`,(case when (`smart_scripts`.`target_type` = 0) then 'SMART_TARGET_NONE' when (`smart_scripts`.`target_type` = 1) then 'SMART_TARGET_SELF' when (`smart_scripts`.`target_type` = 2) then 'SMART_TARGET_VICTIM' when (`smart_scripts`.`target_type` = 3) then 'SMART_TARGET_HOSTILE_SECOND_AGGRO' when (`smart_scripts`.`target_type` = 4) then 'SMART_TARGET_HOSTILE_LAST_AGGRO' when (`smart_scripts`.`target_type` = 5) then 'SMART_TARGET_HOSTILE_RANDOM' when (`smart_scripts`.`target_type` = 6) then 'SMART_TARGET_HOSTILE_RANDOM_NOT_TOP' when (`smart_scripts`.`target_type` = 7) then 'SMART_TARGET_ACTION_INVOKER' when (`smart_scripts`.`target_type` = 8) then 'SMART_TARGET_POSITION' when (`smart_scripts`.`target_type` = 9) then 'SMART_TARGET_CREATURE_RANGE' when (`smart_scripts`.`target_type` = 10) then 'SMART_TARGET_CREATURE_GUID' when (`smart_scripts`.`target_type` = 11) then 'SMART_TARGET_CREATURE_DISTANCE' when (`smart_scripts`.`target_type` = 12) then 'SMART_TARGET_STORED' when (`smart_scripts`.`target_type` = 13) then 'SMART_TARGET_GAMEOBJECT_RANGE' when (`smart_scripts`.`target_type` = 14) then 'SMART_TARGET_GAMEOBJECT_GUID' when (`smart_scripts`.`target_type` = 15) then 'SMART_TARGET_GAMEOBJECT_DISTANCE' when (`smart_scripts`.`target_type` = 16) then 'SMART_TARGET_INVOKER_PARTY' when (`smart_scripts`.`target_type` = 17) then 'SMART_TARGET_PLAYER_RANGE' when (`smart_scripts`.`target_type` = 18) then 'SMART_TARGET_PLAYER_DISTANCE' when (`smart_scripts`.`target_type` = 19) then 'SMART_TARGET_CLOSEST_CREATURE' when (`smart_scripts`.`target_type` = 20) then 'SMART_TARGET_CLOSEST_GAMEOBJECT' when (`smart_scripts`.`target_type` = 21) then 'SMART_TARGET_CLOSEST_PLAYER' when (`smart_scripts`.`target_type` = 22) then 'SMART_TARGET_ACTION_INVOKER_VEHICLE' when (`smart_scripts`.`target_type` = 23) then 'SMART_TARGET_OWNER_OR_SUMMONER' when (`smart_scripts`.`target_type` = 24) then 'SMART_TARGET_THREAT_LIST' when (`smart_scripts`.`target_type` = 25) then 'SMART_TARGET_CLOSEST_ENEMY' when (`smart_scripts`.`target_type` = 26) then 'SMART_TARGET_CLOSEST_FRIENDLY' when (`smart_scripts`.`target_type` = 27) then 'SMART_TARGET_LOOT_RECIPIENTS' when (`smart_scripts`.`target_type` = 28) then 'SMART_TARGET_FARTHEST' when (`smart_scripts`.`target_type` = 29) then 'SMART_TARGET_VEHICLE_PASSENGER' when (`smart_scripts`.`target_type` = 30) then 'SMART_TARGET_CLOSEST_UNSPAWNED_GAMEOBJECT' else `smart_scripts`.`target_type` end) AS `target_type`,`smart_scripts`.`target_param1` AS `target_param1`,`smart_scripts`.`target_param2` AS `target_param2`,`smart_scripts`.`target_param3` AS `target_param3`,`smart_scripts`.`target_param4` AS `target_param4`,`smart_scripts`.`target_x` AS `target_x`,`smart_scripts`.`target_y` AS `target_y`,`smart_scripts`.`target_z` AS `target_z`,`smart_scripts`.`target_o` AS `target_o`,`smart_scripts`.`comment` AS `comment` from `smart_scripts` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; @@ -4067,4 +4071,4 @@ CREATE TABLE `waypoints` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2024-08-17 22:26:15 +-- Dump completed on 2024-11-22 23:18:19 diff --git a/sql/updates/auth/3.3.5/2024_08_17_00_auth.sql b/sql/old/3.3.5a/auth/24081_2024_11_22/2024_08_17_00_auth.sql similarity index 100% rename from sql/updates/auth/3.3.5/2024_08_17_00_auth.sql rename to sql/old/3.3.5a/auth/24081_2024_11_22/2024_08_17_00_auth.sql diff --git a/sql/updates/auth/3.3.5/2024_08_28_01_auth.sql b/sql/old/3.3.5a/auth/24081_2024_11_22/2024_08_28_01_auth.sql similarity index 100% rename from sql/updates/auth/3.3.5/2024_08_28_01_auth.sql rename to sql/old/3.3.5a/auth/24081_2024_11_22/2024_08_28_01_auth.sql diff --git a/sql/updates/auth/3.3.5/2024_08_30_00_auth.sql b/sql/old/3.3.5a/auth/24081_2024_11_22/2024_08_30_00_auth.sql similarity index 100% rename from sql/updates/auth/3.3.5/2024_08_30_00_auth.sql rename to sql/old/3.3.5a/auth/24081_2024_11_22/2024_08_30_00_auth.sql diff --git a/sql/updates/auth/3.3.5/2024_09_26_00_auth.sql b/sql/old/3.3.5a/auth/24081_2024_11_22/2024_09_26_00_auth.sql similarity index 100% rename from sql/updates/auth/3.3.5/2024_09_26_00_auth.sql rename to sql/old/3.3.5a/auth/24081_2024_11_22/2024_09_26_00_auth.sql diff --git a/sql/updates/characters/3.3.5/2024_08_17_00_characters.sql b/sql/old/3.3.5a/characters/24081_2024_11_22/2024_08_17_00_characters.sql similarity index 100% rename from sql/updates/characters/3.3.5/2024_08_17_00_characters.sql rename to sql/old/3.3.5a/characters/24081_2024_11_22/2024_08_17_00_characters.sql diff --git a/sql/updates/characters/3.3.5/2024_10_03_00_characters.sql b/sql/old/3.3.5a/characters/24081_2024_11_22/2024_10_03_00_characters.sql similarity index 100% rename from sql/updates/characters/3.3.5/2024_10_03_00_characters.sql rename to sql/old/3.3.5a/characters/24081_2024_11_22/2024_10_03_00_characters.sql diff --git a/sql/updates/world/3.3.5/2024_08_17_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_08_17_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_08_17_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_08_17_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_08_21_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_08_21_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_08_21_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_08_21_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_09_07_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_09_07_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_09_07_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_09_07_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_09_11_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_09_11_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_09_11_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_09_11_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_09_14_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_09_14_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_09_14_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_09_14_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_09_29_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_09_29_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_09_29_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_09_29_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_09_29_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_09_29_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_09_29_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_09_29_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_02_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_02_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_02_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_02_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_05_00_world_2022_12_27_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_05_00_world_2022_12_27_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_05_00_world_2022_12_27_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_05_00_world_2022_12_27_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_05_01_world_2023_07_30_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_05_01_world_2023_07_30_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_05_01_world_2023_07_30_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_05_01_world_2023_07_30_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_06_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_06_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_06_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_06_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_07_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_07_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_07_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_07_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_07_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_07_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_07_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_07_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_02_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_02_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_02_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_02_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_03_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_03_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_03_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_03_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_04_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_04_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_04_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_04_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_05_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_05_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_05_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_05_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_06_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_06_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_06_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_06_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_07_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_07_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_07_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_07_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_08_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_08_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_08_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_08_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_09_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_09_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_09_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_09_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_10_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_10_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_10_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_10_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_11_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_11_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_11_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_11_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_12_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_12_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_12_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_12_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_13_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_13_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_13_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_13_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_10_14_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_14_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_10_14_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_10_14_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_11_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_11_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_11_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_11_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_11_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_11_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_11_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_11_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_17_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_17_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_17_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_17_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_20_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_20_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_20_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_20_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_20_02_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_02_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_20_02_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_02_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_20_03_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_03_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_20_03_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_03_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_20_04_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_04_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_20_04_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_04_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_20_05_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_05_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_20_05_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_05_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_20_06_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_06_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_20_06_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_20_06_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_24_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_24_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_24_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_24_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_24_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_24_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_24_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_24_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_24_02_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_24_02_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_24_02_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_24_02_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_24_03_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_24_03_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_24_03_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_24_03_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_26_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_26_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_26_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_26_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_29_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_29_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_29_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_29_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_10_29_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_10_29_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_10_29_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_10_29_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_01_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_01_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_01_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_01_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_01_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_01_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_01_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_01_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_03_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_03_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_03_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_03_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_05_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_05_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_05_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_05_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_05_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_05_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_05_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_05_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_05_02_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_05_02_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_05_02_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_05_02_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_07_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_07_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_07_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_07_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_07_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_07_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_07_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_07_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_08_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_08_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_08_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_08_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_10_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_10_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_10_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_10_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_10_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_10_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_10_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_10_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_10_02_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_10_02_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_10_02_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_10_02_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_12_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_12_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_12_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_12_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_12_02_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_02_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_12_02_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_02_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_12_03_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_03_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_12_03_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_03_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_12_04_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_04_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_12_04_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_04_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_12_05_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_05_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_12_05_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_05_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_12_06_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_06_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_12_06_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_06_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_12_07_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_07_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_12_07_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_07_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_12_08_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_08_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_12_08_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_12_08_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_13_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_13_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_13_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_13_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_14_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_14_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_14_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_14_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_14_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_14_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_14_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_14_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_18_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_18_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_18_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_18_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_20_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_20_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_20_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_20_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_20_01_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_20_01_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_20_01_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_20_01_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_22_00_world.sql b/sql/old/3.3.5a/world/24081_2024_11_22/2024_11_22_00_world.sql similarity index 100% rename from sql/updates/world/3.3.5/2024_11_22_00_world.sql rename to sql/old/3.3.5a/world/24081_2024_11_22/2024_11_22_00_world.sql diff --git a/sql/updates/auth/3.3.5/2024_11_22_00_auth.sql b/sql/updates/auth/3.3.5/2024_11_22_00_auth.sql new file mode 100644 index 0000000000..7598688573 --- /dev/null +++ b/sql/updates/auth/3.3.5/2024_11_22_00_auth.sql @@ -0,0 +1,2 @@ +-- TDB 335.24111 auth +UPDATE `updates` SET `state`='ARCHIVED'; diff --git a/sql/updates/characters/3.3.5/2024_11_22_00_characters.sql b/sql/updates/characters/3.3.5/2024_11_22_00_characters.sql new file mode 100644 index 0000000000..6bece070f8 --- /dev/null +++ b/sql/updates/characters/3.3.5/2024_11_22_00_characters.sql @@ -0,0 +1,2 @@ +-- TDB 335.24111 characters +UPDATE `updates` SET `state`='ARCHIVED'; diff --git a/sql/updates/world/3.3.5/2024_11_22_01_world.sql b/sql/updates/world/3.3.5/2024_11_22_01_world.sql new file mode 100644 index 0000000000..7a7783a21c --- /dev/null +++ b/sql/updates/world/3.3.5/2024_11_22_01_world.sql @@ -0,0 +1,3 @@ +-- TDB 335.24111 world +UPDATE `version` SET `db_version`='TDB 335.24111', `cache_id`=24111 LIMIT 1; +UPDATE `updates` SET `state`='ARCHIVED'; From 31f58661d00adc1981c7eaa44d0483a805484c72 Mon Sep 17 00:00:00 2001 From: Aokromes Date: Sun, 24 Nov 2024 00:23:08 +0100 Subject: [PATCH 10/10] DB/Misc: Fix Alliance GY when dying in Ironforge closes #30461 by CraftedRO --- sql/updates/world/3.3.5/2024_11_24_00_world.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 sql/updates/world/3.3.5/2024_11_24_00_world.sql diff --git a/sql/updates/world/3.3.5/2024_11_24_00_world.sql b/sql/updates/world/3.3.5/2024_11_24_00_world.sql new file mode 100644 index 0000000000..0de062956d --- /dev/null +++ b/sql/updates/world/3.3.5/2024_11_24_00_world.sql @@ -0,0 +1,4 @@ +-- Add Gates of Ironforge graveyard for Ally when dying in Ironforge +DELETE FROM `graveyard_zone` WHERE `ID`=852 AND `GhostZone`=1537; +INSERT INTO `graveyard_zone` (`ID`, `GhostZone`, `Faction`, `Comment`) VALUES +(852, 1537, 469, 'Dun Morogh, Gates of Ironforge - Ironforge');