diff options
151 files changed, 8639 insertions, 598 deletions
diff --git a/.travis.yml b/.travis.yml index 25bcf02815a..091eb2b18b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ before_install: - echo "yes" | sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo apt-get -qq update - sudo apt-get -qq install build-essential libtool gcc-4.8 g++-4.8 make cmake openssl - - sudo apt-get -qq install libssl-dev libmysqlclient15-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev + - sudo apt-get -qq install libssl-dev libmysqlclient-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev - sudo apt-get -qq install libboost1.55-dev libboost-thread1.55-dev libboost-filesystem1.55-dev libboost-system1.55-dev libboost-program-options1.55-dev libboost-iostreams1.55-dev install: diff --git a/README.md b/README.md index 33b7349d9f1..614dea777f0 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ #  TrinityCore -`6.x`: [](https://scan.coverity.com/projects/435) -`3.3.5`: [](https://scan.coverity.com/projects/4656) -[](https://www.bountysource.com/trackers/1310-trinity-core?utm_source=1310&utm_medium=shield&utm_campaign=TRACKER_BADGE) -[](http://www.issuestats.com/github/TrinityCore/TrinityCore) -[](http://www.issuestats.com/github/TrinityCore/TrinityCore) -`6.x`: [](https://travis-ci.org/TrinityCore/TrinityCore) -`4.3.4`: [](https://travis-ci.org/TrinityCore/TrinityCore) -`3.3.5`: [](https://travis-ci.org/TrinityCore/TrinityCore) +[](http://www.issuestats.com/github/TrinityCore/TrinityCore) [](http://www.issuestats.com/github/TrinityCore/TrinityCore) [](https://www.bountysource.com/trackers/1310-trinity-core?utm_source=1310&utm_medium=shield&utm_campaign=TRACKER_BADGE) + +## Build Status + +6.x | 4.3.4 | 3.3.5 +:------------: | :------------: | :------------: +[](https://travis-ci.org/TrinityCore/TrinityCore) | [](https://travis-ci.org/TrinityCore/TrinityCore) | [](https://travis-ci.org/TrinityCore/TrinityCore) +[](https://scan.coverity.com/projects/435) | | [](https://scan.coverity.com/projects/4656) ## Introduction diff --git a/cmake/macros/ConfigureBoost.cmake b/cmake/macros/ConfigureBoost.cmake index 16c817d9d25..190151af155 100644 --- a/cmake/macros/ConfigureBoost.cmake +++ b/cmake/macros/ConfigureBoost.cmake @@ -1,35 +1,35 @@ -macro(get_WIN32_WINNT version)
- if (WIN32 AND CMAKE_SYSTEM_VERSION)
- set(ver ${CMAKE_SYSTEM_VERSION})
- string(REPLACE "." "" ver ${ver})
- string(REGEX REPLACE "([0-9])" "0\\1" ver ${ver})
-
- set(${version} "0x${ver}")
- endif()
-endmacro()
-
-if(WIN32)
- set(BOOST_DEBUG ON)
- if(DEFINED ENV{BOOST_ROOT})
- set(BOOST_ROOT $ENV{BOOST_ROOT})
- set(BOOST_LIBRARYDIR ${BOOST_ROOT}/lib${PLATFORM}-msvc-12.0)
- else()
- message(FATAL_ERROR "No BOOST_ROOT environment variable could be found! Please make sure it is set and the points to your Boost installation.")
- endif()
-
- set(Boost_USE_STATIC_LIBS ON)
- set(Boost_USE_MULTITHREADED ON)
- set(Boost_USE_STATIC_RUNTIME OFF)
-
- get_WIN32_WINNT(ver)
- add_definitions(-D_WIN32_WINNT=${ver})
-endif()
-
+macro(get_WIN32_WINNT version) + if (WIN32 AND CMAKE_SYSTEM_VERSION) + set(ver ${CMAKE_SYSTEM_VERSION}) + string(REPLACE "." "" ver ${ver}) + string(REGEX REPLACE "([0-9])" "0\\1" ver ${ver}) + + set(${version} "0x${ver}") + endif() +endmacro() + +if(WIN32) + set(BOOST_DEBUG ON) + if(DEFINED ENV{BOOST_ROOT}) + set(BOOST_ROOT $ENV{BOOST_ROOT}) + set(BOOST_LIBRARYDIR ${BOOST_ROOT}/lib${PLATFORM}-msvc-12.0) + else() + message(FATAL_ERROR "No BOOST_ROOT environment variable could be found! Please make sure it is set and the points to your Boost installation.") + endif() + + set(Boost_USE_STATIC_LIBS ON) + set(Boost_USE_MULTITHREADED ON) + set(Boost_USE_STATIC_RUNTIME OFF) + + get_WIN32_WINNT(ver) + add_definitions(-D_WIN32_WINNT=${ver}) +endif() + find_package(Boost 1.49 REQUIRED system filesystem thread program_options iostreams) -add_definitions(-DBOOST_DATE_TIME_NO_LIB)
-add_definitions(-DBOOST_REGEX_NO_LIB)
-add_definitions(-DBOOST_CHRONO_NO_LIB)
-
+add_definitions(-DBOOST_DATE_TIME_NO_LIB) +add_definitions(-DBOOST_REGEX_NO_LIB) +add_definitions(-DBOOST_CHRONO_NO_LIB) + # Find if Boost was compiled in C++03 mode because it requires -DBOOST_NO_CXX11_SCOPED_ENUMS include (CheckCXXSourceCompiles) @@ -55,6 +55,6 @@ if (NOT boost_filesystem_copy_links_without_NO_SCOPED_ENUM) endif() endif() -if(Boost_FOUND)
- include_directories(${Boost_INCLUDE_DIRS})
-endif()
+if(Boost_FOUND) + include_directories(${Boost_INCLUDE_DIRS}) +endif() diff --git a/cmake/macros/FindBoost.cmake b/cmake/macros/FindBoost.cmake index d90a9c12c16..3c6af49dcaa 100644 --- a/cmake/macros/FindBoost.cmake +++ b/cmake/macros/FindBoost.cmake @@ -1,136 +1,165 @@ -# - Find Boost include dirs and libraries
-# Use this module by invoking find_package with the form:
-# find_package(Boost
-# [version] [EXACT] # Minimum or EXACT version e.g. 1.36.0
-# [REQUIRED] # Fail with error if Boost is not found
-# [COMPONENTS <libs>...] # Boost libraries by their canonical name
-# ) # e.g. "date_time" for "libboost_date_time"
+#.rst:
+# FindBoost
+# ---------
+#
+# Find Boost include dirs and libraries
+#
+# Use this module by invoking find_package with the form::
+#
+# find_package(Boost
+# [version] [EXACT] # Minimum or EXACT version e.g. 1.36.0
+# [REQUIRED] # Fail with error if Boost is not found
+# [COMPONENTS <libs>...] # Boost libraries by their canonical name
+# ) # e.g. "date_time" for "libboost_date_time"
+#
# This module finds headers and requested component libraries OR a CMake
# package configuration file provided by a "Boost CMake" build. For the
# latter case skip to the "Boost CMake" section below. For the former
-# case results are reported in variables:
-# Boost_FOUND - True if headers and requested libraries were found
-# Boost_INCLUDE_DIRS - Boost include directories
-# Boost_LIBRARY_DIRS - Link directories for Boost libraries
-# Boost_LIBRARIES - Boost component libraries to be linked
-# Boost_<C>_FOUND - True if component <C> was found (<C> is upper-case)
-# Boost_<C>_LIBRARY - Libraries to link for component <C> (may include
-# target_link_libraries debug/optimized keywords)
-# Boost_VERSION - BOOST_VERSION value from boost/version.hpp
-# Boost_LIB_VERSION - Version string appended to library filenames
-# Boost_MAJOR_VERSION - Boost major version number (X in X.y.z)
-# Boost_MINOR_VERSION - Boost minor version number (Y in x.Y.z)
-# Boost_SUBMINOR_VERSION - Boost subminor version number (Z in x.y.Z)
-# Boost_LIB_DIAGNOSTIC_DEFINITIONS (Windows)
-# - Pass to add_definitions() to have diagnostic
-# information about Boost's automatic linking
-# displayed during compilation
+# case results are reported in variables::
+#
+# Boost_FOUND - True if headers and requested libraries were found
+# Boost_INCLUDE_DIRS - Boost include directories
+# Boost_LIBRARY_DIRS - Link directories for Boost libraries
+# Boost_LIBRARIES - Boost component libraries to be linked
+# Boost_<C>_FOUND - True if component <C> was found (<C> is upper-case)
+# Boost_<C>_LIBRARY - Libraries to link for component <C> (may include
+# target_link_libraries debug/optimized keywords)
+# Boost_VERSION - BOOST_VERSION value from boost/version.hpp
+# Boost_LIB_VERSION - Version string appended to library filenames
+# Boost_MAJOR_VERSION - Boost major version number (X in X.y.z)
+# Boost_MINOR_VERSION - Boost minor version number (Y in x.Y.z)
+# Boost_SUBMINOR_VERSION - Boost subminor version number (Z in x.y.Z)
+# Boost_LIB_DIAGNOSTIC_DEFINITIONS (Windows)
+# - Pass to add_definitions() to have diagnostic
+# information about Boost's automatic linking
+# displayed during compilation
+#
+# This module reads hints about search locations from variables::
+#
+# BOOST_ROOT - Preferred installation prefix
+# (or BOOSTROOT)
+# BOOST_INCLUDEDIR - Preferred include directory e.g. <prefix>/include
+# BOOST_LIBRARYDIR - Preferred library directory e.g. <prefix>/lib
+# Boost_NO_SYSTEM_PATHS - Set to ON to disable searching in locations not
+# specified by these hint variables. Default is OFF.
+# Boost_ADDITIONAL_VERSIONS
+# - List of Boost versions not known to this module
+# (Boost install locations may contain the version)
+#
+# and saves search results persistently in CMake cache entries::
+#
+# Boost_INCLUDE_DIR - Directory containing Boost headers
+# Boost_LIBRARY_DIR - Directory containing Boost libraries
+# Boost_<C>_LIBRARY_DEBUG - Component <C> library debug variant
+# Boost_<C>_LIBRARY_RELEASE - Component <C> library release variant
+#
+# Users may set these hints or results as cache entries. Projects
+# should not read these entries directly but instead use the above
+# result variables. Note that some hint names start in upper-case
+# "BOOST". One may specify these as environment variables if they are
+# not specified as CMake variables or cache entries.
+#
+# This module first searches for the Boost header files using the above
+# hint variables (excluding BOOST_LIBRARYDIR) and saves the result in
+# Boost_INCLUDE_DIR. Then it searches for requested component libraries
+# using the above hints (excluding BOOST_INCLUDEDIR and
+# Boost_ADDITIONAL_VERSIONS), "lib" directories near Boost_INCLUDE_DIR,
+# and the library name configuration settings below. It saves the
+# library directory in Boost_LIBRARY_DIR and individual library
+# locations in Boost_<C>_LIBRARY_DEBUG and Boost_<C>_LIBRARY_RELEASE.
+# When one changes settings used by previous searches in the same build
+# tree (excluding environment variables) this module discards previous
+# search results affected by the changes and searches again.
#
-# This module reads hints about search locations from variables:
-# BOOST_ROOT - Preferred installation prefix
-# (or BOOSTROOT)
-# BOOST_INCLUDEDIR - Preferred include directory e.g. <prefix>/include
-# BOOST_LIBRARYDIR - Preferred library directory e.g. <prefix>/lib
-# Boost_NO_SYSTEM_PATHS - Set to ON to disable searching in locations not
-# specified by these hint variables. Default is OFF.
-# Boost_ADDITIONAL_VERSIONS
-# - List of Boost versions not known to this module
-# (Boost install locations may contain the version)
-# and saves search results persistently in CMake cache entries:
-# Boost_INCLUDE_DIR - Directory containing Boost headers
-# Boost_LIBRARY_DIR - Directory containing Boost libraries
-# Boost_<C>_LIBRARY_DEBUG - Component <C> library debug variant
-# Boost_<C>_LIBRARY_RELEASE - Component <C> library release variant
-# Users may set these hints or results as cache entries. Projects should
-# not read these entries directly but instead use the above result variables.
-# Note that some hint names start in upper-case "BOOST". One may specify
-# these as environment variables if they are not specified as CMake variables
-# or cache entries.
+# Boost libraries come in many variants encoded in their file name.
+# Users or projects may tell this module which variant to find by
+# setting variables::
#
-# This module first searches for the Boost header files using the above hint
-# variables (excluding BOOST_LIBRARYDIR) and saves the result in
-# Boost_INCLUDE_DIR. Then it searches for requested component libraries using
-# the above hints (excluding BOOST_INCLUDEDIR and Boost_ADDITIONAL_VERSIONS),
-# "lib" directories near Boost_INCLUDE_DIR, and the library name configuration
-# settings below. It saves the library directory in Boost_LIBRARY_DIR and
-# individual library locations in Boost_<C>_LIBRARY_DEBUG and
-# Boost_<C>_LIBRARY_RELEASE. When one changes settings used by previous
-# searches in the same build tree (excluding environment variables) this
-# module discards previous search results affected by the changes and searches
-# again.
+# Boost_USE_MULTITHREADED - Set to OFF to use the non-multithreaded
+# libraries ('mt' tag). Default is ON.
+# Boost_USE_STATIC_LIBS - Set to ON to force the use of the static
+# libraries. Default is OFF.
+# Boost_USE_STATIC_RUNTIME - Set to ON or OFF to specify whether to use
+# libraries linked statically to the C++ runtime
+# ('s' tag). Default is platform dependent.
+# Boost_USE_DEBUG_RUNTIME - Set to ON or OFF to specify whether to use
+# libraries linked to the MS debug C++ runtime
+# ('g' tag). Default is ON.
+# Boost_USE_DEBUG_PYTHON - Set to ON to use libraries compiled with a
+# debug Python build ('y' tag). Default is OFF.
+# Boost_USE_STLPORT - Set to ON to use libraries compiled with
+# STLPort ('p' tag). Default is OFF.
+# Boost_USE_STLPORT_DEPRECATED_NATIVE_IOSTREAMS
+# - Set to ON to use libraries compiled with
+# STLPort deprecated "native iostreams"
+# ('n' tag). Default is OFF.
+# Boost_COMPILER - Set to the compiler-specific library suffix
+# (e.g. "-gcc43"). Default is auto-computed
+# for the C++ compiler in use.
+# Boost_THREADAPI - Suffix for "thread" component library name,
+# such as "pthread" or "win32". Names with
+# and without this suffix will both be tried.
+# Boost_NAMESPACE - Alternate namespace used to build boost with
+# e.g. if set to "myboost", will search for
+# myboost_thread instead of boost_thread.
+#
+# Other variables one may set to control this module are::
+#
+# Boost_DEBUG - Set to ON to enable debug output from FindBoost.
+# Please enable this before filing any bug report.
+# Boost_DETAILED_FAILURE_MSG
+# - Set to ON to add detailed information to the
+# failure message even when the REQUIRED option
+# is not given to the find_package call.
+# Boost_REALPATH - Set to ON to resolve symlinks for discovered
+# libraries to assist with packaging. For example,
+# the "system" component library may be resolved to
+# "/usr/lib/libboost_system.so.1.42.0" instead of
+# "/usr/lib/libboost_system.so". This does not
+# affect linking and should not be enabled unless
+# the user needs this information.
#
-# Boost libraries come in many variants encoded in their file name. Users or
-# projects may tell this module which variant to find by setting variables:
-# Boost_USE_MULTITHREADED - Set to OFF to use the non-multithreaded
-# libraries ('mt' tag). Default is ON.
-# Boost_USE_STATIC_LIBS - Set to ON to force the use of the static
-# libraries. Default is OFF.
-# Boost_USE_STATIC_RUNTIME - Set to ON or OFF to specify whether to use
-# libraries linked statically to the C++ runtime
-# ('s' tag). Default is platform dependent.
-# Boost_USE_DEBUG_PYTHON - Set to ON to use libraries compiled with a
-# debug Python build ('y' tag). Default is OFF.
-# Boost_USE_STLPORT - Set to ON to use libraries compiled with
-# STLPort ('p' tag). Default is OFF.
-# Boost_USE_STLPORT_DEPRECATED_NATIVE_IOSTREAMS
-# - Set to ON to use libraries compiled with
-# STLPort deprecated "native iostreams"
-# ('n' tag). Default is OFF.
-# Boost_COMPILER - Set to the compiler-specific library suffix
-# (e.g. "-gcc43"). Default is auto-computed
-# for the C++ compiler in use.
-# Boost_THREADAPI - Suffix for "thread" component library name,
-# such as "pthread" or "win32". Names with
-# and without this suffix will both be tried.
-# Other variables one may set to control this module are:
-# Boost_DEBUG - Set to ON to enable debug output from FindBoost.
-# Please enable this before filing any bug report.
-# Boost_DETAILED_FAILURE_MSG
-# - Set to ON to add detailed information to the
-# failure message even when the REQUIRED option
-# is not given to the find_package call.
-# Boost_REALPATH - Set to ON to resolve symlinks for discovered
-# libraries to assist with packaging. For example,
-# the "system" component library may be resolved to
-# "/usr/lib/libboost_system.so.1.42.0" instead of
-# "/usr/lib/libboost_system.so". This does not
-# affect linking and should not be enabled unless
-# the user needs this information.
# On Visual Studio and Borland compilers Boost headers request automatic
-# linking to corresponding libraries. This requires matching libraries to be
-# linked explicitly or available in the link library search path. In this
-# case setting Boost_USE_STATIC_LIBS to OFF may not achieve dynamic linking.
-# Boost automatic linking typically requests static libraries with a few
-# exceptions (such as Boost.Python). Use
-# add_definitions(${Boost_LIB_DIAGNOSTIC_DEFINITIONS})
+# linking to corresponding libraries. This requires matching libraries
+# to be linked explicitly or available in the link library search path.
+# In this case setting Boost_USE_STATIC_LIBS to OFF may not achieve
+# dynamic linking. Boost automatic linking typically requests static
+# libraries with a few exceptions (such as Boost.Python). Use::
+#
+# add_definitions(${Boost_LIB_DIAGNOSTIC_DEFINITIONS})
+#
# to ask Boost to report information about automatic linking requests.
#
-# Example to find Boost headers only:
-# find_package(Boost 1.36.0)
-# if(Boost_FOUND)
-# include_directories(${Boost_INCLUDE_DIRS})
-# add_executable(foo foo.cc)
-# endif()
-# Example to find Boost headers and some libraries:
-# set(Boost_USE_STATIC_LIBS ON)
-# set(Boost_USE_MULTITHREADED ON)
-# set(Boost_USE_STATIC_RUNTIME OFF)
-# find_package(Boost 1.36.0 COMPONENTS date_time filesystem system ...)
-# if(Boost_FOUND)
-# include_directories(${Boost_INCLUDE_DIRS})
-# add_executable(foo foo.cc)
-# target_link_libraries(foo ${Boost_LIBRARIES})
-# endif()
+# Example to find Boost headers only::
+#
+# find_package(Boost 1.36.0)
+# if(Boost_FOUND)
+# include_directories(${Boost_INCLUDE_DIRS})
+# add_executable(foo foo.cc)
+# endif()
+#
+# Example to find Boost headers and some *static* libraries::
#
-# Boost CMake ----------------------------------------------------------
+# set(Boost_USE_STATIC_LIBS ON) # only find static libs
+# set(Boost_USE_MULTITHREADED ON)
+# set(Boost_USE_STATIC_RUNTIME OFF)
+# find_package(Boost 1.36.0 COMPONENTS date_time filesystem system ...)
+# if(Boost_FOUND)
+# include_directories(${Boost_INCLUDE_DIRS})
+# add_executable(foo foo.cc)
+# target_link_libraries(foo ${Boost_LIBRARIES})
+# endif()
+#
+# Boost CMake
+# ^^^^^^^^^^^
#
# If Boost was built using the boost-cmake project it provides a package
-# configuration file for use with find_package's Config mode. This module
-# looks for the package configuration file called BoostConfig.cmake or
-# boost-config.cmake and stores the result in cache entry "Boost_DIR". If
-# found, the package configuration file is loaded and this module returns with
-# no further action. See documentation of the Boost CMake package
-# configuration for details on what it provides.
+# configuration file for use with find_package's Config mode. This
+# module looks for the package configuration file called
+# BoostConfig.cmake or boost-config.cmake and stores the result in cache
+# entry "Boost_DIR". If found, the package configuration file is loaded
+# and this module returns with no further action. See documentation of
+# the Boost CMake package configuration for details on what it provides.
#
# Set Boost_NO_BOOST_CMAKE to ON to disable the search for boost-cmake.
@@ -279,15 +308,20 @@ endmacro() macro(_Boost_FIND_LIBRARY var)
find_library(${var} ${ARGN})
- # If we found the first library save Boost_LIBRARY_DIR.
- if(${var} AND NOT Boost_LIBRARY_DIR)
- get_filename_component(_dir "${${var}}" PATH)
- set(Boost_LIBRARY_DIR "${_dir}" CACHE PATH "Boost library directory" FORCE)
+ if(${var})
+ # If this is the first library found then save Boost_LIBRARY_DIR.
+ if(NOT Boost_LIBRARY_DIR)
+ get_filename_component(_dir "${${var}}" PATH)
+ set(Boost_LIBRARY_DIR "${_dir}" CACHE PATH "Boost library directory" FORCE)
+ endif()
+ elseif(_Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT)
+ # Try component-specific hints but do not save Boost_LIBRARY_DIR.
+ find_library(${var} HINTS ${_Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT} ${ARGN})
endif()
# If Boost_LIBRARY_DIR is known then search only there.
if(Boost_LIBRARY_DIR)
- set(_boost_LIBRARY_SEARCH_DIRS ${Boost_LIBRARY_DIR} NO_DEFAULT_PATH)
+ set(_boost_LIBRARY_SEARCH_DIRS ${Boost_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
endif()
endmacro()
@@ -341,9 +375,9 @@ endfunction() # Guesses Boost's compiler prefix used in built library names
# Returns the guess by setting the variable pointed to by _ret
function(_Boost_GUESS_COMPILER_PREFIX _ret)
- if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel"
- OR ${CMAKE_CXX_COMPILER} MATCHES "icl"
- OR ${CMAKE_CXX_COMPILER} MATCHES "icpc")
+ if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel"
+ OR CMAKE_CXX_COMPILER MATCHES "icl"
+ OR CMAKE_CXX_COMPILER MATCHES "icpc")
if(WIN32)
set (_boost_COMPILER "-iw")
else()
@@ -369,7 +403,7 @@ function(_Boost_GUESS_COMPILER_PREFIX _ret) set(_boost_COMPILER "-vc6") # yes, this is correct
elseif (BORLAND)
set(_boost_COMPILER "-bcb")
- elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "SunPro")
+ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "SunPro")
set(_boost_COMPILER "-sw")
elseif (MINGW)
if(${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION} VERSION_LESS 1.34)
@@ -425,6 +459,9 @@ endfunction() if(NOT DEFINED Boost_USE_MULTITHREADED)
set(Boost_USE_MULTITHREADED TRUE)
endif()
+if(NOT DEFINED Boost_USE_DEBUG_RUNTIME)
+ set(Boost_USE_DEBUG_RUNTIME TRUE)
+endif()
# Check the version of Boost against the requested version.
if(Boost_FIND_VERSION AND NOT Boost_FIND_VERSION_MINOR)
@@ -441,7 +478,7 @@ else() # The user has not requested an exact version. Among known
# versions, find those that are acceptable to the user request.
set(_Boost_KNOWN_VERSIONS ${Boost_ADDITIONAL_VERSIONS}
- "1.56.0" "1.56" "1.55.0" "1.55" "1.54.0" "1.54"
+ "1.58.0" "1.58" "1.57.0" "1.57" "1.56.0" "1.56" "1.55.0" "1.55" "1.54.0" "1.54"
"1.53.0" "1.53" "1.52.0" "1.52" "1.51.0" "1.51"
"1.50.0" "1.50" "1.49.0" "1.49" "1.48.0" "1.48" "1.47.0" "1.47" "1.46.1"
"1.46.0" "1.46" "1.45.0" "1.45" "1.44.0" "1.44" "1.43.0" "1.43" "1.42.0" "1.42"
@@ -598,12 +635,12 @@ if(NOT Boost_INCLUDE_DIR) set(_boost_BOOSTIFIED_VERSION)
# Transform 1.35 => 1_35 and 1.36.0 => 1_36_0
- if(_boost_VER MATCHES "[0-9]+\\.[0-9]+\\.[0-9]+")
- string(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1_\\2_\\3"
- _boost_BOOSTIFIED_VERSION ${_boost_VER})
- elseif(_boost_VER MATCHES "[0-9]+\\.[0-9]+")
- string(REGEX REPLACE "([0-9]+)\\.([0-9]+)" "\\1_\\2"
- _boost_BOOSTIFIED_VERSION ${_boost_VER})
+ if(_boost_VER MATCHES "([0-9]+)\\.([0-9]+)\\.([0-9]+)")
+ set(_boost_BOOSTIFIED_VERSION
+ "${CMAKE_MATCH_1}_${CMAKE_MATCH_2}_${CMAKE_MATCH_3}")
+ elseif(_boost_VER MATCHES "([0-9]+)\\.([0-9]+)")
+ set(_boost_BOOSTIFIED_VERSION
+ "${CMAKE_MATCH_1}_${CMAKE_MATCH_2}")
endif()
list(APPEND _boost_PATH_SUFFIXES
@@ -651,7 +688,7 @@ if(Boost_INCLUDE_DIR) set(_Boost_VERSION_REGEX "([0-9]+)")
set(_Boost_LIB_VERSION_REGEX "\"([0-9_]+)\"")
foreach(v VERSION LIB_VERSION)
- if("${_boost_VERSION_HPP_CONTENTS}" MATCHES ".*#define BOOST_${v} ${_Boost_${v}_REGEX}.*")
+ if("${_boost_VERSION_HPP_CONTENTS}" MATCHES "#define BOOST_${v} ${_Boost_${v}_REGEX}")
set(Boost_${v} "${CMAKE_MATCH_1}")
endif()
endforeach()
@@ -706,10 +743,24 @@ else() endif()
# ------------------------------------------------------------------------
+# Prefix initialization
+# ------------------------------------------------------------------------
+
+set(Boost_LIB_PREFIX "")
+if ( WIN32 AND Boost_USE_STATIC_LIBS AND NOT CYGWIN)
+ set(Boost_LIB_PREFIX "lib")
+endif()
+
+if ( NOT Boost_NAMESPACE )
+ set(Boost_NAMESPACE "boost")
+endif()
+
+# ------------------------------------------------------------------------
# Suffix initialization and compiler suffix detection.
# ------------------------------------------------------------------------
set(_Boost_VARS_NAME
+ Boost_NAMESPACE
Boost_COMPILER
Boost_THREADAPI
Boost_USE_DEBUG_PYTHON
@@ -722,11 +773,6 @@ set(_Boost_VARS_NAME _Boost_CHANGE_DETECT(_Boost_CHANGE_LIBNAME ${_Boost_VARS_NAME})
# Setting some more suffixes for the library
-set(Boost_LIB_PREFIX "")
-if ( WIN32 AND Boost_USE_STATIC_LIBS AND NOT CYGWIN)
- set(Boost_LIB_PREFIX "lib")
-endif()
-
if (Boost_COMPILER)
set(_boost_COMPILER ${Boost_COMPILER})
if(Boost_DEBUG)
@@ -768,7 +814,7 @@ if(Boost_USE_STATIC_RUNTIME) endif()
# g using debug versions of the standard and runtime
# support libraries
-if(WIN32)
+if(WIN32 AND Boost_USE_DEBUG_RUNTIME)
if(MSVC OR "${CMAKE_CXX_COMPILER}" MATCHES "icl"
OR "${CMAKE_CXX_COMPILER}" MATCHES "icpc")
set(_boost_DEBUG_ABI_TAG "${_boost_DEBUG_ABI_TAG}g")
@@ -811,7 +857,7 @@ if(_Boost_CHANGE_LIBDIR AND NOT _Boost_LIBRARY_DIR_CHANGED) endif()
if(Boost_LIBRARY_DIR)
- set(_boost_LIBRARY_SEARCH_DIRS ${Boost_LIBRARY_DIR} NO_DEFAULT_PATH)
+ set(_boost_LIBRARY_SEARCH_DIRS ${Boost_LIBRARY_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
else()
set(_boost_LIBRARY_SEARCH_DIRS "")
if(BOOST_LIBRARYDIR)
@@ -910,22 +956,45 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS}) set( _boost_docstring_release "Boost ${COMPONENT} library (release)")
set( _boost_docstring_debug "Boost ${COMPONENT} library (debug)")
+ # Compute component-specific hints.
+ set(_Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT "")
+ if(${COMPONENT} STREQUAL "mpi" OR ${COMPONENT} STREQUAL "mpi_python" OR
+ ${COMPONENT} STREQUAL "graph_parallel")
+ foreach(lib ${MPI_CXX_LIBRARIES} ${MPI_C_LIBRARIES})
+ if(IS_ABSOLUTE "${lib}")
+ get_filename_component(libdir "${lib}" PATH)
+ string(REPLACE "\\" "/" libdir "${libdir}")
+ list(APPEND _Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT ${libdir})
+ endif()
+ endforeach()
+ endif()
+
+ # Consolidate and report component-specific hints.
+ if(_Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT)
+ list(REMOVE_DUPLICATES _Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT)
+ if(Boost_DEBUG)
+ message(STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
+ "Component-specific library search paths for ${COMPONENT}: "
+ "${_Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT}")
+ endif()
+ endif()
+
#
# Find RELEASE libraries
#
set(_boost_RELEASE_NAMES
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
- ${Boost_LIB_PREFIX}boost_${COMPONENT} )
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT} )
if(_boost_STATIC_RUNTIME_WORKAROUND)
set(_boost_RELEASE_STATIC_ABI_TAG "-s${_boost_RELEASE_ABI_TAG}")
list(APPEND _boost_RELEASE_NAMES
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG} )
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG} )
endif()
if(Boost_THREADAPI AND ${COMPONENT} STREQUAL "thread")
_Boost_PREPEND_LIST_WITH_THREADAPI(_boost_RELEASE_NAMES ${_boost_RELEASE_NAMES})
@@ -949,19 +1018,19 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS}) # Find DEBUG libraries
#
set(_boost_DEBUG_NAMES
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}-${Boost_LIB_VERSION}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}-${Boost_LIB_VERSION}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}
- ${Boost_LIB_PREFIX}boost_${COMPONENT} )
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT} )
if(_boost_STATIC_RUNTIME_WORKAROUND)
set(_boost_DEBUG_STATIC_ABI_TAG "-s${_boost_DEBUG_ABI_TAG}")
list(APPEND _boost_DEBUG_NAMES
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
- ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG} )
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG} )
endif()
if(Boost_THREADAPI AND ${COMPONENT} STREQUAL "thread")
_Boost_PREPEND_LIST_WITH_THREADAPI(_boost_DEBUG_NAMES ${_boost_DEBUG_NAMES})
@@ -1034,7 +1103,7 @@ if(Boost_FOUND) "${Boost_ERROR_REASON} Boost libraries:\n")
foreach(COMPONENT ${_Boost_MISSING_COMPONENTS})
set(Boost_ERROR_REASON
- "${Boost_ERROR_REASON} boost_${COMPONENT}\n")
+ "${Boost_ERROR_REASON} ${Boost_NAMESPACE}_${COMPONENT}\n")
endforeach()
list(LENGTH Boost_FIND_COMPONENTS Boost_NUM_COMPONENTS_WANTED)
diff --git a/cmake/platform/unix/settings.cmake b/cmake/platform/unix/settings.cmake index ab54124b5a1..04d21863f6c 100644 --- a/cmake/platform/unix/settings.cmake +++ b/cmake/platform/unix/settings.cmake @@ -40,5 +40,5 @@ elseif(CMAKE_C_COMPILER MATCHES "icc") elseif(CMAKE_C_COMPILER MATCHES "clang" OR CMAKE_C_COMPILER_ID STREQUAL "Clang") include(${CMAKE_SOURCE_DIR}/cmake/compiler/clang/settings.cmake) else() -add_definitions(-D_BUILD_DIRECTIVE='"${CMAKE_BUILD_TYPE}"') + add_definitions(-D_BUILD_DIRECTIVE='"${CMAKE_BUILD_TYPE}"') endif() diff --git a/sql/updates/world/2015_04_11_01_world.sql b/sql/updates/world/2015_04_11_01_world.sql new file mode 100644 index 00000000000..cf227f03976 --- /dev/null +++ b/sql/updates/world/2015_04_11_01_world.sql @@ -0,0 +1,1126 @@ +-- Add Gug +SET @ENTRY := 23144; +SET @GUID := 23428; +DELETE FROM `creature` WHERE `guid`=@GUID; +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `curhealth`) VALUES +(@GUID, @ENTRY, 530, -5119.803, 624.7665, 86.82748, 1.256637, 300, 3858); +DELETE FROM `creature_template_addon` WHERE `entry`=@ENTRY; +INSERT INTO `creature_template_addon` (`entry`, `bytes2`, `emote`) VALUES (@ENTRY, 4097, 133); + +-- Add spawns +SET @CGUID := 143596; +DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+297; +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `curhealth`) VALUES +(@CGUID+0, 23146, 530, -5143.491, 515.507, 84.50488, 4.834562, 300, 88860), -- Dragonmaw Enforcer +(@CGUID+1, 23146, 530, -5162.25, 534.2803, 82.78862, 5.183628, 300, 88860), +(@CGUID+2, 23146, 530, -5160.024, 561.3785, 82.47646, 0.05235988, 300, 88860), +(@CGUID+3, 23289, 530, -5141.078, 637.8817, 36.18917, 0, 300, 4299), -- 143599 -- Mine Car +(@CGUID+4, 23289, 530, -5158.637, 727.454, 45.57201, 0, 300, 4299), -- 143600 +(@CGUID+5, 23287, 530, -5229.827, 626.3266, 48.93023, 4.223697, 300, 4299), -- 23287 (Area: 3965) -- Murkblood Miner +(@CGUID+6, 23287, 530, -5160.776, 616.7452, 36.24147, 5.044002, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+7, 23287, 530, -5160.416, 658.8326, 38.73607, 3.106686, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+8, 23287, 530, -5163.108, 651.5301, 37.39709, 2.460914, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+9, 23287, 530, -5160.553, 678.9923, 41.02322, 2.792527, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+10, 23287, 530, -5161.212, 668.8508, 40.50122, 3.281219, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+11, 23287, 530, -5152.85, 621.4561, 35.87352, 5.166174, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+12, 23287, 530, -5157.459, 707.9813, 42.97822, 2.75762, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+13, 23287, 530, -5156.376, 687.0754, 41.27747, 2.80998, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+14, 23287, 530, -5138.036, 646.6555, 36.65028, 0.2443461, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+15, 23287, 530, -5144.963, 630.1486, 35.9286, 5.61996, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+16, 23287, 530, -5158.104, 699.1263, 42.52824, 3.473205, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+17, 23287, 530, -5139.44, 637.2499, 36.16368, 5.689773, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+18, 23287, 530, -5131.758, 701.3122, 41.26741, 0.5235988, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+19, 23287, 530, -5156.701, 715.8916, 43.45729, 3.106686, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+20, 23287, 530, -5121.366, 693.678, 38.92881, 1.361357, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+21, 23287, 530, -5097.448, 680.2379, 32.88943, 3.001966, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+22, 23287, 530, -5135.893, 721.6864, 44.35764, 0.08726646, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+23, 23287, 530, -5159.912, 725.4135, 45.55035, 3.333579, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+24, 23287, 530, -5140.923, 729.5199, 45.31025, 0.8726646, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+25, 23287, 530, -5079.597, 669.6569, 33.3003, 3.124139, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+26, 23287, 530, -5133.994, 712.6088, 42.61035, 0.2268928, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+27, 23287, 530, -5063.482, 624.7257, 27.56281, 2.338741, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+28, 23287, 530, -5080.878, 644.967, 32.68097, 2.426008, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+29, 23287, 530, -5100.418, 654.4422, 33.49445, 2.303835, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+30, 23287, 530, -5164.475, 734.2371, 47.03968, 3.438299, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+31, 23287, 530, -5058.134, 647.3507, 29.36781, 2.80998, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+32, 23287, 530, -5219.054, 621.868, 47.97065, 4.310963, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+33, 23287, 530, -5040.079, 627.7264, 19.75634, 2.373648, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+34, 23287, 530, -5018.824, 584.2097, 22.70727, 2.059489, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+35, 23287, 530, -4983.617, 632.3187, 20.58379, 3.054326, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+36, 23287, 530, -5019.396, 638.6277, 23.41907, 3.281219, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+37, 23287, 530, -5043.952, 595.3922, 18.24016, 2.094395, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+38, 23287, 530, -4969.858, 654.9359, 20.92751, 3.420845, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+39, 23287, 530, -4959.944, 591.9269, 12.99098, 1.989675, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+40, 23287, 530, -4968.715, 620.0629, 16.17488, 2.670354, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+41, 23287, 530, -4942.414, 582.1096, 9.914608, 2.129302, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+42, 23287, 530, -4959.944, 591.9269, 12.99098, 1.989675, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+43, 23287, 530, -4944.878, 561.5024, 7.636816, 2.094395, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+44, 23287, 530, -4921.915, 547.6068, 6.501626, 2.042035, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+45, 23287, 530, -4940.023, 535.2883, 7.127902, 1.675516, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+46, 23287, 530, -4904.557, 530.2072, 4.563097, 2.129302, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+47, 23287, 530, -4921.108, 528.4734, 6.568361, 2.042035, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+48, 23287, 530, -4887.938, 531.7214, 0.6247723, 3.054326, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+49, 23287, 530, -4965.987, 483.2187, 4.143906, 0.03490658, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+50, 23287, 530, -4918.072, 502.0591, 2.48006, 1.570796, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+51, 23287, 530, -4926.752, 455.5083, 1.527722, 1.396263, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+52, 23287, 530, -4981.036, 460.0726, 4.207428, 0.1745329, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+53, 23287, 530, -4937.384, 438.7227, 2.34031, 1.291544, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+54, 23287, 530, -4907.827, 475.5659, 0.8901013, 2.042035, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+55, 23287, 530, -4882.042, 472.4888, -3.117535, 3.228859, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+56, 23287, 530, -4941.028, 469.1831, 0.2023413, 1.064651, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+57, 23287, 530, -4950.465, 451.1373, 0.7255403, 0.9424778, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+58, 23287, 530, -4904.538, 420.0294, -5.088545, 2.443461, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+59, 23287, 530, -4959.418, 393.7061, -0.9294897, 4.520403, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+60, 23287, 530, -4956.983, 356.4414, -2.264346, 4.468043, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+61, 23287, 530, -4919.892, 307.3166, -13.13219, 3.403392, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+62, 23287, 530, -4970.338, 322.2038, -2.636889, 3.909538, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+63, 23287, 530, -4969.645, 298.882, -3.503148, 3.420845, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+64, 23287, 530, -4941.545, 294.6626, -8.814796, 3.263766, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+65, 23287, 530, -4994.479, 281.7764, -3.49516, 2.687807, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+66, 23287, 530, -5014.456, 279.3217, 0.06473933, 2.356194, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+67, 23287, 530, -4981.001, 267.0449, -6.299074, 2.565634, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+68, 23287, 530, -4966.653, 279.1325, -5.876964, 2.844887, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+69, 23287, 530, -4991.896, 300.7972, -1.304715, 3.281219, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+70, 23287, 530, -5009.957, 296.281, 2.063254, 2.792527, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+71, 23287, 530, -4973.297, 220.8183, -10.63328, 2.216568, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+72, 23287, 530, -4977.839, 252.8167, -8.2034, 2.408554, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+73, 23287, 530, -5011.099, 222.092, -10.51172, 1.815142, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+74, 23287, 530, -4995.983, 254.4959, -4.699264, 2.216568, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+75, 23287, 530, -5023.841, 241.114, -4.392029, 1.32645, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+76, 23287, 530, -5044.643, 201.4753, -11.86366, 0.8726646, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+77, 23287, 530, -5069.865, 170.6837, -9.401138, 0.8203048, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+78, 23287, 530, -5009.812, 160.8324, -14.7209, 2.75762, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+79, 23287, 530, -5067.464, 192.5109, -8.89424, 0.6457718, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+80, 23287, 530, -5041.76, 179.2009, -14.23692, 0.9599311, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+81, 23287, 530, -5051.51, 155.655, -12.63313, 1.396263, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+82, 23287, 530, -5090.02, 180.6597, -8.299232, 0.3490658, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+83, 23287, 530, -5085.621, 154.5083, -10.88531, 0.9075712, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+84, 23287, 530, -5056.444, 120.8188, -17.15018, 2.059489, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+85, 23287, 530, -5068.56, 141.5665, -13.4759, 1.082104, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+86, 23287, 530, -5115.295, 147.5993, -11.40529, 0.6457718, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+87, 23287, 530, -5109.351, 129.4899, -13.61424, 0.6283185, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+88, 23287, 530, -5107.625, 169.4426, -8.387082, 0.3490658, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+89, 23287, 530, -5118.663, 105.1847, -12.59805, 1.256637, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+90, 23287, 530, -5149.458, 152.029, -12.39146, 6.178465, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+91, 23287, 530, -5174.084, 155.2752, -12.23319, 6.021386, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+92, 23287, 530, -5198.479, 157.0766, -13.41456, 0.4712389, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+93, 23287, 530, -5178.485, 174.8304, -11.48918, 5.340707, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+94, 23287, 530, -5198.593, 202.2049, -13.6357, 5.113815, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+95, 23287, 530, -5189.779, 135.4848, -12.0408, 0.6806784, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+96, 23287, 530, -5229.695, 136.8613, -13.63386, 0.5585054, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+97, 23287, 530, -5218.991, 222.2088, -11.34154, 5.218534, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+98, 23287, 530, -5220.694, 199.7151, -12.80523, 5.951573, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+99, 23287, 530, -5247.149, 212.4612, -13.82043, 5.637414, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+100, 23287, 530, -5241.209, 231.7721, -11.93106, 5.51524, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+101, 23287, 530, -5023.841, 241.114, -4.392029, 1.32645, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+102, 23287, 530, -4937.384, 438.7227, 2.34031, 1.291544, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+103, 23287, 530, -4940.023, 535.2883, 7.127902, 1.675516, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+104, 23287, 530, -4959.944, 591.9269, 12.99098, 1.989675, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+105, 23287, 530, -4950.465, 451.1373, 0.7255403, 0.9424778, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+106, 23287, 530, -4991.896, 300.7972, -1.304715, 3.281219, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+107, 23287, 530, -4970.338, 322.2038, -2.636889, 3.909538, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+108, 23287, 530, -4969.645, 298.882, -3.503148, 3.420845, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+109, 23287, 530, -5069.865, 170.6837, -9.401138, 0.8203048, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+110, 23287, 530, -4959.418, 393.7061, -0.9294897, 4.520403, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+111, 23287, 530, -4926.752, 455.5083, 1.527722, 1.396263, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+112, 23287, 530, -4940.023, 535.2883, 7.127902, 1.675516, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+113, 23287, 530, -4921.108, 528.4734, 6.568361, 2.042035, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+114, 23287, 530, -4904.557, 530.2072, 4.563097, 2.129302, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+115, 23287, 530, -4983.617, 632.3187, 20.58379, 3.054326, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+116, 23287, 530, -4956.983, 356.4414, -2.264346, 4.468043, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+117, 23287, 530, -4965.987, 483.2187, 4.143906, 0.03490658, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+118, 23287, 530, -4941.028, 469.1831, 0.2023413, 1.064651, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+119, 23287, 530, -4940.023, 535.2883, 7.127902, 1.675516, 300, 4299), -- 23287 (Area: 3965) (Auras: 31261 - 31261) +(@CGUID+120, 23287, 530, -5178.181, 642.9128, 39.79438, 1.919862, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+121, 23287, 530, -5187.549, 638.7712, 41.74369, 1.954769, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+122, 23287, 530, -5170.539, 614.4111, 37.59125, 4.921828, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+123, 23287, 530, -5186.184, 617.5848, 42.23409, 4.34587, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+124, 23287, 530, -5219.594, 636.9407, 48.11805, 1.605703, 300, 4299), -- 23287 (Area: 3965 +(@CGUID+125, 23287, 530, -5209.468, 636.0561, 45.94989, 1.780236, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+126, 23287, 530, -5209.135, 619.5105, 46.42957, 4.502949, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+127, 23287, 530, -5197.959, 636.2016, 44.08671, 1.64061, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+128, 23287, 530, -5195.912, 618.5502, 44.35371, 4.555309, 300, 4299), -- 23287 (Area: 3965) +(@CGUID+129, 23169, 530, -5009.558, 687.8375, 18.86654, 1.480325, 300, 4299), -- 23169 (Area: 3965) -- Nethermine Flayer +(@CGUID+130, 23169, 530, -4967.988, 620.9315, 15.97108, 4.676374, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+131, 23169, 530, -4958.076, 598.2208, 13.32545, 5.52459, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+132, 23169, 530, -4979.914, 633.551, 20.30668, 2.572264, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+133, 23169, 530, -5013.305, 639.0559, 23.55437, 1.450203, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+134, 23169, 530, -4966.186, 655.6455, 20.22517, 2.583087, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+135, 23169, 530, -5010.128, 689.9114, 18.92688, 5.894914, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+136, 23169, 530, -4979.914, 633.551, 20.30668, 2.465721, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+137, 23169, 530, -5013.305, 639.0559, 23.55437, 1.212913, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+138, 23169, 530, -4958.076, 598.2208, 13.32545, 5.791277, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+139, 23169, 530, -4979.914, 633.551, 20.30668, 5.372581, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+140, 23169, 530, -5010.128, 689.9114, 18.92688, 6.151822, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+141, 23169, 530, -4966.186, 655.6455, 20.22517, 5.770682, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+142, 23169, 530, -4958.076, 598.2208, 13.32545, 5.80118, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+143, 23169, 530, -5013.305, 639.0559, 23.55437, 1.466077, 300, 4299), -- 23169 (Area: 3965 +(@CGUID+144, 23169, 530, -4919.305, 584.1595, 5.835848, 5.860526, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+145, 23169, 530, -4945.825, 567.2396, 8.357429, 4.963535, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+146, 23169, 530, -4920.444, 554.3483, 6.81108, 1.592739, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+147, 23169, 530, -4885.112, 529.7742, -0.07188316, 3.104875, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+148, 23169, 530, -4905.904, 531.3935, 4.766143, 4.255386, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+149, 23169, 530, -4958.076, 598.2208, 13.32545, 2.345144, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+150, 23169, 530, -4946.532, 565.8182, 8.39564, 2.171958, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+151, 23169, 530, -4971.019, 481.9048, 4.255131, 5.742048, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+152, 23169, 530, -4978.048, 461.4908, 3.580604, 1.284639, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+153, 23169, 530, -4910.448, 466.246, 1.150314, 4.61044, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+154, 23169, 530, -4922.486, 452.6082, 1.741542, 1.848747, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+155, 23169, 530, -4883.248, 474.9959, -2.790574, 0.4947965, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+156, 23169, 530, -4954.734, 439.9607, 2.19193, 0.7067229, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+157, 23169, 530, -4917.937, 430.3383, -1.619577, 5.612211, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+158, 23169, 530, -4958.768, 351.7107, -2.247269, 1.772254, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+159, 23169, 530, -5038.031, 350.875, 2.62308, 3.72062, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+160, 23169, 530, -4973.916, 319.2121, -2.417306, 1.525316, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+161, 23169, 530, -4931.086, 298.9532, -11.71306, 3.185381, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+162, 23169, 530, -5005.922, 290.7715, 0.05161196, 0.369805, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+163, 23169, 530, -5039.163, 319.1835, -3.561619, 3.754901, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+164, 23169, 530, -5010.779, 274.0312, -1.596922, 4.01841, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+165, 23169, 530, -4954.379, 295.0413, -5.898067, 2.82695, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+166, 23169, 530, -4991.504, 250.8047, -5.723885, 4.988063, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+167, 23169, 530, -5062.854, 293.8755, -8.149835, 3.967818, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+168, 23169, 530, -5018.055, 224.3272, -10.22529, 0.6886171, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+169, 23169, 530, -4976.179, 227.3799, -10.6006, 0.5956746, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+170, 23169, 530, -4935.262, 463.8304, 0.3223694, 0.1625037, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+171, 23169, 530, -4922.94, 501.7582, 2.849531, 5.342018, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+172, 23169, 530, -4975.554, 269.0946, -6.799523, 5.499429, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+173, 23169, 530, -4960.398, 355.0888, -1.787407, 5.133213, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+174, 23169, 530, -5016.044, 224.2127, -10.37248, 2.795499, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+175, 23169, 530, -5060.153, 197.7174, -9.609101, 3.258459, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+176, 23169, 530, -5049.03, 166.6831, -12.72408, 2.162152, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+177, 23169, 530, -4991.019, 249.8632, -5.817747, 2.753308, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+178, 23169, 530, -4977.148, 226.7941, -10.30185, 2.419013, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+179, 23169, 530, -5002.327, 291.3423, -0.9251177, 3.278219, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+180, 23169, 530, -5074.881, 159.3353, -10.2591, 1.89717, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+181, 23169, 530, -5094.841, 177.7091, -8.408723, 4.038786, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+182, 23169, 530, -5059.071, 126.2977, -16.5597, 5.170018, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+183, 23169, 530, -5109.454, 127.173, -13.81656, 1.71806, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+184, 23169, 530, -4954.41, 294.5933, -5.898048, 0.8626862, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+185, 23169, 530, -5116.198, 103.0558, -12.65989, 4.638427, 300, 4299), -- 23169 (Area: 3965) (Auras: ) +(@CGUID+186, 23169, 530, -5143.03, 145.8997, -12.47764, 2.741143, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+187, 23169, 530, -5110.538, 154.916, -10.57434, 1.115047, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+188, 23169, 530, -5047.887, 169.4041, -12.75727, 4.620065, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+189, 23169, 530, -5003.257, 159.8983, -14.73863, 0.2256795, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+190, 23169, 530, -5009.199, 275.662, -1.798863, 0.7142927, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+191, 23169, 530, -4975.545, 227.9456, -10.74416, 0.6228198, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+192, 23169, 530, -4991.768, 250.8438, -5.681248, 2.223132, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+193, 23169, 530, -5062.847, 293.5673, -8.190778, 4.098309, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+194, 23169, 530, -5001.911, 292.2764, -0.9095231, 1.151772, 300, 4299), -- 23169 (Area: 3965 +(@CGUID+195, 23169, 530, -4971.963, 318.408, -2.593545, 1.286586, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+196, 23169, 530, -5037.165, 349.7794, 2.602906, 3.60786, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+197, 23169, 530, -4932.7, 299.3089, -11.32172, 1.003917, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+198, 23169, 530, -5040.047, 317.9085, -4.035919, 4.635794, 300, 4299), -- 23169 (Area: 396 +(@CGUID+199, 23169, 530, -4957.847, 405.2784, 0.9240213, 3.046554, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+200, 23169, 530, -4948.438, 460.1876, 0.1027715, 0.9935466, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+201, 23169, 530, -4917.532, 431.2552, -1.466718, 2.644402, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+202, 23169, 530, -4955.563, 438.1111, 2.453238, 3.585394, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+203, 23169, 530, -4924.495, 453.2117, 1.67316, 0.4023848, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+204, 23169, 530, -4978.226, 457.8618, 3.579613, 5.989014, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+205, 23169, 530, -4910.379, 470.4026, 0.8641118, 1.141848, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+206, 23169, 530, -4970.949, 480.7429, 4.06482, 5.434553, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+207, 23169, 530, -4885.628, 472.7194, -2.342252, 6.117043, 300, 4299), -- 23169 (Area: 396 +(@CGUID+208, 23169, 530, -4919.86, 502.4582, 2.580096, 3.676699, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+209, 23169, 530, -4919.363, 552.8414, 6.88634, 6.262745, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+210, 23169, 530, -4946.429, 566.189, 8.320451, 0.8319092, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+211, 23169, 530, -4884.078, 530.2368, -0.2521183, 4.288206, 300, 4299), -- 23169 (Area: 396 +(@CGUID+212, 23169, 530, -4934.582, 535.1161, 6.564591, 4.536118, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+213, 23169, 530, -4906.604, 532.5593, 4.957226, 1.968214, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+214, 23169, 530, -4920.163, 587.0939, 6.468598, 2.24315, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+215, 23169, 530, -4959.686, 596.4736, 13.12449, 5.048675, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+216, 23169, 530, -4978.36, 633.9875, 19.98329, 0.7612703, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+217, 23169, 530, -4962.661, 656.2208, 19.60664, 2.322476, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+218, 23169, 530, -5015.241, 641.3285, 23.3768, 3.365274, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+219, 23169, 530, -5010.128, 689.9114, 18.78944, 2.978981, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+220, 23169, 530, -5077.739, 333.02, 5.179652, 2.509581, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+221, 23169, 530, -5019.065, 222.1603, -10.62667, 4.953171, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+222, 23169, 530, -4979.019, 269.4832, -6.478584, 3.350721, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+223, 23169, 530, -5058.351, 196.9229, -9.941554, 5.702285, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+224, 23169, 530, -5092.194, 181.7484, -8.519144, 6.063996, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+225, 23169, 530, -5071.979, 158.8044, -10.67218, 0.01778779, 300, 4299), -- 23169 (Area: 3965) +(@CGUID+226, 23326, 530, -5001.687, 643.4487, 22.84591, 5.311926, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) -- nethermine ravager +(@CGUID+227, 23326, 530, -5016.762, 689.4977, 18.98941, 4.254198, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+228, 23326, 530, -4948.338, 574.87, 9.780287, 5.182978, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+229, 23326, 530, -4978.119, 622.5638, 18.00215, 2.614223, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+230, 23326, 530, -4967.506, 658.9974, 20.74481, 3.170801, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+231, 23326, 530, -4957.431, 584.6068, 12.20244, 1.852743, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+232, 23326, 530, -5005.486, 644.3996, 22.76456, 1.884956, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+233, 23326, 530, -5015.393, 692.0869, 18.86917, 2.075273, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+234, 23326, 530, -4967.506, 658.9974, 20.74481, 0.5888432, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+235, 23326, 530, -4978.119, 622.5638, 18.00215, 1.621879, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+236, 23326, 530, -5005.486, 644.3996, 22.76456, 1.646531, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+237, 23326, 530, -5015.393, 692.0869, 18.86917, 3.379317, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+238, 23326, 530, -4951.823, 581.4465, 11.22198, 2.676563, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+239, 23326, 530, -4946.557, 579.6539, 10.15224, 1.13619, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+240, 23326, 530, -4928.474, 480.4054, -0.1783632, 0.9677349, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+241, 23326, 530, -4918.411, 483.8331, 0.07626688, 2.36952, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+242, 23326, 530, -4921.181, 439.6729, 0.8384005, 0.5438383, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+243, 23326, 530, -4952.597, 401.4749, -0.3538051, 3.418738, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+244, 23326, 530, -4868.084, 531.6934, -1.683346, 3.018919, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+245, 23326, 530, -4965.881, 349.554, -1.536497, 4.615863, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+246, 23326, 530, -4971.478, 304.6561, -3.048606, 5.414115, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+247, 23326, 530, -4953.476, 284.0535, -6.819366, 4.314682, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+248, 23326, 530, -5014.135, 288.1924, 1.793531, 5.620615, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+249, 23326, 530, -4962.295, 381.2368, -1.744818, 4.602769, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+250, 23326, 530, -4995.37, 236.0123, -7.475551, 5.915942, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+251, 23326, 530, -5046.238, 204.7434, -11.17455, 0.3013434, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+252, 23326, 530, -5015.046, 264.2135, -0.9630037, 4.380797, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+253, 23326, 530, -5054.073, 191.3642, -11.12945, 4.913056, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+254, 23326, 530, -5068.295, 161.4686, -10.65775, 3.185342, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+255, 23326, 530, -5084.805, 170.5898, -8.363562, 2.470629, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+256, 23326, 530, -5118.899, 113.8509, -12.95813, 1.053266, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+257, 23326, 530, -5121.38, 140.2108, -12.24173, 4.717645, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+258, 23326, 530, -5028.928, 162.4327, -14.69674, 4.598915, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+259, 23326, 530, -5013.326, 287.5868, 1.554583, 2.353504, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+260, 23326, 530, -5162.3, 147.2595, -13.68486, 2.213196, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+261, 23326, 530, -5195.16, 185.9774, -12.47411, 2.135337, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+262, 23326, 530, -5185.331, 154.8984, -12.49722, 5.532097, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+263, 23326, 530, -5028.03, 163.2786, -14.87766, 0.7552983, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+264, 23326, 530, -5055.308, 191.3719, -10.81202, 0.5039104, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+265, 23326, 530, -4995.011, 236.3476, -7.462594, 6.063029, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+266, 23326, 530, -5037.676, 207.097, -11.84669, 3.400416, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+267, 23326, 530, -5038.441, 207.0967, -11.75817, 3.849093, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732 +(@CGUID+268, 23326, 530, -4949.182, 294.4462, -6.966339, 0.678574, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+269, 23326, 530, -4973.03, 308.0056, -2.714836, 1.892263, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+270, 23326, 530, -4967.495, 349.8932, -1.395857, 2.333905, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+271, 23326, 530, -4950.731, 403.7043, -0.1075567, 0.8233353, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+272, 23326, 530, -4921.817, 439.4337, 0.8760551, 3.996498, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+273, 23326, 530, -4906.549, 472.265, 0.7405176, 2.369046, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+274, 23326, 530, -4942.342, 455.2948, 0.785726, 3.048413, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+275, 23326, 530, -4927.634, 480.4459, -0.2140773, 3.812036, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+276, 23326, 530, -4917.617, 533.3819, 6.377127, 4.497816, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+277, 23326, 530, -4947.289, 577.6053, 9.956731, 4.047926, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+278, 23326, 530, -4916.31, 586.3352, 5.467452, 0.6311421, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+279, 23326, 530, -4979.853, 626.7228, 18.89969, 2.537099, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+280, 23326, 530, -4968.971, 659.8459, 20.95211, 0.4729249, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+281, 23326, 530, -5002.798, 646.2766, 22.85282, 0.4368325, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+282, 23326, 530, -5084.679, 170.6154, -8.364773, 2.919591, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+283, 23326, 530, -5069.651, 161.7928, -10.45241, 3.358221, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+284, 23326, 530, -5122.319, 139.8094, -12.27753, 4.208749, 300, 3224), -- 23326 (Area: 3965) (Auras: 32732 - 32732) +(@CGUID+285, 23309, 530, -4860.765, 468.7788, -5.74204, 4.24115, 300, 4299), -- 23309 (Area: 3965) -- murkblood overseer +(@CGUID+286, 23324, 530, -5196.179, 166.8186, -12.59387, 4.930552, 300, 4299), -- 23324 (Area: 3965) (Auras: 40743 - 40743) Crazed Murkblood Miner +(@CGUID+287, 23324, 530, -5210.658, 146.5081, -14.06982, 3.909939, 300, 4299), -- 23324 (Area: 3965) (Auras: 40743 - 40743) +(@CGUID+288, 23324, 530, -5178.911, 173.927, -11.54059, 1.130439, 300, 4299), -- 23324 (Area: 3965) (Auras: 40743 - 40743) (possible waypoints or random movement) +(@CGUID+289, 23324, 530, -5192.216, 133.6122, -12.00781, 2.232028, 300, 4299), -- 23324 (Area: 3965) (possible waypoints or random movement) +(@CGUID+290, 23324, 530, -5179.031, 152.351, -12.46348, 4.376995, 300, 4299), -- 23324 (Area: 3965) (possible waypoints or random movement) +(@CGUID+291, 23324, 530, -5236.018, 198.761, -13.93909, 1.100167, 300, 4299), -- 23324 (Area: 3965) (Auras: 40743 - 40743) +(@CGUID+292, 23324, 530, -5210.276, 207.8238, -12.79146, 1.512519, 300, 4299), -- 23324 (Area: 3965) (Auras: 40743 - 40743) (possible waypoints or random movement) +(@CGUID+293, 23324, 530, -5230.436, 213.0719, -12.7647, 4.868175, 300, 4299), -- 23324 (Area: 3965) (Auras: 40743 - 40743) (possible waypoints or random movement) +(@CGUID+294, 23324, 530, -5254.496, 210.4873, -13.75615, 5.228326, 300, 4299), -- 23324 (Area: 3965) (Auras: 40743 - 40743) (possible waypoints or random movement) +(@CGUID+295, 23324, 530, -5224.815, 227.1456, -10.97935, 5.068825, 300, 4299), -- 23324 (Area: 3965) (possible waypoints or random movement) +(@CGUID+296, 23305, 530, -5223.799, 139.1362, -13.6459, 5.91905, 300, 4299), -- 23305 (Area: 3965) (Auras: 40743 - 40743) (possible waypoints or random movement) Crazed Murkblood Foreman +(@CGUID+297, 23305, 530, -5247.993, 226.5564, -12.5696, 3.970754, 300, 4299); -- 23305 (Area: 3965) (Auras: 40743 - 40743) + +-- Remove dubble spawns +DELETE FROM `creature` WHERE `guid` IN (143638, 143631, 143641, 143643, 143642, 143714, 143707, 143701, 143649, 143706, 143656, 143658, 143659, 143665, 48234, 48235, 48236, 48237, 48241, 48240, 48239, 48238, 48242, 48243, 48229, 48232, 48233, 48231, 48230, 48245, 48244, 48251, 48246, 48248, 48247, 48253, 48252, 48256, 48255, 48254, 48249, 48250, 143880, 143820, 143878, 143820, 143776, 143820, 143847, 143860, 143784, 143771, 143862, 143817, 143770, 143774, 143765, 143773, 143772, 143786, 143855, 143758, 143775, 143818, 143761, 143793, 143842, 143791, 143866, 143754, 143867, 143752, 143797, 143868, 143750, 143749, 143803, 143836, 143748, 143747, 143804, 143744, 143807, 143805, 143740, 143741, 143806, 143824, 143873, 143835, 143727, 143738, 143734, 143825, 143831, 143728, 143812, 143835, 143730, 143813, 143826, 143828, 143739, 143814, 143729, 143823, 143829, 143725, 143736, 143815, 143832, 143830, 143732, 143811, 52032, 143792, 143759, 143789, 52021, 52023, 52022, 52020, 52024, 52016, 52017, 52018, 52015, 52014,52019, 48257, 52013, 52011, 52012, 48258, 52030, 52031, 143762, 143846); + +-- update spawn distance +UPDATE `creature` SET `spawndist`=4 WHERE `id` IN (23326, 23169); +UPDATE `creature` SET `MovementType`=1 WHERE `id` IN (23326, 23169); + +-- Change weapons are sheathed for 23376 +SET @ENTRY := 23376; +DELETE FROM `creature_template_addon` WHERE `entry`=@ENTRY; +INSERT INTO `creature_template_addon` (`entry`) VALUES (@ENTRY); + +-- Remove existing mine cars +DELETE FROM `creature` WHERE `guid` IN (370643, 52334, 52335); + +-- Make Murkblood Miner spawn dead +DELETE FROM `creature_template_addon` WHERE `entry`=23287; +INSERT INTO `creature_template_addon` (`entry`, `bytes1`, `bytes2`, `auras`) VALUES (23287, 0, 1, 31261); + +-- Add aura to nethermine ravager +DELETE FROM `creature_template_addon` WHERE `entry`=23326; +INSERT INTO `creature_template_addon` (`entry`, `bytes1`, `bytes2`, `auras`) VALUES (23326, 0, 0, 32732); + +-- Mine Car SAI +SET @ENTRY := 23289; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,11,40684,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mine Car - On Reset - Cast 'Mine Cart'"), +(@ENTRY,0,1,0,38,0,100,0,1,1,0,0,103,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mine Car - On Data Set 1 1 - Set Rooted On"), +(@ENTRY,0,2,0,38,0,100,0,1,0,0,0,65,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Mine Car - On Data Set 1 0 - Resume Waypoint"); + +-- Dragonmaw Foreman SAI +SET @ENTRY := 23376; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,0,0,100,0,0,0,0,0,45,1,1,0,0,0,0,10,143599,23289,0,0,0,0,0,"Dragonmaw Foreman - In Combat - Set Data 1 1"), +(@ENTRY,0,1,0,25,0,100,0,0,0,0,0,45,1,0,0,0,0,0,10,143599,23289,0,0,0,0,0,"Dragonmaw Foreman - On Reset - Set Data 1 0"), +(@ENTRY,0,2,0,25,0,100,0,0,0,0,0,45,1,0,0,0,0,0,10,143600,23289,0,0,0,0,0,"Dragonmaw Foreman - On Reset - Set Data 1 0"), +(@ENTRY,0,3,0,0,0,100,0,0,0,0,0,45,1,1,0,0,0,0,10,143600,23289,0,0,0,0,0,"Dragonmaw Foreman - In Combat - Set Data 1 1"); + +-- Crazed Murkblood Miner SAI +SET @ENTRY := 23324; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,1,0,100,0,60000,120000,60000,120000,11,40743,0,0,0,0,0,1,0,0,0,0,0,0,0,"Crazed Murkblood Miner - Out of Combat - Cast 'Frenzy'"); + +-- Crazed Murkblood Foreman SAI +SET @ENTRY := 23305; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,1,0,100,0,60000,120000,60000,120000,11,40743,0,0,0,0,0,1,0,0,0,0,0,0,0,"Crazed Murkblood Foreman - Out of Combat - Cast 'Frenzy'"); + +-- Add creature addon +DELETE FROM `creature_addon` WHERE `guid` IN (143601, 143628, 143720, 143721, 143724, 143719, 143718, 143602, 143607, 143611, 143613, 143610, 143616, 143614, 143622, 143618, 143620, 143626, 143619, 143615, 143612, 143609, 1436058, 143606, 143603, 143604, 143716, 143717, 143723, 143605, 143722); +INSERT INTO `creature_addon` (`guid`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES +(143601, 0, 1, 233, NULL), +(143628, 0, 1, 233, NULL), +(143720, 0, 1, 233, NULL), +(143721, 0, 1, 233, NULL), +(143724, 0, 1, 233, NULL), +(143719, 0, 1, 233, NULL), +(143718, 0, 1, 233, NULL), +(143602, 0, 1, 233, NULL), +(143607, 0, 1, 233, NULL), +(143611, 0, 1, 233, NULL), +(143613, 0, 1, 233, NULL), +(143610, 0, 1, 233, NULL), +(143616, 0, 1, 233, NULL), +(143614, 0, 1, 233, NULL), +(143622, 0, 1, 233, NULL), +(143618, 0, 1, 233, NULL), +(143620, 0, 1, 233, NULL), +(143626, 0, 1, 233, NULL), +(143619, 0, 1, 233, NULL), +(143615, 0, 1, 233, NULL), +(143612, 0, 1, 233, NULL), +(143609, 0, 1, 233, NULL), +(143605, 0, 1, 233, NULL), +(143606, 0, 1, 233, NULL), +(143603, 0, 1, 233, NULL), +(143604, 0, 1, 233, NULL), +(143716, 0, 1, 233, NULL), +(143717, 0, 1, 233, NULL), +(143723, 0, 1, 233, NULL), +(143722, 0, 1, 233, NULL); + +-- Update position +UPDATE `creature` SET `position_x`=-5165.002, `position_y`=534.0313, `position_z`=82.90166, `orientation`=3.857178 WHERE `guid`=52106; +UPDATE `creature` SET `position_x`=-5146.481, `position_y`=517.6528, `position_z`=85.1688, `orientation`=3.351032 WHERE `guid`=52109; +UPDATE `creature` SET `position_x`=-5166.383, `position_y`=563.9937, `position_z`=80.58907, `orientation`=3.211406 WHERE `guid`=52107; +UPDATE `creature` SET `position_x`=-5128.689, `position_y`=579.8379, `position_z`=85.25567, `orientation`=0.2617994 WHERE `guid`=52112; +UPDATE `creature` SET `position_x`=-5133.728, `position_y`=591.6107, `position_z`=84.34083, `orientation`=0.08726646 WHERE `guid`=52111; +UPDATE `creature` SET `position_x`=-5103.687, `position_y`=585.6875, `position_z`=85.79736, `orientation`=2.111848 WHERE `guid`=52114; +UPDATE `creature` SET `position_x`=-5079.457, `position_y`=538.1425, `position_z`=86.41579, `orientation`=5.5676 WHERE `guid`=52231; +UPDATE `creature` SET `position_x`=-5094.562, `position_y`=596.6859, `position_z`=86.2102, `orientation`=2.617994 WHERE `guid`=52115; +UPDATE `creature` SET `position_x`=-5102.299, `position_y`=623.4721, `position_z`=86.07585, `orientation`=1.413717 WHERE `guid`=52113; +UPDATE `creature` SET `position_x`=-5089.073, `position_y`=616.179, `position_z`=85.79301, `orientation`=1.082104 WHERE `guid`=52230; +UPDATE `creature` SET `position_x`=-5162.11, `position_y`=629.679, `position_z`=79.66261, `orientation`=2.199115 WHERE `guid`=52108; +UPDATE `creature` SET `position_x`=-5146.516, `position_y`=639.3836, `position_z`=81.87501, `orientation`=2.321288 WHERE `guid`=52110; + +-- Update position Ronag the slave driver +UPDATE `creature` SET `position_x`=-5161.059, `position_y`=288.1674, `position_z`=-27.11326, `orientation`=5.078908 WHERE `guid`=40729; + +-- Update mistress of the mine positions +UPDATE `creature` SET `position_x`=-5254.184, `position_y`=628.4734, `position_z`=48.99072, `orientation`=2.617994 WHERE `guid`=88898; + +-- Update toranaku position +UPDATE `creature` SET `position_x`=-5133.719, `position_y`=227.1979, `position_z`=-26.26821, `orientation`=2.059489 WHERE `guid`=40740; + +-- Update murkblood overseer positions +UPDATE `creature` SET `position_x`=-4898.184, `position_y`=411.9311, `position_z`=-5.810406, `orientation`=3.368485 WHERE `guid`=43919; +UPDATE `creature` SET `position_x`=-4907.272, `position_y`=314.5579, `position_z`=-12.17146, `orientation`=1.518436 WHERE `guid`=40742; +UPDATE `creature` SET `position_x`=-4961.051, `position_y`=211.6252, `position_z`=-10.97874, `orientation`=4.031711 WHERE `guid`=42566; +UPDATE `creature` SET `position_x`=-4979.739, `position_y`=161.6144, `position_z`=-15.42497, `orientation`=2.670354 WHERE `guid`=48228; + +-- Add missing mistress of the mine +SET @ENTRY := 23149; +SET @GUID := 23430; +DELETE FROM `creature` WHERE `guid`=@GUID; +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `curhealth`) VALUES +(@GUID, @ENTRY, 530, -5165.22, 757.3012, 49.79086, 2.932153, 25, 104790); + +DELETE FROM `creature_addon` WHERE `guid` IN (143846, 143847, 52283, 23144); + +DELETE FROM `creature_formations` WHERE `leaderGUID`=143599; +INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`) VALUES +(143599, 143599, 0, 0, 1), +(143599, 52345, 2, 0, 2); + +-- Pathing for Mine Car Entry: 23289 'TDB FORMAT' +SET @NPC := 143599; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5141.078,`position_y`=637.8817,`position_z`=36.18917 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5141.078,637.8817,36.18917,0,0,0,0,100,0), -- 17:08:25 +(@PATH,2,-5140.013,643.7603,36.68985,0,0,0,0,100,0), -- 17:08:26 +(@PATH,3,-5139.763,645.5103,36.93985,0,0,0,0,100,0), -- 17:08:26 +(@PATH,4,-5139.761,650.6669,37.334,0,0,0,0,100,0), -- 17:08:30 +(@PATH,5,-5140.261,653.6669,37.834,0,0,0,0,100,0), -- 17:08:30 +(@PATH,6,-5140.511,657.9169,38.084,0,0,0,0,100,0), -- 17:08:30 +(@PATH,7,-5147.932,667.6057,41.11486,0,0,0,0,100,0), -- 17:08:36 +(@PATH,8,-5151.682,670.6057,41.36486,0,0,0,0,100,0), -- 17:08:36 +(@PATH,9,-5154.71,670.9447,41.20504,0,0,0,0,100,0), -- 17:08:42 +(@PATH,10,-5157.904,664.1409,40.12909,0,0,0,0,100,0), -- 17:08:44 +(@PATH,11,-5157.904,660.6409,39.87909,0,0,0,0,100,0), -- 17:08:44 +(@PATH,12,-5161.058,651.3033,37.78137,0,0,0,0,100,0), -- 17:08:49 +(@PATH,13,-5164.057,648.1979,37.81743,0,0,0,0,100,0), -- 17:08:51 +(@PATH,14,-5165.057,647.4479,37.56743,0,0,0,0,100,0), -- 17:08:51 +(@PATH,15,-5167.557,645.1979,37.81743,0,0,0,0,100,0), -- 17:08:51 +(@PATH,16,-5170.843,644.0839,38.46222,0,0,0,0,100,0), -- 17:08:55 +(@PATH,17,-5172.093,643.3339,38.71222,0,0,0,0,100,0), -- 17:08:55 +(@PATH,18,-5173.593,642.8339,38.96222,0,0,0,0,100,0), -- 17:08:55 +(@PATH,19,-5186.051,637.8183,41.7608,0,0,0,0,100,0), -- 17:09:00 +(@PATH,20,-5189.714,636.5399,42.51512,0,0,0,0,100,0), -- 17:09:04 +(@PATH,21,-5191.214,636.2899,42.76512,0,0,0,0,100,0), -- 17:09:04 +(@PATH,22,-5197.214,634.7899,44.26512,0,0,0,0,100,0), -- 17:09:04 +(@PATH,23,-5203.103,634.7686,45.08968,0,0,0,0,100,0), -- 17:09:09 +(@PATH,24,-5206.103,634.7686,45.58968,0,0,0,0,100,0), -- 17:09:09 +(@PATH,25,-5209.806,634.6367,46.42096,0,0,0,0,100,0), -- 17:09:13 +(@PATH,26,-5213.186,634.7311,46.78786,0,0,0,0,100,0), -- 17:09:16 +(@PATH,27,-5213.186,634.7311,46.78786,3.057303,13000,0,0,100,0), -- 17:09:16 +(@PATH,28,-5220.281,635.3306,48.28771,0,0,0,0,100,0), -- 17:09:23 +(@PATH,29,-5225.046,631.6472,48.62878,0,0,0,0,100,0), -- 17:09:24 +(@PATH,30,-5226.796,630.3972,48.62878,0,0,0,0,100,0), -- 17:09:24 +(@PATH,31,-5228.296,629.1472,48.87878,0,0,0,0,100,0), -- 17:09:24 +(@PATH,32,-5229.272,628.4141,49.11567,0,0,0,0,100,0), -- 17:09:29 +(@PATH,33,-5212.051,622.3498,47.22783,0,0,0,0,100,0), -- 17:09:34 +(@PATH,34,-5206.287,621.1569,46.21485,0,0,0,0,100,0), -- 17:09:39 +(@PATH,35,-5186.77,619.8926,42.72266,0,0,0,0,100,0), -- 17:09:44 +(@PATH,36,-5183.428,619.211,41.72144,0,0,0,0,100,0), -- 17:09:47 +(@PATH,37,-5180.678,618.461,40.97144,0,0,0,0,100,0), -- 17:09:47 +(@PATH,38,-5177.428,617.961,39.97144,0,0,0,0,100,0), -- 17:09:47 +(@PATH,39,-5163.798,617.6891,36.96609,0,0,0,0,100,0), -- 17:09:53 +(@PATH,40,-5157.38,620.9669,36.305,0,0,0,0,100,0), -- 17:09:58 +(@PATH,41,-5155.63,622.2169,36.305,0,0,0,0,100,0), -- 17:09:58 +(@PATH,42,-5151.773,625.8492,36.2674,0,0,0,0,100,0), -- 17:10:02 +(@PATH,43,-5147.023,630.5992,36.0174,0,0,0,0,100,0), -- 17:10:02 +(@PATH,44,-5151.613,626.0107,36.01761,0,0,0,0,100,0), -- 17:10:04 +(@PATH,45,-5151.613,626.0107,36.01761,0.7864318,13000,0,0,100,0), -- 17:10:04 +(@PATH,46,-5147.015,630.6146,36.24972,0,0,0,0,100,0), -- 17:10:12 +(@PATH,47,-5146.276,631.5181,36.09008,0,0,0,0,100,0), -- 17:10:13 +(@PATH,48,-5139.943,643.661,36.66342,0,0,0,0,100,0), -- 17:10:17 +(@PATH,49,-5139.693,645.661,36.91342,0,0,0,0,100,0), -- 17:10:17 +(@PATH,50,-5139.456,647.1063,37.25185,0,0,0,0,100,0), -- 17:10:20 +(@PATH,51,-5139.706,650.6063,37.25185,0,0,0,0,100,0), -- 17:10:20 +(@PATH,52,-5140.206,653.6063,37.75185,0,0,0,0,100,0), -- 17:10:20 +(@PATH,53,-5140.706,657.8563,38.25185,0,0,0,0,100,0), -- 17:10:20 +(@PATH,54,-5148.056,667.8259,41.13531,0,0,0,0,100,0), -- 17:10:26 +(@PATH,55,-5151.806,670.5759,41.38531,0,0,0,0,100,0), -- 17:10:26 +(@PATH,56,-5154.813,670.973,41.23766,0,0,0,0,100,0), -- 17:10:34 +(@PATH,57,-5157.935,667.3557,40.72045,0,0,0,0,100,0), -- 17:10:35 +(@PATH,58,-5157.935,664.1057,40.22045,0,0,0,0,100,0), -- 17:10:35 +(@PATH,59,-5157.935,660.6057,39.72045,0,0,0,0,100,0), -- 17:10:35 +(@PATH,60,-5158.109,661.8198,39.61253,0,0,0,0,100,0), -- 17:10:40 +(@PATH,61,-5158.109,661.8198,39.61253,4.732054,13000,0,0,100,0), -- 17:10:40 +(@PATH,62,-5158.071,660.382,39.43446,0,0,0,0,100,0), -- 17:10:47 +(@PATH,63,-5161.05,651.4003,37.68608,0,0,0,0,100,0), -- 17:10:48 +(@PATH,64,-5164.23,648.3284,37.75933,0,0,0,0,100,0), -- 17:10:51 +(@PATH,65,-5164.98,647.5784,37.75933,0,0,0,0,100,0), -- 17:10:51 +(@PATH,66,-5167.73,645.3284,37.75933,0,0,0,0,100,0), -- 17:10:51 +(@PATH,67,-5170.907,644.0687,38.51237,0,0,0,0,100,0), -- 17:10:54 +(@PATH,68,-5172.157,643.5687,38.76237,0,0,0,0,100,0), -- 17:10:54 +(@PATH,69,-5173.657,642.8187,39.01237,0,0,0,0,100,0), -- 17:10:54 +(@PATH,70,-5186.038,637.9409,41.76183,0,0,0,0,100,0), -- 17:10:58 +(@PATH,71,-5189.85,636.6265,42.57893,0,0,0,0,100,0), -- 17:11:03 +(@PATH,72,-5191.35,636.3765,42.82893,0,0,0,0,100,0), -- 17:11:03 +(@PATH,73,-5197.35,634.8765,44.32893,0,0,0,0,100,0), -- 17:11:03 +(@PATH,74,-5202.985,634.672,45.20214,0,0,0,0,100,0), -- 17:11:07 +(@PATH,75,-5206.235,634.672,45.45214,0,0,0,0,100,0), -- 17:11:07 +(@PATH,76,-5209.681,634.6359,46.49954,0,0,0,0,100,0), -- 17:11:12 +(@PATH,77,-5225.227,631.6835,48.47477,0,0,0,0,100,0), -- 17:11:16 +(@PATH,78,-5226.727,630.4335,48.72477,0,0,0,0,100,0), -- 17:11:16 +(@PATH,79,-5228.477,629.1835,48.97477,0,0,0,0,100,0), -- 17:11:16 +(@PATH,80,-5229.123,628.397,49.13941,0,0,0,0,100,0), -- 17:11:21 +(@PATH,81,-5212.127,622.4219,47.1857,0,0,0,0,100,0), -- 17:11:26 +(@PATH,82,-5206.309,621.397,46.11539,0,0,0,0,100,0), -- 17:11:29 +(@PATH,83,-5200.812,620.8071,45.10049,0,0,0,0,100,0), -- 17:11:34 +(@PATH,84,-5200.812,620.8071,45.10049,6.201494,13000,0,0,100,0), -- 17:11:34 +(@PATH,85,-5196.44,620.4492,44.38279,0,0,0,0,100,0), -- 17:11:42 +(@PATH,86,-5186.816,619.8555,42.8981,0,0,0,0,100,0), -- 17:11:43 +(@PATH,87,-5183.516,619.1785,41.63834,0,0,0,0,100,0), -- 17:11:46 +(@PATH,88,-5180.766,618.4285,40.88834,0,0,0,0,100,0), -- 17:11:46 +(@PATH,89,-5177.516,617.9285,39.88834,0,0,0,0,100,0), -- 17:11:46 +(@PATH,90,-5163.909,617.6057,37.10681,0,0,0,0,100,0), -- 17:11:53 +(@PATH,91,-5157.449,621.0334,36.26365,0,0,0,0,100,0), -- 17:11:57 +(@PATH,92,-5155.699,622.2834,36.26365,0,0,0,0,100,0), -- 17:11:57 +(@PATH,93,-5154.149,623.4669,36.08303,0,0,0,0,100,0), -- 17:12:00 +(@PATH,94,-5152.149,625.7169,36.08303,0,0,0,0,100,0), -- 17:12:00 +(@PATH,95,-5146.899,630.7169,36.08303,0,0,0,0,100,0), -- 17:12:00 +(@PATH,96,-5146.199,631.3462,36.08583,0,0,0,0,100,0), -- 17:12:05 +(@PATH,97,-5139.907,643.7687,36.67455,0,0,0,0,100,0), -- 17:12:08 +(@PATH,98,-5139.657,645.5187,36.92455,0,0,0,0,100,0), -- 17:12:08 +(@PATH,99,-5139.875,650.5488,37.28083,0,0,0,0,100,0), -- 17:12:12 +(@PATH,100,-5140.125,653.5488,37.78083,0,0,0,0,100,0), -- 17:12:12 +(@PATH,101,-5140.625,657.7988,38.28083,0,0,0,0,100,0), -- 17:12:12 +(@PATH,102,-5148.108,667.7523,40.98037,0,0,0,0,100,0), -- 17:12:18 +(@PATH,103,-5151.608,670.7523,41.48037,0,0,0,0,100,0), -- 17:12:18 +(@PATH,104,-5141.205,661.6332,38.87123,0,0,0,0,100,0), -- 17:12:19 +(@PATH,105,-5141.205,661.6332,38.87123,1.692706,13000,0,0,100,0), -- 17:12:19 +(@PATH,106,-5151.783,670.6835,41.29935,0,0,0,0,100,0), -- 17:12:27 +(@PATH,107,-5154.538,671.0463,41.41257,0,0,0,0,100,0), -- 17:12:31 +(@PATH,108,-5157.866,664.149,40.19033,0,0,0,0,100,0), -- 17:12:34 +(@PATH,109,-5157.866,660.649,39.69033,0,0,0,0,100,0), -- 17:12:34 +(@PATH,110,-5159.319,655.634,38.41046,0,0,0,0,100,0), -- 17:12:39 +(@PATH,111,-5161.069,651.384,37.91046,0,0,0,0,100,0), -- 17:12:39 +(@PATH,112,-5164.453,648.3511,37.68428,0,0,0,0,100,0), -- 17:12:42 +(@PATH,113,-5164.953,647.6011,37.68428,0,0,0,0,100,0), -- 17:12:42 +(@PATH,114,-5167.703,645.3511,37.93428,0,0,0,0,100,0), -- 17:12:42 +(@PATH,115,-5171.067,643.7227,38.57786,0,0,0,0,100,0), -- 17:12:46 +(@PATH,116,-5172.317,643.4727,38.57786,0,0,0,0,100,0), -- 17:12:46 +(@PATH,117,-5173.567,642.9727,39.07786,0,0,0,0,100,0), -- 17:12:46 +(@PATH,118,-5186.047,637.7537,41.88425,0,0,0,0,100,0), -- 17:12:50 +(@PATH,119,-5177.467,641.3476,39.69143,0,0,0,0,100,0), -- 17:12:51 +(@PATH,120,-5177.467,641.3476,39.69143,3.542526,13000,0,0,100,0), -- 17:12:51 +(@PATH,121,-5186.172,637.7469,41.72967,0,0,0,0,100,0), -- 17:12:58 +(@PATH,122,-5189.829,636.4236,42.40816,0,0,0,0,100,0), -- 17:13:02 +(@PATH,123,-5191.579,636.1736,42.90816,0,0,0,0,100,0), -- 17:13:02 +(@PATH,124,-5197.329,634.9236,44.40816,0,0,0,0,100,0), -- 17:13:02 +(@PATH,125,-5203.01,634.6678,45.16574,0,0,0,0,100,0), -- 17:13:05 +(@PATH,126,-5206.01,634.6678,45.41574,0,0,0,0,100,0), -- 17:13:05 +(@PATH,127,-5209.636,634.6382,46.55074,0,0,0,0,100,0), -- 17:13:10 +(@PATH,128,-5225.139,631.7184,48.56197,0,0,0,0,100,0), -- 17:13:15 +(@PATH,129,-5226.889,630.4684,48.56197,0,0,0,0,100,0), -- 17:13:15 +(@PATH,130,-5228.389,629.2184,48.81197,0,0,0,0,100,0), -- 17:13:15 +(@PATH,131,-5229.226,628.3779,48.93416,0,0,0,0,100,0), -- 17:13:20 +(@PATH,132,-5212.188,622.4875,47.14201,0,0,0,0,100,0), -- 17:13:25 +(@PATH,133,-5206.112,621.292,46.29193,0,0,0,0,100,0), -- 17:13:28 +(@PATH,134,-5186.827,619.9382,42.81411,0,0,0,0,100,0), -- 17:13:33 +(@PATH,135,-5193.917,620.2497,43.88791,0,0,0,0,100,0), -- 17:13:36 +(@PATH,136,-5193.917,620.2497,43.88791,6.204306,13000,0,0,100,0), -- 17:13:36 +(@PATH,137,-5186.842,619.9473,42.7837,0,0,0,0,100,0), -- 17:13:43 +(@PATH,138,-5183.527,619.1399,41.53972,0,0,0,0,100,0), -- 17:13:46 +(@PATH,139,-5180.777,618.3899,40.78972,0,0,0,0,100,0), -- 17:13:46 +(@PATH,140,-5177.527,617.8899,40.03972,0,0,0,0,100,0), -- 17:13:46 +(@PATH,141,-5163.918,617.7509,36.96921,0,0,0,0,100,0), -- 17:13:51 +(@PATH,142,-5158.669,620.3835,36.38764,0,0,0,0,100,0), -- 17:13:55 +(@PATH,143,-5157.419,621.1335,36.38764,0,0,0,0,100,0), -- 17:13:55 +(@PATH,144,-5155.669,622.3835,36.38764,0,0,0,0,100,0), -- 17:13:55 +(@PATH,145,-5151.717,625.7791,36.29499,0,0,0,0,100,0), -- 17:13:59 +(@PATH,146,-5146.967,630.5291,36.04499,0,0,0,0,100,0), -- 17:13:59 +(@PATH,147,-5146.07,631.4751,36.08121,0,0,0,0,100,0), -- 17:14:04 +(@PATH,148,-5140.069,643.69,36.68766,0,0,0,0,100,0), -- 17:14:07 +(@PATH,149,-5139.569,645.69,36.93766,0,0,0,0,100,0), -- 17:14:07 +(@PATH,150,-5139.775,650.586,37.32704,0,0,0,0,100,0), -- 17:14:11 +(@PATH,151,-5140.275,653.586,37.82704,0,0,0,0,100,0), -- 17:14:11 +(@PATH,152,-5140.525,657.836,38.07704,0,0,0,0,100,0), -- 17:14:11 +(@PATH,153,-5139.893,650.9125,36.97102,0,0,0,0,100,0), -- 17:14:13 +(@PATH,154,-5139.893,650.9125,36.97102,1.692638,13000,0,0,100,0), -- 17:14:13 +(@PATH,155,-5140.585,657.8174,38.23678,0,0,0,0,100,0), -- 17:14:21 +(@PATH,156,-5147.919,667.7463,41.09047,0,0,0,0,100,0), -- 17:14:24 +(@PATH,157,-5151.669,670.7463,41.34047,0,0,0,0,100,0), -- 17:14:24 +(@PATH,158,-5154.635,670.886,41.44817,0,0,0,0,100,0), -- 17:14:30 +(@PATH,159,-5157.795,664.1933,40.14152,0,0,0,0,100,0), -- 17:14:33 +(@PATH,160,-5157.795,660.6933,39.89152,0,0,0,0,100,0), -- 17:14:33 +(@PATH,161,-5161.06,651.3977,37.80369,0,0,0,0,100,0), -- 17:14:38 +(@PATH,162,-5164.019,648.2813,37.58054,0,0,0,0,100,0), -- 17:14:40 +(@PATH,163,-5165.019,647.5313,37.58054,0,0,0,0,100,0), -- 17:14:40 +(@PATH,164,-5167.769,645.2813,37.83054,0,0,0,0,100,0), -- 17:14:40 +(@PATH,165,-5171.026,643.8893,38.4648,0,0,0,0,100,0), -- 17:14:44 +(@PATH,166,-5172.276,643.3893,38.7148,0,0,0,0,100,0), -- 17:14:44 +(@PATH,167,-5173.776,642.8893,38.9648,0,0,0,0,100,0), -- 17:14:44 +(@PATH,168,-5185.981,637.8439,41.74332,0,0,0,0,100,0), -- 17:14:49 +(@PATH,169,-5189.904,636.5654,42.50515,0,0,0,0,100,0), -- 17:14:52 +(@PATH,170,-5191.154,636.3154,42.75515,0,0,0,0,100,0), -- 17:14:52 +(@PATH,171,-5197.154,634.8154,44.50515,0,0,0,0,100,0), -- 17:14:52 +(@PATH,172,-5186.579,637.4847,41.6531,0,0,0,0,100,0), -- 17:14:54 +(@PATH,173,-5186.579,637.4847,41.6531,3.542525,13000,0,0,100,0), -- 17:14:54 +(@PATH,174,-5197.299,634.7244,44.4835,0,0,0,0,100,0), -- 17:15:01 +(@PATH,175,-5203.041,634.7999,45.31844,0,0,0,0,100,0), -- 17:15:04 +(@PATH,176,-5206.041,634.7999,45.56844,0,0,0,0,100,0), -- 17:15:04 +(@PATH,177,-5209.731,634.6368,46.40524,0,0,0,0,100,0), -- 17:15:09 +(@PATH,178,-5225.014,631.6444,48.62695,0,0,0,0,100,0), -- 17:15:13 +(@PATH,179,-5226.764,630.3944,48.62695,0,0,0,0,100,0), -- 17:15:13 +(@PATH,180,-5228.514,629.1444,48.87695,0,0,0,0,100,0), -- 17:15:13 +(@PATH,181,-5229.223,628.2013,49.11297,0,0,0,0,100,0), -- 17:15:18 +(@PATH,182,-5212.107,622.3733,47.2334,0,0,0,0,100,0), -- 17:15:23 +(@PATH,183,-5210.747,621.8912,46.56211,0,0,0,0,100,0), -- 17:15:28 +(@PATH,184,-5210.747,621.8912,46.56211,6.052472,13000,0,0,100,0), -- 17:15:28 +(@PATH,185,-5208.978,621.4757,46.32497,0,0,0,0,100,0), -- 17:15:35 +(@PATH,186,-5206.209,621.2124,46.10388,0,0,0,0,100,0), -- 17:15:36 +(@PATH,187,-5186.642,619.9025,42.74264,0,0,0,0,100,0), -- 17:15:40 +(@PATH,188,-5183.583,619.2233,41.50294,0,0,0,0,100,0), -- 17:15:43 +(@PATH,189,-5180.833,618.4733,41.00294,0,0,0,0,100,0), -- 17:15:43 +(@PATH,190,-5177.333,617.9733,40.00294,0,0,0,0,100,0), -- 17:15:43 +(@PATH,191,-5164.016,617.6649,37.10645,0,0,0,0,100,0), -- 17:15:51 +(@PATH,192,-5157.269,621.1954,36.32607,0,0,0,0,100,0), -- 17:15:54 +(@PATH,193,-5155.769,622.1954,36.32607,0,0,0,0,100,0), -- 17:15:54 +(@PATH,194,-5151.916,625.7462,36.27628,0,0,0,0,100,0), -- 17:15:58 +(@PATH,195,-5146.916,630.4962,36.02628,0,0,0,0,100,0), -- 17:15:58 +(@PATH,196,-5146.043,631.5037,36.0778,0,0,0,0,100,0), -- 17:16:03 +(@PATH,197,-5143.677,634.6373,36.08821,0,0,0,0,100,0), -- 17:16:05 +(@PATH,198,-5143.677,634.6373,36.08821,0.8953364,13000,0,0,100,0); -- 17:16:05 +-- 0x1C09FC424016BE4000001900001FD78F .go -5141.078 637.8817 36.18917 + +DELETE FROM `creature_formations` WHERE `leaderGUID`=143600; +INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`) VALUES +(143600, 143600, 0, 0, 1), +(143600, 52344, 2, 0, 2); + +-- Pathing for Mine Car Entry: 23289 'TDB FORMAT' +SET @NPC := 143600; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5158.637,`position_y`=727.454,`position_z`=45.57201 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5158.637,727.454,45.57201,0,0,0,0,100,0), -- 17:09:07 +(@PATH,2,-5155.599,718.3636,44.29898,0,0,0,0,100,0), -- 17:09:09 +(@PATH,3,-5154.974,714.7401,43.48943,0,0,0,0,100,0), -- 17:09:11 +(@PATH,4,-5155.224,712.9901,43.48943,0,0,0,0,100,0), -- 17:09:11 +(@PATH,5,-5155.724,705.7401,43.23943,0,0,0,0,100,0), -- 17:09:11 +(@PATH,6,-5155.974,700.4901,42.98943,0,0,0,0,100,0), -- 17:09:11 +(@PATH,7,-5155.34,696.4957,42.45358,0,0,0,0,100,0), -- 17:09:18 +(@PATH,8,-5154.84,693.2457,42.20358,0,0,0,0,100,0), -- 17:09:18 +(@PATH,9,-5157.657,679.5804,41.46281,0,0,0,0,100,0), -- 17:09:23 +(@PATH,10,-5156.473,678.8619,41.37924,0,0,0,0,100,0), -- 17:09:27 +(@PATH,11,-5153.473,678.8619,41.62924,0,0,0,0,100,0), -- 17:09:27 +(@PATH,12,-5149.723,678.6119,41.37924,0,0,0,0,100,0), -- 17:09:27 +(@PATH,13,-5146.723,678.6119,41.62924,0,0,0,0,100,0), -- 17:09:27 +(@PATH,14,-5142.223,678.3619,41.37924,0,0,0,0,100,0), -- 17:09:27 +(@PATH,15,-5139.723,678.3619,41.37924,0,0,0,0,100,0), -- 17:09:27 +(@PATH,16,-5129.718,680.8803,40.1742,0,0,0,0,100,0), -- 17:09:38 +(@PATH,17,-5123.968,688.6303,39.4242,0,0,0,0,100,0), -- 17:09:38 +(@PATH,18,-5122.718,690.3803,39.4242,0,0,0,0,100,0), -- 17:09:38 +(@PATH,19,-5123.011,691.2361,39.35996,0,0,0,0,100,0), -- 17:09:45 +(@PATH,20,-5124.511,690.9861,39.60996,0,0,0,0,100,0), -- 17:09:45 +(@PATH,21,-5127.261,690.4861,40.35996,0,0,0,0,100,0), -- 17:09:45 +(@PATH,22,-5129.767,692.5929,40.48572,2.039433,13000,0,0,100,0), -- 17:09:50 +(@PATH,23,-5132.671,699.1042,41.48306,0,0,0,0,100,0), -- 17:09:57 +(@PATH,24,-5134.28,703.5355,41.8651,0,0,0,0,100,0), -- 17:10:00 +(@PATH,25,-5134.28,705.0355,42.1151,0,0,0,0,100,0), -- 17:10:00 +(@PATH,26,-5135.78,711.5355,42.6151,0,0,0,0,100,0), -- 17:10:00 +(@PATH,27,-5136.954,718.392,44.09182,0,0,0,0,100,0), -- 17:10:04 +(@PATH,28,-5140.083,725.0063,45.31725,0,0,0,0,100,0), -- 17:10:08 +(@PATH,29,-5146.963,732.4551,46.1476,0,0,0,0,100,0), -- 17:10:12 +(@PATH,30,-5151.213,736.2051,46.3976,0,0,0,0,100,0), -- 17:10:12 +(@PATH,31,-5156.23,735.8439,46.26311,0,0,0,0,100,0), -- 17:10:17 +(@PATH,32,-5159.73,735.3439,46.26311,0,0,0,0,100,0), -- 17:10:17 +(@PATH,33,-5161.024,735.1243,46.05744,3.305536,13000,0,0,100,0), -- 17:10:21 +(@PATH,34,-5162.643,734.8564,46.45791,0,0,0,0,100,0), -- 17:10:29 +(@PATH,35,-5158.645,727.4257,45.9726,0,0,0,0,100,0), -- 17:10:30 +(@PATH,36,-5157.451,725.0515,45.61901,0,0,0,0,100,0), -- 17:10:32 +(@PATH,37,-5156.701,722.0515,44.86901,0,0,0,0,100,0), -- 17:10:32 +(@PATH,38,-5155.451,718.5515,44.36901,0,0,0,0,100,0), -- 17:10:32 +(@PATH,39,-5155.159,714.8245,43.45316,0,0,0,0,100,0), -- 17:10:36 +(@PATH,40,-5155.159,712.8245,43.45316,0,0,0,0,100,0), -- 17:10:36 +(@PATH,41,-5155.659,705.8245,43.20316,0,0,0,0,100,0), -- 17:10:36 +(@PATH,42,-5156.159,700.5745,43.20316,0,0,0,0,100,0), -- 17:10:36 +(@PATH,43,-5155.351,696.5886,42.4476,0,0,0,0,100,0), -- 17:10:43 +(@PATH,44,-5154.851,693.3386,42.1976,0,0,0,0,100,0), -- 17:10:43 +(@PATH,45,-5157.878,679.6798,41.45091,0,0,0,0,100,0), -- 17:10:48 +(@PATH,46,-5156.542,678.974,41.3766,0,0,0,0,100,0), -- 17:10:52 +(@PATH,47,-5153.542,678.724,41.6266,0,0,0,0,100,0), -- 17:10:52 +(@PATH,48,-5150.326,678.3993,41.2695,6.244667,13000,0,0,100,0), -- 17:10:57 +(@PATH,49,-5139.679,678.0468,41.18186,0,0,0,0,100,0), -- 17:11:04 +(@PATH,50,-5129.634,680.8771,40.41336,0,0,0,0,100,0), -- 17:11:10 +(@PATH,51,-5124.134,688.6271,39.66336,0,0,0,0,100,0), -- 17:11:10 +(@PATH,52,-5122.634,690.3771,39.41336,0,0,0,0,100,0), -- 17:11:10 +(@PATH,53,-5123.205,691.313,39.34991,0,0,0,0,100,0), -- 17:11:17 +(@PATH,54,-5124.455,691.063,39.59991,0,0,0,0,100,0), -- 17:11:17 +(@PATH,55,-5127.455,690.563,40.34991,0,0,0,0,100,0), -- 17:11:17 +(@PATH,56,-5132.663,698.9817,41.54927,0,0,0,0,100,0), -- 17:11:20 +(@PATH,57,-5134.165,703.3019,41.89793,0,0,0,0,100,0), -- 17:11:25 +(@PATH,58,-5134.415,705.0519,42.14793,0,0,0,0,100,0), -- 17:11:25 +(@PATH,59,-5135.665,711.5519,42.64793,0,0,0,0,100,0), -- 17:11:25 +(@PATH,60,-5137.015,718.4344,44.11918,0,0,0,0,100,0), -- 17:11:29 +(@PATH,61,-5140.138,725.0566,45.36108,0,0,0,0,100,0), -- 17:11:33 +(@PATH,62,-5146.898,732.4678,46.15642,0,0,0,0,100,0), -- 17:11:37 +(@PATH,63,-5151.148,736.2178,46.40642,0,0,0,0,100,0), -- 17:11:37 +(@PATH,64,-5156.207,735.7999,46.2761,0,0,0,0,100,0), -- 17:11:42 +(@PATH,65,-5159.707,735.2999,46.2761,0,0,0,0,100,0), -- 17:11:42 +(@PATH,66,-5161.614,733.5115,46.41948,0,0,0,0,100,0), -- 17:11:45 +(@PATH,67,-5159.614,729.7615,45.91948,0,0,0,0,100,0), -- 17:11:45 +(@PATH,68,-5158.364,727.2615,45.66948,0,0,0,0,100,0), -- 17:11:45 +(@PATH,69,-5157.527,724.9576,45.59089,0,0,0,0,100,0), -- 17:11:50 +(@PATH,70,-5156.777,721.9576,44.84089,0,0,0,0,100,0), -- 17:11:50 +(@PATH,71,-5155.527,718.4576,44.34089,0,0,0,0,100,0), -- 17:11:50 +(@PATH,72,-5155.046,714.7384,43.62848,0,0,0,0,100,0), -- 17:11:54 +(@PATH,73,-5155.11,713.8632,43.32977,4.644619,13000,0,0,100,0), -- 17:11:56 +(@PATH,74,-5155.853,700.3505,42.94897,0,0,0,0,100,0), -- 17:12:03 +(@PATH,75,-5155.375,696.4696,42.43354,0,0,0,0,100,0), -- 17:12:08 +(@PATH,76,-5154.875,693.2196,42.18354,0,0,0,0,100,0), -- 17:12:08 +(@PATH,77,-5157.808,679.5703,41.4225,0,0,0,0,100,0), -- 17:12:13 +(@PATH,78,-5156.457,678.8987,41.37038,0,0,0,0,100,0), -- 17:12:17 +(@PATH,79,-5153.457,678.8987,41.62038,0,0,0,0,100,0), -- 17:12:17 +(@PATH,80,-5149.707,678.6487,41.37038,0,0,0,0,100,0), -- 17:12:17 +(@PATH,81,-5146.707,678.3987,41.62038,0,0,0,0,100,0), -- 17:12:17 +(@PATH,82,-5142.207,678.3987,41.37038,0,0,0,0,100,0), -- 17:12:17 +(@PATH,83,-5139.707,678.1487,41.37038,0,0,0,0,100,0), -- 17:12:17 +(@PATH,84,-5129.718,680.8611,40.35927,0,0,0,0,100,0), -- 17:12:28 +(@PATH,85,-5123.968,688.6111,39.60927,0,0,0,0,100,0), -- 17:12:28 +(@PATH,86,-5122.117,691.4048,39.21569,0,0,0,0,100,0), -- 17:12:34 +(@PATH,87,-5124.367,691.1548,39.71569,0,0,0,0,100,0), -- 17:12:34 +(@PATH,88,-5127.367,690.6548,40.21569,0,0,0,0,100,0), -- 17:12:34 +(@PATH,89,-5132.795,699.1715,41.39445,0,0,0,0,100,0), -- 17:12:37 +(@PATH,90,-5133.877,703.4885,42.01696,0,0,0,0,100,0), -- 17:12:41 +(@PATH,91,-5134.377,704.7385,42.01696,0,0,0,0,100,0), -- 17:12:41 +(@PATH,92,-5135.627,711.4885,42.76696,0,0,0,0,100,0), -- 17:12:41 +(@PATH,93,-5136.911,716.5974,43.53514,1.753501,13000,0,0,100,0), -- 17:12:50 +(@PATH,94,-5137.376,718.6188,44.1994,0,0,0,0,100,0), -- 17:12:57 +(@PATH,95,-5139.936,725.0667,45.3965,0,0,0,0,100,0), -- 17:12:58 +(@PATH,96,-5145.418,730.9333,45.83433,0,0,0,0,100,0), -- 17:13:01 +(@PATH,97,-5146.918,732.4333,46.08433,0,0,0,0,100,0), -- 17:13:01 +(@PATH,98,-5151.168,736.1833,46.33433,0,0,0,0,100,0), -- 17:13:01 +(@PATH,99,-5156.112,735.9399,46.28493,0,0,0,0,100,0), -- 17:13:06 +(@PATH,100,-5159.612,735.1899,46.28493,0,0,0,0,100,0), -- 17:13:06 +(@PATH,101,-5161.833,733.4753,46.65749,0,0,0,0,100,0), -- 17:13:10 +(@PATH,102,-5159.583,729.7253,45.90749,0,0,0,0,100,0), -- 17:13:10 +(@PATH,103,-5158.583,727.2253,45.65749,0,0,0,0,100,0), -- 17:13:10 +(@PATH,104,-5161.203,732.0187,46.14994,5.182036,13000,0,0,100,0); -- 17:13:31 +-- 0x1C09FC424016BE4000001900009FD78F .go -5158.637 727.454 45.57201 + +-- Pathing for Nethermine Burster Entry: 23285 'TDB FORMAT' +SET @NPC := 52061; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5041.84,`position_y`=389.8085,`position_z`=-12.50461 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5041.84,389.8085,-12.50461,0,0,0,0,100,0), -- 18:10:14 +(@PATH,2,-5030.222,418.1729,-10.5541,0,0,0,0,100,0), -- 18:10:30 +(@PATH,3,-5025.323,437.285,-9.860763,0,0,0,0,100,0), -- 18:10:42 +(@PATH,4,-5018.703,470.1522,-7.756811,0,0,0,0,100,0), -- 18:10:53 +(@PATH,5,-5001.123,509.9958,-5.460767,0,0,0,0,100,0), -- 18:11:05 +(@PATH,6,-4988.681,532.6278,-6.128869,0,0,0,0,100,0), -- 18:11:20 +(@PATH,7,-5005.017,551.2161,-4.296617,0,0,0,0,100,0), -- 18:11:31 +(@PATH,8,-4989.901,535.1989,-5.819852,0,0,0,0,100,0), -- 18:11:45 +(@PATH,9,-4997.614,515.9099,-5.108593,0,0,0,0,100,0), -- 18:11:55 +(@PATH,10,-5015.447,481.5337,-7.364,0,0,0,0,100,0), -- 18:12:06 +(@PATH,11,-5022.034,451.5206,-8.870285,0,0,0,0,100,0), -- 18:12:21 +(@PATH,12,-5027.991,425.6957,-10.12456,0,0,0,0,100,0); -- 18:12:33 +-- 0x1C09FC424016BD4000001A000024139A .go -5041.84 389.8085 -12.50461 + +-- Pathing for Nethermine Burster Entry: 23285 'TDB FORMAT' +SET @NPC := 52086; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5145.625,`position_y`=491.5528,`position_z`=-13.89787 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5145.625,491.5528,-13.89787,0,0,0,0,100,0), -- 18:23:20 +(@PATH,2,-5132.041,468.5541,-13.29704,0,0,0,0,100,0), -- 18:23:25 +(@PATH,3,-5110.197,448.1371,-10.01901,0,0,0,0,100,0), -- 18:23:38 +(@PATH,4,-5126.933,460.5002,-11.57316,0,0,0,0,100,0), -- 18:23:49 +(@PATH,5,-5145.124,490.6877,-13.89787,0,0,0,0,100,0); -- 18:25:03 +-- 0x1C09FC424016BD4000001A00002414A1 .go -5145.625 491.5528 -13.89787 + +-- Pathing for Nethermine Burster Entry: 23285 'TDB FORMAT' +SET @NPC := 52084; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5012.641,`position_y`=527.0723,`position_z`=-4.429356 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5012.641,527.0723,-4.429356,0,0,0,0,100,0), -- 17:53:03 +(@PATH,2,-5013.526,533.334,-4.454225,0,0,0,0,100,0), -- 17:53:03 +(@PATH,3,-5016.438,541.4922,-4.275333,0,0,0,0,100,0), -- 17:53:03 +(@PATH,4,-5017.101,543.3494,-4.186446,0,0,0,0,100,0), -- 17:53:03 +(@PATH,5,-5019.346,549.6407,-3.932599,0,0,0,0,100,0), -- 17:53:03 +(@PATH,6,-5019.346,549.6407,-3.932599,0,0,0,0,100,0), -- 17:53:03 +(@PATH,7,-5013.449,533.623,-4.201852,0,0,0,0,100,0), -- 17:53:08 +(@PATH,8,-5013.044,507.5332,-5.770618,0,0,0,0,100,0), -- 17:53:15 +(@PATH,9,-5013.313,503.3087,-6.890712,0,0,0,0,100,0), -- 17:53:38 +(@PATH,10,-5013.553,499.3347,-7.32141,0,0,0,0,100,0), -- 17:55:36 +(@PATH,11,-5013.988,492.2674,-7.856032,0,0,0,0,100,0), -- 17:55:36 +(@PATH,12,-5014.288,487.3993,-7.717823,0,0,0,0,100,0), -- 17:55:36 +(@PATH,13,-5014.653,481.4716,-7.740697,0,0,0,0,100,0), -- 17:55:36 +(@PATH,14,-5014.934,476.9202,-7.658531,0,0,0,0,100,0); -- 17:55:36 +-- 0x1C09FC424016BD4000001A000024163A .go -5012.641 527.0723 -4.429356 + +-- Pathing for Nethermine Burster Entry: 23285 'TDB FORMAT' +SET @NPC := 52054; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5097.479,`position_y`=383.4904,`position_z`=-13.35386 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5097.479,383.4904,-13.35386,0,0,0,0,100,0), -- 18:09:28 +(@PATH,2,-5105.978,382.3359,-12.87995,0,0,0,0,100,0), -- 18:09:33 +(@PATH,3,-5140.72,361.3568,-18.36172,0,0,0,0,100,0), -- 18:09:39 +(@PATH,4,-5153.877,344.0262,-19.23454,0,0,0,0,100,0), -- 18:09:54 +(@PATH,5,-5146.007,355.4137,-18.91095,0,0,0,0,100,0), -- 18:12:22 +(@PATH,6,-5145.439,356.2371,-18.91095,0,0,0,0,100,0), -- 18:12:22 +(@PATH,7,-5144.646,357.3877,-18.79898,0,0,0,0,100,0), -- 18:12:22 +(@PATH,8,-5143.475,359.0869,-18.80667,0,0,0,0,100,0), -- 18:12:22 +(@PATH,9,-5141.084,360.9994,-18.86554,0,0,0,0,100,0), -- 18:12:22 +(@PATH,10,-5138.581,363.001,-18.69712,0,0,0,0,100,0), -- 18:12:22 +(@PATH,11,-5134.565,366.2131,-17.01051,0,0,0,0,100,0), -- 18:12:22 +(@PATH,12,-5131.742,368.4709,-16.21124,0,0,0,0,100,0), -- 18:12:22 +(@PATH,13,-5130.425,369.5245,-15.74924,0,0,0,0,100,0), -- 18:12:22 +(@PATH,14,-5127.633,371.7576,-15.0621,0,0,0,0,100,0), -- 18:12:22 +(@PATH,15,-5124.102,374.582,-14.24547,0,0,0,0,100,0), -- 18:12:22 +(@PATH,16,-5117.077,380.2002,-12.9527,0,0,0,0,100,0); -- 18:12:22 +-- 0x1C09FC424016BD4000001A0000241848 .go -5097.479 383.4904 -13.35386 + +-- Pathing for Nethermine Burster Entry: 23285 'TDB FORMAT' +SET @NPC := 52083; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5142.954,`position_y`=424.2722,`position_z`=-10.0708 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5142.954,424.2722,-10.0708,0,0,0,0,100,0), -- 18:09:46 +(@PATH,2,-5166.739,417.5524,-10.24546,0,0,0,0,100,0), -- 18:09:57 +(@PATH,3,-5174.002,422.4801,-10.30893,0,0,0,0,100,0), -- 18:10:04 +(@PATH,4,-5170.584,419.3948,-10.41781,0,0,0,0,100,0), -- 18:12:22 +(@PATH,5,-5169.813,418.7582,-10.41781,0,0,0,0,100,0), -- 18:12:22 +(@PATH,6,-5168.172,417.4039,-10.38332,0,0,0,0,100,0), -- 18:12:22 +(@PATH,7,-5167.688,417.0048,-10.36478,0,0,0,0,100,0), -- 18:12:22 +(@PATH,8,-5159.976,420.4402,-10.22841,0,0,0,0,100,0), -- 18:12:22 +(@PATH,9,-5157.938,421.3475,-10.24158,0,0,0,0,100,0), -- 18:12:22 +(@PATH,10,-5154.572,422.8471,-10.04827,0,0,0,0,100,0), -- 18:12:22 +(@PATH,11,-5151.838,424.0645,-10.09287,0,0,0,0,100,0), -- 18:12:22 +(@PATH,12,-5123.059,424.4661,-11.98086,3.589592,6000,0,0,100,0); -- 18:12:39 +-- 0x1C09FC424016BD4000001A0000241877 .go -5142.954 424.2722 -10.0708 + +-- Pathing for Nethermine Burster Entry: 23285 'TDB FORMAT' +SET @NPC := 52086; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5100.122,`position_y`=472.3237,`position_z`=-8.886364 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5100.122,472.3237,-8.886364,0,0,0,0,100,0), -- 18:10:53 +(@PATH,2,-5117.763,467.3499,-11.16238,0,0,0,0,100,0), -- 18:11:04 +(@PATH,3,-5131.067,444.1735,-10.89796,0,0,0,0,100,0), -- 18:11:35 +(@PATH,4,-5132.473,440.0923,-10.73675,0,0,0,0,100,0), -- 18:11:35 +(@PATH,5,-5130.348,437.1649,-10.71613,0,0,0,0,100,0), -- 18:11:35 +(@PATH,6,-5127.024,432.5856,-11.19165,0,0,0,0,100,0), -- 18:11:35 +(@PATH,7,-5118.549,420.9109,-12.51914,0,0,0,0,100,0), -- 18:11:35 +(@PATH,8,-5088.664,403.9553,-12.69664,0,0,0,0,100,0), -- 18:11:36 +(@PATH,9,-5070.439,406.9981,-11.93173,0,0,0,0,100,0), -- 18:11:49 +(@PATH,10,-5062.364,426.8455,-11.17576,0,0,0,0,100,0), -- 18:11:58 +(@PATH,11,-5063.076,458.8389,-11.47571,0,0,0,0,100,0), -- 18:12:09 +(@PATH,12,-5067.343,465.1718,-10.02644,0,0,0,0,100,0), -- 18:12:18 +(@PATH,13,-5100.08,472.3515,-8.843109,0,0,0,0,100,0); -- 18:12:26 +-- 0x1C09FC424016BD4000001A00002418CF .go -5100.122 472.3237 -8.886364 + +-- Pathing for Nethermine Burster Entry: 23285 'TDB FORMAT' +SET @NPC := 52085; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5082.33,`position_y`=474.2946,`position_z`=-7.784039 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5082.33,474.2946,-7.784039,0,0,0,0,100,0), -- 18:09:27 +(@PATH,2,-5091.409,496.4387,-10.14975,0,0,0,0,100,0), -- 18:09:40 +(@PATH,3,-5094.309,513.0909,-11.32626,0,0,0,0,100,0), -- 18:09:50 +(@PATH,4,-5105.632,522.7634,-10.2628,0,0,0,0,100,0), -- 18:09:56 +(@PATH,5,-5107.463,534.7469,-10.20918,0,0,0,0,100,0), -- 18:10:04 +(@PATH,6,-5108.773,528.9429,-10.17007,0,0,0,0,100,0), -- 18:10:10 +(@PATH,7,-5103.452,521.2954,-10.52877,0,0,0,0,100,0), -- 18:10:12 +(@PATH,8,-5093.061,503.7095,-11.10897,0,0,0,0,100,0); -- 18:10:21 +-- 0x1C09FC424016BD4000001A0000241940 .go -5082.33 474.2946 -7.784039 + +-- Pathing for Nethermine Burster Entry: 23285 'TDB FORMAT' +SET @NPC := 52061; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5015.721,`position_y`=393.4803,`position_z`=-13.56352 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5015.721,393.4803,-13.56352,0,0,0,0,100,0), -- 17:55:20 +(@PATH,2,-5014.953,396.891,-13.21174,0,0,0,0,100,0), -- 17:55:20 +(@PATH,3,-5013.08,405.213,-12.17083,0,0,0,0,100,0), -- 17:55:20 +(@PATH,4,-5012.828,406.3322,-11.95596,0,0,0,0,100,0), -- 17:55:20 +(@PATH,5,-5010.532,416.5321,-10.48194,0,0,0,0,100,0), -- 17:55:20 +(@PATH,6,-5008.649,424.8955,-9.222077,0,0,0,0,100,0), -- 17:55:20 +(@PATH,7,-5002.781,442.213,-7.196595,0,0,0,0,100,0), -- 17:55:28 +(@PATH,8,-5001.61,460.2058,-6.495255,0,0,0,0,100,0), -- 17:55:37 +(@PATH,9,-5001.797,445.3661,-6.927022,0,0,0,0,100,0), -- 17:55:47 +(@PATH,10,-5008.122,426.1274,-8.655727,0,0,0,0,100,0), -- 17:55:55 +(@PATH,11,-5014.418,397.9655,-12.76799,0,0,0,0,100,0); -- 17:56:03 +-- 0x1C09FC424016BD4000001A00002419A9 .go -5015.721 393.4803 -13.56352 + +-- Pathing for Nethermine Burster Entry: 23285 'TDB FORMAT' +SET @NPC := 52046; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5153.807,`position_y`=343.9828,`position_z`=-19.23604 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5153.807,343.9828,-19.23604,0,0,0,0,100,0), -- 18:17:49 +(@PATH,2,-5144.604,357.4449,-18.70733,0,0,0,0,100,0), -- 18:17:59 +(@PATH,3,-5116.975,380.3215,-12.69622,0,0,0,0,100,0), -- 18:18:06 +(@PATH,4,-5102.355,382.6835,-13.05555,0,0,0,0,100,0), -- 18:18:21 +(@PATH,5,-5105.978,382.3359,-12.87995,0,0,0,0,100,0), -- 18:18:30 +(@PATH,6,-5140.741,361.2797,-18.35986,0,0,0,0,100,0); -- 18:18:37 +-- 0x1C09FC424016BD4000001A0000241F37 .go -5153.807 343.9828 -19.23604 + +-- Pathing for Nethermine Ravager Entry: 23326 'TDB FORMAT' +SET @NPC := 143827; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-4963.239,`position_y`=605.275,`position_z`=15.15399 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-4963.239,605.275,15.15399,0,0,1,0,100,0), -- 17:52:17 +(@PATH,2,-4975.903,623.7806,17.61637,0,0,1,0,100,0), -- 17:52:20 +(@PATH,3,-4992.053,634.3859,22.33038,0,0,1,0,100,0), -- 17:52:23 +(@PATH,4,-5011.415,637.7054,23.62663,0,0,1,0,100,0), -- 17:52:26 +(@PATH,5,-4998.898,635.9115,22.77191,0,0,1,0,100,0), -- 17:52:31 +(@PATH,6,-4979.864,627.016,19.21811,0,0,1,0,100,0), -- 17:52:34 +(@PATH,7,-4965.36,609.7169,16.62768,0,0,1,0,100,0), -- 17:52:37 +(@PATH,8,-4958.603,589.0837,12.97569,0,0,1,0,100,0), -- 17:52:40 +(@PATH,9,-4936.146,573.9352,7.7713,0,0,1,0,100,0), -- 17:52:44 +(@PATH,10,-4913.703,588.2379,5.505109,0,0,1,0,100,0), -- 17:52:48 +(@PATH,11,-4930.457,576.1113,6.944055,0,0,1,0,100,0), -- 17:52:53 +(@PATH,12,-4955.026,583.3227,12.02873,0,0,1,0,100,0); -- 17:52:55 +-- 0x1C09FC424016C78000001A0000241948 .go -4963.239 605.275 15.15399 + +-- Pathing for Nethermine Ravager Entry: 23326 'TDB FORMAT' +SET @NPC := 143837; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-4926.302,`position_y`=510.8232,`position_z`=5.912571 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-4926.302,510.8232,5.912571,0,0,1,0,100,0), -- 17:52:59 +(@PATH,2,-4928.601,533.3176,6.820917,0,0,1,0,100,0), -- 17:53:03 +(@PATH,3,-4939.765,552.8948,6.603627,0,0,1,0,100,0), -- 17:53:05 +(@PATH,4,-4955.232,575.6724,11.41519,0,0,1,0,100,0), -- 17:53:09 +(@PATH,5,-4946.245,562.309,8.260891,0,0,1,0,100,0), -- 17:53:14 +(@PATH,6,-4933.914,544.2485,6.190574,0,0,1,0,100,0), -- 17:53:16 +(@PATH,7,-4927.376,523.0281,7.014862,0,0,1,0,100,0), -- 17:53:20 +(@PATH,8,-4926.589,498.706,3.313521,0,0,1,0,100,0), -- 17:53:23 +(@PATH,9,-4907.33,473.4201,1.108172,0,0,1,0,100,0), -- 17:53:27 +(@PATH,10,-4885.657,466.1158,-2.15189,0,0,1,0,100,0), -- 17:53:31 +(@PATH,11,-4898.996,472.0482,0.2873805,0,0,1,0,100,0), -- 17:53:36 +(@PATH,12,-4925.863,491.4807,1.155461,0,0,1,0,100,0); -- 17:53:39 +-- 0x1C09FC424016C78000001A0000241973 .go -4926.302 510.8232 5.912571 + +-- Pathing for Nethermine Ravager Entry: 23326 'TDB FORMAT' +SET @NPC := 143848; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5009.851,`position_y`=293.1676,`position_z`=1.581649 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5009.851,293.1676,1.581649,0,0,1,0,100,0), -- 17:55:04 +(@PATH,2,-4985.909,303.3185,-1.474064,0,0,1,0,100,0), -- 17:55:10 +(@PATH,3,-4977.48,319.7932,-1.799831,0,0,1,0,100,0), -- 17:55:14 +(@PATH,4,-4965.886,351.0247,-1.16063,0,0,1,0,100,0), -- 17:55:16 +(@PATH,5,-4961.489,388.3174,-1.142369,0,0,1,0,100,0), -- 17:55:21 +(@PATH,6,-4955.736,422.718,3.013297,0,0,1,0,100,0), -- 17:55:25 +(@PATH,7,-4943.146,446.6736,1.949694,0,0,1,0,100,0), -- 17:55:32 +(@PATH,8,-4918.688,445.8087,1.470013,0,0,1,0,100,0), -- 17:55:36 +(@PATH,9,-4907.826,422.7741,-4.288939,0,0,1,0,100,0), -- 17:55:39 +(@PATH,10,-4914.044,443.4701,0.7917011,0,0,1,0,100,0), -- 17:55:45 +(@PATH,11,-4940.444,449.0392,1.663293,0,0,1,0,100,0), -- 17:55:48 +(@PATH,12,-4953.445,428.6053,3.195693,0,0,1,0,100,0), -- 17:55:51 +(@PATH,13,-4959.889,397.1684,-0.2070236,0,0,1,0,100,0), -- 17:55:55 +(@PATH,14,-4965.057,353.1042,-1.062231,0,0,1,0,100,0), -- 17:56:01 +(@PATH,15,-4974.901,325.7972,-1.889486,0,0,1,0,100,0), -- 17:56:06 +(@PATH,16,-4983.667,306.4418,-1.94701,0,0,1,0,100,0); -- 17:56:10 +-- 0x1C09FC424016C78000001A00002419DB .go -5009.851 293.1676 1.581649 + +-- Pathing for Nethermine Ravager Entry: 23326 'TDB FORMAT' +SET @NPC := 143840; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-4869.946,`position_y`=530.6263,`position_z`=-1.553467 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-4869.946,530.6263,-1.553467,0,0,1,0,100,0), -- 18:06:45 +(@PATH,2,-4893.954,534.9226,2.516688,0,0,1,0,100,0), -- 18:06:50 +(@PATH,3,-4909.314,518.1718,4.493078,0,0,1,0,100,0), -- 18:06:54 +(@PATH,4,-4901.04,531.7859,4.01936,0,0,1,0,100,0), -- 18:06:55 +(@PATH,5,-4909.218,518.321,4.623864,0,0,1,0,100,0), -- 18:07:02 +(@PATH,6,-4915.15,493.46,1.49952,0,0,1,0,100,0), -- 18:07:03 +(@PATH,7,-4928.039,454.6728,1.627107,0,0,1,0,100,0), -- 18:07:07 +(@PATH,8,-4947.842,455.957,0.743868,0,0,1,0,100,0), -- 18:07:13 +(@PATH,9,-4970.903,473.2809,3.325165,0,0,1,0,100,0), -- 18:07:16 +(@PATH,10,-4956.071,459.8573,0.461098,0,0,1,0,100,0), -- 18:07:22 +(@PATH,11,-4930.157,454.3083,1.40765,0,0,1,0,100,0), -- 18:07:25 +(@PATH,12,-4917.665,485.7419,0.5451692,0,0,1,0,100,0), -- 18:07:29 +(@PATH,13,-4910.57,514.0978,4.176438,0,0,1,0,100,0), -- 18:07:34 +(@PATH,14,-4898.185,533.2109,3.269632,0,0,1,0,100,0); -- 18:07:39 +-- 0x1C09FC424016C78000001A0000241B47 .go -4869.946 530.6263 -1.553467 + +-- Pathing for Nethermine Ravager Entry: 23326 'TDB FORMAT' +SET @NPC := 143843; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-4922.489,`position_y`=300.9247,`position_z`=-12.97113 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-4922.489,300.9247,-12.97113,0,0,1,0,100,0), -- 18:05:49 +(@PATH,2,-4940.971,300.3912,-8.783532,0,0,1,0,100,0), -- 18:05:52 +(@PATH,3,-4955.332,289.6572,-5.669093,0,0,1,0,100,0), -- 18:05:55 +(@PATH,4,-4966.683,308.9685,-3.354346,0,0,1,0,100,0), -- 18:05:57 +(@PATH,5,-4964.716,331.7885,-2.618268,0,0,1,0,100,0), -- 18:06:01 +(@PATH,6,-4955.161,358.4415,-2.649262,0,0,1,0,100,0), -- 18:06:04 +(@PATH,7,-4951.747,387.423,-2.672494,0,0,1,0,100,0), -- 18:06:08 +(@PATH,8,-4960.425,414.4815,2.96782,0,0,1,0,100,0), -- 18:06:13 +(@PATH,9,-4964.489,436.2759,3.192766,0,0,1,0,100,0), -- 18:06:16 +(@PATH,10,-4961.489,417.7344,3.296109,0,0,1,0,100,0), -- 18:06:22 +(@PATH,11,-4952.684,397.0981,-0.8431122,0,0,1,0,100,0), -- 18:06:25 +(@PATH,12,-4953.893,364.0373,-2.409762,0,0,1,0,100,0), -- 18:06:28 +(@PATH,13,-4962.485,340.8231,-2.176575,0,0,1,0,100,0), -- 18:06:33 +(@PATH,14,-4966.377,318.3596,-2.773224,0,0,1,0,100,0), -- 18:06:37 +(@PATH,15,-4960.039,292.8176,-4.731999,0,0,1,0,100,0), -- 18:13:52 +(@PATH,16,-4942.955,299.4413,-8.193456,0,0,1,0,100,0); -- 18:13:54 +-- 0x1C09FC424016C78000001A0000241B51 .go -4922.489 300.9247 -12.97113 + +-- Pathing for Nethermine Ravager Entry: 23326 'TDB FORMAT' +SET @NPC := 143850; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5061.087,`position_y`=118.9844,`position_z`=-16.32363 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5061.087,118.9844,-16.32363,0,0,1,0,100,0), -- 18:05:17 +(@PATH,2,-5067.978,134.1589,-14.4941,0,0,1,0,100,0), -- 18:05:24 +(@PATH,3,-5078.728,174.4905,-8.200466,0,0,1,0,100,0), -- 18:05:27 +(@PATH,4,-5070.809,196.4065,-8.396107,0,0,1,0,100,0), -- 18:05:32 +(@PATH,5,-5051.048,203.3381,-10.27266,0,0,1,0,100,0), -- 18:05:36 +(@PATH,6,-5030.57,208.88,-11.94103,0,0,1,0,100,0), -- 18:05:39 +(@PATH,7,-4996.729,232.7692,-7.642292,0,0,1,0,100,0), -- 18:05:43 +(@PATH,8,-4983.488,232.4408,-8.859201,0,0,1,0,100,0), -- 18:05:48 +(@PATH,9,-4990.174,233.7981,-7.773879,0,0,1,0,100,0), -- 18:05:52 +(@PATH,10,-5009.648,220.7942,-10.2113,0,0,1,0,100,0), -- 18:05:55 +(@PATH,11,-5009.046,223.3424,-9.788197,0,0,1,0,100,0), -- 18:05:58 +(@PATH,12,-5018.983,212.046,-11.68377,0,0,1,0,100,0), -- 18:06:06 +(@PATH,13,-5031.654,208.8046,-11.78926,0,0,1,0,100,0), -- 18:06:07 +(@PATH,14,-5076.621,183.3736,-8.145866,0,0,1,0,100,0), -- 18:13:57 +(@PATH,15,-5072.223,144.1562,-12.73046,0,0,1,0,100,0), -- 18:13:58 +(@PATH,16,-5061.066,119.1013,-16.51242,0,0,1,0,100,0); -- 18:14:04 +-- 0x1C09FC424016C78000001A0000241C27 .go -5061.087 118.9844 -16.32363 + +-- Pathing for Nethermine Ravager Entry: 23326 'TDB FORMAT' +SET @NPC := 143859; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-5052.252,`position_y`=176.8827,`position_z`=-11.95231 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-5052.252,176.8827,-11.95231,0,0,1,0,100,0), -- 18:05:07 +(@PATH,2,-5021.2,157.3062,-14.11822,0,0,1,0,100,0), -- 18:05:11 +(@PATH,3,-5001.049,161.8789,-14.45323,0,0,1,0,100,0), -- 18:05:15 +(@PATH,4,-5016.269,157.2713,-14.45587,0,0,1,0,100,0), -- 18:05:21 +(@PATH,5,-5046.272,166.7962,-12.9523,0,0,1,0,100,0), -- 18:05:23 +(@PATH,6,-5051.284,187.3221,-11.84302,0,0,1,0,100,0), -- 18:05:29 +(@PATH,7,-5035.34,209.7333,-11.41766,0,0,1,0,100,0), -- 18:05:32 +(@PATH,8,-5024.802,236.1987,-6.399595,0,0,1,0,100,0), -- 18:05:35 +(@PATH,9,-5015.809,258.2852,-1.012123,0,0,1,0,100,0), -- 18:05:40 +(@PATH,10,-5023.006,240.032,-4.77902,0,0,1,0,100,0), -- 18:05:45 +(@PATH,11,-5030.113,221.3788,-9.224751,0,0,1,0,100,0), -- 18:05:47 +(@PATH,12,-5049.056,197.9744,-11.1133,0,0,1,0,100,0); -- 18:05:52 +-- 0x1C09FC424016C78000001A0000241C47 .go -5052.252 176.8827 -11.95231 diff --git a/sql/updates/world/2015_04_11_02_world.sql b/sql/updates/world/2015_04_11_02_world.sql new file mode 100644 index 00000000000..8e8d850bb17 --- /dev/null +++ b/sql/updates/world/2015_04_11_02_world.sql @@ -0,0 +1,2 @@ +UPDATE `smart_scripts` SET `event_flags`=0 WHERE `entryorguid`=25310 AND `source_type`=0 AND `id`=0; +UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid` IN (24009, 24010) AND `source_type`=0 AND `id`=1; diff --git a/sql/updates/world/2015_04_11_03_world.sql b/sql/updates/world/2015_04_11_03_world.sql new file mode 100644 index 00000000000..e2f0d055e3b --- /dev/null +++ b/sql/updates/world/2015_04_11_03_world.sql @@ -0,0 +1,6 @@ +-- Fix for quest ID 5561, Kodo Roundup +-- Add the missing link between npc_text and gossip_menu_id : +DELETE FROM `gossip_menu` WHERE `entry`=3650 AND `text_id`=4449; +INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES (3650, 4449); +-- Link the npc_text from gossip_menu: +UPDATE `creature_template` SET `gossip_menu_id`=3650 WHERE `entry`=11627; diff --git a/sql/updates/world/2015_04_12_01_world.sql b/sql/updates/world/2015_04_12_01_world.sql new file mode 100644 index 00000000000..527d453fe2e --- /dev/null +++ b/sql/updates/world/2015_04_12_01_world.sql @@ -0,0 +1,2 @@ +-- Correction to creature template for 11466 Highbourne Summoner (Shen'dralar) +UPDATE `creature_template` SET `faction`=1355 WHERE `entry`=11466; diff --git a/sql/updates/world/2015_04_12_02_world.sql b/sql/updates/world/2015_04_12_02_world.sql new file mode 100644 index 00000000000..6c885b61505 --- /dev/null +++ b/sql/updates/world/2015_04_12_02_world.sql @@ -0,0 +1,211 @@ +-- Adds pathing for Lieutenant Valorcall and his guards +-- Path is between Stromgarde Keep, Arathi and Refuge Point, Arathi (and back) +-- NPCs are always spawned (unless killed) since there was no confirmation otherwise +-- +-- NOTES: +-- * Valorcall is for Horde quest "Sigil of Arathor" (http://www.wowhead.com/quest=26032) +-- * It is proper that Valorcall will occasionally fight with the Forsaken Courier when their patrols cross. +-- Adjusted respawn allows for players to complete related quests. +-- * Could not confirm if NPC is only spawned when a player accepts the quest or is always spawned. Will require +-- c++ script if "quest accept" causes spawn / pathing. +-- * Could not confirm if NPC despawns once destination is reached or returns to spawn. + +-- Lieutenant Valorcall +SET @npcLeaderId=14572; + +-- Stromgarde Cavalryman +SET @npcFollowerId_1=14574; +SET @npcFollowerId_2=14575; +SET @wpPathId=(@npcLeaderId * 10); + +-- Fix spawn info in Arathi Highlands +-- NOTE: Changed respawn to 1 minute because Valorcall is a quest NPC that can enter combat with (killed by) +-- Forsaken Courier (another quest NPC) when their paths cross (which happens occasionally). Also, quest +-- research turned up comments that indicated these NPCs have a fast respawn. + +DELETE FROM `creature` WHERE `guid` IN (@npcLeaderId,@npcFollowerId_1,@npcFollowerId_2); + +INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES +(@npcLeaderId,2612,0,0,0,1,1,4141,1,-1528.313843,-1843.296265,67.789253,1.530442,400,0,1,1135,1779,2,0,0,0,0), +(@npcFollowerId_1,2738,0,0,0,1,1,4145,1,-1525.899780,-1845.876465,67.764687,1.530442,400,0,0,958,0,0,0,0,0,0), +(@npcFollowerId_2,2738,0,0,0,1,1,4145,1,-1531.197144,-1845.848755,67.875923,1.530442,400,0,0,958,0,0,0,0,0,0); + +-- Delete existing waypoints (if any) +DELETE FROM `waypoint_data` WHERE `id`=@wpPathId; + +-- Add new waypoints +-- NOTE: It is unclear if the NPC should despawn when reaching the end of the path. For now, just have it pause +-- at end before starting the path back. + +INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES +(@wpPathId,1,-1528.31,-1843.30,67.79,1.530442,60000,0,0,100,0), -- 1 minute delay before starting +(@wpPathId,2,-1528.23,-1824.05,68.34,0,0,0,0,100,0), +(@wpPathId,3,-1528.32,-1820.46,68.9602,0,0,0,0,100,0), +(@wpPathId,4,-1528.37,-1818.28,69.5115,0,0,0,0,100,0), +(@wpPathId,5,-1528.64,-1808.76,71.3902,0,0,0,0,100,0), +(@wpPathId,6,-1528.77,-1800.37,71.2294,0,0,0,0,100,0), +(@wpPathId,7,-1528.82,-1795.04,70.1311,0,0,0,0,100,0), +(@wpPathId,8,-1528.84,-1793.37,69.5099,0,0,0,0,100,0), +(@wpPathId,9,-1528.87,-1790.61,68.9584,0,0,0,0,100,0), +(@wpPathId,10,-1528.82,-1785.05,68.3404,0,0,0,0,100,0), +(@wpPathId,11,-1527.51,-1762.21,67.0403,0,0,0,0,100,0), +(@wpPathId,12,-1529.35,-1746.33,66.8509,0,0,0,0,100,0), +(@wpPathId,13,-1529.5,-1732.3,66.2708,0,0,0,0,100,0), +(@wpPathId,14,-1539.93,-1714.01,66.363,0,0,0,0,100,0), +(@wpPathId,15,-1555.47,-1702.87,66.1763,0,0,0,0,100,0), +(@wpPathId,16,-1570.19,-1696.83,66.2239,0,0,0,0,100,0), +(@wpPathId,17,-1576.23,-1695.24,65.9776,0,0,0,0,100,0), +(@wpPathId,18,-1581.84,-1696.44,66.1376,0,0,0,0,100,0), +(@wpPathId,19,-1584.78,-1700.91,66.5301,0,0,0,0,100,0), +(@wpPathId,20,-1586.19,-1710.78,66.9607,0,0,0,0,100,0), +(@wpPathId,21,-1586.08,-1728.19,67.4567,0,0,0,0,100,0), +(@wpPathId,22,-1582.99,-1743.81,66.8545,0,0,0,0,100,0), +(@wpPathId,23,-1577.8,-1763.7,67.0782,0,0,0,0,100,0), +(@wpPathId,24,-1576.49,-1777.64,67.2815,0,0,0,0,100,0), +(@wpPathId,25,-1574.01,-1787.45,67.1901,0,0,0,0,100,0), +(@wpPathId,26,-1565.38,-1798.76,67.5678,0,0,0,0,100,0), +(@wpPathId,27,-1557.03,-1803.77,67.5158,0,0,0,0,100,0), +(@wpPathId,28,-1540,-1805.78,66.432,0,0,0,0,100,0), +(@wpPathId,29,-1513.43,-1805.73,66.1469,0,0,0,0,100,0), +(@wpPathId,30,-1490.95,-1805.66,68.0658,0,0,0,0,100,0), +(@wpPathId,31,-1466.56,-1803.87,67.7702,0,0,0,0,100,0), +(@wpPathId,32,-1452.87,-1800.94,65.4412,0,0,0,0,100,0), +(@wpPathId,33,-1438.86,-1799.91,61.945,0,0,0,0,100,0), +(@wpPathId,34,-1425.38,-1803.61,60.9587,0,0,0,0,100,0), +(@wpPathId,35,-1395.89,-1814.67,59.1394,0,0,0,0,100,0), +(@wpPathId,36,-1363.65,-1828.28,60.0694,0,0,0,0,100,0), +(@wpPathId,37,-1337.27,-1839.82,62.1984,0,0,0,0,100,0), +(@wpPathId,38,-1330.7,-1845.84,62.5435,0,0,0,0,100,0), +(@wpPathId,39,-1328.27,-1851.3,62.5249,0,0,0,0,100,0), +(@wpPathId,40,-1329.52,-1861.33,62.0214,0,0,0,0,100,0), +(@wpPathId,41,-1342.83,-1896.34,59.2707,0,0,0,0,100,0), +(@wpPathId,42,-1358.08,-1935.47,58.4276,0,0,0,0,100,0), +(@wpPathId,43,-1375.19,-1977.63,58.5289,0,0,0,0,100,0), +(@wpPathId,44,-1381.06,-2026.16,60.5442,0,0,0,0,100,0), +(@wpPathId,45,-1383.41,-2071.59,62.5124,0,0,0,0,100,0), +(@wpPathId,46,-1386.02,-2110,64.2494,0,0,0,0,100,0), +(@wpPathId,47,-1393.31,-2158.42,64.1111,0,0,0,0,100,0), +(@wpPathId,48,-1404.24,-2206.13,63.8535,0,0,0,0,100,0), +(@wpPathId,49,-1417.1,-2243.68,63.7514,0,0,0,0,100,0), +(@wpPathId,50,-1420.49,-2249.98,63.6904,0,0,0,0,100,0), +(@wpPathId,51,-1430.49,-2263.3,63.329,0,0,0,0,100,0), +(@wpPathId,52,-1441.13,-2277.2,62.7836,0,0,0,0,100,0), +(@wpPathId,53,-1446.84,-2287.53,61.9325,0,0,0,0,100,0), +(@wpPathId,54,-1449.19,-2299.55,61.8796,0,0,0,0,100,0), +(@wpPathId,55,-1449.73,-2327.53,61.7191,0,0,0,0,100,0), +(@wpPathId,56,-1450.03,-2355.53,61.5528,0,0,0,0,100,0), +(@wpPathId,57,-1450.15,-2380.03,61.4055,0,0,0,0,100,0), +(@wpPathId,58,-1450.49,-2397.53,61.0555,0,0,0,0,100,0), +(@wpPathId,59,-1453.92,-2410.52,60.03,0,0,0,0,100,0), +(@wpPathId,60,-1464.35,-2426.89,57.8205,0,0,0,0,100,0), +(@wpPathId,61,-1462.44,-2436.38,58.0342,0,0,0,0,100,0), +(@wpPathId,62,-1453.73,-2438.5,58.342,0,0,0,0,100,0), +(@wpPathId,63,-1440.72,-2440.2,58.9664,0,0,0,0,100,0), +(@wpPathId,64,-1424.83,-2453.5,59.0382,0,0,0,0,100,0), +(@wpPathId,65,-1412.62,-2462.65,57.2066,0,0,0,0,100,0), +(@wpPathId,66,-1396.91,-2462.16,57.0177,0,0,0,0,100,0), +(@wpPathId,67,-1380.78,-2455.37,55.0267,0,0,0,0,100,0), +(@wpPathId,68,-1364.89,-2450.51,52.0455,0,0,0,0,100,0), +(@wpPathId,69,-1351.11,-2448.04,49.9138,0,0,0,0,100,0), +(@wpPathId,70,-1336.2,-2448.68,46.4684,0,0,0,0,100,0), +(@wpPathId,71,-1319.9,-2455.01,43.1772,0,0,0,0,100,0), +(@wpPathId,72,-1304.21,-2462.75,39.1337,0,0,0,0,100,0), +(@wpPathId,73,-1289.01,-2471.38,33.4891,0,0,0,0,100,0), +(@wpPathId,74,-1275.46,-2482.79,26.7595,0,0,0,0,100,0), +(@wpPathId,75,-1267.01,-2493.63,22.4559,0,0,0,0,100,0), +(@wpPathId,76,-1254.69,-2512.44,20.5413,0,0,0,0,100,0), +(@wpPathId,77,-1250.21,-2521.37,20.4269,0,0,0,0,100,0), +(@wpPathId,78,-1246.19,-2529.78,20.6058,0,0,0,0,100,0), +(@wpPathId,79,-1242.05,-2535.15,21.0179,0,0,0,0,100,0), +(@wpPathId,80,-1242.99,-2526.84,20.9146,0,0,0,0,100,0), +(@wpPathId,81,-1250.83,-2520.96,20.426,0,60000,0,0,100,0), -- destination reached, 1 minute delay before pathing back +(@wpPathId,82,-1254.85,-2513.19,20.5112,0,0,0,0,100,0), +(@wpPathId,83,-1267.24,-2493.93,22.3988,0,0,0,0,100,0), +(@wpPathId,84,-1273.85,-2485.78,25.5707,0,0,0,0,100,0), +(@wpPathId,85,-1289.24,-2471.59,33.4718,0,0,0,0,100,0), +(@wpPathId,86,-1303.98,-2462.99,39.0339,0,0,0,0,100,0), +(@wpPathId,87,-1316.64,-2457,42.604,0,0,0,0,100,0), +(@wpPathId,88,-1335.67,-2449.4,46.2431,0,0,0,0,100,0), +(@wpPathId,89,-1349.51,-2448.47,49.503,0,0,0,0,100,0), +(@wpPathId,90,-1363.26,-2451.05,51.8257,0,0,0,0,100,0), +(@wpPathId,91,-1379.15,-2455.53,54.7104,0,0,0,0,100,0), +(@wpPathId,92,-1395.58,-2461.5,57.1067,0,0,0,0,100,0), +(@wpPathId,93,-1411.2,-2463.61,56.9774,0,0,0,0,100,0), +(@wpPathId,94,-1424.18,-2454.31,59.0152,0,0,0,0,100,0), +(@wpPathId,95,-1440.89,-2442.08,58.7537,0,0,0,0,100,0), +(@wpPathId,96,-1452.92,-2439.49,58.3243,0,0,0,0,100,0), +(@wpPathId,97,-1461.72,-2436.45,58.0823,0,0,0,0,100,0), +(@wpPathId,98,-1463.37,-2427.9,57.8549,0,0,0,0,100,0), +(@wpPathId,99,-1454.66,-2411.75,59.8753,0,0,0,0,100,0), +(@wpPathId,100,-1451.1,-2399.07,60.9648,0,0,0,0,100,0), +(@wpPathId,101,-1450.14,-2381.61,61.3911,0,0,0,0,100,0), +(@wpPathId,102,-1450.12,-2357.11,61.5426,0,0,0,0,100,0), +(@wpPathId,103,-1449.95,-2329.11,61.7066,0,0,0,0,100,0), +(@wpPathId,104,-1449.43,-2301.13,61.84,0,0,0,0,100,0), +(@wpPathId,105,-1446.58,-2287.66,61.9711,0,0,0,0,100,0), +(@wpPathId,106,-1442.44,-2279.13,62.5159,0,0,0,0,100,0), +(@wpPathId,107,-1431.93,-2265.15,63.3205,0,0,0,0,100,0), +(@wpPathId,108,-1421.36,-2251.22,63.6684,0,0,0,0,100,0), +(@wpPathId,109,-1418.07,-2245.04,63.7351,0,0,0,0,100,0), +(@wpPathId,110,-1405.35,-2208.74,63.8461,0,0,0,0,100,0), +(@wpPathId,111,-1394.01,-2161.12,64.1057,0,0,0,0,100,0), +(@wpPathId,112,-1386.65,-2112.7,64.4159,0,0,0,0,100,0), +(@wpPathId,113,-1383.82,-2074.31,62.6099,0,0,0,0,100,0), +(@wpPathId,114,-1381.54,-2028.88,60.6584,0,0,0,0,100,0), +(@wpPathId,115,-1375.91,-1979.41,58.5366,0,0,0,0,100,0), +(@wpPathId,116,-1358.95,-1937.19,58.4249,0,0,0,0,100,0), +(@wpPathId,117,-1343.72,-1898.05,59.126,0,0,0,0,100,0), +(@wpPathId,118,-1329.89,-1863.08,61.9069,0,0,0,0,100,0), +(@wpPathId,119,-1328.35,-1850.86,62.5391,0,0,0,0,100,0), +(@wpPathId,120,-1330.65,-1846.29,62.5257,0,0,0,0,100,0), +(@wpPathId,121,-1335.96,-1841.73,62.249,0,0,0,0,100,0), +(@wpPathId,122,-1361.59,-1829.16,60.2512,0,0,0,0,100,0), +(@wpPathId,123,-1393.84,-1815.58,59.0036,0,0,0,0,100,0), +(@wpPathId,124,-1423.47,-1804.92,60.7771,0,0,0,0,100,0), +(@wpPathId,125,-1438.32,-1800.12,61.8788,0,0,0,0,100,0), +(@wpPathId,126,-1450.61,-1800.69,64.7219,0,0,0,0,100,0), +(@wpPathId,127,-1464.33,-1803.5,67.6348,0,0,0,0,100,0), +(@wpPathId,128,-1488.18,-1805.87,68.074,0,0,0,0,100,0), +(@wpPathId,129,-1512.68,-1805.73,66.2104,0,0,0,0,100,0), +(@wpPathId,130,-1537.17,-1805.95,66.1776,0,0,0,0,100,0), +(@wpPathId,131,-1557.65,-1804.11,67.4839,0,0,0,0,100,0), +(@wpPathId,132,-1565.61,-1798.65,67.5617,0,0,0,0,100,0), +(@wpPathId,133,-1574.15,-1787.07,67.1787,0,0,0,0,100,0), +(@wpPathId,134,-1576.5,-1778.67,67.2749,0,0,0,0,100,0), +(@wpPathId,135,-1578.05,-1765.2,67.1097,0,0,0,0,100,0), +(@wpPathId,136,-1582.3,-1746.61,66.6746,0,0,0,0,100,0), +(@wpPathId,137,-1585.78,-1729.49,67.4793,0,0,0,0,100,0), +(@wpPathId,138,-1586.16,-1712.03,67.0329,0,0,0,0,100,0), +(@wpPathId,139,-1584.72,-1701.41,66.5389,0,0,0,0,100,0), +(@wpPathId,140,-1581.69,-1696.92,66.1604,0,0,0,0,100,0), +(@wpPathId,141,-1576.71,-1695.36,65.9892,0,0,0,0,100,0), +(@wpPathId,142,-1570.6,-1696.58,66.1985,0,0,0,0,100,0), +(@wpPathId,143,-1555.01,-1703.09,66.1586,0,0,0,0,100,0), +(@wpPathId,144,-1540.2,-1714.01,66.3447,0,0,0,0,100,0), +(@wpPathId,145,-1529.35,-1731.15,66.2182,0,0,0,0,100,0), +(@wpPathId,146,-1529.12,-1745.12,66.8033,0,0,0,0,100,0), +(@wpPathId,147,-1527.21,-1763.24,67.0823,0,0,0,0,100,0), +(@wpPathId,148,-1528.8,-1786.19,68.3406,0,0,0,0,100,0), +(@wpPathId,149,-1528.78,-1791.07,68.9602,0,0,0,0,100,0), +(@wpPathId,150,-1528.77,-1793.2,69.5115,0,0,0,0,100,0), +(@wpPathId,151,-1528.76,-1795.29,70.1611,0,0,0,0,100,0), +(@wpPathId,152,-1528.74,-1800.29,71.2228,0,0,0,0,100,0), +(@wpPathId,153,-1528.67,-1807.79,71.4654,0,0,0,0,100,0), +(@wpPathId,154,-1528.38,-1819.6,68.9567,0,0,0,0,100,0), +(@wpPathId,155,-1528.32,-1822.06,68.3404,0,0,0,0,100,0), +(@wpPathId,156,-1528.25,-1824.82,68.3404,0,0,0,0,100,0), +(@wpPathId,157,-1528.2,-1828.96,68.0658,0,0,0,0,100,0), +(@wpPathId,158,-1533.15,-1841.45,68.09,0,0,0,0,100,0), +(@wpPathId,159,-1528.19,-1853.83,67.62,0,0,0,0,100,0), +(@wpPathId,160,-1528.31,-1843.30,67.79,1.530442,0,0,0,100,0); -- ends at same coords as WP 1 + +-- Assign path and formation info +DELETE FROM `creature_formations` WHERE `leaderGUID`=@npcLeaderId; +INSERT INTO creature_formations (`leaderGUID`,`memberGUID`,`dist`,`angle`,`groupAI`,`point_1`,`point_2`) VALUES +(@npcLeaderId,@npcLeaderId,0,0,2,0,0), +(@npcLeaderId,@npcFollowerId_1,3,45,2,0,0), -- slightly behind and to the right +(@npcLeaderId,@npcFollowerId_2,3,315,2,0,0); -- slightly behind and to the left + +DELETE FROM `creature_addon` WHERE `guid`=@npcLeaderId; +INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES +(@npcLeaderId,@wpPathId,229,0,4097,0,NULL); diff --git a/sql/updates/world/2015_04_12_03_world.sql b/sql/updates/world/2015_04_12_03_world.sql new file mode 100644 index 00000000000..619e48341ac --- /dev/null +++ b/sql/updates/world/2015_04_12_03_world.sql @@ -0,0 +1,392 @@ +-- Adds pathing for Forsaken Courier and her guards +-- Path is between GoShek Farm, Arathi and Tarren Mill, Hillsbrad (and back) +-- NPCs are always spawned (unless killed) since there was no confirmation otherwise +-- +-- NOTES: +-- * Forsaken Courier is for Alliance quest "Hints of a New Plague" (http://www.wowhead.com/quest=658) +-- * It is proper that the Courier will occasionally fight with the Lieutenant Valorcall when their patrols cross. +-- Adjusted respawn allows for players to complete related quests. +-- * Could not confirm if NPC is only spawned when a player accepts the quest or is always spawned. Will require +-- c++ script if "quest accept" causes spawn / pathing. +-- * Could not confirm if NPC despawns once destination is reached or returns to spawn. + +-- Forsaken Courier +SET @npcLeaderId=14772; + +-- Forsaken Bodyguard +SET @npcFollowerId_1=14773; +SET @npcFollowerId_2=14774; +SET @npcFollowerId_3=14775; +SET @npcFollowerId_4=14776; +SET @wpPathId=(@npcLeaderId * 10); + +-- Delete duplicate spawns in Hillsbrad +-- NOTE: The only records that should be present are `creature` but including the others just in case +DELETE FROM `creature` WHERE `guid` IN (16397,16402,16400,16399,16398); +DELETE FROM `creature_addon` WHERE `guid` IN (16397,16402,16400,16399,16398); +DELETE FROM `creature_formations` WHERE `leaderGUID` IN (16397,16402,16400,16399,16398); +DELETE FROM `waypoint_data` WHERE `id` IN (163970,164020,164000,163990,163980); + +-- Fix spawn info in Arathi Highlands +-- NOTE: The patrol is supposed to spawn here when a particular quest is accepted, needs core script +-- NOTE: Changed respawn to 1 minute because the Courier is a quest NPC that can enter combat with (killed by) +-- Lieutenant Valorcall (another quest NPC) when their paths cross (which happens occasionally). Also, quest +-- research turned up comments that indicated these NPCs have a fast respawn. + +DELETE FROM `creature` WHERE `guid` IN (@npcLeaderId,@npcFollowerId_1,@npcFollowerId_2,@npcFollowerId_3,@npcFollowerId_4); + +INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES +(@npcLeaderId,2714,0,0,0,1,1,4041,1,-1552.426758,-3029.310791,13.644809,5.009628,60,0,1,1342,0,2,0,0,0,0), +(@npcFollowerId_1,2721,0,0,0,1,1,4037,1,-1551.740601,-3031.641846,13.644809,5.009628,60,0,0,610,0,0,0,0,0,0), +(@npcFollowerId_2,2721,0,0,0,1,1,4037,1,-1554.400024,-3029.450928,13.644809,5.009628,60,0,0,610,0,0,0,0,0,0), +(@npcFollowerId_3,2721,0,0,0,1,1,4038,1,-1553.325195,-3026.489502,13.644809,5.009628,60,0,0,610,0,0,0,0,0,0), +(@npcFollowerId_4,2721,0,0,0,1,1,4037,1,-1550.339844,-3028.255859,13.644809,5.009628,60,0,0,610,0,0,0,0,0,0); + +-- Delete existing waypoints (if any) +DELETE FROM `waypoint_data` WHERE `id`=@wpPathId; + +-- Add new waypoints +-- NOTE: It is unclear if the NPC should despawn when reaching the end of the path. For now, just have it pause +-- at end before starting the path back. + +INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES +(@wpPathId,1,-1552.43,-3029.31,13.6448,5.009628,60000,0,0,100,0), -- 1 minute delay before starting +(@wpPathId,2,-1551.28,-3042.15,12.9831,0,0,0,0,100,0), +(@wpPathId,3,-1551.47,-3055.87,13.0074,0,0,0,0,100,0), +(@wpPathId,4,-1557.96,-3065.89,13.2017,0,0,0,0,100,0), +(@wpPathId,5,-1568.38,-3066.59,13.1757,0,0,0,0,100,0), +(@wpPathId,6,-1584.38,-3059.72,12.8479,0,0,0,0,100,0), +(@wpPathId,7,-1604.79,-3043.72,14.9377,0,0,0,0,100,0), +(@wpPathId,8,-1633.49,-3013.09,19.2308,0,0,0,0,100,0), +(@wpPathId,9,-1640.02,-3004.89,20.9252,0,0,0,0,100,0), +(@wpPathId,10,-1645.71,-2989.32,23.6772,0,0,0,0,100,0), +(@wpPathId,11,-1645.99,-2971.86,26.3366,0,0,0,0,100,0), +(@wpPathId,12,-1643.19,-2959.2,27.7,0,0,0,0,100,0), +(@wpPathId,13,-1639.09,-2945.82,28.5385,0,0,0,0,100,0), +(@wpPathId,14,-1637.73,-2933.3,28.1553,0,0,0,0,100,0), +(@wpPathId,15,-1641.84,-2916.34,26.7999,0,0,0,0,100,0), +(@wpPathId,16,-1644.03,-2901.64,26.299,0,0,0,0,100,0), +(@wpPathId,17,-1639.03,-2885.94,27.6014,0,0,0,0,100,0), +(@wpPathId,18,-1631.71,-2866.27,30.2701,0,0,0,0,100,0), +(@wpPathId,19,-1625.44,-2842.61,32.2295,0,0,0,0,100,0), +(@wpPathId,20,-1621.03,-2822.09,33.6745,0,0,0,0,100,0), +(@wpPathId,21,-1617.7,-2804.91,34.6386,0,0,0,0,100,0), +(@wpPathId,22,-1612.97,-2777.32,36.1324,0,0,0,0,100,0), +(@wpPathId,23,-1610.07,-2756.52,37.2584,0,0,0,0,100,0), +(@wpPathId,24,-1606.39,-2739.47,37.6036,0,0,0,0,100,0), +(@wpPathId,25,-1598.18,-2724.09,37.1732,0,0,0,0,100,0), +(@wpPathId,26,-1586.96,-2710.69,36.1226,0,0,0,0,100,0), +(@wpPathId,27,-1572.97,-2695.7,34.6664,0,0,0,0,100,0), +(@wpPathId,28,-1564.09,-2685.41,35.4253,0,0,0,0,100,0), +(@wpPathId,29,-1557.93,-2669.06,36.761,0,0,0,0,100,0), +(@wpPathId,30,-1555.19,-2641.25,41.3576,0,0,0,0,100,0), +(@wpPathId,31,-1555.73,-2620.27,45.0843,0,0,0,0,100,0), +(@wpPathId,32,-1557.22,-2604.89,47.8118,0,0,0,0,100,0), +(@wpPathId,33,-1562.1,-2591.78,48.5331,0,0,0,0,100,0), +(@wpPathId,34,-1567.06,-2571.43,49.3074,0,0,0,0,100,0), +(@wpPathId,35,-1567.62,-2550.48,50.7276,0,0,0,0,100,0), +(@wpPathId,36,-1561.84,-2530.37,52.0972,0,0,0,0,100,0), +(@wpPathId,37,-1555.6,-2517.85,53.143,0,0,0,0,100,0), +(@wpPathId,38,-1550.4,-2506.83,53.9067,0,0,0,0,100,0), +(@wpPathId,39,-1544.74,-2495.89,54.115,0,0,0,0,100,0), +(@wpPathId,40,-1537.25,-2488.54,53.6039,0,0,0,0,100,0), +(@wpPathId,41,-1521.28,-2474.91,53.2915,0,0,0,0,100,0), +(@wpPathId,42,-1505.08,-2461.55,52.9902,0,0,0,0,100,0), +(@wpPathId,43,-1491.57,-2450.42,53.6645,0,0,0,0,100,0), +(@wpPathId,44,-1473.67,-2435,56.438,0,0,0,0,100,0), +(@wpPathId,45,-1458.8,-2420.24,58.7543,0,0,0,0,100,0), +(@wpPathId,46,-1451.61,-2406.21,60.4971,0,0,0,0,100,0), +(@wpPathId,47,-1450.24,-2390.07,61.2988,0,0,0,0,100,0), +(@wpPathId,48,-1449.98,-2369.08,61.4719,0,0,0,0,100,0), +(@wpPathId,49,-1450.01,-2348.08,61.5948,0,0,0,0,100,0), +(@wpPathId,50,-1450.28,-2327.09,61.7184,0,0,0,0,100,0), +(@wpPathId,51,-1449.22,-2302.62,61.8278,0,0,0,0,100,0), +(@wpPathId,52,-1445.48,-2285.57,62.1128,0,0,0,0,100,0), +(@wpPathId,53,-1438.68,-2273.44,63.0625,0,0,0,0,100,0), +(@wpPathId,54,-1427.75,-2259.8,63.363,0,0,0,0,100,0), +(@wpPathId,55,-1417.94,-2245.39,63.7294,0,0,0,0,100,0), +(@wpPathId,56,-1411.22,-2229.24,63.7811,0,0,0,0,100,0), +(@wpPathId,57,-1406.21,-2212.48,63.8356,0,0,0,0,100,0), +(@wpPathId,58,-1399.67,-2185.27,63.9419,0,0,0,0,100,0), +(@wpPathId,59,-1395.07,-2161.21,64.1007,0,0,0,0,100,0), +(@wpPathId,60,-1388.98,-2130.31,64.2996,0,0,0,0,100,0), +(@wpPathId,61,-1385.75,-2095.48,63.6847,0,0,0,0,100,0), +(@wpPathId,62,-1383.99,-2067.53,62.3167,0,0,0,0,100,0), +(@wpPathId,63,-1381.89,-2032.6,60.8356,0,0,0,0,100,0), +(@wpPathId,64,-1379.07,-2001.23,59.3176,0,0,0,0,100,0), +(@wpPathId,65,-1376.39,-1980.42,58.542,0,0,0,0,100,0), +(@wpPathId,66,-1373.23,-1970.43,58.49,0,0,0,0,100,0), +(@wpPathId,67,-1362.48,-1944.58,58.4418,0,0,0,0,100,0), +(@wpPathId,68,-1350.37,-1915.5,58.3884,0,0,0,0,100,0), +(@wpPathId,69,-1338.43,-1882.6,60.3171,0,0,0,0,100,0), +(@wpPathId,70,-1329.51,-1856.07,62.228,0,0,0,0,100,0), +(@wpPathId,71,-1325.86,-1842.56,63.0927,0,0,0,0,100,0), +(@wpPathId,72,-1316,-1825.72,64.4425,0,0,0,0,100,0), +(@wpPathId,73,-1306.65,-1815.35,65.3555,0,0,0,0,100,0), +(@wpPathId,74,-1289.41,-1803.39,66.6877,0,0,0,0,100,0), +(@wpPathId,75,-1261.87,-1788.14,66.6785,0,0,0,0,100,0), +(@wpPathId,76,-1249.45,-1783.07,65.8931,0,0,0,0,100,0), +(@wpPathId,77,-1238.49,-1775.65,64.62,0,0,0,0,100,0), +(@wpPathId,78,-1215.06,-1754.6,60.4524,0,0,0,0,100,0), +(@wpPathId,79,-1194.54,-1735.55,57.2315,0,0,0,0,100,0), +(@wpPathId,80,-1172.04,-1719.07,54.128,0,0,0,0,100,0), +(@wpPathId,81,-1159.31,-1713.28,52.2178,0,0,0,0,100,0), +(@wpPathId,82,-1139.35,-1706.8,48.8841,0,0,0,0,100,0), +(@wpPathId,83,-1115.81,-1700,45.5234,0,0,0,0,100,0), +(@wpPathId,84,-1092.46,-1692.58,41.2765,0,0,0,0,100,0), +(@wpPathId,85,-1068.59,-1687.37,38.652,0,0,0,0,100,0), +(@wpPathId,86,-1037.27,-1684.41,36.8739,0,0,0,0,100,0), +(@wpPathId,87,-1008.56,-1684.45,37.151,0,0,0,0,100,0), +(@wpPathId,88,-980.565,-1684.34,37.7322,0,0,0,0,100,0), +(@wpPathId,89,-953.792,-1680.65,39.8905,0,0,0,0,100,0), +(@wpPathId,90,-937.298,-1674.86,41.9623,0,0,0,0,100,0), +(@wpPathId,91,-922.117,-1666.19,44.3338,0,0,0,0,100,0), +(@wpPathId,92,-902.794,-1651.14,47.3033,0,0,0,0,100,0), +(@wpPathId,93,-886.795,-1637.57,49.7302,0,0,0,0,100,0), +(@wpPathId,94,-874.432,-1625.18,51.403,0,0,0,0,100,0), +(@wpPathId,95,-861.587,-1613.31,52.861,0,0,0,0,100,0), +(@wpPathId,96,-851.445,-1603.67,53.5052,0,0,0,0,100,0), +(@wpPathId,97,-835.526,-1585.06,54.2578,0,0,0,0,100,0), +(@wpPathId,98,-822.556,-1568.54,54.1683,0,0,0,0,100,0), +(@wpPathId,99,-804.126,-1543,54.2734,0,0,0,0,100,0), +(@wpPathId,100,-788.23,-1519.96,55.9301,0,0,0,0,100,0), +(@wpPathId,101,-779.762,-1504.66,57.6297,0,0,0,0,100,0), +(@wpPathId,102,-771.293,-1481.79,60.9203,0,0,0,0,100,0), +(@wpPathId,103,-764.958,-1461.8,63.8378,0,0,0,0,100,0), +(@wpPathId,104,-751.162,-1433.5,66.2523,0,0,0,0,100,0), +(@wpPathId,105,-737.279,-1406.06,68.0082,0,0,0,0,100,0), +(@wpPathId,106,-719.827,-1384.18,68.2183,0,0,0,0,100,0), +(@wpPathId,107,-701.185,-1358.79,67.6137,0,0,0,0,100,0), +(@wpPathId,108,-676.3,-1329.47,67.0156,0,0,0,0,100,0), +(@wpPathId,109,-661.743,-1308.94,66.136,0,0,0,0,100,0), +(@wpPathId,110,-646.567,-1281.38,66.0949,0,0,0,0,100,0), +(@wpPathId,111,-626.252,-1248.74,66.0719,0,0,0,0,100,0), +(@wpPathId,112,-612.39,-1216.62,65.9958,0,0,0,0,100,0), +(@wpPathId,113,-600.363,-1191.33,66.0663,0,0,0,0,100,0), +(@wpPathId,114,-587.601,-1158.84,66.2411,0,0,0,0,100,0), +(@wpPathId,115,-580.715,-1135.33,65.9731,0,0,0,0,100,0), +(@wpPathId,116,-569.879,-1109.61,63.4267,0,0,0,0,100,0), +(@wpPathId,117,-559.217,-1094.17,60.3274,0,0,0,0,100,0), +(@wpPathId,118,-539.599,-1074.21,56.4081,0,0,0,0,100,0), +(@wpPathId,119,-523.011,-1056.35,52.3473,0,0,0,0,100,0), +(@wpPathId,120,-510.191,-1040.07,48.6025,0,0,0,0,100,0), +(@wpPathId,121,-501.715,-1022.04,44.2363,0,0,0,0,100,0), +(@wpPathId,122,-496.385,-998.154,40.2856,0,0,0,0,100,0), +(@wpPathId,123,-494.702,-980.738,37.5433,0,0,0,0,100,0), +(@wpPathId,124,-491.376,-960.06,33.8258,0,0,0,0,100,0), +(@wpPathId,125,-487.913,-946.496,34.5604,0,0,0,0,100,0), +(@wpPathId,126,-483.667,-929.517,33.981,0,0,0,0,100,0), +(@wpPathId,127,-479.713,-916.112,34.5368,0,0,0,0,100,0), +(@wpPathId,128,-468.995,-898.097,37.5774,0,0,0,0,100,0), +(@wpPathId,129,-452.089,-875.795,43.0344,0,0,0,0,100,0), +(@wpPathId,130,-436.879,-856.588,47.9147,0,0,0,0,100,0), +(@wpPathId,131,-421.433,-837.576,52.3119,0,0,0,0,100,0), +(@wpPathId,132,-408.891,-820.775,53.7396,0,0,0,0,100,0), +(@wpPathId,133,-396.945,-802.835,54.5859,0,0,0,0,100,0), +(@wpPathId,134,-383.2,-783.4,54.5997,0,0,0,0,100,0), +(@wpPathId,135,-375.514,-777.305,54.4699,0,0,0,0,100,0), +(@wpPathId,136,-357.159,-768.896,54.1852,0,0,0,0,100,0), +(@wpPathId,137,-331.407,-757.909,53.8287,0,0,0,0,100,0), +(@wpPathId,138,-301.818,-747.177,55.4595,0,0,0,0,100,0), +(@wpPathId,139,-275.645,-739.098,56.6931,0,0,0,0,100,0), +(@wpPathId,140,-248.942,-730.377,58.3106,0,0,0,0,100,0), +(@wpPathId,141,-217.832,-723.297,61.0932,0,0,0,0,100,0), +(@wpPathId,142,-196.602,-718.715,62.8802,0,0,0,0,100,0), +(@wpPathId,143,-172.911,-715.793,63.6936,0,0,0,0,100,0), +(@wpPathId,144,-137.922,-715.202,64.7113,0,0,0,0,100,0), +(@wpPathId,145,-105.48,-713.642,65.4473,0,0,0,0,100,0), +(@wpPathId,146,-83.076,-715.929,67.8031,0,0,0,0,100,0), +(@wpPathId,147,-62.1287,-717.276,68.264,0,0,0,0,100,0), +(@wpPathId,148,-34.829,-715.287,69.076,0,0,0,0,100,0), +(@wpPathId,149,-20.5953,-718.476,69.3706,0,0,0,0,100,0), +(@wpPathId,150,-17.5473,-725.856,68.4891,0,0,0,0,100,0), +(@wpPathId,151,-18.4696,-738.195,66.1096,0,0,0,0,100,0), +(@wpPathId,152,-22.5461,-758.719,62.5768,0,0,0,0,100,0), +(@wpPathId,153,-16.6739,-786.375,59.6202,0,0,0,0,100,0), +(@wpPathId,154,-17.4867,-799.341,58.967,0,0,0,0,100,0), +(@wpPathId,155,-28.1695,-814.096,57.6642,0,0,0,0,100,0), +(@wpPathId,156,-44.6354,-826.165,57.0593,0,0,0,0,100,0), +(@wpPathId,157,-52.8964,-844.203,56.3922,0,0,0,0,100,0), +(@wpPathId,158,-50.6344,-863.401,55.686,0,0,0,0,100,0), +(@wpPathId,159,-41.1772,-876.152,55.8108,0,0,0,0,100,0), +(@wpPathId,160,-28.9852,-888.752,56.1343,0,0,0,0,100,0), +(@wpPathId,161,-26.666,-897.974,56.026,0,0,0,0,100,0), +(@wpPathId,162,-29.7521,-903.466,55.8896,0,0,0,0,100,0), +(@wpPathId,163,-33.5225,-909.703,55.5687,0,0,0,0,100,0), +(@wpPathId,164,-40.2458,-919.112,54.8082,0,0,0,0,100,0), -- destination reached, 1 minute delay before pathing back +(@wpPathId,165,-37.9023,-916.188,55.1725,0,0,0,0,100,0), +(@wpPathId,166,-30.3595,-904.044,55.8805,0,0,0,0,100,0), +(@wpPathId,167,-27.4496,-898.895,56.0401,0,0,0,0,100,0), +(@wpPathId,168,-28.8969,-890.134,56.0851,0,0,0,0,100,0), +(@wpPathId,169,-39.6026,-878.277,55.9009,0,0,0,0,100,0), +(@wpPathId,170,-49.9883,-864.653,55.6548,0,0,0,0,100,0), +(@wpPathId,171,-53.5191,-847.529,56.3265,0,0,0,0,100,0), +(@wpPathId,172,-45.6486,-827.843,57.0118,0,0,0,0,100,0), +(@wpPathId,173,-30.2519,-815.667,57.6413,0,0,0,0,100,0), +(@wpPathId,174,-18.748,-801.928,58.75,0,0,0,0,100,0), +(@wpPathId,175,-16.2843,-788.799,59.5083,0,0,0,0,100,0), +(@wpPathId,176,-22.8308,-761.081,62.172,0,0,0,0,100,0), +(@wpPathId,177,-18.7154,-740.543,65.6946,0,0,0,0,100,0), +(@wpPathId,178,-17.5494,-726.441,68.377,0,0,0,0,100,0), +(@wpPathId,179,-21.3868,-718.702,69.3223,0,0,0,0,100,0), +(@wpPathId,180,-34.1316,-715.917,69.0751,0,0,0,0,100,0), +(@wpPathId,181,-60.9359,-717.195,68.3029,0,0,0,0,100,0), +(@wpPathId,182,-80.9546,-715.894,67.9737,0,0,0,0,100,0), +(@wpPathId,183,-106.424,-713.731,65.3761,0,0,0,0,100,0), +(@wpPathId,184,-137.902,-714.769,64.7226,0,0,0,0,100,0), +(@wpPathId,185,-172.878,-715.923,63.6948,0,0,0,0,100,0), +(@wpPathId,186,-193.71,-718.413,63.0221,0,0,0,0,100,0), +(@wpPathId,187,-216.695,-722.939,61.1133,0,0,0,0,100,0), +(@wpPathId,188,-247.633,-730.432,58.4478,0,0,0,0,100,0), +(@wpPathId,189,-273.719,-738.461,56.7533,0,0,0,0,100,0), +(@wpPathId,190,-299.708,-746.781,55.6276,0,0,0,0,100,0), +(@wpPathId,191,-329.496,-757.193,53.9239,0,0,0,0,100,0), +(@wpPathId,192,-354.54,-768.04,54.2285,0,0,0,0,100,0), +(@wpPathId,193,-375.293,-777.319,54.4701,0,0,0,0,100,0), +(@wpPathId,194,-383.495,-784.036,54.6087,0,0,0,0,100,0), +(@wpPathId,195,-396.589,-802.639,54.5903,0,0,0,0,100,0), +(@wpPathId,196,-409.141,-821.598,53.6989,0,0,0,0,100,0), +(@wpPathId,197,-420.379,-835.882,52.5394,0,0,0,0,100,0), +(@wpPathId,198,-434.7,-853.557,48.7153,0,0,0,0,100,0), +(@wpPathId,199,-451.476,-875.092,43.2386,0,0,0,0,100,0), +(@wpPathId,200,-468.216,-896.654,37.8402,0,0,0,0,100,0), +(@wpPathId,201,-479.431,-916.404,34.5483,0,0,0,0,100,0), +(@wpPathId,202,-483.477,-929.436,34.0016,0,0,0,0,100,0), +(@wpPathId,203,-486.836,-942.665,34.6166,0,0,0,0,100,0), +(@wpPathId,204,-490.311,-955.864,33.8972,0,0,0,0,100,0), +(@wpPathId,205,-494.413,-978.225,37.0571,0,0,0,0,100,0), +(@wpPathId,206,-495.922,-996.353,39.9845,0,0,0,0,100,0), +(@wpPathId,207,-501.894,-1021.3,44.1397,0,0,0,0,100,0), +(@wpPathId,208,-508.274,-1036.2,47.7283,0,0,0,0,100,0), +(@wpPathId,209,-521.649,-1054.57,52.0204,0,0,0,0,100,0), +(@wpPathId,210,-536.872,-1071.44,56.0008,0,0,0,0,100,0), +(@wpPathId,211,-556.428,-1090.44,59.4959,0,0,0,0,100,0), +(@wpPathId,212,-569.52,-1109.03,63.3078,0,0,0,0,100,0), +(@wpPathId,213,-580.307,-1134,65.9386,0,0,0,0,100,0), +(@wpPathId,214,-587.943,-1159.8,66.2384,0,0,0,0,100,0), +(@wpPathId,215,-599.68,-1189.38,66.071,0,0,0,0,100,0), +(@wpPathId,216,-611.207,-1214.11,66.0131,0,0,0,0,100,0), +(@wpPathId,217,-625.737,-1247.48,66.0764,0,0,0,0,100,0), +(@wpPathId,218,-644.589,-1278.51,66.0956,0,0,0,0,100,0), +(@wpPathId,219,-660.145,-1306.27,66.1604,0,0,0,0,100,0), +(@wpPathId,220,-675.672,-1328.66,66.9782,0,0,0,0,100,0), +(@wpPathId,221,-699.123,-1356.5,67.6145,0,0,0,0,100,0), +(@wpPathId,222,-718.071,-1382.09,68.1733,0,0,0,0,100,0), +(@wpPathId,223,-737.753,-1407.11,67.967,0,0,0,0,100,0), +(@wpPathId,224,-750.189,-1431.38,66.3932,0,0,0,0,100,0), +(@wpPathId,225,-764.174,-1459.99,64.0482,0,0,0,0,100,0), +(@wpPathId,226,-771.283,-1481.56,60.9477,0,0,0,0,100,0), +(@wpPathId,227,-778.669,-1502.06,58.0151,0,0,0,0,100,0), +(@wpPathId,228,-786.991,-1518,56.1296,0,0,0,0,100,0), +(@wpPathId,229,-802.538,-1540.44,54.3658,0,0,0,0,100,0), +(@wpPathId,230,-821.021,-1566.36,54.1669,0,0,0,0,100,0), +(@wpPathId,231,-834.994,-1584.29,54.2546,0,0,0,0,100,0), +(@wpPathId,232,-851.463,-1603.03,53.5575,0,0,0,0,100,0), +(@wpPathId,233,-861.063,-1612.73,52.8747,0,0,0,0,100,0), +(@wpPathId,234,-871.01,-1622.07,52.0091,0,0,0,0,100,0), +(@wpPathId,235,-884.087,-1634.72,49.907,0,0,0,0,100,0), +(@wpPathId,236,-901.22,-1649.65,47.6492,0,0,0,0,100,0), +(@wpPathId,237,-919.01,-1663.83,44.7569,0,0,0,0,100,0), +(@wpPathId,238,-936.362,-1674.18,42.1281,0,0,0,0,100,0), +(@wpPathId,239,-951.672,-1680.22,40.0861,0,0,0,0,100,0), +(@wpPathId,240,-978.641,-1684.29,37.8759,0,0,0,0,100,0), +(@wpPathId,241,-1004.88,-1684.59,37.0962,0,0,0,0,100,0), +(@wpPathId,242,-1036.73,-1684.53,36.8569,0,0,0,0,100,0), +(@wpPathId,243,-1063.92,-1686.7,38.2989,0,0,0,0,100,0), +(@wpPathId,244,-1090.65,-1692.18,40.9512,0,0,0,0,100,0), +(@wpPathId,245,-1112.34,-1698.96,45.1239,0,0,0,0,100,0), +(@wpPathId,246,-1138.5,-1706.74,48.6789,0,0,0,0,100,0), +(@wpPathId,247,-1155.85,-1712.21,51.8194,0,0,0,0,100,0), +(@wpPathId,248,-1171.71,-1719.06,54.0856,0,0,0,0,100,0), +(@wpPathId,249,-1193.8,-1735,57.0706,0,0,0,0,100,0), +(@wpPathId,250,-1213.93,-1753.41,60.187,0,0,0,0,100,0), +(@wpPathId,251,-1237.63,-1774.69,64.4626,0,0,0,0,100,0), +(@wpPathId,252,-1248.78,-1782.43,65.819,0,0,0,0,100,0), +(@wpPathId,253,-1258.66,-1786.65,66.482,0,0,0,0,100,0), +(@wpPathId,254,-1286.65,-1801.77,66.8709,0,0,0,0,100,0), +(@wpPathId,255,-1305.07,-1814.08,65.4825,0,0,0,0,100,0), +(@wpPathId,256,-1315.82,-1825.3,64.4726,0,0,0,0,100,0), +(@wpPathId,257,-1325.03,-1840.48,63.2467,0,0,0,0,100,0), +(@wpPathId,258,-1328.78,-1852.54,62.4244,0,0,0,0,100,0), +(@wpPathId,259,-1338.59,-1882.78,60.2984,0,0,0,0,100,0), +(@wpPathId,260,-1349.41,-1912.74,58.414,0,0,0,0,100,0), +(@wpPathId,261,-1361.58,-1942.17,58.429,0,0,0,0,100,0), +(@wpPathId,262,-1372.17,-1967.33,58.476,0,0,0,0,100,0), +(@wpPathId,263,-1376.43,-1980.29,58.5393,0,0,0,0,100,0), +(@wpPathId,264,-1378.99,-1998.28,59.1872,0,0,0,0,100,0), +(@wpPathId,265,-1381.75,-2030.01,60.7155,0,0,0,0,100,0), +(@wpPathId,266,-1383.96,-2066.34,62.2794,0,0,0,0,100,0), +(@wpPathId,267,-1385.64,-2093.57,63.5406,0,0,0,0,100,0), +(@wpPathId,268,-1389.12,-2129.8,64.3013,0,0,0,0,100,0), +(@wpPathId,269,-1395.05,-2161.59,64.1007,0,0,0,0,100,0), +(@wpPathId,270,-1399.36,-2183.92,63.9526,0,0,0,0,100,0), +(@wpPathId,271,-1405.66,-2210.48,63.8462,0,0,0,0,100,0), +(@wpPathId,272,-1410.75,-2227.95,63.7957,0,0,0,0,100,0), +(@wpPathId,273,-1417.65,-2244.76,63.7518,0,0,0,0,100,0), +(@wpPathId,274,-1427.39,-2259.19,63.3891,0,0,0,0,100,0), +(@wpPathId,275,-1438.66,-2273.46,63.0608,0,0,0,0,100,0), +(@wpPathId,276,-1444.57,-2283.39,62.2072,0,0,0,0,100,0), +(@wpPathId,277,-1449.32,-2302.21,61.8304,0,0,0,0,100,0), +(@wpPathId,278,-1450.22,-2324.94,61.7334,0,0,0,0,100,0), +(@wpPathId,279,-1450.08,-2347.68,61.5991,0,0,0,0,100,0), +(@wpPathId,280,-1449.96,-2365.88,61.4915,0,0,0,0,100,0), +(@wpPathId,281,-1450.25,-2388.62,61.3176,0,0,0,0,100,0), +(@wpPathId,282,-1450.85,-2402.24,60.7831,0,0,0,0,100,0), +(@wpPathId,283,-1457.88,-2418.95,58.9511,0,0,0,0,100,0), +(@wpPathId,284,-1473.83,-2435.1,56.4162,0,0,0,0,100,0), +(@wpPathId,285,-1491.02,-2449.99,53.7364,0,0,0,0,100,0), +(@wpPathId,286,-1505.01,-2461.63,52.9892,0,0,0,0,100,0), +(@wpPathId,287,-1519.04,-2473.22,53.2747,0,0,0,0,100,0), +(@wpPathId,288,-1536.46,-2487.83,53.5903,0,0,0,0,100,0), +(@wpPathId,289,-1545.19,-2496.39,54.1743,0,0,0,0,100,0), +(@wpPathId,290,-1550.28,-2506.8,53.9085,0,0,0,0,100,0), +(@wpPathId,291,-1554.16,-2515.03,53.3954,0,0,0,0,100,0), +(@wpPathId,292,-1560.37,-2527.18,52.3382,0,0,0,0,100,0), +(@wpPathId,293,-1567.58,-2549.4,50.7789,0,0,0,0,100,0), +(@wpPathId,294,-1567.29,-2570.35,49.3619,0,0,0,0,100,0), +(@wpPathId,295,-1562.37,-2591.16,48.5309,0,0,0,0,100,0), +(@wpPathId,296,-1557.69,-2603.97,47.8564,0,0,0,0,100,0), +(@wpPathId,297,-1555.93,-2619.39,45.2651,0,0,0,0,100,0), +(@wpPathId,298,-1555.27,-2642.13,41.156,0,0,0,0,100,0), +(@wpPathId,299,-1557.99,-2669.24,36.7433,0,0,0,0,100,0), +(@wpPathId,300,-1564.24,-2685.93,35.3788,0,0,0,0,100,0), +(@wpPathId,301,-1570.22,-2693.06,34.7322,0,0,0,0,100,0), +(@wpPathId,302,-1585.9,-2709.52,35.9957,0,0,0,0,100,0), +(@wpPathId,303,-1597.38,-2723.02,37.1346,0,0,0,0,100,0), +(@wpPathId,304,-1606.15,-2738.58,37.5876,0,0,0,0,100,0), +(@wpPathId,305,-1610.13,-2756.28,37.2692,0,0,0,0,100,0), +(@wpPathId,306,-1612.47,-2774.32,36.3171,0,0,0,0,100,0), +(@wpPathId,307,-1617.11,-2801.22,34.8703,0,0,0,0,100,0), +(@wpPathId,308,-1620.57,-2819.08,33.8744,0,0,0,0,100,0), +(@wpPathId,309,-1625.11,-2841.37,32.3162,0,0,0,0,100,0), +(@wpPathId,310,-1632.1,-2867.75,30.009,0,0,0,0,100,0), +(@wpPathId,311,-1638.53,-2884.76,27.7024,0,0,0,0,100,0), +(@wpPathId,312,-1644,-2901.43,26.3001,0,0,0,0,100,0), +(@wpPathId,313,-1641.88,-2915.77,26.7946,0,0,0,0,100,0), +(@wpPathId,314,-1637.81,-2933.46,28.1655,0,0,0,0,100,0), +(@wpPathId,315,-1638.86,-2944.22,28.5141,0,0,0,0,100,0), +(@wpPathId,316,-1643.12,-2959.2,27.6933,0,0,0,0,100,0), +(@wpPathId,317,-1645.97,-2971.19,26.3978,0,0,0,0,100,0), +(@wpPathId,318,-1645.94,-2988.94,23.7789,0,0,0,0,100,0), +(@wpPathId,319,-1640.24,-3005.1,20.8809,0,0,0,0,100,0), +(@wpPathId,320,-1634.33,-3012.31,19.4302,0,0,0,0,100,0), +(@wpPathId,321,-1604.85,-3044.09,14.9102,0,0,0,0,100,0), +(@wpPathId,322,-1584.7,-3059.58,12.848,0,0,0,0,100,0), +(@wpPathId,323,-1569.47,-3066.36,13.156,0,0,0,0,100,0), +(@wpPathId,324,-1559.23,-3066.54,13.1732,0,0,0,0,100,0), +(@wpPathId,325,-1551.49,-3056.18,13.011,0,0,0,0,100,0), +(@wpPathId,326,-1551.22,-3043.06,13.002,0,0,0,0,100,0), +(@wpPathId,327,-1552.52,-3029.32,13.6458,5.009628,0,0,0,100,0); -- ends at same coords as WP 1 + +-- Assign path and formation info +DELETE FROM `creature_formations` WHERE `leaderGUID`=@npcLeaderId; +INSERT INTO creature_formations (`leaderGUID`,`memberGUID`,`dist`,`angle`,`groupAI`,`point_1`,`point_2`) VALUES +(@npcLeaderId,@npcLeaderId,0,0,2,0,0), +(@npcLeaderId,@npcFollowerId_1,3,180,2,0,0), +(@npcLeaderId,@npcFollowerId_2,3,90,2,0,0), +(@npcLeaderId,@npcFollowerId_3,3,360,2,0,0), +(@npcLeaderId,@npcFollowerId_4,3,270,2,0,0); + +DELETE FROM `creature_addon` WHERE `guid`=@npcLeaderId; +INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES +(@npcLeaderId,@wpPathId,0,0,0,0,NULL); diff --git a/sql/updates/world/2015_04_13_00_world.sql b/sql/updates/world/2015_04_13_00_world.sql new file mode 100644 index 00000000000..99484e55f87 --- /dev/null +++ b/sql/updates/world/2015_04_13_00_world.sql @@ -0,0 +1,4 @@ +DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (34767, 34769); +INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `comment`) VALUES +(34767, 31726, 'Summon Charger - Blood Elf'), +(34769, 31726, 'Summon Warhorse - Blood Elf'); diff --git a/sql/updates/world/2015_04_18_00_world.sql b/sql/updates/world/2015_04_18_00_world.sql new file mode 100644 index 00000000000..36901a352ea --- /dev/null +++ b/sql/updates/world/2015_04_18_00_world.sql @@ -0,0 +1,2 @@ +-- +UPDATE `creature_template` SET `InhabitType`=3 WHERE `entry` IN (5931, 3989, 3988, 3991, 3999, 4004, 4003); diff --git a/sql/updates/world/2015_04_18_01_world.sql b/sql/updates/world/2015_04_18_01_world.sql new file mode 100644 index 00000000000..707335c490e --- /dev/null +++ b/sql/updates/world/2015_04_18_01_world.sql @@ -0,0 +1,6 @@ +-- +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=40060 AND `ConditionTypeOrReference`=29; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES +(15,40060,0,0,0,29,0,9461,100,0,1,0,0,'','Gor Grimgut cannot be a target for Exhaustion.'), +(15,40060,0,0,1,29,0,9461,100,0,1,0,0,'','Gor Grimgut cannot be a target for Exhaustion.'), +(15,40060,0,0,2,29,0,9461,100,0,1,0,0,'','Gor Grimgut cannot be a target for Exhaustion.'); diff --git a/sql/updates/world/2015_04_18_02_world.sql b/sql/updates/world/2015_04_18_02_world.sql new file mode 100644 index 00000000000..6a299828e26 --- /dev/null +++ b/sql/updates/world/2015_04_18_02_world.sql @@ -0,0 +1,13 @@ +-- +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=17918; +DELETE FROM `smart_scripts` WHERE `entryorguid`=17918 AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES + +(17918, 0, 0, 0, 0, 0, 100, 0, 3000, 7000, 8000, 12000, 11, 31478, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Time Keeper - IC - Cast Sand Breath'), +(17918, 0, 1, 0, 0, 0, 100, 0, 5000, 10000, 20000, 30000, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Time Keeper - IC - Cast Sand Breath'); + +DELETE FROM `creature_text` WHERE `entry` IN (17918); +INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(17918, 0, 0, 'Victory will be ours!', 14, 0, 100, 0, 0, 0, 15194, 0, 'Time Keeper'), +(17918, 0, 1, 'Carry on! Victory at all costs!', 14, 0, 100, 0, 0, 0, 15195, 0, 'Time Keeper'), +(17918, 0, 2, 'Continue the fight! Do not falter!', 14, 0, 100, 0, 0, 0, 15196, 0, 'Time Keeper'); diff --git a/sql/updates/world/2015_04_18_03_world.sql b/sql/updates/world/2015_04_18_03_world.sql new file mode 100644 index 00000000000..cc6d3d65dea --- /dev/null +++ b/sql/updates/world/2015_04_18_03_world.sql @@ -0,0 +1,4 @@ +-- +DELETE FROM `spell_linked_spell` WHERE `spell_trigger` = 54355 AND `spell_effect` = 54402; +INSERT INTO `spell_linked_spell` (`spell_trigger`,`spell_effect`,`type`,`comment`) VALUES +(54355, 54402, 0, 'Land Mine'); diff --git a/sql/updates/world/2015_04_18_04_world.sql b/sql/updates/world/2015_04_18_04_world.sql new file mode 100644 index 00000000000..cad194dafae --- /dev/null +++ b/sql/updates/world/2015_04_18_04_world.sql @@ -0,0 +1,2 @@ +-- +UPDATE `spell_proc_event` SET `SchoolMask`=126 WHERE `entry`=71564; diff --git a/sql/updates/world/2015_04_18_05_world.sql b/sql/updates/world/2015_04_18_05_world.sql new file mode 100644 index 00000000000..b61ff01bdfc --- /dev/null +++ b/sql/updates/world/2015_04_18_05_world.sql @@ -0,0 +1,9 @@ +-- +DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (-24869, -61874, -71074, -71068, -71073, -71071) AND `spell_effect` = 24870; +INSERT INTO `spell_linked_spell` (`spell_trigger`,`spell_effect`,`type`,`comment`) VALUES +(-24869, 24870, 0, 'Bobbing Apple, Bread of the Dead, Winter Veil Cookie'), +(-61874, 24870, 0, 'Noblegarden Chocolate'), +(-71074, 24870, 0, 'Buttermilk Delight'), +(-71068, 24870, 0, 'Sweet Surprise'), +(-71073, 24870, 0, 'Dark Desire'), +(-71071, 24870, 0, 'Very Berry Cream'); diff --git a/sql/updates/world/2015_04_18_05_world_335.sql b/sql/updates/world/2015_04_18_05_world_335.sql new file mode 100644 index 00000000000..b81ab654016 --- /dev/null +++ b/sql/updates/world/2015_04_18_05_world_335.sql @@ -0,0 +1,32 @@ +-- +DELETE FROM `gossip_menu` WHERE `entry`=10144 AND `text_id`=14088; +INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES (10144, 14088); + +DELETE FROM `gossip_menu_option` WHERE `menu_id` = 10144; +INSERT INTO `gossip_menu_option` (`menu_id`, id, option_icon, `option_text`, `OptionBroadcastTextID`, `option_id`, `npc_option_npcflag`, `action_menu_id`) VALUES +(10144, 0, 0, 'I''m interested.', 32566, 1, 1, 0), +(10144, 1, 0, 'I''m interested.', 32566, 1, 1, 0); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup`=10144; +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=10144; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`,`NegativeCondition`) VALUES +(15,10144,0,0,27,77,3,0,0,'','The player must be level 77 or higher', 0), +(15,10144,0,0,25,54197,0,0,0,'','Show the gossip if the player doesn''t learn Cold Weather Flying', 1), +(15,10144,0,0,2,44221,1,1,0,'','Show the gossip if the player doesn''t have the item', 1), +(15,10144,0,0,16,1101,0,0,0,'','Show the gossip if the player is from the alliance', 0), +(15,10144,1,0,27,77,3,0,0,'','The player must be level 77 or higher', 0), +(15,10144,1,0,25,54197,0,0,0,'','Show the gossip if the player doesn''t learn Cold Weather Flying', 1), +(15,10144,1,0,2,44229,1,1,0,'','Show the gossip if the player doesn''t have the item', 1), +(15,10144,1,0,16,690,0,0,0,'','Show the gossip if the player is from the horde', 0), +(14,10144,14088,0,27,77,3,0,0,'','Show the text if the player is level 77 or higher', 0), +(14,10144,14088,0,25,54197,0,0,0,'','Show the text if the player doesn''t learn Cold Weather Flying', 1), +(14,10144,14088,0,2,44221,1,1,0,'','Show the text if the player doesn''t have the item', 1), +(14,10144,14088,0,2,44229,1,1,0,'','Show the text if the player doesn''t have the item', 1); + +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=30464; +DELETE FROM `smart_scripts` WHERE `entryorguid` = 30464 AND `source_type` = 0; +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(30464, 0, 0, 1, 62, 0, 100, 0, 10144, 0, 0, 0, 85, 60126, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, '"Honest" Max - On Gossip select - additem'), +(30464, 0, 1, 0, 61, 0, 100, 0, 10144, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, '"Honest" Max - On Gossip select - close gossip'), +(30464, 0, 2, 3, 62, 0, 100, 0, 10144, 1, 0, 0, 85, 60128, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, '"Honest" Max - On Gossip select - additem'), +(30464, 0, 3, 0, 61, 0, 100, 0, 10144, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, '"Honest" Max - On Gossip select - close gossip'); diff --git a/sql/updates/world/2015_04_18_06_world.sql b/sql/updates/world/2015_04_18_06_world.sql new file mode 100644 index 00000000000..aa532de444b --- /dev/null +++ b/sql/updates/world/2015_04_18_06_world.sql @@ -0,0 +1,5 @@ +DELETE FROM `smart_scripts` WHERE `entryorguid`=26472 AND `source_type`=0 AND `id` IN(4,5,6); +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(26472, 0, 4, 5, 8, 0, 100, 1, 49319, 0, 0, 0, 89, 10, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Highland Mustang - On Spellhit \'Scare Highland Mustang\' - Flee For Assist (No Repeat)'), +(26472, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 11, 49323, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Highland Mustang - On Spellhit \'Scare Highland Mustang\' - Cast \'Highland Mustang Spooking Credit\' (No Repeat)'), +(26472, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Highland Mustang - On Spellhit \'Scare Highland Mustang\' - Despawn In 5000 ms (No Repeat)'); diff --git a/sql/updates/world/2015_04_18_07_world.sql b/sql/updates/world/2015_04_18_07_world.sql new file mode 100644 index 00000000000..4edef92c8ad --- /dev/null +++ b/sql/updates/world/2015_04_18_07_world.sql @@ -0,0 +1 @@ +DELETE FROM `gameobject` WHERE `guid`=49312 AND `id`=187493; diff --git a/sql/updates/world/2015_04_18_08_world.sql b/sql/updates/world/2015_04_18_08_world.sql new file mode 100644 index 00000000000..43fd6f2edb5 --- /dev/null +++ b/sql/updates/world/2015_04_18_08_world.sql @@ -0,0 +1,738 @@ +SET @GUID := 143894; + +DELETE FROM `disables` WHERE `entry` = 7180 AND `sourceType` = 4; + +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry` IN(27737); + +DELETE FROM `smart_scripts` WHERE `entryorguid` IN(27737) AND `source_type`=0; + +DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN -@GUID-89 AND -@GUID-0 AND `source_type`=0; + +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(-@GUID-0, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-0, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-0, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-0, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-1, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-1, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-1, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-1, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-2, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-2, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-2, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-2, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-3, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-3, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-3, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-3, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-4, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-4, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-4, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-4, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-5, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-5, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-5, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-5, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-6, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-6, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-6, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-6, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-7, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-7, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-7, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-7, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-8, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-8, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-8, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-8, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-9, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-9, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-9, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-9, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-10, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-10, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-10, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-10, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-11, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-11, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-11, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-11, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-12, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-12, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-12, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-12, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-13, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-13, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-13, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-13, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-14, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-14, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-14, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-14, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-15, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-15, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-15, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-15, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-16, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-16, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-16, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-16, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-17, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-17, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-17, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-17, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-18, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-18, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-18, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-18, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-19, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-19, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-19, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-19, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-20, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-20, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-20, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-20, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-21, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-21, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-21, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-21, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-22, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-22, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-22, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-22, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-23, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-23, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-23, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-23, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-24, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-24, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-24, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-24, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-25, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-25, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-25, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-25, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-26, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-26, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-26, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-26, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-27, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-27, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-27, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-27, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-28, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-28, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-28, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-28, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-29, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-29, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-29, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-29, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-30, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-30, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-30, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-30, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-31, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-31, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-31, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-31, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-32, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-32, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-32, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-32, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-33, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-33, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-33, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-33, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-34, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-34, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-34, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-34, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-35, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-35, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-35, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-35, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-36, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-36, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-36, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-36, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-37, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-37, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-37, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-37, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-38, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-38, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-38, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-38, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-39, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-39, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-39, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-39, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-40, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-40, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-40, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-40, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-41, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-41, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-41, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-41, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-42, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-42, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-42, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-42, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-43, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-43, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-43, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-43, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-44, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-44, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-44, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-44, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-45, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-45, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-45, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-45, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-46, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-46, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-46, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-46, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-47, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-47, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-47, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-47, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-48, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-48, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-48, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-48, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-49, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-49, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-49, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-49, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-50, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-50, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-50, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-50, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-51, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-51, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-51, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-51, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-52, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-52, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-52, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-52, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-53, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-53, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-53, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-53, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-54, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-54, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-54, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-54, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-59, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-59, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-59, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-59, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-60, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-60, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-60, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-60, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-61, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-61, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-61, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-61, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-62, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-62, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-62, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-62, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-63, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-63, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-63, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-63, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-64, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-64, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-64, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-64, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-65, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-65, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-65, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-65, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-66, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-66, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-66, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-66, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-67, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-67, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-67, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-67, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-68, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-68, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-68, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-68, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-69, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-69, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-69, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-69, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-70, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-70, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-70, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-70, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-71, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-71, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-71, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-71, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-72, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-72, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-72, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-72, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-73, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-73, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-73, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-73, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-74, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-74, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-74, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-74, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-75, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-75, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-75, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-75, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-76, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-76, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-76, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-76, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-77, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-77, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-77, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-77, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-78, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-78, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-78, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-78, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-79, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-79, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-79, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-79, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-80, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-80, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-80, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-80, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-81, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-81, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-81, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-81, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-82, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-82, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-82, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-82, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-83, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-83, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-83, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-83, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-84, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-84, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-84, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-84, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-85, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-85, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-85, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-85, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-86, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-86, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-86, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-86, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-87, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-87, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-87, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-87, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-88, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-88, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-88, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-88, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-89, 0, 0, 1, 1, 0, 100, 1, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Remove Unit Flags (No repeat)'), +(-@GUID-89, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'), +(-@GUID-89, 0, 2, 3, 11, 0, 100, 1, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - On Spawn - Set Unit Flags (No repeat)'), +(-@GUID-89, 0, 3, 0, 61, 0, 100, 1, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Risen Zombie - OOC - Set Visible (No repeat)'); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry` BETWEEN -@GUID-89 AND -@GUID-0; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(22, 1, -@GUID-0, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-0, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-1, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-1, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-2, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-2, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-3, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-3, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-4, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-4, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-5, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-5, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-6, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-6, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-7, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-7, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-8, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-8, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-9, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-9, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-10, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-10, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-11, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-11, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-12, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-12, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-13, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-13, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-14, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-14, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-15, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-15, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-16, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-16, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-17, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-17, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-18, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-18, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-19, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-19, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-20, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-20, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-21, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-21, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-22, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-22, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-23, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-23, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-24, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-24, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-25, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-25, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-26, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-26, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-27, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-27, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-28, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-28, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-29, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-29, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-30, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-30, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-31, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-31, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-32, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-32, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-33, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-33, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-34, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-34, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-35, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-35, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-36, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-36, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-37, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-37, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-38, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-38, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-39, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-39, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-40, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-40, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-41, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-41, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-42, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-42, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-43, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-43, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-44, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-44, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-45, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-45, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-46, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-46, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-47, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-47, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-48, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-48, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-49, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-49, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-50, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-50, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-51, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-51, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-52, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-52, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-53, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-53, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-54, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-54, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-59, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-59, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-60, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-60, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-61, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-61, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-62, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-62, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-63, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-63, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-64, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-64, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-65, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-65, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-66, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-66, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-67, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-67, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-68, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-68, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-69, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-69, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-70, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-70, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-71, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-71, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-72, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-72, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-73, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-73, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-74, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-74, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-75, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-75, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-76, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-76, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-77, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-77, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-78, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-78, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-79, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-79, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-80, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-80, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-81, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-81, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-82, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-82, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-83, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-83, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-84, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-84, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-85, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-85, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-86, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-86, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-87, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-87, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-88, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-88, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'), +(22, 1, -@GUID-89, 0, 0, 13, 1, 0, 1, 2, 0, 0, 0, '', 'Execute SAI only if Arthas Started'), +(22, 1, -@GUID-89, 0, 0, 13, 1, 2, 3, 2, 1, 0, 0, '', 'Execute SAI only if Salramm not done'); + + +DELETE FROM `creature` WHERE `id` IN(27737,27731);-- 55 - 58 +INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `MovementType`) VALUES +-- 1st Half +(@GUID+0, 27737, 595, 3, 1, 2161.82, 1354.491, 131.1483, 2.331408, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+1, 27737, 595, 3, 1, 2236.563, 1186.729, 136.1916, 4.947702, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+2, 27737, 595, 3, 1, 2182.118, 1267.972, 133.9415, 2.251475, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+3, 27737, 595, 3, 1, 2180.779, 1249.29, 136.1283, 2.05123, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+4, 27737, 595, 3, 1, 2256.721, 1159.953, 138.1671, 0.2378878, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+5, 27737, 595, 3, 1, 2178.129, 1342.832, 130.0959, 2.633242, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+6, 27737, 595, 3, 1, 2184.672, 1283.357, 134.2776, 5.951573, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+7, 27737, 595, 3, 1, 2182.101, 1349.334, 130.5124, 0.9876914, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+8, 27737, 595, 3, 1, 2346.691, 1176.774, 130.5827, 2.633849, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+9, 27737, 595, 3, 1, 2317.5, 1182.395, 134.5855, 0.2704094, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+10, 27737, 595, 3, 1, 2342.65, 1201.867, 130.8089, 5.009095, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+11, 27737, 595, 3, 1, 2204.984, 1335.487, 129.7152, 5.232573, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+12, 27737, 595, 3, 1, 2235.223, 1169.072, 137.4158, 1.448623, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+13, 27737, 595, 3, 1, 2159.948, 1260.771, 134.5026, 0.2792527, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+14, 27737, 595, 3, 1, 2290.749, 1180.91, 137.9212, 3.518519, 240, 5, 1), -- 27737 (Area: 4100) 1 +(@GUID+15, 27737, 595, 3, 1, 2140.347, 1343.273, 132.1016, 1.710423, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+16, 27737, 595, 3, 1, 2308.356, 1170.963, 136.3496, 6.255137, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+17, 27737, 595, 3, 1, 2186.262, 1322.747, 129.9056, 3.620198, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+18, 27737, 595, 3, 1, 2147.991, 1358.539, 132.3033, 3.856933, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+19, 27737, 595, 3, 1, 2182.792, 1293.969, 133.0651, 0.05565223, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+20, 27737, 595, 3, 1, 2216.737, 1197.397, 136.0267, 1.573244, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+21, 27737, 595, 3, 1, 2267.147, 1175.45, 137.9304, 5.129838, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+22, 27737, 595, 3, 1, 2170.33, 1308.926, 132.1849, 3.249883, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+23, 27737, 595, 3, 1, 2166.907, 1260.357, 133.9678, 1.839856, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+24, 27737, 595, 3, 1, 2162.47, 1298.826, 133.6364, 4.921828, 240, 5, 1), -- 27737 (Area: 4100) 1 +(@GUID+25, 27737, 595, 3, 1, 2250.398, 1178.572, 137.4704, 6.230714, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+26, 27737, 595, 3, 1, 2168.266, 1285.917, 133.0716, 0.3473166, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+27, 27737, 595, 3, 1, 2162.47, 1298.826, 133.6364, 4.921828, 240, 5, 1), -- 27737 (Area: 4100) 1 +(@GUID+28, 27737, 595, 3, 1, 2156.109, 1350.486, 131.7296, 3.737586, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+29, 27737, 595, 3, 1, 2177.279, 1286.727, 133.2539, 1.043647, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+30, 27737, 595, 3, 1, 2163.427, 1275.624, 133.6055, 2.009026, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+31, 27737, 595, 3, 1, 2207.282, 1326.216, 129.5644, 1.15092, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+32, 27737, 595, 3, 1, 2197.55, 1343.202, 130.5129, 3.780437, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+33, 27737, 595, 3, 1, 2187.311, 1333.527, 130.1098, 5.819355, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+34, 27737, 595, 3, 1, 2198.283, 1323.173, 130.42, 3.730995, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+35, 27737, 595, 3, 1, 2166.612, 1293.848, 133.2112, 3.054326, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+36, 27737, 595, 3, 1, 2180.712, 1305.788, 131.7394, 3.38325, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+37, 27737, 595, 3, 1, 2134.044, 1359.902, 132.1847, 1.668735, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+38, 27737, 595, 3, 1, 2177.545, 1257.854, 135.0027, 0.02948252, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+39, 27737, 595, 3, 1, 2172.916, 1345.946, 130.3247, 0.3643927, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+40, 27737, 595, 3, 1, 2170.042, 1244.831, 136.1126, 4.301986, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+41, 27737, 595, 3, 1, 2144.03, 1282.192, 134.9001, 6.184534, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+42, 27737, 595, 3, 1, 2127.322, 1343.184, 131.1696, 0.8850852, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+43, 27737, 595, 3, 1, 2173.298, 1327.852, 130.4678, 4.017004, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+44, 27737, 595, 3, 1, 2345.861, 1199.473, 130.6499, 1.27409, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+45, 27737, 595, 3, 1, 2221.904, 1186.763, 135.7659, 2.080931, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+46, 27737, 595, 3, 1, 2324.541, 1174.526, 133.7252, 5.438884, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+47, 27737, 595, 3, 1, 2352.759, 1187.038, 130.4972, 2.111265, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+48, 27737, 595, 3, 1, 2241.31, 1168.949, 137.4646, 2.288553, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+49, 27737, 595, 3, 1, 2277.496, 1175.328, 137.7658, 4.471868, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+50, 27737, 595, 3, 1, 2240.862, 1183.754, 136.7626, 1.269583, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+51, 27737, 595, 3, 1, 2215.602, 1198.933, 136.0747, 3.191143, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+52, 27737, 595, 3, 1, 2253.736, 1173.219, 138.1033, 3.833174, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+53, 27737, 595, 3, 1, 2301.188, 1177.337, 136.9212, 0.4530731, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+54, 27737, 595, 3, 1, 2256.917, 1158.745, 138.2293, 3.033373, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+55, 27731, 595, 3, 1, 2256.084, 1157.831, 138.2716, 1.364949, 240, 5, 1), -- 27731 (Area: 4100) 1 +(@GUID+56, 27731, 595, 3, 1, 2253.797, 1169.233, 138.2792, 1.436542, 240, 5, 1), -- 27731 (Area: 4100) 1 +(@GUID+57, 27731, 595, 3, 1, 2257.816, 1162.377, 138.0986, 0.9713849, 240, 5, 1), -- 27731 (Area: 4100) 1 +(@GUID+58, 27731, 595, 3, 1, 2262.165, 1166.002, 138.1224, 1.240342, 240, 5, 1), -- 27731 (Area: 4100) 1 +(@GUID+59, 27737, 595, 3, 1, 2281.302, 1141.813, 137.9214, 5.003052, 240, 5, 1), -- 27737 (Area: 4100) 1 +(@GUID+60, 27737, 595, 3, 1, 2250.17, 1166.411, 138.147, 0.3446127, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+61, 27737, 595, 3, 1, 2228.241, 1176.167, 136.5662, 5.933817, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+62, 27737, 595, 3, 1, 2300.582, 1183.189, 137.4008, 0.9829545, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+63, 27737, 595, 3, 1, 2260.475, 1178.165, 138.4617, 1.953951, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+64, 27737, 595, 3, 1, 2314.233, 1173.99, 135.4144, 3.033998, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+65, 27737, 595, 3, 1, 2330.992, 1179.689, 131.6598, 0.2531269, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+66, 27737, 595, 3, 1, 2285.286, 1176.464, 137.7416, 4.279643, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+67, 27737, 595, 3, 1, 2226.437, 1192.199, 135.8167, 1.753368, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+68, 27737, 595, 3, 1, 2354.042, 1179.965, 130.7275, 1.108088, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+69, 27737, 595, 3, 1, 2242.06, 1175.723, 137.1995, 6.210336, 240, 5, 1), -- 27737 (Area: 4100) 1 +(@GUID+70, 27737, 595, 3, 1, 2346.105, 1194.632, 130.6152, 1.745329, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+71, 27737, 595, 3, 1, 2186.328, 1311.786, 130.9303, 4.978087, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+72, 27737, 595, 3, 1, 2115.17, 1363.209, 131.0886, 3.417473, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+73, 27737, 595, 3, 1, 2171.35, 1317.278, 131.321, 2.759058, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+74, 27737, 595, 3, 1, 2159.191, 1349.993, 131.5126, 3.911789, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+75, 27737, 595, 3, 1, 2141.456, 1363.355, 132.3215, 1.991677, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+76, 27737, 595, 3, 1, 2183.169, 1328.252, 129.9512, 5.934655, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+77, 27737, 595, 3, 1, 2183.9, 1300.783, 132.3583, 2.234651, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+78, 27737, 595, 3, 1, 2194.571, 1332.426, 129.9806, 2.67068, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+79, 27737, 595, 3, 1, 2169.268, 1278.101, 133.2, 4.272601, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+80, 27737, 595, 3, 1, 2163.175, 1357.961, 131.71, 3.281193, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+81, 27737, 595, 3, 1, 2115.964, 1345.561, 131.5159, 5.410521, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+82, 27737, 595, 3, 1, 2171.605, 1335.377, 130.2321, 3.992525, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+83, 27737, 595, 3, 1, 2126.402, 1362.936, 131.2733, 3.310562, 240, 5, 1), -- 27737 (Area: 4100) 1 +(@GUID+84, 27737, 595, 3, 1, 2173.577, 1264.115, 133.8741, 1.023024, 240, 5, 1), -- 27737 (Area: 4100) 1 +(@GUID+85, 27737, 595, 3, 1, 2208.027, 1335.281, 129.5424, 1.518706, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+86, 27737, 595, 3, 1, 2171.453, 1301.018, 132.7366, 0.2901765, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+87, 27737, 595, 3, 1, 2169.414, 1250.857, 135.2106, 2.8393, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+88, 27737, 595, 3, 1, 2132.141, 1346.274, 131.2455, 2.690396, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +(@GUID+89, 27737, 595, 3, 1, 2158.416, 1280.064, 133.8115, 5.935702, 240, 5, 1), -- 27737 (Area: 4100) (Auras: ) 1 +-- Second Half +(@GUID+90, 27731, 595, 3, 1, 2500.738, 1360.329, 131.1847, 1.937315, 120, 5, 1), -- 27731 (Area: 4100) +(@GUID+91, 27737, 595, 3, 1, 2564.911, 1178.225, 126.5099, 0.715585, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+92, 27731, 595, 3, 1, 2572.829, 1156.034, 126.4628, 2.289771, 120, 5, 1), -- 27731 (Area: 4100) (Auras: ) +(@GUID+93, 27737, 595, 3, 1, 2546.042, 1227.147, 127.048, 2.86234, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+94, 27737, 595, 3, 1, 2549.196, 1213.742, 127.6477, 5.201081, 120, 5, 1), -- 27737 (Area: 4100) +(@GUID+95, 27737, 595, 3, 1, 2574.684, 1153.874, 126.5534, 5.009095, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+96, 27737, 595, 3, 1, 2565.958, 1167.619, 127.0209, 2.356194, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+97, 27737, 595, 3, 1, 2558.278, 1169.111, 128.0473, 4.29351, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+98, 27737, 595, 3, 1, 2534.67, 1255.3, 127.0307, 3.926991, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+99, 27737, 595, 3, 1, 2551.866, 1232.249, 125.6097, 2.635447, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+100, 27737, 595, 3, 1, 2559.216, 1178.839, 127.2618, 3.089233, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+101, 27737, 595, 3, 1, 2533.401, 1263.405, 127.5351, 3.926991, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+102, 27731, 595, 3, 1, 2574.436, 1155.751, 126.4111, 3.559219, 120, 5, 1), -- 27731 (Area: 4100) (Auras: ) +(@GUID+103, 27737, 595, 3, 1, 2564.436, 1152.985, 127.6109, 4.642576, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+104, 27737, 595, 3, 1, 2510.611, 1279.379, 129.8318, 1.570796, 120, 5, 1), -- 27737 (Area: 4100) +(@GUID+105, 27737, 595, 3, 1, 2558.396, 1221.108, 125.4641, 3.438299, 120, 5, 1), -- 27737 (Area: 4100) +(@GUID+106, 27737, 595, 3, 1, 2547.228, 1241.545, 125.8737, 4.415683, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+107, 27737, 595, 3, 1, 2556.666, 1234.75, 125.8504, 0.4363323, 120, 5, 1), -- 27737 (Area: 4100) +(@GUID+108, 27737, 595, 3, 1, 2558.199, 1195.568, 126.8055, 4.380776, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+109, 27737, 595, 3, 1, 2561.93, 1157.015, 127.7777, 1.832596, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+110, 27731, 595, 3, 1, 2573.595, 1157.235, 126.3465, 1.509647, 120, 5, 1), -- 27731 (Area: 4100) (Auras: ) +(@GUID+111, 27737, 595, 3, 1, 2556.297, 1145.754, 129.0501, 3.106686, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+112, 27737, 595, 3, 1, 2569.254, 1205.719, 125.4004, 5.002082, 120, 5, 1), -- 27737 (Area: 4100) (Auras: 42726 - 42726) +(@GUID+113, 27737, 595, 3, 1, 2572.153, 1146.823, 126.8599, 2.70526, 120, 5, 1), -- 27737 (Area: 4100) +(@GUID+114, 27737, 595, 3, 1, 2538.41, 1241.072, 126.9086, 4.886922, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+115, 27731, 595, 3, 1, 2500.738, 1360.329, 131.1847, 2.409203, 120, 5, 1), -- 27731 (Area: 4100) (Auras: ) (possible waypoints or random movement) +(@GUID+116, 27737, 595, 3, 1, 2469.409, 1391.765, 129.9645, 0.01745329, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+117, 27737, 595, 3, 1, 2480.067, 1378.496, 129.6512, 5.951573, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+118, 27737, 595, 3, 1, 2496.575, 1365.8, 130.7648, 3.263766, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+119, 27737, 595, 3, 1, 2507.699, 1291.871, 131.0477, 4.13643, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+120, 27737, 595, 3, 1, 2520.572, 1286.806, 129.7177, 2.146755, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+121, 27737, 595, 3, 1, 2478.782, 1393.61, 130.0417, 5.253441, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+122, 27737, 595, 3, 1, 2502.809, 1348.058, 133.0128, 2.844887, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+123, 27737, 595, 3, 1, 2492.209, 1383.335, 130.4428, 5.969026, 120, 5, 1), -- 27737 (Area: 4100) +(@GUID+124, 27731, 595, 3, 1, 2498.377, 1361.939, 131.0246, 2.017789, 120, 5, 1), -- 27731 (Area: 4100) (Auras: ) (possible waypoints or random movement) +(@GUID+125, 27737, 595, 3, 1, 2465.855, 1409.319, 130.7084, 1.658063, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+126, 27731, 595, 3, 1, 2497.87, 1359.616, 131.4152, 2.273972, 120, 5, 1), -- 27731 (Area: 4100) (Auras: ) (possible waypoints or random movement) +(@GUID+127, 27737, 595, 3, 1, 2567.898, 1195.905, 125.7625, 4.764749, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+128, 27737, 595, 3, 1, 2539.281, 1259.073, 126.4106, 0.8726646, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+129, 27737, 595, 3, 1, 2550.405, 1221.265, 126.6349, 5.502605, 120, 5, 1), -- 27737 (Area: 4100) (Auras: 42726 - 42726) +(@GUID+130, 27737, 595, 3, 1, 2561.143, 1165.518, 127.7086, 4.921828, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+131, 27737, 595, 3, 1, 2570.456, 1166.24, 126.5573, 3.787364, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+132, 27737, 595, 3, 1, 2523.198, 1270.922, 128.7036, 2.007129, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+133, 27737, 595, 3, 1, 2565.553, 1148.601, 127.6903, 2.670354, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+134, 27737, 595, 3, 1, 2569.308, 1188.428, 125.8085, 4.485496, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+135, 27737, 595, 3, 1, 2571.416, 1161.062, 126.5842, 2.949606, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+136, 27737, 595, 3, 1, 2561.565, 1211.34, 125.4866, 0.1047198, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+137, 27737, 595, 3, 1, 2540.505, 1247.505, 126.4913, 0.9250245, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+138, 27737, 595, 3, 1, 2545.149, 1252.06, 126.2658, 0.2443461, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+139, 27737, 595, 3, 1, 2551.554, 1239.584, 125.4468, 4.590216, 120, 5, 1), -- 27737 (Area: 4100) +(@GUID+140, 27737, 595, 3, 1, 2550.498, 1247.44, 125.5242, 4.24115, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+141, 27737, 595, 3, 1, 2555.76, 1206.637, 126.8258, 1.762783, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+142, 27737, 595, 3, 1, 2570.634, 1178.631, 125.9873, 2.670354, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+143, 27737, 595, 3, 1, 2544.546, 1233.477, 126.8366, 0.2617994, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+144, 27737, 595, 3, 1, 2561.324, 1186.026, 126.4857, 3.996804, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+145, 27737, 595, 3, 1, 2571.687, 1164.973, 126.3542, 2.063297, 120, 5, 1), -- 27737 (Area: 4100) (Auras: 42726 - 42726) +(@GUID+146, 27737, 595, 3, 1, 2563.486, 1192.775, 126.1027, 2.111848, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+147, 27737, 595, 3, 1, 2563.203, 1203.705, 125.7591, 6.265732, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+148, 27737, 595, 3, 1, 2574.435, 1170.58, 126.0365, 4.13643, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+149, 27737, 595, 3, 1, 2519.148, 1282.076, 129.3335, 1.675516, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+150, 27737, 595, 3, 1, 2487.284, 1355.895, 132.0378, 5.166174, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+151, 27737, 595, 3, 1, 2486.355, 1381.331, 130.2177, 0.8377581, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+152, 27737, 595, 3, 1, 2537.23, 1274.154, 127.247, 5.201081, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+153, 27737, 595, 3, 1, 2482.333, 1378.755, 129.8668, 4.445682, 120, 5, 1), -- 27737 (Area: 4100) (Auras: 42726 - 42726) +(@GUID+154, 27737, 595, 3, 1, 2514.438, 1294.972, 130.8045, 4.537856, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+155, 27737, 595, 3, 1, 2495.49, 1351.598, 132.5921, 5.899213, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+156, 27737, 595, 3, 1, 2527.383, 1289.23, 129.802, 0.6457718, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+157, 27737, 595, 3, 1, 2488.743, 1364.121, 130.6187, 0.9599311, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+158, 27737, 595, 3, 1, 2492.943, 1370.252, 130.7567, 4.747295, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+159, 27737, 595, 3, 1, 2527.926, 1279.266, 128.2349, 2.111848, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+160, 27737, 595, 3, 1, 2512.307, 1285.777, 130.3244, 1.361357, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+161, 27737, 595, 3, 1, 2501.182, 1354.545, 132.4567, 2.635447, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+162, 27737, 595, 3, 1, 2528.756, 1270.082, 128.0023, 2.722714, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+163, 27737, 595, 3, 1, 2534.166, 1281.988, 128.3769, 1.22173, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+164, 27737, 595, 3, 1, 2478.309, 1366.715, 130.1298, 3.036873, 120, 5, 1), -- 27737 (Area: 4100) +(@GUID+165, 27737, 595, 3, 1, 2518.97, 1276.149, 128.4369, 0.6981317, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+166, 27737, 595, 3, 1, 2539.054, 1267.989, 126.5578, 5.026548, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+167, 27737, 595, 3, 1, 2546.093, 1260.12, 126.4856, 5.113815, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+168, 27737, 595, 3, 1, 2494.707, 1357.887, 131.7789, 5.410521, 120, 5, 1), -- 27737 (Area: 4100) +(@GUID+169, 27737, 595, 3, 1, 2520.985, 1296.503, 130.6993, 1.134464, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+170, 27737, 595, 3, 1, 2483.547, 1369.328, 129.7479, 0.3141593, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+171, 27737, 595, 3, 1, 2461.695, 1405.834, 130.6046, 2.321288, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+172, 27737, 595, 3, 1, 2485.281, 1401.199, 130.993, 0.926355, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+173, 27737, 595, 3, 1, 2480.869, 1387.697, 129.9826, 1.989675, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+174, 27737, 595, 3, 1, 2484.152, 1391.818, 130.3346, 1.832596, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+175, 27737, 595, 3, 1, 2474.796, 1386.799, 129.2887, 4.18879, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+176, 27737, 595, 3, 1, 2474.894, 1398.443, 130.355, 1.780236, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+177, 27737, 595, 3, 1, 2470.626, 1403.028, 130.578, 4.223697, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+178, 27737, 595, 3, 1, 2469.058, 1411.237, 131.0699, 4.782202, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+179, 27737, 595, 3, 1, 2496.014, 1388.685, 131.2523, 3.263766, 120, 5, 1), -- 27737 (Area: 4100) +(@GUID+180, 27737, 595, 3, 1, 2463.726, 1416.033, 130.9224, 4.502949, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+181, 27737, 595, 3, 1, 2457.688, 1415.661, 130.2885, 1.343904, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+182, 27737, 595, 3, 1, 2445.796, 1420.992, 130.3097, 1.780236, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+183, 27737, 595, 3, 1, 2461.943, 1422.238, 130.9959, 5.480334, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+184, 27737, 595, 3, 1, 2437.17, 1420.377, 130.4104, 3.874631, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+185, 27737, 595, 3, 1, 2467.397, 1419.898, 131.3669, 6.178465, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+186, 27737, 595, 3, 1, 2427.73, 1416.372, 130.616, 1.343904, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+187, 27737, 595, 3, 1, 2453.945, 1422.732, 130.7179, 2.548181, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+188, 27737, 595, 3, 1, 2433.062, 1428.894, 131.3722, 4.118977, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+189, 27737, 595, 3, 1, 2446.571, 1428.854, 131.1397, 4.625123, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+190, 27737, 595, 3, 1, 2454.021, 1429.103, 131.2739, 0.2792527, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+191, 27737, 595, 3, 1, 2455.682, 1435.659, 131.8695, 4.066617, 120, 5, 1), -- 27737 (Area: 4100) +(@GUID+192, 27737, 595, 3, 1, 2427.347, 1424.508, 131.1206, 3.700098, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+193, 27737, 595, 3, 1, 2461.234, 1428.908, 131.2317, 0.418879, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+194, 27737, 595, 3, 1, 2464.28, 1425.138, 131.1465, 4.939282, 120, 5, 1), -- 27737 (Area: 4100) +(@GUID+195, 27737, 595, 3, 1, 2439.296, 1427.013, 130.9965, 0.2268928, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+196, 27737, 595, 3, 1, 2442.111, 1435.992, 131.7104, 4.13643, 120, 5, 1), -- 27737 (Area: 4100) (Auras: ) +(@GUID+197, 27731, 595, 3, 1, 2577.112, 1156.938, 126.5042, 1.466077, 120, 5, 1), -- 27731 (Area: 4100) +(@GUID+198, 27731, 595, 3, 1, 2573.414, 1154.276, 126.5274, 0.4363323, 120, 5, 1), -- 27731 (Area: 4100) +(@GUID+199, 27731, 595, 3, 1, 2575.825, 1152.61, 126.6092, 0.3490658, 120, 5, 1), -- 27731 (Area: 4100) +(@GUID+200, 27731, 595, 3, 1, 2497.87, 1359.616, 131.4152, 1.396263, 120, 5, 1), -- 27731 (Area: 4100) +(@GUID+201, 27731, 595, 3, 1, 2498.424, 1361.842, 131.0335, 1.082104, 120, 5, 1); -- 27731 (Area: 4100) diff --git a/sql/updates/world/2015_04_19_00_world.sql b/sql/updates/world/2015_04_19_00_world.sql new file mode 100644 index 00000000000..9a11cc65e77 --- /dev/null +++ b/sql/updates/world/2015_04_19_00_world.sql @@ -0,0 +1,5 @@ +-- +SET @GUID := 143596; +DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN -@GUID-89 AND -@GUID-0 AND `source_type`=0; +UPDATE `smart_scripts` SET `action_type`=11, `action_param1`=36421 WHERE `entryorguid`= 1999500 AND `Source_type`= 9 AND `id`= 17; +UPDATE `creature` SET `MovementType`=0 WHERE `guid`=120692; diff --git a/sql/updates/world/2015_04_19_01_world.sql b/sql/updates/world/2015_04_19_01_world.sql new file mode 100644 index 00000000000..41f1629fef9 --- /dev/null +++ b/sql/updates/world/2015_04_19_01_world.sql @@ -0,0 +1 @@ +UPDATE `smart_scripts` SET `action_type`=85, `action_param1`=36569, `action_param2`=2, `comment`='Triggger - LOS -Cast Vision Guide: Quest Complete' WHERE `entryorguid`=21321 AND `source_type`=0 AND `id`=0 AND `link`=1; diff --git a/sql/updates/world/2015_04_19_02_world.sql b/sql/updates/world/2015_04_19_02_world.sql new file mode 100644 index 00000000000..c29783ca265 --- /dev/null +++ b/sql/updates/world/2015_04_19_02_world.sql @@ -0,0 +1,83 @@ +-- Highland Mustang SAI +SET @ENTRY := 26472; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,8,0,100,0,49266,0,0,0,69,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Highland Mustang - On Spell Hit(Dangle Wild Carrot) - Move To Player"), +(@ENTRY,0,1,2,34,0,100,0,0,1,0,0,103,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Highland Mustang - On Reached Point 1 - Set Rooted Off"), +(@ENTRY,0,2,0,61,0,100,0,0,1,0,0,85,49282,0,0,0,0,0,1,0,0,0,0,0,0,0,"Highland Mustang - On Reached Point 1 - Invoker Cast 'Ride Highland Mustang'"), +(@ENTRY,0,3,0,27,0,100,0,0,0,0,0,103,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Highland Mustang - On Passenger Boarded - Remove Root"), +(@ENTRY,0,4,5,8,0,100,1,49319,0,0,0,89,10,0,0,0,0,0,1,0,0,0,0,0,0,0,"Highland Mustang - On Spellhit 'Scare Highland Mustang' - Flee For Assist (No Repeat)"), +(@ENTRY,0,5,6,61,0,100,0,0,0,0,0,11,49323,0,0,0,0,0,7,0,0,0,0,0,0,0,"Highland Mustang - On Spellhit 'Scare Highland Mustang' - Cast 'Highland Mustang Spooking Credit' (No Repeat)"), +(@ENTRY,0,6,0,61,0,100,0,0,0,0,0,41,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Highland Mustang - On Spellhit 'Scare Highland Mustang' - Despawn In 5000 ms (No Repeat)"); + +SET @LEADER := 105333; +DELETE FROM `creature_formations` WHERE `leaderGUID`=@LEADER; +INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`) VALUES +(@LEADER, @LEADER, 0, 0, 2), +(@LEADER, 105334, 6, 20, 2), +(@LEADER, 105307, 6, 60, 2), +(@LEADER, 105327, 6, 100, 2), +(@LEADER, 105332, 6, 140, 2), +(@LEADER, 105330, 6, 180, 2), +(@LEADER, 105331, 6, 220, 2), +(@LEADER, 105310, 6, 260, 2), +(@LEADER, 105325, 6, 290, 2), +(@LEADER, 105308, 6, 340, 2); + +-- Pathing for Highland Mustang Entry: 26472 'TDB FORMAT' +SET @NPC := 105333; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4427.042,`position_y`=-4339.906,`position_z`=156.9126 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4427.042,-4339.906,156.9126,0,0,1,0,100,0), -- 12:00:19 +(@PATH,2,4408.496,-4311.258,159.5146,0,0,1,0,100,0), -- 12:00:25 +(@PATH,3,4395.234,-4306.927,159.0624,0,0,1,0,100,0), -- 12:00:28 +(@PATH,4,4357.375,-4353.118,158.7053,0,0,1,0,100,0), -- 12:00:32 +(@PATH,5,4358.002,-4387.411,154.6664,0,0,1,0,100,0), -- 12:00:37 +(@PATH,6,4350.741,-4420.083,151.4936,0,0,1,0,100,0), -- 12:00:41 +(@PATH,7,4355.459,-4451.332,147.9055,0,0,1,0,100,0), -- 12:00:45 +(@PATH,8,4382.324,-4459.469,141.1845,0,0,1,0,100,0), -- 12:00:49 +(@PATH,9,4389.952,-4415.67,148.3579,0,0,1,0,100,0), -- 12:00:53 +(@PATH,10,4397.468,-4374.768,153.7379,0,0,1,0,100,0); -- 12:00:58 +-- 0x203930476019DA0000000D0000337E18 .go 4427.042 -4339.906 156.9126 + +SET @LEADER := 105349; +DELETE FROM `creature_formations` WHERE `leaderGUID`=@LEADER; +INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`) VALUES +(@LEADER, @LEADER, 0, 0, 2), +(@LEADER, 105304, 6, 20, 2), +(@LEADER, 105303, 6, 60, 2), +(@LEADER, 105305, 6, 100, 2), +(@LEADER, 105301, 6, 140, 2), +(@LEADER, 105283, 6, 180, 2), +(@LEADER, 105302, 6, 220, 2), +(@LEADER, 105350, 6, 260, 2), +(@LEADER, 105322, 6, 290, 2), +(@LEADER, 105321, 6, 340, 2); + +-- Pathing for Highland Mustang Entry: 26472 'TDB FORMAT' +SET @NPC := 105349; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4402.506,`position_y`=-4058.453,`position_z`=178.0393 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4402.506,-4058.453,178.0393,0,0,1,0,100,0), -- 11:54:03 +(@PATH,2,4409.204,-4045.754,177.6823,0,0,1,0,100,0), -- 11:54:07 +(@PATH,3,4437.108,-4006.367,180.2671,0,0,1,0,100,0), -- 11:54:09 +(@PATH,4,4444.708,-3989.958,182.246,0,0,1,0,100,0), -- 11:54:13 +(@PATH,5,4449.759,-3956.142,185.0904,0,0,1,0,100,0), -- 11:54:15 +(@PATH,6,4428.842,-3946.839,183.3041,0,0,1,0,100,0), -- 11:54:18 +(@PATH,7,4415.667,-3952.115,181.8032,0,0,1,0,100,0), -- 11:54:21 +(@PATH,8,4397.648,-3971.361,180.6909,0,0,1,0,100,0), -- 11:54:24 +(@PATH,9,4390.27,-4002.242,179.2844,0,0,1,0,100,0), -- 11:54:28 +(@PATH,10,4391.74,-4008.471,178.8489,0,0,1,0,100,0), -- 11:54:30 +(@PATH,11,4385.273,-4030.866,179.386,0,0,1,0,100,0), -- 11:54:31 +(@PATH,12,4376.343,-4062.502,181.3641,0,0,1,0,100,0), -- 11:54:34 +(@PATH,13,4392.244,-4068.051,179.3222,0,0,1,0,100,0); -- 11:54:37 +-- 0x203930476019DA0000000D00003393C1 .go 4402.506 -4058.453 178.0393 diff --git a/sql/updates/world/2015_04_23_00_world.sql b/sql/updates/world/2015_04_23_00_world.sql new file mode 100644 index 00000000000..d89aef32ca2 --- /dev/null +++ b/sql/updates/world/2015_04_23_00_world.sql @@ -0,0 +1,12 @@ +-- +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=18 AND SourceEntry IN (46598,49078); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES +(18,34776,46598,0,0,31,0,3,0,0,0,0,'','Require unit for spellclick'), +(18,35069,46598,0,0,31,0,3,0,0,0,0,'','Require unit for spellclick'), +(18,35431,46598,0,0,31,0,3,0,0,0,0,'','Require unit for spellclick'), +(18,35433,46598,0,0,31,0,3,0,0,0,0,'','Require unit for spellclick'), +(18,28312,46598,0,0,31,0,3,0,0,0,0,'','Require unit for spellclick'), +(18,32627,46598,0,0,31,0,3,0,0,0,0,'','Require unit for spellclick'), +(18,25334,46598,0,0,9,0,11652,0,0,0,0,'','Player must have The Plains of Nasam taken but not completed to use Horde Siege tank'), +(18,27587,46598,0,0,31,0,3,0,0,0,0,'','Only npc for spellclick'), +(18,27587,49078,0,0,9,0,12326,0,0,0,0,'','Required quest active for spellclick'); diff --git a/sql/updates/world/2015_04_23_01_world.sql b/sql/updates/world/2015_04_23_01_world.sql new file mode 100644 index 00000000000..f9da048bdb6 --- /dev/null +++ b/sql/updates/world/2015_04_23_01_world.sql @@ -0,0 +1,22 @@ +DELETE FROM `event_scripts` WHERE `id`=18223; +INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `dataint`, `x`, `y`, `z`, `o`) VALUES +(18223, 0, 10, 23837, 180000, 0, 2629.2, 8.1333, 26.347, 0.401426); + +DELETE FROM `smart_scripts` WHERE `entryorguid`=23837 AND `source_type`=0 AND `id` =6; +DELETE FROM `smart_scripts` WHERE `entryorguid`=27249 AND `source_type`=0 AND `id`>2; + +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(23837, 0, 6, 0, 11, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 27249, 0, 0, 0, 0, 0, 0, 'ELM General Purpose Bunny - On Just Summoned - Set Data to Alystros the Verdant Keeper'), +(27249, 0, 3, 4, 38, 0, 100, 0, 1, 1, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Alystros the Verdant Keeper - On Data Set - Set Emote State None'), +(27249, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Alystros the Verdant Keeper - On Data Set - Set Unit Flags'), +(27249, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 4, 3605, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Alystros the Verdant Keeper - On Data Set - Play Sound 3605'), +(27249, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 100, 0, 0, 0, 0, 0, 0, 'Alystros the Verdant Keeper - On Data Set - Attack'); + +UPDATE `creature_template` SET `InhabitType`=4 WHERE `entry`=27249; + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceGroup`=7 AND `SourceEntry`=23837; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(22, 7, 23837, 0, 0, 23, 1, 4179, 0, 0, 0, 0, 0, '', 'Only run SAI at Emerald Dragonshrine'), +(22, 7, 23837, 0, 1, 23, 1, 3979, 0, 0, 0, 0, 0, '', 'Only run SAI at Emerald Dragonshrine'); + +UPDATE `gameobject` SET `position_x`=2642.311523, `position_y`=-19.100948, `position_z`=1.434421 WHERE `guid`=99753; diff --git a/sql/updates/world/2015_04_24_00_world.sql b/sql/updates/world/2015_04_24_00_world.sql new file mode 100644 index 00000000000..17f3c09e31e --- /dev/null +++ b/sql/updates/world/2015_04_24_00_world.sql @@ -0,0 +1,42 @@ +-- Manual Spawn Randy Whizzlesprocket +SET @GUID := 49056; +DELETE FROM `creature` WHERE `guid` = @GUID; +INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`) VALUES +(@GUID, 17288, 540, 0, 0, 2, 1, 0, 0, 131.106, 254.520, -45.236, 3.951, 7200, 0, 0, 6104, 0, 0, 0, 0, 0); + +-- Missing 2xEmblem of Justice from quest 'Imprisoned in the citadel' +UPDATE `quest_template` SET `RewardItemId1` = 29434, `RewardItemCount1` = 2 WHERE `Id` IN (9524,9525); + +-- Update Shattered Hand Executioner loot Table +UPDATE `creature_loot_template` SET `LootMode` = 8, `GroupId` = 1, `Chance` = 0 WHERE `Entry` = 20585; +DELETE FROM `creature_loot_template` WHERE `Entry` = 20585 AND `Item` IN (31716,29434,22829,22832,24726); +INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(20585, 31716, 0, 100, 1, 2|4|8, 0, 1, 1, NULL), -- Unused Axe +(20585, 29434, 0, 100, 0, 8, 0, 1, 1, NULL), -- 1x Emblem of Justice (3 Prisoners Rescued) +(20585, 22829, 0, 0, 0, 2|4|8, 2, 2, 8, NULL), -- Greater Potions +(20585, 22832, 0, 0, 0, 2|4|8, 2, 2, 8, NULL), +(20585, 24726, 24726, 100, 0, 4|8, 0, 1, 1, NULL); -- Scroll of XXXX VI + +DELETE FROM `smart_scripts` WHERE `entryorguid` = 17301 AND `source_type` = 0; +UPDATE `creature_template` SET `AIName` = '', ScriptName = 'boss_shattered_executioner', `flags_extra` = 0 WHERE `entry` = 17301; +UPDATE `creature_template` SET `unit_flags` = 33088 WHERE `entry` IN (17301,20585); +UPDATE `creature_template` SET `unit_flags` = 33555200 WHERE `entry` IN (19523,19524,20572,20573); +UPDATE `creature_template` SET `flags_extra` = 0 WHERE `entry` = 20585; + +DELETE FROM `areatrigger_scripts` WHERE `entry` = 4524; +INSERT INTO `areatrigger_scripts` (`entry`, `ScriptName`) VALUES +(4524, 'at_nethekurse_exit'); +DELETE FROM `spell_script_names` WHERE `spell_id` IN (39288,39289,39290); +INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES +(39288, 'spell_kargath_executioner'), +(39289, 'spell_kargath_executioner'), +(39290, 'spell_kargath_executioner'); + +UPDATE `gameobject_template` SET `flags` = 34 WHERE `entry` IN (182539,182540); -- Sniffed value +-- Missing texts +SET @KARGATH := 16808; +SET @BROADCAST := 13721; +DELETE FROM `creature_text` WHERE `entry` = @KARGATH AND `groupid` IN (3,4); +INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(@KARGATH, 3, 0, 'The Alliance dares to intrude this far into my fortress? Bring out the Honor Hold prisoners and call for the executioner! They''ll pay with their lives for this trespass!', 14, 0, 100, 0, 0, 0, @BROADCAST+0, 3, 'kargath SAY_CALL_EXECUTIONER_A'), +(@KARGATH, 4, 0, 'Thrall''s false Horde dares to intrude this far into my fortress? Bring out the Thrallmar prisoners and call for the executioner! They''ll pay with their lives for this trespass!', 14, 0, 100, 0, 0, 0, @BROADCAST+1, 3, 'kargath SAY_CALL_EXECUTIONER_H'); diff --git a/sql/updates/world/2015_04_26_00_world.sql b/sql/updates/world/2015_04_26_00_world.sql new file mode 100644 index 00000000000..5c13aab122a --- /dev/null +++ b/sql/updates/world/2015_04_26_00_world.sql @@ -0,0 +1,2 @@ +-- +UPDATE smart_scripts SET event_param1=44 WHERE entryorguid=33519 AND source_type=0 AND id=2; diff --git a/sql/updates/world/2015_04_26_01_world.sql b/sql/updates/world/2015_04_26_01_world.sql new file mode 100644 index 00000000000..b7c45c1f987 --- /dev/null +++ b/sql/updates/world/2015_04_26_01_world.sql @@ -0,0 +1,6 @@ +-- +UPDATE `spell_linked_spell` SET `type`=0 WHERE `spell_trigger`=44869 AND `spell_effect`=44866 AND `type`=1; + +DELETE FROM `spell_linked_spell` WHERE `spell_trigger`=46021 AND `spell_effect`=44852; +INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES +(46021,44852,0,'Transported to the spectral realm turn Sathrovarr Hostile'); diff --git a/sql/updates/world/2015_04_26_02_world.sql b/sql/updates/world/2015_04_26_02_world.sql new file mode 100644 index 00000000000..ea20aae2f7a --- /dev/null +++ b/sql/updates/world/2015_04_26_02_world.sql @@ -0,0 +1,7 @@ +-- +SET @ENTRY := 18225; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,1,54,0,100,0,0,0,0,0,85,31961,0,0,0,0,0,1,0,0,0,0,0,0,0,"Fire Bomb Target - On Just Summoned - InvokerCast 'Fire Bomb'"), +(@ENTRY,0,1,0,61,0,100,0,0,0,0,0,11,31963,0,0,0,0,0,1,0,0,0,0,0,0,0,"Fire Bomb Target - On Just Summoned - Cast to Summon Fire Bomb"); diff --git a/sql/updates/world/2015_04_26_03_world_335.sql b/sql/updates/world/2015_04_26_03_world_335.sql new file mode 100644 index 00000000000..47e7cc7336f --- /dev/null +++ b/sql/updates/world/2015_04_26_03_world_335.sql @@ -0,0 +1,8 @@ +-- +DELETE FROM `gossip_menu` WHERE `Entry`=2944 AND `text_id` IN (3656, 3658); +INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES (2944, 3656), (2944, 3658); +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup`=2944; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`, `ErrorTextId`,`ScriptName`,`Comment`, `NegativeCondition`) VALUES +(14,2944,3656,0,8,878,0,0,0,'','Show gossip menu text if Tribes at War is not rewarded', 1), +(14,2944,3658,0,8,878,0,0,0,'','Show gossip menu text if Tribes at War rewarded', 0), +(14,2944,3670,0,8,906,0,0,0,'','Show gossip menu text if Betrayal from Within is rewarded', 0); diff --git a/sql/updates/world/2015_04_26_04_world.sql b/sql/updates/world/2015_04_26_04_world.sql new file mode 100644 index 00000000000..2f8698932b5 --- /dev/null +++ b/sql/updates/world/2015_04_26_04_world.sql @@ -0,0 +1,2 @@ +-- +UPDATE `event_scripts` SET `x`=453.896027, `y`=-3039.76147, `z`=91.785370 WHERE `id`=2980; diff --git a/sql/updates/world/2015_04_26_05_world.sql b/sql/updates/world/2015_04_26_05_world.sql new file mode 100644 index 00000000000..d870128a55d --- /dev/null +++ b/sql/updates/world/2015_04_26_05_world.sql @@ -0,0 +1,3 @@ +-- +DELETE FROM `spell_custom_attr` WHERE `entry`=34709; +INSERT INTO `spell_custom_attr` (`entry`, `attributes`) VALUES (34709, 20480); diff --git a/sql/updates/world/2015_04_26_06_world.sql b/sql/updates/world/2015_04_26_06_world.sql new file mode 100644 index 00000000000..014c19cd96e --- /dev/null +++ b/sql/updates/world/2015_04_26_06_world.sql @@ -0,0 +1,5 @@ +-- +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=8776; +DELETE FROM `smart_scripts` WHERE `entryorguid`=8776 AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(8776, 0, 0, 0, 0, 0, 100, 0, 3000, 5000, 3000, 5000, 11, 9591, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Emerald Dragon Whelp - IC - Cast Acid Spit'); diff --git a/sql/updates/world/2015_04_26_07_world.sql b/sql/updates/world/2015_04_26_07_world.sql new file mode 100644 index 00000000000..e23229e7f49 --- /dev/null +++ b/sql/updates/world/2015_04_26_07_world.sql @@ -0,0 +1,37 @@ +-- +UPDATE `creature_template_addon` SET `path_id`=840110 where entry=18672; +UPDATE `creature` SET `position_x`= 2632.754883, `position_y`= 666.366272, `position_z`= 54.313442 where guid=84011; + +DELETE FROM `waypoint_data` WHERE (`id`=840110); +INSERT INTO `waypoint_data` VALUES +(840110, 1, 2632.754883, 666.366272, 54.313442, 0, 0, 0, 0, 100, 0), +(840110, 2, 2641.033936, 699.843994, 55.907993, 0, 0, 0, 0, 100, 0), +(840110, 3, 2630.856689, 717.567749, 56.091911, 0, 0, 0, 0, 100, 0), +(840110, 4, 2616.059082, 733.542419, 55.553276, 0, 0, 0, 0, 100, 0), +(840110, 5, 2612.300537, 753.559082, 56.344002, 0, 0, 0, 0, 100, 0), +(840110, 6, 2618.891357, 769.588013, 56.859760, 0, 0, 0, 0, 100, 0), +(840110, 7, 2645.688965, 794.580811, 58.398026, 0, 0, 0, 0, 100, 0), +(840110, 8, 2643.975586, 834.932800, 61.554504, 0, 0, 0, 0, 100, 0), +(840110, 9, 2647.164795, 876.138306, 68.730583, 0, 0, 0, 0, 100, 0), +(840110, 10, 2641.644775, 880.880432, 69.211929, 0, 0, 0, 0, 100, 0), +(840110, 11, 2618.110596, 882.025818, 68.473541, 0, 0, 0, 0, 100, 0), +(840110, 12, 2545.682129, 886.177429, 65.102127, 0, 0, 0, 0, 100, 0), +(840110, 13, 2468.068848, 880.862915, 62.804623, 0, 0, 0, 0, 100, 0), +(840110, 14, 2409.444336, 867.694763, 57.740276, 0, 0, 0, 0, 100, 0), +(840110, 15, 2325.662109, 839.279724, 53.848293, 0, 0, 0, 0, 100, 0), +(840110, 16, 2291.826416, 823.477051, 54.449596, 0, 0, 0, 0, 100, 0), +(840110, 17, 2325.662109, 839.279724, 53.848293, 0, 0, 0, 0, 100, 0), +(840110, 18, 2409.444336, 867.694763, 57.740276, 0, 0, 0, 0, 100, 0), +(840110, 19, 2468.068848, 880.862915, 62.804623, 0, 0, 0, 0, 100, 0), +(840110, 20, 2545.682129, 886.177429, 65.102127, 0, 0, 0, 0, 100, 0), +(840110, 21, 2618.110596, 882.025818, 68.473541, 0, 0, 0, 0, 100, 0), +(840110, 22, 2641.644775, 880.880432, 69.211929, 0, 0, 0, 0, 100, 0), +(840110, 23, 2647.164795, 876.138306, 68.730583, 0, 0, 0, 0, 100, 0), +(840110, 24, 2643.975586, 834.932800, 61.554504, 0, 0, 0, 0, 100, 0), +(840110, 25, 2645.688965, 794.580811, 58.398026, 0, 0, 0, 0, 100, 0), +(840110, 26, 2618.891357, 769.588013, 56.859760, 0, 0, 0, 0, 100, 0), +(840110, 27, 2612.300537, 753.559082, 56.344002, 0, 0, 0, 0, 100, 0), +(840110, 28, 2616.059082, 733.542419, 55.553276, 0, 0, 0, 0, 100, 0), +(840110, 29, 2630.856689, 717.567749, 56.091911, 0, 0, 0, 0, 100, 0), +(840110, 30, 2641.033936, 699.843994, 55.907993, 0, 0, 0, 0, 100, 0), +(840110, 31, 2632.754883, 666.366272, 54.313442, 0, 0, 0, 0, 100, 0); diff --git a/sql/updates/world/2015_04_26_08_world.sql b/sql/updates/world/2015_04_26_08_world.sql new file mode 100644 index 00000000000..be53b1ebc60 --- /dev/null +++ b/sql/updates/world/2015_04_26_08_world.sql @@ -0,0 +1,16 @@ +-- +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=8506; +DELETE FROM `smart_scripts` WHERE `entryorguid`=8506 AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(8506, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0,0,'Eranikus the Chained - Just summoned - Talk'); + +DELETE FROM `creature_text` WHERE `entry` IN (8506); +INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(8506, 0, 0, 'My eyes! It burns... it burns...', 15, 0, 100, 0, 0, 0, 4438, 0, 'Eranikus the Chained'), +(8506, 0, 1, 'Torture me no more! Release me, mortal! The Swamp of Sorrows... mortal... please...', 15, 0, 100, 0, 0, 0, 4439, 0, 'Eranikus the Chained'), +(8506, 0, 2, 'Foolish mortal, I will rend your soul in two once I am released!', 15, 0, 100, 0, 0, 0, 4440, 0, 'Eranikus the Chained'), +(8506, 0, 3, 'You are an agent of their wicked god, fool. I will see you destroyed!', 15, 0, 100, 0, 0, 0, 4441, 0, 'Eranikus the Chained'), +(8506, 0, 4, 'My soul is not a trinket! Mortal, you must release me from these chains!', 15, 0, 100, 0, 0, 0, 4442, 0, 'Eranikus the Chained'), +(8506, 0, 5, 'It hurts so much... Itharius, my old friend... Please help me...', 15, 0, 100, 0, 0, 0, 4443, 0, 'Eranikus the Chained'), +(8506, 0, 6, 'Will the nightmare ever end?! I cannot force myself awake!', 15, 0, 100, 0, 0, 0, 4444, 0, 'Eranikus the Chained'), +(8506, 0, 7, 'My charge to watch the temple has failed... my corrupted soul knows no peace...', 15, 0, 100, 0, 0, 0, 4445, 0, 'Eranikus the Chained'); diff --git a/sql/updates/world/2015_04_26_09_world.sql b/sql/updates/world/2015_04_26_09_world.sql new file mode 100644 index 00000000000..e450fd5c64e --- /dev/null +++ b/sql/updates/world/2015_04_26_09_world.sql @@ -0,0 +1,4 @@ +-- +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry`=66741; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES +(17,0,66741,0,0,40,0,0,0,0,0,0,0,'','Chum the Water can only be used in water'); diff --git a/sql/updates/world/2015_04_27_00_world.sql b/sql/updates/world/2015_04_27_00_world.sql new file mode 100644 index 00000000000..01db583444e --- /dev/null +++ b/sql/updates/world/2015_04_27_00_world.sql @@ -0,0 +1,19 @@ +SET @OGUID := 29765; + +DELETE FROM `gameobject` WHERE `guid` BETWEEN @OGUID+0 AND @OGUID+9 AND `id` IN(184203,184204,184205,185114,185115,185117,185118,184566,184567,184568); +INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES +(@OGUID+0, 184203, 548, 3, 1, 26.32847, -654.4946, 15.47422, 3.141593, 0, 0, 1, -4.371139E-08, 7200, 255, 1), -- 184203 (Area: 0) +(@OGUID+1, 184204, 548, 3, 1, 26.32847, -654.4946, 15.47422, 3.141593, 0, 0, 1, -4.371139E-08, 7200, 255, 1), -- 184204 (Area: 0) +(@OGUID+2, 184205, 548, 3, 1, 26.32847, -654.4946, 15.47422, 3.141593, 0, 0, 1, -4.371139E-08, 7200, 255, 1), -- 184205 (Area: 0) +(@OGUID+3, 185114, 548, 3, 1, 457.4108, -555.2696, -6.996453, 1.832595, 0, 0, 1, -4.371139E-08, 7200, 255, 0), -- 185114 (Area: 0) +(@OGUID+4, 185115, 548, 3, 1, 373.1394, -465.1063, 30.71642, 3.228859, 0, 0, 1, -4.371139E-08, 7200, 255, 0), -- 185115 (Area: 0) +(@OGUID+5, 185117, 548, 3, 1, -245.7294, -381.393, -0.187039, 2.879789, 0, 0, 1, -4.371139E-08, 7200, 255, 0), -- 185117 (Area: 0) +(@OGUID+6, 185118, 548, 3, 1, 123.2582, -432.3567, -1.196554, 4.799657, 0, 0, 1, -4.371139E-08, 7200, 255, 0), -- 185118 (Area: 0) +(@OGUID+7, 184566, 530, 1, 1, 811.1944, 6872.574, -66.931, 0, 0, 0, 1, -4.371139E-08, 120, 255, 1), -- 184566 (Area: 3905) +(@OGUID+8, 184567, 530, 1, 1, 811.1944, 6859.181, -66.931, 3.141593, 0, 0, 1, -4.371139E-08, 120, 255, 1), -- 184567 (Area: 3905) +(@OGUID+9, 184568, 548, 3, 1, 47.75674, -581.8289, 4.655592, 3.141593, 0, 0, 1, -4.371139E-08, 7200, 255, 1); -- 184568 (Area: 0) + +UPDATE `gameobject_template` SET `faction`=1375, `flags`=32 WHERE `entry`IN(184203,184204,184205); +UPDATE `gameobject_template` SET `flags`=16 WHERE `entry`IN(185114,185115,185117,185118); +UPDATE `gameobject_template` SET `flags`=2 WHERE `entry`=184566; +UPDATE `gameobject_template` SET `flags`=32 WHERE `entry`=184568; diff --git a/sql/updates/world/2015_04_27_01_world.sql b/sql/updates/world/2015_04_27_01_world.sql new file mode 100644 index 00000000000..af4f0fc4faf --- /dev/null +++ b/sql/updates/world/2015_04_27_01_world.sql @@ -0,0 +1,25 @@ +UPDATE `creature_template` SET `gossip_menu_id`=1882 WHERE `entry`=3389; +DELETE FROM `smart_scripts` WHERE `entryorguid`=3389 AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(3389, 0, 1, 0, 11, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Regthar Deathgate - On Spawn - Set Phase 1 '), +(3389, 0, 2, 3, 19, 1, 100, 0, 4021, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Regthar Deathgate - On quest accept - say text 0 '), +(3389, 0, 3, 4, 61, 1, 100, 0, 0, 0, 0, 0, 80, 338900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Regthar Deathgate - Linked with Previous Event - Run script'), +(3389, 0, 4, 0, 61, 1, 100, 0, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Regthar Deathgate - Linked with Previous Event - Set Phase 2'), +(3389, 0, 5, 0, 1, 0, 100, 0, 300000, 300000, 300000, 300000, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Regthar Deathgate - OOC (P2) - Set Phase 1 '), +(3389, 0, 6, 0, 20, 0, 100, 0, 4021, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Regthar Deathgate - On quest Reward - Set Phase 1 '), +(3389, 0, 7, 8, 62, 1, 100, 0, 1882, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Regthar Deathgate - On Gossip Option Select - say text 0 '), +(3389, 0, 8, 9, 61, 1, 100, 0, 0, 0, 0, 0, 80, 338900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Regthar Deathgate - Linked with Previous Event - Run script'), +(3389, 0, 9, 0, 61, 1, 100, 0, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Regthar Deathgate - Linked with Previous Event - Set Phase 2'), +(3389, 0, 10, 0, 62, 0, 100, 0, 1882, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Regthar Deathgate - On Gossip Option Select - Close Gossip '); + +DELETE FROM `gossip_menu` WHERE `entry`=1882; +INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES +(1882, 2533); + +DELETE FROM `gossip_menu_option` WHERE `menu_id`=1882; +INSERT INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `OptionBroadcastTextID`, `option_id`, `npc_option_npcflag`, `action_menu_id`, `action_poi_id`, `box_coded`, `box_money`, `box_text`, `BoxBroadcastTextID`) VALUES +(1882, 0, 0, 'Where is Warlord Krom''zar?', 4793, 1, 1, 0, 0, 0, 0, '', 0); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=1882; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(15, 1882, 0, 0, 0, 9, 0, 4021, 0, 0, 0, 0, 0, '', 'Regthar Deathgate show gossip only if player on counterattack'); diff --git a/sql/updates/world/2015_04_28_00_world.sql b/sql/updates/world/2015_04_28_00_world.sql new file mode 100644 index 00000000000..ee651b8473c --- /dev/null +++ b/sql/updates/world/2015_04_28_00_world.sql @@ -0,0 +1,2 @@ +UPDATE `creature_template` SET `gossip_menu_id`=10503 WHERE `entry`=33533; +UPDATE `creature_template` SET `gossip_menu_id`=10504 WHERE `entry`=33532; diff --git a/sql/updates/world/2015_04_28_01_world.sql b/sql/updates/world/2015_04_28_01_world.sql new file mode 100644 index 00000000000..3de29012072 --- /dev/null +++ b/sql/updates/world/2015_04_28_01_world.sql @@ -0,0 +1,8 @@ +DELETE FROM `mail_loot_template` WHERE `Entry` in(269,270); + +INSERT INTO `mail_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(269, 46545, 0, 100, 0, 1, 0, 1, 1, NULL), -- Oracle +(270, 46544, 0, 100, 0, 1, 0, 1, 1, NULL); -- Wolvar + +UPDATE `quest_template` SET `RewardMailTemplateId`=269,`RewardMailDelay`=900 WHERE `Id`=13959; +UPDATE `quest_template` SET `RewardMailTemplateId`=270,`RewardMailDelay`=900 WHERE `Id`=13960; diff --git a/sql/updates/world/2015_04_28_02_world.sql b/sql/updates/world/2015_04_28_02_world.sql new file mode 100644 index 00000000000..c3eebf4ad7a --- /dev/null +++ b/sql/updates/world/2015_04_28_02_world.sql @@ -0,0 +1,5 @@ +DELETE FROM `gossip_menu` WHERE `entry`=8563; +INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES +(8563, 10732); -- Blood Elf + +UPDATE `creature_template` SET `gossip_menu_id`=8563 WHERE `entry`=22817; diff --git a/sql/updates/world/2015_04_28_03_world.sql b/sql/updates/world/2015_04_28_03_world.sql new file mode 100644 index 00000000000..fac605b9f06 --- /dev/null +++ b/sql/updates/world/2015_04_28_03_world.sql @@ -0,0 +1,5 @@ +UPDATE `creature_template` SET `gossip_menu_id`=5820 WHERE `entry`=14444; + +DELETE FROM `gossip_menu` WHERE `entry`=5820; +INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES +(5820, 6993); diff --git a/sql/updates/world/2015_04_29_00_world.sql b/sql/updates/world/2015_04_29_00_world.sql new file mode 100644 index 00000000000..14ff30d9e14 --- /dev/null +++ b/sql/updates/world/2015_04_29_00_world.sql @@ -0,0 +1,2 @@ +-- +UPDATE `gameobject` SET `spawnMask`=1 WHERE `guid` IN (29765,29766,29767,29768,29769,29770,29771,29774); diff --git a/sql/updates/world/2015_04_29_01_world.sql b/sql/updates/world/2015_04_29_01_world.sql new file mode 100644 index 00000000000..e8ec2fb4ae8 --- /dev/null +++ b/sql/updates/world/2015_04_29_01_world.sql @@ -0,0 +1 @@ +UPDATE `quest_template` SET `RequiredRaces`=690 WHERE `Id`=915; diff --git a/sql/updates/world/2015_05_01_00_world.sql b/sql/updates/world/2015_05_01_00_world.sql new file mode 100644 index 00000000000..779d7368d85 --- /dev/null +++ b/sql/updates/world/2015_05_01_00_world.sql @@ -0,0 +1,4 @@ +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=24108; +DELETE FROM `smart_scripts` WHERE `entryorguid`=24108 AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(24108,0,0,0,8,0,100,0,42436,0,0,0,11,47173,0,0,0,0,0,7,0,0,0,0,0,0,0,'S.T.O.U.T. - On Spellhit Drink! - Cast Credit'); diff --git a/sql/updates/world/2015_05_01_01_world.sql b/sql/updates/world/2015_05_01_01_world.sql new file mode 100644 index 00000000000..8c33ba7714d --- /dev/null +++ b/sql/updates/world/2015_05_01_01_world.sql @@ -0,0 +1,7 @@ +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=16348; +DELETE FROM `smart_scripts` WHERE `entryorguid`=16348 AND `source_type`=0; +DELETE FROM `smart_scripts` WHERE `entryorguid`=16345 AND `source_type`=0 AND `id`=1; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(16345, 0, 1, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 28904, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Shadowpine Catlord - On Reset - Cast to summon Ghostclaw Lynx'), +(16348, 0, 0, 0, 0, 0, 100, 0, 3000, 7000, 8000, 12000, 11, 16828, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Ghostclaw Lynx - IC - Cast Claw'), +(16348, 0, 1, 0, 0, 0, 100, 0, 5000, 10000, 10000, 150000, 11, 59881, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Ghostclaw Lynx - IC - Cast Rake'); diff --git a/sql/updates/world/2015_05_01_02_world.sql b/sql/updates/world/2015_05_01_02_world.sql new file mode 100644 index 00000000000..480b3d70009 --- /dev/null +++ b/sql/updates/world/2015_05_01_02_world.sql @@ -0,0 +1,8 @@ +DELETE FROM `creature` WHERE `id`=3939; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=3939; +DELETE FROM `smart_scripts` WHERE `entryorguid`=3939 AND `source_type`=0; +DELETE FROM `smart_scripts` WHERE `entryorguid`=3265 AND `source_type`=0 AND `id`=2; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(3265, 0, 2, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 6479, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Razormane Hunter- On Reset - Cast to summon Razormane Wolf'), +(3939, 0, 0, 0, 0, 0, 100, 0, 3000, 7000, 6000, 9000, 11, 17255, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Razormane Wolf - IC - Cast Bite'), +(3939, 0, 1, 0, 0, 0, 100, 0, 5000, 10000, 22000, 25000, 11, 24604, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Razormane Wolf - IC - Furious Howl'); diff --git a/sql/updates/world/2015_05_01_03_world.sql b/sql/updates/world/2015_05_01_03_world.sql new file mode 100644 index 00000000000..dd528f8d704 --- /dev/null +++ b/sql/updates/world/2015_05_01_03_world.sql @@ -0,0 +1,4 @@ +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceGroup` IN (2, 3) AND `SourceEntry`=27743; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`, `ErrorTextId`,`ScriptName`,`Comment`, `NegativeCondition`) VALUES +(22,2,27743,0,31,3,27743,0,0,'','event will not trigger if the spell is casted by 27743', 1), +(22,3,27743,0,31,3,27743,0,0,'','event will not trigger if the spell is casted by 27743', 1); diff --git a/sql/updates/world/2015_05_01_04_world.sql b/sql/updates/world/2015_05_01_04_world.sql new file mode 100644 index 00000000000..a84fde8bb5c --- /dev/null +++ b/sql/updates/world/2015_05_01_04_world.sql @@ -0,0 +1,200 @@ +DELETE FROM `spell_area` WHERE `spell` IN (40624, 40627, 40628); +INSERT INTO `spell_area` (`spell`, `area`, `racemask`, `gender`, `autocast`, `quest_start_status`, `quest_end_status`) VALUES +(40624,3767,0,2,1,0,0), -- Apexis Vibrations +(40624,3768,0,2,1,0,0), +(40624,3769,0,2,1,0,0), +(40624,3770,0,2,1,0,0), +(40624,3771,0,2,1,0,0), +(40624,3772,0,2,1,0,0), +(40624,3773,0,2,1,0,0), +(40624,3774,0,2,1,0,0), +(40624,3775,0,2,1,0,0), +(40624,3776,0,2,1,0,0), +(40624,3777,0,2,1,0,0), +(40624,3778,0,2,1,0,0), +(40624,3779,0,2,1,0,0), +(40624,3780,0,2,1,0,0), +(40624,3781,0,2,1,0,0), +(40624,3782,0,2,1,0,0), +(40624,3783,0,2,1,0,0), +(40624,3784,0,2,1,0,0), +(40624,3785,0,2,1,0,0), +(40624,3786,0,2,1,0,0), +(40624,3787,0,2,1,0,0), +(40624,3824,0,2,1,0,0), +(40624,3825,0,2,1,0,0), +(40624,3826,0,2,1,0,0), +(40624,3827,0,2,1,0,0), +(40624,3828,0,2,1,0,0), +(40624,3829,0,2,1,0,0), +(40624,3830,0,2,1,0,0), +(40624,3831,0,2,1,0,0), +(40624,3832,0,2,1,0,0), +(40624,3833,0,2,1,0,0), +(40624,3834,0,2,1,0,0), +(40624,3844,0,2,1,0,0), +(40624,3855,0,2,1,0,0), +(40624,3862,0,2,1,0,0), +(40624,3863,0,2,1,0,0), +(40624,3864,0,2,1,0,0), +(40624,3865,0,2,1,0,0), +(40624,3866,0,2,1,0,0), +(40624,3867,0,2,1,0,0), +(40624,3903,0,2,1,0,0), +(40624,3904,0,2,1,0,0), +(40624,3918,0,2,1,0,0), +(40624,3919,0,2,1,0,0), +(40624,3922,0,2,1,0,0), +(40624,3924,0,2,1,0,0), +(40624,3925,0,2,1,0,0), +(40624,3931,0,2,1,0,0), +(40624,3942,0,2,1,0,0), +(40624,3951,0,2,1,0,0), +(40624,3952,0,2,1,0,0), +(40624,3953,0,2,1,0,0), +(40624,3954,0,2,1,0,0), +(40624,3960,0,2,1,0,0), +(40624,3962,0,2,1,0,0), +(40624,3963,0,2,1,0,0), +(40624,3964,0,2,1,0,0), +(40624,3969,0,2,1,0,0), +(40624,3970,0,2,1,0,0), +(40624,3971,0,2,1,0,0), +(40624,3972,0,2,1,0,0), +(40624,4008,0,2,1,0,0), +(40627,3767,0,2,1,0,0), -- Apexis Emanations +(40627,3768,0,2,1,0,0), +(40627,3769,0,2,1,0,0), +(40627,3770,0,2,1,0,0), +(40627,3771,0,2,1,0,0), +(40627,3772,0,2,1,0,0), +(40627,3773,0,2,1,0,0), +(40627,3774,0,2,1,0,0), +(40627,3775,0,2,1,0,0), +(40627,3776,0,2,1,0,0), +(40627,3777,0,2,1,0,0), +(40627,3778,0,2,1,0,0), +(40627,3779,0,2,1,0,0), +(40627,3780,0,2,1,0,0), +(40627,3781,0,2,1,0,0), +(40627,3782,0,2,1,0,0), +(40627,3783,0,2,1,0,0), +(40627,3784,0,2,1,0,0), +(40627,3785,0,2,1,0,0), +(40627,3786,0,2,1,0,0), +(40627,3787,0,2,1,0,0), +(40627,3824,0,2,1,0,0), +(40627,3825,0,2,1,0,0), +(40627,3826,0,2,1,0,0), +(40627,3827,0,2,1,0,0), +(40627,3828,0,2,1,0,0), +(40627,3829,0,2,1,0,0), +(40627,3830,0,2,1,0,0), +(40627,3831,0,2,1,0,0), +(40627,3832,0,2,1,0,0), +(40627,3833,0,2,1,0,0), +(40627,3834,0,2,1,0,0), +(40627,3844,0,2,1,0,0), +(40627,3855,0,2,1,0,0), +(40627,3862,0,2,1,0,0), +(40627,3863,0,2,1,0,0), +(40627,3864,0,2,1,0,0), +(40627,3865,0,2,1,0,0), +(40627,3866,0,2,1,0,0), +(40627,3867,0,2,1,0,0), +(40627,3903,0,2,1,0,0), +(40627,3904,0,2,1,0,0), +(40627,3918,0,2,1,0,0), +(40627,3919,0,2,1,0,0), +(40627,3922,0,2,1,0,0), +(40627,3924,0,2,1,0,0), +(40627,3925,0,2,1,0,0), +(40627,3931,0,2,1,0,0), +(40627,3942,0,2,1,0,0), +(40627,3951,0,2,1,0,0), +(40627,3952,0,2,1,0,0), +(40627,3953,0,2,1,0,0), +(40627,3954,0,2,1,0,0), +(40627,3960,0,2,1,0,0), +(40627,3962,0,2,1,0,0), +(40627,3963,0,2,1,0,0), +(40627,3964,0,2,1,0,0), +(40627,3969,0,2,1,0,0), +(40627,3970,0,2,1,0,0), +(40627,3971,0,2,1,0,0), +(40627,3972,0,2,1,0,0), +(40627,4008,0,2,1,0,0), +(40628,3767,0,2,1,0,0), -- Apexis Enlightment +(40628,3768,0,2,1,0,0), +(40628,3769,0,2,1,0,0), +(40628,3770,0,2,1,0,0), +(40628,3771,0,2,1,0,0), +(40628,3772,0,2,1,0,0), +(40628,3773,0,2,1,0,0), +(40628,3774,0,2,1,0,0), +(40628,3775,0,2,1,0,0), +(40628,3776,0,2,1,0,0), +(40628,3777,0,2,1,0,0), +(40628,3778,0,2,1,0,0), +(40628,3779,0,2,1,0,0), +(40628,3780,0,2,1,0,0), +(40628,3781,0,2,1,0,0), +(40628,3782,0,2,1,0,0), +(40628,3783,0,2,1,0,0), +(40628,3784,0,2,1,0,0), +(40628,3785,0,2,1,0,0), +(40628,3786,0,2,1,0,0), +(40628,3787,0,2,1,0,0), +(40628,3824,0,2,1,0,0), +(40628,3825,0,2,1,0,0), +(40628,3826,0,2,1,0,0), +(40628,3827,0,2,1,0,0), +(40628,3828,0,2,1,0,0), +(40628,3829,0,2,1,0,0), +(40628,3830,0,2,1,0,0), +(40628,3831,0,2,1,0,0), +(40628,3832,0,2,1,0,0), +(40628,3833,0,2,1,0,0), +(40628,3834,0,2,1,0,0), +(40628,3844,0,2,1,0,0), +(40628,3855,0,2,1,0,0), +(40628,3862,0,2,1,0,0), +(40628,3863,0,2,1,0,0), +(40628,3864,0,2,1,0,0), +(40628,3865,0,2,1,0,0), +(40628,3866,0,2,1,0,0), +(40628,3867,0,2,1,0,0), +(40628,3903,0,2,1,0,0), +(40628,3904,0,2,1,0,0), +(40628,3918,0,2,1,0,0), +(40628,3919,0,2,1,0,0), +(40628,3922,0,2,1,0,0), +(40628,3924,0,2,1,0,0), +(40628,3925,0,2,1,0,0), +(40628,3931,0,2,1,0,0), +(40628,3942,0,2,1,0,0), +(40628,3951,0,2,1,0,0), +(40628,3952,0,2,1,0,0), +(40628,3953,0,2,1,0,0), +(40628,3954,0,2,1,0,0), +(40628,3960,0,2,1,0,0), +(40628,3962,0,2,1,0,0), +(40628,3963,0,2,1,0,0), +(40628,3964,0,2,1,0,0), +(40628,3969,0,2,1,0,0), +(40628,3970,0,2,1,0,0), +(40628,3971,0,2,1,0,0), +(40628,3972,0,2,1,0,0), +(40628,4008,0,2,1,0,0); + +DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (-40623,-40625,-40626) AND `spell_effect` IN (-40624,-40627,-40628); +INSERT INTO `spell_linked_spell` (`spell_trigger`,`spell_effect`,`type`,`comment`) VALUES +(-40623, -40624, 0, 'Remove Swiftness if Apexis Vibrations is removed'), +(-40625, -40627, 0, 'Remove Swiftness if Apexis Emanations is removed'), +(-40626, -40628, 0, 'Remove Swiftness if Apexis Enlightment is removed'); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry` IN (40624, 40627, 40628); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ScriptName`, `Comment`) VALUES +(17,0,40624,0,0,1,0,40623, '', 'Swiftness - Only cast if Apexis Vibrations is active'), +(17,0,40627,0,0,1,0,40625, '', 'Swiftness - Only cast if Apexis Emanations is active'), +(17,0,40628,0,0,1,0,40626, '', 'Swiftness - Only cast if Apexis Enlightment is active'); diff --git a/sql/updates/world/2015_05_01_05_world.sql b/sql/updates/world/2015_05_01_05_world.sql new file mode 100644 index 00000000000..a7a4edc673b --- /dev/null +++ b/sql/updates/world/2015_05_01_05_world.sql @@ -0,0 +1,2 @@ +UPDATE `creature` SET `Map`=622, `position_x`=-3.57706, `position_y`=0.507499, `position_z`=34.0151, `spawndist`=0, `MovementType`=0 WHERE `guid`=134846; +UPDATE `creature` SET `Map`=623, `position_x`=6.08656, `position_y`=-0.107499, `position_z`=20.5756, `spawndist`=0, `MovementType`=0 WHERE `guid`=134847; diff --git a/sql/updates/world/2015_05_01_06_world.sql b/sql/updates/world/2015_05_01_06_world.sql new file mode 100644 index 00000000000..602e4be700c --- /dev/null +++ b/sql/updates/world/2015_05_01_06_world.sql @@ -0,0 +1,64 @@ +DELETE FROM `creature_loot_template` WHERE `entry` IN (36597, 39167) AND `Item`= 51315; -- Delete Sealed Chest from 10 difficulties loot list +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=1 AND `SourceEntry`=51315; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`Scriptname`,`Comment`) VALUES +-- Lich King 25N +(1,39166,51315,0,0,2,0,51315,1,1,1,0 ,'' , 'Sealed Chest will drop only if the player doesn''t have it already'), +(1,39166,51315,0,0,3,0,49623,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player is wielding Shadowmourne'), +(1,39166,51315,0,0,28,0,24914,0,0,1,0 ,'' , 'Sealed Chest will drop only if the player hasn''t "Personal Property" in their quest log completed'), +(1,39166,51315,0,0,9,0,24748,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player has "The Lich King''s Last Stand" in their quest log'), +-- +(1,39166,51315,0,1,2,0,51315,1,1,1,0 ,'' , 'Sealed Chest will drop only if the player doesn''t have it already'), +(1,39166,51315,0,1,3,0,49623,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player is wielding Shadowmourne'), +(1,39166,51315,0,1,8,0,24914,0,0,1,0 ,'' , 'Sealed Chest will drop only if the player hasn''t "Personal Property" in their quest log Rewarded'), +(1,39166,51315,0,1,9,0,24748,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player has "The Lich King''s Last Stand" in their quest log'), +-- +(1,39166,51315,0,2,2,0,51315,1,1,1,0 ,'' , 'Sealed Chest will drop only if the player doesn''t have it already'), +(1,39166,51315,0,2,3,0,49623,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player is wielding Shadowmourne'), +(1,39166,51315,0,2,28,0,24914,0,0,1,0 ,'' , 'Sealed Chest will drop only if the player hasn''t "Personal Property" in their quest log completed'), +(1,39166,51315,0,2,8,0,24748,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player has "The Lich King''s Last Stand" rewarded'), +-- +(1,39166,51315,0,3,2,0,51315,1,1,1,0 ,'' , 'Sealed Chest will drop only if the player doesn''t have it already'), +(1,39166,51315,0,3,3,0,49623,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player is wielding Shadowmourne'), +(1,39166,51315,0,3,8,0,24914,0,0,1,0 ,'' , 'Sealed Chest will drop only if the player hasn''t "Personal Property" in their quest log Rewarded'), +(1,39166,51315,0,3,8,0,24748,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player has "The Lich King''s Last Stand" rewarded'), + +-- +(1,39166,51315,0,4,2,0,51315,1,1,1,0 ,'' , 'Sealed Chest will drop only if the player doesn''t have it already'), +(1,39166,51315,0,4,3,0,49623,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player is wielding Shadowmourne'), +(1,39166,51315,0,4,28,0,24914,0,0,1,0 ,'' , 'Sealed Chest will drop only if the player hasn''t "Personal Property" in their quest log completed'), +(1,39166,51315,0,4,28,0,24748,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player has "The Lich King''s Last Stand" Completed'), + +(1,39166,51315,0,5,2,0,51315,1,1,1,0 ,'' , 'Sealed Chest will drop only if the player doesn''t have it already'), +(1,39166,51315,0,5,3,0,49623,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player is wielding Shadowmourne'), +(1,39166,51315,0,5,8,0,24914,0,0,1,0 ,'' , 'Sealed Chest will drop only if the player hasn''t "Personal Property" in their quest log Rewarded'), +(1,39166,51315,0,5,28,0,24748,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player has "The Lich King''s Last Stand" Completed'), +-- Lich King 25H +(1,39168,51315,0,0,2,0,51315,1,1,1,0 ,'' , 'Sealed Chest will drop only if the player doesn''t have it already'), +(1,39168,51315,0,0,3,0,49623,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player is wielding Shadowmourne'), +(1,39168,51315,0,0,28,0,24914,0,0,1,0 ,'' , 'Sealed Chest will drop only if the player hasn''t "Personal Property" in their quest log completed'), +(1,39168,51315,0,0,9,0,24748,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player has "The Lich King''s Last Stand" in their quest log'), +-- +(1,39168,51315,0,1,2,0,51315,1,1,1,0 ,'' , 'Sealed Chest will drop only if the player doesn''t have it already'), +(1,39168,51315,0,1,3,0,49623,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player is wielding Shadowmourne'), +(1,39168,51315,0,1,8,0,24914,0,0,1,0 ,'' , 'Sealed Chest will drop only if the player hasn''t "Personal Property" in their quest log Rewarded'), +(1,39168,51315,0,1,9,0,24748,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player has "The Lich King''s Last Stand" in their quest log'), +-- +(1,39168,51315,0,2,2,0,51315,1,1,1,0 ,'' , 'Sealed Chest will drop only if the player doesn''t have it already'), +(1,39168,51315,0,2,3,0,49623,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player is wielding Shadowmourne'), +(1,39168,51315,0,2,28,0,24914,0,0,1,0 ,'' , 'Sealed Chest will drop only if the player hasn''t "Personal Property" in their quest log completed'), +(1,39168,51315,0,2,8,0,24748,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player has "The Lich King''s Last Stand" rewarded'), +-- +(1,39168,51315,0,3,2,0,51315,1,1,1,0 ,'' , 'Sealed Chest will drop only if the player doesn''t have it already'), +(1,39168,51315,0,3,3,0,49623,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player is wielding Shadowmourne'), +(1,39168,51315,0,3,8,0,24914,0,0,1,0 ,'' , 'Sealed Chest will drop only if the player hasn''t "Personal Property" in their quest log Rewarded'), +(1,39168,51315,0,3,8,0,24748,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player has "The Lich King''s Last Stand" rewarded'), +-- +(1,39168,51315,0,4,2,0,51315,1,1,1,0 ,'' , 'Sealed Chest will drop only if the player doesn''t have it already'), +(1,39168,51315,0,4,3,0,49623,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player is wielding Shadowmourne'), +(1,39168,51315,0,4,28,0,24914,0,0,1,0 ,'' , 'Sealed Chest will drop only if the player hasn''t "Personal Property" in their quest log completed'), +(1,39168,51315,0,4,28,0,24748,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player has "The Lich King''s Last Stand" Completed'), +-- +(1,39168,51315,0,5,2,0,51315,1,1,1,0 ,'' , 'Sealed Chest will drop only if the player doesn''t have it already'), +(1,39168,51315,0,5,3,0,49623,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player is wielding Shadowmourne'), +(1,39168,51315,0,5,8,0,24914,0,0,1,0 ,'' , 'Sealed Chest will drop only if the player hasn''t "Personal Property" in their quest log Rewarded'), +(1,39168,51315,0,5,28,0,24748,0,0,0,0 ,'' , 'Sealed Chest will drop only if the player has "The Lich King''s Last Stand" Completed'); diff --git a/sql/updates/world/2015_05_01_07_world.sql b/sql/updates/world/2015_05_01_07_world.sql new file mode 100644 index 00000000000..ac088727f79 --- /dev/null +++ b/sql/updates/world/2015_05_01_07_world.sql @@ -0,0 +1 @@ +UPDATE `creature_text` SET `text`= "This is the last time I get caught! I promise! Bye!", `BroadcastTextId`=15308, `Language`=0 WHERE `entry`=20812; diff --git a/sql/updates/world/2015_05_01_08_world.sql b/sql/updates/world/2015_05_01_08_world.sql new file mode 100644 index 00000000000..b41400f7d7c --- /dev/null +++ b/sql/updates/world/2015_05_01_08_world.sql @@ -0,0 +1,87 @@ +SET @GUID :=5625; -- 1 GOB guid set by TC +SET @cover := 164819; +SET @Portrait :=164825; +SET @Assemblage :=8905; +SET @ReliCoffer :=174564; +SET @ReliCoffer2 :=174563; +SET @ReliCoffer3 :=174562; +SET @ReliCoffer4 :=174561; +SET @ReliCoffer5 :=174560; +SET @ReliCoffer6 :=174559; +SET @ReliCoffer7 :=174554; +SET @ReliCoffer8 :=174555; +SET @ReliCoffer9 :=174556; +SET @ReliCoffer10 :=174557; +SET @ReliCoffer11 :=174566; +SET @ReliCoffer12 :=174558; +SET @DOOM :=9476; +SET @Secret :=174553; +SET @Dark :=174565; + +DELETE FROM `gameobject` WHERE `guid` IN (@GUID); +INSERT INTO `gameobject` (`guid`,`id`,`map`,`spawnMask`,`phaseMask`,`position_x`,`position_y`,`position_z`,`orientation`,`rotation0`,`rotation1`,`rotation2`,`rotation3`,`spawntimesecs`,`animprogress`,`state`) VALUES +(@GUID,165554,230,1,1, 802.907, -356.401, -48.9423,0,0,0,-0.382683, 0.92388, 7200, 100, 1); + +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry` IN (@Assemblage, @DOOM); +UPDATE `gameobject_template` SET `AIName`='SmartGameObjectAI' WHERE `entry` IN (@cover, @Dark, @Portrait, @ReliCoffer, @ReliCoffer2, @ReliCoffer3, @ReliCoffer4, @ReliCoffer5, @ReliCoffer6, @ReliCoffer7, @ReliCoffer8, @ReliCoffer9, @ReliCoffer10, @ReliCoffer11, @ReliCoffer12, @Secret); + +DELETE FROM `smart_scripts` WHERE `entryorguid`=@Assemblage AND `source_type`=0; +DELETE FROM `smart_scripts` WHERE `entryorguid`=-46610 AND `source_type`=0; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@Assemblage*100 AND `source_type`=9; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@Assemblage*100+1 AND `source_type`=9; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@DOOM AND `source_type`=0; +DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@cover, @Dark, @Secret, @ReliCoffer, @ReliCoffer2, @ReliCoffer3, @ReliCoffer4, @ReliCoffer5, @ReliCoffer6, @ReliCoffer7, @ReliCoffer8, @ReliCoffer9, @ReliCoffer10, @ReliCoffer11, @ReliCoffer12) AND `source_type`=1; +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(@cover, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, @Portrait, 5, 0, 0, 0, 0, 0, 'Cover - On gossip hello - Remove flags'), +(@ReliCoffer, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, @Assemblage, 30, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Set data'), +(@ReliCoffer, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160836, 10, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Remove flags'), +(@ReliCoffer2, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, @Assemblage, 30, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Set data'), +(@ReliCoffer2, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160836, 10, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Remove flags'), +(@ReliCoffer3, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, @Assemblage, 30, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Set data'), +(@ReliCoffer3, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160836, 10, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Remove flags'), +(@ReliCoffer4, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, @Assemblage, 30, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Set data'), +(@ReliCoffer4, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160836, 10, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Remove flags'), +(@ReliCoffer5, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, @Assemblage, 30, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Set data'), +(@ReliCoffer5, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160836, 10, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Remove flags'), +(@ReliCoffer6, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, @Assemblage, 30, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Set data'), +(@ReliCoffer6, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160836, 10, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Remove flags'), +(@ReliCoffer7, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, @Assemblage, 30, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Set data'), +(@ReliCoffer7, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160836, 10, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Remove flags'), +(@ReliCoffer8, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, @Assemblage, 30, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Set data'), +(@ReliCoffer8, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160836, 10, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Remove flags'), +(@ReliCoffer9, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, @Assemblage, 30, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Set data'), +(@ReliCoffer9, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160836, 10, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Remove flags'), +(@ReliCoffer10, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, @Assemblage, 30, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Set data'), +(@ReliCoffer10, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160836, 10, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Remove flags'), +(@ReliCoffer11, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, @Assemblage, 30, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Set data'), +(@ReliCoffer11, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160836, 10, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Remove flags'), +(@ReliCoffer12, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, @Assemblage, 30, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Set data'), +(@ReliCoffer12, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160836, 10, 0, 0, 0, 0, 0, 'ReliCoffer - On State 2 - Remove flags'), +(@Assemblage, 0, 0, 0, 38, 0, 100, 0, 0, 1, 0, 0, 63, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - On data set - Increment Counter 1'), -- the counter nbr 1 is incremented here +(@Assemblage, 0, 1, 2, 11, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - On Respawn - Set passif'), +(@Assemblage, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 18, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - On Respawn - Add unit_flag'), +(@Assemblage, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - On Respawn - SET PHASE EVENT 0'), +(@Assemblage, 0, 4, 0, 77, 0, 100, 1, 1, 12, 0, 0, 80, @Assemblage*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - On counter1=12 - Actionlist'), -- event triggred when the counter 1= 12 +(@Assemblage*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 19, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - Actionlist - Remmove unit flag'), +(@Assemblage*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - Actionlist - react agressif'), +(@Assemblage*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - Actionlist - SET PHASE EVENT 0'), +(@Assemblage, 0, 5, 0, 0, 0, 100, 0, 4000, 4000, 8000, 8000, 11, 15621, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - IC - Cast'), +(@Secret, 1, 0, 0, 70, 0, 100, 0, 2, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 161495, 10, 0, 0, 0, 0, 0, 'Secret - On State 2 - Remove flags'), +(@Dark, 1, 0, 0, 70, 0, 100, 0, 2, 0, 0, 0, 106, 16, 0, 0, 0, 0, 0, 20, 160845, 10, 0, 0, 0, 0, 0, '@Dark - On State 2 - Remove flags'), +(-46610, 0, 0, 0, 38, 0, 100, 0, 0, 1, 0, 0, 63, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - On data set - Increment Counter1'), -- the counter nbr 1 is incremented here +(-46610, 0, 1, 2, 11, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - On Respawn - Set passif'), +(-46610, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 18, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - On Respawn - Add unit_flag'), +(-46610, 0, 4, 0, 77, 0, 100, 1, 1, 12, 0, 0, 80, @Assemblage*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - On counter1=12 - Actionlist'), -- event triggred when the counter 1= 12 +(@Assemblage*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 19, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - Actionlist - Remmove unit flag'), +(@Assemblage*100+1, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - Actionlist - react agressif'), +(@Assemblage*100+1, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, @DOOM, 7, 0, 0, 0, 0, 8, 0, 0, 0, 813.737915, -347.550354, -50.578030, 0.670515, 'Assemblage - Actionlist - Summon'), +(@Assemblage*100+1, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - Actionlist - SET PHASE EVENT 0'), +(-46610, 0, 5, 0, 0, 0, 100, 0, 4000, 4000, 8000, 8000, 11, 15621, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Assemblage - IC - Cast'), +(@DOOM, 0, 0, 0, 0, 0, 100, 0, 4000, 4000, 8000, 8000, 11, 11971, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'DOOM - IC - Cast'), +(@DOOM, 0, 1, 0, 0, 0, 100, 0, 10000, 10000, 14000, 14000, 11, 15504, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'DOOM - IC - Cast'), +(@DOOM, 0, 2, 0, 6, 0, 100, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 20, 174553, 70, 0, 0, 0, 0, 0, 'DOOM - On death - Activate gob'), +(@DOOM, 0, 3, 0, 4, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'DOOM - On aggro - Talk'); + +DELETE FROM `creature_text` WHERE `entry`IN (@DOOM); +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextID`) VALUES +(@DOOM,0,0,"What are you doing? Intruders!!",14,0,100,0,0,0,'Watchman Doomgrip', 4962); diff --git a/sql/updates/world/2015_05_02_00_world.sql b/sql/updates/world/2015_05_02_00_world.sql new file mode 100644 index 00000000000..cbcf6bf17e5 --- /dev/null +++ b/sql/updates/world/2015_05_02_00_world.sql @@ -0,0 +1,10 @@ +SET @GUID := 16397; -- 1 creature guid Set by TC +DELETE FROM `creature` WHERE `id`=16123; +INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`,`curhealth`) VALUES +(@GUID, 16123, 0, 1, 1, -14457.221680, 448.084534, 20.406971, 6.115618, 600, 0); + +DELETE FROM `creature_template_addon` WHERE `entry` IN (16123, 16033, 16016); +INSERT INTO `creature_template_addon` (`entry`,`bytes1`,`bytes2`, `emote`, `auras`) VALUES +(16123,0,0,0,"27614 17327 44816"), +(16033,0,0,0,"27614 17327"), +(16016,0,0,0,"27614 17327"); diff --git a/sql/updates/world/2015_05_02_01_world.sql b/sql/updates/world/2015_05_02_01_world.sql new file mode 100644 index 00000000000..62c525b249d --- /dev/null +++ b/sql/updates/world/2015_05_02_01_world.sql @@ -0,0 +1,19 @@ +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry`=38606; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES +(17,0,38606,0,0,31,1,3,21326,0,0,0,0,'','Exorcism Feather can be used only on Raven''s Wood Leafbeard'); + +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry` IN (21326, 22226); +DELETE FROM `smart_scripts` WHERE `entryorguid` IN (21326, 22226) AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(21326, 0, 0, 0, 0, 0, 100, 0, 10000, 12000, 35000, 40000, 11, 37696, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Raven''s Wood Leafbeard - IC - cast Force of Nature'), +(21326, 0, 1, 2, 38, 0, 100, 0, 0, 1, 0, 0, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Raven''s Wood Leafbeard - On Data set - Set faction'), +(21326, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Raven''s Wood Leafbeard - On Data set - Show emote'), +(21326, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Raven''s Wood Leafbeard - On Data set - Set faction'), +(21326, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Raven''s Wood Leafbeard - On Data set - Evade'), +(21326, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 30000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Raven''s Wood Leafbeard - On Data set - Despawn'), +(22226, 0, 0, 0, 0, 0, 100, 0, 5000, 7000, 8000, 10000, 11, 36093, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Koi-Koi Spirit - IC - Ghost Strike'), +(22226, 0, 1, 0, 6, 0, 100, 0, 0, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 19, 21326, 40, 0, 0, 0, 0,0,'Koi-Koi Spirit - On death - Set data'); + +DELETE FROM `creature_text` WHERE `entry`= 21326; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`,`BroadcastTextId`) VALUES +(21326,0,0,'The %s appears very grateful to be free of the koi-koi spirit''s influence.',16,0,100,0,0,0,'Raven''s Wood Leafbeard ', 19943); diff --git a/sql/updates/world/2015_05_04_00_world.sql b/sql/updates/world/2015_05_04_00_world.sql new file mode 100644 index 00000000000..ca6f5657346 --- /dev/null +++ b/sql/updates/world/2015_05_04_00_world.sql @@ -0,0 +1,4 @@ +DELETE FROM `conditions` where `SourceTypeOrReferenceId`=17 AND `SourceEntry`=72590; + +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(17, 0, 72590, 0, 0,27, 1, 70, 3, 0, 0, 0, 0, '', 'Minimum Level for Runescroll of Fortitude on players (70)'); diff --git a/sql/updates/world/2015_05_09_00_world_335.sql b/sql/updates/world/2015_05_09_00_world_335.sql new file mode 100644 index 00000000000..003fa276542 --- /dev/null +++ b/sql/updates/world/2015_05_09_00_world_335.sql @@ -0,0 +1,2 @@ +-- +UPDATE `creature_equip_template` SET `itemEntry1`=2147, `itemEntry2`=2053, `VerifiedBuild`=0 WHERE `entry`=5809; diff --git a/sql/updates/world/2015_05_09_01_world_335.sql b/sql/updates/world/2015_05_09_01_world_335.sql new file mode 100644 index 00000000000..68f578812f8 --- /dev/null +++ b/sql/updates/world/2015_05_09_01_world_335.sql @@ -0,0 +1,4 @@ +-- +DELETE FROM `gameobject_template` WHERE `entry` IN (180055); +INSERT INTO `gameobject_template` (`entry`, `type`, `displayid`, `name`, `size`, `data0`, `data1`, `data2`, `data3`, `VerifiedBuild`) VALUES +(180055, 2, 51, 'Mysterious Wailing Caverns Chest', 0.4, 43, 6811, 2, 0, -18019); diff --git a/sql/updates/world/2015_05_09_02_world.sql b/sql/updates/world/2015_05_09_02_world.sql new file mode 100644 index 00000000000..e2e45095730 --- /dev/null +++ b/sql/updates/world/2015_05_09_02_world.sql @@ -0,0 +1,3 @@ +-- +UPDATE `creature_template` SET `InhabitType`=7 WHERE `entry` IN (28086, 28085); +UPDATE `smart_scripts` SET `target_type`=21, `target_param1`=8 WHERE `entryorguid` IN (32639, 32638, 32641, 32642) AND `id`=2; -- fix text target for Traveler's Tundra Mammoth's npcs diff --git a/sql/updates/world/2015_05_09_03_world.sql b/sql/updates/world/2015_05_09_03_world.sql new file mode 100644 index 00000000000..137ae636800 --- /dev/null +++ b/sql/updates/world/2015_05_09_03_world.sql @@ -0,0 +1,2 @@ +-- +DELETE FROM `creature_formations` WHERE `memberGUID` BETWEEN 45823 AND 45831; diff --git a/sql/updates/world/2015_05_09_04_world_335.sql b/sql/updates/world/2015_05_09_04_world_335.sql new file mode 100644 index 00000000000..814459be957 --- /dev/null +++ b/sql/updates/world/2015_05_09_04_world_335.sql @@ -0,0 +1,34 @@ +-- Remove Midsummer Double Spawns +DELETE FROM `creature` WHERE (`guid` IN (94696,94723,94698,94724) AND `id`=16781) OR (`guid`=94513 AND `id`=25994);-- Tanaris Horde +DELETE FROM `creature` WHERE (`guid` IN (94735,94734,94716,94733) AND `id`=16781) OR (`guid`=86895 AND `id`=25962);-- Tanaris Alliance +DELETE FROM `creature` WHERE (`guid` IN (94710,94656,94711,94694) AND `id`=16781) OR (`guid`=94518 AND `id`=25994);-- Stranglethorn Horde +DELETE FROM `creature` WHERE (`guid` IN (94553,94551,94554,94555) AND `id`=16781) OR (`guid`=86711 AND `id`=25962);-- Stranglethorn Alliance +DELETE FROM `creature` WHERE (`guid` IN (94557,94605,94556,94704) AND `id`=16781) OR (`guid`=90490 AND `id`=25962);-- Arathi Alliance +DELETE FROM `creature` WHERE (`guid` IN (94649,94738,94700,94579) AND `id`=16781) OR (`guid`=86704 AND `id`=25962);-- Silithus Alliance +DELETE FROM `creature` WHERE `guid` IN (202858,202859,202860,202861) AND `id`=16781;-- Ironforge +DELETE FROM `creature` WHERE `guid`=202862 AND `id`=16817; +DELETE FROM `creature` WHERE `guid`=202863 AND `id`=25975; +DELETE FROM `creature` WHERE `guid`=86165 AND `id`=26123; + +DELETE FROM `game_event_creature` WHERE `eventEntry`=1 AND `guid` IN (94696,94723,94698,94724,94513); +DELETE FROM `game_event_creature` WHERE `eventEntry`=1 AND `guid` IN (94735,94734,94716,94733,86895); +DELETE FROM `game_event_creature` WHERE `eventEntry`=1 AND `guid` IN (94710,94656,94711,94694,94518); +DELETE FROM `game_event_creature` WHERE `eventEntry`=1 AND `guid` IN (94553,94551,94554,94555,86711); +DELETE FROM `game_event_creature` WHERE `eventEntry`=1 AND `guid` IN (94557,94605,94556,94704,90490); +DELETE FROM `game_event_creature` WHERE `eventEntry`=1 AND `guid` IN (94649,94738,94700,94579,86704); +DELETE FROM `game_event_creature` WHERE `eventEntry`=1 AND `guid` IN (202858,202859,202860,202861,202862,202863,86165); + +DELETE FROM `gameobject` WHERE `guid` IN (51596,52357,50996,50855,50750,50747,52277,52467,51350,50692,52548,52284,51349);-- Tanaris horde +DELETE FROM `gameobject` WHERE `guid` IN (52273,52527,52275,50683,51343,52272,52279,50994,50854,50710,52466,50709,51342);-- Tanaris Alliance +DELETE FROM `gameobject` WHERE `guid` IN (51791,50690,52560,52333,52329,52511,50740,50741,50869,52399,52334);-- Stranglethorn horde +DELETE FROM `gameobject` WHERE `guid` IN (52393,52541,50682,51782,52325,51028,51797,51798,50784,50871,50785,51545,52331,52509); -- Stranglethorn Alliance +DELETE FROM `gameobject` WHERE `guid` IN (52335,51814,52409,51573,51014,51554,51579,51981,52412,52407,51578,50931,52481,52542,50836,51580,50553,51820,50802,50897,50803); -- Arathi Alliance +DELETE FROM `gameobject` WHERE `guid` IN (52344,50991,50743,50852,52463,50679,52267,52526);-- Silithus Alliance +DELETE FROM `gameobject` WHERE `guid`=49313;-- Silithus Horde + +DELETE FROM `game_event_gameobject` WHERE `eventEntry`=1 AND `guid` IN (51596,52357,50996,50855,50750,50747,52277,52467,51350,50692,52548,52284,51349); +DELETE FROM `game_event_gameobject` WHERE `eventEntry`=1 AND `guid` IN (52273,52527,52275,50683,51343,52272,52279,50994,50854,50710,52466,50709,51342); +DELETE FROM `game_event_gameobject` WHERE `eventEntry`=1 AND `guid` IN (51791,50690,52560,52333,52329,52511,50740,50741,50869,52399,52334); +DELETE FROM `game_event_gameobject` WHERE `eventEntry`=1 AND `guid` IN (52393,52541,50682,51782,52325,51028,51797,51798,50784,50871,50785,51545,52331,52509); +DELETE FROM `game_event_gameobject` WHERE `eventEntry`=1 AND `guid` IN (52335,51814,52409,51573,51014,51554,51579,51981,52412,52407,51578,50931,52481,52542,50836,51580,50553,51820,50802,50897,50803); +DELETE FROM `game_event_gameobject` WHERE `eventEntry`=1 AND `guid` IN (52344,50991,50743,50852,52463,50679,52267,52526); diff --git a/sql/updates/world/2015_05_09_05_world.sql b/sql/updates/world/2015_05_09_05_world.sql new file mode 100644 index 00000000000..41576ac375c --- /dev/null +++ b/sql/updates/world/2015_05_09_05_world.sql @@ -0,0 +1,835 @@ +-- Add SAI support for Lance a Lot achievement ID: 2836 +-- Champions SAI mechanic +SET @Sen_Valiant := 33285; +SET @Script := 3328500; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Sen_Valiant; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@Sen_Valiant; +DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid`=@Script; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@Sen_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - On Reset - Remove auras from Defend'), +(@Sen_Valiant,0,1,2,62,0,100,0,10469,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Sen Valiant - On gossip select - Close gossip'), +(@Sen_Valiant,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - store target'), +(@Sen_Valiant,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Call timed actionlist'), +(@Sen_Valiant,0,4,0,52,0,100,0,0,@Sen_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'Sen Valiant - On text over - Cast Charge'), +(@Sen_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Valiant - IC - Cast Thrust'), +(@Sen_Valiant,0,6,0,9,0,100,0,5,5,4000,7000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Valiant - On more than 5 yard range - Cast Shield-Breaker'), +(@Sen_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - IC - Move forward 12 yards'), +(@Sen_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Valiant - On 10-12 yard range - Cast Charge'), +(@Sen_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Cast Shield-Breaker'), +(@Sen_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - On HP% between 1% and 3% - Change faction to 35'), +(@Sen_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Say text'), +(@Sen_Valiant,0,12,13,61,0,100,0,0,0,0,0,85,62724,0,0,0,0,0,12,1,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@Sen_Valiant,0,13,14,61,0,100,0,0,0,0,0,85,64812,0,0,0,0,0,12,1,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Cast credit'), +(@Sen_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Evade'), +(@Sen_Valiant,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - On player killed - Say text'), +(@Sen_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Set unseen'), +(@Sen_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Despawn in 1 ms'), +-- Timed actionlist 1 +(@Script,9,1,0,0,0,100,0,0,0,0,0,42,0,1,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Set INVINCIBILITY'), +(@Script,9,2,0,0,0,100,0,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Set run ON'), +(@Script,9,3,0,0,0,100,0,0,0,0,0,11,62719,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast Defend on self/Layer 1/'), +(@Script,9,4,0,0,0,100,0,0,0,0,0,11,62719,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast Defend on self/Layer 2/'), +(@Script,9,5,0,0,0,100,0,0,0,0,0,11,62719,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast Defend on self/Layer 3/'), +(@Script,9,6,0,0,0,100,0,0,0,0,0,46,20,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Move forward 15 yards'), +(@Script,9,7,0,0,0,100,0,0,0,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Set run Off'), +(@Script,9,8,0,0,0,100,0,0,0,0,0,11,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast aura TriggerS for Defend /10 sec one/'), +(@Script,9,9,0,0,0,100,0,3500,3500,0,0,2,14,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Change faction to 14'), +(@Script,9,10,0,0,0,100,0,0,0,0,0,1,0,1500,0,0,0,0,2,0,0,0,0,0,0,0,'All champions - Script 1 - Say text'); +-- Argent Valiants texts +DELETE FROM `creature_text` WHERE `entry`= @Sen_Valiant; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextId`) VALUES +(@Sen_Valiant,0,0,'Ready yourself!',12,1,100,0,0,0,'Argent Valiant', 33757), +(@Sen_Valiant,0,1,'Prepare yourself!',12,1,100,0,0,0,'Argent Valiant', 33755), +(@Sen_Valiant,0,2,'On your guard!',12,1,100,0,0,0,'Argent Valiant', 33756), +(@Sen_Valiant,0,3,'Let it begin!',12,1,100,0,0,0,'Argent Valiant', 33758), +(@Sen_Valiant,1,0,'Victory is mine!',12,1,100,0,0,0,'Argent Valiant', 33777), +(@Sen_Valiant,1,1,'It seems you still need more practice. Perhaps another time.',12,1,100,0,0,0,'Argent Valiant', 33764), +(@Sen_Valiant,1,2,'I have won. Better luck another time, friend.',12,1,100,0,0,0,'Argent Valiant', 33779), +(@Sen_Valiant,1,3,'I am afraid you will need more practice to defeat me.',12,1,100,0,0,0,'Argent Valiant', 33778), +(@Sen_Valiant,2,0,'I yield to you.',12,1,100,0,0,0,'Argent Valiant', 33774), +(@Sen_Valiant,2,1,'That was a well fought battle. I yield to you.',12,1,100,0,0,0,'Argent Valiant', 33776), +(@Sen_Valiant,2,2,'It would seem I underestimated your skills. Well done.',12,1,100,0,0,0,'Argent Valiant', 33775), +(@Sen_Valiant,2,3,'I have been defeated. Good fight!',12,1,100,0,0,0,'Argent Valiant', 33760); +-- Add condition for gossip option to show only, if player has quest: The Grand Melee is on tournament mount and have the spear equiped +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup` IN (10469, 10468, 10470, 10472, 10473, 10466, 10464, 10471, 10465, 10467); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ConditionTarget`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`,`NegativeCondition`) VALUES +(15,10469,0,0,1,9,13772,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10469,0,0,1,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10469,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,2,9,13777,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10469,0,0,2,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10469,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,3,9,13782,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10469,0,0,3,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10469,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,4,9,13787,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10469,0,0,4,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10469,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,5,9,13767,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10469,0,0,5,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10469,0,0,5,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,5,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,6,9,13761,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10469,0,0,6,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10469,0,0,6,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,6,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,7,9,13745,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10469,0,0,7,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10469,0,0,7,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,7,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,8,9,13750,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10469,0,0,8,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10469,0,0,8,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,8,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,9,9,13756,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10469,0,0,9,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10469,0,0,9,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,9,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,10,9,13665,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10469,0,0,10,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10469,0,0,10,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10469,0,0,10,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,1,9,13772,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10468,0,0,1,1,64811,0,0,0,'','Show gossip menu only if don''t have the auran',1), +(15,10468,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,2,9,13777,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10468,0,0,2,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10468,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,3,9,13782,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10468,0,0,3,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10468,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,4,9,13787,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10468,0,0,4,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10468,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,5,9,13767,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10468,0,0,5,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10468,0,0,5,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,5,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,6,9,13761,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10468,0,0,6,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10468,0,0,6,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,6,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,7,9,13745,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10468,0,0,7,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10468,0,0,7,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,7,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,8,9,13750,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10468,0,0,8,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10468,0,0,8,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,8,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,9,9,13756,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10468,0,0,9,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10468,0,0,9,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,9,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,10,9,13665,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10468,0,0,10,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10468,0,0,10,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10468,0,0,10,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,1,9,13772,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10470,0,0,1,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10470,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,2,9,13777,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10470,0,0,2,1,64813,0,0,0,'','Show gossip menu only if don''t have the auran',1), +(15,10470,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,3,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10470,0,0,3,9,13782,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10470,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,4,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10470,0,0,4,9,13787,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10470,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,5,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10470,0,0,5,9,13767,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10470,0,0,5,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,5,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,6,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10470,0,0,6,9,13761,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10470,0,0,6,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,6,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,7,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10470,0,0,7,9,13745,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10470,0,0,7,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,7,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,8,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10470,0,0,8,9,13750,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10470,0,0,8,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,8,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,9,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10470,0,0,9,9,13756,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10470,0,0,9,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,9,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,10,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10470,0,0,10,9,13665,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10470,0,0,10,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10470,0,0,10,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,1,9,13772,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10472,0,0,1,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10472,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,2,9,13777,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10472,0,0,2,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10472,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,3,9,13782,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10472,0,0,3,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10472,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,4,9,13787,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10472,0,0,4,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10472,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,5,9,13767,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10472,0,0,5,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10472,0,0,5,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,5,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,6,9,13761,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10472,0,0,6,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10472,0,0,6,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,6,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,7,9,13745,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10472,0,0,7,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10472,0,0,7,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,7,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,8,9,13750,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10472,0,0,8,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10472,0,0,8,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,8,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,9,9,13756,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10472,0,0,9,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10472,0,0,9,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,9,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,10,9,13665,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10472,0,0,10,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10472,0,0,10,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10472,0,0,10,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,1,9,13772,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10473,0,0,1,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10473,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,2,9,13777,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10473,0,0,2,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10473,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,3,9,13782,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10473,0,0,3,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10473,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,4,9,13787,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10473,0,0,4,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10473,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,5,9,13767,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10473,0,0,5,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10473,0,0,5,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,5,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,6,9,13761,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10473,0,0,6,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10473,0,0,6,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,6,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,7,9,13745,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10473,0,0,7,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10473,0,0,7,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,7,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,8,9,13750,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10473,0,0,8,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10473,0,0,8,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,8,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,9,9,13756,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10473,0,0,9,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10473,0,0,9,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,9,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,10,9,13665,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10473,0,0,10,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10473,0,0,10,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10473,0,0,10,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,1,9,13772,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10466,0,0,1,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10466,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,2,9,13777,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10466,0,0,2,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10466,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,3,9,13782,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10466,0,0,3,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10466,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,4,9,13787,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10466,0,0,4,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10466,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,5,9,13767,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10466,0,0,5,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10466,0,0,5,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,5,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,6,9,13761,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10466,0,0,6,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10466,0,0,6,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,6,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,7,9,13745,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10466,0,0,7,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10466,0,0,7,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,7,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,8,9,13750,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10466,0,0,8,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10466,0,0,8,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,8,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,9,9,13756,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10466,0,0,9,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10466,0,0,9,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,9,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,10,9,13665,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10466,0,0,10,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10466,0,0,10,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10466,0,0,10,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,1,9,13772,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10464,0,0,1,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10464,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,2,9,13777,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10464,0,0,2,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10464,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,3,9,13782,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10464,0,0,3,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10464,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,4,9,13787,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10464,0,0,4,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10464,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,5,9,13767,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10464,0,0,5,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10464,0,0,5,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,5,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,6,9,13761,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10464,0,0,6,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10464,0,0,6,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,6,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,7,9,13745,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10464,0,0,7,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10464,0,0,7,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,7,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,8,9,13750,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10464,0,0,8,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10464,0,0,8,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,8,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,9,9,13756,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10464,0,0,9,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10464,0,0,9,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,9,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,10,9,13665,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10464,0,0,10,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10464,0,0,10,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10464,0,0,10,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,1,9,13772,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10471,0,0,1,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10471,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,2,9,13777,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10471,0,0,2,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10471,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,3,9,13782,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10471,0,0,3,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10471,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,4,9,13787,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10471,0,0,4,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10471,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,5,9,13767,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10471,0,0,5,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10471,0,0,5,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,5,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,6,9,13761,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10471,0,0,6,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10471,0,0,6,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,6,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,7,9,13745,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10471,0,0,7,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10471,0,0,7,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,7,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,8,9,13750,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10471,0,0,8,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10471,0,0,8,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,8,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,9,9,13756,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10471,0,0,9,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10471,0,0,9,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,9,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,10,9,13665,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10471,0,0,10,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10471,0,0,10,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10471,0,0,10,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,1,9,13772,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10465,0,0,1,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10465,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,2,9,13777,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10465,0,0,2,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10465,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,3,9,13782,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10465,0,0,3,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10465,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,4,9,13787,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10465,0,0,4,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10465,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,5,9,13767,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10465,0,0,5,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10465,0,0,5,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,5,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,6,9,13761,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10465,0,0,6,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10465,0,0,6,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,6,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,7,9,13745,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10465,0,0,7,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10465,0,0,7,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,7,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,8,9,13750,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10465,0,0,8,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10465,0,0,8,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,8,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,9,9,13756,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10465,0,0,9,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10465,0,0,9,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,9,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,10,9,13665,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10465,0,0,10,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10465,0,0,10,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10465,0,0,10,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,1,9,13772,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10467,0,0,1,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10467,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,2,9,13777,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10467,0,0,2,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10467,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,3,9,13782,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10467,0,0,3,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10467,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,4,9,13787,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10467,0,0,4,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10467,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,5,9,13767,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10467,0,0,5,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10467,0,0,5,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,5,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,6,9,13761,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10467,0,0,6,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10467,0,0,6,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,6,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,7,9,13745,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10467,0,0,7,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10467,0,0,7,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,7,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,8,9,13750,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10467,0,0,8,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10467,0,0,8,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,8,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,9,9,13756,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10467,0,0,9,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10467,0,0,9,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,9,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,10,9,13665,0,0,0,'','Show gossip menu only if quest The Grand Mele is taken',0), +(15,10467,0,0,10,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10467,0,0,10,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10467,0,0,10,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0); + +SET @Orgri_Valiant := 33306; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Orgri_Valiant; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@Orgri_Valiant; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@Orgri_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - On Reset - Remove auras from Defend'), +(@Orgri_Valiant,0,1,2,62,0,100,0,10468,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Orgri Valiant - On gossip select - Close gossip'), +(@Orgri_Valiant,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - store target'), +(@Orgri_Valiant,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Call timed actionlist'), +(@Orgri_Valiant,0,4,0,52,0,100,0,0,@Orgri_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'Orgri Valiant - On text over - Cast Charge'), +(@Orgri_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Valiant - IC - Cast Thrust'), +(@Orgri_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Valiant - On more than 5 yard range - Cast Shield-Breaker'), +(@Orgri_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - IC - Move forward 12 yards'), +(@Orgri_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Valiant - On 10-12 yard range - Cast Charge'), +(@Orgri_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Cast Shield-Breaker'), +(@Orgri_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - On HP% between 1% and 3% - Change faction to 35'), +(@Orgri_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Say text'), +(@Orgri_Valiant,0,12,13,61,0,100,0,0,0,0,0,85,62724,0,0,0,0,0,12,1,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@Orgri_Valiant,0,13,14,61,0,100,0,0,0,0,0,85,64811,0,0,0,0,0,12,1,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Cast credit'), +(@Orgri_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri_Valiant - Linked with previous event - Evade'), +(@Orgri_Valiant,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - On player killed - Say text'), +(@Orgri_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Set unseen'), +(@Orgri_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Despawn in 1 ms'); +-- Argent Valiants texts +DELETE FROM `creature_text` WHERE `entry`= @Orgri_Valiant; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextId`) VALUES +(@Orgri_Valiant,0,0,'Ready yourself!',12,1,100,0,0,0,'Argent Valiant', 33757), +(@Orgri_Valiant,0,1,'Prepare yourself!',12,1,100,0,0,0,'Argent Valiant', 33755), +(@Orgri_Valiant,0,2,'On your guard!',12,1,100,0,0,0,'Argent Valiant', 33756), +(@Orgri_Valiant,0,3,'Let it begin!',12,1,100,0,0,0,'Argent Valiant', 33758), +(@Orgri_Valiant,1,0,'Victory is mine!',12,1,100,0,0,0,'Argent Valiant', 33777), +(@Orgri_Valiant,1,1,'It seems you still need more practice. Perhaps another time.',12,1,100,0,0,0,'Argent Valiant', 33764), +(@Orgri_Valiant,1,2,'I have won. Better luck another time, friend.',12,1,100,0,0,0,'Argent Valiant', 33779), +(@Orgri_Valiant,1,3,'I am afraid you will need more practice to defeat me.',12,1,100,0,0,0,'Argent Valiant', 33778), +(@Orgri_Valiant,2,0,'I yield to you.',12,1,100,0,0,0,'Argent Valiant', 33774), +(@Orgri_Valiant,2,1,'That was a well fought battle. I yield to you.',12,1,100,0,0,0,'Argent Valiant', 33776), +(@Orgri_Valiant,2,2,'It would seem I underestimated your skills. Well done.',12,1,100,0,0,0,'Argent Valiant', 33775), +(@Orgri_Valiant,2,3,'I have been defeated. Good fight!',12,1,100,0,0,0,'Argent Valiant', 33760); +SET @TB_Valiant := 33383; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@TB_Valiant; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@TB_Valiant; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@TB_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - On Reset - Remove auras from Defend'), +(@TB_Valiant,0,1,2,62,0,100,0,10472,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'TB Valiant - On gossip select - Close gossip'), +(@TB_Valiant,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'TB_Valiant - Linked with previous event - store target'), +(@TB_Valiant,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Call timed actionlist'), +(@TB_Valiant,0,4,0,52,0,100,0,0,@TB_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'TB Valiant - On text over - Cast Charge'), +(@TB_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Valiant - IC - Cast Thrust'), +(@TB_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Valiant - On more than 5 yard range - Cast Shield-Breaker'), +(@TB_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - IC - Move forward 12 yards'), +(@TB_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Valiant - On 10-12 yard range - Cast Charge'), +(@TB_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Cast Shield-Breaker'), +(@TB_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - On HP% between 1% and 3% - Change faction to 35'), +(@TB_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Say text'), +(@TB_Valiant,0,12,13,61,0,100,0,0,0,0,0,85,62724,0,0,0,0,0,12,1,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@TB_Valiant,0,13,14,61,0,100,0,0,0,0,0,85,64815,0,0,0,0,0,12,1,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Cast credit'), +(@TB_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB_Valiant - Linked with previous event - Evade'), +(@TB_Valiant,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - On player killed - Say text'), +(@TB_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Set unseen'), +(@TB_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Despawn in 1 ms'); +-- Argent Valiants texts +DELETE FROM `creature_text` WHERE `entry`= @TB_Valiant; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextId`) VALUES +(@TB_Valiant,0,0,'Ready yourself!',12,1,100,0,0,0,'Argent Valiant', 33757), +(@TB_Valiant,0,1,'Prepare yourself!',12,1,100,0,0,0,'Argent Valiant', 33755), +(@TB_Valiant,0,2,'On your guard!',12,1,100,0,0,0,'Argent Valiant', 33756), +(@TB_Valiant,0,3,'Let it begin!',12,1,100,0,0,0,'Argent Valiant', 33758), +(@TB_Valiant,1,0,'Victory is mine!',12,1,100,0,0,0,'Argent Valiant', 33777), +(@TB_Valiant,1,1,'It seems you still need more practice. Perhaps another time.',12,1,100,0,0,0,'Argent Valiant', 33764), +(@TB_Valiant,1,2,'I have won. Better luck another time, friend.',12,1,100,0,0,0,'Argent Valiant', 33779), +(@TB_Valiant,1,3,'I am afraid you will need more practice to defeat me.',12,1,100,0,0,0,'Argent Valiant', 33778), +(@TB_Valiant,2,0,'I yield to you.',12,1,100,0,0,0,'Argent Valiant', 33774), +(@TB_Valiant,2,1,'That was a well fought battle. I yield to you.',12,1,100,0,0,0,'Argent Valiant', 33776), +(@TB_Valiant,2,2,'It would seem I underestimated your skills. Well done.',12,1,100,0,0,0,'Argent Valiant', 33775), +(@TB_Valiant,2,3,'I have been defeated. Good fight!',12,1,100,0,0,0,'Argent Valiant', 33760); +SET @SM_Valiant := 33382; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@SM_Valiant; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@SM_Valiant; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@SM_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - On Reset - Remove auras from Defend'), +(@SM_Valiant,0,1,2,62,0,100,0,10470,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'SM Valiant - On gossip select - Close gossip'), +(@SM_Valiant,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'SM_Valiant - Linked with previous event - store target'), +(@SM_Valiant,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Call timed actionlist'), +(@SM_Valiant,0,4,0,52,0,100,0,0,@SM_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'SM Valiant - On text over - Cast Charge'), +(@SM_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Valiant - IC - Cast Thrust'), +(@SM_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Valiant - On more than 5 yard range - Cast Shield-Breaker'), +(@SM_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - IC - Move forward 12 yards'), +(@SM_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Valiant - On 10-12 yard range - Cast Charge'), +(@SM_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Cast Shield-Breaker'), +(@SM_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - On HP% between 1% and 3% - Change faction to 35'), +(@SM_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Say text'), +(@SM_Valiant,0,12,13,61,0,100,0,0,0,0,0,85,62724,0,0,0,0,0,12,1,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@SM_Valiant,0,13,14,61,0,100,0,0,0,0,0,85,64813,0,0,0,0,0,12,1,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Cast credit'), +(@SM_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM_Valiant - Linked with previous event - Evade'), +(@SM_Valiant,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - On player killed - Say text'), +(@SM_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Set unseen'), +(@SM_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Despawn in 1 ms'); +-- Argent Valiants texts +DELETE FROM `creature_text` WHERE `entry`= @SM_Valiant; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextId`) VALUES +(@SM_Valiant,0,0,'Ready yourself!',12,1,100,0,0,0,'Argent Valiant', 33757), +(@SM_Valiant,0,1,'Prepare yourself!',12,1,100,0,0,0,'Argent Valiant', 33755), +(@SM_Valiant,0,2,'On your guard!',12,1,100,0,0,0,'Argent Valiant', 33756), +(@SM_Valiant,0,3,'Let it begin!',12,1,100,0,0,0,'Argent Valiant', 33758), +(@SM_Valiant,1,0,'Victory is mine!',12,1,100,0,0,0,'Argent Valiant', 33777), +(@SM_Valiant,1,1,'It seems you still need more practice. Perhaps another time.',12,1,100,0,0,0,'Argent Valiant', 33764), +(@SM_Valiant,1,2,'I have won. Better luck another time, friend.',12,1,100,0,0,0,'Argent Valiant', 33779), +(@SM_Valiant,1,3,'I am afraid you will need more practice to defeat me.',12,1,100,0,0,0,'Argent Valiant', 33778), +(@SM_Valiant,2,0,'I yield to you.',12,1,100,0,0,0,'Argent Valiant', 33774), +(@SM_Valiant,2,1,'That was a well fought battle. I yield to you.',12,1,100,0,0,0,'Argent Valiant', 33776), +(@SM_Valiant,2,2,'It would seem I underestimated your skills. Well done.',12,1,100,0,0,0,'Argent Valiant', 33775), +(@SM_Valiant,2,3,'I have been defeated. Good fight!',12,1,100,0,0,0,'Argent Valiant', 33760); +SET @GR_Valiant := 33558; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@GR_Valiant; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@GR_Valiant; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@GR_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - On Reset - Remove auras from Defend'), +(@GR_Valiant,0,1,2,62,0,100,0,10466,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'GR Valiant - On gossip select - Close gossip'), +(@GR_Valiant,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'GR_Valiant - Linked with previous event - store target'), +(@GR_Valiant,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Call timed actionlist'), +(@GR_Valiant,0,4,0,52,0,100,0,0,@GR_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'GR Valiant - On text over - Cast Charge'), +(@GR_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Valiant - IC - Cast Thrust'), +(@GR_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Valiant - On more than 5 yard range - Cast Shield-Breaker'), +(@GR_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - IC - Move forward 12 yards'), +(@GR_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Valiant - On 10-12 yard range - Cast Charge'), +(@GR_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Cast Shield-Breaker'), +(@GR_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - On HP% between 1% and 3% - Change faction to 35'), +(@GR_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Say text'), +(@GR_Valiant,0,12,13,61,0,100,0,0,0,0,0,85,62724,0,0,0,0,0,12,1,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@GR_Valiant,0,13,14,61,0,100,0,0,0,0,0,85,64809,0,0,0,0,0,12,1,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Cast credit'), +(@GR_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR_Valiant - Linked with previous event - Evade'), +(@GR_Valiant,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - On player killed - Say text'), +(@GR_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Set unseen'), +(@GR_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Despawn in 1 ms'); +-- Argent Valiants texts +DELETE FROM `creature_text` WHERE `entry`= @GR_Valiant; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextId`) VALUES +(@GR_Valiant,0,0,'Ready yourself!',12,7,100,0,0,0,'Argent Valiant', 33757), +(@GR_Valiant,0,1,'Prepare yourself!',12,7,100,0,0,0,'Argent Valiant', 33755), +(@GR_Valiant,0,2,'On your guard!',12,7,100,0,0,0,'Argent Valiant', 33756), +(@GR_Valiant,0,3,'Let it begin!',12,7,100,0,0,0,'Argent Valiant', 33758), +(@GR_Valiant,1,0,'Victory is mine!',12,7,100,0,0,0,'Argent Valiant', 33777), +(@GR_Valiant,1,1,'It seems you still need more practice. Perhaps another time.',12,7,100,0,0,0,'Argent Valiant', 33764), +(@GR_Valiant,1,2,'I have won. Better luck another time, friend.',12,7,100,0,0,0,'Argent Valiant', 33779), +(@GR_Valiant,1,3,'I am afraid you will need more practice to defeat me.',12,7,100,0,0,0,'Argent Valiant', 33778), +(@GR_Valiant,2,0,'I yield to you.',12,7,100,0,0,0,'Argent Valiant', 33774), +(@GR_Valiant,2,1,'That was a well fought battle. I yield to you.',12,7,100,0,0,0,'Argent Valiant', 33776), +(@GR_Valiant,2,2,'It would seem I underestimated your skills. Well done.',12,7,100,0,0,0,'Argent Valiant', 33775), +(@GR_Valiant,2,3,'I have been defeated. Good fight!',12,7,100,0,0,0,'Argent Valiant', 33760); +SET @IF_Valiant := 33564; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@IF_Valiant; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@IF_Valiant; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@IF_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - On Reset - Remove auras from Defend'), +(@IF_Valiant,0,1,2,62,0,100,0,10467,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'IF Valiant - On gossip select - Close gossip'), +(@IF_Valiant,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'IF_Valiant - Linked with previous event - store target'), +(@IF_Valiant,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Call timed actionlist'), +(@IF_Valiant,0,4,0,52,0,100,0,0,@IF_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'IF Valiant - On text over - Cast Charge'), +(@IF_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Valiant - IC - Cast Thrust'), +(@IF_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Valiant - On more than 5 yard range - Cast Shield-Breaker'), +(@IF_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - IC - Move forward 12 yards'), +(@IF_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Valiant - On 10-12 yard range - Cast Charge'), +(@IF_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Cast Shield-Breaker'), +(@IF_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - On HP% between 1% and 3% - Change faction to 35'), +(@IF_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Say text'), +(@IF_Valiant,0,12,13,61,0,100,0,0,0,0,0,85,62724,0,0,0,0,0,12,1,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@IF_Valiant,0,13,14,61,0,100,0,0,0,0,0,85,64810,0,0,0,0,0,12,1,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Cast credit'), +(@IF_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF_Valiant - Linked with previous event - Evade'), +(@IF_Valiant,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - On player killed - Say text'), +(@IF_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Set unseen'), +(@IF_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Despawn in 1 ms'); +-- Argent Valiants texts +DELETE FROM `creature_text` WHERE `entry`= @IF_Valiant; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextId`) VALUES +(@IF_Valiant,0,0,'Ready yourself!',12,7,100,0,0,0,'Argent Valiant', 33757), +(@IF_Valiant,0,1,'Prepare yourself!',12,7,100,0,0,0,'Argent Valiant', 33755), +(@IF_Valiant,0,2,'On your guard!',12,7,100,0,0,0,'Argent Valiant', 33756), +(@IF_Valiant,0,3,'Let it begin!',12,7,100,0,0,0,'Argent Valiant', 33758), +(@IF_Valiant,1,0,'Victory is mine!',12,7,100,0,0,0,'Argent Valiant', 33777), +(@IF_Valiant,1,1,'It seems you still need more practice. Perhaps another time.',12,7,100,0,0,0,'Argent Valiant', 33764), +(@IF_Valiant,1,2,'I have won. Better luck another time, friend.',12,7,100,0,0,0,'Argent Valiant', 33779), +(@IF_Valiant,1,3,'I am afraid you will need more practice to defeat me.',12,7,100,0,0,0,'Argent Valiant', 33778), +(@IF_Valiant,2,0,'I yield to you.',12,7,100,0,0,0,'Argent Valiant', 33774), +(@IF_Valiant,2,1,'That was a well fought battle. I yield to you.',12,7,100,0,0,0,'Argent Valiant', 33776), +(@IF_Valiant,2,2,'It would seem I underestimated your skills. Well done.',12,7,100,0,0,0,'Argent Valiant', 33775), +(@IF_Valiant,2,3,'I have been defeated. Good fight!',12,7,100,0,0,0,'Argent Valiant', 33760); +SET @SW_Valiant := 33561; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@SW_Valiant; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@SW_Valiant; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@SW_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - On Reset - Remove auras from Defend'), +(@SW_Valiant,0,1,2,62,0,100,0,10471,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'SW Valiant - On gossip select - Close gossip'), +(@SW_Valiant,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'SW_Valiant - Linked with previous event - store target'), +(@SW_Valiant,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Call timed actionlist'), +(@SW_Valiant,0,4,0,52,0,100,0,0,@SW_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'SW Valiant - On text over - Cast Charge'), +(@SW_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Valiant - IC - Cast Thrust'), +(@SW_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Valiant - On more than 5 yard range - Cast Shield-Breaker'), +(@SW_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - IC - Move forward 12 yards'), +(@SW_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Valiant - On 10-12 yard range - Cast Charge'), +(@SW_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Cast Shield-Breaker'), +(@SW_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - On HP% between 1% and 3% - Change faction to 35'), +(@SW_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Say text'), +(@SW_Valiant,0,12,13,61,0,100,0,0,0,0,0,85,62724,0,0,0,0,0,12,1,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@SW_Valiant,0,13,14,61,0,100,0,0,0,0,0,85,64814,0,0,0,0,0,12,1,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Cast credit'), +(@SW_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW_Valiant - Linked with previous event - Evade'), +(@SW_Valiant,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - On player killed - Say text'), +(@SW_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Set unseen'), +(@SW_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Despawn in 1 ms'); +-- Argent Valiants texts +DELETE FROM `creature_text` WHERE `entry`= @SW_Valiant; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextId`) VALUES +(@SW_Valiant,0,0,'Ready yourself!',12,7,100,0,0,0,'Argent Valiant', 33757), +(@SW_Valiant,0,1,'Prepare yourself!',12,7,100,0,0,0,'Argent Valiant', 33755), +(@SW_Valiant,0,2,'On your guard!',12,7,100,0,0,0,'Argent Valiant', 33756), +(@SW_Valiant,0,3,'Let it begin!',12,7,100,0,0,0,'Argent Valiant', 33758), +(@SW_Valiant,1,0,'Victory is mine!',12,7,100,0,0,0,'Argent Valiant', 33777), +(@SW_Valiant,1,1,'It seems you still need more practice. Perhaps another time.',12,7,100,0,0,0,'Argent Valiant', 33764), +(@SW_Valiant,1,2,'I have won. Better luck another time, friend.',12,7,100,0,0,0,'Argent Valiant', 33779), +(@SW_Valiant,1,3,'I am afraid you will need more practice to defeat me.',12,7,100,0,0,0,'Argent Valiant', 33778), +(@SW_Valiant,2,0,'I yield to you.',12,7,100,0,0,0,'Argent Valiant', 33774), +(@SW_Valiant,2,1,'That was a well fought battle. I yield to you.',12,7,100,0,0,0,'Argent Valiant', 33776), +(@SW_Valiant,2,2,'It would seem I underestimated your skills. Well done.',12,7,100,0,0,0,'Argent Valiant', 33775), +(@SW_Valiant,2,3,'I have been defeated. Good fight!',12,7,100,0,0,0,'Argent Valiant', 33760); +SET @Darn_Valiant := 33559; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Darn_Valiant; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@Darn_Valiant; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@Darn_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - On Reset - Remove auras from Defend'), +(@Darn_Valiant,0,1,2,62,0,100,0,10464,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Darn Valiant - On gossip select - Close gossip'), +(@Darn_Valiant,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'Darn_Valiant - Linked with previous event - store target'), +(@Darn_Valiant,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Call timed actionlist'), +(@Darn_Valiant,0,4,0,52,0,100,0,0,@Darn_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'Darn Valiant - On text over - Cast Charge'), +(@Darn_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Valiant - IC - Cast Thrust'), +(@Darn_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Valiant - On more than 5 yard range - Cast Shield-Breaker'), +(@Darn_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - IC - Move forward 12 yards'), +(@Darn_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Valiant - On 10-12 yard range - Cast Charge'), +(@Darn_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Cast Shield-Breaker'), +(@Darn_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - On HP% between 1% and 3% - Change faction to 35'), +(@Darn_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Say text'), +(@Darn_Valiant,0,12,13,61,0,100,0,0,0,0,0,85,62724,0,0,0,0,0,12,1,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@Darn_Valiant,0,13,14,61,0,100,0,0,0,0,0,85,64805,0,0,0,0,0,12,1,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Cast credit'), +(@Darn_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn_Valiant - Linked with previous event - Evade'), +(@Darn_Valiant,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - On player killed - Say text'), +(@Darn_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Set unseen'), +(@Darn_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Despawn in 1 ms'); +-- Argent Valiants texts +DELETE FROM `creature_text` WHERE `entry`= @Darn_Valiant; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextId`) VALUES +(@Darn_Valiant,0,0,'Ready yourself!',12,7,100,0,0,0,'Argent Valiant', 33757), +(@Darn_Valiant,0,1,'Prepare yourself!',12,7,100,0,0,0,'Argent Valiant', 33755), +(@Darn_Valiant,0,2,'On your guard!',12,7,100,0,0,0,'Argent Valiant', 33756), +(@Darn_Valiant,0,3,'Let it begin!',12,7,100,0,0,0,'Argent Valiant', 33758), +(@Darn_Valiant,1,0,'Victory is mine!',12,7,100,0,0,0,'Argent Valiant', 33777), +(@Darn_Valiant,1,1,'It seems you still need more practice. Perhaps another time.',12,7,100,0,0,0,'Argent Valiant', 33764), +(@Darn_Valiant,1,2,'I have won. Better luck another time, friend.',12,7,100,0,0,0,'Argent Valiant', 33779), +(@Darn_Valiant,1,3,'I am afraid you will need more practice to defeat me.',12,7,100,0,0,0,'Argent Valiant', 33778), +(@Darn_Valiant,2,0,'I yield to you.',12,7,100,0,0,0,'Argent Valiant', 33774), +(@Darn_Valiant,2,1,'That was a well fought battle. I yield to you.',12,7,100,0,0,0,'Argent Valiant', 33776), +(@Darn_Valiant,2,2,'It would seem I underestimated your skills. Well done.',12,7,100,0,0,0,'Argent Valiant', 33775), +(@Darn_Valiant,2,3,'I have been defeated. Good fight!',12,7,100,0,0,0,'Argent Valiant', 33760); +SET @Exo_Valiant := 33562; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Exo_Valiant; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@Exo_Valiant; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@Exo_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - On Reset - Remove auras from Defend'), +(@Exo_Valiant,0,1,2,62,0,100,0,10465,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Exo Valiant - On gossip select - Close gossip'), +(@Exo_Valiant,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'Exo_Valiant - Linked with previous event - store target'), +(@Exo_Valiant,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Call timed actionlist'), +(@Exo_Valiant,0,4,0,52,0,100,0,0,@Exo_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'Exo Valiant - On text over - Cast Charge'), +(@Exo_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Valiant - IC - Cast Thrust'), +(@Exo_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Valiant - On more than 5 yard range - Cast Shield-Breaker'), +(@Exo_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - IC - Move forward 12 yards'), +(@Exo_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Valiant - On 10-12 yard range - Cast Charge'), +(@Exo_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Cast Shield-Breaker'), +(@Exo_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - On HP% between 1% and 3% - Change faction to 35'), +(@Exo_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Say text'), +(@Exo_Valiant,0,12,13,61,0,100,0,0,0,0,0,85,62724,0,0,0,0,0,12,1,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@Exo_Valiant,0,13,14,61,0,100,0,0,0,0,0,85,64808,0,0,0,0,0,12,1,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Cast credit'), +(@Exo_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo_Valiant - Linked with previous event - Evade'), +(@Exo_Valiant,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - On player killed - Say text'), +(@Exo_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Set unseen'), +(@Exo_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Despawn in 1 ms'); +-- Argent Valiants texts +DELETE FROM `creature_text` WHERE `entry`= @Exo_Valiant; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextId`) VALUES +(@Exo_Valiant,0,0,'Ready yourself!',12,7,100,0,0,0,'Argent Valiant', 33757), +(@Exo_Valiant,0,1,'Prepare yourself!',12,7,100,0,0,0,'Argent Valiant', 33755), +(@Exo_Valiant,0,2,'On your guard!',12,7,100,0,0,0,'Argent Valiant', 33756), +(@Exo_Valiant,0,3,'Let it begin!',12,7,100,0,0,0,'Argent Valiant', 33758), +(@Exo_Valiant,1,0,'Victory is mine!',12,7,100,0,0,0,'Argent Valiant', 33777), +(@Exo_Valiant,1,1,'It seems you still need more practice. Perhaps another time.',12,7,100,0,0,0,'Argent Valiant', 33764), +(@Exo_Valiant,1,2,'I have won. Better luck another time, friend.',12,7,100,0,0,0,'Argent Valiant', 33779), +(@Exo_Valiant,1,3,'I am afraid you will need more practice to defeat me.',12,7,100,0,0,0,'Argent Valiant', 33778), +(@Exo_Valiant,2,0,'I yield to you.',12,7,100,0,0,0,'Argent Valiant', 33774), +(@Exo_Valiant,2,1,'That was a well fought battle. I yield to you.',12,7,100,0,0,0,'Argent Valiant', 33776), +(@Exo_Valiant,2,2,'It would seem I underestimated your skills. Well done.',12,7,100,0,0,0,'Argent Valiant', 33775), +(@Exo_Valiant,2,3,'I have been defeated. Good fight!',12,7,100,0,0,0,'Argent Valiant', 33760); +SET @UC_Valiant := 33384; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@UC_Valiant; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@UC_Valiant; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@UC_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - On Reset - Remove auras from Defend'), +(@UC_Valiant,0,1,2,62,0,100,0,10473,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'UC Valiant - On gossip select - Close gossip'), +(@UC_Valiant,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'UC_Valiant - Linked with previous event - store target'), +(@UC_Valiant,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Call timed actionlist'), +(@UC_Valiant,0,4,0,52,0,100,0,0,@UC_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'UC Valiant - On text over - Cast Charge'), +(@UC_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Valiant - IC - Cast Thrust'), +(@UC_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Valiant - On more than 5 yard range - Cast Shield-Breaker'), +(@UC_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - IC - Move forward 12 yards'), +(@UC_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Valiant - On 10-12 yard range - Cast Charge'), +(@UC_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Cast Shield-Breaker'), +(@UC_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - On HP% between 1% and 3% - Change faction to 35'), +(@UC_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Say text'), +(@UC_Valiant,0,12,13,61,0,100,0,0,0,0,0,85,62724,0,0,0,0,0,12,1,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@UC_Valiant,0,13,14,61,0,100,0,0,0,0,0,85,64816,0,0,0,0,0,12,1,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Cast credit'), +(@UC_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC_Valiant - Linked with previous event - Evade'), +(@UC_Valiant,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - On player killed - Say text'), +(@UC_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Set unseen'), +(@UC_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Despawn in 1 ms'); +-- Argent Valiants texts +DELETE FROM `creature_text` WHERE `entry`= @UC_Valiant; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextId`) VALUES +(@UC_Valiant,0,0,'Ready yourself!',12,1,100,0,0,0,'Argent Valiant', 33757), +(@UC_Valiant,0,1,'Prepare yourself!',12,1,100,0,0,0,'Argent Valiant', 33755), +(@UC_Valiant,0,2,'On your guard!',12,1,100,0,0,0,'Argent Valiant', 33756), +(@UC_Valiant,0,3,'Let it begin!',12,1,100,0,0,0,'Argent Valiant', 33758), +(@UC_Valiant,1,0,'Victory is mine!',12,1,100,0,0,0,'Argent Valiant', 33777), +(@UC_Valiant,1,1,'It seems you still need more practice. Perhaps another time.',12,1,100,0,0,0,'Argent Valiant', 33764), +(@UC_Valiant,1,2,'I have won. Better luck another time, friend.',12,1,100,0,0,0,'Argent Valiant', 33779), +(@UC_Valiant,1,3,'I am afraid you will need more practice to defeat me.',12,1,100,0,0,0,'Argent Valiant', 33778), +(@UC_Valiant,2,0,'I yield to you.',12,1,100,0,0,0,'Argent Valiant', 33774), +(@UC_Valiant,2,1,'That was a well fought battle. I yield to you.',12,1,100,0,0,0,'Argent Valiant', 33776), +(@UC_Valiant,2,2,'It would seem I underestimated your skills. Well done.',12,1,100,0,0,0,'Argent Valiant', 33775), +(@UC_Valiant,2,3,'I have been defeated. Good fight!',12,1,100,0,0,0,'Argent Valiant', 33760); + +DELETE FROM `gossip_menu` WHERE `entry` IN (10469, 10468, 10470, 10472, 10473, 10466, 10464, 10471, 10465, 10467); +INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES +(10469, 14384), +(10469, 14492), +(10468, 14384), +(10468, 14492), +(10470, 14384), +(10470, 14492), +(10472, 14384), +(10472, 14492), +(10473, 14384), +(10473, 14492), +(10466, 14384), +(10466, 14492), +(10464, 14384), +(10464, 14492), +(10471, 14384), +(10471, 14492), +(10465, 14384), +(10465, 14492), +(10467, 14384), +(10467, 14492); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup` IN (10469, 10468, 10470, 10472, 10473, 10466, 10464, 10471, 10465, 10467); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`, `ErrorTextId`,`ScriptName`,`Comment`, `NegativeCondition`) VALUES +(14,10469,14384,0,1,64812,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10469,14492,0,1,64812,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10468,14384,0,1,64811,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10468,14492,0,1,64811,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10470,14384,0,1,64813,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10470,14492,0,1,64813,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10472,14384,0,1,64815,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10472,14492,0,1,64815,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10473,14384,0,1,64816,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10473,14492,0,1,64816,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10466,14384,0,1,64809,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10466,14492,0,1,64809,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10464,14384,0,1,64805,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10464,14492,0,1,64805,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10471,14384,0,1,64814,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10471,14492,0,1,64814,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10465,14384,0,1,64808,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10465,14492,0,1,64808,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10467,14384,0,1,64810,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10467,14492,0,1,64810,0,0,0,'','Show gossip menu text if the player have the aura', 0); diff --git a/sql/updates/world/2015_05_09_06_world.sql b/sql/updates/world/2015_05_09_06_world.sql new file mode 100644 index 00000000000..5038deab480 --- /dev/null +++ b/sql/updates/world/2015_05_09_06_world.sql @@ -0,0 +1,7 @@ +-- +UPDATE `creature_text` SET `groupid`=0, `id`=1, `comment`='engineer helice SAY_WP_1' WHERE `entry`=28787 AND `BroadcastTextId`=28856; +UPDATE `creature_text` SET `groupid`=6, `id`=1, `COMMENT`='engineer helice SAY_WP_7' WHERE `entry`=28787 AND `BroadcastTextId`=28865; +UPDATE `creature_text` SET `groupid`=1, `id`=1, `COMMENT`='engineer helice SAY_WP_2' WHERE `entry`=28787 AND `BroadcastTextId`=28857; +UPDATE `creature_text` SET `groupid`=2, `id`=1, `COMMENT`='engineer helice SAY_WP_3' WHERE `entry`=28787 AND `BroadcastTextId`=28859; +UPDATE `creature_text` SET `groupid`=5, `id`=1, `COMMENT`='engineer helice SAY_WP_6' WHERE `entry`=28787 AND `BroadcastTextId`=28864; +UPDATE `creature_text` SET `groupid`=4, `id`=1, `COMMENT`='engineer helice SAY_WP_5' WHERE `entry`=28787 AND `BroadcastTextId`=28862; diff --git a/sql/updates/world/2015_05_09_07_world.sql b/sql/updates/world/2015_05_09_07_world.sql new file mode 100644 index 00000000000..459c0c3e1f8 --- /dev/null +++ b/sql/updates/world/2015_05_09_07_world.sql @@ -0,0 +1,103 @@ +-- +UPDATE `smart_scripts` SET `event_type`=25, `event_flags`=0 WHERE `entryorguid` IN (21784,21815, 21801) AND `source_type`=0 AND `id`=0; + +DELETE FROM `creature_formations` WHERE `leaderGUID`=76082; +INSERT INTO `creature_formations` (`leaderGUID`,`memberGUID`,`dist`,`angle`,`groupAI`) VALUES +(76082,76082,0,0,2), +(76082,76083,7,360,2), +(76082,76084,14,360,2), +(76082,76085,21,360,2); + +UPDATE `creature` SET `MovementType`=0, `spawndist`=0 WHERE `guid` IN (76083, 76084, 76085); +UPDATE `creature` SET `MovementType`=2 WHERE `guid` IN (76082); +DELETE FROM `creature_addon` WHERE `guid` IN (76082); +INSERT INTO `creature_addon` (`guid`,`path_id`,`bytes1`,`bytes2`, `emote`, `auras`) VALUES +(76082,760820,16777216,4097,0,""); +DELETE FROM `creature` WHERE `id`=21998; -- wrong spawn, must be summoned by quest item only + +DELETE FROM `waypoint_data` WHERE (`id`=760820); +INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES +(760820, 1, -3116.419922, 821.828979, -21.856766, 0, 0, 1, 0, 100, 0), +(760820, 2, -3127.299561, 795.134766, -22.401117, 0, 0, 1, 0, 100, 0), +(760820, 3, -3150.103027, 782.489380, -21.864737, 0, 0, 1, 0, 100, 0), +(760820, 4, -3219.880615, 780.314880, -19.754417, 0, 0, 1, 0, 100, 0), +(760820, 5, -3251.568604, 783.067688, -19.069899, 0, 0, 1, 0, 100, 0), +(760820, 6, -3295.924072, 767.111877, -21.192102, 0, 0, 1, 0, 100, 0), +(760820, 7, -3403.222656, 752.732056, -35.531361, 0, 0, 1, 0, 100, 0), +(760820, 8, -3617.548828, 732.945862, -8.339263, 0, 0, 1, 0, 100, 0), +(760820, 9, -3631.188965, 727.337463, -5.722647, 0, 0, 1, 0, 100, 0), +(760820, 10, -3733.907471, 751.174744, 7.209823, 0, 0, 1, 0, 100, 0), +(760820, 11, -3782.882813, 746.945984, 9.761057, 0, 0, 1, 0, 100, 0), +(760820, 12, -3859.570068, 752.093506, 10.382468, 0, 0, 1, 0, 100, 0), +(760820, 13, -3879.040283, 773.671936, 9.449715, 0, 0, 1, 0, 100, 0), +(760820, 14, -3888.581787, 854.766663, 15.828053, 0, 0, 1, 0, 100, 0), +(760820, 15, -3880.752930, 897.569763, 19.081347, 0, 0, 1, 0, 100, 0), +(760820, 16, -3886.515137, 944.770691, 21.956785, 0, 0, 1, 0, 100, 0), +(760820, 17, -3880.704834, 985.264221, 23.311592, 0, 0, 1, 0, 100, 0), +(760820, 18, -3883.812012, 1007.772705, 23.589699, 0, 0, 1, 0, 100, 0), +(760820, 19, -3975.737061, 1099.026733, 30.213566, 0, 0, 1, 0, 100, 0), +(760820, 20, -4000.627197, 1143.911499, 41.125046, 0, 0, 1, 0, 100, 0), +(760820, 21, -4036.700928, 1163.023804, 51.072033, 0, 0, 1, 0, 100, 0), +(760820, 22, -4052.043457, 1183.807129, 57.569439, 0, 0, 1, 0, 100, 0), +(760820, 23, -4053.111816, 1202.003784, 62.920666, 0, 0, 1, 0, 100, 0), +(760820, 24, -4037.213623, 1261.900757, 78.336632, 0, 0, 1, 0, 100, 0), +(760820, 25, -4038.152588, 1296.390991, 83.919540, 0, 0, 1, 0, 100, 0), +(760820, 26, -4053.791504, 1370.539185, 84.908981, 0, 0, 1, 0, 100, 0), +(760820, 27, -4054.700439, 1618.686279, 93.997330, 0, 0, 1, 0, 100, 0), +(760820, 28, -4045.018799, 1643.987061, 94.251122, 0, 0, 1, 0, 100, 0), +(760820, 29, -3983.812988, 1705.642944, 97.803833, 0, 0, 1, 0, 100, 0), +(760820, 30, -3938.369141, 1738.914917, 98.837524, 0, 0, 1, 0, 100, 0), +(760820, 31, -3900.309814, 1758.672363, 97.922089, 0, 0, 1, 0, 100, 0), +(760820, 32, -3867.449707, 1786.059937, 94.361740, 0, 0, 1, 0, 100, 0), +(760820, 33, -3850.530273, 1826.876221, 90.358040, 0, 0, 1, 0, 100, 0), +(760820, 34, -3847.338867, 1880.751831, 86.640762, 0, 0, 1, 0, 100, 0), +(760820, 35, -3814.812988, 1960.993286, 85.844566, 0, 0, 1, 0, 100, 0), +(760820, 36, -3756.163574, 2030.727905, 84.516495, 0, 0, 1, 0, 100, 0), +(760820, 37, -3752.126221, 2094.629395, 78.208092, 0, 0, 1, 0, 100, 0), +(760820, 38, -3755.360352, 2146.251221, 75.892380, 0, 0, 1, 0, 100, 0), +(760820, 39, -3743.547119, 2204.366699, 76.086136, 0, 0, 1, 0, 100, 0), +(760820, 40, -3744.448975, 2262.760742, 76.763046, 0, 0, 1, 0, 100, 0), +(760820, 41, -3714.628662, 2328.074219, 76.275826, 0, 0, 1, 0, 100, 0), +(760820, 42, -3688.062256, 2347.847168, 76.348412, 0, 0, 1, 0, 100, 0), +(760820, 43, -3674.596680, 2318.612061, 75.835876, 0, 0, 1, 0, 100, 0), +(760820, 44, -3624.145264, 2310.810791, 74.901398, 0, 0, 1, 0, 100, 0), +(760820, 45, -3596.897217, 2321.221191, 73.494583, 0, 0, 1, 0, 100, 0), +(760820, 46, -3570.569824, 2315.111572, 71.091606, 0, 0, 1, 0, 100, 0), +(760820, 47, -3505.514648, 2275.580811, 66.201355, 0, 0, 1, 0, 100, 0), +(760820, 48, -3444.574219, 2289.437500, 63.707752, 0, 0, 1, 0, 100, 0), +(760820, 49, -3402.431396, 2291.413818, 62.819668, 0, 0, 1, 0, 100, 0), +(760820, 50, -3344.245605, 2280.061523, 61.217396, 0, 0, 1, 0, 100, 0), +(760820, 51, -3266.743164, 2283.391113, 60.007225, 0, 0, 1, 0, 100, 0), +(760820, 52, -3233.561279, 2292.924561, 59.882648, 0, 0, 1, 0, 100, 0), +(760820, 53, -3221.570313, 2250.202393, 61.123081, 0, 0, 1, 0, 100, 0), +(760820, 54, -3189.590088, 2199.339844, 64.705276, 0, 0, 1, 0, 100, 0), +(760820, 55, -3175.489502, 2098.237549, 75.678909, 0, 0, 1, 0, 100, 0), +(760820, 56, -3160.424316, 2081.004150, 80.764908, 0, 0, 1, 0, 100, 0), +(760820, 57, -3141.073242, 2027.865112, 92.255219, 0, 0, 1, 0, 100, 0), +(760820, 58, -3100.545654, 1987.315796, 100.928787, 0, 0, 1, 0, 100, 0), +(760820, 59, -3079.955811, 1952.478638, 109.271744, 0, 0, 1, 0, 100, 0), +(760820, 60, -3043.312744, 1921.660156, 112.361816, 0, 0, 1, 0, 100, 0), +(760820, 61, -2973.852539, 1910.639648, 104.475471, 0, 0, 1, 0, 100, 0), +(760820, 62, -2956.038086, 1893.901855, 99.170197, 0, 0, 1, 0, 100, 0), +(760820, 63, -2950.733643, 1858.555664, 88.703011, 0, 0, 1, 0, 100, 0), +(760820, 64, -2923.169678, 1824.131348, 70.827278, 0, 0, 1, 0, 100, 0), +(760820, 65, -2889.111816, 1758.524658, 47.417206, 0, 0, 1, 0, 100, 0), +(760820, 66, -2879.456299, 1722.608887, 39.589905, 0, 0, 1, 0, 100, 0), +(760820, 67, -2865.740723, 1710.794922, 36.381069, 0, 0, 1, 0, 100, 0), +(760820, 68, -2848.158691, 1707.713623, 32.244236, 0, 0, 1, 0, 100, 0), +(760820, 69, -2824.067383, 1685.606934, 23.045313, 0, 0, 1, 0, 100, 0), +(760820, 70, -2819.241943, 1641.792847, 13.334887, 0, 0, 1, 0, 100, 0), +(760820, 71, -2871.091064, 1569.277466, 15.303233, 0, 0, 1, 0, 100, 0), +(760820, 72, -2893.539063, 1492.087402, 14.836093, 0, 0, 1, 0, 100, 0), +(760820, 73, -2981.375000, 1436.377686, 11.891064, 0, 0, 1, 0, 100, 0), +(760820, 74, -2987.835693, 1401.822510, 11.926711, 0, 0, 1, 0, 100, 0), +(760820, 75, -2988.486572, 1347.793457, 9.330483, 0, 0, 1, 0, 100, 0), +(760820, 76, -3078.444580, 1254.076050, 10.399191, 0, 0, 1, 0, 100, 0), +(760820, 77, -3090.341797, 1206.203125, 18.388882, 0, 0, 1, 0, 100, 0), +(760820, 78, -3114.885986, 1174.320313, 25.699680, 0, 0, 1, 0, 100, 0), +(760820, 79, -3112.093506, 1126.753174, 24.259985, 0, 0, 1, 0, 100, 0), +(760820, 80, -3120.531982, 1096.862549, 19.402412, 0, 0, 1, 0, 100, 0), +(760820, 81, -3113.394287, 1034.310425, 4.188662, 0, 0, 1, 0, 100, 0), +(760820, 82, -3117.856445, 982.948914, -7.988031, 0, 0, 1, 0, 100, 0), +(760820, 83, -3091.906494, 930.465881, -17.414244, 0, 0, 1, 0, 100, 0), +(760820, 84, -3116.419922, 821.828979, -21.856766, 0, 0, 1, 0, 100, 0); diff --git a/sql/updates/world/2015_05_09_08_world.sql b/sql/updates/world/2015_05_09_08_world.sql new file mode 100644 index 00000000000..4c6ed7ef6ab --- /dev/null +++ b/sql/updates/world/2015_05_09_08_world.sql @@ -0,0 +1,23 @@ +-- +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry` IN (29489, 29490); +DELETE FROM `smart_scripts` WHERE `entryorguid` IN (29489, 29490) AND `source_type`=0; +DELETE FROM `smart_scripts` WHERE `entryorguid` IN (2949000, 2949001) AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(29489, 0, 0, 0, 6, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Captain Welsington- On Death - Say text 1'), +(29489, 0, 1, 0, 9, 0, 100, 0, 8, 25000, 8000, 12000, 11, 20615, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Captain Welsington - On 8-25 yard range - cast Intercept'), +(29489, 0, 2, 0, 0, 0, 100, 0, 3000, 7000, 5000, 10000, 11, 16856, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Captain Welsington- IC - cast Mortal Strike'), +(29490, 0, 0, 0, 6, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Captain Hartford - On Death - Say text 1'), +(29490, 0, 1, 0, 9, 0, 100, 0, 0, 25000, 3000, 4000, 87, 2949000, 2949001, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Captain Hartford - On 1-25 yard range - Random action list'), +(2949000, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 20823, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Captain Hartford - action list - cast Fireball'), +(2949001, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 20822, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Captain Hartford - action list - cast Frostbolt'), +(29490, 0, 2, 0, 0, 0, 100, 0, 5000, 10000, 10000, 15000, 11, 11831, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Captain Hartford - IC - cast Frost Nova'); + +DELETE FROM `creature_text` WHERE `entry` IN (29489, 29490); +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextId`) VALUES +(29489,0,0,'Archbishop Landgren must know! Aaaaaagggghhhh.....!',12,0,100,0,0,0,'Captain Welsington', 30161), +(29490,0,0,'I don''t know where the grand admiral is. Go to hell!',12,0,100,0,0,0,'Captain Hartford', 30146); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry` IN (29489, 29490); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES +(22,1,29489,0,0,9,0,12840,0,0,0,0,0,'','Captain Welsington- On Death - Say text 1 require quest 12840 taken'), +(22,1,29490,0,0,9,0,12840,0,0,0,0,0,'','Captain Hartford - On Death - Say text 1 require quest 12840 taken'); diff --git a/sql/updates/world/2015_05_09_09_world.sql b/sql/updates/world/2015_05_09_09_world.sql new file mode 100644 index 00000000000..77c55e87dfd --- /dev/null +++ b/sql/updates/world/2015_05_09_09_world.sql @@ -0,0 +1,6 @@ +-- +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=8996; +DELETE FROM `smart_scripts` WHERE `entryorguid`=8996 AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(8996, 0, 0, 0, 0, 0, 100, 0, 10000, 15000, 25000, 30000, 11, 33916, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Voidwalker Minion - IC - Void Drain'), +(8996, 0, 1, 0, 0, 0, 100, 0, 2000, 5000, 4000, 6000, 11, 33914, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Voidwalker Minion - IC - Shadowstrike'); diff --git a/sql/updates/world/2015_05_09_10_world.sql b/sql/updates/world/2015_05_09_10_world.sql new file mode 100644 index 00000000000..06b5eb9cd88 --- /dev/null +++ b/sql/updates/world/2015_05_09_10_world.sql @@ -0,0 +1,7 @@ +-- +DELETE FROM `creature_text` WHERE `entry` = 7779; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`, `BroadcastTextID`) VALUES +(7779,1,0,"Good day to you both. I would speak to Lord Lescovar.",12,0,100,0,0,0,'Priestess Tyriona', 3781), +(7779,2,0,"Thank you. The Light be with you both.",12,0,100,0,0,0,'Priestess Tyriona', 3782), +(7779,3,0,"Milord, your guest has arrived. He awaits your presence.",12,0,100,0,0,0,'Priestess Tyriona', 3762), +(7779,4,0,"I shall use the time wisely, milord. Thank you.",12,0,100,0,0,0,'Priestess Tyriona', 3791); diff --git a/sql/updates/world/2015_05_09_11_world.sql b/sql/updates/world/2015_05_09_11_world.sql new file mode 100644 index 00000000000..c09cb1c9850 --- /dev/null +++ b/sql/updates/world/2015_05_09_11_world.sql @@ -0,0 +1,595 @@ +-- Add SAI support for Lance a Lot achievement ID: 2836 and Amongts the Champions quest +-- Champions SAI mechanic +SET @Sen_Champion := 33745; +SET @Script := 3374500; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Sen_Champion; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@Sen_Champion; +DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid`=@Script; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@Sen_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - On Reset - Remove auras from Defend'), +(@Sen_Champion,0,1,2,62,0,100,0,10458,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Sen Champion - On gossip select - Close gossip'), +(@Sen_Champion,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - store target'), +(@Sen_Champion,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Call timed actionlist'), +(@Sen_Champion,0,4,0,52,0,100,0,0,@Sen_Champion,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'Sen Champion - On text over - Cast Charge'), +(@Sen_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Champion - IC - Cast Thrust'), +(@Sen_Champion,0,6,0,9,0,100,0,5,5,4000,7000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Champion - On more than 5 yard range - Cast Shield-Breaker'), +(@Sen_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - IC - Move forward 12 yards'), +(@Sen_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Champion - On 10-12 yard range - Cast Charge'), +(@Sen_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Cast Shield-Breaker'), +(@Sen_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - On HP% between 1% and 6% - Change faction to 35'), +(@Sen_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Say text'), +(@Sen_Champion,0,12,13,61,0,100,0,0,0,0,0,85,63596,0,0,0,0,0,12,1,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@Sen_Champion,0,13,14,61,0,100,0,0,0,0,0,85,64812,0,0,0,0,0,12,1,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Cast credit'), +(@Sen_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Evade'), +(@Sen_Champion,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - On player killed - Say text'), +(@Sen_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Set unseen'), +(@Sen_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Despawn in 1 ms'), +-- Timed actionlist 1 +(@Script,9,1,0,0,0,100,0,0,0,0,0,42,0,1,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Set INVINCIBILITY'), +(@Script,9,2,0,0,0,100,0,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Set run ON'), +(@Script,9,3,0,0,0,100,0,0,0,0,0,11,62719,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast Defend on self/Layer 1/'), +(@Script,9,4,0,0,0,100,0,0,0,0,0,11,62719,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast Defend on self/Layer 2/'), +(@Script,9,5,0,0,0,100,0,0,0,0,0,11,62719,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast Defend on self/Layer 3/'), +(@Script,9,6,0,0,0,100,0,0,0,0,0,46,20,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Move forward 15 yards'), +(@Script,9,7,0,0,0,100,0,0,0,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Set run Off'), +(@Script,9,8,0,0,0,100,0,0,0,0,0,11,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast aura TriggerS for Defend /10 sec one/'), +(@Script,9,9,0,0,0,100,0,3500,3500,0,0,2,14,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Change faction to 14'), +(@Script,9,10,0,0,0,100,0,0,0,0,0,1,0,1500,0,0,0,0,2,0,0,0,0,0,0,0,'All champions - Script 1 - Say text'); +-- Argent Champions texts +DELETE FROM `creature_text` WHERE `entry`= @Sen_Champion; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`,`BroadcastTextId`) VALUES +(@Sen_Champion,0,0,'Ready yourself!',12,1,100,0,0,0,'Argent Champion', 33757), +(@Sen_Champion,0,1,'Prepare yourself!',12,1,100,0,0,0,'Argent Champion', 33755), +(@Sen_Champion,0,2,'On your guard!',12,1,100,0,0,0,'Argent Champion', 33756), +(@Sen_Champion,0,3,'Let it begin!',12,1,100,0,0,0,'Argent Champion', 33758), +(@Sen_Champion,1,0,'Victory is mine!',12,1,100,0,0,0,'Argent Champion', 33777), +(@Sen_Champion,1,1,'It seems you still need more practice. Perhaps another time.',12,1,100,0,0,0,'Argent Champion', 33764), +(@Sen_Champion,1,2,'I have won. Better luck another time, friend.',12,1,100,0,0,0,'Argent Champion', 33779), +(@Sen_Champion,1,3,'I am afraid you will need more practice to defeat me.',12,1,100,0,0,0,'Argent Champion', 33778), +(@Sen_Champion,2,0,'I yield to you.',12,1,100,0,0,0,'Argent Champion', 33774), +(@Sen_Champion,2,1,'That was a well fought battle. I yield to you.',12,1,100,0,0,0,'Argent Champion', 33776), +(@Sen_Champion,2,2,'It would seem I underestimated your skills. Well done.',12,1,100,0,0,0,'Argent Champion', 33775), +(@Sen_Champion,2,3,'I have been defeated. Good fight!',12,1,100,0,0,0,'Argent Champion', 33760); + +SET @Orgri_Champion := 33744; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Orgri_Champion; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@Orgri_Champion; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@Orgri_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - On Reset - Remove auras from Defend'), +(@Orgri_Champion,0,1,2,62,0,100,0,10457,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Orgri Champion - On gossip select - Close gossip'), +(@Orgri_Champion,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - store target'), +(@Orgri_Champion,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Call timed actionlist'), +(@Orgri_Champion,0,4,0,52,0,100,0,0,@Orgri_Champion,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'Orgri Champion - On text over - Cast Charge'), +(@Orgri_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Champion - IC - Cast Thrust'), +(@Orgri_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Champion - On more than 5 yard range - Cast Shield-Breaker'), +(@Orgri_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - IC - Move forward 12 yards'), +(@Orgri_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Champion - On 10-12 yard range - Cast Charge'), +(@Orgri_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Cast Shield-Breaker'), +(@Orgri_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - On HP% between 1% and 6% - Change faction to 35'), +(@Orgri_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Say text'), +(@Orgri_Champion,0,12,13,61,0,100,0,0,0,0,0,85,63596,0,0,0,0,0,12,1,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@Orgri_Champion,0,13,14,61,0,100,0,0,0,0,0,85,64811,0,0,0,0,0,12,1,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Cast credit'), +(@Orgri_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Evade'), +(@Orgri_Champion,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - On player killed - Say text'), +(@Orgri_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Set unseen'), +(@Orgri_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Despawn in 1 ms'); +-- Argent Champions texts +DELETE FROM `creature_text` WHERE `entry`= @Orgri_Champion; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`,`BroadcastTextId`) VALUES +(@Orgri_Champion,0,0,'Ready yourself!',12,1,100,0,0,0,'Argent Champion', 33757), +(@Orgri_Champion,0,1,'Prepare yourself!',12,1,100,0,0,0,'Argent Champion', 33755), +(@Orgri_Champion,0,2,'On your guard!',12,1,100,0,0,0,'Argent Champion', 33756), +(@Orgri_Champion,0,3,'Let it begin!',12,1,100,0,0,0,'Argent Champion', 33758), +(@Orgri_Champion,1,0,'Victory is mine!',12,1,100,0,0,0,'Argent Champion', 33777), +(@Orgri_Champion,1,1,'It seems you still need more practice. Perhaps another time.',12,1,100,0,0,0,'Argent Champion', 33764), +(@Orgri_Champion,1,2,'I have won. Better luck another time, friend.',12,1,100,0,0,0,'Argent Champion', 33779), +(@Orgri_Champion,1,3,'I am afraid you will need more practice to defeat me.',12,1,100,0,0,0,'Argent Champion', 33778), +(@Orgri_Champion,2,0,'I yield to you.',12,1,100,0,0,0,'Argent Champion', 33774), +(@Orgri_Champion,2,1,'That was a well fought battle. I yield to you.',12,1,100,0,0,0,'Argent Champion', 33776), +(@Orgri_Champion,2,2,'It would seem I underestimated your skills. Well done.',12,1,100,0,0,0,'Argent Champion', 33775), +(@Orgri_Champion,2,3,'I have been defeated. Good fight!',12,1,100,0,0,0,'Argent Champion', 33760); +SET @TB_Champion := 33748; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@TB_Champion; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@TB_Champion; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@TB_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - On Reset - Remove auras from Defend'), +(@TB_Champion,0,1,2,62,0,100,0,10461,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'TB Champion - On gossip select - Close gossip'), +(@TB_Champion,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'TB Champion - Linked with previous event - store target'), +(@TB_Champion,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - Linked with previous event - Call timed actionlist'), +(@TB_Champion,0,4,0,52,0,100,0,0,@TB_Champion,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'TB Champion - On text over - Cast Charge'), +(@TB_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Champion - IC - Cast Thrust'), +(@TB_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Champion - On more than 5 yard range - Cast Shield-Breaker'), +(@TB_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - IC - Move forward 12 yards'), +(@TB_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Champion - On 10-12 yard range - Cast Charge'), +(@TB_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Champion - Linked with previous event - Cast Shield-Breaker'), +(@TB_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - On HP% between 1% and 6% - Change faction to 35'), +(@TB_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - Linked with previous event - Say text'), +(@TB_Champion,0,12,13,61,0,100,0,0,0,0,0,85,63596,0,0,0,0,0,12,1,0,0,0,0,0,0,'TB Champion - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@TB_Champion,0,13,14,61,0,100,0,0,0,0,0,85,64815,0,0,0,0,0,12,1,0,0,0,0,0,0,'TB Champion - Linked with previous event - Cast credit'), +(@TB_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB_Valiant - Linked with previous event - Evade'), +(@TB_Champion,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - On player killed - Say text'), +(@TB_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - Linked with previous event - Set unseen'), +(@TB_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - Linked with previous event - Despawn in 1 ms'); +-- Argent Champions texts +DELETE FROM `creature_text` WHERE `entry`= @TB_Champion; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`,`BroadcastTextId`) VALUES +(@TB_Champion,0,0,'Ready yourself!',12,1,100,0,0,0,'Argent Champion', 33757), +(@TB_Champion,0,1,'Prepare yourself!',12,1,100,0,0,0,'Argent Champion', 33755), +(@TB_Champion,0,2,'On your guard!',12,1,100,0,0,0,'Argent Champion', 33756), +(@TB_Champion,0,3,'Let it begin!',12,1,100,0,0,0,'Argent Champion', 33758), +(@TB_Champion,1,0,'Victory is mine!',12,1,100,0,0,0,'Argent Champion', 33777), +(@TB_Champion,1,1,'It seems you still need more practice. Perhaps another time.',12,1,100,0,0,0,'Argent Champion', 33764), +(@TB_Champion,1,2,'I have won. Better luck another time, friend.',12,1,100,0,0,0,'Argent Champion', 33779), +(@TB_Champion,1,3,'I am afraid you will need more practice to defeat me.',12,1,100,0,0,0,'Argent Champion', 33778), +(@TB_Champion,2,0,'I yield to you.',12,1,100,0,0,0,'Argent Champion', 33774), +(@TB_Champion,2,1,'That was a well fought battle. I yield to you.',12,1,100,0,0,0,'Argent Champion', 33776), +(@TB_Champion,2,2,'It would seem I underestimated your skills. Well done.',12,1,100,0,0,0,'Argent Champion', 33775), +(@TB_Champion,2,3,'I have been defeated. Good fight!',12,1,100,0,0,0,'Argent Champion', 33760); +SET @SM_Champion := 33746; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@SM_Champion; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@SM_Champion; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@SM_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - On Reset - Remove auras from Defend'), +(@SM_Champion,0,1,2,62,0,100,0,10459,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'SM Champion - On gossip select - Close gossip'), +(@SM_Champion,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - store target'), +(@SM_Champion,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - Call timed actionlist'), +(@SM_Champion,0,4,0,52,0,100,0,0,@SM_Champion,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'SM Champion - On text over - Cast Charge'), +(@SM_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Champion - IC - Cast Thrust'), +(@SM_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Champion - On more than 5 yard range - Cast Shield-Breaker'), +(@SM_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - IC - Move forward 12 yards'), +(@SM_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Champion - On 10-12 yard range - Cast Charge'), +(@SM_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - Cast Shield-Breaker'), +(@SM_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - On HP% between 1% and 6% - Change faction to 35'), +(@SM_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - Say text'), +(@SM_Champion,0,12,13,61,0,100,0,0,0,0,0,85,63596,0,0,0,0,0,12,1,0,0,0,0,0,0,'SM Champion - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@SM_Champion,0,13,14,61,0,100,0,0,0,0,0,85,64813,0,0,0,0,0,12,1,0,0,0,0,0,0,'SM Champion - Linked with previous event - Cast credit'), +(@SM_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - Evade'), +(@SM_Champion,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - On player killed - Say text'), +(@SM_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - Set unseen'), +(@SM_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - Despawn in 1 ms'); +-- Argent Champions texts +DELETE FROM `creature_text` WHERE `entry`= @SM_Champion; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`,`BroadcastTextId`) VALUES +(@SM_Champion,0,0,'Ready yourself!',12,1,100,0,0,0,'Argent Champion', 33757), +(@SM_Champion,0,1,'Prepare yourself!',12,1,100,0,0,0,'Argent Champion', 33755), +(@SM_Champion,0,2,'On your guard!',12,1,100,0,0,0,'Argent Champion', 33756), +(@SM_Champion,0,3,'Let it begin!',12,1,100,0,0,0,'Argent Champion', 33758), +(@SM_Champion,1,0,'Victory is mine!',12,1,100,0,0,0,'Argent Champion', 33777), +(@SM_Champion,1,1,'It seems you still need more practice. Perhaps another time.',12,1,100,0,0,0,'Argent Champion', 33764), +(@SM_Champion,1,2,'I have won. Better luck another time, friend.',12,1,100,0,0,0,'Argent Champion', 33779), +(@SM_Champion,1,3,'I am afraid you will need more practice to defeat me.',12,1,100,0,0,0,'Argent Champion', 33778), +(@SM_Champion,2,0,'I yield to you.',12,1,100,0,0,0,'Argent Champion', 33774), +(@SM_Champion,2,1,'That was a well fought battle. I yield to you.',12,1,100,0,0,0,'Argent Champion', 33776), +(@SM_Champion,2,2,'It would seem I underestimated your skills. Well done.',12,1,100,0,0,0,'Argent Champion', 33775), +(@SM_Champion,2,3,'I have been defeated. Good fight!',12,1,100,0,0,0,'Argent Champion', 33760); +SET @GR_Champion := 33740; +UPDATE `creature_template` SET `AIName`='SmartAI',`ScriptName`='' WHERE `entry`=@GR_Champion; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@GR_Champion; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@GR_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - On Reset - Remove auras from Defend'), +(@GR_Champion,0,1,2,62,0,100,0,10455,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'GR Champion - On gossip select - Close gossip'), +(@GR_Champion,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - store target'), +(@GR_Champion,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - Call timed actionlist'), +(@GR_Champion,0,4,0,52,0,100,0,0,@GR_Champion,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'GR Champion - On text over - Cast Charge'), +(@GR_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Champion - IC - Cast Thrust'), +(@GR_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Champion - On more than 5 yard range - Cast Shield-Breaker'), +(@GR_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - IC - Move forward 12 yards'), +(@GR_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Champion - On 10-12 yard range - Cast Charge'), +(@GR_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - Cast Shield-Breaker'), +(@GR_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - On HP% between 1% and 6% - Change faction to 35'), +(@GR_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - Say text'), +(@GR_Champion,0,12,13,61,0,100,0,0,0,0,0,85,63596,0,0,0,0,0,12,1,0,0,0,0,0,0,'GR Champion - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@GR_Champion,0,13,14,61,0,100,0,0,0,0,0,85,64809,0,0,0,0,0,12,1,0,0,0,0,0,0,'GR Champion - Linked with previous event - Cast credit'), +(@GR_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - Evade'), +(@GR_Champion,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - On player killed - Say text'), +(@GR_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - Set unseen'), +(@GR_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - Despawn in 1 ms'); +-- Argent Champions texts +DELETE FROM `creature_text` WHERE `entry`= @GR_Champion; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`,`BroadcastTextId`) VALUES +(@GR_Champion,0,0,'Ready yourself!',12,7,100,0,0,0,'Argent Champion', 33757), +(@GR_Champion,0,1,'Prepare yourself!',12,7,100,0,0,0,'Argent Champion', 33755), +(@GR_Champion,0,2,'On your guard!',12,7,100,0,0,0,'Argent Champion', 33756), +(@GR_Champion,0,3,'Let it begin!',12,7,100,0,0,0,'Argent Champion', 33758), +(@GR_Champion,1,0,'Victory is mine!',12,7,100,0,0,0,'Argent Champion', 33777), +(@GR_Champion,1,1,'It seems you still need more practice. Perhaps another time.',12,7,100,0,0,0,'Argent Champion', 33764), +(@GR_Champion,1,2,'I have won. Better luck another time, friend.',12,7,100,0,0,0,'Argent Champion', 33779), +(@GR_Champion,1,3,'I am afraid you will need more practice to defeat me.',12,7,100,0,0,0,'Argent Champion', 33778), +(@GR_Champion,2,0,'I yield to you.',12,7,100,0,0,0,'Argent Champion', 33774), +(@GR_Champion,2,1,'That was a well fought battle. I yield to you.',12,7,100,0,0,0,'Argent Champion', 33776), +(@GR_Champion,2,2,'It would seem I underestimated your skills. Well done.',12,7,100,0,0,0,'Argent Champion', 33775), +(@GR_Champion,2,3,'I have been defeated. Good fight!',12,7,100,0,0,0,'Argent Champion', 33760); +SET @IF_Champion := 33743; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@IF_Champion; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@IF_Champion; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@IF_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - On Reset - Remove auras from Defend'), +(@IF_Champion,0,1,2,62,0,100,0,10456,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'IF Champion - On gossip select - Close gossip'), +(@IF_Champion,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - store target'), +(@IF_Champion,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - Call timed actionlist'), +(@IF_Champion,0,4,0,52,0,100,0,0,@IF_Champion,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'IF Champion - On text over - Cast Charge'), +(@IF_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Champion - IC - Cast Thrust'), +(@IF_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Champion - On more than 5 yard range - Cast Shield-Breaker'), +(@IF_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - IC - Move forward 12 yards'), +(@IF_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Champion - On 10-12 yard range - Cast Charge'), +(@IF_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - Cast Shield-Breaker'), +(@IF_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - On HP% between 1% and 6% - Change faction to 35'), +(@IF_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - Say text'), +(@IF_Champion,0,12,13,61,0,100,0,0,0,0,0,85,63596,0,0,0,0,0,12,1,0,0,0,0,0,0,'IF Champion - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@IF_Champion,0,13,14,61,0,100,0,0,0,0,0,85,64810,0,0,0,0,0,12,1,0,0,0,0,0,0,'IF Champion - Linked with previous event - Cast credit'), +(@IF_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - Evade'), +(@IF_Champion,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - On player killed - Say text'), +(@IF_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - Set unseen'), +(@IF_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - Despawn in 1 ms'); +-- Argent Champions texts +DELETE FROM `creature_text` WHERE `entry`= @IF_Champion; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`,`BroadcastTextId`) VALUES +(@IF_Champion,0,0,'Ready yourself!',12,7,100,0,0,0,'Argent Champion', 33757), +(@IF_Champion,0,1,'Prepare yourself!',12,7,100,0,0,0,'Argent Champion', 33755), +(@IF_Champion,0,2,'On your guard!',12,7,100,0,0,0,'Argent Champion', 33756), +(@IF_Champion,0,3,'Let it begin!',12,7,100,0,0,0,'Argent Champion', 33758), +(@IF_Champion,1,0,'Victory is mine!',12,7,100,0,0,0,'Argent Champion', 33777), +(@IF_Champion,1,1,'It seems you still need more practice. Perhaps another time.',12,7,100,0,0,0,'Argent Champion', 33764), +(@IF_Champion,1,2,'I have won. Better luck another time, friend.',12,7,100,0,0,0,'Argent Champion', 33779), +(@IF_Champion,1,3,'I am afraid you will need more practice to defeat me.',12,7,100,0,0,0,'Argent Champion', 33778), +(@IF_Champion,2,0,'I yield to you.',12,7,100,0,0,0,'Argent Champion', 33774), +(@IF_Champion,2,1,'That was a well fought battle. I yield to you.',12,7,100,0,0,0,'Argent Champion', 33776), +(@IF_Champion,2,2,'It would seem I underestimated your skills. Well done.',12,7,100,0,0,0,'Argent Champion', 33775), +(@IF_Champion,2,3,'I have been defeated. Good fight!',12,7,100,0,0,0,'Argent Champion', 33760); +SET @SW_Champion := 33747; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@SW_Champion; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@SW_Champion; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@SW_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - On Reset - Remove auras from Defend'), +(@SW_Champion,0,1,2,62,0,100,0,10460,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'SW Champion - On gossip select - Close gossip'), +(@SW_Champion,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - store target'), +(@SW_Champion,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - Call timed actionlist'), +(@SW_Champion,0,4,0,52,0,100,0,0,@SW_Champion,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'SW Champion - On text over - Cast Charge'), +(@SW_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Champion - IC - Cast Thrust'), +(@SW_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Champion - On more than 5 yard range - Cast Shield-Breaker'), +(@SW_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - IC - Move forward 12 yards'), +(@SW_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Champion - On 10-12 yard range - Cast Charge'), +(@SW_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - Cast Shield-Breaker'), +(@SW_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - On HP% between 1% and 6% - Change faction to 35'), +(@SW_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - Say text'), +(@SW_Champion,0,12,13,61,0,100,0,0,0,0,0,85,63596,0,0,0,0,0,12,1,0,0,0,0,0,0,'SW Champion - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@SW_Champion,0,13,14,61,0,100,0,0,0,0,0,85,64814,0,0,0,0,0,12,1,0,0,0,0,0,0,'SW Champion - Linked with previous event - Cast credit'), +(@SW_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - Evade'), +(@SW_Champion,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - On player killed - Say text'), +(@SW_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - Set unseen'), +(@SW_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - Despawn in 1 ms'); +-- Argent Champions texts +DELETE FROM `creature_text` WHERE `entry`= @SW_Champion; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`,`BroadcastTextId`) VALUES +(@SW_Champion,0,0,'Ready yourself!',12,7,100,0,0,0,'Argent Champion', 33757), +(@SW_Champion,0,1,'Prepare yourself!',12,7,100,0,0,0,'Argent Champion', 33755), +(@SW_Champion,0,2,'On your guard!',12,7,100,0,0,0,'Argent Champion', 33756), +(@SW_Champion,0,3,'Let it begin!',12,7,100,0,0,0,'Argent Champion', 33758), +(@SW_Champion,1,0,'Victory is mine!',12,7,100,0,0,0,'Argent Champion', 33777), +(@SW_Champion,1,1,'It seems you still need more practice. Perhaps another time.',12,7,100,0,0,0,'Argent Champion', 33764), +(@SW_Champion,1,2,'I have won. Better luck another time, friend.',12,7,100,0,0,0,'Argent Champion', 33779), +(@SW_Champion,1,3,'I am afraid you will need more practice to defeat me.',12,7,100,0,0,0,'Argent Champion', 33778), +(@SW_Champion,2,0,'I yield to you.',12,7,100,0,0,0,'Argent Champion', 33774), +(@SW_Champion,2,1,'That was a well fought battle. I yield to you.',12,7,100,0,0,0,'Argent Champion', 33776), +(@SW_Champion,2,2,'It would seem I underestimated your skills. Well done.',12,7,100,0,0,0,'Argent Champion', 33775), +(@SW_Champion,2,3,'I have been defeated. Good fight!',12,7,100,0,0,0,'Argent Champion', 33760); +SET @Darn_Champion := 33738; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Darn_Champion; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@Darn_Champion; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@Darn_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - On Reset - Remove auras from Defend'), +(@Darn_Champion,0,1,2,62,0,100,0,10453,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Darn Champion - On gossip select - Close gossip'), +(@Darn_Champion,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - store target'), +(@Darn_Champion,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Call timed actionlist'), +(@Darn_Champion,0,4,0,52,0,100,0,0,@Darn_Champion,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'Darn Champion - On text over - Cast Charge'), +(@Darn_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Champion - IC - Cast Thrust'), +(@Darn_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Champion - On more than 5 yard range - Cast Shield-Breaker'), +(@Darn_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - IC - Move forward 12 yards'), +(@Darn_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Champion - On 10-12 yard range - Cast Charge'), +(@Darn_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Cast Shield-Breaker'), +(@Darn_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - On HP% between 1% and 6% - Change faction to 35'), +(@Darn_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Say text'), +(@Darn_Champion,0,12,13,61,0,100,0,0,0,0,0,85,63596,0,0,0,0,0,12,1,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@Darn_Champion,0,13,14,61,0,100,0,0,0,0,0,85,64805,0,0,0,0,0,12,1,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Cast credit'), +(@Darn_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Evade'), +(@Darn_Champion,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - On player killed - Say text'), +(@Darn_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Set unseen'), +(@Darn_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Despawn in 1 ms'); +-- Argent Champions texts +DELETE FROM `creature_text` WHERE `entry`= @Darn_Champion; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`,`BroadcastTextId`) VALUES +(@Darn_Champion,0,0,'Ready yourself!',12,7,100,0,0,0,'Argent Champion', 33757), +(@Darn_Champion,0,1,'Prepare yourself!',12,7,100,0,0,0,'Argent Champion', 33755), +(@Darn_Champion,0,2,'On your guard!',12,7,100,0,0,0,'Argent Champion', 33756), +(@Darn_Champion,0,3,'Let it begin!',12,7,100,0,0,0,'Argent Champion', 33758), +(@Darn_Champion,1,0,'Victory is mine!',12,7,100,0,0,0,'Argent Champion', 33777), +(@Darn_Champion,1,1,'It seems you still need more practice. Perhaps another time.',12,7,100,0,0,0,'Argent Champion', 33764), +(@Darn_Champion,1,2,'I have won. Better luck another time, friend.',12,7,100,0,0,0,'Argent Champion', 33779), +(@Darn_Champion,1,3,'I am afraid you will need more practice to defeat me.',12,7,100,0,0,0,'Argent Champion', 33778), +(@Darn_Champion,2,0,'I yield to you.',12,7,100,0,0,0,'Argent Champion', 33774), +(@Darn_Champion,2,1,'That was a well fought battle. I yield to you.',12,7,100,0,0,0,'Argent Champion', 33776), +(@Darn_Champion,2,2,'It would seem I underestimated your skills. Well done.',12,7,100,0,0,0,'Argent Champion', 33775), +(@Darn_Champion,2,3,'I have been defeated. Good fight!',12,7,100,0,0,0,'Argent Champion', 33760); +SET @Exo_Champion := 33739; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Exo_Champion; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@Exo_Champion; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@Exo_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - On Reset - Remove auras from Defend'), +(@Exo_Champion,0,1,2,62,0,100,0,10454,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Exo Champion - On gossip select - Close gossip'), +(@Exo_Champion,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - store target'), +(@Exo_Champion,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Call timed actionlist'), +(@Exo_Champion,0,4,0,52,0,100,0,0,@Exo_Champion,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'Exo Champion - On text over - Cast Charge'), +(@Exo_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Champion - IC - Cast Thrust'), +(@Exo_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Champion - On more than 5 yard range - Cast Shield-Breaker'), +(@Exo_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - IC - Move forward 12 yards'), +(@Exo_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Champion - On 10-12 yard range - Cast Charge'), +(@Exo_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Cast Shield-Breaker'), +(@Exo_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - On HP% between 1% and 6% - Change faction to 35'), +(@Exo_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Say text'), +(@Exo_Champion,0,12,13,61,0,100,0,0,0,0,0,85,63596,0,0,0,0,0,12,1,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@Exo_Champion,0,13,14,61,0,100,0,0,0,0,0,85,64808,0,0,0,0,0,12,1,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Cast credit'), +(@Exo_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Evade'), +(@Exo_Champion,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - On player killed - Say text'), +(@Exo_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Set unseen'), +(@Exo_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Despawn in 1 ms'); +-- Argent Champions texts +DELETE FROM `creature_text` WHERE `entry`= @Exo_Champion; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`,`BroadcastTextId`) VALUES +(@Exo_Champion,0,0,'Ready yourself!',12,7,100,0,0,0,'Argent Champion', 33757), +(@Exo_Champion,0,1,'Prepare yourself!',12,7,100,0,0,0,'Argent Champion', 33755), +(@Exo_Champion,0,2,'On your guard!',12,7,100,0,0,0,'Argent Champion', 33756), +(@Exo_Champion,0,3,'Let it begin!',12,7,100,0,0,0,'Argent Champion', 33758), +(@Exo_Champion,1,0,'Victory is mine!',12,7,100,0,0,0,'Argent Champion', 33777), +(@Exo_Champion,1,1,'It seems you still need more practice. Perhaps another time.',12,7,100,0,0,0,'Argent Champion', 33764), +(@Exo_Champion,1,2,'I have won. Better luck another time, friend.',12,7,100,0,0,0,'Argent Champion', 33779), +(@Exo_Champion,1,3,'I am afraid you will need more practice to defeat me.',12,7,100,0,0,0,'Argent Champion', 33778), +(@Exo_Champion,2,0,'I yield to you.',12,7,100,0,0,0,'Argent Champion', 33774), +(@Exo_Champion,2,1,'That was a well fought battle. I yield to you.',12,7,100,0,0,0,'Argent Champion', 33776), +(@Exo_Champion,2,2,'It would seem I underestimated your skills. Well done.',12,7,100,0,0,0,'Argent Champion', 33775), +(@Exo_Champion,2,3,'I have been defeated. Good fight!',12,7,100,0,0,0,'Argent Champion', 33760); +SET @UC_Champion := 33749; +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@UC_Champion; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@UC_Champion; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@UC_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - On Reset - Remove auras from Defend'), +(@UC_Champion,0,1,2,62,0,100,0,10462,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'UC Champion - On gossip select - Close gossip'), +(@UC_Champion,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - store target'), +(@UC_Champion,0,3,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - Call timed actionlist'), +(@UC_Champion,0,4,0,52,0,100,0,0,@UC_Champion,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'UC Champion - On text over - Cast Charge'), +(@UC_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Champion - IC - Cast Thrust'), +(@UC_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Champion - On more than 5 yard range - Cast Shield-Breaker'), +(@UC_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - IC - Move forward 12 yards'), +(@UC_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Champion - On 10-12 yard range - Cast Charge'), +(@UC_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - Cast Shield-Breaker'), +(@UC_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - On HP% between 1% and 6% - Change faction to 35'), +(@UC_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - Say text'), +(@UC_Champion,0,12,13,61,0,100,0,0,0,0,0,85,63596,0,0,0,0,0,12,1,0,0,0,0,0,0,'UC Champion - Linked with previous event - Cast Mounted Melee Victory /item/'), +(@UC_Champion,0,13,14,61,0,100,0,0,0,0,0,85,64816,0,0,0,0,0,12,1,0,0,0,0,0,0,'UC Champion - Linked with previous event - Cast credit'), +(@UC_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - Evade'), +(@UC_Champion,0,15,16,5,0,100,0,60000,60000,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - On player killed - Say text'), +(@UC_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - Set unseen'), +(@UC_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - Despawn in 1 ms'); +-- Argent Champions texts +DELETE FROM `creature_text` WHERE `entry`= @UC_Champion; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`,`BroadcastTextId`) VALUES +(@UC_Champion,0,0,'Ready yourself!',12,1,100,0,0,0,'Argent Champion', 33757), +(@UC_Champion,0,1,'Prepare yourself!',12,1,100,0,0,0,'Argent Champion', 33755), +(@UC_Champion,0,2,'On your guard!',12,1,100,0,0,0,'Argent Champion', 33756), +(@UC_Champion,0,3,'Let it begin!',12,1,100,0,0,0,'Argent Champion', 33758), +(@UC_Champion,1,0,'Victory is mine!',12,1,100,0,0,0,'Argent Champion', 33777), +(@UC_Champion,1,1,'It seems you still need more practice. Perhaps another time.',12,1,100,0,0,0,'Argent Champion', 33764), +(@UC_Champion,1,2,'I have won. Better luck another time, friend.',12,1,100,0,0,0,'Argent Champion', 33779), +(@UC_Champion,1,3,'I am afraid you will need more practice to defeat me.',12,1,100,0,0,0,'Argent Champion', 33778), +(@UC_Champion,2,0,'I yield to you.',12,1,100,0,0,0,'Argent Champion', 33774), +(@UC_Champion,2,1,'That was a well fought battle. I yield to you.',12,1,100,0,0,0,'Argent Champion', 33776), +(@UC_Champion,2,2,'It would seem I underestimated your skills. Well done.',12,1,100,0,0,0,'Argent Champion', 33775), +(@UC_Champion,2,3,'I have been defeated. Good fight!',12,1,100,0,0,0,'Argent Champion', 33760); + + +DELETE FROM `gossip_menu` WHERE `entry` IN (10453, 10454, 10455, 10456, 10457, 10458, 10459, 10460, 10461, 10462); +INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES +(10453, 14421), +(10453, 14489), +(10454, 14421), +(10454, 14489), +(10455, 14421), +(10455, 14489), +(10456, 14421), +(10456, 14489), +(10457, 14421), +(10457, 14489), +(10458, 14421), +(10458, 14489), +(10459, 14421), +(10459, 14489), +(10460, 14421), +(10460, 14489), +(10461, 14421), +(10461, 14489), +(10462, 14421), +(10462, 14489); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup` IN (10453, 10454, 10455, 10456, 10457, 10458, 10459, 10460, 10461, 10462); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`, `ErrorTextId`,`ScriptName`,`Comment`, `NegativeCondition`) VALUES +(14,10453,14421,0,1,64805,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10453,14489,0,1,64805,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10454,14421,0,1,64808,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10454,14489,0,1,64808,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10455,14421,0,1,64809,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10455,14489,0,1,64809,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10456,14421,0,1,64810,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10456,14489,0,1,64810,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10457,14421,0,1,64811,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10457,14489,0,1,64811,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10458,14421,0,1,64812,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10458,14489,0,1,64812,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10459,14421,0,1,64813,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10459,14489,0,1,64813,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10460,14421,0,1,64814,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10460,14489,0,1,64814,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10461,14421,0,1,64815,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10461,14489,0,1,64815,0,0,0,'','Show gossip menu text if the player have the aura', 0), +(14,10462,14421,0,1,64816,0,0,0,'','Show gossip menu text if the player haven''t the aura', 1), +(14,10462,14489,0,1,64816,0,0,0,'','Show gossip menu text if the player have the aura', 0); +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup` IN (10453, 10454, 10455, 10456, 10457, 10458, 10459, 10460, 10461, 10462); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ConditionTarget`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`,`NegativeCondition`) VALUES +(15,10453,0,0,1,9,13790,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10453,0,0,1,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10453,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10453,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10453,0,0,2,9,13793,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10453,0,0,2,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10453,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10453,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10453,0,0,3,9,13811,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10453,0,0,3,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10453,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10453,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10453,0,0,4,9,13814,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10453,0,0,4,1,64805,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10453,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10453,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10454,0,0,1,9,13790,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10454,0,0,1,1,64808,0,0,0,'','Show gossip menu only if don''t have the auran',1), +(15,10454,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10454,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10454,0,0,2,9,13793,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10454,0,0,2,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10454,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10454,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10454,0,0,3,9,13811,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10454,0,0,3,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10454,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10454,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10454,0,0,4,9,13814,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10454,0,0,4,1,64808,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10454,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10454,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10455,0,0,1,9,13790,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10455,0,0,1,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10455,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10455,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10455,0,0,2,9,13793,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10455,0,0,2,1,64809,0,0,0,'','Show gossip menu only if don''t have the auran',1), +(15,10455,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10455,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10455,0,0,3,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10455,0,0,3,9,13811,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10455,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10455,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10455,0,0,4,1,64809,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10455,0,0,4,9,13814,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10455,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10455,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10456,0,0,1,9,13790,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10456,0,0,1,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10456,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10456,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10456,0,0,2,9,13793,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10456,0,0,2,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10456,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10456,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10456,0,0,3,9,13811,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10456,0,0,3,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10456,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10456,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10456,0,0,4,9,13814,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10456,0,0,4,1,64810,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10456,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10456,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10457,0,0,1,9,13790,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10457,0,0,1,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10457,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10457,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10457,0,0,2,9,13793,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10457,0,0,2,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10457,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10457,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10457,0,0,3,9,13811,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10457,0,0,3,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10457,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10457,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10457,0,0,4,9,13814,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10457,0,0,4,1,64811,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10457,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10457,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10458,0,0,1,9,13790,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10458,0,0,1,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10458,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10458,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10458,0,0,2,9,13793,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10458,0,0,2,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10458,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10458,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10458,0,0,3,9,13811,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10458,0,0,3,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10458,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10458,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10458,0,0,4,9,13814,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10458,0,0,4,1,64812,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10458,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10458,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10459,0,0,1,9,13790,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10459,0,0,1,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10459,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10459,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10459,0,0,2,9,13793,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10459,0,0,2,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10459,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10459,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10459,0,0,3,9,13811,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10459,0,0,3,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10459,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10459,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10459,0,0,4,9,13814,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10459,0,0,4,1,64813,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10459,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10459,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10460,0,0,1,9,13790,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10460,0,0,1,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10460,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10460,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10460,0,0,2,9,13793,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10460,0,0,2,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10460,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10460,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10460,0,0,3,9,13811,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10460,0,0,3,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10460,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10460,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10460,0,0,4,9,13814,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10460,0,0,4,1,64814,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10460,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10460,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10461,0,0,1,9,13790,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10461,0,0,1,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10461,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10461,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10461,0,0,2,9,13793,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10461,0,0,2,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10461,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10461,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10461,0,0,3,9,13811,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10461,0,0,3,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10461,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10461,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10461,0,0,4,9,13814,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10461,0,0,4,1,64815,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10461,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10461,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10462,0,0,1,9,13790,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10462,0,0,1,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10462,0,0,1,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10462,0,0,1,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10462,0,0,2,9,13793,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10462,0,0,2,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10462,0,0,2,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10462,0,0,2,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10462,0,0,3,9,13811,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10462,0,0,3,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10462,0,0,3,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10462,0,0,3,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10462,0,0,4,9,13814,0,0,0,'','Show gossip menu only if quest Among the Champions is taken',0), +(15,10462,0,0,4,1,64816,0,0,0,'','Show gossip menu only if don''t have the aura',1), +(15,10462,0,0,4,1,63034,0,0,0,'','Show gossip menu only if the player have the aura',0), +(15,10462,0,0,4,1,62853,0,0,0,'','Show gossip menu only if the player have the aura',0); diff --git a/sql/updates/world/2015_05_09_12_world.sql b/sql/updates/world/2015_05_09_12_world.sql new file mode 100644 index 00000000000..d2e488cc026 --- /dev/null +++ b/sql/updates/world/2015_05_09_12_world.sql @@ -0,0 +1,35 @@ +-- The Exorcism of Colonel Jules +UPDATE `creature_template` SET `ScriptName`= 'npc_barada' WHERE `entry`= 22431; +UPDATE `creature_template` SET `ScriptName`= 'npc_colonel_jules' WHERE `entry`= 22432; + +DELETE FROM `gossip_menu_option` WHERE `menu_id` = 8539; +INSERT INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `OptionBroadcastTextID`, `option_id`, `npc_option_npcflag`) VALUES +(8539, 1, 0, 'I am ready, Anchorite. Let us begin the exorcism.', 20396, 1, 3); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=8539; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`, `ErrorTextId`,`ScriptName`,`Comment`) VALUES +(15,8539,0,0,9,10935,0,0,0,'','Show gossip menu if player accept Exorcism of Colonel Jules'); + +DELETE FROM `creature_text` WHERE `entry` IN(22431, 22432); +-- Barada +INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(22431, 0, 0, 'It is time. The rite of exorcism will now commence...', 12, 0, 100, 0, 0, 0, 20400, 0, 'Barada'), +(22431, 1, 0, 'Prepare yourself. Do not allow the ritual to be interrupted or we may lose our patient...', 12, 0, 100, 0, 0, 0, 20401, 0, 'Barada'), +(22431, 2, 0, 'Back foul beings of darkness! You have no power here!', 12, 0, 100, 0, 0, 0, 20404, 0, 'Barada'), +(22431, 3, 0, 'I... must not... falter', 12, 0, 100, 0, 0, 0, 20407, 0, 'Barada'), +(22431, 4, 0, 'The Light is my guide... it is my sustenance!', 12, 0, 100, 0, 0, 0, 20408, 0, 'Barada'), +(22431, 5, 0, 'The power of light compells you! Back to your pit!', 12, 0, 100, 0, 0, 0, 20405, 0, 'Barada'), +(22431, 6, 0, 'Be cleansed with Light, human! Let not the demonic corruption overwhelm you.', 12, 0, 100, 0, 0, 0, 20403, 0, 'Barada'), +(22431, 7, 0, 'Back! I cast you back... corruptor of faith! Author of pain! Do not return, or suffer the same fate as you did here today!', 12, 0, 100, 0, 0, 0, 20419, 0, 'Barada'), + +-- Colonel Jules +(22432, 0, 0, 'Keep away. The fool is mine.', 12, 0, 100, 0, 0, 0, 20402, 0, 'Colonel Jules'), +(22432, 1, 0, 'Ah! Cease the incantations, Anchorite! Cease, or I will show you such pain that your pathetic people have never imagined!', 12, 0, 100, 0, 0, 0, 20414, 0, 'Colonel Jules'), +(22432, 2, 0, 'This is fruitless, draenei! You and your little helper cannot wrest control of this pathetic human. He is mine!', 12, 0, 100, 0, 0, 0, 20416, 0, 'Colonel Jules'), +(22432, 3, 0, 'I see your ancestors, Anchorite! They writhe and scream in the darkness... they are with us!', 12, 0, 100, 0, 0, 0, 20415, 0, 'Colonel Jules'), +(22432, 4, 0, 'I will tear your soul into morsels and slow roast them over demon fire.', 12, 0, 100, 0, 0, 0, 20417, 0, 'Colonel Jules'); + +-- Aura for the flying skulls +DELETE FROM `creature_template_addon` WHERE `entry` = 22507; +INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES +(22507, 0, 0, 0, 1, 0, '39303'); diff --git a/sql/updates/world/2015_05_11_00_world.sql b/sql/updates/world/2015_05_11_00_world.sql new file mode 100644 index 00000000000..5e8485202fa --- /dev/null +++ b/sql/updates/world/2015_05_11_00_world.sql @@ -0,0 +1,2 @@ +-- +UPDATE `conditions` SET `ConditionTypeOrReference`=9, `SourceEntry`=1 WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=8539; diff --git a/sql/updates/world/2015_05_11_01_world.sql b/sql/updates/world/2015_05_11_01_world.sql new file mode 100644 index 00000000000..d90a5fef88d --- /dev/null +++ b/sql/updates/world/2015_05_11_01_world.sql @@ -0,0 +1,130 @@ +-- +-- Okla +DELETE FROM `creature_text` WHERE `entry` IN (14873, 5907); +INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`,`BroadcastTextId`) VALUES +(14873, 0, 0, 'Can I go collect more rocks for my necklace, Papa?', 12, 1, 100, 1, 0, 0, 'Okla',10274), +(14873, 1, 0, 'Dabu! I will be careful Papa!', 12, 1, 100, 1, 0, 0, 'Okla', 10276), +(14873, 2, 0, 'Ooohh... This rock is nice and colorful. Let\'s see if I can find more like it...', 12, 1, 100, 1, 0, 0, 'Okla', 10277), +(14873, 3, 0, 'Hmm... That rock is nice, but too small.', 12, 1, 100, 1, 0, 0, 'Okla', 10278), +(14873, 4, 0, 'This is a shiney rock. I\'ll put it in my bucket. Ok, I just need a few more...', 12, 1, 100, 1, 0, 0, 'Okla', 10279), +(14873, 5, 0, 'I bet my friend Gruk would like this rock for the spear he is making! It\'s very sharp... I hope he likes it.', 12, 1, 100, 1, 0, 0, 'Okla', 10280), +(14873, 6, 0, 'There... That should be enough rocks to make a necklace. I should probably get home now anyway.', 12, 1, 100, 1, 0, 0, 'Okla', 10281), +(5907, 0, 0, 'Yes you may, Okla. But do not stray too far from home.', 12, 1, 100, 1, 0, 0, 'Kranal Fiss', 10275); + +-- Okla SAI +SET @ENTRY := 14873; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,14873,1,0,0,0,1,0,0,0,0,0,0,0,"Okla - On Reset - Start Waypoint"), +(@ENTRY,0,1,0,40,0,100,0,2,14873,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Okla - On Waypoint 2 Reached - Run Script"), +(@ENTRY,0,2,0,40,0,100,0,13,14873,0,0,80,@ENTRY*100+01,0,0,0,0,0,1,0,0,0,0,0,0,0,"Okla - On Waypoint 13 Reached - Run Script"), +(@ENTRY,0,3,0,40,0,100,0,18,14873,0,0,80,@ENTRY*100+02,0,0,0,0,0,1,0,0,0,0,0,0,0,"Okla - On Waypoint 18 Reached - Run Script"), +(@ENTRY,0,4,0,40,0,100,0,24,14873,0,0,80,@ENTRY*100+03,0,0,0,0,0,1,0,0,0,0,0,0,0,"Okla - On Waypoint 24 Reached - Run Script"), +(@ENTRY,0,5,0,40,0,100,0,29,14873,0,0,80,@ENTRY*100+04,0,0,0,0,0,1,0,0,0,0,0,0,0,"Okla - On Waypoint 29 Reached - Run Script"), +(@ENTRY,0,6,0,40,0,100,0,35,14873,0,0,80,@ENTRY*100+05,0,0,0,0,0,1,0,0,0,0,0,0,0,"Okla - On Waypoint 35 Reached - Run Script"); + +-- Actionlist SAI +SET @ENTRY := 1487300; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,21000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"), +(@ENTRY,9,1,0,0,0,100,0,5000,5000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 0"), +(@ENTRY,9,2,0,0,0,100,0,8000,8000,0,0,1,0,0,0,0,0,0,19,5907,50,0,0,0,0,0,"On Script - Say Line 0"), +(@ENTRY,9,3,0,0,0,100,0,7000,7000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 1"); + +-- Actionlist SAI +SET @ENTRY := 1487301; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"), +(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 2"); + +-- Actionlist SAI +SET @ENTRY := 1487302; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"), +(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 3"); + +-- Actionlist SAI +SET @ENTRY := 1487303; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"), +(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,1,4,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 4"); + +-- Actionlist SAI +SET @ENTRY := 1487304; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"), +(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,1,5,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 5"); + +-- Actionlist SAI +SET @ENTRY := 1487305; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"), +(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,1,6,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 6"); + +DELETE FROM `waypoints` WHERE `entry`=14873; +INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`) VALUES +(14873, 1, 270.076, -3036.6, 97.6192), +(14873, 2, 262.171, -3043.45, 96.5053), +(14873, 3, 251.328, -3055.55, 96.1454), +(14873, 4, 246.888, -3070.92, 95.2793), +(14873, 5, 242.449, -3081.3, 91.82), +(14873, 6, 232.826, -3106.67, 93.3165), +(14873, 7, 226.41, -3120.76, 93.3475), +(14873, 8, 213.921, -3151.01, 91.2851), +(14873, 9, 221.681, -3147.9, 91.374), +(14873, 10, 214.549, -3134.64, 91.9876), +(14873, 11, 210.931, -3139.95, 91.6514), +(14873, 12, 214.059, -3139.64, 91.7), +(14873, 13, 213.426, -3131.78, 92.1297), +(14873, 14, 220.194, -3140.72, 91.7517), +(14873, 15, 225.395, -3139.1, 92.0847), +(14873, 16, 220.857, -3140.83, 91.7662), +(14873, 17, 218.769, -3132.79, 92.4983), +(14873, 18, 226.814, -3137.56, 92.169), +(14873, 19, 225.496, -3132.89, 92.7818), +(14873, 20, 213.603, -3148.39, 91.4489), +(14873, 21, 219.055, -3151.2, 91.2139), +(14873, 22, 220.469, -3141.93, 91.6344), +(14873, 23, 214.852, -3148.32, 91.4558), +(14873, 24, 218.373, -3144.99, 91.5714), +(14873, 25, 224.091, -3149.02, 91.2304), +(14873, 26, 224.591, -3145.02, 91.4801), +(14873, 27, 219.022, -3147.38, 91.4735), +(14873, 28, 220.167, -3139.75, 91.8958), +(14873, 29, 225.033, -3133.14, 92.8028), +(14873, 30, 222.021, -3128.32, 93.0422), +(14873, 31, 228.338, -3126.35, 92.9595), +(14873, 32, 229.495, -3129.22, 92.6818), +(14873, 33, 232.12, -3128.11, 92.5988), +(14873, 34, 227.003, -3137.58, 92.1461), +(14873, 35, 220.002, -3132.38, 92.659), +(14873, 36, 225.874, -3102.36, 93.6962), +(14873, 37, 233.086, -3085.54, 91.6788), +(14873, 38, 235.152, -3069.81, 91.8706), +(14873, 39, 239.821, -3061.03, 95.4022), +(14873, 40, 256.123, -3047.91, 96.2473), +(14873, 41, 267.05, -3039.04, 96.9212), +(14873, 42, 271.093, -3035.98, 97.6501), +(14873, 43, 278.975, -3029.68, 97.3919), +(14873, 44, 280.125, -3029.01, 97.3502); + +UPDATE `creature_addon` SET `path_id`=59070 WHERE `guid`=13174; +UPDATE `creature` SET `MovementType`=2 WHERE `guid`=13174; +DELETE FROM `waypoint_data` WHERE `id` IN (59070); +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`action`,`action_chance`,`wpguid`) VALUES +(59070,0,265.967000,-3050.670000,96.921500,0,0,0,100,0), +(59070,1,263.671661,-3047.959961,96.665161,0,0,0,100,0), +(59070,2,260.557739,-3038.177002,96.740677,0,0,0,100,0), +(59070,3,262.354950,-3036.125732,96.990982,0,0,0,100,0), +(59070,4,261.470215,-3036.779541,96.961708,0,60000,0,100,0), +(59070,5,259.890106,-3038.696045,96.572845,0,0,0,100,0), +(59070,6,265.967468,-3050.672363,96.921516,0,0,0,100,0), +(59070,7,265.967000,-3050.670000,96.921500,0,30000,0,100,0); +UPDATE `creature` SET `position_x`=280.125, `position_y`=-3029.01, `position_z`=97.3502, `orientation`= 3.764 WHERE `guid`=14873; diff --git a/sql/updates/world/2015_05_11_02_world.sql b/sql/updates/world/2015_05_11_02_world.sql new file mode 100644 index 00000000000..7ec5f4870ce --- /dev/null +++ b/sql/updates/world/2015_05_11_02_world.sql @@ -0,0 +1,34 @@ +-- +DELETE FROM `waypoint_data` WHERE `id`=1207950; +DELETE FROM `creature_addon` WHERE `guid`=120795; +UPDATE `creature` SET `MovementType`=0 WHERE `guid`=120795; +DELETE FROM `waypoint_scripts` WHERE `guid`=120795; + +-- Refurbished Steam Tank SAI +SET @ENTRY := 29144; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,29144,0,0,0,0,1,0,0,0,0,0,0,0,"Refurbished Steam Tank - On Reset - Start Waypoint"), +(@ENTRY,0,1,0,40,0,100,0,1,29144,0,0,54,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Refurbished Steam Tank - On Waypoint 1 Reached - Pause Waypoint"), +(@ENTRY,0,2,0,40,0,100,0,2,29144,0,0,54,120000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Refurbished Steam Tank - On Waypoint 2 Reached - Pause Waypoint"), +(@ENTRY,0,3,0,40,0,100,0,3,29144,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Refurbished Steam Tank - On Waypoint 3 Reached - Pause Waypoint"), +(@ENTRY,0,4,0,40,0,100,0,6,29144,0,0,54,6000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Refurbished Steam Tank - On Waypoint 6 Reached - Pause Waypoint"), +(@ENTRY,0,5,0,40,0,100,0,10,29144,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Refurbished Steam Tank - On Waypoint 10 Reached - Pause Waypoint"), +(@ENTRY,0,6,7,40,0,100,0,11,29144,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Refurbished Steam Tank - On Waypoint 11 Reached - Pause Waypoint"), +(@ENTRY,0,7,0,61,0,100,0,11,29144,0,0,37,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Refurbished Steam Tank - On Waypoint 11 Reached - Kill Self"), +(@ENTRY,0,8,0,6,0,100,0,0,0,0,0,41,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Refurbished Steam Tank - On Just Died - Despawn In 3000 ms"); + +DELETE FROM `waypoints` WHERE `entry`=@ENTRY; +INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES +(@ENTRY, 1, -8463.9, 1109.41, 19.1352, 'Refurbished Steam Tank'), +(@ENTRY, 2, -8463.52, 1112.6, 19.0517, 'Refurbished Steam Tank'), +(@ENTRY, 3, -8463.23, 1108.18, 19.053, 'Refurbished Steam Tank'), +(@ENTRY, 4, -8473.35, 1096.63, 18.7345, 'Refurbished Steam Tank'), +(@ENTRY, 5, -8496.34, 1095.88, 17.9444, 'Refurbished Steam Tank'), +(@ENTRY, 6, -8499.86, 1132.84, 17.9763, 'Refurbished Steam Tank'), +(@ENTRY, 7, -8486, 1138.24, 17.9608, 'Refurbished Steam Tank'), +(@ENTRY, 8, -8462.43, 1136.04, 18.6577, 'Refurbished Steam Tank'), +(@ENTRY, 9, -8440.65, 1137.48, 18.8719, 'Refurbished Steam Tank'), +(@ENTRY, 10, -8412.35, 1137.49, 18.0685, 'Refurbished Steam Tank'), +(@ENTRY, 11, -8412.35, 1137.49, 18.0685, 'Refurbished Steam Tank'); diff --git a/sql/updates/world/2015_05_11_03_world.sql b/sql/updates/world/2015_05_11_03_world.sql new file mode 100644 index 00000000000..b0df32b2a92 --- /dev/null +++ b/sql/updates/world/2015_05_11_03_world.sql @@ -0,0 +1,234 @@ +-- DB/Quest: Assault by Air (H) +DELETE FROM `creature` WHERE `id`=32225; +INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`) VALUES +(16398, 32225, 571, 1, 1, 0, 0, 7303.23, 1520.81, 323.2961, 1.53589, 300, 0, 0, 63000, 0, 0, 0, 0, 0); + +UPDATE `creature_template` SET `spell1`=59880 WHERE `entry`=32227; +UPDATE `creature_template` SET `InhabitType`=4 WHERE `entry`=32225; +UPDATE `creature_template` SET `speed_run`=3 WHERE `entry`=32225; +UPDATE `vehicle_template_accessory` SET `minion`=1 WHERE `entry`=32225 AND `seat_id`=0; + +DELETE FROM `waypoints` WHERE `entry`=32225; +INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES +(32225, 1, 7224.952, 1493.076, 355.6927, 'Skybreaker Troop Transport'), +(32225, 2, 7158.104, 1468.994, 408.7451, 'Skybreaker Troop Transport'), +(32225, 3, 7091.476, 1447.724, 454.6882, 'Skybreaker Troop Transport'), +(32225, 4, 6959.782, 1423.015, 558.3835, 'Skybreaker Troop Transport'), +(32225, 5, 6779.104, 1463.505, 646.3554, 'Skybreaker Troop Transport'), +(32225, 6, 6655.649, 1608.774, 709.994, 'Skybreaker Troop Transport'), +(32225, 7, 6624.22, 1736.658, 728.0214, 'Skybreaker Troop Transport'), +(32225, 8, 6669.947, 1866.185, 709.688, 'Skybreaker Troop Transport'), +(32225, 9, 6718.041, 1885.129, 690.6326, 'Skybreaker Troop Transport'), +(32225, 10, 6795.828, 1838.745, 659.0216, 'Skybreaker Troop Transport'), +(32225, 11, 6829.202, 1723.054, 616.9384, 'Skybreaker Troop Transport'), +(32225, 12, 6938.554, 1702.879, 585.9383, 'Skybreaker Troop Transport'), +(32225, 13, 7024.898, 1752.804, 565.5496, 'Skybreaker Troop Transport'), +(32225, 14, 7113.707, 1734.315, 556.3559, 'Skybreaker Troop Transport'), +(32225, 15, 7265.8, 1765.196, 556.3559, 'Skybreaker Troop Transport'), +(32225, 16, 7302.899, 1853.759, 575.8558, 'Skybreaker Troop Transport'), +(32225, 17, 7312.44, 1944.328, 581.4116, 'Skybreaker Troop Transport'), +(32225, 18, 7307.329, 2014.243, 581.4116, 'Skybreaker Troop Transport'), +(32225, 19, 7253.363, 2115.422, 583.3, 'Skybreaker Troop Transport'), +(32225, 20, 7193.522, 2155.816, 607.7997, 'Skybreaker Troop Transport'), +(32225, 21, 7128.84, 2168.484, 642.6707, 'Skybreaker Troop Transport'), +(32225, 22, 7069.121, 2157.589, 689.7963, 'Skybreaker Troop Transport'), +(32225, 23, 7024.457, 2135.705, 708.6849, 'Skybreaker Troop Transport'), +(32225, 24, 6934.063, 2183.969, 750.9397, 'Skybreaker Troop Transport'), +(32225, 25, 6941.725, 2249.074, 754.6065, 'Skybreaker Troop Transport'), +(32225, 26, 7072.678, 2295.607, 714.44, 'Skybreaker Troop Transport'), +(32225, 27, 7260.946, 2257.761, 639.7736, 'Skybreaker Troop Transport'), +(32225, 28, 7419.038, 2123.693, 587.7736, 'Skybreaker Troop Transport'), +(32225, 29, 7471.735, 1962.737, 559.6346, 'Skybreaker Troop Transport'), +(32225, 30, 7436.465, 1818.688, 508.0233, 'Skybreaker Troop Transport'), +(32225, 31, 7366.372, 1694.51, 469.3012, 'Skybreaker Troop Transport'), +(32225, 32, 7329.872, 1609.157, 432.2737, 'Skybreaker Troop Transport'), +(32225, 33, 7296.424, 1556.42, 417.7181, 'Skybreaker Troop Transport'), +(32225, 34, 7272.382, 1525.835, 411.4405, 'Skybreaker Troop Transport'); + +-- Skybreaker Suppression Turret SAI +SET @ENTRY := 32227; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,27,0,100,0,0,0,0,0,45,1,0,0,0,0,0,19,32225,10,0,0,0,0,0,"Skybreaker Suppression Turret - On Passenger Boarded - Set Data 1 0"); + +-- Skybreaker Troop Transport SAI +SET @ENTRY := 32225; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,38,0,100,0,1,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Troop Transport - On Data Set 1 0 - Run Script"), +(@ENTRY,0,1,0,40,0,100,0,9,32225,0,0,11,64631,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Troop Transport - On Waypoint 11 Reached - Cast 'Eject Passenger 3'"), +(@ENTRY,0,2,0,40,0,100,0,13,32225,0,0,11,64614,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Troop Transport - On Waypoint 16 Reached - Cast 'Eject Passenger 4'"), +(@ENTRY,0,3,0,40,0,100,0,17,32225,0,0,11,64633,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Troop Transport - On Waypoint 19 Reached - Cast 'Eject Passenger 5'"), +(@ENTRY,0,4,0,40,0,100,0,22,32225,0,0,11,64634,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Troop Transport - On Waypoint 22 Reached - Cast 'Eject Passenger 6'"), +(@ENTRY,0,5,0,40,0,100,0,34,32225,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Troop Transport - On Waypoint 32 Reached - Despawn Instant"); + +-- Actionlist SAI +SET @ENTRY := 3222500; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,2000,2000,0,0,53,1,32225,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Troop Transport - On Script - Start Waypoint"), +(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,8,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Troop Transport - On Script - Set Reactstate Passive"), +(@ENTRY,9,2,0,0,0,100,0,0,0,0,0,18,131072,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Troop Transport - On Script - Set Flag Pacified"), +(@ENTRY,9,3,0,0,0,100,0,0,0,0,0,102,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Troop Transport - On Script - Set Health Regeneration Off"); + +-- Skybreaker Infiltrator SAI +SET @ENTRY := 32222; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,23,0,100,1,46598,0,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Infiltrator - On Has Aura 'Ride Vehicle Hardcoded' - Run Script (No Repeat)"); + +-- Actionlist SAI +SET @ENTRY := 3222200; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,11,60208,0,0,0,0,0,21,20,0,0,0,0,0,0,"Skybreaker Infiltrator - On Script - Cast 'Ally Air Dropoff Kill Credit'"), +(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Infiltrator - On Script - Say Line 0"), +(@ENTRY,9,2,0,0,0,100,0,100,100,0,0,11,45472,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Infiltrator - On Script - Cast 'Parachute'"), +(@ENTRY,9,3,0,0,0,100,0,4000,4000,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Skybreaker Infiltrator - On Script - Despawn Instant"); + +DELETE FROM `creature_text` WHERE `entry`=32222; +INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`, `BroadcastTextId`) VALUES +(32222, 0, 0, 'I''ll kill one just for you.', 12, 0, 100, 0, 0, 0, 'Skybreaker Infiltrator',32532), +(32222, 0, 1, 'Dropping. Good luck, boys!', 12, 0, 100, 0, 0, 0, 'Skybreaker Infiltrator',32526), +(32222, 0, 2, 'Thanks for the cover!', 12, 0, 100, 0, 0, 0, 'Skybreaker Infiltrator',32527), +(32222, 0, 3, 'Destination reached - engaging in scouting mission.', 12, 0, 100, 0, 0, 0, 'Skybreaker Infiltrator',32528), +(32222, 0, 4, 'Infiltration commencing.', 12, 0, 100, 0, 0, 0, 'Skybreaker Infiltrator',32529); + +-- Ymirheim Spear Gun SAI +SET @ENTRY := 31280; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,1,1,100,0,5000,5000,3000,4000,11,59894,0,0,0,0,0,19,32225,100,0,0,0,0,0,"Ymirheim Spear Gun - Out of Combat - Cast 'Launch Spear' (Phase 1)"), +(@ENTRY,0,1,0,1,1,100,0,5000,5000,3000,4000,11,59894,0,0,0,0,0,19,32225,100,0,0,0,0,0,"Ymirheim Spear Gun - Out of Combat - Cast 'Launch Spear' (Phase 1)"), +(@ENTRY,0,2,3,8,0,100,0,59880,0,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ymirheim Spear Gun - On Spellhit 'Suppression Charge' - Set Event Phase 2"), +(@ENTRY,0,3,0,61,0,100,0,59880,0,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ymirheim Spear Gun - On Spellhit 'Suppression Charge' - Run Script"), +(@ENTRY,0,4,0,25,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ymirheim Spear Gun - On Reset - Set Event Phase 1"); + +-- Actionlist SAI +SET @ENTRY := 3128000; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,15000,15000,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Event Phase 1"); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=18 AND `SourceGroup`=32227 AND `SourceEntry`=46598; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(18, 32227, 46598, 0, 0, 9, 0, 13309, 0, 0, 0, 0, 0, '', 'Required quest ''Assault by Ait'' active for spellclick'); + + +-- DB/Quest: Assault by Air (A) +UPDATE `creature_template` SET `spell1`=59880 WHERE `entry`=31884; +UPDATE `creature` SET `spawndist`=0, `MovementType`=0 WHERE `guid`=125330; +UPDATE `creature_template` SET `InhabitType`=4 WHERE `entry`=31881; +UPDATE `creature_template` SET `speed_run`=3 WHERE `entry`=31881; +UPDATE `vehicle_template_accessory` SET `minion`=1 WHERE `entry`=31881 AND `seat_id`=0; + +DELETE FROM `waypoints` WHERE `entry`=31881; +INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES +(31881, 1, 7513.354, 1781.131, 381.561, 'Kor\'kron Troop Transport'), +(31881, 2, 7508.576, 1843.856, 445.5052, 'Kor\'kron Troop Transport'), +(31881, 3, 7496.634, 1890.942, 496.6479, 'Kor\'kron Troop Transport'), +(31881, 4, 7451.161, 1990.051, 581.2389, 'Kor\'kron Troop Transport'), +(31881, 5, 7372.757, 2143.088, 590.3499, 'Kor\'kron Troop Transport'), +(31881, 6, 7293.971, 2233.48, 602.4611, 'Kor\'kron Troop Transport'), +(31881, 7, 7117.833, 2278.535, 605.0721, 'Kor\'kron Troop Transport'), +(31881, 8, 7017.111, 2263.003, 647.082, 'Kor\'kron Troop Transport'), +(31881, 9, 6996.222, 2205.772, 679.2115, 'Kor\'kron Troop Transport'), +(31881, 10, 7061.963, 2173.603, 675.7964, 'Kor\'kron Troop Transport'), +(31881, 11, 7121.235, 2156.643, 656.629, 'Kor\'kron Troop Transport'), +(31881, 12, 7217.851, 2134.94, 612.4905, 'Kor\'kron Troop Transport'), +(31881, 13, 7288.108, 2086.021, 596.8795, 'Kor\'kron Troop Transport'), +(31881, 14, 7327.417, 1958.794, 585.9348, 'Kor\'kron Troop Transport'), +(31881, 15, 7298.545, 1875.991, 585.4906, 'Kor\'kron Troop Transport'), +(31881, 16, 7249.319, 1800.969, 588.4902, 'Kor\'kron Troop Transport'), +(31881, 17, 7157.543, 1745.975, 588.4902, 'Kor\'kron Troop Transport'), +(31881, 18, 7067.531, 1718.656, 588.4902, 'Kor\'kron Troop Transport'), +(31881, 19, 6988.929, 1710.539, 589.5177, 'Kor\'kron Troop Transport'), +(31881, 20, 6858.088, 1715.7, 617.0735, 'Kor\'kron Troop Transport'), +(31881, 21, 6789.24, 1811.618, 658.2943, 'Kor\'kron Troop Transport'), +(31881, 22, 6741.477, 1881.004, 687.6509, 'Kor\'kron Troop Transport'), +(31881, 23, 6687.517, 1859.595, 701.3486, 'Kor\'kron Troop Transport'), +(31881, 24, 6683.648, 1766.575, 692.5154, 'Kor\'kron Troop Transport'), +(31881, 25, 6738.948, 1709.63, 686.7657, 'Kor\'kron Troop Transport'), +(31881, 26, 6906.804, 1642.973, 664.1547, 'Kor\'kron Troop Transport'), +(31881, 27, 7009.317, 1640.16, 631.8771, 'Kor\'kron Troop Transport'), +(31881, 28, 7174.014, 1608.189, 554.7385, 'Kor\'kron Troop Transport'), +(31881, 29, 7328.232, 1587.251, 465.3495, 'Kor\'kron Troop Transport'), +(31881, 30, 7449.845, 1582.211, 415.2385, 'Kor\'kron Troop Transport'), +(31881, 31, 7493.209, 1659.839, 383.9886, 'Kor\'kron Troop Transport'), +(31881, 32, 7508.813, 1745.664, 371.2109, 'Kor\'kron Troop Transport'); + +-- Kor'kron Suppression Turret SAI +SET @ENTRY := 31884; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,27,0,100,0,0,0,0,0,45,1,0,0,0,0,0,19,31881,10,0,0,0,0,0,"Kor'kron Suppression Turret - On Passenger Boarded - Set Data 1 0"); + +-- Kor'kron Troop Transport SAI +SET @ENTRY := 31881; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,38,0,100,0,1,0,0,0,80,3188100,2,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Troop Transport - On Data Set 1 0 - Run Script"), +(@ENTRY,0,1,0,40,0,100,0,11,31881,0,0,11,64631,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Troop Transport - On Waypoint 2 Reached - Cast 'Dop Passenger3'"), +(@ENTRY,0,2,0,40,0,100,0,16,31881,0,0,11,64614,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Troop Transport - On Waypoint 2 Reached - Cast 'Dop Passenger4'"), +(@ENTRY,0,3,0,40,0,100,0,19,31881,0,0,11,64633,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Troop Transport - On Waypoint 2 Reached - Cast 'Dop Passenger5'"), +(@ENTRY,0,4,0,40,0,100,0,22,31881,0,0,11,64634,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Troop Transport - On Waypoint 2 Reached - Cast 'Dop Passenger6'"), +(@ENTRY,0,5,0,40,0,100,0,32,31881,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Troop Transport - On Waypoint 32 Reached - Despawn"); + +-- Actionlist SAI +SET @ENTRY := 3188100; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,2000,2000,0,0,53,1,31881,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Troop Transport - On Script - Start Waypoint"), +(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,8,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Troop Transport - On Script - Set Reactstate Passive"), +(@ENTRY,9,2,0,0,0,100,0,0,0,0,0,18,131072,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Troop Transport - On Script - Set Flag Pacified"), +(@ENTRY,9,3,0,0,0,100,0,0,0,0,0,102,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Troop Transport - On Script - Set Health Regeneration Off"); + +-- Kor'kron Infiltrator SAI +SET @ENTRY := 31882; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,23,0,100,1,46598,0,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Infiltrator - On Has Aura 'Ride Vehicle Hardcoded' - Run Script (No Repeat)"); + +-- Actionlist SAI +SET @ENTRY := 3188200; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,11,59977,0,0,0,0,0,21,20,0,0,0,0,0,0,"Kor'kron Infiltrator - On Script - Cast 'Horde Air Dropoff Kill Credit'"), +(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Infiltrator - On Script - Say Line 0"), +(@ENTRY,9,2,0,0,0,100,0,100,100,0,0,11,45472,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Infiltrator - On Script - Cast 'Parachute'"), +(@ENTRY,9,3,0,0,0,100,0,4000,4000,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kor'kron Infiltrator - On Script - Despawn Instant"); + +DELETE FROM `creature_text` WHERE `entry`=31882; +INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`, `BroadcastTextId`) VALUES +(31882, 0, 0, 'I''ll kill one just for you.', 12, 0, 100, 0, 0, 0, 'Kor''kron Infiltrator',32532), +(31882, 0, 1, 'Dropping. Good luck, boys!', 12, 0, 100, 0, 0, 0, 'Kor''kron Infiltrator',32526), +(31882, 0, 2, 'Thanks for the cover!', 12, 0, 100, 0, 0, 0, 'Kor''kron Infiltrator',32527), +(31882, 0, 3, 'Destination reached - engaging in scouting mission.', 12, 0, 100, 0, 0, 0, 'Kor''kron Infiltrator',32528), +(31882, 0, 4, 'Infiltration commencing.', 12, 0, 100, 0, 0, 0, 'Kor''kron Infiltrator',32529); + +-- Ymirheim Spear Gun SAI +SET @ENTRY := 31280; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,1,1,100,0,5000,5000,3000,4000,11,59894,0,0,0,0,0,19,31881,100,0,0,0,0,0,"Ymirheim Spear Gun - Out of Combat - Cast 'Launch Spear' (Phase 1)"), +(@ENTRY,0,1,2,8,0,100,0,59880,0,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ymirheim Spear Gun - On Spellhit 'Suppression Charge' - Set Event Phase 2"), +(@ENTRY,0,2,0,61,0,100,0,59880,0,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ymirheim Spear Gun - On Spellhit 'Suppression Charge' - Run Script"), +(@ENTRY,0,3,0,25,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ymirheim Spear Gun - On Reset - Set Event Phase 1"); + +-- Actionlist SAI +SET @ENTRY := 3128000; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,15000,15000,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Event Phase 1"); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=18 AND `SourceGroup`=31884 AND `SourceEntry`=46598; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(18, 31884, 46598, 0, 0, 9, 0, 13310, 0, 0, 0, 0, 0, '', 'Required quest ''Assault by Ait'' active for spellclick'); diff --git a/sql/updates/world/2015_05_11_04_world.sql b/sql/updates/world/2015_05_11_04_world.sql new file mode 100644 index 00000000000..df59976ae41 --- /dev/null +++ b/sql/updates/world/2015_05_11_04_world.sql @@ -0,0 +1,26 @@ +-- +-- ONLY UPDATE FOR WOTLK 3.X - no cherrypick to 4.x, 5.x, 6.x +SET @GUID := 6245; -- Set by TDB team (4) +SET @POOL := 202482; -- Set by TDB team (1) + +DELETE FROM `gameobject` WHERE `id`=202083 AND `guid` BETWEEN @GUID+0 AND @GUID+3; +INSERT INTO `gameobject` (`guid`,`id`,`map`,`spawnMask`,`phaseMask`,`position_x`,`position_y`,`position_z`,`orientation`,`rotation0`,`rotation1`,`rotation2`,`rotation3`,`spawntimesecs`,`animprogress`,`state`) VALUES +-- https://github.com/TrinityCore/TrinityCore/commit/205cb06df9c3535e186b2e7fae10c72ab5de9e3c +(@GUID+0,202083,0,1,1,-2944.48,-3277.68,62.27,3.32798,0,0,0.995661,-0.093059,18000,100,1), +-- https://www.youtube.com/watch?v=c1Dz_-ycIuU#t=124s +(@GUID+1,202083,0,1,1,-3000.93,-3329.01,64.9771,4.10851,0,0,0.885393,-0.464843,18000,100,1), +-- https://www.youtube.com/watch?v=yWSvwdNHspY#t=30s , https://www.youtube.com/watch?v=c1Dz_-ycIuU#t=95s +(@GUID+2,202083,0,1,1,-3020.76,-3245.81,58.8009,5.38478,0,0,0.434249,-0.900793,18000,100,1), +-- https://www.youtube.com/watch?v=f0rCteF0Ras#t=200s , https://www.youtube.com/watch?v=yWSvwdNHspY#t=30s +(@GUID+3,202083,0,1,1,-2992.36,-3188.19,55.1982,3.01524,0,0,0.998005,0.0631367,18000,100,1); + +DELETE FROM `pool_template` WHERE `entry`=@POOL; +INSERT INTO `pool_template` (`entry`,`max_limit`,`description`) VALUES +(@POOL,1,"Razormaw Matriarch's Nest (202083)"); + +DELETE FROM `pool_gameobject` WHERE `guid` IN (14999, @GUID+0, @GUID+1, @GUID+2, @GUID+3); +INSERT INTO `pool_gameobject` (`guid`,`pool_entry`,`chance`,`description`) VALUES +(14999,@POOL,25,"Razormaw Matriarch's Nest (202083) P1"), +(@GUID+0,@POOL,25,"Razormaw Matriarch's Nest (202083) P2"), +(@GUID+1,@POOL,25,"Razormaw Matriarch's Nest (202083) P3"), +(@GUID+2,@POOL,25,"Razormaw Matriarch's Nest (202083) P4"); diff --git a/sql/updates/world/2015_05_11_05_world.sql b/sql/updates/world/2015_05_11_05_world.sql new file mode 100644 index 00000000000..82bff616123 --- /dev/null +++ b/sql/updates/world/2015_05_11_05_world.sql @@ -0,0 +1,200 @@ +-- +-- Melizza Brimbuzzle SAI +SET @ENTRY := 12277; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,1,19,0,100,0,6132,0,0,0,53,0,@ENTRY*100+00,0,0,0,1,1,0,0,0,0,0,0,0,"Melizza Brimbuzzle - On Quest 'Get Me Out of Here!' Taken - Start Waypoint"), +(@ENTRY,0,1,12,61,0,100,0,6132,0,0,0,81,0,0,0,0,0,0,10,0,0,0,0,0,0,0,"Melizza Brimbuzzle - On Quest 'Get Me Out of Here!' Taken - Set Npc Flag "), +(@ENTRY,0,2,0,40,0,100,0,3,@ENTRY*100+00,0,0,1,0,0,0,0,0,0,21,20,0,0,0,0,0,0,"Melizza Brimbuzzle - On Waypoint 3 Reached - Say Line 0"), +(@ENTRY,0,3,4,40,0,100,0,58,@ENTRY*100+00,0,0,15,6132,0,0,0,0,0,17,0,30,0,0,0,0,0,"Melizza Brimbuzzle - On Waypoint 58 Reached - Quest Credit 'Get Me Out of Here!'"), +(@ENTRY,0,4,5,61,0,100,0,58,@ENTRY*100+00,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Melizza Brimbuzzle - On Waypoint 58 Reached - Say Line 1"), +(@ENTRY,0,5,6,61,0,100,0,58,@ENTRY*100+00,0,0,53,1,@ENTRY*100+01,0,0,0,0,1,0,0,0,0,0,0,0,"Melizza Brimbuzzle - On Waypoint 58 Reached - Start Waypoint"), +(@ENTRY,0,6,0,61,0,100,0,58,@ENTRY*100+00,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Melizza Brimbuzzle - On Waypoint 58 Reached - Set Active On"), +(@ENTRY,0,7,8,40,0,100,0,69,@ENTRY*100+01,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Melizza Brimbuzzle - On Waypoint 69 Reached - Pause Waypoint"), +(@ENTRY,0,8,0,61,0,100,0,69,@ENTRY*100+01,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Melizza Brimbuzzle - On Waypoint 69 Reached - Run Script"), +(@ENTRY,0,9,0,40,0,100,0,93,@ENTRY*100+01,0,0,41,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Melizza Brimbuzzle - On Waypoint 93 Reached - Despawn In 3000 ms"), +(@ENTRY,0,10,13,11,0,100,0,0,0,0,0,81,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Melizza Brimbuzzle - On Respawn - Set Npc Flag Questgiver"), +(@ENTRY,0,11,0,40,0,100,1,57,@ENTRY*100+00,0,0,80,@ENTRY*100+01,0,0,0,0,0,1,0,0,0,0,0,0,0,"Melizza Brimbuzzle - On Waypoint 57 Reached - Run Script (No Repeat)"), +(@ENTRY,0,12,0,61,0,100,0,6132,0,0,0,2,250,0,0,0,0,0,1,0,0,0,0,0,0,0,"Melizza Brimbuzzle - On Quest 'Get Me Out of Here!' Taken - Set Faction 250"), +(@ENTRY,0,13,0,61,0,100,0,0,0,0,0,2,474,0,0,0,0,0,1,0,0,0,0,0,0,0,"Melizza Brimbuzzle - On Respawn - Set Faction 474"); + +-- Actionlist SAI +SET @ENTRY := 1227700; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,3000,3000,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 2"), +(@ENTRY,9,1,0,0,0,100,0,3000,3000,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 3"), +(@ENTRY,9,2,0,0,0,100,0,3000,3000,0,0,1,4,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 4"); + +-- Actionlist SAI +SET @ENTRY := 1227701; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,12,4655,7,0,0,0,0,8,0,0,0,-1382.56,2417.06,88.9714,2.46091,"Melizza Brimbuzzle - On Script - Summon Creature 'Maraudine Wrangler'"), +(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,12,4655,7,0,0,0,0,8,0,0,0,-1406.39,2423.48,88.5732,0.20944,"Melizza Brimbuzzle - On Script - Summon Creature 'Maraudine Wrangler'"), +(@ENTRY,9,2,0,0,0,100,0,0,0,0,0,12,4655,7,0,0,0,0,8,0,0,0,-1394.38,2417.12,88.7675,0.959931,"Melizza Brimbuzzle - On Script - Summon Creature 'Maraudine Wrangler'"); + +DELETE FROM `creature_text` WHERE `entry`=12277; +INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextID`, `comment`) VALUES +(12277, 0, 0, 'Thanks $n. Now let''s get out of here!', 12, 0, 100, 0, 0, 0, 7540, 'Melizza Brimbuzzle'), +(12277, 1, 0, 'We made it! Thanks again! I''m going to run ahead!', 12, 0, 100, 0, 0, 0, 7544, 'Melizza Brimbuzzle'), +(12277, 2, 0, 'Hey Hornizz! I''m back! And there are some people behind me who helped me out of a jam.', 12, 0, 100, 0, 0, 0, 7550, 'Melizza Brimbuzzle'), +(12277, 3, 0, 'We''re going to have to scratch the Maraudines off our list. Too hard to work with...', 12, 0, 100, 0, 0, 0, 7551, 'Melizza Brimbuzzle'), +(12277, 4, 0, 'Well, I''m off to the Gelkis. They''re not as dumb as the Maraudines, but they''re more reasonable.', 12, 0, 100, 0, 0, 0, 7552, 'Melizza Brimbuzzle'); + +SET @PATH := 1227700; +SET @PATH_TWO := 1227701; +DELETE FROM `waypoints` WHERE `entry` IN (@PATH, @PATH_TWO); +INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES +(@PATH,1,-1155.146,2709.409,111.2361,'Melizza Brimbuzzle'), +(@PATH,2,-1155.146,2709.409,111.2361,'Melizza Brimbuzzle'), +(@PATH,3,-1162.785,2712.464,111.5828,'Melizza Brimbuzzle'), +(@PATH,4,-1162.752,2712.397,111.6417,'Melizza Brimbuzzle'), +(@PATH,5,-1169.502,2711.397,112.3917,'Melizza Brimbuzzle'), +(@PATH,6,-1177.48,2710.258,112.1255,'Melizza Brimbuzzle'), +(@PATH,7,-1199.98,2702.508,111.6255,'Melizza Brimbuzzle'), +(@PATH,8,-1206.389,2700.128,111.496,'Melizza Brimbuzzle'), +(@PATH,9,-1248.919,2680.271,111.8919,'Melizza Brimbuzzle'), +(@PATH,10,-1272.489,2666.548,111.8956,'Melizza Brimbuzzle'), +(@PATH,11,-1288.82,2646.104,111.7111,'Melizza Brimbuzzle'), +(@PATH,12,-1290.413,2644.388,111.6542,'Melizza Brimbuzzle'), +(@PATH,13,-1290.413,2644.388,111.6542,'Melizza Brimbuzzle'), +(@PATH,14,-1290.413,2644.388,111.6542,'Melizza Brimbuzzle'), +(@PATH,15,-1309.874,2622.18,111.7776,'Melizza Brimbuzzle'), +(@PATH,16,-1309.908,2622.186,111.9743,'Melizza Brimbuzzle'), +(@PATH,17,-1323.898,2605.008,111.8986,'Melizza Brimbuzzle'), +(@PATH,18,-1336.769,2591.199,111.8607,'Melizza Brimbuzzle'), +(@PATH,19,-1349.322,2578.486,111.7647,'Melizza Brimbuzzle'), +(@PATH,20,-1359.602,2564.017,111.4906,'Melizza Brimbuzzle'), +(@PATH,21,-1361.852,2559.517,110.7406,'Melizza Brimbuzzle'), +(@PATH,22,-1362.352,2557.767,109.9906,'Melizza Brimbuzzle'), +(@PATH,23,-1363.102,2556.267,109.4906,'Melizza Brimbuzzle'), +(@PATH,24,-1364.602,2553.517,108.9906,'Melizza Brimbuzzle'), +(@PATH,25,-1365.352,2551.767,108.2406,'Melizza Brimbuzzle'), +(@PATH,26,-1366.102,2550.017,107.7406,'Melizza Brimbuzzle'), +(@PATH,27,-1366.477,2549.685,107.5719,'Melizza Brimbuzzle'), +(@PATH,28,-1366.727,2549.185,107.0719,'Melizza Brimbuzzle'), +(@PATH,29,-1367.227,2547.185,106.8219,'Melizza Brimbuzzle'), +(@PATH,30,-1367.727,2545.185,106.0719,'Melizza Brimbuzzle'), +(@PATH,31,-1368.477,2543.435,105.3219,'Melizza Brimbuzzle'), +(@PATH,32,-1368.977,2541.435,104.5719,'Melizza Brimbuzzle'), +(@PATH,33,-1369.477,2539.435,103.8219,'Melizza Brimbuzzle'), +(@PATH,34,-1370.227,2536.685,103.3219,'Melizza Brimbuzzle'), +(@PATH,35,-1370.977,2534.685,102.5719,'Melizza Brimbuzzle'), +(@PATH,36,-1371.227,2532.935,102.0719,'Melizza Brimbuzzle'), +(@PATH,37,-1371.727,2531.185,101.3219,'Melizza Brimbuzzle'), +(@PATH,38,-1372.227,2529.185,100.8219,'Melizza Brimbuzzle'), +(@PATH,39,-1372.977,2527.185,100.0719,'Melizza Brimbuzzle'), +(@PATH,40,-1373.727,2524.435,99.32188,'Melizza Brimbuzzle'), +(@PATH,41,-1374.227,2522.435,98.57188,'Melizza Brimbuzzle'), +(@PATH,42,-1374.727,2520.685,97.82188,'Melizza Brimbuzzle'), +(@PATH,43,-1375.477,2518.685,97.32188,'Melizza Brimbuzzle'), +(@PATH,44,-1375.639,2518.402,97.00177,'Melizza Brimbuzzle'), +(@PATH,45,-1375.889,2517.152,96.75177,'Melizza Brimbuzzle'), +(@PATH,46,-1376.389,2515.152,96.00177,'Melizza Brimbuzzle'), +(@PATH,47,-1376.889,2513.402,95.25177,'Melizza Brimbuzzle'), +(@PATH,48,-1378.139,2509.402,93.75177,'Melizza Brimbuzzle'), +(@PATH,49,-1378.389,2507.652,93.00177,'Melizza Brimbuzzle'), +(@PATH,50,-1379.139,2504.902,92.50177,'Melizza Brimbuzzle'), +(@PATH,51,-1379.889,2501.902,91.75177,'Melizza Brimbuzzle'), +(@PATH,52,-1380.389,2500.152,91.25177,'Melizza Brimbuzzle'), +(@PATH,53,-1381.389,2496.152,90.50177,'Melizza Brimbuzzle'), +(@PATH,54,-1381.559,2495.931,90.14986,'Melizza Brimbuzzle'), +(@PATH,55,-1381.809,2495.431,90.14986,'Melizza Brimbuzzle'), +(@PATH,56,-1382.309,2491.431,89.64986,'Melizza Brimbuzzle'), +(@PATH,57,-1385.493,2471.513,89.11208,'Melizza Brimbuzzle'), +(@PATH,58,-1386.618,2405.71,89.767,'Melizza Brimbuzzle'), +(@PATH_TWO,1,-1385.368,2401.21,90.267,'Melizza Brimbuzzle'), +(@PATH_TWO,2,-1383.618,2395.46,90.767,'Melizza Brimbuzzle'), +(@PATH_TWO,3,-1382.118,2390.71,91.517,'Melizza Brimbuzzle'), +(@PATH_TWO,4,-1377.252,2375.137,91.91622,'Melizza Brimbuzzle'), +(@PATH_TWO,5,-1373.759,2355.208,92.06256,'Melizza Brimbuzzle'), +(@PATH_TWO,6,-1366.36,2323.406,91.9967,'Melizza Brimbuzzle'), +(@PATH_TWO,7,-1362.618,2277.267,91.79288,'Melizza Brimbuzzle'), +(@PATH_TWO,8,-1358.118,2257.017,91.54288,'Melizza Brimbuzzle'), +(@PATH_TWO,9,-1354.14,2239.229,91.62033,'Melizza Brimbuzzle'), +(@PATH_TWO,10,-1352.89,2229.729,92.12033,'Melizza Brimbuzzle'), +(@PATH_TWO,11,-1350.869,2214.848,91.63843,'Melizza Brimbuzzle'), +(@PATH_TWO,12,-1351.869,2210.848,90.88843,'Melizza Brimbuzzle'), +(@PATH_TWO,13,-1352.119,2209.848,90.13843,'Melizza Brimbuzzle'), +(@PATH_TWO,14,-1352.619,2208.098,89.13843,'Melizza Brimbuzzle'), +(@PATH_TWO,15,-1352.869,2207.098,87.88843,'Melizza Brimbuzzle'), +(@PATH_TWO,16,-1353.119,2206.098,86.38843,'Melizza Brimbuzzle'), +(@PATH_TWO,17,-1353.369,2205.348,85.38843,'Melizza Brimbuzzle'), +(@PATH_TWO,18,-1353.619,2204.348,84.38843,'Melizza Brimbuzzle'), +(@PATH_TWO,19,-1354.119,2202.348,83.63843,'Melizza Brimbuzzle'), +(@PATH_TWO,20,-1354.369,2201.348,82.88843,'Melizza Brimbuzzle'), +(@PATH_TWO,21,-1354.619,2200.598,82.13843,'Melizza Brimbuzzle'), +(@PATH_TWO,22,-1354.869,2199.598,81.38843,'Melizza Brimbuzzle'), +(@PATH_TWO,23,-1355.119,2198.598,80.63843,'Melizza Brimbuzzle'), +(@PATH_TWO,24,-1355.119,2197.598,79.88843,'Melizza Brimbuzzle'), +(@PATH_TWO,25,-1355.619,2195.598,78.88843,'Melizza Brimbuzzle'), +(@PATH_TWO,26,-1356.119,2193.848,77.88843,'Melizza Brimbuzzle'), +(@PATH_TWO,27,-1356.619,2191.848,77.13843,'Melizza Brimbuzzle'), +(@PATH_TWO,28,-1357.619,2188.848,76.38843,'Melizza Brimbuzzle'), +(@PATH_TWO,29,-1355.239,2198.246,80.43513,'Melizza Brimbuzzle'), +(@PATH_TWO,30,-1355.489,2197.246,79.68513,'Melizza Brimbuzzle'), +(@PATH_TWO,31,-1355.989,2195.496,78.68513,'Melizza Brimbuzzle'), +(@PATH_TWO,32,-1356.489,2193.496,77.68513,'Melizza Brimbuzzle'), +(@PATH_TWO,33,-1356.989,2191.496,76.93513,'Melizza Brimbuzzle'), +(@PATH_TWO,34,-1357.739,2188.746,76.18513,'Melizza Brimbuzzle'), +(@PATH_TWO,35,-1357.989,2187.496,75.68513,'Melizza Brimbuzzle'), +(@PATH_TWO,36,-1358.739,2185.746,75.18513,'Melizza Brimbuzzle'), +(@PATH_TWO,37,-1359.239,2183.746,74.43513,'Melizza Brimbuzzle'), +(@PATH_TWO,38,-1359.989,2181.996,73.68513,'Melizza Brimbuzzle'), +(@PATH_TWO,39,-1360.489,2179.996,72.93513,'Melizza Brimbuzzle'), +(@PATH_TWO,40,-1361.489,2177.246,72.18513,'Melizza Brimbuzzle'), +(@PATH_TWO,41,-1362.239,2175.246,71.68513,'Melizza Brimbuzzle'), +(@PATH_TWO,42,-1362.739,2173.496,70.93513,'Melizza Brimbuzzle'), +(@PATH_TWO,43,-1363.239,2171.746,70.43513,'Melizza Brimbuzzle'), +(@PATH_TWO,44,-1363.739,2169.746,69.68513,'Melizza Brimbuzzle'), +(@PATH_TWO,45,-1364.739,2166.996,68.68513,'Melizza Brimbuzzle'), +(@PATH_TWO,46,-1365.489,2164.996,67.68513,'Melizza Brimbuzzle'), +(@PATH_TWO,47,-1365.989,2163.246,66.68513,'Melizza Brimbuzzle'), +(@PATH_TWO,48,-1366.739,2161.246,65.93513,'Melizza Brimbuzzle'), +(@PATH_TWO,49,-1367.489,2159.496,64.68513,'Melizza Brimbuzzle'), +(@PATH_TWO,50,-1367.989,2157.496,63.93513,'Melizza Brimbuzzle'), +(@PATH_TWO,51,-1368.989,2154.746,63.18513,'Melizza Brimbuzzle'), +(@PATH_TWO,52,-1369.739,2152.746,62.43513,'Melizza Brimbuzzle'), +(@PATH_TWO,53,-1370.239,2150.996,61.68513,'Melizza Brimbuzzle'), +(@PATH_TWO,54,-1370.989,2148.996,60.93513,'Melizza Brimbuzzle'), +(@PATH_TWO,55,-1369.163,2154.362,62.88633,'Melizza Brimbuzzle'), +(@PATH_TWO,56,-1369.913,2152.612,62.63633,'Melizza Brimbuzzle'), +(@PATH_TWO,57,-1370.413,2150.612,61.63633,'Melizza Brimbuzzle'), +(@PATH_TWO,58,-1371.163,2148.862,61.13633,'Melizza Brimbuzzle'), +(@PATH_TWO,59,-1371.663,2147.612,60.63633,'Melizza Brimbuzzle'), +(@PATH_TWO,60,-1374.663,2142.362,60.13633,'Melizza Brimbuzzle'), +(@PATH_TWO,61,-1381.413,2131.612,60.88633,'Melizza Brimbuzzle'), +(@PATH_TWO,62,-1387.413,2121.362,61.38633,'Melizza Brimbuzzle'), +(@PATH_TWO,63,-1391.413,2114.362,62.13633,'Melizza Brimbuzzle'), +(@PATH_TWO,64,-1395.163,2108.362,62.63633,'Melizza Brimbuzzle'), +(@PATH_TWO,65,-1391.807,2114.246,61.76419,'Melizza Brimbuzzle'), +(@PATH_TWO,66,-1395.307,2108.246,62.26419,'Melizza Brimbuzzle'), +(@PATH_TWO,67,-1396.307,2106.496,62.51419,'Melizza Brimbuzzle'), +(@PATH_TWO,68,-1404.391,2088.967,62.0089,'Melizza Brimbuzzle'), +(@PATH_TWO,69,-1405.748,2087.39,62.09642,'Melizza Brimbuzzle'), +(@PATH_TWO,70,-1407.248,2086.89,62.09642,'Melizza Brimbuzzle'), +(@PATH_TWO,71,-1408.248,2086.89,62.34642,'Melizza Brimbuzzle'), +(@PATH_TWO,72,-1410.498,2086.39,62.34642,'Melizza Brimbuzzle'), +(@PATH_TWO,73,-1412.498,2086.39,62.59642,'Melizza Brimbuzzle'), +(@PATH_TWO,74,-1413.998,2085.39,62.59642,'Melizza Brimbuzzle'), +(@PATH_TWO,75,-1415.498,2083.39,62.59642,'Melizza Brimbuzzle'), +(@PATH_TWO,76,-1416.498,2082.39,62.59642,'Melizza Brimbuzzle'), +(@PATH_TWO,77,-1417.498,2079.39,62.59642,'Melizza Brimbuzzle'), +(@PATH_TWO,78,-1417.998,2077.39,62.59642,'Melizza Brimbuzzle'), +(@PATH_TWO,79,-1419.998,2075.14,62.59642,'Melizza Brimbuzzle'), +(@PATH_TWO,80,-1424.748,2073.14,62.34642,'Melizza Brimbuzzle'), +(@PATH_TWO,81,-1418.114,2077.1,62.59175,'Melizza Brimbuzzle'), +(@PATH_TWO,82,-1420.364,2075.35,62.59175,'Melizza Brimbuzzle'), +(@PATH_TWO,83,-1425.114,2073.1,62.34175,'Melizza Brimbuzzle'), +(@PATH_TWO,84,-1425.114,2075.1,62.34175,'Melizza Brimbuzzle'), +(@PATH_TWO,85,-1436.864,2074.35,62.84175,'Melizza Brimbuzzle'), +(@PATH_TWO,86,-1451.277,2073.542,62.70998,'Melizza Brimbuzzle'), +(@PATH_TWO,87,-1464.777,2075.542,62.95998,'Melizza Brimbuzzle'), +(@PATH_TWO,88,-1465.031,2075.661,62.89689,'Melizza Brimbuzzle'), +(@PATH_TWO,89,-1473.031,2077.161,63.14689,'Melizza Brimbuzzle'), +(@PATH_TWO,90,-1480.031,2086.411,62.39689,'Melizza Brimbuzzle'), +(@PATH_TWO,91,-1485.531,2093.411,61.89689,'Melizza Brimbuzzle'), +(@PATH_TWO,92,-1485.639,2093.875,61.82396,'Melizza Brimbuzzle'), +(@PATH_TWO,93,-1487.889,2096.375,61.82396,'Melizza Brimbuzzle'); diff --git a/sql/updates/world/2015_05_11_06_world.sql b/sql/updates/world/2015_05_11_06_world.sql new file mode 100644 index 00000000000..f4a5fe6dd0a --- /dev/null +++ b/sql/updates/world/2015_05_11_06_world.sql @@ -0,0 +1,17 @@ +SET @Oguid=5638; -- 2 free Gob guid set by TC +DELETE FROM `areatrigger_scripts` WHERE `entry` IN (3746, 3766); +INSERT INTO `areatrigger_scripts` VALUES (3746,'SmartTrigger'), (3766,'SmartTrigger'); +DELETE FROM `smart_scripts` WHERE `entryorguid` IN (3746, 3766) AND `source_type`=2; +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(3746, 2, 0, 0, 46, 0, 100, 0, 3746, 0, 0, 0, 70, 7200, 0, 0, 0, 0, 0, 14, @Oguid+1, 180024, 0, 0, 0, 0, 0, 'Area Trigger 3746 - On Trigger - Respawn Mysterious Deadmines Chest'), +(3766, 2, 0, 0, 46, 0, 100, 0, 3766, 0, 0, 0, 70, 7200, 0, 0, 0, 0, 0, 14, @Oguid, 180055, 0, 0, 0, 0, 0, 'Area Trigger 3746 - On Trigger - Respawn Mysterious Wailing Caverns'); +DELETE FROM `gameobject` WHERE `id` IN (180055, 180024); +INSERT INTO `gameobject` (`guid`,`id`,`map`,`spawnMask`,`phaseMask`,`position_x`,`position_y`,`position_z`,`orientation`,`rotation0`,`rotation1`,`rotation2`,`rotation3`,`spawntimesecs`,`animprogress`,`state`) VALUES +(@Oguid,180055,43,1,1,-97.6,173.8,-79,2.08,0,0,0.862404,0.50622,-1,100,1), +(@Oguid+1,180024,36,1,1,-32.1232,-374.64,59.06,3.0820,0,0,0.879275,-0.476315,-1,100,1); +DELETE FROM `gameobject_questender` WHERE `id`=180055 AND `quest`=7944; +INSERT INTO `gameobject_questender` (`id`,`quest`) VALUES (180055,7944); +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry` IN (3766,3746) AND `SourceId`=2; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(22,1,3746,2,0,28,0,7938,0,0,0,0,'','SAI areatrigger 3746 triggers only if player has the quest 7938'), +(22,1,3766,2,0,28,0,7944,0,0,0,0,'','SAI areatrigger 3766 triggers only if player has the quest 7944'); diff --git a/sql/updates/world/2015_05_11_07_world.sql b/sql/updates/world/2015_05_11_07_world.sql new file mode 100644 index 00000000000..e35aa8e454b --- /dev/null +++ b/sql/updates/world/2015_05_11_07_world.sql @@ -0,0 +1,7 @@ +-- +-- Pit-Fighting Spectator SAI +SET @ENTRY := 26869; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,1,0,100,0,2000,6000,10000,20000,10,4,21,6,11,0,0,1,0,0,0,0,0,0,0,"Pit-Fighting Spectator - Out of Combat - Play Random Emote (4, 21, 6, 11)"); diff --git a/sql/updates/world/2015_05_11_08_world.sql b/sql/updates/world/2015_05_11_08_world.sql new file mode 100644 index 00000000000..d6bcc834780 --- /dev/null +++ b/sql/updates/world/2015_05_11_08_world.sql @@ -0,0 +1,99 @@ +-- Conquest Hold Legionnaire +SET @NPC := 116284; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=3222.422,`position_y`=-2261.431,`position_z`=112.903 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,3222.422,-2261.431,112.903,0,0,0,0,100,0), +(@PATH,2,3223.03,-2264.1,112.1124,0,0,0,0,100,0), +(@PATH,3,3223.781,-2267.022,111.1831,0,0,0,0,100,0), +(@PATH,4,3224.569,-2267.831,111.0135,0,0,0,0,100,0), +(@PATH,5,3226.668,-2270.648,110.3546,0,0,0,0,100,0), +(@PATH,6,3229.054,-2274.084,109.3319,0,0,0,0,100,0), +(@PATH,7,3230.216,-2275.468,109.1555,0,0,0,0,100,0), +(@PATH,8,3232.466,-2278.367,108.6153,0,0,0,0,100,0), +(@PATH,9,3234.924,-2280.143,108.2696,0,0,0,0,100,0), +(@PATH,10,3237.392,-2281.926,108.2696,0,0,0,0,100,0), +(@PATH,11,3239.848,-2283.7,108.2879,0,0,0,0,100,0), +(@PATH,12,3240.568,-2283.284,108.2696,0,0,0,0,100,0), +(@PATH,13,3243.724,-2282.795,108.3946,0,0,0,0,100,0), +(@PATH,14,3246.881,-2282.306,108.3946,0,0,0,0,100,0), +(@PATH,15,3250.019,-2281.82,108.5137,0,0,0,0,100,0), +(@PATH,16,3253.206,-2281.326,108.5008,0,0,0,0,100,0), +(@PATH,17,3255.859,-2280.714,108.5196,0,0,0,0,100,0), +(@PATH,18,3258.817,-2279.989,108.4834,0,0,0,0,100,0), +(@PATH,19,3261.763,-2279.267,108.3458,0,0,0,0,100,0), +(@PATH,20,3264.564,-2278.554,108.5305,0,0,0,0,100,0), +(@PATH,21,3267.448,-2277.735,108.8179,0,0,0,0,100,0), +(@PATH,22,3269.372,-2277.215,109.3157,0,0,0,0,100,0), +(@PATH,23,3273.088,-2276.127,109.8022,0,0,0,0,100,0), +(@PATH,24,3277.416,-2276.224,109.3619,0,0,0,0,100,0), +(@PATH,25,3280.093,-2277.505,108.8861,0,0,0,0,100,0), +(@PATH,26,3282.834,-2278.816,108.7433,0,0,0,0,100,0), +(@PATH,27,3285.509,-2280.093,109.0773,0,0,0,0,100,0), +(@PATH,28,3287.798,-2280.42,109.6238,0,0,0,0,100,0), +(@PATH,29,3289.805,-2280.55,110.2963,0,0,0,0,100,0), +(@PATH,30,3291.436,-2282.21,110.212,0,0,0,0,100,0), +(@PATH,31,3293.136,-2279.585,110.3022,0,0,0,0,100,0), +(@PATH,32,3294.828,-2276.973,110.6279,0,0,0,0,100,0), +(@PATH,33,3296.068,-2275.338,110.8585,0,0,0,0,100,0), +(@PATH,34,3296.431,-2272.337,111.0591,0,0,0,0,100,0), +(@PATH,35,3296.789,-2269.371,111.363,0,0,0,0,100,0), +(@PATH,36,3297.156,-2266.315,111.6388,0,0,0,0,100,0), +(@PATH,37,3297.624,-2263.012,111.854,0,0,0,0,100,0), +(@PATH,38,3298.611,-2260.142,111.9759,0,0,0,0,100,0), +(@PATH,39,3299.594,-2257.286,112.3186,0,0,0,0,100,0), +(@PATH,40,3300.581,-2254.429,112.6177,0,0,0,0,100,0), +(@PATH,41,3300.73,-2253.996,112.6697,0,0,0,0,100,0), +(@PATH,42,3300.506,-2254.651,112.5911,0,0,0,0,100,0), +(@PATH,43,3303.751,-2259.06,112.062,0,0,0,0,100,0), +(@PATH,44,3303.142,-2262.008,111.7082,0,0,0,0,100,0), +(@PATH,45,3302.529,-2264.978,111.4768,0,0,0,0,100,0), +(@PATH,46,3301.917,-2267.939,111.3507,0,0,0,0,100,0), +(@PATH,47,3301.307,-2270.89,110.9967,0,0,0,0,100,0), +(@PATH,48,3300.701,-2273.825,110.6447,0,0,0,0,100,0), +(@PATH,49,3300.092,-2276.787,110.3161,0,0,0,0,100,0), +(@PATH,50,3297.877,-2280.104,110.3195,0,0,0,0,100,0), +(@PATH,51,3295.698,-2282.238,110.1211,0,0,0,0,100,0), +(@PATH,52,3291.665,-2283.44,110.1146,0,0,0,0,100,0), +(@PATH,53,3288.628,-2283.25,109.6978,0,0,0,0,100,0), +(@PATH,54,3286.963,-2283.097,109.5514,0,0,0,0,100,0), +(@PATH,55,3284.762,-2282.979,108.7865,0,0,0,0,100,0), +(@PATH,56,3281.819,-2282.813,107.6871,0,0,0,0,100,0), +(@PATH,57,3279.023,-2282.41,106.843,0,0,0,0,100,0), +(@PATH,58,3273.752,-2281.361,107.249,0,0,0,0,100,0), +(@PATH,59,3272.823,-2281.124,107.9806,0,0,0,0,100,0), +(@PATH,60,3269.315,-2280.155,108.8164,0,0,0,0,100,0), +(@PATH,61,3266.359,-2279.441,108.5643,0,0,0,0,100,0), +(@PATH,62,3261.786,-2278.462,108.5415,0,0,0,0,100,0), +(@PATH,63,3260.874,-2277.872,108.6126,0,0,0,0,100,0), +(@PATH,64,3258.454,-2279.771,108.5095,0,0,0,0,100,0), +(@PATH,65,3256.032,-2281.672,108.5072,0,0,0,0,100,0), +(@PATH,66,3253.73,-2283.478,108.3147,0,0,0,0,100,0), +(@PATH,67,3249.822,-2284.479,108.1946,0,0,0,0,100,0), +(@PATH,68,3246.836,-2284.902,108.1438,0,0,0,0,100,0), +(@PATH,69,3243.795,-2285.332,108.0923,0,0,0,0,100,0), +(@PATH,70,3240.329,-2284.271,108.2195,0,0,0,0,100,0), +(@PATH,71,3237.559,-2282.833,108.1446,0,0,0,0,100,0), +(@PATH,72,3234.771,-2281.385,108.2696,0,0,0,0,100,0), +(@PATH,73,3231.993,-2279.943,108.3994,0,0,0,0,100,0), +(@PATH,74,3229.22,-2278.504,108.7801,0,0,0,0,100,0), +(@PATH,75,3226.602,-2277.155,108.8858,0,0,0,0,100,0), +(@PATH,76,3224.147,-2273.925,109.3004,0,0,0,0,100,0), +(@PATH,77,3223.178,-2271.634,109.9661,0,0,0,0,100,0), +(@PATH,78,3222.1,-2269.727,110.5905,0,0,0,0,100,0), +(@PATH,79,3220.919,-2266.938,111.1347,0,0,0,0,100,0), +(@PATH,80,3219.873,-2264.861,111.7715,0,0,0,0,100,0), +(@PATH,81,3219.09,-2262.018,113.0721,0,0,0,0,100,0), +(@PATH,82,3218.371,-2259.129,113.9729,0,0,0,0,100,0), +(@PATH,83,3217.72,-2256.449,114.2141,0,0,0,0,100,0), +(@PATH,84,3217.931,-2257.32,114.1792,0,0,0,0,100,0), +(@PATH,85,3221.369,-2258.965,113.6241,0,0,0,0,100,0), +(@PATH,86,3222.448,-2261.465,112.8751,0,0,0,0,100,0); + +DELETE FROM `creature_formations` WHERE `leaderGUID`=116284; +INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES +(116284, 116284, 0, 0, 2, 0, 0), +(116284, 116285, 3, 90, 0, 0, 0); diff --git a/sql/updates/world/2015_05_12_01_world.sql b/sql/updates/world/2015_05_12_01_world.sql new file mode 100644 index 00000000000..4d9ce60f51c --- /dev/null +++ b/sql/updates/world/2015_05_12_01_world.sql @@ -0,0 +1,2 @@ +UPDATE `gameobject_template` SET `flags`=34 WHERE `entry`=177192; +UPDATE `gameobject_template` SET `faction`=114 WHERE `entry` IN(179504,179505); diff --git a/sql/updates/world/2015_05_12_02_world.sql b/sql/updates/world/2015_05_12_02_world.sql new file mode 100644 index 00000000000..02f95b73494 --- /dev/null +++ b/sql/updates/world/2015_05_12_02_world.sql @@ -0,0 +1,522 @@ +-- Grizzlyhills Pathing/Events -1 +SET @NPC := 105919; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=2659.377,`position_y`=-2080.199,`position_z`=4.346071 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,2659.377,-2080.199,4.346071,0,0,0,0,100,0), +(@PATH,2,2666.377,-2073.199,4.346071,0,0,0,0,100,0), +(@PATH,3,2670.377,-2068.949,4.346071,0,0,0,0,100,0), +(@PATH,4,2672.989,-2066.296,4.340314,0,0,0,0,100,0), +(@PATH,5,2675.489,-2062.546,4.340314,0,0,0,0,100,0), +(@PATH,6,2677.239,-2060.296,4.340314,0,0,0,0,100,0), +(@PATH,7,2678.989,-2057.796,4.340314,0,0,0,0,100,0), +(@PATH,8,2677.343,-2060.426,4.340314,0,0,0,0,100,0), +(@PATH,9,2675.593,-2062.676,4.340314,0,0,0,0,100,0), +(@PATH,10,2672.564,-2066.647,4.346634,0,0,0,0,100,0), +(@PATH,11,2670.314,-2068.897,4.346634,0,0,0,0,100,0), +(@PATH,12,2666.814,-2072.397,4.346634,0,0,0,0,100,0), +(@PATH,13,2659.411,-2080.233,4.331409,0,0,0,0,100,0), +(@PATH,14,2654.911,-2084.233,4.331409,0,0,0,0,100,0), +(@PATH,15,2653.411,-2085.733,4.331409,0,0,0,0,100,0), +(@PATH,16,2648.899,-2089.858,4.311839,0,0,0,0,100,0), +(@PATH,17,2646.649,-2091.858,4.311839,0,0,0,0,100,0), +(@PATH,18,2643.899,-2094.108,4.311839,0,0,0,0,100,0), +(@PATH,19,2640.707,-2096.753,4.415871,0,0,0,0,100,0), +(@PATH,20,2638.457,-2098.503,4.415871,0,0,0,0,100,0), +(@PATH,21,2634.457,-2101.253,5.165871,0,0,0,0,100,0), +(@PATH,22,2634.269,-2101.723,5.301712,0,0,0,0,100,0), +(@PATH,23,2632.769,-2102.723,5.551712,0,0,0,0,100,0), +(@PATH,24,2629.269,-2105.473,6.301712,0,0,0,0,100,0), +(@PATH,25,2629.244,-2105.614,6.409963,0,0,0,0,100,0), +(@PATH,26,2633.158,-2102.466,5.38058,0,0,0,0,100,0), +(@PATH,27,2634.658,-2101.466,5.13058,0,0,0,0,100,0), +(@PATH,28,2638.408,-2098.466,4.38058,0,0,0,0,100,0); + +-- Pathing for Entry: 27501 'TDB FORMAT' +SET @NPC := 105928; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=2650.357,`position_y`=-2025.178,`position_z`=4.323929 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,2650.357,-2025.178,4.323929,0,0,0,0,100,0), +(@PATH,2,2653.107,-2027.178,4.323929,0,0,0,0,100,0), +(@PATH,3,2661.607,-2033.178,4.323929,0,0,0,0,100,0), +(@PATH,4,2664.357,-2035.323,4.346634,0,0,0,0,100,0), +(@PATH,5,2666.857,-2037.323,4.346634,0,0,0,0,100,0), +(@PATH,6,2666.913,-2037.288,4.346634,0,0,0,0,100,0), +(@PATH,7,2664.103,-2035.223,4.346634,0,0,0,0,100,0), +(@PATH,8,2661.603,-2033.223,4.346634,0,0,0,0,100,0), +(@PATH,9,2652.902,-2026.893,4.187136,0,0,0,0,100,0), +(@PATH,10,2650.152,-2024.893,4.187136,0,0,0,0,100,0), +(@PATH,11,2646.152,-2022.143,4.187136,0,0,0,0,100,0), +(@PATH,12,2644.652,-2021.143,3.937136,0,0,0,0,100,0), +(@PATH,13,2641.632,-2018.958,4.027632,0,0,0,0,100,0), +(@PATH,14,2641.649,-2019.105,3.777639,0,0,0,0,100,0), +(@PATH,15,2641.879,-2019.022,3.937136,0,0,0,0,100,0), +(@PATH,16,2644.629,-2021.022,3.937136,0,0,0,0,100,0), +(@PATH,17,2645.879,-2022.022,4.187136,0,0,0,0,100,0), +(@PATH,18,2650.129,-2025.022,4.187136,0,0,0,0,100,0); + +-- Pathing for Entry: 27501 'TDB FORMAT' +SET @NPC := 105904; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=2606.301,`position_y`=-2092.257,`position_z`=7.300018 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,2606.301,-2092.257,7.300018,0,0,0,0,100,0), +(@PATH,2,2614.706,-2104.54,7.32203,0,0,0,0,100,0), +(@PATH,3,2614.56,-2104.616,7.087479,0,0,0,0,100,0), +(@PATH,4,2614.464,-2104.489,7.307891,0,0,0,0,100,0), +(@PATH,5,2606.464,-2092.739,7.307891,0,0,0,0,100,0), +(@PATH,6,2606.129,-2092.514,7.232858,0,0,0,0,100,0), +(@PATH,7,2605.879,-2092.014,7.232858,0,0,0,0,100,0), +(@PATH,8,2603.379,-2088.014,6.982858,0,0,0,0,100,0), +(@PATH,9,2599.288,-2081.792,7.103763,0,0,0,0,100,0), +(@PATH,10,2596.038,-2076.792,7.103763,0,0,0,0,100,0), +(@PATH,11,2593.906,-2073.879,6.877389,0,0,0,0,100,0), +(@PATH,12,2592.156,-2070.879,6.877389,0,0,0,0,100,0), +(@PATH,13,2591.965,-2070.718,6.863516,0,0,0,0,100,0), +(@PATH,14,2594.261,-2073.978,6.842519,0,0,0,0,100,0), +(@PATH,15,2595.761,-2076.728,7.092519,0,0,0,0,100,0), +(@PATH,16,2599.636,-2081.92,7.189054,0,0,0,0,100,0), +(@PATH,17,2603.386,-2087.92,7.189054,0,0,0,0,100,0); + +-- Westfall Brigade Marine SAI +SET @ENTRY := 27501; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,1,0,100,0,10000,10000,10000,10000,49,0,0,0,0,0,0,19,27500,10,0,0,0,0,0,"Westfall Brigade Marine - Out of Combat - Start Attacking"); + +-- Conquest Hold Berserker SAI +SET @ENTRY := 27500; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0 AND `id`=2; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,2,0,1,0,100,0,10000,10000,10000,10000,49,0,0,0,0,0,0,19,27501,10,0,0,0,0,0,"Conquest Hold Berserker - Out of Combat - Start Attacking"); + +UPDATE `creature_template` SET `AIName`="" WHERE `entry`=27131; +-- Grizzly Bear SAI +SET @ENTRY := 27131; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,0,1,0,100,0,10000,15000,10000,15000,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Grizzly Bear - Out of Combat - Run Script"); + +-- Actionlist SAI +SET @ENTRY := 2713100; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Grizzly Bear - On Script - Enable Combat Movement"), +(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,5,7,0,0,0,0,0,1,0,0,0,0,0,0,0,"Grizzly Bear - On Script - Play Emote 7"), +(@ENTRY,9,2,0,0,0,100,0,2000,2000,0,0,5,7,0,0,0,0,0,1,0,0,0,0,0,0,0,"Grizzly Bear - On Script - Play Emote 7"), +(@ENTRY,9,3,0,0,0,100,0,2000,2000,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Grizzly Bear - On Script - Disable Combat Movement"), +(@ENTRY,9,4,0,0,0,100,0,0,0,0,0,89,7,0,0,0,0,0,1,0,0,0,0,0,0,0,"Grizzly Bear - On Script - Start Random Movement"); + +-- allow movement +UPDATE `smart_scripts` SET `action_param1`=1 WHERE `entryorguid` IN (27259, 26679) AND `source_type`=0 AND `id`=0 AND `link`=0; +-- Dragonflayer Flamebinder SAI +SET @ENTRY := 27259; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0 AND `id`=14; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,14,0,1,0,100,0,5000,8000,5000,8000,11,48213,0,0,0,0,0,19,26785,25,0,0,0,0,0,"Dragonflayer Flamebinder - Out of Combat - Cast 'Dragonflayer Crone Fire'"); + + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceGroup`=1 AND `SourceEntry`=48213; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(13, 1, 48213, 0, 0, 31, 0, 3, 26785, 0, 0, 0, 0, '', 'Flame - only targets Bunny'); + +DELETE FROM `creature_addon` WHERE `guid` IN (103389, 103390, 107363, 110490, 107373, 110493, 11049, 110494, 110492, 116277, 116275, 116274, 116276, 116278, 110489); +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES +(116277,0,0,8,1,0, ''), +(116275,0,0,8,1,0, ''), +(116274,0,0,8,1,0, ''), +(116276,0,0,8,1,0, ''), +(116278,0,0,8,1,0, ''), +(110489,0,0,0,1,214, ''), +(110492,0,0,0,1,214, ''), +(110494,0,0,0,1,214, ''), +(110490,0,0,0,1,214, ''), +(110493,0,0,0,1,214, ''), +(107363,0,0,1,1,0, ''), +(103389,0,0,0,1,1, ''), +(103390,0,0,0,1,1, ''), +(107373,0,0,1,1,0, ''); + +-- Graymist Hunter SAI +SET @ENTRY := 26592; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0 AND `id`=1; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,1,0,1,0,100,0,15000,20000,15000,20000,5,53,0,0,0,0,0,1,0,0,0,0,0,0,0,"Graymist Hunter - Out of Combat - Play Emote 53"); + +-- Pathing for Entry: 26679 'TDB FORMAT' +SET @NPC := 100911; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4346.669,`position_y`=-2484.654,`position_z`=240.982 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4346.669,-2484.654,240.982,0,0,0,0,100,0), +(@PATH,2,4347.169,-2484.904,240.982,0,0,0,0,100,0), +(@PATH,3,4348.169,-2488.654,241.982,0,0,0,0,100,0), +(@PATH,4,4349.169,-2492.404,242.232,0,0,0,0,100,0), +(@PATH,5,4350.169,-2495.154,242.982,0,0,0,0,100,0), +(@PATH,6,4351.169,-2498.904,243.732,0,0,0,0,100,0), +(@PATH,7,4352.729,-2503.633,244.4913,0,0,0,0,100,0), +(@PATH,8,4352.479,-2508.633,244.7413,0,0,0,0,100,0), +(@PATH,9,4352.229,-2516.383,245.4913,0,0,0,0,100,0), +(@PATH,10,4352.513,-2516.505,245.5218,0,0,0,0,100,0), +(@PATH,11,4352.513,-2519.755,245.5218,0,0,0,0,100,0), +(@PATH,12,4353.422,-2530.827,245.4402,0,0,0,0,100,0), +(@PATH,13,4353.167,-2531.085,245.3185,0,0,0,0,100,0), +(@PATH,14,4353.443,-2530.941,245.3693,0,0,0,0,100,0), +(@PATH,15,4352.554,-2519.469,245.4435,0,0,0,0,100,0), +(@PATH,16,4352.554,-2508.719,244.9435,0,0,0,0,100,0), +(@PATH,17,4352.496,-2503.444,244.2976,0,0,0,0,100,0), +(@PATH,18,4351.496,-2499.694,243.5476,0,0,0,0,100,0), +(@PATH,19,4350.246,-2495.944,243.0476,0,0,0,0,100,0), +(@PATH,20,4349.746,-2493.194,242.5476,0,0,0,0,100,0), +(@PATH,21,4348.746,-2490.194,242.0476,0,0,0,0,100,0), +(@PATH,22,4347.996,-2487.444,241.2976,0,0,0,0,100,0), +(@PATH,23,4346.94,-2484.907,240.7707,0,0,0,0,100,0), +(@PATH,24,4343.19,-2483.907,240.2707,0,0,0,0,100,0), +(@PATH,25,4339.44,-2482.907,239.7707,0,0,0,0,100,0), +(@PATH,26,4339.217,-2482.614,239.4836,0,0,0,0,100,0), +(@PATH,27,4337.717,-2482.114,239.2336,0,0,0,0,100,0), +(@PATH,28,4325.967,-2481.114,238.9836,0,0,0,0,100,0), +(@PATH,29,4320.836,-2480.163,238.4939,0,0,0,0,100,0), +(@PATH,30,4327.4,-2469.229,238.7592,0,0,0,0,100,0), +(@PATH,31,4339.832,-2457.689,239.1528,0,0,0,0,100,0), +(@PATH,32,4339.467,-2457.954,239.0422,0,0,0,0,100,0), +(@PATH,33,4339.559,-2457.928,239.3148,0,0,0,0,100,0), +(@PATH,34,4327.204,-2469.653,238.7065,0,0,0,0,100,0), +(@PATH,35,4320.694,-2480.362,238.713,0,0,0,0,100,0), +(@PATH,36,4330.444,-2481.362,239.213,0,0,0,0,100,0), +(@PATH,37,4337.947,-2482.492,239.5395,0,0,0,0,100,0), +(@PATH,38,4342.447,-2483.492,240.0395,0,0,0,0,100,0), +(@PATH,39,4346.447,-2484.492,240.5395,0,0,0,0,100,0); + +SET @NPC := 100914; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4316.283,`position_y`=-2489.055,`position_z`=238.5876 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4316.283,-2489.055,238.5876,0,0,0,0,100,0), +(@PATH,2,4316.529,-2488.824,238.7166,0,0,0,0,100,0), +(@PATH,3,4320.335,-2479.741,238.3421,0,0,0,0,100,0), +(@PATH,4,4316.585,-2474.241,237.8421,0,0,0,0,100,0), +(@PATH,5,4313.78,-2470.097,237.5021,0,0,0,0,100,0), +(@PATH,6,4309.78,-2469.847,237.0021,0,0,0,0,100,0), +(@PATH,7,4306.03,-2469.347,236.5021,0,0,0,0,100,0), +(@PATH,8,4305.914,-2469.415,236.0416,0,0,0,0,100,0), +(@PATH,9,4303.414,-2469.165,235.5416,0,0,0,0,100,0), +(@PATH,10,4300.414,-2469.415,235.0416,0,0,0,0,100,0), +(@PATH,11,4297.414,-2469.915,234.2916,0,0,0,0,100,0), +(@PATH,12,4294.664,-2470.165,234.0416,0,0,0,0,100,0), +(@PATH,13,4290.664,-2470.415,233.2916,0,0,0,0,100,0), +(@PATH,14,4285.664,-2471.165,232.5416,0,0,0,0,100,0), +(@PATH,15,4285.473,-2471.28,232.3787,0,0,0,0,100,0), +(@PATH,16,4285.223,-2471.28,232.1287,0,0,0,0,100,0), +(@PATH,17,4277.473,-2472.28,231.8787,0,0,0,0,100,0), +(@PATH,18,4273.628,-2472.75,231.6418,0,0,0,0,100,0), +(@PATH,19,4267.374,-2468.811,231.65,0,0,0,0,100,0), +(@PATH,20,4263.313,-2458.705,231.5937,0,0,0,0,100,0), +(@PATH,21,4260.986,-2447.287,231.4928,0,0,0,0,100,0), +(@PATH,22,4258.986,-2445.537,231.4928,0,0,0,0,100,0), +(@PATH,23,4257.986,-2444.537,231.4928,0,0,0,0,100,0), +(@PATH,24,4257.986,-2443.787,231.4928,0,0,0,0,100,0), +(@PATH,25,4257.486,-2441.787,231.4928,0,0,0,0,100,0), +(@PATH,26,4257.564,-2441.543,231.4707,0,0,0,0,100,0), +(@PATH,27,4258.564,-2443.043,231.4707,0,0,0,0,100,0), +(@PATH,28,4258.814,-2444.543,231.4707,0,0,0,0,100,0), +(@PATH,29,4258.814,-2445.543,231.4707,0,0,0,0,100,0), +(@PATH,30,4259.061,-2445.944,231.3457,0,0,0,0,100,0), +(@PATH,31,4261.061,-2447.694,231.3457,0,0,0,0,100,0), +(@PATH,32,4263.474,-2458.961,231.6339,0,0,0,0,100,0), +(@PATH,33,4267.657,-2468.89,231.6431,0,0,0,0,100,0), +(@PATH,34,4273.792,-2472.652,231.7187,0,0,0,0,100,0), +(@PATH,35,4284.542,-2471.152,232.2187,0,0,0,0,100,0), +(@PATH,36,4284.735,-2471.201,232.4085,0,0,0,0,100,0), +(@PATH,37,4285.485,-2471.201,232.4085,0,0,0,0,100,0), +(@PATH,38,4289.235,-2470.701,233.1585,0,0,0,0,100,0), +(@PATH,39,4292.985,-2470.451,233.6585,0,0,0,0,100,0), +(@PATH,40,4296.985,-2469.951,234.4085,0,0,0,0,100,0), +(@PATH,41,4299.985,-2469.451,234.9085,0,0,0,0,100,0), +(@PATH,42,4303.572,-2469.107,235.8506,0,0,0,0,100,0), +(@PATH,43,4306.572,-2469.357,236.3506,0,0,0,0,100,0), +(@PATH,44,4311.322,-2469.857,237.1006,0,0,0,0,100,0), +(@PATH,45,4314.023,-2470.285,237.6709,0,0,0,0,100,0), +(@PATH,46,4318.273,-2476.535,238.1709,0,0,0,0,100,0), +(@PATH,47,4320.4,-2480.026,238.3305,0,0,0,0,100,0), +(@PATH,48,4316.393,-2488.953,238.7333,0,0,0,0,100,0), +(@PATH,49,4316.283,-2489.055,238.5876,0,0,0,0,100,0); + +SET @NPC := 100910; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4338.308,`position_y`=-2566.474,`position_z`=245.7152 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4338.308,-2566.474,245.7152,0,0,0,0,100,0), +(@PATH,2,4339.808,-2567.724,245.7152,0,0,0,0,100,0), +(@PATH,3,4341.308,-2568.724,245.7152,0,0,0,0,100,0), +(@PATH,4,4342.308,-2569.724,245.7152,0,0,0,0,100,0), +(@PATH,5,4342.308,-2570.724,245.7152,0,0,0,0,100,0), +(@PATH,6,4345.808,-2573.724,245.7152,0,0,0,0,100,0), +(@PATH,7,4346.808,-2574.724,245.7152,0,0,0,0,100,0), +(@PATH,8,4345.922,-2575.817,245.7339,0,0,0,0,100,0), +(@PATH,9,4344.672,-2574.817,245.7339,0,0,0,0,100,0), +(@PATH,10,4342.422,-2570.817,245.7339,0,0,0,0,100,0), +(@PATH,11,4342.422,-2569.817,245.7339,0,0,0,0,100,0), +(@PATH,12,4341.422,-2568.817,245.7339,0,0,0,0,100,0), +(@PATH,13,4340.922,-2566.567,245.7339,0,0,0,0,100,0), +(@PATH,14,4340.74,-2566.308,245.6353,0,0,0,0,100,0), +(@PATH,15,4337.99,-2566.308,245.6353,0,0,0,0,100,0), +(@PATH,16,4326.376,-2555.018,245.3248,0,0,0,0,100,0), +(@PATH,17,4317.626,-2555.518,244.8248,0,0,0,0,100,0), +(@PATH,18,4313.838,-2555.828,244.4903,0,0,0,0,100,0), +(@PATH,19,4310.838,-2556.578,243.9903,0,0,0,0,100,0), +(@PATH,20,4308.088,-2557.078,243.4903,0,0,0,0,100,0), +(@PATH,21,4305.229,-2558.031,242.7213,0,0,0,0,100,0), +(@PATH,22,4304.324,-2561.028,243.1423,0,0,0,0,100,0), +(@PATH,23,4306.574,-2564.278,243.6423,0,0,0,0,100,0), +(@PATH,24,4309.324,-2568.528,244.1423,0,0,0,0,100,0), +(@PATH,25,4311.824,-2572.278,244.6423,0,0,0,0,100,0), +(@PATH,26,4314.824,-2576.528,245.3923,0,0,0,0,100,0), +(@PATH,27,4319.487,-2583.055,246.6341,0,0,0,0,100,0), +(@PATH,28,4322.487,-2587.055,247.1341,0,0,0,0,100,0), +(@PATH,29,4324.737,-2590.055,247.6341,0,0,0,0,100,0), +(@PATH,30,4327.237,-2593.055,248.1341,0,0,0,0,100,0), +(@PATH,31,4328.737,-2595.055,248.6341,0,0,0,0,100,0), +(@PATH,32,4304.205,-2560.936,242.7079,0,0,0,0,100,0), +(@PATH,33,4305.315,-2557.807,243.0027,0,0,0,0,100,0), +(@PATH,34,4308.065,-2557.307,243.5027,0,0,0,0,100,0), +(@PATH,35,4310.815,-2556.557,244.0027,0,0,0,0,100,0), +(@PATH,36,4314.014,-2555.685,244.613,0,0,0,0,100,0), +(@PATH,37,4320.764,-2555.435,245.113,0,0,0,0,100,0), +(@PATH,38,4326.62,-2555.132,245.2907,0,0,0,0,100,0), +(@PATH,39,4338.271,-2566.441,245.7103,0,0,0,0,100,0); + +SET @NPC := 100930; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4243.639,`position_y`=-2493.448,`position_z`=231.605 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4243.639,-2493.448,231.605,0,0,0,0,100,0), +(@PATH,2,4245.705,-2503.654,231.4428,0,0,0,0,100,0), +(@PATH,3,4239.67,-2514.717,231.6307,0,0,0,0,100,0), +(@PATH,4,4239.557,-2514.651,231.5394,0,0,0,0,100,0), +(@PATH,5,4239.811,-2514.36,231.6327,0,0,0,0,100,0), +(@PATH,6,4245.605,-2503.552,231.3878,0,0,0,0,100,0), +(@PATH,7,4243.532,-2493.164,231.6278,0,0,0,0,100,0), +(@PATH,8,4237.666,-2485.062,231.6341,0,0,0,0,100,0); + +SET @NPC := 98081; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=3677.196,`position_y`=-3262.262,`position_z`=271.4974 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,3677.196,-3262.262,271.4974,0,0,0,0,100,0), +(@PATH,2,3675.946,-3263.512,270.4974,0,0,0,0,100,0), +(@PATH,3,3673.446,-3266.012,267.7474,0,0,0,0,100,0), +(@PATH,4,3672.196,-3267.262,266.4974,0,0,0,0,100,0), +(@PATH,5,3670.696,-3268.762,264.4974,0,0,0,0,100,0), +(@PATH,6,3669.344,-3269.899,262.9258,0,0,0,0,100,0), +(@PATH,7,3665.594,-3268.399,259.1758,0,0,0,0,100,0), +(@PATH,8,3664.594,-3267.899,258.1758,0,0,0,0,100,0), +(@PATH,9,3657.594,-3265.399,252.4258,0,0,0,0,100,0), +(@PATH,10,3656.094,-3264.742,251.3945,0,0,0,0,100,0), +(@PATH,11,3648.844,-3264.492,245.1445,0,0,0,0,100,0), +(@PATH,12,3647.094,-3264.242,243.6445,0,0,0,0,100,0), +(@PATH,13,3642.363,-3263.935,240.8384,0,0,0,0,100,0), +(@PATH,14,3642.113,-3265.185,239.8384,0,0,0,0,100,0), +(@PATH,15,3640.613,-3270.685,237.3384,0,0,0,0,100,0), +(@PATH,16,3638.873,-3276.277,236.2841,0,0,0,0,100,0), +(@PATH,17,3637.873,-3283.027,235.7841,0,0,0,0,100,0), +(@PATH,18,3637.623,-3284.527,235.5341,0,0,0,0,100,0), +(@PATH,19,3637.542,-3284.433,235.5938,0,0,0,0,100,0), +(@PATH,20,3637.792,-3282.933,235.5938,0,0,0,0,100,0), +(@PATH,21,3639.209,-3276.042,236.5234,0,0,0,0,100,0), +(@PATH,22,3640.459,-3271.292,237.2734,0,0,0,0,100,0), +(@PATH,23,3641.709,-3265.792,239.5234,0,0,0,0,100,0), +(@PATH,24,3642.543,-3264.088,240.9962,0,0,0,0,100,0), +(@PATH,25,3646.543,-3264.338,243.2462,0,0,0,0,100,0), +(@PATH,26,3649.043,-3264.588,245.2462,0,0,0,0,100,0), +(@PATH,27,3656.203,-3264.957,251.5793,0,0,0,0,100,0), +(@PATH,28,3657.703,-3265.457,252.5793,0,0,0,0,100,0), +(@PATH,29,3664.453,-3267.957,258.0793,0,0,0,0,100,0), +(@PATH,30,3665.453,-3268.457,259.0793,0,0,0,0,100,0), +(@PATH,31,3669.533,-3269.755,263.1148,0,0,0,0,100,0), +(@PATH,32,3670.783,-3268.755,264.6148,0,0,0,0,100,0), +(@PATH,33,3672.283,-3267.255,266.1148,0,0,0,0,100,0), +(@PATH,34,3673.033,-3266.005,267.8648,0,0,0,0,100,0), +(@PATH,35,3675.783,-3263.505,270.3648,0,0,0,0,100,0), +(@PATH,36,3676.181,-3263.232,270.6315,0,0,0,0,100,0), +(@PATH,37,3677.431,-3261.982,271.8815,0,0,0,0,100,0), +(@PATH,38,3679.931,-3259.982,274.1315,0,0,0,0,100,0), +(@PATH,39,3683.181,-3256.982,276.8815,0,0,0,0,100,0), +(@PATH,40,3683.275,-3257.129,276.9308,0,0,0,0,100,0), +(@PATH,41,3680.025,-3259.629,274.4308,0,0,0,0,100,0), +(@PATH,42,3677.151,-3262.089,271.6892,0,0,0,0,100,0); + +SET @NPC := 98083; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=3608.663,`position_y`=-3311.686,`position_z`=224.8323 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,3608.663,-3311.686,224.8323,0,0,0,0,100,0), +(@PATH,2,3610.913,-3313.436,224.5823,0,0,0,0,100,0), +(@PATH,3,3612.413,-3314.436,224.5823,0,0,0,0,100,0), +(@PATH,4,3621.448,-3320.278,226.055,0,0,0,0,100,0), +(@PATH,5,3624.948,-3320.278,226.555,0,0,0,0,100,0), +(@PATH,6,3630.948,-3320.278,227.055,0,0,0,0,100,0), +(@PATH,7,3632.198,-3320.278,227.555,0,0,0,0,100,0), +(@PATH,8,3631.236,-3320.25,227.2929,0,0,0,0,100,0), +(@PATH,9,3632.486,-3320.25,227.7929,0,0,0,0,100,0), +(@PATH,10,3633.486,-3320.25,228.2929,0,0,0,0,100,0), +(@PATH,11,3637.236,-3317,229.5429,0,0,0,0,100,0), +(@PATH,12,3637.84,-3316.242,229.9589,0,0,0,0,100,0), +(@PATH,13,3633.259,-3320.148,227.9277,0,0,0,0,100,0), +(@PATH,14,3632.259,-3320.148,227.4277,0,0,0,0,100,0), +(@PATH,15,3631.009,-3320.148,227.1777,0,0,0,0,100,0), +(@PATH,16,3624.759,-3320.398,226.4277,0,0,0,0,100,0), +(@PATH,17,3621.314,-3320.251,225.9905,0,0,0,0,100,0), +(@PATH,18,3613.064,-3315.001,224.7405,0,0,0,0,100,0), +(@PATH,19,3611.064,-3313.501,224.7405,0,0,0,0,100,0), +(@PATH,20,3608.404,-3311.755,224.6184,0,0,0,0,100,0), +(@PATH,21,3605.154,-3300.005,224.3684,0,0,0,0,100,0); + +-- drakkari event +DELETE FROM `creature` where `id` IN (26582, 26583) and `guid` NOT IN (116602); + +-- Horrified Drakkari Shaman SAI +SET @GUID := -116602; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=26583; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@GUID AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@GUID,0,0,0,1,0,100,0,1000,2000,1000,2000,88,11660200,11660201,0,0,0,0,1,0,0,0,0,0,0,0,"Horrified Drakkari Shaman - Out of Combat - Run Random Script"), +(@GUID,0,1,2,63,0,100,0,0,0,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horrified Drakkari Shaman - On Reset - Set Active On"), +(@GUID,0,2,3,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horrified Drakkari Shaman - On Reset - Set Visibility On"), +(@GUID,0,3,0,61,0,100,0,0,0,0,0,8,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horrified Drakkari Shaman - On Reset - Set Reactstate Aggressive"); + +-- Actionlist SAI +SET @ENTRY := 11660200; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,12,26583,3,120000,0,0,0,8,0,0,0,4690.051270,-2045.848755,194.348404,3.160445,"On Script - Summon Creature 'Horrified Drakkari Shaman'"); + +-- Actionlist SAI +SET @ENTRY := 11660201; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,12,26582,3,120000,0,0,0,8,0,0,0,4690.051270,-2045.848755,194.348404,3.160445,"On Script - Summon Creature 'Horrified Drakkari Warrior'"); + +-- Horrified Drakkari Shaman SAI +SET @ENTRY := 26582; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,1,63,0,100,0,1,0,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horrified Drakkari Warrior - On Just Created - Set Active On"), +(@ENTRY,0,1,2,61,0,100,0,1,0,0,0,88,2658200,2658201,0,0,0,0,1,0,0,0,0,0,0,0,"Horrified Drakkari Warrior - On Data Set 1 0 - Run Random Script"), +(@ENTRY,0,2,0,61,0,100,0,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horrified Drakkari Warrior - On Just Created - Say Line 0"), +(@ENTRY,0,3,0,40,0,100,0,20,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horrified Drakkari Warrior - On Waypoint 20 Reached - Despawn Instant"); + +-- Horrified Drakkari Shaman SAI +SET @ENTRY := 26583; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,0,0,1,63,0,100,0,1,0,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horrified Drakkari Shaman - On Just Created - Set Active On"), +(@ENTRY,0,1,2,61,0,100,0,1,0,0,0,88,2658200,2658201,0,0,0,0,1,0,0,0,0,0,0,0,"Horrified Drakkari Shaman - On Just Created - Run Random Script"), +(@ENTRY,0,2,0,61,0,100,0,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horrified Drakkari Shaman - On Just Created - Say Line 0"), +(@ENTRY,0,3,0,40,0,100,0,20,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Horrified Drakkari Shaman - On Waypoint 20 Reached - Despawn Instant"); + +-- Actionlist SAI +SET @ENTRY := 2658200; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,53,1,2658200,0,0,3000,0,0,0,0,0,0,0,0,0,"On Script - Start Waypoint"); + +-- Actionlist SAI +SET @ENTRY := 2658201; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,53,1,2658201,0,0,3000,0,0,0,0,0,0,0,0,0,"On Script - Start Waypoint"); + +DELETE FROM `waypoints` WHERE `entry`=2658200; +INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`) VALUES +(2658200, 1, 4680.19, -2044.68, 189.441), +(2658200, 2, 4662.73, -2045.93, 184.189), +(2658200, 3, 4651.83, -2051.77, 184.368), +(2658200, 4, 4643.71, -2060.59, 184.18), +(2658200, 5, 4635.04, -2061.83, 184.1), +(2658200, 6, 4617.55, -2061.84, 184.182), +(2658200, 7, 4596.55, -2061.57, 184.186), +(2658200, 8, 4579.06, -2061.36, 184.186), +(2658200, 9, 4562.37, -2062.32, 184.167), +(2658200, 10, 4551.87, -2062.12, 178.315), +(2658200, 11, 4534.37, -2062.09, 168.354), +(2658200, 12, 4523.88, -2061.96, 162.377), +(2658200, 13, 4509.88, -2062.05, 160.823), +(2658200, 14, 4498.51, -2063.27, 160.823), +(2658200, 15, 4490.23, -2069.98, 160.823), +(2658200, 16, 4492.74, -2078.85, 160.823), +(2658200, 17, 4496.31, -2094.72, 160.8), +(2658200, 18, 4506.59, -2103.06, 160.831), +(2658200, 19, 4518.52, -2110.39, 160.833), +(2658200, 20, 4533.43, -2119.56, 160.845), +(2658200, 21, 4545.35, -2130.19, 160.842); + +DELETE FROM `waypoints` WHERE `entry`=2658201; +INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`) VALUES +(2658201, 1, 4692.36, -2045.14, 195.516), +(2658201, 2, 4674.86, -2044.91, 186.46), +(2658201, 3, 4671.36, -2044.89, 185.043), +(2658201, 4, 4659.89, -2044.58, 184.318), +(2658201, 5, 4648.06, -2033.35, 184.184), +(2658201, 6, 4641.49, -2028.73, 183.862), +(2658201, 7, 4630.25, -2028.22, 184.182), +(2658201, 8, 4612.76, -2028.2, 184.185), +(2658201, 9, 4591.76, -2027.91, 184.189), +(2658201, 10, 4574.26, -2027.67, 184.185), +(2658201, 11, 4563.76, -2027.47, 184.166), +(2658201, 12, 4556.77, -2027.4, 180.928), +(2658201, 13, 4539.27, -2027.25, 170.966), +(2658201, 14, 4525.27, -2027.07, 162.997), +(2658201, 15, 4511.28, -2026.61, 160.823), +(2658201, 16, 4494.03, -2024.8, 160.824), +(2658201, 17, 4488.19, -2012.02, 161.055), +(2658201, 18, 4492.56, -1993.64, 160.824), +(2658201, 19, 4503.51, -1980.34, 160.824), +(2658201, 20, 4517.17, -1973.46, 160.824); + +DELETE FROM `creature_text` WHERE `entry` IN (26583, 26582); +INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(26583, 0, 0, 'Drak\'Tharon be lost, mon!', 12, 0, 100, 0, 0, 0, 25857, 0, 'Horrified Drakkari'), +(26583, 0, 1, 'Da Scourge be everywhere, mon!', 12, 0, 100, 0, 0, 0, 25853, 0, 'Horrified Drakkari'), +(26583, 0, 2, 'Every troll for himself, mon!', 12, 0, 100, 0, 0, 0, 25855, 0, 'Horrified Drakkari'), +(26583, 0, 3, 'Ruuun!', 12, 0, 100, 0, 0, 0, 25859, 0, 'Horrified Drakkari'), +-- +(26582, 0, 0, 'Drak\'Tharon be lost, mon!', 12, 0, 100, 0, 0, 0, 25857, 0, 'Horrified Drakkari'), +(26582, 0, 1, 'Da Scourge be everywhere, mon!', 12, 0, 100, 0, 0, 0, 25853, 0, 'Horrified Drakkari'), +(26582, 0, 2, 'Every troll for himself, mon!', 12, 0, 100, 0, 0, 0, 25855, 0, 'Horrified Drakkari'), +(26582, 0, 3, 'Ruuun!', 12, 0, 100, 0, 0, 0, 25859, 0, 'Horrified Drakkari'); diff --git a/sql/updates/world/2015_05_12_03_world.sql b/sql/updates/world/2015_05_12_03_world.sql new file mode 100644 index 00000000000..2bcfa9d091b --- /dev/null +++ b/sql/updates/world/2015_05_12_03_world.sql @@ -0,0 +1,507 @@ +-- DB/Creature: Grizzlyhills Pathing -2 +UPDATE `smart_scripts` SET `action_param6`=2 WHERE `entryorguid` IN (2658200, 2658201) AND `source_type`=9 AND `id`=0 AND `link`=0; + +SET @NPC := 99310; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4194.24,`position_y`=-1806.269,`position_z`=200.4735 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4194.24,-1806.269,200.4735,0,0,0,0,100,0), +(@PATH,2,4197.74,-1808.269,201.2235,0,0,0,0,100,0), +(@PATH,3,4199.49,-1809.269,201.7235,0,0,0,0,100,0), +(@PATH,4,4202.99,-1811.269,202.2235,0,0,0,0,100,0), +(@PATH,5,4209.49,-1815.269,202.9735,0,0,0,0,100,0), +(@PATH,6,4226.4,-1825.46,203.2541,0,0,0,0,100,0), +(@PATH,7,4227.65,-1833.96,202.7541,0,0,0,0,100,0), +(@PATH,8,4228.602,-1839.474,202.2388,0,0,0,0,100,0), +(@PATH,9,4242.543,-1857.213,202.6918,0,0,0,0,100,0), +(@PATH,10,4242.543,-1863.963,203.1918,0,0,0,0,100,0), +(@PATH,11,4242.595,-1859.661,202.7076,0,0,0,0,100,0), +(@PATH,12,4242.467,-1856.869,202.4443,0,0,0,0,100,0), +(@PATH,13,4238.217,-1851.369,201.9443,0,0,0,0,100,0), +(@PATH,14,4228.504,-1839.239,202.5002,0,0,0,0,100,0), +(@PATH,15,4227.504,-1832.739,203.0002,0,0,0,0,100,0), +(@PATH,16,4226.358,-1825.27,203.1885,0,0,0,0,100,0), +(@PATH,17,4208.108,-1814.52,202.6885,0,0,0,0,100,0), +(@PATH,18,4200.608,-1810.02,201.9385,0,0,0,0,100,0), +(@PATH,19,4198.108,-1808.52,201.1885,0,0,0,0,100,0), +(@PATH,20,4194.608,-1806.52,200.6885,0,0,0,0,100,0), +(@PATH,21,4190.358,-1803.77,199.9385,0,0,0,0,100,0); + +SET @NPC := 99309; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4163.295,`position_y`=-1958.695,`position_z`=208.3958 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4163.295,-1958.695,208.3958,0,0,0,0,100,0), +(@PATH,2,4167.545,-1960.945,208.8958,0,0,0,0,100,0), +(@PATH,3,4189.578,-1972.83,209.2269,0,0,0,0,100,0), +(@PATH,4,4193.578,-1973.83,208.7269,0,0,0,0,100,0), +(@PATH,5,4189.997,-1972.962,209.24,0,0,0,0,100,0), +(@PATH,6,4164.317,-1959.296,208.4842,0,0,0,0,100,0), +(@PATH,7,4163.099,-1958.743,208.3662,0,0,0,0,100,0), +(@PATH,8,4157.599,-1963.243,209.1162,0,0,0,0,100,0), +(@PATH,9,4154.599,-1965.743,209.8662,0,0,0,0,100,0), +(@PATH,10,4151.599,-1968.243,210.3662,0,0,0,0,100,0), +(@PATH,11,4148.349,-1970.743,210.8662,0,0,0,0,100,0), +(@PATH,12,4143.349,-1974.993,211.3662,0,0,0,0,100,0), +(@PATH,13,4136.349,-1980.993,212.1162,0,0,0,0,100,0), +(@PATH,14,4134.099,-1982.743,212.6162,0,0,0,0,100,0), +(@PATH,15,4133.807,-1983.081,212.7842,0,0,0,0,100,0), +(@PATH,16,4137.057,-1980.331,212.0342,0,0,0,0,100,0), +(@PATH,17,4143.807,-1974.581,211.2842,0,0,0,0,100,0), +(@PATH,18,4149.057,-1970.331,210.5342,0,0,0,0,100,0), +(@PATH,19,4152.807,-1967.081,210.0342,0,0,0,0,100,0), +(@PATH,20,4155.057,-1965.331,209.5342,0,0,0,0,100,0), +(@PATH,21,4159.057,-1962.081,209.0342,0,0,0,0,100,0); + +SET @NPC := 99308; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4257.948,`position_y`=-1914.651,`position_z`=201.9758 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4257.948,-1914.651,201.9758,0,0,0,0,100,0), +(@PATH,2,4257.902,-1914.741,202.4635,0,0,0,0,100,0), +(@PATH,3,4257.152,-1923.741,202.9635,0,0,0,0,100,0), +(@PATH,4,4256.652,-1929.491,203.4635,0,0,0,0,100,0), +(@PATH,5,4256.402,-1934.241,203.9635,0,0,0,0,100,0), +(@PATH,6,4255.238,-1946.397,204.331,0,0,0,0,100,0), +(@PATH,7,4252.988,-1961.897,204.831,0,0,0,0,100,0), +(@PATH,8,4252.238,-1966.897,205.331,0,0,0,0,100,0), +(@PATH,9,4252.688,-1964.002,204.8374,0,0,0,0,100,0), +(@PATH,10,4254.188,-1953.252,204.5874,0,0,0,0,100,0), +(@PATH,11,4255.508,-1946.051,204.2277,0,0,0,0,100,0), +(@PATH,12,4256.758,-1930.551,203.4777,0,0,0,0,100,0), +(@PATH,13,4257.008,-1925.551,202.9777,0,0,0,0,100,0), +(@PATH,14,4257.508,-1919.551,202.4777,0,0,0,0,100,0), +(@PATH,15,4257.833,-1914.49,202.1853,0,0,0,0,100,0); + +SET @NPC := 104074; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4245.058,`position_y`=-2021.197,`position_z`=237.4276 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4245.058,-2021.197,237.4276,0,0,0,0,100,0), +(@PATH,2,4245.791,-2017.078,233.2036,0,0,0,0,100,0), +(@PATH,3,4246.791,-2007.328,223.2036,0,0,0,0,100,0), +(@PATH,4,4247.152,-2007.004,222.8537,0,0,0,0,100,0), +(@PATH,5,4247.402,-2005.004,220.8537,0,0,0,0,100,0), +(@PATH,6,4248.152,-1999.504,215.8537,0,0,0,0,100,0), +(@PATH,7,4249.402,-1990.004,207.3537,0,0,0,0,100,0), +(@PATH,8,4249.673,-1989.776,207.2351,0,0,0,0,100,0), +(@PATH,9,4249.673,-1988.776,207.2351,0,0,0,0,100,0), +(@PATH,10,4250.423,-1976.026,206.7351,0,0,0,0,100,0), +(@PATH,11,4250.069,-1981.066,206.8915,0,0,0,0,100,0), +(@PATH,12,4248.495,-1989.926,206.7487,0,0,0,0,100,0), +(@PATH,13,4247.745,-1999.926,215.9987,0,0,0,0,100,0), +(@PATH,14,4247.169,-2005.335,221.2139,0,0,0,0,100,0), +(@PATH,15,4246.919,-2007.335,223.2139,0,0,0,0,100,0), +(@PATH,16,4245.507,-2017.251,233.4465,0,0,0,0,100,0); + +DELETE FROM `creature_addon` WHERE `guid`=110106; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES +(110106,0,0,0,1,69, ''); + +SET @NPC := 10299; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=3333.925,`position_y`=-1773.206,`position_z`=88.87373 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,3333.925,-1773.206,88.87373,0,0,0,0,100,0), +(@PATH,2,3334.675,-1774.456,88.37373,0,0,0,0,100,0), +(@PATH,3,3335.175,-1775.456,88.37373,0,0,0,0,100,0), +(@PATH,4,3337.425,-1775.956,88.62373,0,0,0,0,100,0), +(@PATH,5,3338.675,-1779.706,89.12373,0,0,0,0,100,0), +(@PATH,6,3339.705,-1778.929,89.08168,0,0,0,0,100,0), +(@PATH,7,3339.705,-1775.929,88.58168,0,0,0,0,100,0), +(@PATH,8,3339.705,-1774.679,88.33168,0,0,0,0,100,0), +(@PATH,9,3339.705,-1771.679,87.83168,0,0,0,0,100,0), +(@PATH,10,3339.705,-1770.929,87.58168,0,0,0,0,100,0), +(@PATH,11,3339.705,-1766.679,87.33168,0,0,0,0,100,0), +(@PATH,12,3341.205,-1761.679,88.08168,0,0,0,0,100,0), +(@PATH,13,3340.286,-1761.39,87.88223,0,0,0,0,100,0), +(@PATH,14,3357.286,-1763.39,89.13223,0,0,0,0,100,0), +(@PATH,15,3358.286,-1763.39,89.38223,0,0,0,0,100,0), +(@PATH,16,3358.156,-1762.816,89.31908,0,0,0,0,100,0), +(@PATH,17,3357.656,-1762.816,89.06908,0,0,0,0,100,0), +(@PATH,18,3357.156,-1762.816,89.31908,0,0,0,0,100,0), +(@PATH,19,3340.241,-1761.592,87.80875,0,0,0,0,100,0), +(@PATH,20,3339.741,-1764.592,87.55875,0,0,0,0,100,0), +(@PATH,21,3339.741,-1766.592,87.30875,0,0,0,0,100,0), +(@PATH,22,3339.741,-1770.842,87.55875,0,0,0,0,100,0), +(@PATH,23,3339.741,-1774.592,88.30875,0,0,0,0,100,0), +(@PATH,24,3339.741,-1778.842,89.05875,0,0,0,0,100,0), +(@PATH,25,3335.925,-1777.206,88.87373,0,0,0,0,100,0), +(@PATH,26,3334.675,-1775.206,88.37373,0,0,0,0,100,0); + +SET @NPC := 103003; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=3392.038,`position_y`=-1786.48,`position_z`=99.89154 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,3392.038,-1786.48,99.89154,0,0,0,0,100,0), +(@PATH,2,3393.788,-1785.98,99.64154,0,0,0,0,100,0), +(@PATH,3,3395.788,-1784.48,99.64154,0,0,0,0,100,0), +(@PATH,4,3398.038,-1784.48,99.64154,0,0,0,0,100,0), +(@PATH,5,3400.038,-1783.73,99.39154,0,0,0,0,100,0), +(@PATH,6,3408.288,-1780.23,99.14154,0,0,0,0,100,0), +(@PATH,7,3410.538,-1780.23,99.14154,0,0,0,0,100,0), +(@PATH,8,3412.538,-1780.23,99.39154,0,0,0,0,100,0), +(@PATH,9,3414.538,-1780.23,99.39154,0,0,0,0,100,0), +(@PATH,10,3416.788,-1780.23,99.64154,0,0,0,0,100,0), +(@PATH,11,3418.788,-1780.23,99.64154,0,0,0,0,100,0), +(@PATH,12,3418.788,-1782.48,100.8915,0,0,0,0,100,0), +(@PATH,13,3418.288,-1782.98,101.1415,0,0,0,0,100,0), +(@PATH,14,3418.538,-1786.48,102.1415,0,0,0,0,100,0), +(@PATH,15,3418.788,-1788.48,102.1415,0,0,0,0,100,0), +(@PATH,16,3418.788,-1790.23,102.6415,0,0,0,0,100,0), +(@PATH,17,3417.788,-1790.73,103.1415,0,0,0,0,100,0), +(@PATH,18,3412.288,-1793.98,103.1415,0,0,0,0,100,0), +(@PATH,19,3409.038,-1795.23,103.1415,0,0,0,0,100,0), +(@PATH,20,3402.038,-1798.23,103.1415,0,0,0,0,100,0), +(@PATH,21,3405.601,-1802.971,103.1744,0,0,0,0,100,0), +(@PATH,22,3412.601,-1804.221,103.1744,0,0,0,0,100,0), +(@PATH,23,3414.101,-1804.471,102.1744,0,0,0,0,100,0), +(@PATH,24,3414.601,-1803.471,102.1744,0,0,0,0,100,0), +(@PATH,25,3415.601,-1801.721,101.9244,0,0,0,0,100,0), +(@PATH,26,3415.601,-1799.721,101.9244,0,0,0,0,100,0), +(@PATH,27,3416.601,-1798.721,101.6744,0,0,0,0,100,0), +(@PATH,28,3420.351,-1795.471,101.4244,0,0,0,0,100,0), +(@PATH,29,3422.351,-1791.721,101.1744,0,0,0,0,100,0), +(@PATH,30,3423.851,-1789.471,101.1744,0,0,0,0,100,0), +(@PATH,31,3423.851,-1787.471,100.6744,0,0,0,0,100,0), +(@PATH,32,3423.851,-1785.471,100.4244,0,0,0,0,100,0), +(@PATH,33,3423.851,-1783.221,99.92442,0,0,0,0,100,0), +(@PATH,34,3422.851,-1781.721,99.42442,0,0,0,0,100,0), +(@PATH,35,3421.851,-1781.721,99.42442,0,0,0,0,100,0), +(@PATH,36,3420.851,-1781.721,99.67442,0,0,0,0,100,0), +(@PATH,37,3418.851,-1780.221,99.67442,0,0,0,0,100,0), +(@PATH,38,3416.601,-1780.221,99.67442,0,0,0,0,100,0), +(@PATH,39,3414.601,-1780.221,99.42442,0,0,0,0,100,0), +(@PATH,40,3412.601,-1780.221,99.42442,0,0,0,0,100,0), +(@PATH,41,3410.351,-1780.221,99.17442,0,0,0,0,100,0), +(@PATH,42,3408.351,-1780.221,99.17442,0,0,0,0,100,0), +(@PATH,43,3404.601,-1783.221,99.92442,0,0,0,0,100,0), +(@PATH,44,3403.101,-1783.971,99.67442,0,0,0,0,100,0), +(@PATH,45,3402.101,-1783.971,99.42442,0,0,0,0,100,0), +(@PATH,46,3401.101,-1783.971,99.42442,0,0,0,0,100,0), +(@PATH,47,3400.101,-1783.971,99.42442,0,0,0,0,100,0), +(@PATH,48,3397.851,-1784.471,99.67442,0,0,0,0,100,0), +(@PATH,49,3395.851,-1784.471,99.67442,0,0,0,0,100,0), +(@PATH,50,3393.851,-1784.471,99.42442,0,0,0,0,100,0); + +SET @NPC := 103000; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=3389.137,`position_y`=-1830.333,`position_z`=103.4552 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,3389.137,-1830.333,103.4552,0,0,0,0,100,0), +(@PATH,2,3389.637,-1832.583,102.9552,0,0,0,0,100,0), +(@PATH,3,3383.887,-1839.083,102.9552,0,0,0,0,100,0), +(@PATH,4,3382.887,-1840.083,102.4552,0,0,0,0,100,0), +(@PATH,5,3382.387,-1840.583,102.7052,0,0,0,0,100,0), +(@PATH,6,3382.387,-1841.583,102.7052,0,0,0,0,100,0), +(@PATH,7,3378.887,-1844.833,103.4552,0,0,0,0,100,0), +(@PATH,8,3376.137,-1847.833,103.9552,0,0,0,0,100,0), +(@PATH,9,3375.137,-1848.833,104.2052,0,0,0,0,100,0), +(@PATH,10,3374.137,-1849.833,104.2052,0,0,0,0,100,0), +(@PATH,11,3372.387,-1852.083,104.7052,0,0,0,0,100,0), +(@PATH,12,3372.262,-1852.324,105.0966,0,0,0,0,100,0), +(@PATH,13,3371.512,-1853.574,105.3466,0,0,0,0,100,0), +(@PATH,14,3393.262,-1859.574,105.8466,0,0,0,0,100,0), +(@PATH,15,3397.262,-1860.824,106.5966,0,0,0,0,100,0), +(@PATH,16,3399.262,-1861.324,106.8466,0,0,0,0,100,0), +(@PATH,17,3403.012,-1862.324,107.5966,0,0,0,0,100,0), +(@PATH,18,3406.762,-1863.574,108.5966,0,0,0,0,100,0), +(@PATH,19,3382.792,-1856.847,105.1871,0,0,0,0,100,0), +(@PATH,20,3392.687,-1859.487,105.7214,0,0,0,0,100,0), +(@PATH,21,3396.437,-1860.737,106.4714,0,0,0,0,100,0), +(@PATH,22,3399.187,-1861.237,107.2214,0,0,0,0,100,0), +(@PATH,23,3402.937,-1862.237,107.7214,0,0,0,0,100,0), +(@PATH,24,3406.937,-1863.487,108.7214,0,0,0,0,100,0), +(@PATH,25,3408.163,-1863.834,108.8378,0,0,0,0,100,0), +(@PATH,26,3406.163,-1863.334,108.0878,0,0,0,0,100,0), +(@PATH,27,3402.413,-1862.084,107.3378,0,0,0,0,100,0), +(@PATH,28,3398.663,-1861.084,106.8378,0,0,0,0,100,0), +(@PATH,29,3394.663,-1860.084,105.8378,0,0,0,0,100,0), +(@PATH,30,3388.163,-1858.334,105.0878,0,0,0,0,100,0), +(@PATH,31,3376.036,-1851.585,104.1596,0,0,0,0,100,0), +(@PATH,32,3377.786,-1847.835,103.6596,0,0,0,0,100,0), +(@PATH,33,3379.536,-1844.335,103.1596,0,0,0,0,100,0), +(@PATH,34,3381.036,-1841.085,102.6596,0,0,0,0,100,0), +(@PATH,35,3382.036,-1839.835,102.6596,0,0,0,0,100,0), +(@PATH,36,3383.036,-1839.085,102.9096,0,0,0,0,100,0), +(@PATH,37,3389.537,-1832.41,102.813,0,0,0,0,100,0), +(@PATH,38,3389.037,-1829.91,102.813,0,0,0,0,100,0), +(@PATH,39,3388.787,-1827.91,104.813,0,0,0,0,100,0), +(@PATH,40,3386.787,-1816.66,111.313,0,0,0,0,100,0), +(@PATH,41,3386.537,-1815.41,112.063,0,0,0,0,100,0), +(@PATH,42,3386.537,-1813.41,113.313,0,0,0,0,100,0), +(@PATH,43,3386.537,-1812.41,113.813,0,0,0,0,100,0), +(@PATH,44,3386.367,-1811.625,114.3062,0,0,0,0,100,0), +(@PATH,45,3386.617,-1813.375,113.3062,0,0,0,0,100,0), +(@PATH,46,3386.867,-1814.375,112.5562,0,0,0,0,100,0), +(@PATH,47,3387.117,-1816.875,111.3062,0,0,0,0,100,0), +(@PATH,48,3388.867,-1827.875,104.8062,0,0,0,0,100,0); + +UPDATE `smart_scripts` SET `action_param1`=1 WHERE `entryorguid`=26447 AND `source_type`=0 AND `id`=0 AND `link`=0; + +SET @NPC := 102007; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4364.09,`position_y`=-3079.468,`position_z`=339.3658 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4364.09,-3079.468,339.3658,0,0,0,0,100,0), +(@PATH,2,4367.34,-3080.468,339.6158,0,0,0,0,100,0), +(@PATH,3,4367.589,-3080.702,339.5166,0,0,0,0,100,0), +(@PATH,4,4363.933,-3079.255,339.4127,0,0,0,0,100,0), +(@PATH,5,4359.433,-3077.505,336.4127,0,0,0,0,100,0), +(@PATH,6,4355.786,-3075.964,334.2474,0,0,0,0,100,0), +(@PATH,7,4355.695,-3075.981,334.1053,0,0,0,0,100,0), +(@PATH,8,4356.195,-3076.231,334.3553,0,0,0,0,100,0), +(@PATH,9,4359.195,-3077.231,336.3553,0,0,0,0,100,0), +(@PATH,10,4364.154,-3079.562,339.3983,0,0,0,0,100,0), +(@PATH,11,4367.404,-3080.312,339.6483,0,0,0,0,100,0), +(@PATH,12,4367.589,-3080.702,339.5166,0,0,0,0,100,0), +(@PATH,13,4363.904,-3079.155,339.4361,0,0,0,0,100,0), +(@PATH,14,4359.404,-3077.405,336.4361,0,0,0,0,100,0); + +DELETE FROM `creature_addon` WHERE `guid` IN (111265,111249,111251,111254,111253,111287,111250,111252,111256, 111257, 111255, 111258); +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES +(111255,0,0,3,1,0, ''), +(111258,0,0,3,1,0, ''), +(111257,0,0,3,1,0, ''), +(111256,0,0,3,1,0, ''), +(111265,0,0,3,1,0, ''), +(111252,0,0,3,1,0, ''), +(111250,0,0,3,1,0, ''), +(111287,0,0,3,1,0, ''), +(111253,0,0,3,1,0, ''), +(111254,0,0,3,1,0, ''), +(111251,0,0,3,1,0, ''), +(111249,0,0,3,1,0, ''); + +SET @NPC := 111286; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4542.684,`position_y`=-3543.378,`position_z`=229.5949 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4542.684,-3543.378,229.5949,0,0,0,0,100,0), +(@PATH,2,4538.324,-3550.24,230.4706,0,0,0,0,100,0), +(@PATH,3,4538.574,-3554.24,230.9706,0,0,0,0,100,0), +(@PATH,4,4538.824,-3559.99,231.4706,0,0,0,0,100,0), +(@PATH,5,4538.906,-3559.937,231.3715,0,0,0,0,100,0), +(@PATH,6,4538.906,-3560.937,231.8715,0,0,0,0,100,0), +(@PATH,7,4558.198,-3552.972,231.0125,0,0,0,0,100,0), +(@PATH,8,4556.198,-3549.472,230.5125,0,0,0,0,100,0), +(@PATH,9,4553.948,-3546.472,229.7625,0,0,0,0,100,0), +(@PATH,10,4551.948,-3543.222,229.5125,0,0,0,0,100,0), +(@PATH,11,4542.659,-3543.267,229.5627,0,0,0,0,100,0); + +SET @NPC := 111288; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4520.46,`position_y`=-3406.525,`position_z`=227.3326 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4520.46,-3406.525,227.3326,0,0,0,0,100,0), +(@PATH,2,4521.017,-3406.375,227.0677,0,0,0,0,100,0), +(@PATH,3,4520.318,-3406.741,227.3123,0,0,0,0,100,0), +(@PATH,4,4517.467,-3403.935,227.3069,0,0,0,0,100,0), +(@PATH,5,4526.76,-3393.349,227.3997,0,0,0,0,100,0), +(@PATH,6,4531.26,-3395.099,227.8997,0,0,0,0,100,0), +(@PATH,7,4531.282,-3395.075,227.8239,0,0,0,0,100,0), +(@PATH,8,4533.532,-3395.825,228.3239,0,0,0,0,100,0), +(@PATH,9,4532.032,-3397.075,228.0739,0,0,0,0,100,0), +(@PATH,10,4527.532,-3400.825,227.3239,0,0,0,0,100,0), +(@PATH,11,4520.34,-3406.549,227.3216,0,0,0,0,100,0), +(@PATH,12,4517.471,-3403.86,227.3069,0,0,0,0,100,0), +(@PATH,13,4526.883,-3393.393,227.3997,0,0,0,0,100,0), +(@PATH,14,4531.383,-3394.893,227.8997,0,0,0,0,100,0), +(@PATH,15,4531.462,-3395.123,227.7483,0,0,0,0,100,0), +(@PATH,16,4533.462,-3395.873,228.4983,0,0,0,0,100,0), +(@PATH,17,4531.962,-3397.123,227.9983,0,0,0,0,100,0), +(@PATH,18,4527.462,-3400.623,227.2483,0,0,0,0,100,0), +(@PATH,19,4520.34,-3406.627,227.3305,0,0,0,0,100,0), +(@PATH,20,4517.294,-3403.789,227.3069,0,0,0,0,100,0), +(@PATH,21,4526.909,-3393.429,227.3997,0,0,0,0,100,0), +(@PATH,22,4531.409,-3394.929,227.8997,0,0,0,0,100,0); + +SET @NPC := 111289; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4484.351,`position_y`=-3478.285,`position_z`=227.3069 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4484.351,-3478.285,227.3069,0,0,0,0,100,0), +(@PATH,2,4480.057,-3487.22,227.2323,0,0,0,0,100,0), +(@PATH,3,4472.557,-3489.22,227.7323,0,0,0,0,100,0), +(@PATH,4,4472.306,-3489.237,227.8791,0,0,0,0,100,0), +(@PATH,5,4470.556,-3489.737,227.6291,0,0,0,0,100,0), +(@PATH,6,4462.207,-3481.591,227.8329,0,0,0,0,100,0), +(@PATH,7,4464.199,-3484.106,227.8086,0,0,0,0,100,0), +(@PATH,8,4476.075,-3486.219,227.4328,0,0,0,0,100,0), +(@PATH,9,4480.054,-3487.25,227.2926,0,0,0,0,100,0), +(@PATH,10,4472.554,-3489.25,227.7926,0,0,0,0,100,0), +(@PATH,11,4470.448,-3489.726,227.6761,0,0,0,0,100,0), +(@PATH,12,4461.976,-3481.571,227.8154,0,0,0,0,100,0), +(@PATH,13,4466.938,-3472.407,227.8242,0,0,0,0,100,0), +(@PATH,14,4479.269,-3468.501,227.1355,0,0,0,0,100,0), +(@PATH,15,4484.383,-3478.306,227.3069,0,0,0,0,100,0), +(@PATH,16,4479.968,-3487.13,227.2323,0,0,0,0,100,0), +(@PATH,17,4472.468,-3489.13,227.7323,0,0,0,0,100,0); + +SET @NPC := 103184; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4462.269,`position_y`=-3450.493,`position_z`=229.296 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4462.269,-3450.493,229.296,0,0,0,0,100,0), +(@PATH,2,4459.769,-3447.243,230.296,0,0,0,0,100,0), +(@PATH,3,4458.269,-3445.243,231.046,0,0,0,0,100,0), +(@PATH,4,4457.019,-3443.493,231.796,0,0,0,0,100,0), +(@PATH,5,4455.269,-3441.243,232.546,0,0,0,0,100,0), +(@PATH,6,4453.519,-3438.743,233.046,0,0,0,0,100,0), +(@PATH,7,4452.269,-3437.243,233.796,0,0,0,0,100,0), +(@PATH,8,4452.268,-3436.947,233.8038,0,0,0,0,100,0), +(@PATH,9,4451.268,-3435.697,234.0538,0,0,0,0,100,0), +(@PATH,10,4456.768,-3431.197,233.5538,0,0,0,0,100,0), +(@PATH,11,4463.518,-3425.947,232.8038,0,0,0,0,100,0), +(@PATH,12,4466.768,-3423.447,232.3038,0,0,0,0,100,0), +(@PATH,13,4471.518,-3419.947,232.0538,0,0,0,0,100,0), +(@PATH,14,4467.077,-3423.216,232.6244,0,0,0,0,100,0), +(@PATH,15,4463.827,-3425.716,232.8744,0,0,0,0,100,0), +(@PATH,16,4458.577,-3429.716,233.6244,0,0,0,0,100,0), +(@PATH,17,4452.327,-3434.716,234.1244,0,0,0,0,100,0), +(@PATH,18,4452.155,-3435.054,234.091,0,0,0,0,100,0), +(@PATH,19,4451.155,-3435.804,234.091,0,0,0,0,100,0), +(@PATH,20,4452.905,-3438.304,233.341,0,0,0,0,100,0), +(@PATH,21,4454.905,-3440.554,232.841,0,0,0,0,100,0), +(@PATH,22,4455.905,-3442.304,232.091,0,0,0,0,100,0), +(@PATH,23,4457.155,-3443.804,231.591,0,0,0,0,100,0), +(@PATH,24,4458.905,-3446.054,230.841,0,0,0,0,100,0), +(@PATH,25,4460.655,-3448.304,229.841,0,0,0,0,100,0), +(@PATH,26,4462.905,-3451.554,229.091,0,0,0,0,100,0); + +SET @NPC := 103186; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=4494.403,`position_y`=-3398.471,`position_z`=228.9183 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,4494.403,-3398.471,228.9183,0,0,0,0,100,0), +(@PATH,2,4497.653,-3396.221,229.6683,0,0,0,0,100,0), +(@PATH,3,4500.653,-3394.221,230.1683,0,0,0,0,100,0), +(@PATH,4,4509.161,-3388.243,230.0648,0,0,0,0,100,0), +(@PATH,5,4526.161,-3376.743,230.3148,0,0,0,0,100,0), +(@PATH,6,4529.797,-3374.429,230.5572,0,0,0,0,100,0), +(@PATH,7,4532.547,-3377.179,230.0572,0,0,0,0,100,0), +(@PATH,8,4531.893,-3376.673,230.1904,0,0,0,0,100,0), +(@PATH,9,4529.376,-3374.406,230.6659,0,0,0,0,100,0), +(@PATH,10,4525.376,-3377.156,230.1659,0,0,0,0,100,0), +(@PATH,11,4516.626,-3383.156,229.6659,0,0,0,0,100,0), +(@PATH,12,4508.783,-3388.445,229.8696,0,0,0,0,100,0), +(@PATH,13,4503.033,-3392.445,230.1196,0,0,0,0,100,0), +(@PATH,14,4497.533,-3396.195,229.6196,0,0,0,0,100,0), +(@PATH,15,4494.283,-3398.445,228.8696,0,0,0,0,100,0); + +SET @NPC := 102291; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=3636.139,`position_y`=-4596.764,`position_z`=191.9429 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,3636.139,-4596.764,191.9429,0,0,0,0,100,0), +(@PATH,2,3635.861,-4596.798,191.7083,0,0,0,0,100,0), +(@PATH,3,3635.853,-4596.449,191.8018,0,0,0,0,100,0), +(@PATH,4,3625.146,-4589.744,191.7298,0,0,0,0,100,0), +(@PATH,5,3624.396,-4588.744,191.7298,0,0,0,0,100,0), +(@PATH,6,3623.646,-4587.744,191.9798,0,0,0,0,100,0), +(@PATH,7,3623.146,-4586.994,192.7298,0,0,0,0,100,0), +(@PATH,8,3622.646,-4586.244,193.2298,0,0,0,0,100,0), +(@PATH,9,3619.531,-4582.521,193.1351,0,0,0,0,100,0), +(@PATH,10,3608.531,-4574.021,193.6351,0,0,0,0,100,0), +(@PATH,11,3607.281,-4573.271,192.6351,0,0,0,0,100,0), +(@PATH,12,3606.781,-4572.771,192.6351,0,0,0,0,100,0), +(@PATH,13,3606.531,-4572.521,192.3851,0,0,0,0,100,0), +(@PATH,14,3606.273,-4572.244,192.437,0,0,0,0,100,0), +(@PATH,15,3604.773,-4570.994,192.687,0,0,0,0,100,0), +(@PATH,16,3603.523,-4569.494,193.187,0,0,0,0,100,0), +(@PATH,17,3602.023,-4566.994,194.187,0,0,0,0,100,0), +(@PATH,18,3600.023,-4563.744,194.687,0,0,0,0,100,0), +(@PATH,19,3597.773,-4560.494,195.437,0,0,0,0,100,0), +(@PATH,20,3596.023,-4557.994,196.187,0,0,0,0,100,0), +(@PATH,21,3593.575,-4554.499,197.0962,0,0,0,0,100,0), +(@PATH,22,3591.325,-4550.999,197.8462,0,0,0,0,100,0), +(@PATH,23,3589.575,-4547.999,198.3462,0,0,0,0,100,0), +(@PATH,24,3587.575,-4544.499,199.0962,0,0,0,0,100,0), +(@PATH,25,3587.266,-4544.312,199.2521,0,0,0,0,100,0), +(@PATH,26,3586.766,-4543.312,199.2521,0,0,0,0,100,0), +(@PATH,27,3583.266,-4534.312,199.7521,0,0,0,0,100,0), +(@PATH,28,3581.901,-4530.598,199.9242,0,0,0,0,100,0), +(@PATH,29,3577.257,-4510.44,199.8448,0,0,0,0,100,0), +(@PATH,30,3576.757,-4505.69,199.3448,0,0,0,0,100,0), +(@PATH,31,3576.196,-4499.946,199.2152,0,0,0,0,100,0), +(@PATH,32,3580.946,-4493.946,199.7152,0,0,0,0,100,0), +(@PATH,33,3581.288,-4493.67,199.6084,0,0,0,0,100,0), +(@PATH,34,3581.538,-4493.42,199.6084,0,0,0,0,100,0), +(@PATH,35,3586.788,-4484.17,199.1084,0,0,0,0,100,0), +(@PATH,36,3588.606,-4481.567,199.091,0,0,0,0,100,0), +(@PATH,37,3594.356,-4476.567,198.341,0,0,0,0,100,0), +(@PATH,38,3596.606,-4474.567,197.841,0,0,0,0,100,0), +(@PATH,39,3596,-4475.001,198.0385,0,0,0,0,100,0), +(@PATH,40,3593,-4477.751,198.5385,0,0,0,0,100,0), +(@PATH,41,3588.387,-4481.783,199.0264,0,0,0,0,100,0), +(@PATH,42,3582.387,-4491.783,199.5264,0,0,0,0,100,0), +(@PATH,43,3582.222,-4492.081,199.736,0,0,0,0,100,0), +(@PATH,44,3581.222,-4493.581,199.486,0,0,0,0,100,0), +(@PATH,45,3576.117,-4500.31,199.3681,0,0,0,0,100,0), +(@PATH,46,3577.448,-4510.77,199.8773,0,0,0,0,100,0), +(@PATH,47,3582.276,-4530.902,199.8257,0,0,0,0,100,0), +(@PATH,48,3585.526,-4540.152,199.3257,0,0,0,0,100,0), +(@PATH,49,3587.005,-4543.549,199.229,0,0,0,0,100,0), +(@PATH,50,3589.755,-4548.549,198.229,0,0,0,0,100,0), +(@PATH,51,3592.005,-4551.799,197.729,0,0,0,0,100,0), +(@PATH,52,3593.605,-4554.598,197.1403,0,0,0,0,100,0), +(@PATH,53,3595.355,-4557.098,196.3903,0,0,0,0,100,0), +(@PATH,54,3596.855,-4559.598,195.6403,0,0,0,0,100,0), +(@PATH,55,3598.355,-4562.098,195.1403,0,0,0,0,100,0), +(@PATH,56,3600.355,-4565.348,194.6403,0,0,0,0,100,0), +(@PATH,57,3602.105,-4567.848,193.8903,0,0,0,0,100,0), +(@PATH,58,3603.605,-4570.348,193.1403,0,0,0,0,100,0), +(@PATH,59,3604.866,-4572.453,192.3813,0,0,0,0,100,0), +(@PATH,60,3606.116,-4573.453,192.3813,0,0,0,0,100,0), +(@PATH,61,3606.366,-4573.703,192.8813,0,0,0,0,100,0), +(@PATH,62,3607.866,-4574.703,193.6313,0,0,0,0,100,0), +(@PATH,63,3619.845,-4582.56,193.2473,0,0,0,0,100,0), +(@PATH,64,3622.345,-4585.81,192.9973,0,0,0,0,100,0), +(@PATH,65,3623.095,-4586.81,192.7473,0,0,0,0,100,0), +(@PATH,66,3623.845,-4587.56,191.9973,0,0,0,0,100,0), +(@PATH,67,3624.595,-4588.81,191.7473,0,0,0,0,100,0), +(@PATH,68,3624.654,-4589.03,191.5894,0,0,0,0,100,0), +(@PATH,69,3625.404,-4589.78,191.5894,0,0,0,0,100,0), +(@PATH,70,3636.153,-4596.696,191.9285,0,0,0,0,100,0); diff --git a/sql/updates/world/2015_05_16_00_world.sql b/sql/updates/world/2015_05_16_00_world.sql new file mode 100644 index 00000000000..4a77cdd90fe --- /dev/null +++ b/sql/updates/world/2015_05_16_00_world.sql @@ -0,0 +1,100 @@ +UPDATE `creature_text` SET `emote`=25 WHERE `entry`=21797 AND `groupid`=0 AND `id`=0; +UPDATE `creature_template` SET `InhabitType`=4, `flags_extra`=128 WHERE `entry`=21876; +UPDATE `creature_template` SET `flags_extra`=128 WHERE `entry`=21872; + +UPDATE `creature_template` SET `spell1`=37729, `spell2`=37727, `spell3`=39658, `spell4`=37728 WHERE `entry`=21867; + +DELETE FROM `creature_text` WHERE `entry`in(21877,21872,21867); +INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(21877, 0, 0, 'Your pathetic attempt to escape will be short lived, Gorefiend. Let the $g boy:girl, go and submit! Even with your armor and weapons, you cannot defeat the ancients!', 12, 0, 100, 1, 0, 0, 19504, 0, 'Karsius the Ancient Watcher to Player'), +(21877, 1, 0, 'What ... have you done...', 14, 0, 100, 0, 0, 0, 19506, 0, 'Karsius the Ancient Watcher to Player'), +(21867, 0, 0, 'We will meet again... Someday.', 12, 0, 100, 273, 0, 0, 19508, 0, 'Teron Gorefiend'), +(21867, 1, 0, 'Death incarnate has been released upon the world once more! Teron Gorefiend has returned...', 14, 0, 100, 22, 0, 0, 19509, 0, 'Teron Gorefiend'), +(21872, 0, 0, 'Waste no time, fool! Use our power to kill those that stand in our way! Destroy Karsius before you are subdued!', 15, 0, 100, 1, 0, 0, 19503, 0, 'The Voice of Gorefiend'); + +UPDATE `creature_template` SET `ainame`='SmartAI', `scriptname`='' WHERE `entry` IN(21797,21876,21877,21867); + +DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid` IN(21797,21876,21877,21867); +DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid` IN(2179700,2179701); + +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(21797, 0, 0, 1, 19, 0, 100, 0, 10645, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Quest \'Teron Gorefiend, I am...\' Taken - Store Targetlist'), +(21797, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 2179700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Quest \'Teron Gorefiend, I am...\' Taken - Run Script'), +(21797, 0, 2, 3, 19, 0, 100, 0, 10639, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Quest \'Teron Gorefiend, I am...\' Taken - Store Targetlist'), +(21797, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 2179700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Quest \'Teron Gorefiend, I am...\' Taken - Run Script'), +(21797, 0, 4, 0, 38, 0, 100, 0, 1, 1, 0, 0, 80, 2179701, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Data Set - Run Script 2'), +(21797, 0, 5, 0, 40, 0, 100, 0, 3, 21867, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Reached WP7 - Despawn'), +(21797, 0, 6, 7, 6, 0, 100, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 21877, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Death - Set Data 2 2 on Karsius the Ancient Watcher'), +(21797, 0, 7, 8, 61, 0, 100, 0, 0, 0, 0, 0, 28, 37782, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Just Died - Remove Aura Disembodied Spirit'), +(21797, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 28, 37748, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Just Died - Remove Aura Teron Gorefiend'), + +(21876, 0, 0, 1, 11, 0, 100, 1, 0, 0, 0, 0, 11, 37761, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chain of Shadows - On Respawn - Cast \'Ancient Draenei Warden\''), +(21876, 0, 1, 0, 61, 0, 100, 1, 0, 0, 0, 0, 17, 333, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chain of Shadows - On Respawn - Set Emote State 333'), +(21876, 0, 2, 0, 1, 0, 33, 0, 8000, 21000, 8000, 21000, 11, 37784, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chain of Shadows - OOC - Cast Enforced Submission'), +(21876, 0, 3, 0, 1, 0,100, 1, 0, 0, 0, 0, 11, 37784, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chain of Shadows - OOC - Cast Enforced Submission (No Repeat)'), +(21877, 0, 1, 0, 11, 0, 100, 1, 0, 0, 0, 0, 17, 333, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Respawn - Set Emote State 333'), +(21877, 0, 2, 0, 1, 0, 100, 0, 3000, 3000, 3000, 3000, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - OOC - Set Unit Flags'), +(21877, 0, 3, 4, 6, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 9, 21876, 0, 200, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Death - Despawn Chain of Shadows'), +(21877, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 21867, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Death - Set Data'), +(21877, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Death - Despawn'), +(21877, 0, 6, 0, 1, 0, 100, 0, 3000, 3000, 3000, 3000, 19, 768, 0, 0, 0, 0, 0, 19, 21867, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - OOC - Set Unit Flags'), +(21877, 0, 7, 8, 7, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 9, 21876, 0, 200, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Evade Despawn'), +(21877, 0, 8, 9, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 21797, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - Despawn Ancient Shadowmoon Spirit'), +(21877, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 21867, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - Despawn Ancient Shadowmoon Spirit'), +(21877, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - Despawn Ancient Shadowmoon Spirit'), +(21877, 0, 11, 12, 6, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - Just Died - Say Line 1'), +(21877, 0, 12, 13, 61, 0, 100, 0, 0, 0, 0, 0, 28, 37782, 0, 0, 0, 0, 0, 21, 100, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - Just Died - Remove Aura Disembodied Spirit'), +(21877, 0, 13, 0, 61, 0, 100, 0, 0, 0, 0, 0, 28, 37748, 0, 0, 0, 0, 0, 21, 100, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - Just Died - Remove Aura Teron Gorefiend'), +(21877, 0, 14, 0, 38, 0, 100, 0, 2, 2, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Data Set 2 2 - Evade'), +(2179701, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script 2 - Evade'), +(2179701, 9, 1, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 43, 0, 10720, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script 2 - Mount'), +(2179701, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script 2 - Say Line 0'), -- 13:51:07.500 +(2179701, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script 2 - Say Line 1'), -- 13:51:10.750 +(2179701, 9, 4, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 53, 1, 21867, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script 2 - Start WP'), +(2179700, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script - Say Line 0'), -- 13:49:05.750 +(2179700, 9, 1, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 36, 21867, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script - Change Entry'), -- 13:49:09.266 +(2179700, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 18, 256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script - Set Unit Flags'), -- 13:49:09.266 +(2179700, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script - Add Aura Disembodied Spirit'), -- 13:49:09.266 +(2179700, 9, 4, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 75, 37782, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script - Invoker Cast - Teron Gorefiend'), -- 13:49:10.235 +(2179700, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 85, 37769, 2, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script - Invoker Cast - Teron Gorefiend'), -- 13:49:10.235 +(2179700, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 37728, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script - Cast - Haste'), -- 13:49:10.235 +(2179700, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 21876, 1, 300000, 0, 0, 0, 8, 0, 0, 0, -4524.726, 1009.763, 21.32487, 2.024582, 'Ancient Shadowmoon Spirit - On Script - Summon Creature \'Chain of Shadows\''), -- 13:49:12.782 +(2179700, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 21876, 1, 300000, 0, 0, 0, 8, 0, 0, 0, -4515.913, 1020.078, 23.67377, 2.722714, 'Ancient Shadowmoon Spirit - On Script - Summon Creature \'Chain of Shadows\''), -- 13:49:12.782 +(2179700, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 21876, 1, 300000, 0, 0, 0, 8, 0, 0, 0, -4515.165, 1033.106, 20.71271, 3.176499, 'Ancient Shadowmoon Spirit - On Script - Summon Creature \'Chain of Shadows\''), -- 13:49:12.782 +(2179700, 9, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 21876, 1, 300000, 0, 0, 0, 8, 0, 0, 0, -4525, 1045.415, 19.89447, 4.153883, 'Ancient Shadowmoon Spirit - On Script - Summon Creature \'Chain of Shadows\''), -- 13:49:12.782 +(2179700, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 21876, 1, 300000, 0, 0, 0, 8, 0, 0, 0, -4537.54, 1049.356, 18.74087, 4.415683, 'Ancient Shadowmoon Spirit - On Script - Summon Creature \'Chain of Shadows\''), -- 13:49:12.782 +(2179700, 9, 12, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 21876, 1, 300000, 0, 0, 0, 8, 0, 0, 0, -4551.174, 1044.113, 16.52099, 5.218534, 'Ancient Shadowmoon Spirit - On Script - Summon Creature \'Chain of Shadows\''), -- 13:49:12.782 +(2179700, 9, 13, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 21876, 1, 300000, 0, 0, 0, 8, 0, 0, 0, -4523.753, 1062.352, 24.30409, 4.433136, 'Ancient Shadowmoon Spirit - On Script - Summon Creature \'Chain of Shadows\''), -- 13:49:12.782 +(2179700, 9, 14, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 21876, 1, 300000, 0, 0, 0, 8, 0, 0, 0, -4509.667, 1047.063, 26.45817, 3.787364, 'Ancient Shadowmoon Spirit - On Script - Summon Creature \'Chain of Shadows\''), -- 13:49:12.782 +(2179700, 9, 15, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 21876, 1, 300000, 0, 0, 0, 8, 0, 0, 0, -4504.674, 1020.563, 33.07281, 2.932153, 'Ancient Shadowmoon Spirit - On Script - Summon Creature \'Chain of Shadows\''), -- 13:49:12.782 +(2179700, 9, 16, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 12, 21877, 1, 300000, 0, 0, 0, 8, 0, 0, 0, -4535.794, 1029.284, 8.836361, 3.787364, 'Ancient Shadowmoon Spirit - On Script - Summon Creature \'Karsius the Ancient Watcher\''), -- 13:49:12.782 +(2179700, 9, 17, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 21877, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script - Say Line 0 on \'Karsius the Ancient Watcher\''), -- 13:49:12.782 +(2179700, 9, 18, 0, 0, 0, 100, 0, 9000, 9000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 21872, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Script - Say Line 0 on The Voice of Gorefiend'); -- 13:49:21.016 + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`IN(37748,37784); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(13, 1, 37748, 0, 0, 31, 0, 3, 21867, 0, 0, 0, 0, '', 'Teron Gorefiend (effects 1 & 2) target teron gorefiend'), +(13, 6, 37748, 0, 0, 31, 0, 4, 0, 0, 0, 0, 0, '', 'Teron Gorefiend (effect 2 & 3) targets player'), +(13, 1, 37784, 0, 0, 31, 0, 3, 21867, 0, 0, 0, 0, '', 'Enforced Submission Targets Teron Gorefiend'), +(13, 1, 37784, 0, 1, 31, 0, 3, 21797, 0, 0, 0, 0, '', 'Enforced Submission Targets Ancient Shadowmoon Spirit'); + +DELETE FROM `spell_linked_spell` WHERE `spell_trigger`=37748; +UPDATE `quest_template` SET `SourceSpellId`=0 WHERE `Id`in(10645,10639); + +DELETE FROM `creature_template_addon` WHERE `entry` IN (21876,21877,21797,21867); +INSERT INTO `creature_template_addon` (`entry`, `mount`, `bytes1`, `bytes2`, `auras`) VALUES +(21876, 0, 0x0, 0x1, '37761'), -- 21876 - 37761 +(21877, 0, 0x0, 0x1, '37497'), -- 21877 +(21797, 0, 0x0, 0x1, '37509'), -- 21797 - 37509 +(21867, 0, 0x0, 0x1, '37509'); -- 21867 - 37509 10720 + +UPDATE `creature_template` SET `unit_flags`=768 WHERE `entry`=21876; +UPDATE `creature_template` SET `faction`=1821, `unit_flags`=33536 WHERE `entry`=21877; +UPDATE `creature_template` SET `faction`=35, `unit_flags`=768 WHERE `entry`=21867; + +DELETE FROM `waypoints` WHERE `entry`=21867; +INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES +(21867, 1, -4519.978, 1004.27, 12.49499, 'Teron Gorefiend'), +(21867, 2, -4520.013, 995.0764, 11.57806, 'Teron Gorefiend'), +(21867, 3, -4518.75, 968.75, 12.04559, 'Teron Gorefiend'), +(21867, 4, -4512.086, 938.8976, 2.529049, 'Teron Gorefiend'); diff --git a/sql/updates/world/2015_05_17_00_world.sql b/sql/updates/world/2015_05_17_00_world.sql new file mode 100644 index 00000000000..67a5c7635ae --- /dev/null +++ b/sql/updates/world/2015_05_17_00_world.sql @@ -0,0 +1,3 @@ +-- +DELETE FROM `skill_fishing_base_level` WHERE `entry`=4722; +INSERT INTO `skill_fishing_base_level` (`entry`, `skill`) VALUES (4722,430); diff --git a/sql/updates/world/2015_05_17_01_world.sql b/sql/updates/world/2015_05_17_01_world.sql new file mode 100644 index 00000000000..88e0e0e4f0a --- /dev/null +++ b/sql/updates/world/2015_05_17_01_world.sql @@ -0,0 +1,10 @@ +-- +UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`="" WHERE `entry` IN (19991); +DELETE FROM `smart_scripts` WHERE `entryorguid` IN (19991) AND `source_type`=0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(19991, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Bloodmaul Brute - On Death - Say text 1'), +(19991, 0, 1, 0, 0, 0, 100, 0, 2000, 5000, 4000, 5000, 11, 15496, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Bloodmaul Brute - IC - cast Cleave'), +(19991, 0, 2, 0, 0, 0, 100, 0, 5000, 10000, 8000, 12000, 11, 37577, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,0,'Bloodmaul Brute - IC - debilitating-strike'), +(19991, 0, 3, 0, 0, 0, 100, 1, 15000, 20000, 10000, 15000, 11, 34932, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Bloodmaul Brute - IC - Bloodmaul Buzz'), +(19991, 0, 4, 5, 2, 0, 100, 1, 0, 20, 1, 1, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Bloodmaul Brute - Heath pct - cast Enrage'), +(19991, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,0,'Bloodmaul Brute - Heath pct - say text 3'); diff --git a/sql/updates/world/2015_05_19_00_world_2015_04_05_07.sql b/sql/updates/world/2015_05_19_00_world_2015_04_05_07.sql new file mode 100644 index 00000000000..2e603ee893b --- /dev/null +++ b/sql/updates/world/2015_05_19_00_world_2015_04_05_07.sql @@ -0,0 +1,7 @@ +DROP TABLE IF EXISTS `gameobject_addon`; +CREATE TABLE `gameobject_addon` ( + `guid` bigint(20) unsigned NOT NULL DEFAULT '0', + `invisibilityType` tinyint(3) unsigned NOT NULL DEFAULT '0', + `invisibilityValue` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index a5698092d69..267c038faaf 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -1321,7 +1321,31 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u } case SMART_ACTION_SET_COUNTER: { - StoreCounter(e.action.setCounter.counterId, e.action.setCounter.value, e.action.setCounter.reset); + if (ObjectList* targets = GetTargets(e, unit)) + { + for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr) + { + if (IsCreature(*itr)) + { + if (SmartAI* ai = CAST_AI(SmartAI, (*itr)->ToCreature()->AI())) + ai->GetScript()->StoreCounter(e.action.setCounter.counterId, e.action.setCounter.value, e.action.setCounter.reset); + else + TC_LOG_ERROR("sql.sql", "SmartScript: Action target for SMART_ACTION_SET_COUNTER is not using SmartAI, skipping"); + } + else if (IsGameObject(*itr)) + { + if (SmartGameObjectAI* ai = CAST_AI(SmartGameObjectAI, (*itr)->ToGameObject()->AI())) + ai->GetScript()->StoreCounter(e.action.setCounter.counterId, e.action.setCounter.value, e.action.setCounter.reset); + else + TC_LOG_ERROR("sql.sql", "SmartScript: Action target for SMART_ACTION_SET_COUNTER is not using SmartGameObjectAI, skipping"); + } + } + + delete targets; + } + else + StoreCounter(e.action.setCounter.counterId, e.action.setCounter.value, e.action.setCounter.reset); + break; } case SMART_ACTION_WP_START: diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index 8400e4cee00..25fbef2ca86 100644 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -100,7 +100,8 @@ ConditionMgr::ConditionTypeInfo const ConditionMgr::StaticConditionTypeData[COND { "Alive", false, false, false }, { "Health Value", true, true, false }, { "Health Pct", true, true, false }, - { "Realm Achievement", true, false, false } + { "Realm Achievement", true, false, false }, + { "In Water", false, false, false } }; // Checks if object meets the condition @@ -424,6 +425,12 @@ bool Condition::Meets(ConditionSourceInfo& sourceInfo) condMeets = true; break; } + case CONDITION_IN_WATER: + { + if (Unit* unit = object->ToUnit()) + condMeets = unit->IsInWater(); + break; + } default: condMeets = false; break; @@ -591,6 +598,9 @@ uint32 Condition::GetSearcherTypeMaskForCondition() case CONDITION_REALM_ACHIEVEMENT: mask |= GRID_MAP_TYPE_MASK_ALL; break; + case CONDITION_IN_WATER: + mask |= GRID_MAP_TYPE_MASK_CREATURE | GRID_MAP_TYPE_MASK_PLAYER; + break; default: ASSERT(false && "Condition::GetSearcherTypeMaskForCondition - missing condition handling!"); break; @@ -2077,6 +2087,8 @@ bool ConditionMgr::isConditionTypeValid(Condition* cond) } break; } + case CONDITION_IN_WATER: + break; default: break; } diff --git a/src/server/game/Conditions/ConditionMgr.h b/src/server/game/Conditions/ConditionMgr.h index 1fdd011633e..27983782bdc 100644 --- a/src/server/game/Conditions/ConditionMgr.h +++ b/src/server/game/Conditions/ConditionMgr.h @@ -73,7 +73,8 @@ enum ConditionTypes CONDITION_HP_VAL = 37, // hpVal ComparisonType 0 true if unit's hp matches given value CONDITION_HP_PCT = 38, // hpPct ComparisonType 0 true if unit's hp matches given pct CONDITION_REALM_ACHIEVEMENT = 39, // achievement_id 0 0 true if realm achievement is complete - CONDITION_MAX = 40 // MAX + CONDITION_IN_WATER = 40, // 0 0 0 true if unit in water + CONDITION_MAX = 41 // MAX }; /*! Documentation on implementing a new ConditionSourceType: diff --git a/src/server/game/DataStores/DBCStores.cpp b/src/server/game/DataStores/DBCStores.cpp index 6586c5035ec..5cd9b363ae0 100644 --- a/src/server/game/DataStores/DBCStores.cpp +++ b/src/server/game/DataStores/DBCStores.cpp @@ -560,8 +560,8 @@ void LoadDBCStores(const std::string& dataPath) for (uint32 i = 1; i < sTaxiPathNodeStore.GetNumRows(); ++i) if (TaxiPathNodeEntry const* entry = sTaxiPathNodeStore.LookupEntry(i)) { - if (pathLength[entry->path] < entry->index + 1) - pathLength[entry->path] = entry->index + 1; + if (pathLength[entry->PathID] < entry->NodeIndex + 1) + pathLength[entry->PathID] = entry->NodeIndex + 1; } // Set path length sTaxiPathNodesByPath.resize(pathCount); // 0 and some other indexes not used @@ -570,7 +570,7 @@ void LoadDBCStores(const std::string& dataPath) // fill data for (uint32 i = 1; i < sTaxiPathNodeStore.GetNumRows(); ++i) if (TaxiPathNodeEntry const* entry = sTaxiPathNodeStore.LookupEntry(i)) - sTaxiPathNodesByPath[entry->path].set(entry->index, entry); + sTaxiPathNodesByPath[entry->PathID].set(entry->NodeIndex, entry); // Initialize global taxinodes mask // include existed nodes that have at least single not spell base (scripted) path diff --git a/src/server/game/DataStores/DBCStructure.h b/src/server/game/DataStores/DBCStructure.h index 5c784f3fe69..af1efe73dd1 100644 --- a/src/server/game/DataStores/DBCStructure.h +++ b/src/server/game/DataStores/DBCStructure.h @@ -1939,17 +1939,17 @@ struct TaxiPathEntry struct TaxiPathNodeEntry { - // 0 m_ID - uint32 path; // 1 m_PathID - uint32 index; // 2 m_NodeIndex - uint32 mapid; // 3 m_ContinentID - float x; // 4 m_LocX - float y; // 5 m_LocY - float z; // 6 m_LocZ - uint32 actionFlag; // 7 m_flags - uint32 delay; // 8 m_delay - uint32 arrivalEventID; // 9 m_arrivalEventID - uint32 departureEventID; // 10 m_departureEventID + // 0 ID + uint32 PathID; // 1 + uint32 NodeIndex; // 2 + uint32 MapID; // 3 + float LocX; // 4 + float LocY; // 5 + float LocZ; // 6 + uint32 Flags; // 7 + uint32 Delay; // 8 + uint32 ArrivalEventID; // 9 + uint32 DepartureEventID; // 10 }; struct TeamContributionPointsEntry diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index 024002ab88f..f07e4e7113f 100644 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -1266,14 +1266,6 @@ void LFGMgr::TeleportPlayer(Player* player, bool out, bool fromOpcode /*= false* if (player->GetMapId() == uint32(dungeon->map)) player->TeleportToBGEntryPoint(); - // in the case were we are the last in lfggroup then we must disband when porting out of the instance - if (group && group->GetMembersCount() == 1) - { - group->Disband(); - TC_LOG_DEBUG("lfg.teleport", "Player %s is last in lfggroup so we disband the group.", - player->GetName().c_str()); - } - return; } diff --git a/src/server/game/DungeonFinding/LFGScripts.cpp b/src/server/game/DungeonFinding/LFGScripts.cpp index ae64e59936f..852eb7d8c5f 100644 --- a/src/server/game/DungeonFinding/LFGScripts.cpp +++ b/src/server/game/DungeonFinding/LFGScripts.cpp @@ -99,7 +99,17 @@ void LFGPlayerScript::OnMapChanged(Player* player) player->CastSpell(player, LFG_SPELL_LUCK_OF_THE_DRAW, true); } else + { + Group* group = player->GetGroup(); + if (group && group->GetMembersCount() == 1) + { + sLFGMgr->LeaveLfg(group->GetGUID()); + group->Disband(); + TC_LOG_DEBUG("lfg", "LFGPlayerScript::OnMapChanged, Player %s(%s) is last in the lfggroup so we disband the group.", + player->GetName().c_str(), player->GetGUID().ToString().c_str()); + } player->RemoveAurasDueToSpell(LFG_SPELL_LUCK_OF_THE_DRAW); + } } LFGGroupScript::LFGGroupScript() : GroupScript("LFGGroupScript") { } diff --git a/src/server/game/Entities/Corpse/Corpse.cpp b/src/server/game/Entities/Corpse/Corpse.cpp index bf69b4e7443..192a897238a 100644 --- a/src/server/game/Entities/Corpse/Corpse.cpp +++ b/src/server/game/Entities/Corpse/Corpse.cpp @@ -169,6 +169,7 @@ bool Corpse::LoadCorpseFromDB(uint32 guid, Field* fields) Object::_Create(guid, 0, HIGHGUID_CORPSE); + SetObjectScale(1.0f); SetUInt32Value(CORPSE_FIELD_DISPLAY_ID, fields[5].GetUInt32()); _LoadIntoDataField(fields[6].GetCString(), CORPSE_FIELD_ITEM, EQUIPMENT_SLOT_END); SetUInt32Value(CORPSE_FIELD_BYTES_1, fields[7].GetUInt32()); diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index 4c949f54a3c..7f00fc7f9d8 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -1477,6 +1477,8 @@ void Creature::setDeathState(DeathState s) SetTarget(ObjectGuid::Empty); // remove target selection in any cases (can be set at aura remove in Unit::setDeathState) SetUInt32Value(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_NONE); + SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID, 0); // if creature is mounted on a virtual mount, remove it at death + setActive(false); if (HasSearchedAssistance()) diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index a73cbfa3e5c..a4b140b9878 100644 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -190,6 +190,12 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map* map, uint32 phaseMa return false; } + if (goinfo->type == GAMEOBJECT_TYPE_MO_TRANSPORT) + { + TC_LOG_ERROR("sql.sql", "Gameobject (GUID: %u Entry: %u) not created: gameobject type GAMEOBJECT_TYPE_MO_TRANSPORT cannot be manually created.", guidlow, name_id); + return false; + } + if (goinfo->type == GAMEOBJECT_TYPE_TRANSPORT) m_updateFlag = (m_updateFlag | UPDATEFLAG_TRANSPORT) & ~UPDATEFLAG_POSITION; @@ -265,6 +271,16 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map* map, uint32 phaseMa SetGoAnimProgress(animprogress); break; } + + if (GameObjectAddon const* addon = sObjectMgr->GetGameObjectAddon(guidlow)) + { + if (addon->InvisibilityValue) + { + m_invisibility.AddFlag(addon->invisibilityType); + m_invisibility.AddValue(addon->invisibilityType, addon->InvisibilityValue); + } + } + LastUsedScriptID = GetGOInfo()->ScriptId; AIM_Initialize(); @@ -2068,6 +2084,15 @@ void GameObject::SetGoState(GOState state) } } +uint32 GameObject::GetTransportPeriod() const +{ + ASSERT(GetGOInfo()->type == GAMEOBJECT_TYPE_TRANSPORT); + if (m_goValue.Transport.AnimationInfo) + return m_goValue.Transport.AnimationInfo->TotalTime; + + return 0; +} + void GameObject::SetDisplayId(uint32 displayid) { SetUInt32Value(GAMEOBJECT_DISPLAYID, displayid); @@ -2206,9 +2231,16 @@ void GameObject::BuildValuesUpdate(uint8 updateType, ByteBuffer* data, Player* t if (ActivateToQuest(target)) dynFlags |= GO_DYNFLAG_LO_SPARKLE; break; + case GAMEOBJECT_TYPE_TRANSPORT: case GAMEOBJECT_TYPE_MO_TRANSPORT: - pathProgress = int16(float(m_goValue.Transport.PathProgress) / float(GetUInt32Value(GAMEOBJECT_LEVEL)) * 65535.0f); + { + if (uint32 transportPeriod = GetTransportPeriod()) + { + float timer = float(m_goValue.Transport.PathProgress % transportPeriod); + pathProgress = int16(timer / float(transportPeriod) * 65535.0f); + } break; + } default: break; } diff --git a/src/server/game/Entities/GameObject/GameObject.h b/src/server/game/Entities/GameObject/GameObject.h index 844674b2210..5f1d2c793e6 100644 --- a/src/server/game/Entities/GameObject/GameObject.h +++ b/src/server/game/Entities/GameObject/GameObject.h @@ -576,6 +576,15 @@ struct GameObjectLocale StringVector CastBarCaption; }; +// `gameobject_addon` table +struct GameObjectAddon +{ + InvisibilityType invisibilityType; + uint32 InvisibilityValue; +}; + +typedef std::unordered_map<ObjectGuid::LowType, GameObjectAddon> GameObjectAddonContainer; + // client side GO show states enum GOState { @@ -717,6 +726,7 @@ class GameObject : public WorldObject, public GridObject<GameObject>, public Map void SetGoType(GameobjectTypes type) { SetByteValue(GAMEOBJECT_BYTES_1, 1, type); } GOState GetGoState() const { return GOState(GetByteValue(GAMEOBJECT_BYTES_1, 0)); } void SetGoState(GOState state); + virtual uint32 GetTransportPeriod() const; uint8 GetGoArtKit() const { return GetByteValue(GAMEOBJECT_BYTES_1, 2); } void SetGoArtKit(uint8 artkit); uint8 GetGoAnimProgress() const { return GetByteValue(GAMEOBJECT_BYTES_1, 3); } diff --git a/src/server/game/Entities/Object/ObjectGuid.h b/src/server/game/Entities/Object/ObjectGuid.h index 36dbdd72069..45881ddab6d 100644 --- a/src/server/game/Entities/Object/ObjectGuid.h +++ b/src/server/game/Entities/Object/ObjectGuid.h @@ -83,10 +83,12 @@ class ObjectGuid public: static ObjectGuid const Empty; + typedef uint32 LowType; + ObjectGuid() : _guid(0) { } explicit ObjectGuid(uint64 guid) : _guid(guid) { } - ObjectGuid(HighGuid hi, uint32 entry, uint32 counter) : _guid(counter ? uint64(counter) | (uint64(entry) << 24) | (uint64(hi) << 48) : 0) { } - ObjectGuid(HighGuid hi, uint32 counter) : _guid(counter ? uint64(counter) | (uint64(hi) << 48) : 0) { } + ObjectGuid(HighGuid hi, uint32 entry, LowType counter) : _guid(counter ? uint64(counter) | (uint64(entry) << 24) | (uint64(hi) << 48) : 0) { } + ObjectGuid(HighGuid hi, LowType counter) : _guid(counter ? uint64(counter) | (uint64(hi) << 48) : 0) { } operator uint64() const { return _guid; } PackedGuidReader ReadAsPacked() { return PackedGuidReader(*this); } @@ -99,11 +101,11 @@ class ObjectGuid uint64 GetRawValue() const { return _guid; } HighGuid GetHigh() const { return HighGuid((_guid >> 48) & 0x0000FFFF); } uint32 GetEntry() const { return HasEntry() ? uint32((_guid >> 24) & UI64LIT(0x0000000000FFFFFF)) : 0; } - uint32 GetCounter() const + LowType GetCounter() const { return HasEntry() - ? uint32(_guid & UI64LIT(0x0000000000FFFFFF)) - : uint32(_guid & UI64LIT(0x00000000FFFFFFFF)); + ? LowType(_guid & UI64LIT(0x0000000000FFFFFF)) + : LowType(_guid & UI64LIT(0x00000000FFFFFFFF)); } static uint32 GetMaxCounter(HighGuid high) diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index dc82513bdb6..030c2a25110 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -21285,9 +21285,9 @@ void Player::ContinueTaxiFlight() float distPrev = MAP_SIZE*MAP_SIZE; float distNext = - (nodeList[0].x-GetPositionX())*(nodeList[0].x-GetPositionX())+ - (nodeList[0].y-GetPositionY())*(nodeList[0].y-GetPositionY())+ - (nodeList[0].z-GetPositionZ())*(nodeList[0].z-GetPositionZ()); + (nodeList[0].LocX-GetPositionX())*(nodeList[0].LocX-GetPositionX())+ + (nodeList[0].LocY-GetPositionY())*(nodeList[0].LocY-GetPositionY())+ + (nodeList[0].LocZ-GetPositionZ())*(nodeList[0].LocZ-GetPositionZ()); for (uint32 i = 1; i < nodeList.size(); ++i) { @@ -21295,20 +21295,20 @@ void Player::ContinueTaxiFlight() TaxiPathNodeEntry const& prevNode = nodeList[i-1]; // skip nodes at another map - if (node.mapid != GetMapId()) + if (node.MapID != GetMapId()) continue; distPrev = distNext; distNext = - (node.x-GetPositionX())*(node.x-GetPositionX())+ - (node.y-GetPositionY())*(node.y-GetPositionY())+ - (node.z-GetPositionZ())*(node.z-GetPositionZ()); + (node.LocX-GetPositionX())*(node.LocX-GetPositionX())+ + (node.LocY-GetPositionY())*(node.LocY-GetPositionY())+ + (node.LocZ-GetPositionZ())*(node.LocZ-GetPositionZ()); float distNodes = - (node.x-prevNode.x)*(node.x-prevNode.x)+ - (node.y-prevNode.y)*(node.y-prevNode.y)+ - (node.z-prevNode.z)*(node.z-prevNode.z); + (node.LocX-prevNode.LocX)*(node.LocX-prevNode.LocX)+ + (node.LocY-prevNode.LocY)*(node.LocY-prevNode.LocY)+ + (node.LocZ-prevNode.LocZ)*(node.LocZ-prevNode.LocZ); if (distNext + distPrev < distNodes) { diff --git a/src/server/game/Entities/Transport/Transport.cpp b/src/server/game/Entities/Transport/Transport.cpp index 7b219e4dc15..85dccddf186 100644 --- a/src/server/game/Entities/Transport/Transport.cpp +++ b/src/server/game/Entities/Transport/Transport.cpp @@ -32,7 +32,7 @@ Transport::Transport() : GameObject(), _transportInfo(NULL), _isMoving(true), _pendingStop(false), _triggeredArrivalEvent(false), _triggeredDepartureEvent(false), - _passengerTeleportItr(_passengers.begin()), _delayedAddModel(false) + _passengerTeleportItr(_passengers.begin()), _delayedAddModel(false), _delayedTeleport(false) { m_updateFlag = UPDATEFLAG_TRANSPORT | UPDATEFLAG_LOWGUID | UPDATEFLAG_STATIONARY_POSITION | UPDATEFLAG_ROTATION; } @@ -125,7 +125,7 @@ void Transport::Update(uint32 diff) if (IsMoving() || !_pendingStop) m_goValue.Transport.PathProgress += diff; - uint32 timer = m_goValue.Transport.PathProgress % GetPeriod(); + uint32 timer = m_goValue.Transport.PathProgress % GetTransportPeriod(); // Set current waypoint // Desired outcome: _currentFrame->DepartureTime < timer < _nextFrame->ArriveTime @@ -147,8 +147,8 @@ void Transport::Update(uint32 diff) if (_pendingStop && GetGoState() != GO_STATE_READY) { SetGoState(GO_STATE_READY); - m_goValue.Transport.PathProgress = (m_goValue.Transport.PathProgress / GetPeriod()); - m_goValue.Transport.PathProgress *= GetPeriod(); + m_goValue.Transport.PathProgress = (m_goValue.Transport.PathProgress / GetTransportPeriod()); + m_goValue.Transport.PathProgress *= GetTransportPeriod(); m_goValue.Transport.PathProgress += _currentFrame->ArriveTime; } break; // its a stop frame and we are waiting @@ -173,13 +173,13 @@ void Transport::Update(uint32 diff) MoveToNextWaypoint(); - sScriptMgr->OnRelocate(this, _currentFrame->Node->index, _currentFrame->Node->mapid, _currentFrame->Node->x, _currentFrame->Node->y, _currentFrame->Node->z); + sScriptMgr->OnRelocate(this, _currentFrame->Node->NodeIndex, _currentFrame->Node->MapID, _currentFrame->Node->LocX, _currentFrame->Node->LocY, _currentFrame->Node->LocZ); - TC_LOG_DEBUG("entities.transport", "Transport %u (%s) moved to node %u %u %f %f %f", GetEntry(), GetName().c_str(), _currentFrame->Node->index, _currentFrame->Node->mapid, _currentFrame->Node->x, _currentFrame->Node->y, _currentFrame->Node->z); + TC_LOG_DEBUG("entities.transport", "Transport %u (%s) moved to node %u %u %f %f %f", GetEntry(), GetName().c_str(), _currentFrame->Node->NodeIndex, _currentFrame->Node->MapID, _currentFrame->Node->LocX, _currentFrame->Node->LocY, _currentFrame->Node->LocZ); // Departure event if (_currentFrame->IsTeleportFrame()) - if (TeleportTransport(_nextFrame->Node->mapid, _nextFrame->Node->x, _nextFrame->Node->y, _nextFrame->Node->z, _nextFrame->InitialOrientation)) + if (TeleportTransport(_nextFrame->Node->MapID, _nextFrame->Node->LocX, _nextFrame->Node->LocY, _nextFrame->Node->LocZ, _nextFrame->InitialOrientation)) return; // Update more in new map thread } @@ -226,6 +226,14 @@ void Transport::Update(uint32 diff) sScriptMgr->OnTransportUpdate(this, diff); } +void Transport::DelayedUpdate(uint32 diff) +{ + if (GetKeyFrames().size() <= 1) + return; + + DelayedTeleportTransport(); +} + void Transport::AddPassenger(WorldObject* passenger) { if (!IsInWorld()) @@ -591,36 +599,8 @@ bool Transport::TeleportTransport(uint32 newMapid, float x, float y, float z, fl if (oldMap->GetId() != newMapid) { - Map* newMap = sMapMgr->CreateBaseMap(newMapid); + _delayedTeleport = true; UnloadStaticPassengers(); - GetMap()->RemoveFromMap<Transport>(this, false); - SetMap(newMap); - - for (_passengerTeleportItr = _passengers.begin(); _passengerTeleportItr != _passengers.end();) - { - WorldObject* obj = (*_passengerTeleportItr++); - - float destX, destY, destZ, destO; - obj->m_movementInfo.transport.pos.GetPosition(destX, destY, destZ, destO); - TransportBase::CalculatePassengerPosition(destX, destY, destZ, &destO, x, y, z, o); - - switch (obj->GetTypeId()) - { - case TYPEID_PLAYER: - if (!obj->ToPlayer()->TeleportTo(newMapid, destX, destY, destZ, destO, TELE_TO_NOT_LEAVE_TRANSPORT)) - RemovePassenger(obj); - break; - case TYPEID_DYNAMICOBJECT: - obj->AddObjectToRemoveList(); - break; - default: - RemovePassenger(obj); - break; - } - } - - Relocate(x, y, z, o); - GetMap()->AddToMap<Transport>(this); return true; } else @@ -643,6 +623,48 @@ bool Transport::TeleportTransport(uint32 newMapid, float x, float y, float z, fl } } +void Transport::DelayedTeleportTransport() +{ + if (!_delayedTeleport) + return; + + _delayedTeleport = false; + Map* newMap = sMapMgr->CreateBaseMap(_nextFrame->Node->MapID); + GetMap()->RemoveFromMap<Transport>(this, false); + SetMap(newMap); + + float x = _nextFrame->Node->LocX, + y = _nextFrame->Node->LocY, + z = _nextFrame->Node->LocZ, + o =_nextFrame->InitialOrientation; + + for (_passengerTeleportItr = _passengers.begin(); _passengerTeleportItr != _passengers.end();) + { + WorldObject* obj = (*_passengerTeleportItr++); + + float destX, destY, destZ, destO; + obj->m_movementInfo.transport.pos.GetPosition(destX, destY, destZ, destO); + TransportBase::CalculatePassengerPosition(destX, destY, destZ, &destO, x, y, z, o); + + switch (obj->GetTypeId()) + { + case TYPEID_PLAYER: + if (!obj->ToPlayer()->TeleportTo(_nextFrame->Node->MapID, destX, destY, destZ, destO, TELE_TO_NOT_LEAVE_TRANSPORT)) + RemovePassenger(obj); + break; + case TYPEID_DYNAMICOBJECT: + obj->AddObjectToRemoveList(); + break; + default: + RemovePassenger(obj); + break; + } + } + + Relocate(x, y, z, o); + GetMap()->AddToMap<Transport>(this); +} + void Transport::UpdatePassengerPositions(PassengerSet& passengers) { for (PassengerSet::iterator itr = passengers.begin(); itr != passengers.end(); ++itr) @@ -697,9 +719,9 @@ void Transport::UpdatePassengerPositions(PassengerSet& passengers) void Transport::DoEventIfAny(KeyFrame const& node, bool departure) { - if (uint32 eventid = departure ? node.Node->departureEventID : node.Node->arrivalEventID) + if (uint32 eventid = departure ? node.Node->DepartureEventID : node.Node->ArrivalEventID) { - TC_LOG_DEBUG("maps.script", "Taxi %s event %u of node %u of %s path", departure ? "departure" : "arrival", eventid, node.Node->index, GetName().c_str()); + TC_LOG_DEBUG("maps.script", "Taxi %s event %u of node %u of %s path", departure ? "departure" : "arrival", eventid, node.Node->NodeIndex, GetName().c_str()); GetMap()->ScriptsStart(sEventScripts, eventid, this, this); EventInform(eventid); } diff --git a/src/server/game/Entities/Transport/Transport.h b/src/server/game/Entities/Transport/Transport.h index 4e3d7c3c50e..c56ceb1696d 100644 --- a/src/server/game/Entities/Transport/Transport.h +++ b/src/server/game/Entities/Transport/Transport.h @@ -39,6 +39,7 @@ class Transport : public GameObject, public TransportBase void CleanupsBeforeDelete(bool finalCleanup = true) override; void Update(uint32 diff) override; + void DelayedUpdate(uint32 diff); void BuildUpdate(UpdateDataMapType& data_map) override; @@ -79,7 +80,7 @@ class Transport : public GameObject, public TransportBase TransportBase::CalculatePassengerOffset(x, y, z, o, GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation()); } - uint32 GetPeriod() const { return GetUInt32Value(GAMEOBJECT_LEVEL); } + uint32 GetTransportPeriod() const override { return GetUInt32Value(GAMEOBJECT_LEVEL); } void SetPeriod(uint32 period) { SetUInt32Value(GAMEOBJECT_LEVEL, period); } uint32 GetTimer() const { return GetGOValue()->Transport.PathProgress; } @@ -103,6 +104,7 @@ class Transport : public GameObject, public TransportBase void MoveToNextWaypoint(); float CalculateSegmentPos(float perc); bool TeleportTransport(uint32 newMapid, float x, float y, float z, float o); + void DelayedTeleportTransport(); void UpdatePassengerPositions(PassengerSet& passengers); void DoEventIfAny(KeyFrame const& node, bool departure); @@ -127,6 +129,7 @@ class Transport : public GameObject, public TransportBase PassengerSet _staticPassengers; bool _delayedAddModel; + bool _delayedTeleport; }; #endif diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 21f5cb9ee4c..b33402b75c1 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -5910,7 +5910,7 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere case 55677: { // Dispel Magic shares spellfamilyflag with abolish disease - if (procSpell->SpellIconID != 74) + if (!procSpell || procSpell->SpellIconID != 74) return false; if (!target || !target->IsFriendlyTo(this)) return false; @@ -11787,7 +11787,7 @@ void Unit::ClearInCombat() if (HasFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_TAPPED)) SetUInt32Value(UNIT_DYNAMIC_FLAGS, creature->GetCreatureTemplate()->dynamicflags); - if (creature->IsPet()) + if (creature->IsPet() || creature->IsGuardian()) { if (Unit* owner = GetOwner()) for (uint8 i = 0; i < MAX_MOVE_TYPE; ++i) @@ -12912,7 +12912,7 @@ void Unit::ModSpellCastTime(SpellInfo const* spellInfo, int32 & castTime, Spell* if (Player* modOwner = GetSpellModOwner()) modOwner->ApplySpellMod(spellInfo->Id, SPELLMOD_CASTING_TIME, castTime, spell); - if (!(spellInfo->HasAttribute(SPELL_ATTR0_ABILITY) || spellInfo->HasAttribute(SPELL_ATTR0_TRADESPELL) || spellInfo->HasAttribute(SPELL_ATTR0_TRADESPELL) || spellInfo->HasAttribute(SPELL_ATTR3_NO_DONE_BONUS)) && + if (!(spellInfo->HasAttribute(SPELL_ATTR0_ABILITY) || spellInfo->HasAttribute(SPELL_ATTR0_TRADESPELL) || spellInfo->HasAttribute(SPELL_ATTR3_NO_DONE_BONUS)) && ((GetTypeId() == TYPEID_PLAYER && spellInfo->SpellFamilyName) || GetTypeId() == TYPEID_UNIT)) castTime = int32(float(castTime) * GetFloatValue(UNIT_MOD_CAST_SPEED)); else if (spellInfo->HasAttribute(SPELL_ATTR0_REQ_AMMO) && !spellInfo->HasAttribute(SPELL_ATTR2_AUTOREPEAT_FLAG)) @@ -14153,7 +14153,6 @@ void Unit::ProcDamageAndSpellFor(bool isVictim, Unit* target, uint32 procFlag, u uint32 Id = i->aura->GetId(); AuraApplication* aurApp = i->aura->GetApplicationOfTarget(GetGUID()); - ASSERT(aurApp); bool prepare = i->aura->CallScriptPrepareProcHandlers(aurApp, eventInfo); @@ -15513,18 +15512,11 @@ void Unit::SetControlled(bool apply, UnitState state) { case UNIT_STATE_STUNNED: SetStunned(true); - // i need to stop fear on stun and root or i will get teleport to destination issue as MVMGEN for fear keeps going on - if (HasUnitState(UNIT_STATE_FLEEING)) - SetFeared(false); CastStop(); break; case UNIT_STATE_ROOT: if (!HasUnitState(UNIT_STATE_STUNNED)) - { SetRooted(true); - if (HasUnitState(UNIT_STATE_FLEEING)) - SetFeared(false); - } break; case UNIT_STATE_CONFUSED: if (!HasUnitState(UNIT_STATE_STUNNED)) @@ -15612,11 +15604,9 @@ void Unit::SetStunned(bool apply) // setting MOVEMENTFLAG_ROOT RemoveUnitMovementFlag(MOVEMENTFLAG_MASK_MOVING); AddUnitMovementFlag(MOVEMENTFLAG_ROOT); + StopMoving(); - // Creature specific - if (GetTypeId() != TYPEID_PLAYER) - StopMoving(); - else + if (GetTypeId() == TYPEID_PLAYER) SetStandState(UNIT_STAND_STATE_STAND); WorldPacket data(SMSG_FORCE_MOVE_ROOT, 8); @@ -15660,6 +15650,7 @@ void Unit::SetRooted(bool apply) // setting MOVEMENTFLAG_ROOT RemoveUnitMovementFlag(MOVEMENTFLAG_MASK_MOVING); AddUnitMovementFlag(MOVEMENTFLAG_ROOT); + StopMoving(); if (GetTypeId() == TYPEID_PLAYER) { @@ -15673,7 +15664,6 @@ void Unit::SetRooted(bool apply) WorldPacket data(SMSG_SPLINE_MOVE_ROOT, 8); data << GetPackGUID(); SendMessageToSet(&data, true); - StopMoving(); } } else diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index f74201fee60..a3414c72613 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -1039,6 +1039,66 @@ void ObjectMgr::LoadCreatureAddons() TC_LOG_INFO("server.loading", ">> Loaded %u creature addons in %u ms", count, GetMSTimeDiffToNow(oldMSTime)); } +void ObjectMgr::LoadGameObjectAddons() +{ + uint32 oldMSTime = getMSTime(); + + // 0 1 2 + QueryResult result = WorldDatabase.Query("SELECT guid, invisibilityType, invisibilityValue FROM gameobject_addon"); + + if (!result) + { + TC_LOG_INFO("server.loading", ">> Loaded 0 gameobject addon definitions. DB table `gameobject_addon` is empty."); + return; + } + + uint32 count = 0; + do + { + Field* fields = result->Fetch(); + + ObjectGuid::LowType guid = fields[0].GetUInt64(); + + const GameObjectData* goData = GetGOData(guid); + if (!goData) + { + TC_LOG_ERROR("sql.sql", "GameObject (GUID: " UI64FMTD ") does not exist but has a record in `gameobject_addon`", guid); + continue; + } + + GameObjectAddon& gameObjectAddon = _gameObjectAddonStore[guid]; + gameObjectAddon.invisibilityType = InvisibilityType(fields[1].GetUInt8()); + gameObjectAddon.InvisibilityValue = fields[2].GetUInt32(); + + if (gameObjectAddon.invisibilityType >= TOTAL_INVISIBILITY_TYPES) + { + TC_LOG_ERROR("sql.sql", "GameObject (GUID: " UI64FMTD ") has invalid InvisibilityType in `gameobject_addon`", guid); + gameObjectAddon.invisibilityType = INVISIBILITY_GENERAL; + gameObjectAddon.InvisibilityValue = 0; + } + + if (gameObjectAddon.invisibilityType && !gameObjectAddon.InvisibilityValue) + { + TC_LOG_ERROR("sql.sql", "GameObject (GUID: " UI64FMTD ") has InvisibilityType set but has no InvisibilityValue in `gameobject_addon`, set to 1", guid); + gameObjectAddon.InvisibilityValue = 1; + } + + ++count; + } + while (result->NextRow()); + + TC_LOG_INFO("server.loading", ">> Loaded %u gameobject addons in %u ms", count, GetMSTimeDiffToNow(oldMSTime)); +} + +GameObjectAddon const* ObjectMgr::GetGameObjectAddon(ObjectGuid::LowType lowguid) +{ + GameObjectAddonContainer::const_iterator itr = _gameObjectAddonStore.find(lowguid); + if (itr != _gameObjectAddonStore.end()) + return &(itr->second); + + return NULL; +} + CreatureAddon const* ObjectMgr::GetCreatureAddon(uint32 lowguid) { CreatureAddonContainer::const_iterator itr = _creatureAddonStore.find(lowguid); @@ -4941,11 +5001,11 @@ void ObjectMgr::LoadEventScripts() { TaxiPathNodeEntry const& node = sTaxiPathNodesByPath[path_idx][node_idx]; - if (node.arrivalEventID) - evt_scripts.insert(node.arrivalEventID); + if (node.ArrivalEventID) + evt_scripts.insert(node.ArrivalEventID); - if (node.departureEventID) - evt_scripts.insert(node.departureEventID); + if (node.DepartureEventID) + evt_scripts.insert(node.DepartureEventID); } } @@ -6674,7 +6734,7 @@ void ObjectMgr::LoadGameObjectTemplate() { if (got.moTransport.taxiPathId >= sTaxiPathNodesByPath.size() || sTaxiPathNodesByPath[got.moTransport.taxiPathId].empty()) TC_LOG_ERROR("sql.sql", "GameObject (Entry: %u GoType: %u) have data0=%u but TaxiPath (Id: %u) not exist.", - entry, got.type, got.moTransport.taxiPathId, got.moTransport.taxiPathId); + entry, got.type, got.moTransport.taxiPathId, got.moTransport.taxiPathId); } if (uint32 transportMap = got.moTransport.mapID) _transportMaps.insert(transportMap); diff --git a/src/server/game/Globals/ObjectMgr.h b/src/server/game/Globals/ObjectMgr.h index f9562a12335..a2f8ade2d9a 100644 --- a/src/server/game/Globals/ObjectMgr.h +++ b/src/server/game/Globals/ObjectMgr.h @@ -732,6 +732,7 @@ class ObjectMgr static void ChooseCreatureFlags(CreatureTemplate const* cinfo, uint32& npcflag, uint32& unit_flags, uint32& dynamicflags, CreatureData const* data = NULL); EquipmentInfo const* GetEquipmentInfo(uint32 entry, int8& id); CreatureAddon const* GetCreatureAddon(uint32 lowguid); + GameObjectAddon const* GetGameObjectAddon(ObjectGuid::LowType lowguid); CreatureAddon const* GetCreatureTemplateAddon(uint32 entry); ItemTemplate const* GetItemTemplate(uint32 entry); ItemTemplateContainer const* GetItemTemplateStore() const { return &_itemTemplateStore; } @@ -974,6 +975,7 @@ class ObjectMgr void LoadLinkedRespawn(); bool SetCreatureLinkedRespawn(uint32 guid, uint32 linkedGuid); void LoadCreatureAddons(); + void LoadGameObjectAddons(); void LoadCreatureModelInfo(); void LoadEquipmentTemplates(); void LoadGameObjectLocales(); @@ -1419,6 +1421,7 @@ class ObjectMgr CreatureModelContainer _creatureModelStore; CreatureAddonContainer _creatureAddonStore; CreatureAddonContainer _creatureTemplateAddonStore; + GameObjectAddonContainer _gameObjectAddonStore; EquipmentInfoContainer _equipmentInfoStore; LinkedRespawnContainer _linkedRespawnStore; CreatureLocaleContainer _creatureLocaleStore; diff --git a/src/server/game/Handlers/CharacterHandler.cpp b/src/server/game/Handlers/CharacterHandler.cpp index e30a9601bdb..9cb9077c5ff 100644 --- a/src/server/game/Handlers/CharacterHandler.cpp +++ b/src/server/game/Handlers/CharacterHandler.cpp @@ -1253,7 +1253,7 @@ void WorldSession::HandleAlterAppearance(WorldPacket& recvData) if (bs_skinColor && (bs_skinColor->type != 3 || bs_skinColor->race != _player->getRace() || bs_skinColor->gender != _player->getGender())) return; - if (!Player::ValidateAppearance(_player->getRace(), _player->getClass(), _player->getGender(), bs_hair->hair_id, Color, uint8(_player->GetUInt32Value(PLAYER_FLAGS) >> 8), bs_facialHair->hair_id, bs_skinColor ? bs_skinColor->hair_id : 0)) + if (!Player::ValidateAppearance(_player->getRace(), _player->getClass(), _player->getGender(), bs_hair->hair_id, Color, _player->GetByteValue(PLAYER_BYTES, 1), bs_facialHair->hair_id, bs_skinColor ? bs_skinColor->hair_id : _player->GetByteValue(PLAYER_BYTES, 0))) return; GameObject* go = _player->FindNearestGameObjectOfType(GAMEOBJECT_TYPE_BARBER_CHAIR, 5.0f); diff --git a/src/server/game/Handlers/TaxiHandler.cpp b/src/server/game/Handlers/TaxiHandler.cpp index a9dc7f26b8e..af0f5b0fc75 100644 --- a/src/server/game/Handlers/TaxiHandler.cpp +++ b/src/server/game/Handlers/TaxiHandler.cpp @@ -237,7 +237,7 @@ void WorldSession::HandleMoveSplineDoneOpcode(WorldPacket& recvData) TaxiPathNodeEntry const& node = flight->GetPath()[flight->GetCurrentNode()]; flight->SkipCurrentNode(); - GetPlayer()->TeleportTo(curDestNode->map_id, node.x, node.y, node.z, GetPlayer()->GetOrientation()); + GetPlayer()->TeleportTo(curDestNode->map_id, node.LocX, node.LocY, node.LocZ, GetPlayer()->GetOrientation()); } return; } diff --git a/src/server/game/Instances/InstanceScript.cpp b/src/server/game/Instances/InstanceScript.cpp index 42bf61b6e38..da806e5b038 100644 --- a/src/server/game/Instances/InstanceScript.cpp +++ b/src/server/game/Instances/InstanceScript.cpp @@ -426,7 +426,26 @@ void InstanceScript::DoUseDoorOrButton(ObjectGuid guid, uint32 withRestoreTime / TC_LOG_ERROR("scripts", "InstanceScript: DoUseDoorOrButton can't use gameobject entry %u, because type is %u.", go->GetEntry(), go->GetGoType()); } else - TC_LOG_DEBUG("scripts", "InstanceScript: HandleGameObject failed"); + TC_LOG_DEBUG("scripts", "InstanceScript: DoUseDoorOrButton failed"); +} + +void InstanceScript::DoCloseDoorOrButton(ObjectGuid guid) +{ + if (!guid) + return; + + if (GameObject* go = instance->GetGameObject(guid)) + { + if (go->GetGoType() == GAMEOBJECT_TYPE_DOOR || go->GetGoType() == GAMEOBJECT_TYPE_BUTTON) + { + if (go->getLootState() == GO_ACTIVATED) + go->ResetDoorOrButton(); + } + else + TC_LOG_ERROR("scripts", "InstanceScript: DoCloseDoorOrButton can't use gameobject entry %u, because type is %u.", go->GetEntry(), go->GetGoType()); + } + else + TC_LOG_DEBUG("scripts", "InstanceScript: DoCloseDoorOrButton failed"); } void InstanceScript::DoRespawnGameObject(ObjectGuid guid, uint32 timeToDespawn /*= MINUTE*/) diff --git a/src/server/game/Instances/InstanceScript.h b/src/server/game/Instances/InstanceScript.h index 41a9e9d0be1..be05a9f4495 100644 --- a/src/server/game/Instances/InstanceScript.h +++ b/src/server/game/Instances/InstanceScript.h @@ -191,6 +191,7 @@ class InstanceScript : public ZoneScript // Change active state of doors or buttons void DoUseDoorOrButton(ObjectGuid guid, uint32 withRestoreTime = 0, bool useAlternativeState = false); + void DoCloseDoorOrButton(ObjectGuid guid); // Respawns a GO having negative spawntimesecs in gameobject-table void DoRespawnGameObject(ObjectGuid guid, uint32 timeToDespawn = MINUTE); diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp index 52b866850a6..ba4e4713458 100644 --- a/src/server/game/Loot/LootMgr.cpp +++ b/src/server/game/Loot/LootMgr.cpp @@ -853,7 +853,7 @@ ByteBuffer& operator<<(ByteBuffer& b, LootItem const& li) { b << uint32(li.itemid); b << uint32(li.count); // nr of items of this type - b << uint32(sObjectMgr->GetItemTemplate(li.itemid)->DisplayInfoID); + b << uint32(ASSERT_NOTNULL(sObjectMgr->GetItemTemplate(li.itemid))->DisplayInfoID); b << uint32(li.randomSuffix); b << uint32(li.randomPropertyId); //b << uint8(0); // slot type - will send after this function call diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index dad24de7288..c1a462497cd 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -2562,6 +2562,17 @@ inline void Map::setNGrid(NGridType *grid, uint32 x, uint32 y) void Map::DelayedUpdate(const uint32 t_diff) { + for (_transportsUpdateIter = _transports.begin(); _transportsUpdateIter != _transports.end();) + { + Transport* transport = *_transportsUpdateIter; + ++_transportsUpdateIter; + + if (!transport->IsInWorld()) + continue; + + transport->DelayedUpdate(t_diff); + } + RemoveAllObjectsInRemoveList(); // Don't unload grids if it's battleground, since we may have manually added GOs, creatures, those doesn't load from DB at grid re-load ! diff --git a/src/server/game/Maps/TransportMgr.cpp b/src/server/game/Maps/TransportMgr.cpp index b2e30473632..dadc2eeeac3 100644 --- a/src/server/game/Maps/TransportMgr.cpp +++ b/src/server/game/Maps/TransportMgr.cpp @@ -112,7 +112,7 @@ void TransportMgr::GeneratePath(GameObjectTemplate const* goInfo, TransportTempl Movement::PointsArray splinePath, allPoints; bool mapChange = false; for (size_t i = 0; i < path.size(); ++i) - allPoints.push_back(G3D::Vector3(path[i].x, path[i].y, path[i].z)); + allPoints.push_back(G3D::Vector3(path[i].LocX, path[i].LocY, path[i].LocZ)); // Add extra points to allow derivative calculations for all path nodes allPoints.insert(allPoints.begin(), allPoints.front().lerp(allPoints[1], -0.2f)); @@ -129,7 +129,7 @@ void TransportMgr::GeneratePath(GameObjectTemplate const* goInfo, TransportTempl if (!mapChange) { TaxiPathNodeEntry const& node_i = path[i]; - if (i != path.size() - 1 && (node_i.actionFlag & 1 || node_i.mapid != path[i + 1].mapid)) + if (i != path.size() - 1 && (node_i.Flags & 1 || node_i.MapID != path[i + 1].MapID)) { keyFrames.back().Teleport = true; mapChange = true; @@ -142,8 +142,8 @@ void TransportMgr::GeneratePath(GameObjectTemplate const* goInfo, TransportTempl k.InitialOrientation = Position::NormalizeOrientation(std::atan2(h.y, h.x) + float(M_PI)); keyFrames.push_back(k); - splinePath.push_back(G3D::Vector3(node_i.x, node_i.y, node_i.z)); - transport->mapsUsed.insert(k.Node->mapid); + splinePath.push_back(G3D::Vector3(node_i.LocX, node_i.LocY, node_i.LocZ)); + transport->mapsUsed.insert(k.Node->MapID); } } else @@ -153,12 +153,12 @@ void TransportMgr::GeneratePath(GameObjectTemplate const* goInfo, TransportTempl if (splinePath.size() >= 2) { // Remove special catmull-rom spline points - if (!keyFrames.front().IsStopFrame() && !keyFrames.front().Node->arrivalEventID && !keyFrames.front().Node->departureEventID) + if (!keyFrames.front().IsStopFrame() && !keyFrames.front().Node->ArrivalEventID && !keyFrames.front().Node->DepartureEventID) { splinePath.erase(splinePath.begin()); keyFrames.erase(keyFrames.begin()); } - if (!keyFrames.back().IsStopFrame() && !keyFrames.back().Node->arrivalEventID && !keyFrames.back().Node->departureEventID) + if (!keyFrames.back().IsStopFrame() && !keyFrames.back().Node->ArrivalEventID && !keyFrames.back().Node->DepartureEventID) { splinePath.pop_back(); keyFrames.pop_back(); @@ -311,7 +311,7 @@ void TransportMgr::GeneratePath(GameObjectTemplate const* goInfo, TransportTempl float curPathTime = 0.0f; if (keyFrames[0].IsStopFrame()) { - curPathTime = float(keyFrames[0].Node->delay); + curPathTime = float(keyFrames[0].Node->Delay); keyFrames[0].DepartureTime = uint32(curPathTime * IN_MILLISECONDS); } @@ -322,7 +322,7 @@ void TransportMgr::GeneratePath(GameObjectTemplate const* goInfo, TransportTempl { keyFrames[i].ArriveTime = uint32(curPathTime * IN_MILLISECONDS); keyFrames[i - 1].NextArriveTime = keyFrames[i].ArriveTime; - curPathTime += float(keyFrames[i].Node->delay); + curPathTime += float(keyFrames[i].Node->Delay); keyFrames[i].DepartureTime = uint32(curPathTime * IN_MILLISECONDS); } else @@ -374,10 +374,10 @@ Transport* TransportMgr::CreateTransport(uint32 entry, uint32 guid /*= 0*/, Map* // ...at first waypoint TaxiPathNodeEntry const* startNode = tInfo->keyFrames.begin()->Node; - uint32 mapId = startNode->mapid; - float x = startNode->x; - float y = startNode->y; - float z = startNode->z; + uint32 mapId = startNode->MapID; + float x = startNode->LocX; + float y = startNode->LocY; + float z = startNode->LocZ; float o = tInfo->keyFrames.begin()->InitialOrientation; // initialize the gameobject base diff --git a/src/server/game/Maps/TransportMgr.h b/src/server/game/Maps/TransportMgr.h index dbd99bd163a..fff7b9d8afa 100644 --- a/src/server/game/Maps/TransportMgr.h +++ b/src/server/game/Maps/TransportMgr.h @@ -61,7 +61,7 @@ struct KeyFrame uint32 NextArriveTime; bool IsTeleportFrame() const { return Teleport; } - bool IsStopFrame() const { return Node->actionFlag == 2; } + bool IsStopFrame() const { return Node->Flags == 2; } }; struct TransportTemplate diff --git a/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp b/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp index a4c3831cf82..97e3880161a 100755 --- a/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp +++ b/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp @@ -248,10 +248,10 @@ uint32 FlightPathMovementGenerator::GetPathAtMapEnd() const if (i_currentNode >= i_path->size()) return i_path->size(); - uint32 curMapId = (*i_path)[i_currentNode].mapid; + uint32 curMapId = (*i_path)[i_currentNode].MapID; for (uint32 i = i_currentNode; i < i_path->size(); ++i) { - if ((*i_path)[i].mapid != curMapId) + if ((*i_path)[i].MapID != curMapId) return i; } @@ -296,7 +296,7 @@ void FlightPathMovementGenerator::DoReset(Player* player) uint32 end = GetPathAtMapEnd(); for (uint32 i = GetCurrentNode(); i != end; ++i) { - G3D::Vector3 vertice((*i_path)[i].x, (*i_path)[i].y, (*i_path)[i].z); + G3D::Vector3 vertice((*i_path)[i].LocX, (*i_path)[i].LocY, (*i_path)[i].LocZ); init.Path().push_back(vertice); } init.SetFirstPointId(GetCurrentNode()); @@ -332,10 +332,10 @@ void FlightPathMovementGenerator::SetCurrentNodeAfterTeleport() if (i_path->empty()) return; - uint32 map0 = (*i_path)[0].mapid; + uint32 map0 = (*i_path)[0].MapID; for (size_t i = 1; i < i_path->size(); ++i) { - if ((*i_path)[i].mapid != map0) + if ((*i_path)[i].MapID != map0) { i_currentNode = i; return; @@ -345,9 +345,9 @@ void FlightPathMovementGenerator::SetCurrentNodeAfterTeleport() void FlightPathMovementGenerator::DoEventIfAny(Player* player, TaxiPathNodeEntry const& node, bool departure) { - if (uint32 eventid = departure ? node.departureEventID : node.arrivalEventID) + if (uint32 eventid = departure ? node.DepartureEventID : node.ArrivalEventID) { - TC_LOG_DEBUG("maps.script", "Taxi %s event %u of node %u of path %u for player %s", departure ? "departure" : "arrival", eventid, node.index, node.path, player->GetName().c_str()); + TC_LOG_DEBUG("maps.script", "Taxi %s event %u of node %u of path %u for player %s", departure ? "departure" : "arrival", eventid, node.NodeIndex, node.PathID, player->GetName().c_str()); player->GetMap()->ScriptsStart(sEventScripts, eventid, player, player); } } @@ -355,7 +355,7 @@ void FlightPathMovementGenerator::DoEventIfAny(Player* player, TaxiPathNodeEntry bool FlightPathMovementGenerator::GetResetPos(Player*, float& x, float& y, float& z) { const TaxiPathNodeEntry& node = (*i_path)[i_currentNode]; - x = node.x; y = node.y; z = node.z; + x = node.LocX; y = node.LocY; z = node.LocZ; return true; } @@ -364,10 +364,10 @@ void FlightPathMovementGenerator::InitEndGridInfo() /*! Storage to preload flightmaster grid at end of flight. For multi-stop flights, this will be reinitialized for each flightmaster at the end of each spline (or stop) in the flight. */ uint32 nodeCount = (*i_path).size(); //! Number of nodes in path. - _endMapId = (*i_path)[nodeCount - 1].mapid; //! MapId of last node + _endMapId = (*i_path)[nodeCount - 1].MapID; //! MapId of last node _preloadTargetNode = nodeCount - 3; - _endGridX = (*i_path)[nodeCount - 1].x; - _endGridY = (*i_path)[nodeCount - 1].y; + _endGridX = (*i_path)[nodeCount - 1].LocX; + _endGridY = (*i_path)[nodeCount - 1].LocZ; } void FlightPathMovementGenerator::PreloadEndGrid() diff --git a/src/server/game/Server/WorldSession.cpp b/src/server/game/Server/WorldSession.cpp index d79392177e4..d6055e9733b 100644 --- a/src/server/game/Server/WorldSession.cpp +++ b/src/server/game/Server/WorldSession.cpp @@ -1370,6 +1370,7 @@ uint32 WorldSession::DosProtection::GetMaxPacketCounterAllowed(uint16 opcode) co case MSG_RANDOM_ROLL: // not profiled case CMSG_TIME_SYNC_RESP: // not profiled case CMSG_TRAINER_BUY_SPELL: // not profiled + case CMSG_FORCE_RUN_SPEED_CHANGE_ACK: // not profiled { // "0" is a magic number meaning there's no limit for the opcode. // All the opcodes above must cause little CPU usage and no sync/async database queries at all diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index d576b6c4e7f..fa40d4c97a1 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -6416,6 +6416,9 @@ void AuraEffect::HandleProcTriggerSpellWithValueAuraProc(AuraApplication* aurApp void AuraEffect::HandleProcTriggerDamageAuraProc(AuraApplication* aurApp, ProcEventInfo& eventInfo) { + if (!aurApp) + return; + Unit* target = aurApp->GetTarget(); Unit* triggerTarget = eventInfo.GetProcTarget(); SpellNonMeleeDamage damageInfo(target, triggerTarget, GetId(), GetSpellInfo()->SchoolMask); diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp index 9a84fa1670d..5f54154fab1 100644 --- a/src/server/game/World/World.cpp +++ b/src/server/game/World/World.cpp @@ -1523,6 +1523,9 @@ void World::SetInitialWorldSettings() TC_LOG_INFO("server.loading", "Loading Gameobject Data..."); sObjectMgr->LoadGameobjects(); + + TC_LOG_INFO("server.loading", "Loading GameObject Addon Data..."); + sObjectMgr->LoadGameObjectAddons(); // must be after LoadGameObjectTemplate() and LoadGameobjects() TC_LOG_INFO("server.loading", "Loading Creature Linked Respawn..."); sObjectMgr->LoadLinkedRespawn(); // must be after LoadCreatures(), LoadGameObjects() diff --git a/src/server/scripts/Commands/cs_lfg.cpp b/src/server/scripts/Commands/cs_lfg.cpp index 747d84de9c5..d1662f3a97c 100644 --- a/src/server/scripts/Commands/cs_lfg.cpp +++ b/src/server/scripts/Commands/cs_lfg.cpp @@ -19,7 +19,9 @@ #include "Chat.h" #include "Language.h" #include "LFGMgr.h" +#include "ObjectMgr.h" #include "Group.h" +#include "GroupMgr.h" #include "Player.h" void GetPlayerInfo(ChatHandler* handler, Player* player) @@ -74,25 +76,55 @@ public: static bool HandleLfgGroupInfoCommand(ChatHandler* handler, char const* args) { - Player* target = NULL; - std::string playerName; - if (!handler->extractPlayerTarget((char*)args, &target, NULL, &playerName)) + Player* playerTarget; + ObjectGuid guidTarget; + std::string nameTarget; + + ObjectGuid parseGUID(HIGHGUID_PLAYER, uint32(atoul(args))); + + if (sObjectMgr->GetPlayerNameByGUID(parseGUID, nameTarget)) + { + playerTarget = ObjectAccessor::FindPlayer(parseGUID); + guidTarget = parseGUID; + } + else if (!handler->extractPlayerTarget((char*)args, &playerTarget, &guidTarget, &nameTarget)) return false; - Group* grp = target->GetGroup(); - if (!grp) + Group* groupTarget = NULL; + + if (playerTarget) + groupTarget = playerTarget->GetGroup(); + else + { + PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_GROUP_MEMBER); + stmt->setUInt32(0, guidTarget.GetCounter()); + PreparedQueryResult resultGroup = CharacterDatabase.Query(stmt); + if (resultGroup) + groupTarget = sGroupMgr->GetGroupByDbStoreId((*resultGroup)[0].GetUInt32()); + } + if (!groupTarget) { - handler->PSendSysMessage(LANG_LFG_NOT_IN_GROUP, playerName.c_str()); - return true; + handler->PSendSysMessage(LANG_LFG_NOT_IN_GROUP, nameTarget.c_str()); + handler->SetSentErrorMessage(true); + return false; } - ObjectGuid guid = grp->GetGUID(); + ObjectGuid guid = groupTarget->GetGUID(); std::string const& state = lfg::GetStateString(sLFGMgr->GetState(guid)); - handler->PSendSysMessage(LANG_LFG_GROUP_INFO, grp->isLFGGroup(), + handler->PSendSysMessage(LANG_LFG_GROUP_INFO, groupTarget->isLFGGroup(), state.c_str(), sLFGMgr->GetDungeon(guid)); - for (GroupReference* itr = grp->GetFirstMember(); itr != NULL; itr = itr->next()) - GetPlayerInfo(handler, itr->GetSource()); + Group::MemberSlotList const& members = groupTarget->GetMemberSlots(); + + for (Group::MemberSlotList::const_iterator itr = members.begin(); itr != members.end(); ++itr) + { + Group::MemberSlot const& slot = *itr; + Player* p = ObjectAccessor::FindPlayer((*itr).guid); + if (p) + GetPlayerInfo(handler, p); + else + handler->PSendSysMessage("%s is offline.", slot.name.c_str()); + } return true; } diff --git a/src/server/scripts/Commands/cs_modify.cpp b/src/server/scripts/Commands/cs_modify.cpp index 4667b7c2767..54d1f314140 100644 --- a/src/server/scripts/Commands/cs_modify.cpp +++ b/src/server/scripts/Commands/cs_modify.cpp @@ -136,7 +136,7 @@ public: return false; } - Player* target = handler->getSelectedPlayer(); + Player* target = handler->getSelectedPlayerOrSelf(); if (!target) { handler->SendSysMessage(LANG_NO_CHAR_SELECTED); @@ -164,17 +164,6 @@ public: if (!*args) return false; - // char* pmana = strtok((char*)args, " "); - // if (!pmana) - // return false; - - // char* pmanaMax = strtok(NULL, " "); - // if (!pmanaMax) - // return false; - - // int32 manam = atoi(pmanaMax); - // int32 mana = atoi(pmana); - int32 energy = atoi((char*)args)*10; int32 energym = atoi((char*)args)*10; @@ -185,7 +174,7 @@ public: return false; } - Player* target = handler->getSelectedPlayer(); + Player* target = handler->getSelectedPlayerOrSelf(); if (!target) { handler->SendSysMessage(LANG_NO_CHAR_SELECTED); @@ -215,17 +204,6 @@ public: if (!*args) return false; - // char* pmana = strtok((char*)args, " "); - // if (!pmana) - // return false; - - // char* pmanaMax = strtok(NULL, " "); - // if (!pmanaMax) - // return false; - - // int32 manam = atoi(pmanaMax); - // int32 mana = atoi(pmana); - int32 rage = atoi((char*)args)*10; int32 ragem = atoi((char*)args)*10; @@ -236,7 +214,7 @@ public: return false; } - Player* target = handler->getSelectedPlayer(); + Player* target = handler->getSelectedPlayerOrSelf(); if (!target) { handler->SendSysMessage(LANG_NO_CHAR_SELECTED); @@ -274,7 +252,7 @@ public: return false; } - Player* target = handler->getSelectedPlayer(); + Player* target = handler->getSelectedPlayerOrSelf(); if (!target) { handler->SendSysMessage(LANG_NO_CHAR_SELECTED); @@ -390,7 +368,7 @@ public: else mark = atoi(pmark); - Player* target = handler->getSelectedPlayer(); + Player* target = handler->getSelectedPlayerOrSelf(); if (target == NULL) { handler->SendSysMessage(LANG_NO_CHAR_SELECTED); @@ -945,7 +923,7 @@ public: return false; } - Player* target = handler->getSelectedPlayer(); + Player* target = handler->getSelectedPlayerOrSelf(); if (!target) { handler->SendSysMessage(LANG_NO_CHAR_SELECTED); @@ -986,7 +964,7 @@ public: if (!*args) return false; - Player* target = handler->getSelectedPlayer(); + Player* target = handler->getSelectedPlayerOrSelf(); if (!target) { handler->SendSysMessage(LANG_NO_CHAR_SELECTED); @@ -1107,7 +1085,7 @@ public: if (!*args) return false; - Player* target = handler->getSelectedPlayer(); + Player* target = handler->getSelectedPlayerOrSelf(); if (!target) { handler->SendSysMessage(LANG_PLAYER_NOT_FOUND); @@ -1137,7 +1115,7 @@ public: if (drunklevel > 100) drunklevel = 100; - if (Player* target = handler->getSelectedPlayer()) + if (Player* target = handler->getSelectedPlayerOrSelf()) target->SetDrunkValue(drunklevel); return true; @@ -1148,7 +1126,7 @@ public: if (!*args) return false; - Player* target = handler->getSelectedPlayer(); + Player* target = handler->getSelectedPlayerOrSelf(); if (!target) { handler->SendSysMessage(LANG_PLAYER_NOT_FOUND); @@ -1302,7 +1280,7 @@ public: if (!*args) return false; - Player* target = handler->getSelectedPlayer(); + Player* target = handler->getSelectedPlayerOrSelf(); if (!target) { handler->SendSysMessage(LANG_PLAYER_NOT_FOUND); @@ -1324,7 +1302,7 @@ public: if (!*args) return false; - Player* target = handler->getSelectedPlayer(); + Player* target = handler->getSelectedPlayerOrSelf(); if (!target) { diff --git a/src/server/scripts/EasternKingdoms/Uldaman/boss_archaedas.cpp b/src/server/scripts/EasternKingdoms/Uldaman/boss_archaedas.cpp index ec2f41cc625..cae26735568 100644 --- a/src/server/scripts/EasternKingdoms/Uldaman/boss_archaedas.cpp +++ b/src/server/scripts/EasternKingdoms/Uldaman/boss_archaedas.cpp @@ -41,14 +41,17 @@ enum Says enum Spells { - SPELL_GROUND_TREMOR = 6524, - SPELL_ARCHAEDAS_AWAKEN = 10347, - SPELL_BOSS_OBJECT_VISUAL = 11206, - SPELL_BOSS_AGGRO = 10340, - SPELL_SUB_BOSS_AGGRO = 11568, - SPELL_AWAKEN_VAULT_WALKER = 10258, - SPELL_AWAKEN_EARTHEN_GUARDIAN = 10252, - SPELL_SELF_DESTRUCT = 9874 + SPELL_GROUND_TREMOR = 6524, + SPELL_ARCHAEDAS_AWAKEN = 10347, + SPELL_BOSS_OBJECT_VISUAL = 11206, + SPELL_BOSS_AGGRO = 10340, + SPELL_SUB_BOSS_AGGRO = 11568, + SPELL_AWAKEN_VAULT_WALKER = 10258, + SPELL_AWAKEN_EARTHEN_GUARDIAN = 10252, + SPELL_SELF_DESTRUCT = 9874, + SPELL_FREEZE_ANIM = 16245, + SPELL_MINION_FREEZE_ANIM = 10255 + }; class boss_archaedas : public CreatureScript @@ -96,6 +99,7 @@ class boss_archaedas : public CreatureScript me->setFaction(35); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE); + me->AddAura(SPELL_FREEZE_ANIM, me); } void ActivateMinion(ObjectGuid uiGuid, bool flag) @@ -109,6 +113,7 @@ class boss_archaedas : public CreatureScript minion->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); minion->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE); minion->setFaction(14); + minion->RemoveAura(SPELL_MINION_FREEZE_ANIM); } } @@ -258,6 +263,7 @@ class npc_archaedas_minions : public CreatureScript me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE); me->RemoveAllAuras(); + me->AddAura(SPELL_MINION_FREEZE_ANIM, me); } void EnterCombat(Unit* /*who*/) override @@ -297,7 +303,7 @@ class npc_archaedas_minions : public CreatureScript { bWakingUp = false; bAmIAwake = true; - // AttackStart(ObjectAccessor::GetUnit(*me, instance->GetGuidData(0))); // whoWokeArchaedasGUID + AttackStart(ObjectAccessor::GetUnit(*me, instance->GetGuidData(0))); // whoWokeArchaedasGUID return; // dont want to continue until we finish the AttackStart method } @@ -346,6 +352,7 @@ class npc_stonekeepers : public CreatureScript me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE); me->RemoveAllAuras(); + me->AddAura(SPELL_MINION_FREEZE_ANIM, me); } void EnterCombat(Unit* /*who*/) override diff --git a/src/server/scripts/EasternKingdoms/Uldaman/boss_ironaya.cpp b/src/server/scripts/EasternKingdoms/Uldaman/boss_ironaya.cpp index de899c04e1a..7f0faa138ec 100644 --- a/src/server/scripts/EasternKingdoms/Uldaman/boss_ironaya.cpp +++ b/src/server/scripts/EasternKingdoms/Uldaman/boss_ironaya.cpp @@ -28,10 +28,9 @@ EndScriptData */ enum Ironaya { - SAY_AGGRO = 0, SPELL_ARCINGSMASH = 8374, SPELL_KNOCKAWAY = 10101, - SPELL_WSTOMP = 11876, + SPELL_WSTOMP = 11876 }; class boss_ironaya : public CreatureScript @@ -66,10 +65,7 @@ class boss_ironaya : public CreatureScript Initialize(); } - void EnterCombat(Unit* /*who*/) override - { - Talk(SAY_AGGRO); - } + void EnterCombat(Unit* /*who*/) override { } void UpdateAI(uint32 uiDiff) override { diff --git a/src/server/scripts/EasternKingdoms/Uldaman/instance_uldaman.cpp b/src/server/scripts/EasternKingdoms/Uldaman/instance_uldaman.cpp index 9d33d41af62..11699d4ec43 100644 --- a/src/server/scripts/EasternKingdoms/Uldaman/instance_uldaman.cpp +++ b/src/server/scripts/EasternKingdoms/Uldaman/instance_uldaman.cpp @@ -18,12 +18,13 @@ /* ScriptData SDName: instance_uldaman -SD%Complete: 99 +SD%Complete: 80% SDComment: Need some cosmetics updates when archeadas door are closing (Guardians Waypoints). SDCategory: Uldaman EndScriptData */ #include "ScriptMgr.h" +#include "ScriptedCreature.h" #include "InstanceScript.h" #include "uldaman.h" @@ -31,6 +32,8 @@ enum Spells { SPELL_ARCHAEDAS_AWAKEN = 10347, SPELL_AWAKEN_VAULT_WALKER = 10258, + SPELL_FREEZE_ANIM = 16245, + SPELL_MINION_FREEZE_ANIM = 10255 }; enum Events @@ -38,6 +41,13 @@ enum Events EVENT_SUB_BOSS_AGGRO = 2228 }; +enum IronayaTalk +{ + SAY_AGGRO = 0 +}; + +const Position IronayaPoint = { -231.228f, 246.6135f, -49.01617f, 0.0f }; + class instance_uldaman : public InstanceMapScript { public: @@ -136,9 +146,9 @@ class instance_uldaman : public InstanceMapScript { creature->setFaction(35); creature->RemoveAllAuras(); - //creature->RemoveFlag (UNIT_FIELD_FLAGS, UNIT_FLAG_ANIMATION_FROZEN); creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE); + creature->AddAura(SPELL_MINION_FREEZE_ANIM, creature); } void SetDoor(ObjectGuid guid, bool open) @@ -171,6 +181,8 @@ class instance_uldaman : public InstanceMapScript target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE); target->setFaction(14); target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); + target->RemoveAura(SPELL_MINION_FREEZE_ANIM); + return; // only want the first one we find } // if we get this far than all four are dead so open the door @@ -190,11 +202,13 @@ class instance_uldaman : public InstanceMapScript Creature* target = instance->GetCreature(*i); if (!target || !target->IsAlive() || target->getFaction() == 14) continue; - archaedas->CastSpell(target, SPELL_AWAKEN_VAULT_WALKER, true); - target->CastSpell(target, SPELL_ARCHAEDAS_AWAKEN, true); target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE); target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); target->setFaction(14); + target->RemoveAura(SPELL_MINION_FREEZE_ANIM); + archaedas->CastSpell(target, SPELL_AWAKEN_VAULT_WALKER, true); + target->CastSpell(target, SPELL_ARCHAEDAS_AWAKEN, true); + return; // only want the first one we find } } @@ -241,6 +255,7 @@ class instance_uldaman : public InstanceMapScript if (ObjectAccessor::GetUnit(*archaedas, target)) { + archaedas->RemoveAura(SPELL_FREEZE_ANIM); archaedas->CastSpell(archaedas, SPELL_ARCHAEDAS_AWAKEN, false); whoWokeuiArchaedasGUID = target; } @@ -255,6 +270,12 @@ class instance_uldaman : public InstanceMapScript ironaya->setFaction(415); ironaya->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE); ironaya->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); + + ironaya->GetMotionMaster()->Clear(); + ironaya->GetMotionMaster()->MovePoint(0, IronayaPoint); + ironaya->SetHomePosition(IronayaPoint); + + ironaya->AI()->Talk(SAY_AGGRO); } void RespawnMinions() diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_chrono_lord_epoch.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_chrono_lord_epoch.cpp index 0311ed61c6a..ecda065fda9 100644 --- a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_chrono_lord_epoch.cpp +++ b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_chrono_lord_epoch.cpp @@ -32,8 +32,7 @@ enum Spells SPELL_CURSE_OF_EXERTION = 52772, SPELL_TIME_WARP = 52766, //Time slows down, reducing attack, casting and movement speed by 70% for 6 sec. SPELL_TIME_STOP = 58848, //Stops time in a 50 yard sphere for 2 sec. - SPELL_WOUNDING_STRIKE = 52771, //Used only on the tank - H_SPELL_WOUNDING_STRIKE = 58830 + SPELL_WOUNDING_STRIKE = 52771 //Used only on the tank }; enum Yells @@ -45,109 +44,78 @@ enum Yells SAY_DEATH = 4 }; -class boss_epoch : public CreatureScript +enum Events { -public: - boss_epoch() : CreatureScript("boss_epoch") { } - - CreatureAI* GetAI(Creature* creature) const override - { - return GetInstanceAI<boss_epochAI>(creature); - } - - struct boss_epochAI : public ScriptedAI - { - boss_epochAI(Creature* creature) : ScriptedAI(creature) - { - Initialize(); - instance = creature->GetInstanceScript(); - } - - void Initialize() - { - uiStep = 1; - uiStepTimer = 26000; - uiCurseOfExertionTimer = 9300; - uiTimeWarpTimer = 25300; - uiTimeStopTimer = 21300; - uiWoundingStrikeTimer = 5300; - } - - uint8 uiStep; - - uint32 uiStepTimer; - uint32 uiWoundingStrikeTimer; - uint32 uiTimeWarpTimer; - uint32 uiTimeStopTimer; - uint32 uiCurseOfExertionTimer; - - InstanceScript* instance; - - void Reset() override - { - Initialize(); - - instance->SetBossState(DATA_EPOCH, NOT_STARTED); - } - - void EnterCombat(Unit* /*who*/) override - { - Talk(SAY_AGGRO); + EVENT_CURSE_OF_EXERTION = 1, + EVENT_TIME_WARP, + EVENT_TIME_STOP, + EVENT_WOUNDING_STRIKE +}; - instance->SetBossState(DATA_EPOCH, IN_PROGRESS); - } +class boss_epoch : public CreatureScript +{ + public: + boss_epoch() : CreatureScript("boss_epoch") { } - void UpdateAI(uint32 diff) override + struct boss_epochAI : public BossAI { - //Return since we have no target - if (!UpdateVictim()) - return; + boss_epochAI(Creature* creature) : BossAI(creature, DATA_EPOCH) { } - if (uiCurseOfExertionTimer < diff) + void EnterCombat(Unit* /*who*/) override { - if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true)) - DoCast(target, SPELL_CURSE_OF_EXERTION); - uiCurseOfExertionTimer = 9300; - } else uiCurseOfExertionTimer -= diff; + Talk(SAY_AGGRO); + _EnterCombat(); - if (uiWoundingStrikeTimer < diff) - { - DoCastVictim(SPELL_WOUNDING_STRIKE); - uiWoundingStrikeTimer = 5300; - } else uiWoundingStrikeTimer -= diff; + events.ScheduleEvent(EVENT_CURSE_OF_EXERTION, 9300); + events.ScheduleEvent(EVENT_TIME_WARP, 25300); + events.ScheduleEvent(EVENT_TIME_STOP, 21300); + events.ScheduleEvent(EVENT_WOUNDING_STRIKE, 5300); + } - if (uiTimeStopTimer < diff) + void ExecuteEvent(uint32 eventId) override { - DoCastAOE(SPELL_TIME_STOP); - uiTimeStopTimer = 21300; - } else uiTimeStopTimer -= diff; - - if (uiTimeWarpTimer < diff) + switch (eventId) + { + case EVENT_CURSE_OF_EXERTION: + if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100.0f, true)) + DoCast(target, SPELL_CURSE_OF_EXERTION); + events.ScheduleEvent(EVENT_CURSE_OF_EXERTION, 9300); + break; + case EVENT_TIME_WARP: + Talk(SAY_TIME_WARP); + DoCastAOE(SPELL_TIME_WARP); + events.ScheduleEvent(EVENT_TIME_WARP, 25300); + break; + case EVENT_TIME_STOP: + DoCastAOE(SPELL_TIME_STOP); + events.ScheduleEvent(EVENT_TIME_STOP, 21300); + break; + case EVENT_WOUNDING_STRIKE: + DoCastVictim(SPELL_WOUNDING_STRIKE); + events.ScheduleEvent(EVENT_WOUNDING_STRIKE, 5300); + break; + default: + break; + } + } + + void JustDied(Unit* /*killer*/) override { - Talk(SAY_TIME_WARP); - DoCastAOE(SPELL_TIME_WARP); - uiTimeWarpTimer = 25300; - } else uiTimeWarpTimer -= diff; + Talk(SAY_DEATH); + _JustDied(); + } - DoMeleeAttackIfReady(); - } - - void JustDied(Unit* /*killer*/) override - { - Talk(SAY_DEATH); - - instance->SetBossState(DATA_EPOCH, DONE); - } + void KilledUnit(Unit* victim) override + { + if (victim->GetTypeId() == TYPEID_PLAYER) + Talk(SAY_SLAY); + } + }; - void KilledUnit(Unit* victim) override + CreatureAI* GetAI(Creature* creature) const override { - if (victim->GetTypeId() != TYPEID_PLAYER) - return; - - Talk(SAY_SLAY); + return GetInstanceAI<boss_epochAI>(creature); } - }; - }; void AddSC_boss_epoch() diff --git a/src/server/scripts/Kalimdor/zone_desolace.cpp b/src/server/scripts/Kalimdor/zone_desolace.cpp index d5ff4c45d09..bb17de4fd6a 100644 --- a/src/server/scripts/Kalimdor/zone_desolace.cpp +++ b/src/server/scripts/Kalimdor/zone_desolace.cpp @@ -88,12 +88,20 @@ public: DoCast(me, SPELL_KODO_KOMBO_DESPAWN_BUFF, true); me->UpdateEntry(NPC_TAMED_KODO); + me->CombatStop(); + me->DeleteThreatList(); + me->SetSpeed(MOVE_RUN, 0.6f, true); me->GetMotionMaster()->MoveFollow(caster, PET_FOLLOW_DIST, me->GetFollowAngle()); + me->setActive(true); } } else if (spell->Id == SPELL_KODO_KOMBO_GOSSIP) { me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP); + me->SetHomePosition(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), me->GetOrientation()); + me->GetMotionMaster()->Clear(); + me->GetMotionMaster()->MoveIdle(); + me->setActive(false); me->DespawnOrUnsummon(60000); } } diff --git a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp index 39c9fbe37a6..c56a49cb92c 100644 --- a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp +++ b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp @@ -741,7 +741,7 @@ class boss_dreadscale : public CreatureScript switch (pointId) { case 0: - instance->DoUseDoorOrButton(instance->GetGuidData(GO_MAIN_GATE_DOOR)); + instance->DoCloseDoorOrButton(instance->GetGuidData(GO_MAIN_GATE_DOOR)); me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE); me->SetReactState(REACT_AGGRESSIVE); me->SetInCombatWithZone(); diff --git a/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp b/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp index 6c3b2187325..9c339e596a4 100644 --- a/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp +++ b/src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp @@ -128,7 +128,6 @@ enum Spells SPELL_ARCANE_BARRAGE_DAMAGE = 63934, // the actual damage - cast by affected player by script spell // Transition /II-III/ - SPELL_SUMMOM_RED_DRAGON_BUDYY = 56070, SPELL_RIDE_RED_DRAGON_BUDDY = 56071, SPELL_SUMMON_RED_DRAGON_BUDDY_F_CAST = 58846, // After implicitly hit player targets they will force cast 56070 on self SPELL_DESTROY_PLATFORM_CHANNEL = 58842, diff --git a/src/server/scripts/Northrend/Nexus/EyeOfEternity/eye_of_eternity.h b/src/server/scripts/Northrend/Nexus/EyeOfEternity/eye_of_eternity.h index b6a0d3f9b62..d9b921b38a1 100644 --- a/src/server/scripts/Northrend/Nexus/EyeOfEternity/eye_of_eternity.h +++ b/src/server/scripts/Northrend/Nexus/EyeOfEternity/eye_of_eternity.h @@ -80,7 +80,8 @@ enum InstanceSpells SPELL_VORTEX_5 = 56263, // damage | used to enter to the vehicle SPELL_PORTAL_OPENED = 61236, SPELL_RIDE_RED_DRAGON_TRIGGERED = 56072, - SPELL_IRIS_OPENED = 61012 // visual when starting encounter + SPELL_IRIS_OPENED = 61012, // visual when starting encounter + SPELL_SUMMOM_RED_DRAGON_BUDDY = 56070 }; #endif diff --git a/src/server/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp b/src/server/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp index fffdbbc3d1b..7b884f39a41 100644 --- a/src/server/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp +++ b/src/server/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp @@ -39,6 +39,12 @@ public: SetBossNumber(MAX_ENCOUNTER); } + void OnPlayerEnter(Player* player) override + { + if (GetBossState(DATA_MALYGOS_EVENT) == DONE) + player->CastSpell(player, SPELL_SUMMOM_RED_DRAGON_BUDDY, true); + } + bool SetBossState(uint32 type, EncounterState state) override { if (!InstanceScript::SetBossState(type, state)) diff --git a/src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.cpp b/src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.cpp index 1e2ca666378..6233c7e8953 100644 --- a/src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.cpp +++ b/src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.cpp @@ -330,7 +330,7 @@ public: DespawnDwarf(); - instance->SetBossState(DATA_BRANN_EVENT, NOT_STARTED); + instance->SetBossState(DATA_TRIBUNAL_OF_AGES, NOT_STARTED); } } @@ -362,8 +362,10 @@ public: break; case 13: Talk(SAY_EVENT_INTRO_1); + instance->SetBossState(DATA_TRIBUNAL_OF_AGES, IN_PROGRESS); SetEscortPaused(true); JumpToNextStep(20000); + // @todo: There should be a pause here and a gossip should start the next step. break; case 17: Talk(SAY_EVENT_INTRO_2); @@ -421,9 +423,9 @@ public: Start(); } - void DamageTaken(Unit* /*done_by*/, uint32 & /*damage*/) override + void DamageTaken(Unit* /*done_by*/, uint32& /*damage*/) override { - if (brannSparklinNews) + if (instance->GetBossState(DATA_TRIBUNAL_OF_AGES) == IN_PROGRESS) brannSparklinNews = false; } @@ -442,9 +444,8 @@ public: switch (uiStep) { case 1: - if (instance->GetBossState(DATA_BRANN_EVENT) != NOT_STARTED) + if (instance->GetBossState(DATA_TRIBUNAL_OF_AGES) != NOT_STARTED) return; - instance->SetBossState(DATA_BRANN_EVENT, IN_PROGRESS); bIsBattle = false; Talk(SAY_ESCORT_START); SetRun(true); @@ -582,7 +583,7 @@ public: break; case 29: Talk(SAY_EVENT_END_02); - instance->SetBossState(DATA_BRANN_EVENT, DONE); + instance->SetBossState(DATA_TRIBUNAL_OF_AGES, DONE); me->CastSpell(me, SPELL_REWARD_ACHIEVEMENT, true); JumpToNextStep(5500); break; @@ -715,9 +716,7 @@ public: class achievement_brann_spankin_new : public AchievementCriteriaScript { public: - achievement_brann_spankin_new() : AchievementCriteriaScript("achievement_brann_spankin_new") - { - } + achievement_brann_spankin_new() : AchievementCriteriaScript("achievement_brann_spankin_new") { } bool OnCheck(Player* /*player*/, Unit* target) override { diff --git a/src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.h b/src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.h index 2ed47b42bbc..df56aadfe22 100644 --- a/src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.h +++ b/src/server/scripts/Northrend/Ulduar/HallsOfStone/halls_of_stone.h @@ -28,7 +28,7 @@ enum DataTypes // Encounter States/Boss GUIDs DATA_KRYSTALLUS = 0, DATA_MAIDEN_OF_GRIEF = 1, - DATA_BRANN_EVENT = 2, + DATA_TRIBUNAL_OF_AGES = 2, DATA_SJONNIR = 3, // Additional data diff --git a/src/server/scripts/Northrend/Ulduar/HallsOfStone/instance_halls_of_stone.cpp b/src/server/scripts/Northrend/Ulduar/HallsOfStone/instance_halls_of_stone.cpp index a70d1ff3a0d..c67e31c4cc0 100644 --- a/src/server/scripts/Northrend/Ulduar/HallsOfStone/instance_halls_of_stone.cpp +++ b/src/server/scripts/Northrend/Ulduar/HallsOfStone/instance_halls_of_stone.cpp @@ -23,8 +23,8 @@ DoorData const doorData[] = { - { GO_SJONNIR_DOOR, DATA_BRANN_EVENT, DOOR_TYPE_PASSAGE, BOUNDARY_NONE }, - { 0, 0, DOOR_TYPE_ROOM, BOUNDARY_NONE } // END + { GO_SJONNIR_DOOR, DATA_TRIBUNAL_OF_AGES, DOOR_TYPE_PASSAGE, BOUNDARY_NONE }, + { 0, 0, DOOR_TYPE_ROOM, BOUNDARY_NONE } // END }; class instance_halls_of_stone : public InstanceMapScript @@ -90,7 +90,7 @@ class instance_halls_of_stone : public InstanceMapScript case GO_TRIBUNAL_CHEST: case GO_TRIBUNAL_CHEST_HERO: TribunalChestGUID = go->GetGUID(); - if (GetBossState(DATA_BRANN_EVENT) == DONE) + if (GetBossState(DATA_TRIBUNAL_OF_AGES) == DONE) go->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE); break; case GO_TRIBUNAL_SKY_FLOOR: @@ -156,7 +156,7 @@ class instance_halls_of_stone : public InstanceMapScript switch (type) { - case DATA_BRANN_EVENT: + case DATA_TRIBUNAL_OF_AGES: if (state == DONE) { if (GameObject* go = instance->GetGameObject(TribunalChestGUID)) @@ -178,7 +178,7 @@ class instance_halls_of_stone : public InstanceMapScript switch (bossId) { case DATA_SJONNIR: - if (GetBossState(DATA_BRANN_EVENT) != DONE) + if (GetBossState(DATA_TRIBUNAL_OF_AGES) != DONE) return false; break; default: diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_flame_leviathan.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_flame_leviathan.cpp index 23b86737f4c..a04c809f893 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_flame_leviathan.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_flame_leviathan.cpp @@ -482,40 +482,47 @@ class boss_flame_leviathan : public CreatureScript if (action && action <= 4) // Tower destruction, debuff leviathan loot and reduce active tower count { if (me->HasLootMode(LOOT_MODE_DEFAULT | LOOT_MODE_HARD_MODE_1 | LOOT_MODE_HARD_MODE_2 | LOOT_MODE_HARD_MODE_3 | LOOT_MODE_HARD_MODE_4) && ActiveTowersCount == 4) - { me->RemoveLootMode(LOOT_MODE_HARD_MODE_4); - --ActiveTowersCount; - } + if (me->HasLootMode(LOOT_MODE_DEFAULT | LOOT_MODE_HARD_MODE_1 | LOOT_MODE_HARD_MODE_2 | LOOT_MODE_HARD_MODE_3) && ActiveTowersCount == 3) - { me->RemoveLootMode(LOOT_MODE_HARD_MODE_3); - --ActiveTowersCount; - } + if (me->HasLootMode(LOOT_MODE_DEFAULT | LOOT_MODE_HARD_MODE_1 | LOOT_MODE_HARD_MODE_2) && ActiveTowersCount == 2) - { me->RemoveLootMode(LOOT_MODE_HARD_MODE_2); - --ActiveTowersCount; - } + if (me->HasLootMode(LOOT_MODE_DEFAULT | LOOT_MODE_HARD_MODE_1) && ActiveTowersCount == 1) - { me->RemoveLootMode(LOOT_MODE_HARD_MODE_1); - --ActiveTowersCount; - } } switch (action) { case ACTION_TOWER_OF_STORM_DESTROYED: - towerOfStorms = false; + if (towerOfStorms) + { + towerOfStorms = false; + --ActiveTowersCount; + } break; case ACTION_TOWER_OF_FROST_DESTROYED: - towerOfFrost = false; + if (towerOfFrost) + { + towerOfFrost = false; + --ActiveTowersCount; + } break; case ACTION_TOWER_OF_FLAMES_DESTROYED: - towerOfFlames = false; + if (towerOfFlames) + { + towerOfFlames = false; + --ActiveTowersCount; + } break; case ACTION_TOWER_OF_LIFE_DESTROYED: - towerOfLife = false; + if (towerOfLife) + { + towerOfLife = false; + --ActiveTowersCount; + } break; case ACTION_START_HARD_MODE: // Activate hard-mode enable all towers, apply buffs on leviathan ActiveTowers = true; diff --git a/src/server/scripts/Northrend/VioletHold/instance_violet_hold.cpp b/src/server/scripts/Northrend/VioletHold/instance_violet_hold.cpp index ea50969ecb8..ef9ad806c89 100644 --- a/src/server/scripts/Northrend/VioletHold/instance_violet_hold.cpp +++ b/src/server/scripts/Northrend/VioletHold/instance_violet_hold.cpp @@ -794,9 +794,11 @@ public: trigger->CastSpell(trigger, spellInfoLightning, true, 0, 0, trigger->GetGUID()); // Kill all mobs registered with SetGuidData(ADD_TRASH_MOB) - for (GuidSet::const_iterator itr = trashMobs.begin(); itr != trashMobs.end(); ++itr) + for (GuidSet::const_iterator itr = trashMobs.begin(); itr != trashMobs.end();) { Creature* creature = instance->GetCreature(*itr); + // Increment the iterator before killing the creature because the kill will remove itr from trashMobs + ++itr; if (creature && creature->IsAlive()) trigger->Kill(creature); } diff --git a/src/server/scripts/Northrend/zone_borean_tundra.cpp b/src/server/scripts/Northrend/zone_borean_tundra.cpp index 4aea36e3fe7..280a94aa21f 100644 --- a/src/server/scripts/Northrend/zone_borean_tundra.cpp +++ b/src/server/scripts/Northrend/zone_borean_tundra.cpp @@ -1706,7 +1706,7 @@ public: break; } creature->SetStandState(UNIT_STAND_STATE_STAND); - creature->AI()->Talk(SAY_1); + creature->AI()->Talk(SAY_1, player); ENSURE_AI(npc_escortAI, (creature->AI()))->Start(true, false, player->GetGUID()); } return true; diff --git a/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/instance_serpent_shrine.cpp b/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/instance_serpent_shrine.cpp index 1657b178327..d7ba0a34939 100644 --- a/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/instance_serpent_shrine.cpp +++ b/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/instance_serpent_shrine.cpp @@ -275,8 +275,8 @@ class instance_serpent_shrine : public InstanceMapScript if (data == DONE) { HandleGameObject(BridgePart[0], true); - HandleGameObject(BridgePart[0], true); - HandleGameObject(BridgePart[0], true); + HandleGameObject(BridgePart[1], true); + HandleGameObject(BridgePart[2], true); } break; case DATA_TRASH: diff --git a/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_nethekurse.cpp b/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_nethekurse.cpp index fb44a403d86..dfc5f5992a6 100644 --- a/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_nethekurse.cpp +++ b/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_nethekurse.cpp @@ -108,6 +108,7 @@ class boss_grand_warlock_nethekurse : public CreatureScript void Reset() override { + _Reset(); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); Initialize(); @@ -115,9 +116,8 @@ class boss_grand_warlock_nethekurse : public CreatureScript void JustDied(Unit* /*killer*/) override { + _JustDied(); Talk(SAY_DIE); - - instance->SetBossState(DATA_NETHEKURSE, DONE); } void SetData(uint32 data, uint32 value) override diff --git a/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warbringer_omrogg.cpp b/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warbringer_omrogg.cpp index 7d00cd97126..a950882eddd 100644 --- a/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warbringer_omrogg.cpp +++ b/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warbringer_omrogg.cpp @@ -160,6 +160,7 @@ class boss_warbringer_omrogg : public CreatureScript void Reset() override { + _Reset(); if (Unit* LeftHead = ObjectAccessor::GetUnit(*me, LeftHeadGUID)) { LeftHead->setDeathState(JUST_DIED); @@ -257,14 +258,14 @@ class boss_warbringer_omrogg : public CreatureScript Creature* LeftHead = ObjectAccessor::GetCreature(*me, LeftHeadGUID); Creature* RightHead = ObjectAccessor::GetCreature(*me, RightHeadGUID); + _JustDied(); + if (!LeftHead || !RightHead) return; LeftHead->AI()->Talk(YELL_DIE_L); RightHead->AI()->SetData(SETDATA_DATA, SETDATA_YELL); - - instance->SetBossState(DATA_OMROGG, DONE); } void UpdateAI(uint32 diff) override diff --git a/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warchief_kargath_bladefist.cpp b/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warchief_kargath_bladefist.cpp index b44ae46c78c..21ed710f4d8 100644 --- a/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warchief_kargath_bladefist.cpp +++ b/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/boss_warchief_kargath_bladefist.cpp @@ -35,7 +35,10 @@ enum Says { SAY_AGGRO = 0, SAY_SLAY = 1, - SAY_DEATH = 2 + SAY_DEATH = 2, + + SAY_CALL_EXECUTIONER_A = 3, + SAY_CALL_EXECUTIONER_H = 4 }; enum Spells @@ -84,10 +87,28 @@ class boss_warchief_kargath_bladefist : public CreatureScript resetcheck_timer = 5000; } + void SetData(uint32 type, uint32 data) override + { + if (type == 1) + { + switch (data) + { + case ALLIANCE: + Talk(SAY_CALL_EXECUTIONER_A); + break; + case HORDE: + Talk(SAY_CALL_EXECUTIONER_H); + break; + default: + break; + } + } + } + void Reset() override { removeAdds(); - + _Reset(); me->SetSpeed(MOVE_RUN, 2); me->SetWalk(false); @@ -96,10 +117,9 @@ class boss_warchief_kargath_bladefist : public CreatureScript void JustDied(Unit* /*killer*/) override { + _JustDied(); Talk(SAY_DEATH); removeAdds(); - - instance->SetBossState(DATA_KARGATH, DONE); } void EnterCombat(Unit* /*who*/) override diff --git a/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/instance_shattered_halls.cpp b/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/instance_shattered_halls.cpp index c6b08bdada1..6939b15585a 100644 --- a/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/instance_shattered_halls.cpp +++ b/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/instance_shattered_halls.cpp @@ -24,9 +24,30 @@ SDCategory: Hellfire Citadel, Shattered Halls EndScriptData */ #include "ScriptMgr.h" +#include "ScriptedCreature.h" +#include "SpellScript.h" +#include "SpellAuraEffects.h" #include "InstanceScript.h" +#include "Player.h" +#include "SpellAuras.h" #include "shattered_halls.h" +enum Spells +{ + SPELL_CLEAVE = 15284, + + SPELL_EXECUTE_1 = 39288, + SPELL_EXECUTE_2, + SPELL_EXECUTE_3 +}; + +DoorData const doorData[] = +{ + {GO_GRAND_WARLOCK_CHAMBER_DOOR_1, DATA_NETHEKURSE, DOOR_TYPE_PASSAGE, BOUNDARY_S }, + {GO_GRAND_WARLOCK_CHAMBER_DOOR_2, DATA_NETHEKURSE, DOOR_TYPE_PASSAGE, BOUNDARY_N }, + {0, 0, DOOR_TYPE_ROOM, BOUNDARY_NONE} +}; + class instance_shattered_halls : public InstanceMapScript { public: @@ -43,6 +64,43 @@ class instance_shattered_halls : public InstanceMapScript { SetHeaders(DataHeader); SetBossNumber(EncounterCount); + LoadDoorData(doorData); + executionTimer = 0; + executed = 0; + _team = 0; + } + + void OnPlayerEnter(Player* player) override + { + Aura* ex = nullptr; + + if (!_team) + _team = player->GetTeam(); + + player->RemoveAurasDueToSpell(SPELL_EXECUTE_1); + player->RemoveAurasDueToSpell(SPELL_EXECUTE_2); + player->RemoveAurasDueToSpell(SPELL_EXECUTE_3); + + if (!executionTimer || executionerGUID.IsEmpty()) + return; + + switch (executed) + { + case 0: + ex = player->AddAura(SPELL_EXECUTE_1, player); + break; + case 1: + ex = player->AddAura(SPELL_EXECUTE_2, player); + break; + case 2: + ex = player->AddAura(SPELL_EXECUTE_3, player); + break; + default: + break; + } + + if (ex) + ex->SetDuration(executionTimer); } void OnGameObjectCreate(GameObject* go) override @@ -50,21 +108,53 @@ class instance_shattered_halls : public InstanceMapScript switch (go->GetEntry()) { case GO_GRAND_WARLOCK_CHAMBER_DOOR_1: - nethekurseDoor1GUID = go->GetGUID(); + case GO_GRAND_WARLOCK_CHAMBER_DOOR_2: + AddDoor(go, true); + default: break; + } + } + + void OnGameObjectRemove(GameObject* go) override + { + switch (go->GetEntry()) + { + case GO_GRAND_WARLOCK_CHAMBER_DOOR_1: case GO_GRAND_WARLOCK_CHAMBER_DOOR_2: - nethekurseDoor2GUID = go->GetGUID(); + AddDoor(go, false); + default: break; } } void OnCreatureCreate(Creature* creature) override { + if (!_team) + { + Map::PlayerList const &players = instance->GetPlayers(); + if (!players.isEmpty()) + if (Player* player = players.begin()->GetSource()) + _team = player->GetTeam(); + } + switch (creature->GetEntry()) { case NPC_GRAND_WARLOCK_NETHEKURSE: nethekurseGUID = creature->GetGUID(); break; + case NPC_KARGATH_BLADEFIST: + kargathGUID = creature->GetGUID(); + break; + case NPC_RANDY_WHIZZLESPROCKET: + if (_team == HORDE) + creature->UpdateEntry(NPC_DRISELLA); + break; + case NPC_SHATTERED_EXECUTIONER: + executionTimer = 55 * MINUTE * IN_MILLISECONDS; + DoCastSpellOnPlayers(SPELL_EXECUTE_1); + executionerGUID = creature->GetGUID(); + SaveToDB(); + break; } } @@ -75,18 +165,20 @@ class instance_shattered_halls : public InstanceMapScript switch (type) { - case DATA_NETHEKURSE: - if (state == IN_PROGRESS) + case DATA_SHATTERED_EXECUTIONER: + if (state == DONE) { - HandleGameObject(nethekurseDoor1GUID, false); - HandleGameObject(nethekurseDoor2GUID, false); - } - else - { - HandleGameObject(nethekurseDoor1GUID, true); - HandleGameObject(nethekurseDoor2GUID, true); + DoRemoveAurasDueToSpellOnPlayers(SPELL_EXECUTE_1); + DoRemoveAurasDueToSpellOnPlayers(SPELL_EXECUTE_2); + DoRemoveAurasDueToSpellOnPlayers(SPELL_EXECUTE_3); + executionTimer = 0; + SaveToDB(); } break; + case DATA_KARGATH: + if (Creature* executioner = instance->GetCreature(executionerGUID)) + executioner->AI()->Reset(); + break; case DATA_OMROGG: break; } @@ -100,24 +192,305 @@ class instance_shattered_halls : public InstanceMapScript case NPC_GRAND_WARLOCK_NETHEKURSE: return nethekurseGUID; break; - case GO_GRAND_WARLOCK_CHAMBER_DOOR_1: - return nethekurseDoor1GUID; + case NPC_KARGATH_BLADEFIST: + return kargathGUID; break; - case GO_GRAND_WARLOCK_CHAMBER_DOOR_2: - return nethekurseDoor2GUID; + case NPC_SHATTERED_EXECUTIONER: + return executionerGUID; + break; + default: + return ObjectGuid::Empty; + break; + } + } + + void WriteSaveDataMore(std::ostringstream& data) override + { + if (!instance->IsHeroic()) + return; + + data << uint32(executed) << ' ' + << executionTimer << ' '; + } + + void ReadSaveDataMore(std::istringstream& data) override + { + if (!instance->IsHeroic()) + return; + + uint32 readbuff; + data >> readbuff; + executed = uint8(readbuff); + data >> readbuff; + + if (executed > VictimCount) + { + executed = VictimCount; + executionTimer = 0; + return; + } + + if (!readbuff) + return; + + Creature* executioner = nullptr; + + instance->LoadGrid(Executioner.GetPositionX(), Executioner.GetPositionY()); + if (Creature* kargath = instance->GetCreature(kargathGUID)) + if (executionerGUID.IsEmpty()) + executioner = kargath->SummonCreature(NPC_SHATTERED_EXECUTIONER, Executioner); + + if (executioner) + for (uint8 i = executed; i < VictimCount; ++i) + executioner->SummonCreature(executionerVictims[i](GetData(DATA_TEAM_IN_INSTANCE)), executionerVictims[i].GetPos()); + + executionTimer = readbuff; + } + + uint32 GetData(uint32 type) const override + { + switch (type) + { + case DATA_PRISONERS_EXECUTED: + return executed; + break; + case DATA_TEAM_IN_INSTANCE: + return _team; + break; + default: + return 0; break; } - return ObjectGuid::Empty; + } + + void Update(uint32 diff) override + { + if (!executionTimer) + return; + + if (executionTimer <= diff) + { + switch (++executed) + { + case 1: + DoRemoveAurasDueToSpellOnPlayers(SPELL_EXECUTE_1); + DoCastSpellOnPlayers(SPELL_EXECUTE_2); + executionTimer = 10 * MINUTE * IN_MILLISECONDS; + break; + case 2: + DoRemoveAurasDueToSpellOnPlayers(SPELL_EXECUTE_2); + DoCastSpellOnPlayers(SPELL_EXECUTE_3); + executionTimer = 15 * MINUTE * IN_MILLISECONDS; + break; + default: + DoRemoveAurasDueToSpellOnPlayers(SPELL_EXECUTE_3); + executionTimer = 0; + break; + } + + if (Creature* executioner = instance->GetCreature(executionerGUID)) + executioner->AI()->SetData(1, executed); + + SaveToDB(); + } + else + executionTimer -= diff; } protected: ObjectGuid nethekurseGUID; - ObjectGuid nethekurseDoor1GUID; - ObjectGuid nethekurseDoor2GUID; + ObjectGuid kargathGUID; + ObjectGuid executionerGUID; + + uint8 executed; + uint32 executionTimer; + uint32 _team; + }; +}; + +class at_nethekurse_exit : public AreaTriggerScript +{ + public: + at_nethekurse_exit() : AreaTriggerScript("at_nethekurse_exit") { }; + + bool OnTrigger(Player* player, AreaTriggerEntry const*) override + { + if (InstanceScript* is = player->GetInstanceScript()) + { + if (is->instance->IsHeroic()) + { + Creature* executioner = nullptr; + + is->instance->LoadGrid(Executioner.GetPositionX(), Executioner.GetPositionY()); + if (Creature* kargath = ObjectAccessor::GetCreature(*player, is->GetGuidData(NPC_KARGATH_BLADEFIST))) + { + if (is->GetGuidData(NPC_SHATTERED_EXECUTIONER).IsEmpty()) + { + executioner = kargath->SummonCreature(NPC_SHATTERED_EXECUTIONER, Executioner); + kargath->AI()->SetData(1, is->GetData(DATA_TEAM_IN_INSTANCE)); + } + } + + if (executioner) + for (uint8 i = 0; i < VictimCount; ++i) + executioner->SummonCreature(executionerVictims[i](is->GetData(DATA_TEAM_IN_INSTANCE)), executionerVictims[i].GetPos()); + } + } + + return false; + } +}; + +class boss_shattered_executioner : public CreatureScript +{ + public: + boss_shattered_executioner() : CreatureScript("boss_shattered_executioner") { } + + struct boss_shattered_executionerAI : public BossAI + { + boss_shattered_executionerAI(Creature* creature) : BossAI(creature, DATA_SHATTERED_EXECUTIONER) + { + Initialize(); + }; + + void Initialize() + { + cleaveTimer = 500; + me->ResetLootMode(); + switch (instance->GetData(DATA_PRISONERS_EXECUTED)) + { + case 0: + me->AddLootMode(LOOT_MODE_HARD_MODE_3); + case 1: + me->AddLootMode(LOOT_MODE_HARD_MODE_2); + case 2: + me->AddLootMode(LOOT_MODE_HARD_MODE_1); + } + } + + void Reset() override + { + _Reset(); + if (instance->GetBossState(DATA_KARGATH) == DONE) + me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC); + else + me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC); + + Initialize(); + } + + void JustSummoned(Creature*) override { } + + void JustDied(Unit*) override + { + _JustDied(); + Map::PlayerList const &players = instance->instance->GetPlayers(); + for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr) + { + Player* pl = itr->GetSource(); + uint32 qId = pl->GetTeam() == ALLIANCE ? QUEST_IMPRISONED_A : QUEST_IMPRISONED_H; + if (pl->GetQuestStatus(qId) != QUEST_STATUS_NONE && pl->GetQuestStatus(qId) != QUEST_STATUS_FAILED) + pl->CompleteQuest(qId); + } + } + + void SetData(uint32 type, uint32 data) override + { + if (type == 1) + { + uint32 entry = executionerVictims[data - 1](instance->GetData(DATA_TEAM_IN_INSTANCE)); + if (Creature* victim = me->FindNearestCreature(entry, 30.0f, true)) + me->Kill(victim); + + if (data == 1) + { + Map::PlayerList const &players = instance->instance->GetPlayers(); + for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr) + { + Player* pl = itr->GetSource(); + uint32 qId = pl->GetTeam() == ALLIANCE ? QUEST_IMPRISONED_A : QUEST_IMPRISONED_H; + if (pl->GetQuestStatus(qId) == QUEST_STATUS_INCOMPLETE) + pl->FailQuest(qId); + } + } + + switch (data) + { + case 3: + me->RemoveLootMode(LOOT_MODE_HARD_MODE_1); + case 2: + me->RemoveLootMode(LOOT_MODE_HARD_MODE_2); + case 1: + me->RemoveLootMode(LOOT_MODE_HARD_MODE_3); + default: + break; + } + } + } + + void UpdateAI(uint32 diff) override + { + if (!UpdateVictim()) + return; + + if (cleaveTimer <= diff) + { + DoCast(SPELL_CLEAVE); + cleaveTimer = urand(5000, 7000); + } + else + cleaveTimer -= diff; + + DoMeleeAttackIfReady(); + } + private: + uint32 cleaveTimer; + }; + + CreatureAI* GetAI(Creature* creature) const override + { + return GetInstanceAI<boss_shattered_executionerAI>(creature); + } +}; + +class spell_kargath_executioner : public SpellScriptLoader +{ + public: + spell_kargath_executioner() : SpellScriptLoader("spell_kargath_executioner") { } + + class spell_kargath_executioner_AuraScript : public AuraScript + { + PrepareAuraScript(spell_kargath_executioner_AuraScript); + + bool AreaCheck(Unit* target) + { + if (target->GetMap()->GetId() != 540) + return false; + + return true; + } + + bool Load() override + { + return GetCaster()->GetTypeId() == TYPEID_PLAYER; + } + + void Register() override + { + DoCheckAreaTarget += AuraCheckAreaTargetFn(spell_kargath_executioner_AuraScript::AreaCheck); + } }; + + AuraScript* GetAuraScript() const override + { + return new spell_kargath_executioner_AuraScript(); + } }; void AddSC_instance_shattered_halls() { new instance_shattered_halls(); + new at_nethekurse_exit(); + new boss_shattered_executioner(); + new spell_kargath_executioner(); } diff --git a/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/shattered_halls.h b/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/shattered_halls.h index 90cbbe2a438..adc07bec2ff 100644 --- a/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/shattered_halls.h +++ b/src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/shattered_halls.h @@ -21,18 +21,41 @@ #define DataHeader "SH" -uint32 const EncounterCount = 3; +uint32 const EncounterCount = 4; +uint32 const VictimCount = 3; enum DataTypes { - DATA_NETHEKURSE = 1, - DATA_OMROGG = 2, - DATA_KARGATH = 3 + DATA_NETHEKURSE = 0, + DATA_OMROGG = 1, + DATA_KARGATH = 2, + + DATA_SHATTERED_EXECUTIONER = 3, + DATA_PRISONERS_EXECUTED = 4, + + DATA_TEAM_IN_INSTANCE = 5 }; enum CreatureIds { - NPC_GRAND_WARLOCK_NETHEKURSE = 16807 + NPC_GRAND_WARLOCK_NETHEKURSE = 16807, + NPC_KARGATH_BLADEFIST = 16808, + + NPC_SHATTERED_EXECUTIONER = 17301, + + // Alliance Ids + NPC_RANDY_WHIZZLESPROCKET = 17288, + + NPC_CAPTAIN_ALINA = 17290, + NPC_ALLIANCE_VICTIM_1 = 17289, + NPC_ALLIANCE_VICTIM_2 = 17292, + + // Horde Ids + NPC_DRISELLA = 17294, + + NPC_CAPTAIN_BONESHATTER = 17296, + NPC_HORDE_VICTIM_1 = 17295, + NPC_HORDE_VICTIM_2 = 17297 }; enum GameobjectIds @@ -41,4 +64,33 @@ enum GameobjectIds GO_GRAND_WARLOCK_CHAMBER_DOOR_2 = 182540 }; +enum QuestIds +{ + QUEST_IMPRISONED_A = 9524, + QUEST_IMPRISONED_H = 9525 +}; + +const Position Executioner = { 152.8524f, -83.63912f, 2.021005f, 0.06981317f }; + +struct FactionSpawnerHelper +{ + FactionSpawnerHelper(uint32 allianceEntry, uint32 hordeEntry, const Position& pos) : _allianceNPC(allianceEntry), _hordeNPC(hordeEntry), _spawnPos(pos) { } + + inline uint32 operator()(uint32 teamID) const { return teamID == ALLIANCE ? _allianceNPC : _hordeNPC; } + inline const Position GetPos() const { return _spawnPos; } + +private: + const uint32 _allianceNPC; + const uint32 _hordeNPC; + const Position _spawnPos; +}; + +const FactionSpawnerHelper executionerVictims[VictimCount] = +{ + { NPC_CAPTAIN_ALINA, NPC_CAPTAIN_BONESHATTER, { 138.8807f, -84.22707f, 1.992269f, 0.06981317f } }, + { NPC_ALLIANCE_VICTIM_1, NPC_HORDE_VICTIM_1, { 151.2411f, -91.02930f, 2.019741f, 1.57079600f } }, + { NPC_ALLIANCE_VICTIM_2, NPC_HORDE_VICTIM_2, { 151.0459f, -77.51981f, 2.021008f, 4.74729500f } } +}; + + #endif diff --git a/src/server/scripts/Outland/zone_hellfire_peninsula.cpp b/src/server/scripts/Outland/zone_hellfire_peninsula.cpp index 2a568a84a7c..471c776d54b 100644 --- a/src/server/scripts/Outland/zone_hellfire_peninsula.cpp +++ b/src/server/scripts/Outland/zone_hellfire_peninsula.cpp @@ -420,10 +420,483 @@ public: } }; +enum ExorcismSpells +{ + SPELL_JULES_GOES_PRONE = 39283, + SPELL_JULES_THREATENS_AURA = 39284, + SPELL_JULES_GOES_UPRIGHT = 39294, + SPELL_JULES_VOMITS_AURA = 39295, + + SPELL_BARADAS_COMMAND = 39277, + SPELL_BARADA_FALTERS = 39278, +}; + +enum ExorcismTexts +{ + SAY_BARADA_1 = 0, + SAY_BARADA_2 = 1, + SAY_BARADA_3 = 2, + SAY_BARADA_4 = 3, + SAY_BARADA_5 = 4, + SAY_BARADA_6 = 5, + SAY_BARADA_7 = 6, + SAY_BARADA_8 = 7, + + SAY_JULES_1 = 0, + SAY_JULES_2 = 1, + SAY_JULES_3 = 2, + SAY_JULES_4 = 3, + SAY_JULES_5 = 4, +}; + +Position const exorcismPos[11] = +{ + { -707.123f, 2751.686f, 101.592f, 4.577416f }, //Barada Waypoint-1 0 + { -710.731f, 2749.075f, 101.592f, 1.513286f }, //Barada Cast position 1 + { -710.332f, 2754.394f, 102.948f, 3.207566f }, //Jules 2 + { -714.261f, 2747.754f, 103.391f, 0.0f }, //Jules Waypoint-1 3 + { -713.113f, 2750.194f, 103.391f, 0.0f }, //Jules Waypoint-2 4 + { -710.385f, 2750.896f, 103.391f, 0.0f }, //Jules Waypoint-3 5 + { -708.309f, 2750.062f, 103.391f, 0.0f }, //Jules Waypoint-4 6 + { -707.401f, 2747.696f, 103.391f, 0.0f }, //Jules Waypoint-5 7 + { -708.591f, 2745.266f, 103.391f, 0.0f }, //Jules Waypoint-6 8 + { -710.597f, 2744.035f, 103.391f, 0.0f }, //Jules Waypoint-7 9 + { -713.089f, 2745.302f, 103.391f, 0.0f }, //Jules Waypoint-8 10 +}; + +enum ExorcismMisc +{ + NPC_DARKNESS_RELEASED = 22507, + NPC_FOUL_PURGE = 22506, + NPC_COLONEL_JULES = 22432, + + BARADAS_GOSSIP_MESSAGE = 10683, + + QUEST_THE_EXORCISM_OF_COLONEL_JULES = 10935, + + ACTION_START_EVENT = 1, + ACTION_JULES_HOVER = 2, + ACTION_JULES_FLIGHT = 3, + ACTION_JULES_MOVE_HOME = 4, +}; + +enum ExorcismEvents +{ + EVENT_BARADAS_TALK = 1, + + //Colonel Jules + EVENT_SUMMON_SKULL = 1, +}; + +/*###### +## npc_barada +######*/ + +class npc_barada : public CreatureScript +{ +public: + npc_barada() : CreatureScript("npc_barada") { } + + struct npc_baradaAI : public ScriptedAI + { + npc_baradaAI(Creature* creature) : ScriptedAI(creature) + { + Initialize(); + } + + void Initialize() + { + step = 0; + } + + void Reset() override + { + events.Reset(); + Initialize(); + + playerGUID.Clear(); + me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED); + } + + void sGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override + { + player->PlayerTalkClass->ClearMenus(); + switch (gossipListId) + { + case 1: + player->PlayerTalkClass->SendCloseGossip(); + me->AI()->Talk(SAY_BARADA_1); + me->AI()->DoAction(ACTION_START_EVENT); + break; + default: + break; + } + } + + void DoAction(int32 action) override + { + if (action == ACTION_START_EVENT) + { + if (Creature* jules = me->FindNearestCreature(NPC_COLONEL_JULES, 20.0f, true)) + { + julesGUID = jules->GetGUID(); + jules->AI()->Talk(SAY_JULES_1); + } + + me->GetMotionMaster()->MovePoint(0, exorcismPos[1]); + Talk(SAY_BARADA_2); + + me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED); + } + } + + void MovementInform(uint32 type, uint32 id) override + { + if (type != POINT_MOTION_TYPE) + return; + + if (id == 0) + me->GetMotionMaster()->MovePoint(1, exorcismPos[1]); + + if (id == 1) + events.ScheduleEvent(EVENT_BARADAS_TALK, 2000); + } + + void JustDied(Unit* /*killer*/) override + { + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + { + jules->AI()->DoAction(ACTION_JULES_MOVE_HOME); + jules->RemoveAllAuras(); + } + } + + void UpdateAI(uint32 diff) override + { + events.Update(diff); + + while (uint32 eventId = events.ExecuteEvent()) + { + switch (eventId) + { + case EVENT_BARADAS_TALK: + switch (step) + { + case 0: + me->SetFacingTo(1.513286f); + + me->HandleEmoteCommand(EMOTE_ONESHOT_KNEEL); + events.ScheduleEvent(EVENT_BARADAS_TALK, 3000); + step++; + break; + case 1: + DoCast(SPELL_BARADAS_COMMAND); + events.ScheduleEvent(EVENT_BARADAS_TALK, 5000); + step++; + break; + case 2: + Talk(SAY_BARADA_3); + events.ScheduleEvent(EVENT_BARADAS_TALK, 7000); + step++; + break; + case 3: + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + jules->AI()->Talk(SAY_JULES_2); + + events.ScheduleEvent(EVENT_BARADAS_TALK, 18000); + step++; + break; + case 4: + DoCast(SPELL_BARADA_FALTERS); + me->HandleEmoteCommand(EMOTE_STAND_STATE_NONE); + + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + jules->AI()->DoAction(ACTION_JULES_HOVER); + + events.ScheduleEvent(EVENT_BARADAS_TALK, 11000); + step++; + break; + case 5: + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + jules->AI()->Talk(SAY_JULES_3); + + events.ScheduleEvent(EVENT_BARADAS_TALK, 13000); + step++; + break; + case 6: + Talk(SAY_BARADA_4); + events.ScheduleEvent(EVENT_BARADAS_TALK, 5000); + step++; + break; + case 7: + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + jules->AI()->Talk(SAY_JULES_3); + + events.ScheduleEvent(EVENT_BARADAS_TALK, 13000); + step++; + break; + case 8: + Talk(SAY_BARADA_4); + events.ScheduleEvent(EVENT_BARADAS_TALK, 12000); + step++; + break; + case 9: + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + jules->AI()->Talk(SAY_JULES_4); + + events.ScheduleEvent(EVENT_BARADAS_TALK, 12000); + step++; + break; + case 10: + Talk(SAY_BARADA_4); + events.ScheduleEvent(EVENT_BARADAS_TALK, 5000); + step++; + break; + case 11: + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + jules->AI()->DoAction(ACTION_JULES_FLIGHT); + + events.ScheduleEvent(EVENT_BARADAS_TALK, 10000); + step++; + break; + case 12: + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + jules->AI()->Talk(SAY_JULES_4); + + events.ScheduleEvent(EVENT_BARADAS_TALK, 8000); + step++; + break; + case 13: + Talk(SAY_BARADA_5); + events.ScheduleEvent(EVENT_BARADAS_TALK, 10000); + step++; + break; + case 14: + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + jules->AI()->Talk(SAY_JULES_4); + + events.ScheduleEvent(EVENT_BARADAS_TALK, 10000); + step++; + break; + case 15: + Talk(SAY_BARADA_6); + events.ScheduleEvent(EVENT_BARADAS_TALK, 10000); + step++; + break; + case 16: + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + jules->AI()->Talk(SAY_JULES_5); + + events.ScheduleEvent(EVENT_BARADAS_TALK, 10000); + step++; + break; + case 17: + Talk(SAY_BARADA_7); + events.ScheduleEvent(EVENT_BARADAS_TALK, 10000); + step++; + break; + case 18: + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + jules->AI()->Talk(SAY_JULES_3); + + events.ScheduleEvent(EVENT_BARADAS_TALK, 10000); + step++; + break; + case 19: + Talk(SAY_BARADA_7); + events.ScheduleEvent(EVENT_BARADAS_TALK, 10000); + step++; + break; + case 20: + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + { + jules->AI()->DoAction(ACTION_JULES_MOVE_HOME); + jules->RemoveAura(SPELL_JULES_VOMITS_AURA); + } + + events.ScheduleEvent(EVENT_BARADAS_TALK, 10000); + step++; + break; + case 21: + //End + if (Player* player = ObjectAccessor::FindPlayer(playerGUID)) + player->KilledMonsterCredit(NPC_COLONEL_JULES, ObjectGuid::Empty); + + if (Creature* jules = ObjectAccessor::GetCreature(*me, julesGUID)) + jules->RemoveAllAuras(); + + me->RemoveAura(SPELL_BARADAS_COMMAND); + me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED); + + Talk(SAY_BARADA_8); + me->GetMotionMaster()->MoveTargetedHome(); + EnterEvadeMode(); + break; + } + break; + } + } + } + + private: + EventMap events; + uint8 step; + ObjectGuid julesGUID; + ObjectGuid playerGUID; + }; + + CreatureAI* GetAI(Creature* creature) const override + { + return new npc_baradaAI(creature); + } +}; + +/*###### +## npc_colonel_jules +######*/ + +class npc_colonel_jules : public CreatureScript +{ +public: + npc_colonel_jules() : CreatureScript("npc_colonel_jules") { } + + struct npc_colonel_julesAI : public ScriptedAI + { + npc_colonel_julesAI(Creature* creature) : ScriptedAI(creature), summons(me) + { + Initialize(); + } + + void Initialize() + { + circleRounds = 0; + point = 0; + } + + void Reset() override + { + events.Reset(); + + summons.DespawnAll(); + circleRounds = 0; + point = 3; + wpreached = false; + } + + void DoAction(int32 action) override + { + switch (action) + { + case ACTION_JULES_HOVER: + me->AddAura(SPELL_JULES_GOES_PRONE, me); + me->AddAura(SPELL_JULES_THREATENS_AURA, me); + + me->SetCanFly(true); + me->SetSpeed(MOVE_RUN, 0.2f); + + me->SetFacingTo(3.207566f); + me->GetMotionMaster()->MoveJump(exorcismPos[2], 2.0f, 2.0f); + + events.ScheduleEvent(EVENT_SUMMON_SKULL, 10000); + break; + case ACTION_JULES_FLIGHT: + circleRounds++; + + me->RemoveAura(SPELL_JULES_GOES_PRONE); + + me->AddAura(SPELL_JULES_GOES_UPRIGHT, me); + me->AddAura(SPELL_JULES_VOMITS_AURA, me); + + wpreached = true; + me->GetMotionMaster()->MovePoint(point, exorcismPos[point]); + break; + case ACTION_JULES_MOVE_HOME: + wpreached = false; + me->SetSpeed(MOVE_RUN, 1.0f); + me->GetMotionMaster()->MovePoint(11, exorcismPos[2]); + + events.CancelEvent(EVENT_SUMMON_SKULL); + break; + } + } + + void JustSummoned(Creature* summon) override + { + summons.Summon(summon); + summon->GetMotionMaster()->MoveRandom(10.0f); + } + + void MovementInform(uint32 type, uint32 id) override + { + if (type != POINT_MOTION_TYPE) + return; + + if (id < 10) + wpreached = true; + + if (id == 8) + { + for (uint8 i = 0; i < circleRounds; i++) + DoSummon(NPC_FOUL_PURGE, exorcismPos[8]); + } + + if (id == 10) + { + wpreached = true; + point = 3; + circleRounds++; + } + } + + void UpdateAI(uint32 diff) override + { + if (wpreached) + { + me->GetMotionMaster()->MovePoint(point, exorcismPos[point]); + point++; + wpreached = false; + } + + events.Update(diff); + + while (uint32 eventId = events.ExecuteEvent()) + { + switch (eventId) + { + case EVENT_SUMMON_SKULL: + uint8 summonCount = urand(1,3); + + for (uint8 i = 0; i < summonCount; i++) + me->SummonCreature(NPC_DARKNESS_RELEASED, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ() + 1.5f, 0, TEMPSUMMON_MANUAL_DESPAWN); + + events.ScheduleEvent(EVENT_SUMMON_SKULL, urand(10000, 15000)); + break; + } + } + } + + private: + EventMap events; + SummonList summons; + + uint8 circleRounds; + uint8 point; + + bool wpreached; + }; + + CreatureAI* GetAI(Creature* creature) const override + { + return new npc_colonel_julesAI(creature); + } +}; + void AddSC_hellfire_peninsula() { new npc_aeranas(); new npc_ancestral_wolf(); new npc_wounded_blood_elf(); new npc_fel_guard_hound(); + new npc_barada(); + new npc_colonel_jules(); } diff --git a/src/server/shared/Database/AdhocStatement.h b/src/server/shared/Database/AdhocStatement.h index 8d9365900d9..8195d9add98 100644 --- a/src/server/shared/Database/AdhocStatement.h +++ b/src/server/shared/Database/AdhocStatement.h @@ -40,4 +40,4 @@ class BasicStatementTask : public SQLOperation QueryResultPromise* m_result; }; -#endif
\ No newline at end of file +#endif diff --git a/src/server/shared/Database/Transaction.h b/src/server/shared/Database/Transaction.h index 43850b1d016..a51c96ea93b 100644 --- a/src/server/shared/Database/Transaction.h +++ b/src/server/shared/Database/Transaction.h @@ -61,8 +61,8 @@ class TransactionTask : public SQLOperation friend class DatabaseWorker; public: - TransactionTask(SQLTransaction trans) : m_trans(trans) { } ; - ~TransactionTask(){ }; + TransactionTask(SQLTransaction trans) : m_trans(trans) { } + ~TransactionTask() { } protected: bool Execute() override; diff --git a/src/server/shared/Define.h b/src/server/shared/Define.h index add7995ad8f..97e07cef8b3 100644 --- a/src/server/shared/Define.h +++ b/src/server/shared/Define.h @@ -78,9 +78,9 @@ #endif //!COREDEBUG #if COMPILER == COMPILER_GNU -# define ATTR_NORETURN __attribute__((noreturn)) -# define ATTR_PRINTF(F, V) __attribute__ ((format (printf, F, V))) -# define ATTR_DEPRECATED __attribute__((deprecated)) +# define ATTR_NORETURN __attribute__((__noreturn__)) +# define ATTR_PRINTF(F, V) __attribute__ ((__format__ (__printf__, F, V))) +# define ATTR_DEPRECATED __attribute__((__deprecated__)) #else //COMPILER != COMPILER_GNU # define ATTR_NORETURN # define ATTR_PRINTF(F, V) diff --git a/src/server/shared/Logging/Appender.cpp b/src/server/shared/Logging/Appender.cpp index ba23d879ec2..31db3ae1b86 100644 --- a/src/server/shared/Logging/Appender.cpp +++ b/src/server/shared/Logging/Appender.cpp @@ -88,7 +88,7 @@ void Appender::write(LogMessage* message) if (flags & APPENDER_FLAGS_PREFIX_LOGFILTERTYPE) ss << '[' << message->type << "] "; - message->prefix = std::move(ss.str()); + message->prefix = ss.str(); _write(message); } diff --git a/src/server/shared/Logging/AppenderFile.cpp b/src/server/shared/Logging/AppenderFile.cpp index 3892adbe3be..5a8d610a36b 100644 --- a/src/server/shared/Logging/AppenderFile.cpp +++ b/src/server/shared/Logging/AppenderFile.cpp @@ -55,7 +55,7 @@ void AppenderFile::_write(LogMessage const* message) FILE* file = OpenFile(namebuf, "a", backup || exceedMaxSize); if (!file) return; - fprintf(file, "%s%s", message->prefix.c_str(), message->text.c_str()); + fprintf(file, "%s%s\n", message->prefix.c_str(), message->text.c_str()); fflush(file); fileSize += uint64(message->Size()); fclose(file); diff --git a/src/server/shared/Networking/MessageBuffer.h b/src/server/shared/Networking/MessageBuffer.h index 90afaf35796..95e26974626 100644 --- a/src/server/shared/Networking/MessageBuffer.h +++ b/src/server/shared/Networking/MessageBuffer.h @@ -55,9 +55,9 @@ public: uint8* GetBasePointer() { return _storage.data(); } - uint8* GetReadPointer() { return &_storage[_rpos]; } + uint8* GetReadPointer() { return GetBasePointer() + _rpos; } - uint8* GetWritePointer() { return &_storage[_wpos]; } + uint8* GetWritePointer() { return GetBasePointer() + _wpos; } void ReadCompleted(size_type bytes) { _rpos += bytes; } diff --git a/src/server/shared/Networking/Socket.h b/src/server/shared/Networking/Socket.h index 396d4bb3aab..1989411bccb 100644 --- a/src/server/shared/Networking/Socket.h +++ b/src/server/shared/Networking/Socket.h @@ -50,6 +50,7 @@ public: virtual ~Socket() { + _closed = true; boost::system::error_code error; _socket.close(error); } @@ -97,26 +98,6 @@ public: std::bind(&Socket<T>::ReadHandlerInternal, this->shared_from_this(), std::placeholders::_1, std::placeholders::_2)); } - void ReadData(std::size_t size) - { - if (!IsOpen()) - return; - - boost::system::error_code error; - - std::size_t bytesRead = boost::asio::read(_socket, boost::asio::buffer(_readBuffer.GetWritePointer(), size), error); - - _readBuffer.WriteCompleted(bytesRead); - - if (error || bytesRead != size) - { - TC_LOG_DEBUG("network", "Socket::ReadData: %s errored with: %i (%s)", GetRemoteIpAddress().to_string().c_str(), error.value(), - error.message().c_str()); - - CloseSocket(); - } - } - void QueuePacket(MessageBuffer&& buffer, std::unique_lock<std::mutex>& guard) { _writeQueue.push(std::move(buffer)); diff --git a/src/server/shared/Threading/ProducerConsumerQueue.h b/src/server/shared/Threading/ProducerConsumerQueue.h index ab01568309b..e2f13e5c339 100644 --- a/src/server/shared/Threading/ProducerConsumerQueue.h +++ b/src/server/shared/Threading/ProducerConsumerQueue.h @@ -70,7 +70,9 @@ public: { std::unique_lock<std::mutex> lock(_queueLock); - _condition.wait(lock, [this]() { return !_queue.empty() || _shutdown; }); + // we could be using .wait(lock, predicate) overload here but some threading error analysis tools produce false positives + while (_queue.empty() && !_shutdown) + _condition.wait(lock); if (_queue.empty() || _shutdown) return; diff --git a/src/server/shared/Utilities/Util.h b/src/server/shared/Utilities/Util.h index 0a4e5e4a4a0..cd523511c1d 100644 --- a/src/server/shared/Utilities/Util.h +++ b/src/server/shared/Utilities/Util.h @@ -688,8 +688,9 @@ class EventMap /** * @name RepeatEvent - * @brief Repeats the mostly recently executed event. - * @param time Time until the event occurs. Equivalent to Repeat(urand(minTime, maxTime). + * @brief Repeats the mostly recently executed event, Equivalent to Repeat(urand(minTime, maxTime). + * @param minTime Minimum time until the event occurs. + * @param maxTime Maximum time until the event occurs. */ void Repeat(uint32 minTime, uint32 maxTime) { @@ -839,7 +840,7 @@ class EventMap /** * @name GetTimeUntilEvent * @brief Returns time in milliseconds until next event. - * @param Id of the event. + * @param eventId of the event. * @return Time of next event. */ uint32 GetTimeUntilEvent(uint32 eventId) const; diff --git a/src/tools/vmap4_extractor/vec3d.h b/src/tools/vmap4_extractor/vec3d.h index a0c22729052..211f5f26c72 100644 --- a/src/tools/vmap4_extractor/vec3d.h +++ b/src/tools/vmap4_extractor/vec3d.h @@ -103,7 +103,7 @@ public: float length() const { - return sqrt(x*x+y*y+z*z); + return std::sqrt(x*x+y*y+z*z); } Vec3D& normalize() @@ -209,7 +209,7 @@ public: float length() const { - return sqrt(x*x+y*y); + return std::sqrt(x*x+y*y); } Vec2D& normalize() |