From c43e1b8c0c3a17e48f1559bdfe13018aaab5008a Mon Sep 17 00:00:00 2001 From: Mike Delago <32778141+michaeldelago@users.noreply.github.com> Date: Sat, 9 Sep 2023 19:12:47 -0400 Subject: [PATCH 01/29] refactor(Apps/Dashboard): Remove Deno as a dependency to the dashboard (#16934) * remove deno as a dependency * use the ACORE_VERSION env var * I forgot client-data * accidentally removed too much * docker-cmd: extraneous parallel flag * typo * remove docker image prune -af the `docker image prune` removes the containers we just build. * fetch everything in the beginning --- .github/workflows/import_pending.yml | 26 ++- apps/bash_shared/deno.sh | 23 -- apps/bash_shared/includes.sh | 5 - apps/docker/docker-cmd.sh | 184 +++++++++++++++ apps/docker/docker-cmd.ts | 330 --------------------------- apps/installer/main.sh | 5 +- apps/installer/main.ts | 43 ---- apps/installer/utils.ts | 17 -- deps/deno/bin/.gitignore | 1 - deps/deno/bin/README.md | 3 - 10 files changed, 206 insertions(+), 431 deletions(-) delete mode 100644 apps/bash_shared/deno.sh create mode 100644 apps/docker/docker-cmd.sh delete mode 100644 apps/docker/docker-cmd.ts delete mode 100644 apps/installer/main.ts delete mode 100644 apps/installer/utils.ts delete mode 100644 deps/deno/bin/.gitignore delete mode 100644 deps/deno/bin/README.md diff --git a/.github/workflows/import_pending.yml b/.github/workflows/import_pending.yml index 80f3d7c5ec62e5..02a8c46b2677f9 100644 --- a/.github/workflows/import_pending.yml +++ b/.github/workflows/import_pending.yml @@ -14,21 +14,33 @@ jobs: - uses: actions/checkout@v3 with: persist-credentials: false - - name: Extract branch name - run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" - id: extract_branch + # If we're fetching all the history in a later step it makes sense to + # pre-load it now + fetch-depth: 0 + ref: ${{ github.ref_name }} + + - uses: denoland/setup-deno@v1 + with: + # Specifies latest 1.x + deno-version: "~1.0" + - name: Import and commit pending sql run: | git config user.email "azerothcorebot@gmail.com" && git config user.name "AzerothCoreBot" bash bin/acore-db-pendings - bash bin/acore-import-changelogs - git fetch --unshallow origin ${BRANCH} + deno apps/ci/ci-pending-changelogs.ts + git fetch --unshallow origin "${{ github.ref_name }}" git add -A . git commit -am "chore(DB): import pending files" -m "Referenced commit(s): ${GITHUB_SHA}" || true env: - BRANCH: ${{ steps.extract_branch.outputs.branch }} + # Noting that the branch name can only be master, as per the event + # triggering this action + BRANCH: ${{ github.ref_name }} + - name: Push changes uses: ad-m/github-push-action@fe38f0a751bf9149f0270cc1fe20bf9156854365 with: github_token: ${{ secrets.AC_GITHUB_TOKEN }} - branch: ${{ steps.extract_branch.outputs.branch }} + # Noting that the branch name can only be master, as per the event + # triggering this action + branch: ${{ github.ref_name }} diff --git a/apps/bash_shared/deno.sh b/apps/bash_shared/deno.sh deleted file mode 100644 index 1caaf6f802102a..00000000000000 --- a/apps/bash_shared/deno.sh +++ /dev/null @@ -1,23 +0,0 @@ -DENO_MIN_VERSION="1.26.0" - -function denoInstall() { - - { # try - echo "Deno version check:" && denoCmd upgrade --version $DENO_MIN_VERSION - } || - { # catch - echo "Installing Deno..." - # just one line of command that works on all OSes - # (temporary cd into AC_PATH_DEPS) - curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL="$AC_PATH_DEPS/deno" sh - } -} - -function denoCmd() { - [[ "$OSTYPE" = "msys" ]] && DENOEXEC="./deps/deno/bin/deno.exe" || DENOEXEC="./deps/deno/bin/deno" - (cd "$AC_PATH_ROOT" ; $DENOEXEC "$@") -} - -function denoRunFile() { - denoCmd run --allow-all --unstable "$@" -} diff --git a/apps/bash_shared/includes.sh b/apps/bash_shared/includes.sh index 22a4d91b7eede4..63593e4c56a827 100644 --- a/apps/bash_shared/includes.sh +++ b/apps/bash_shared/includes.sh @@ -13,9 +13,4 @@ source "$AC_PATH_DEPS/acore/bash-lib/src/event/hooks.sh" source "$AC_PATH_SHARED/common.sh" -source "$AC_PATH_SHARED/deno.sh" - -denoInstall - [[ "$OSTYPE" = "msys" ]] && AC_BINPATH_FULL="$BINPATH" || AC_BINPATH_FULL="$BINPATH/bin" - diff --git a/apps/docker/docker-cmd.sh b/apps/docker/docker-cmd.sh new file mode 100644 index 00000000000000..cf45b4abb6c4e3 --- /dev/null +++ b/apps/docker/docker-cmd.sh @@ -0,0 +1,184 @@ +#!/bin/bash + +# TODO(michaeldelago) decide if we need a wrapper like this around docker +# commands. +# +# Running the docker commands should be simple and familiar. +# Introducting extra steps through the dashboard can cause issues with people +# getting started, especially if they already know docker. +# +# If a new user knows docker, they will feel (pretty close) to right at home. +# If a new user doesn't know docker, it's easy to learn and the knowledge +# applies to much more than azerothcore + +set -euo pipefail + +COMPOSE_DOCKER_CLI_BUILD="1" +DOCKER_BUILDKIT="1" +# BUILDKIT_INLINE_CACHE="1" + +function usage () { + cat < start:app # Start the development worldserver and authserver +> start:app:d # Start the development worldserver and authserver in detached mode +> build # build the development worldserver and authserver +> pull # pull the development worldserver and authserver +> build:nocache # build the development worldserver and authserver without cache +> clean:build # clean build artifacts from the dev server +> client-data # download client data in the dev server +> dev:up start # the dev server +> dev:build # compile azerothcore using the dev server +> dev:dash # execute the dashboard in the dev server container +> dev:shell [ ARGS... ] # open a bash shell in the dev server +> prod:build # Build the service containers used by acore-docker +> prod:pull # Pull the containers used by acore-docker +> prod:up # Start the services used by acore-docker +> prod:up:d # start the services used by acore-docker in the background +> attach SERVICE # attach to a service currently running in docker compose +EOF +} + +# If no args, just spit usage and exit +[[ $# -eq 0 ]] && usage && exit + +# loop through commands passed +while [[ $# -gt 0 ]]; do + case "$1" in + start:app) + set -x + docker compose --profile app up + set +x + # pop the head off of the queue of args + # After this, the value of $1 is the value of $2 + shift + ;; + + start:app:d) + set -x + docker compose --profile app up -d + set +x + shift + ;; + + build) + set -x + docker compose --profile local --profile dev --profile dev-build build + docker compose --profile dev-build run --rm --no-deps ac-dev-build /bin/bash /azerothcore/apps/docker/docker-build-dev.sh + set +x + shift + ;; + + pull) + set -x + docker compose --profile local --profile dev --profile dev-build pull + docker image prune -f + set +x + shift + ;; + + build:nocache) + set -x + docker compose --profile local --profile dev --profile dev-build build --no-cache + docker image prune -f + docker compose run --rm --no-deps ac-dev-build /bin/bash /azerothcore/apps/docker/docker-build-dev.sh + set +x + shift + ;; + + clean:build) + set -x + docker image prune -f + docker compose run --rm --no-deps ac-dev-server bash acore.sh compiler clean + docker compose run --rm --no-deps ac-dev-server bash acore.sh compiler ccacheClean + set +x + shift + ;; + + client-data) + set -x + docker compose run --rm --no-deps ac-dev-server bash acore.sh client-data + set +x + shift + ;; + + dev:up) + set -x + docker compose up -d ac-dev-server + set +x + shift + ;; + + dev:build) + set -x + docker compose run --rm ac-dev-server bash acore.sh compiler build + set +x + shift + ;; + + dev:dash) + set -x + docker compose run --rm ac-dev-server bash /azerothcore/acore.sh ${@:2} + set +x + shift + ;; + + dev:shell) + set -x + docker compose up -d ac-dev-server + docker compose exec ac-dev-server bash ${@:2} + set +x + shift + ;; + + build:prod|prod:build) + set -x + docker compose --profile build + docker image prune -f + set +x + shift + ;; + + pull:prod|prod:pull) + set -x + docker compose --profile prod pull + set +x + shift + ;; + + prod:up|start:prod) + set -x + docker compose --profile prod-app up + set +x + shift + ;; + + prod:up:d|start:prod:d) + set -x + docker compose --profile prod-app up -d + set +x + shift + ;; + + attach) + SERVICE="$2" + set -x + docker compose attach "$SERVICE" + set +x + shift + shift # Second to pass the argument + ;; + + *) + echo "Unknown or empty arg" + usage + exit 1 + esac +done diff --git a/apps/docker/docker-cmd.ts b/apps/docker/docker-cmd.ts deleted file mode 100644 index e6a20b66e71321..00000000000000 --- a/apps/docker/docker-cmd.ts +++ /dev/null @@ -1,330 +0,0 @@ -import { Command } from "https://cdn.deno.land/cmd/versions/v1.2.0/raw/mod.ts"; -import * as ink from "https://deno.land/x/ink/mod.ts"; -import { - Input, - Select, -} from "https://deno.land/x/cliffy@v0.25.2/prompt/mod.ts"; -import * as semver from "https://deno.land/std@0.159.0/semver/mod.ts"; - -const program = new Command(); - -const env = { - COMPOSE_DOCKER_CLI_BUILD: "1", - DOCKER_BUILDKIT: "1", - // BUILDKIT_INLINE_CACHE: "1", -}; - -const MIN_COMPOSE_VERSION = "2.0.0"; - -program - .name("acore.sh docker") - .description("Shell scripts for docker") - .version("1.0.0"); - -shellCommandFactory( - "start:app", - "Startup the authserver and worldserver apps", - ["docker compose --profile app up"], - env -); - -shellCommandFactory( - "start:app:d", - "Startup the authserver and worldserver apps in detached mode", - ["docker compose --profile app up -d"], - env -); - -shellCommandFactory( - "build", - "Build the authserver and worldserver", - [ - "docker compose --profile local --profile dev --profile dev-build build --parallel", - "docker image prune -f", - "docker compose run --rm --no-deps ac-dev-build bash apps/docker/docker-build-dev.sh", - ], - env -); - -shellCommandFactory( - "pull", - "Pull build and local images", - [ - "docker compose --profile local --profile dev --profile dev-build pull --parallel", - "docker image prune -f", - ], - env -); - -shellCommandFactory( - "build:nocache", - "Build the authserver and worldserver without docker cache", - [ - "docker compose --profile local --profile dev --profile dev-build build --no-cache --parallel", - "docker image prune -f", - "docker compose run --rm --no-deps ac-dev-build bash apps/docker/docker-build-dev.sh", - ], - env -); - -shellCommandFactory( - "clean:build", - "Clean build files", - [ - "docker image prune -f", - `docker compose run --rm --no-deps ac-dev-server bash acore.sh compiler clean`, - `docker compose run --rm --no-deps ac-dev-server bash acore.sh compiler ccacheClean`, - ], - env -); - -shellCommandFactory( - "client-data", - "Download client data inside the ac-data volume", - ["docker compose run --rm --no-deps ac-dev-server bash acore.sh client-data"], - env -); - -shellCommandFactory( - "dev:up", - "Start the dev server container in background", - ["docker compose up -d ac-dev-server"], - env -); - -shellCommandFactory( - "dev:build", - "Build using the dev server", - ["docker compose run --rm ac-dev-server bash acore.sh compiler build"], - env -); - -shellCommandFactory( - "dev:dash [args...]", - "Execute acore dashboard within a running ac-dev-server", - ["docker compose run --rm ac-dev-server bash acore.sh"], - env -); - -shellCommandFactory( - "dev:shell [args...]", - "Open an interactive shell within the dev server", - [ - "docker compose up -d ac-dev-server", - "docker compose exec ac-dev-server bash", - ], - env -); - -shellCommandFactory( - "prod:build", - "[TEST ONLY] Build producion services", - ["docker compose --profile prod build --parallel", "docker image prune -f"], - env -); - -shellCommandFactory( - "prod:pull", - "[TEST ONLY] Pull production services from the remote registry", - ["docker compose --profile prod pull"], - env -); - -shellCommandFactory( - "prod:up", - "[TEST ONLY] Start production services (foreground)", - ["docker compose --profile prod-app up"], - env -); - -shellCommandFactory( - "prod:up:d", - "[TEST ONLY] Start production services (background)", - ["docker compose --profile prod-app up -d"], - env -); - -program - .command("attach [service]") - .description("attach to a service") - .action(async (service: string | undefined) => { - const { run } = Deno; - - let command = `docker compose ps`; - - if (service) { - command = `${command} ${service}`; - } - - console.log(ink.colorize(`>>>>> Running: ${command}`)); - - let cmd = command.split(" "); - const res = Deno.run({ - cmd, - cwd: process.cwd(), - stdout: "piped", - stderr: "piped", - }); - - const output = await res.output(); // "piped" must be set - - let services = new TextDecoder().decode(output).split("\n"); - - if (!services) { - console.error("No services available!"); - return; - } - - services.pop(); - services = services.slice(1); - - res.close(); // Don't forget to close it - - let selService: string; - if (services.length > 1) { - selService = await Select.prompt({ - message: `Select a service`, - options: services, - }); - } else { - selService = services[0]; - } - - if (!selService) { - console.log(`Service ${service} is not available`); - return; - } - - command = `docker attach ${selService.split(" ")[0]}`; - - console.log(ink.colorize(`>>>>> Running: ${command}`)); - - console.log( - ink.colorize( - "NOTE: you can detach from a container and leave it running using the CTRL-p CTRL-q key sequence." - ) - ); - - cmd = command.split(" "); - - const shellCmd = run({ - cmd, - cwd: process.cwd(), - }); - - await shellCmd.status(); - - shellCmd.close(); - }); - -program - .command("quit") - .description("Close docker command") - .action(() => { - process.exit(0); - }); - -/** - * - * @param name - * @param description - * @param commands you can pass one or more commands, they will be executed sequentially - * @returns - */ -function shellCommandFactory( - name: string, - description: string, - commands: string[], - env?: { [key: string]: string } -): Command { - return program - .command(name) - .description( - `${description}. Command: \n"${ink.colorize( - `${commands.join(" && ")}` - )}"\n` - ) - .action(async (args: string[] | undefined) => { - const { run } = Deno; - - for (const command of commands) { - console.log(ink.colorize(`>>>>> Running: ${command}`)); - - const cmd = command.split(" "); - - if (Array.isArray(args)) { - cmd.push(...args); - } - - const shellCmd = run({ - cmd, - cwd: process.cwd(), - env: { ...process.env, ...env }, - }); - - const status = await shellCmd.status(); - - if (!status.success) { - throw new Error(`Failed with error: ${status.code}, however, - it's not related to this Deno script directly. An error occurred within - the script called by the command itself`); - } - - shellCmd.close(); - } - }); -} - -async function checkDockerVersion() { - const { run } = Deno; - const dockerVerCmd = run({ - cmd: ["docker", "compose", "version"], - cwd: process.cwd(), - env: { ...process.env, ...env }, - stdout: "piped", - }); - - const output = await dockerVerCmd.output(); - const status = await dockerVerCmd.status(); - const outStr = new TextDecoder().decode(output); - - if (!status.success) { - return 'not installed?' - } - - const version = outStr.split(" ").pop()?.trim(); - - if (!version) return version; - - if (!semver.gte(version, MIN_COMPOSE_VERSION)) { - return version; - } - - return true; -} - -async function main() { - while (true) { - const version = await checkDockerVersion(); - if (version !== true) { - console.error( - ink.colorize(`ERROR: Your docker compose version (${version}) must be higher or equal to ${MIN_COMPOSE_VERSION}. Please install the new version of docker compose and try again`) - ); - return false - } - - if (Deno.args.length === 0) { - program.outputHelp(); - const command = await Input.prompt({ - message: "Enter the command:", - }); - console.log(command); - await program.parseAsync(command.split(" ")); - } else { - await program.parseAsync(Deno.args); - process.exit(0); - } - } -} - -main(); diff --git a/apps/installer/main.sh b/apps/installer/main.sh index 91d6cb1dc69472..eb0eb4f894b2d1 100644 --- a/apps/installer/main.sh +++ b/apps/installer/main.sh @@ -64,11 +64,12 @@ function _switch() { inst_simple_restarter authserver ;; ""|"dr"|"docker"|"13") - DOCKER=1 denoRunFile "$AC_PATH_APPS/docker/docker-cmd.ts" "${@:2}" + DOCKER=1 bash "$AC_PATH_ROOT/apps/docker/docker-cmd.sh" "${@:2}" exit ;; ""|"v"|"version"|"14") - denoRunFile "$AC_PATH_APPS/installer/main.ts" "version" + # denoRunFile "$AC_PATH_APPS/installer/main.ts" "version" + printf "AzerothCore Rev. %s\n" "$ACORE_VERSION" exit ;; ""|"quit"|"15") diff --git a/apps/installer/main.ts b/apps/installer/main.ts deleted file mode 100644 index 135ccc64521d5e..00000000000000 --- a/apps/installer/main.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Command } from "https://cdn.deno.land/cmd/versions/v1.2.0/raw/mod.ts"; -import { getAcoreReleaseVersion } from "./utils.ts"; -import { Input } from "https://deno.land/x/cliffy@v0.25.2/prompt/mod.ts"; - -const program = new Command(); - -program - .name("acore.sh") - .description("Shell scripts for docker") - .version("1.0.0"); - -// program -// .command("quit") -// .description("Close docker command") -// .action(() => { -// process.exit(0); -// }); - -program - .command("version") - .description("Get the version of the current AzerothCore revision") - .action(async () => { - console.log(await getAcoreReleaseVersion()); - }); - -async function main() { - let exit = false; - do { - if (Deno.args.length === 0) { - program.outputHelp(); - const command = await Input.prompt({ - message: "Enter the command:", - }); - console.log(command); - await program.parseAsync(command.split(" ")); - } else { - exit = true; - await program.parseAsync(Deno.args); - process.exit(0); - } - } while (!exit); -} -main(); diff --git a/apps/installer/utils.ts b/apps/installer/utils.ts deleted file mode 100644 index 90d70ec6a86a8f..00000000000000 --- a/apps/installer/utils.ts +++ /dev/null @@ -1,17 +0,0 @@ -import * as path from "https://deno.land/std/path/mod.ts"; -import makeloc from "https://deno.land/x/dirname@1.1.2/mod.ts"; - -const { __dirname } = makeloc(import.meta); - -// specify the needed paths here -const ACORE_JSON = path.resolve(__dirname + "/../../acore.json"); - -export async function getAcoreReleaseVersion() { - // read the acore.json file to work with the versioning - const decoder = new TextDecoder("utf-8"); - //console.debug(`Open ${ACORE_JSON}`) - const data = await Deno.readFile(ACORE_JSON); - const acoreInfo = JSON.parse(decoder.decode(data)); - - return `AzerothCore Rev. ${acoreInfo.version}`; -} diff --git a/deps/deno/bin/.gitignore b/deps/deno/bin/.gitignore deleted file mode 100644 index 6f4f877a951bdf..00000000000000 --- a/deps/deno/bin/.gitignore +++ /dev/null @@ -1 +0,0 @@ -deno* diff --git a/deps/deno/bin/README.md b/deps/deno/bin/README.md deleted file mode 100644 index 563b3e2b8ff70e..00000000000000 --- a/deps/deno/bin/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# DENO - -This folder is empty and needed to host the deno binaries automatically downloaded by the ./acore.sh dahsboard \ No newline at end of file From c43f62f6a9617fe7f7bb3f1309c373aa2ba137a1 Mon Sep 17 00:00:00 2001 From: Christian Lohr Date: Sun, 10 Sep 2023 01:15:20 +0200 Subject: [PATCH 02/29] fix(Core/Conf): log error in case configuration not found for DBImport (#17066) * fix: log error in case configuration not found * fix: register dbimport configuration file --- src/common/Configuration/Config.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/Configuration/Config.cpp b/src/common/Configuration/Config.cpp index 5e4c3ea413e8a4..7a51fc178df3da 100644 --- a/src/common/Configuration/Config.cpp +++ b/src/common/Configuration/Config.cpp @@ -39,8 +39,9 @@ namespace { size_t foundAuth = fileName.find("authserver.conf"); size_t foundWorld = fileName.find("worldserver.conf"); + size_t foundImport = fileName.find("dbimport.conf"); - return foundAuth != std::string_view::npos || foundWorld != std::string_view::npos; + return foundAuth != std::string_view::npos || foundWorld != std::string_view::npos || foundImport != std::string_view::npos; } // Check logging system configs like Appender.* and Logger.* From a5e90d0289bfac8a9133a747287e3517ca217fc6 Mon Sep 17 00:00:00 2001 From: Mike Delago <32778141+michaeldelago@users.noreply.github.com> Date: Sat, 9 Sep 2023 20:04:38 -0400 Subject: [PATCH 03/29] fix(CI): pending sql changelog script's invocation (#17225) fix deno run command --- .github/workflows/import_pending.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/import_pending.yml b/.github/workflows/import_pending.yml index 02a8c46b2677f9..468af12e320493 100644 --- a/.github/workflows/import_pending.yml +++ b/.github/workflows/import_pending.yml @@ -28,7 +28,7 @@ jobs: run: | git config user.email "azerothcorebot@gmail.com" && git config user.name "AzerothCoreBot" bash bin/acore-db-pendings - deno apps/ci/ci-pending-changelogs.ts + deno run --allow-all --unstable apps/ci/ci-pending-changelogs.ts git fetch --unshallow origin "${{ github.ref_name }}" git add -A . git commit -am "chore(DB): import pending files" -m "Referenced commit(s): ${GITHUB_SHA}" || true From 2faceea420788bf8815658334f2f88b84f1b6973 Mon Sep 17 00:00:00 2001 From: Mike Delago <32778141+michaeldelago@users.noreply.github.com> Date: Sun, 10 Sep 2023 04:01:57 -0400 Subject: [PATCH 04/29] fix(CI): rebase instead of unshallow fetch (#17226) --- .github/workflows/import_pending.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/import_pending.yml b/.github/workflows/import_pending.yml index 468af12e320493..ca4ef57714658a 100644 --- a/.github/workflows/import_pending.yml +++ b/.github/workflows/import_pending.yml @@ -29,7 +29,8 @@ jobs: git config user.email "azerothcorebot@gmail.com" && git config user.name "AzerothCoreBot" bash bin/acore-db-pendings deno run --allow-all --unstable apps/ci/ci-pending-changelogs.ts - git fetch --unshallow origin "${{ github.ref_name }}" + # Get the latest changes from git + git pull --rebase origin "${{ github.ref_name }}" git add -A . git commit -am "chore(DB): import pending files" -m "Referenced commit(s): ${GITHUB_SHA}" || true env: From e4225831324e49d4442afb24920757ee8939d80e Mon Sep 17 00:00:00 2001 From: Gultask <100873791+Gultask@users.noreply.github.com> Date: Sun, 10 Sep 2023 08:12:55 -0300 Subject: [PATCH 05/29] feat(Core/SmartAI): Implement a few more stuff (#17090) * init * init2 * attempt to fix WP delays * init3 * init4 * buildfix * Create rev_1693093120417899200.sql * workflow * Underbat * castflag power mana * did not work * Update SmartScriptMgr.cpp * ugly * port range to new system * attempt * simplify cast simplify cast add iteration for aura_not_present recalc timer if already castig spell * Update SmartScript.cpp * attempt * attempts * HP PCT * missing aura to targetselector * Update rev_1693093120417899200.sql * Update SmartScriptMgr.h * Update SmartScriptMgr.h * Update SmartScript.cpp * remove not_attacking, fix behind_me * revert is_behind_me * Update SmartScriptMgr.h * Update underbog.cpp * Update underbog.cpp --- .../rev_1693093120417899200.sql | 1855 +++++++++++++++++ src/server/game/AI/SmartScripts/SmartAI.cpp | 2 +- .../game/AI/SmartScripts/SmartScript.cpp | 165 +- .../game/AI/SmartScripts/SmartScriptMgr.cpp | 66 +- .../game/AI/SmartScripts/SmartScriptMgr.h | 107 +- 5 files changed, 2011 insertions(+), 184 deletions(-) create mode 100644 data/sql/updates/pending_db_world/rev_1693093120417899200.sql diff --git a/data/sql/updates/pending_db_world/rev_1693093120417899200.sql b/data/sql/updates/pending_db_world/rev_1693093120417899200.sql new file mode 100644 index 00000000000000..adeaa94e1c36f6 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1693093120417899200.sql @@ -0,0 +1,1855 @@ +-- Update IS_BEHIND_TARGET to new system +UPDATE `smart_scripts` SET `event_param1`=1300, `event_param2`=7300, `event_param3`=1300, `event_param4`=7300, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=95 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=3900, `event_param2`=6900, `event_param3`=3900, `event_param4`=6900, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=732 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=7000, `event_param2`=7000, `event_param3`=7000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=1707 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=9000, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2644 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=7000, `event_param2`=7000, `event_param3`=7000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3530 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=6000, `event_param2`=8000, `event_param3`=6000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=4850 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=3000, `event_param2`=6000, `event_param3`=3000, `event_param4`=6000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=4971 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=5000, `event_param3`=5000, `event_param4`=5000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=6035 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=5000, `event_param3`=5000, `event_param4`=5000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=6207 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=6000, `event_param2`=8000, `event_param3`=6000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=7175 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=6000, `event_param2`=6000, `event_param3`=6000, `event_param4`=6000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=7605 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=9000, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=8218 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=6000, `event_param2`=8000, `event_param3`=6000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11456 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=5000, `event_param3`=5000, `event_param4`=5000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11791 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=3000, `event_param2`=8000, `event_param3`=3000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=13022 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=3000, `event_param2`=10000, `event_param3`=3000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=14605 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=4500, `event_param2`=6500, `event_param3`=4500, `event_param4`=6500, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17695 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=5000, `event_param3`=5000, `event_param4`=5000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17835 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=5000, `event_param3`=5000, `event_param4`=5000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17835 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=6000, `event_param2`=6000, `event_param3`=6000, `event_param4`=6000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17860 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=1150, `event_param2`=13350, `event_param3`=1150, `event_param4`=13350, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19843 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=5000, `event_param3`=5000, `event_param4`=5000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20906 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=7000, `event_param2`=7000, `event_param3`=7000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=28734 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=5000, `event_param3`=5000, `event_param4`=5000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=29214 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=3000, `event_param2`=3000, `event_param3`=3000, `event_param4`=3000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=33824 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=1000, `event_param2`=3000, `event_param3`=1000, `event_param4`=3000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=36774 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=1000, `event_param2`=3000, `event_param3`=1000, `event_param4`=3000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=36776 AND `source_type`=0 AND `id`=2 AND `link`=0; +-- Update Power Drain spells to use new castFlag +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=672 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=819 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=1794 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=3715 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=3774 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=3803 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=4151 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=4291 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=4515 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=4799 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=4848 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=6010 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=6268 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=7664 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=7728 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=7767 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=8336 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=8675 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=8718 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=8876 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=9240 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=10261 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=10426 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=10471 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=10472 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=10498 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=10499 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=10500 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=11338 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=11480 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=14398 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=15246 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=15247 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=16020 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=16020 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=16304 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=16310 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=16492 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=16950 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=17401 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=17540 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=18130 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=18131 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=18285 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=18331 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=18331 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=18864 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=18867 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=18880 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=18883 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=19306 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=19852 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=19875 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=20039 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=20196 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=20713 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=25363 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=25483 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=26281 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=26728 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=26737 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=26737 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`|256 WHERE `entryorguid`=32163 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `action_param2`=`action_param2`&~256 WHERE `entryorguid` IN (-63697, -63695, -63694, -63693, -63691, -63690, -56029, -56028) AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param3`=1 WHERE `entryorguid`=7664 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param3`=1 WHERE `entryorguid`=7728 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param3`=1 WHERE `entryorguid`=9240 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param3`=1 WHERE `entryorguid`=16304 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param3`=1 WHERE `entryorguid`=16310 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param3`=1 WHERE `entryorguid`=18880 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param3`=1 WHERE `entryorguid`=25363 AND `source_type`=0 AND `id`=2 AND `link`=0; +-- Port Range to new system +UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=9000, `event_param3`=25000, `event_param4`=35000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=2319 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=500, `event_param2`=1000, `event_param3`=3000, `event_param4`=4000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=7734 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=8700, `event_param2`=14700, `event_param3`=8700, `event_param4`=14700, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=17400 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=15000, `event_param2`=21000, `event_param3`=15000, `event_param4`=21000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=19851 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=11000, `event_param3`=5000, `event_param4`=11000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=20757 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=3000, `event_param2`=3000, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27615 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=5000, `event_param2`=8000, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=28105 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=3000, `event_param2`=5000, `event_param3`=10000, `event_param4`=15000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=29851 AND `source_type`=0 AND `id`=9 AND `link`=0; + +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=2 WHERE `entryorguid`=-209158 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=2 WHERE `entryorguid`=-209157 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=2 WHERE `entryorguid`=-209156 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=2 WHERE `entryorguid`=-209155 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=2 WHERE `entryorguid`=-209154 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=2 WHERE `entryorguid`=-209153 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=6000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=-127203 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=12500, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=-117205 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=12500, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=-117197 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=-114115 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=-114112 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=-114111 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=-114110 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=-114109 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=-114101 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=-114098 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=-54069 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=-53928 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=-53927 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=5000, `event_param5`=10, `event_param6`=35 WHERE `entryorguid`=-44268 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=500, `event_param4`=1000, `event_param5`=6, `event_param6`=15 WHERE `entryorguid`=157 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=500, `event_param4`=1000, `event_param5`=6, `event_param6`=15 WHERE `entryorguid`=454 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=2000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=622 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=30000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=877 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=35000, `event_param4`=40000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=1657 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=2000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=1725 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1200, `event_param4`=1200, `event_param5`=2, `event_param6`=20 WHERE `entryorguid`=1908 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1200, `event_param4`=1200, `event_param5`=0, `event_param6`=2 WHERE `entryorguid`=1908 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=17000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2172 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=2175 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=20000, `event_param5`=0, `event_param6`=0 WHERE `entryorguid`=2186 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2215 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2215 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1800, `event_param4`=9800, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2240 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1800, `event_param4`=9800, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2241 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1800, `event_param4`=9800, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2242 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2260 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2264 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2264 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=25000, `event_param4`=30000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2265 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2266 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=45000, `event_param4`=45000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2267 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2268 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2269 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=14000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2304 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=60000, `event_param4`=60000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2305 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2344 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2368 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=30000, `event_param4`=30000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2372 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2374 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=2428 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2641 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=21000, `event_param4`=26000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=2645 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2647 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2651 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2653 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=19000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2657 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=2693 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=30000, `event_param4`=35000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=2694 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=2762 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=2762 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2762 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3300, `event_param4`=6600, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=2762 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=18000, `event_param4`=24000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2927 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=16000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=2928 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=3100 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1000, `event_param4`=1000, `event_param5`=35, `event_param6`=40 WHERE `entryorguid`=3251 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=3691 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=13000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=3691 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=3691 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=14000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=3696 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=26600, `event_param4`=39800, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3711 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=45000, `event_param4`=45000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3712 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20900, `event_param4`=33500, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=3715 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3734 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12300, `event_param4`=18600, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3739 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12600, `event_param4`=24800, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3749 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3752 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14500, `event_param4`=23900, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3758 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3759 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14500, `event_param4`=23900, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3759 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14500, `event_param4`=23900, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3762 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14500, `event_param4`=23900, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3763 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=32100, `event_param4`=34100, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3767 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13900, `event_param4`=21500, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3772 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=21700, `event_param4`=39500, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=3774 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=17300, `event_param4`=36200, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=3781 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3800, `event_param4`=13100, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=3783 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=45800, `event_param4`=60500, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=3783 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20200, `event_param4`=28900, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=3791 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=22600, `event_param4`=39600, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=3803 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3804 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8600, `event_param4`=21700, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=3819 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3600, `event_param4`=9900, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=3820 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3821 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=30500, `event_param4`=80000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3834 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=33700, `event_param4`=77100, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3919 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=23900, `event_param4`=38400, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3921 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10300, `event_param4`=20900, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=3943 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=4016 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=11000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=4021 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=17000, `event_param4`=25000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=4030 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=4062 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=2000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=4417 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=4465 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=29000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=4468 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=2500, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=4638 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=2500, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=4647 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1200, `event_param4`=1200, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=5237 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1200, `event_param4`=1200, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=5237 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1200, `event_param4`=1200, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=5237 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=5237 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=14000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=5828 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=20 WHERE `entryorguid`=5992 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8400, `event_param4`=15500, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=6115 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=24500, `event_param4`=24500, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=6210 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=17000, `event_param4`=23000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=6221 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=6000, `event_param5`=6, `event_param6`=15 WHERE `entryorguid`=6501 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=14000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=7016 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13300, `event_param4`=24100, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=7038 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=36300, `event_param4`=50000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=7038 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=21000, `event_param4`=25000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=7068 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=7069 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=21000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=7069 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=18000, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=7071 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=7072 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=12000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=7155 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=7360 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=6 WHERE `entryorguid`=7527 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=14000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=7767 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=17000, `event_param4`=23000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=7843 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=7885 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=7915 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=45000, `event_param4`=45000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=7977 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=7995 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=6 WHERE `entryorguid`=8035 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=5000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=8075 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=8210 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=25000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=8210 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=25000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=8211 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=24000, `event_param4`=29000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=8217 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13800, `event_param4`=13800, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=8298 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=30000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=8400 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=8561 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=8564 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=11000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=8564 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=18000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=8890 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=18000, `event_param4`=21000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=8896 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=8921 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=9034 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=0 WHERE `entryorguid`=9043 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=0 WHERE `entryorguid`=9043 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=180000, `event_param4`=180000, `event_param5`=9, `event_param6`=10 WHERE `entryorguid`=9082 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=9241 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=18000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=9258 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=9445 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=9450 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=9451 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=9537 AND `source_type`=0 AND `id`=12 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2100, `event_param4`=4700, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=10318 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=10418 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=10601 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=25000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=10644 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=16000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=10647 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=10681 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=21000, `event_param4`=25000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=10802 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=10817 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=10822 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=17000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=10822 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=10823 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=10823 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=10824 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=10824 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=10826 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=14000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=10996 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=5000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=11199 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=14000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11291 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1500, `event_param4`=2000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=11350 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1500, `event_param4`=2000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=11351 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=14000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11454 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=11501 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=11680 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11681 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11682 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20500, `event_param4`=35300, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=11697 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=16000, `event_param4`=19000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11728 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=24000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11730 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11732 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=11000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=11739 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=11740 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11803 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=13000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=11804 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=11881 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=17000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11882 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=17000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11885 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=11886 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=4000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=11896 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=12248 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=14000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=12250 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=12261 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=12322 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=12322 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=12369 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=12474 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=12737 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15400, `event_param4`=21800, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=12759 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7100, `event_param4`=15300, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=12856 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=35900, `event_param4`=52300, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=12856 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=20000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=12858 AND `source_type`=0 AND `id`=14 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=35900, `event_param4`=52300, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=12864 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20500, `event_param4`=30800, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=12897 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11200, `event_param4`=19500, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=12940 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=13082 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=13096 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=13096 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=13096 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=13096 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=13099 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=13099 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=13099 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=13099 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=13118 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=13236 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=13236 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=13236 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=13236 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=13256 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=13256 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=13256 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=13256 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6100, `event_param4`=15700, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=13276 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=0, `event_param6`=80 WHERE `entryorguid`=13358 AND `source_type`=0 AND `id`=3 AND `link`=4; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=0, `event_param6`=80 WHERE `entryorguid`=13359 AND `source_type`=0 AND `id`=3 AND `link`=4; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=13540 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=13540 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=13540 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=13540 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=13541 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=13541 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=13541 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=13541 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=13542 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=13542 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=13542 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=13542 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=13546 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=13546 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=13546 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=13546 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=13547 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=13547 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=13547 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=13547 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=13548 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=13548 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=13548 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=13548 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=14101 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=14308 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=14321 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=14323 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=14326 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=14390 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=14390 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=14390 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=14390 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=25000, `event_param4`=25000, `event_param5`=2, `event_param6`=5 WHERE `entryorguid`=14430 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=11000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=14472 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=18000, `event_param4`=22000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=14472 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=27000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=14473 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=18000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=14474 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=18000, `event_param4`=22000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=14475 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=17000, `event_param4`=21000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=14476 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=14479 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=23800, `event_param4`=28200, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=14492 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=15000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=14636 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=14715 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=14715 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=0 WHERE `entryorguid`=14715 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=4800, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=14715 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6100, `event_param4`=15900, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=14715 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=14733 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=14733 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=14733 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=14733 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=14753 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=14753 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=14753 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=14753 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=14753 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=15202 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15229 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=5, `event_param6`=25 WHERE `entryorguid`=15229 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9700, `event_param4`=16000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=15236 AND `source_type`=0 AND `id`=0 AND `link`=1; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15240 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15800, `event_param4`=15800, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=15250 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=15281 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=15281 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15281 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=15281 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=18200, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=15320 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=16000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=15325 AND `source_type`=0 AND `id`=0 AND `link`=1; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=45 WHERE `entryorguid`=15335 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=21000, `event_param4`=24000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=15335 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15336 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15343 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=15401 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=15401 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15401 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=15401 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=15405 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=15405 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15405 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=15405 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=15416 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=15416 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15416 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1500, `event_param4`=3000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=15416 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=15417 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=15417 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15417 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=15417 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=15418 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=15418 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15418 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=15418 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15505 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=15537 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15538 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15621 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=15641 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=15641 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15641 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=15641 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=15970 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=15970 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15970 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=15970 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=15971 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=15971 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=15971 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=15971 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=7000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=16059 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=16096 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16096 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16096 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2200, `event_param4`=3800, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=16096 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=13000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=16184 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16204 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16204 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16204 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16204 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16245 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16246 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16247 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16249 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16249 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16249 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16249 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16250 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=6000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16292 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16294 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16294 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16294 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4700, `event_param4`=5200, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16294 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16300 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=11000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=16302 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16303 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16305 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16307 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16307 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16307 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16307 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16308 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16308 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16308 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16308 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=16310 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16311 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16311 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16311 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16311 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16313 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=120000, `event_param4`=120000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=16319 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=25000, `event_param4`=28000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16327 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16330 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=16332 AND `source_type`=0 AND `id`=5 AND `link`=6; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16332 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16332 AND `source_type`=0 AND `id`=7 AND `link`=8; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=16332 AND `source_type`=0 AND `id`=3 AND `link`=4; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16332 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=45000, `event_param4`=45000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16335 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16339 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=14000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16340 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=16344 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16344 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16344 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=16344 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16349 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16350 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16351 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16352 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16357 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16357 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16358 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16358 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16358 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16358 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=16358 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16362 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16362 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16362 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16362 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=20, `event_param6`=45 WHERE `entryorguid`=16378 AND `source_type`=0 AND `id`=5 AND `link`=6; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=14000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16378 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16397 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16397 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16397 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16397 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=16403 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16403 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16403 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=16403 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=16000, `event_param4`=28000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16403 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=20000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=16409 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=16469 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=22000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16472 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16522 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16522 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16522 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16522 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=21000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16593 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=5000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=16704 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=5000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=16704 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=16704 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=14000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=16704 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16769 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16769 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16769 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16769 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16810 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16810 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16810 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16810 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3500, `event_param5`=4, `event_param6`=50 WHERE `entryorguid`=16844 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3500, `event_param5`=4, `event_param6`=50 WHERE `entryorguid`=16857 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16873 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16873 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16873 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16873 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=16912 AND `source_type`=0 AND `id`=7 AND `link`=8; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16912 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16912 AND `source_type`=0 AND `id`=9 AND `link`=10; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=16912 AND `source_type`=0 AND `id`=5 AND `link`=6; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16944 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=16948 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16948 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16948 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=6000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=16948 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16949 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3500, `event_param5`=4, `event_param6`=50 WHERE `entryorguid`=16968 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=16977 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=16977 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=16977 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=16977 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=18000, `event_param4`=24000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=17136 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=17150 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=17150 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17150 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=17150 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=8, `event_param6`=40 WHERE `entryorguid`=17160 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=17191 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=17191 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17191 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=17191 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=17192 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=17192 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17192 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=17192 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17193 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17194 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=18000, `event_param4`=21000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17199 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=40000, `event_param4`=40000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17199 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=0, `event_param6`=25 WHERE `entryorguid`=17206 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17298 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12100, `event_param4`=24400, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17300 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15700, `event_param4`=32500, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=17300 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17304 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17321 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=5000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=17427 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=5000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=17427 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=17427 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17432 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=17439 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=17439 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17439 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=17439 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17448 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17462 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=14000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17495 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17591 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17591 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1200, `event_param4`=1200, `event_param5`=4, `event_param6`=30 WHERE `entryorguid`=17609 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1200, `event_param4`=1200, `event_param5`=0, `event_param6`=4 WHERE `entryorguid`=17609 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=17612 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=17612 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17612 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=5000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=17612 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=17612 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=16000, `event_param4`=20000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=17612 AND `source_type`=0 AND `id`=12 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=5000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=17670 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=5000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=17670 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=17670 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=8000, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=17695 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=5000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17702 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=17716 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=17765 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=17766 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=15000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=17820 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=15000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=17820 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=17870 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=17870 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=17870 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=5500, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=17870 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=8000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=18069 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=18000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=18069 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=15000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=18092 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=18113 AND `source_type`=0 AND `id`=7 AND `link`=8; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18113 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18113 AND `source_type`=0 AND `id`=9 AND `link`=10; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=18113 AND `source_type`=0 AND `id`=5 AND `link`=6; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=18114 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18114 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18114 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18114 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=18155 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=18213 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18213 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18213 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=18213 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=18286 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18286 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=18286 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=8, `event_param6`=40 WHERE `entryorguid`=18286 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=24000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18286 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1500, `event_param4`=2000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=18351 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1500, `event_param4`=2000, `event_param5`=5, `event_param6`=40 WHERE `entryorguid`=18351 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18402 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=23000, `event_param4`=25000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=18402 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=18450 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18450 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18450 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18450 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18451 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=18452 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18452 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18452 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=18452 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=18457 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18457 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18457 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=18457 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18465 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18540 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=18541 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18541 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18541 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18541 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=18583 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18583 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18583 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18583 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=15000, `event_param5`=8, `event_param6`=40 WHERE `entryorguid`=18584 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=18658 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18658 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18658 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18658 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3500, `event_param5`=1, `event_param6`=50 WHERE `entryorguid`=18678 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=10, `event_param6`=40 WHERE `entryorguid`=18680 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=18680 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18681 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18682 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14300, `event_param4`=28200, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=18683 AND `source_type`=0 AND `id`=21 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18685 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18686 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18690 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=18855 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18855 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18855 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18855 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=18864 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=16000, `event_param4`=20000, `event_param5`=0, `event_param6`=25 WHERE `entryorguid`=18867 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=23 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=29 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=35 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=41 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=47 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=53 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=24 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=30 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=36 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=42 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=48 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=54 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=25 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=31 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=37 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=43 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=49 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=55 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=20 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=26 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=32 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=38 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=44 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=18870 AND `source_type`=0 AND `id`=50 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18872 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=5000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=18873 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=17000, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=18875 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=18000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=18877 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=15 WHERE `entryorguid`=18880 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=18880 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=15000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=18880 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=18883 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=15000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=18934 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=15000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=18934 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=8, `event_param6`=40 WHERE `entryorguid`=18977 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=6000, `event_param2`=7000, `event_param3`=10000, `event_param4`=10000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=18995 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=18995 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=19136 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19136 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19136 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19136 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12600, `event_param4`=13500, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=19312 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=19413 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19413 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19413 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19413 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=19422 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19422 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19422 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19422 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=19429 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=19429 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=19434 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19434 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19434 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19434 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19529 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19529 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3600, `event_param4`=3600, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=19541 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=19593 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19593 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19593 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4500, `event_param4`=6000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=19593 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19635 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19642 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=19643 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19643 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19643 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4500, `event_param4`=6000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=19643 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=19643 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=19657 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19657 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19657 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19657 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=19701 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19701 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19701 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19701 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=19705 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19705 AND `source_type`=0 AND `id`=13 AND `link`=14; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19705 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=19705 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=50 WHERE `entryorguid`=19705 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=16000, `event_param4`=21000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19705 AND `source_type`=0 AND `id`=15 AND `link`=16; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19706 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=19707 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19707 AND `source_type`=0 AND `id`=13 AND `link`=14; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19707 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=19707 AND `source_type`=0 AND `id`=16 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=19707 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=10, `event_param6`=40 WHERE `entryorguid`=19707 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=19707 AND `source_type`=0 AND `id`=15 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19729 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19730 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=19732 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19732 AND `source_type`=0 AND `id`=12 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19732 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19732 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19738 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=18000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=19738 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11500, `event_param4`=13000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=19765 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19779 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=19826 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19826 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19826 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19826 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=19830 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19830 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19830 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19830 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19851 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19853 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=19881 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=19881 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=19881 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=19881 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=19926 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=35000, `event_param4`=45000, `event_param5`=0, `event_param6`=15 WHERE `entryorguid`=19926 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12500, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20034 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=19000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=20037 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=5, `event_param6`=40 WHERE `entryorguid`=20039 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=20134 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=20134 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20134 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=20134 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=20135 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=20135 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20135 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4500, `event_param4`=6000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=20135 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=35000, `event_param4`=40000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20136 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=20139 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=20139 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20139 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=20139 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20140 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=20163 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=20163 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20163 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=20163 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20199 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=20202 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=20207 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=20207 AND `source_type`=0 AND `id`=15 AND `link`=16; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20207 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=20207 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=10, `event_param6`=40 WHERE `entryorguid`=20207 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=20207 AND `source_type`=0 AND `id`=17 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20221 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=17000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20221 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=20248 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=0, `event_param6`=15 WHERE `entryorguid`=20284 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20285 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=16000, `event_param4`=20000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20326 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20332 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=24000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=20332 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20556 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=20607 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20859 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=20872 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=20872 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20872 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=20872 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=21000, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=20881 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=12000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=20883 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=20887 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=20887 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=20887 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=20887 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=20987 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=6000, `event_param2`=7000, `event_param3`=12000, `event_param4`=18000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=21139 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=6000, `event_param2`=7000, `event_param3`=12000, `event_param4`=18000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=21139 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=21181 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=21200 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21200 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21200 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=21200 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=21227 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=21242 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21242 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21242 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=21242 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=2000, `event_param5`=5, `event_param6`=10 WHERE `entryorguid`=21296 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=21370 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21370 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21370 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=21370 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3500, `event_param5`=4, `event_param6`=50 WHERE `entryorguid`=21380 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=21385 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21385 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21385 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=21385 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=21387 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21387 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21387 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=21405 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21405 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21405 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=21405 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21506 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=21649 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21649 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21649 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=21649 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=21650 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21650 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21650 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=21650 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=21660 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21660 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21660 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=21660 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=6000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21686 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21686 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21687 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21687 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=18000, `event_param4`=23000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21687 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=21718 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21718 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21718 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=21718 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=21719 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21719 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21719 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2200, `event_param4`=3800, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=21719 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=21728 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21728 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21728 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=45 WHERE `entryorguid`=21728 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=21730 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21730 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21730 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=45 WHERE `entryorguid`=21730 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=21809 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14300, `event_param4`=28200, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=21827 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3500, `event_param5`=4, `event_param6`=50 WHERE `entryorguid`=21849 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=21904 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=21904 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=21911 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=21911 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=21911 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=21911 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=22017 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=22017 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=22017 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=22017 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3500, `event_param5`=4, `event_param6`=50 WHERE `entryorguid`=22038 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=18000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=22081 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=17000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=22084 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=22243 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=22243 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=22243 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=22243 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=22254 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=22254 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=22254 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=22254 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=22281 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=22281 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=45, `event_param6`=80 WHERE `entryorguid`=22331 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=22331 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=22331 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=80 WHERE `entryorguid`=22331 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=19000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=22337 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3500, `event_param5`=4, `event_param6`=50 WHERE `entryorguid`=22466 AND `source_type`=0 AND `id`=12 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=1 WHERE `entryorguid`=22474 AND `source_type`=0 AND `id`=0 AND `link`=1; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3500, `event_param5`=4, `event_param6`=50 WHERE `entryorguid`=22482 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=20000, `event_param5`=10, `event_param6`=40 WHERE `entryorguid`=22844 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=20000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=22844 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=22847 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=23018 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=23022 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=23022 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=23022 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=23022 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=8000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=23196 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=23223 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=5, `event_param6`=45 WHERE `entryorguid`=23236 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=23247 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=23247 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=23247 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=23247 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3500, `event_param5`=4, `event_param6`=50 WHERE `entryorguid`=23285 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=23353 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=23353 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=23354 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=10, `event_param6`=60 WHERE `entryorguid`=23354 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=23354 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=23355 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=5000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=23671 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=23689 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3500, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=23689 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=23689 AND `source_type`=0 AND `id`=12 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=23956 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=23956 AND `source_type`=0 AND `id`=15 AND `link`=16; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=23956 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=5000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=23956 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=5000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=23956 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=5000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=23967 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=19000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=23967 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24016 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=24082 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=24082 AND `source_type`=0 AND `id`=15 AND `link`=16; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24082 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=5000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=24082 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=5000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=24082 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24161 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24162 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=24229 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24277 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24277 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=21000, `event_param4`=31000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24277 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24458 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1500, `event_param4`=2000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=24474 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=10000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=24474 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=6000, `event_param5`=10, `event_param6`=60 WHERE `entryorguid`=24683 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=6000, `event_param5`=10, `event_param6`=60 WHERE `entryorguid`=24683 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24713 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=24738 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=24738 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24738 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2600, `event_param4`=3500, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=24738 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=24762 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=24762 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24762 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=24762 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24770 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=15000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=24770 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24790 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24818 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=24849 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=24849 AND `source_type`=0 AND `id`=15 AND `link`=16; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=24849 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=17000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=24849 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=17000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=24849 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1000, `event_param4`=3000, `event_param5`=20, `event_param6`=150 WHERE `entryorguid`=24911 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=25073 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=25073 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=25073 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=5400, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=25073 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1000, `event_param4`=4000, `event_param5`=1, `event_param6`=25 WHERE `entryorguid`=25087 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=13000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=25145 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12300, `event_param4`=19800, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=25216 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2500, `event_param4`=4000, `event_param5`=0, `event_param6`=3000 WHERE `entryorguid`=25226 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=25226 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=25359 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=5000, `event_param5`=10, `event_param6`=35 WHERE `entryorguid`=25484 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=25598 AND `source_type`=0 AND `id`=2 AND `link`=3; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=900, `event_param4`=9900, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=25611 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=990, `event_param4`=3000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=25625 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=100 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=44 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=100 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=63 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=100 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=92 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=100 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=103 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=100 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=112 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=43 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=62 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=91 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=102 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=111 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=2000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=40 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=41 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=25708 AND `source_type`=0 AND `id`=42 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=15000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=25715 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=4 WHERE `entryorguid`=25744 AND `source_type`=0 AND `id`=5 AND `link`=6; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=25793 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=30, `event_param6`=100 WHERE `entryorguid`=25801 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=25801 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=25801 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=25801 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3500, `event_param4`=4100, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=25801 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=25803 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9200, `event_param4`=12400, `event_param5`=8, `event_param6`=40 WHERE `entryorguid`=25804 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=25851 AND `source_type`=0 AND `id`=6 AND `link`=8; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=25851 AND `source_type`=0 AND `id`=7 AND `link`=8; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26196 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=14000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=26198 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26276 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=15000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=26281 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=5, `event_param6`=35 WHERE `entryorguid`=26291 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26291 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26295 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26295 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26295 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=0, `event_param6`=35 WHERE `entryorguid`=26295 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26316 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=26319 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26319 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26319 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=26319 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=18000, `event_param5`=0, `event_param6`=15 WHERE `entryorguid`=26322 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26336 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26336 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26336 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=26336 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=18000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=26343 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26344 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26356 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26356 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26356 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=26356 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26356 AND `source_type`=0 AND `id`=14 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=16000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=26356 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26359 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26360 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26389 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26389 AND `source_type`=0 AND `id`=15 AND `link`=16; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26389 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=26389 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=26389 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=9, `event_param6`=14 WHERE `entryorguid`=26402 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=26413 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26413 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26413 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=26413 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26414 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26414 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26414 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=6000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=26414 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26428 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26428 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26428 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=7000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=26428 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26434 AND `source_type`=0 AND `id`=7 AND `link`=8; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26434 AND `source_type`=0 AND `id`=9 AND `link`=10; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=0 WHERE `entryorguid`=26434 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=26434 AND `source_type`=0 AND `id`=3 AND `link`=4; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26434 AND `source_type`=0 AND `id`=14 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26446 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26448 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26448 AND `source_type`=0 AND `id`=13 AND `link`=14; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26448 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=26448 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=8, `event_param6`=100 WHERE `entryorguid`=26448 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=26456 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=15, `event_param6`=80 WHERE `entryorguid`=26493 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=10 WHERE `entryorguid`=26493 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26493 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=26493 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=26496 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=26577 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26607 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26607 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26607 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=26607 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26615 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26637 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26644 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=26655 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26655 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26655 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=26655 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26670 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26670 AND `source_type`=0 AND `id`=15 AND `link`=16; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26670 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=26670 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=26670 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26679 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26679 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26679 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=26679 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=26679 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=26681 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26681 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26681 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=26681 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=26705 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26705 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26705 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=5000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=26705 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=4000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=26762 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26769 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26769 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26769 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=26769 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=26769 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26770 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26770 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26770 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=26770 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=16000, `event_param5`=8, `event_param6`=40 WHERE `entryorguid`=26771 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=26779 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26779 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26779 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=26779 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=26780 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26780 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26780 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=26780 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=26795 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26795 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26795 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=26795 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26806 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=4000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=26815 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=18000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=26815 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26836 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26839 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26891 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=17000, `event_param4`=23000, `event_param5`=5, `event_param6`=45 WHERE `entryorguid`=26919 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=26942 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=26942 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=26942 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=26942 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=8000, `event_param5`=5, `event_param6`=45 WHERE `entryorguid`=27002 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27004 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27005 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=19000, `event_param5`=5, `event_param6`=45 WHERE `entryorguid`=27007 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=45 WHERE `entryorguid`=27009 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27024 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=30000, `event_param4`=35000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27064 AND `source_type`=0 AND `id`=0 AND `link`=1; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27117 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27117 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27117 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=27117 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27117 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27118 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=25000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=27118 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27126 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27177 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27177 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27177 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=27177 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27178 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27178 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27178 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=35 WHERE `entryorguid`=27178 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27211 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27224 AND `source_type`=0 AND `id`=7 AND `link`=8; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27224 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27224 AND `source_type`=0 AND `id`=9 AND `link`=10; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27225 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27225 AND `source_type`=0 AND `id`=15 AND `link`=16; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27225 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27238 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27244 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27246 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27246 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27246 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27246 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27259 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27259 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27259 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27259 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27260 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=16000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27260 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27283 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27283 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27283 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27283 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=16000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27287 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27289 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27289 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27289 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27289 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1500, `event_param4`=2000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=27328 AND `source_type`=0 AND `id`=37 AND `link`=38; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2500, `event_param4`=3000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=27328 AND `source_type`=0 AND `id`=56 AND `link`=57; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27355 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27355 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27355 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27355 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27356 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27357 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27357 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27357 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=8500, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27357 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27358 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27358 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27358 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27358 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=45, `event_param6`=80 WHERE `entryorguid`=27377 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27377 AND `source_type`=0 AND `id`=13 AND `link`=14; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27377 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=0, `event_param6`=50 WHERE `entryorguid`=27377 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=20000, `event_param5`=10, `event_param6`=70 WHERE `entryorguid`=27377 AND `source_type`=0 AND `id`=16 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27383 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27383 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27383 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27383 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27401 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27424 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=25000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=27424 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27456 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27470 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=25000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=27470 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27493 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=25000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=27493 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27508 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27508 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27508 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3800, `event_param4`=4500, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27508 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=18000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27542 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=30, `event_param6`=80 WHERE `entryorguid`=27560 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27560 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27560 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=35 WHERE `entryorguid`=27560 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=14000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=27560 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27564 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27564 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27564 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=27564 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27564 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=16000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27567 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27576 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27576 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27576 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=27576 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27603 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27603 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27603 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27603 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1000, `event_param4`=1000, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27615 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1000, `event_param4`=1000, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27615 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1000, `event_param4`=1000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27615 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27633 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27633 AND `source_type`=0 AND `id`=15 AND `link`=16; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27633 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=27633 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=27633 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27635 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27635 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27635 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27636 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27636 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27636 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=6000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27636 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=6000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27636 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27639 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27639 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27639 AND `source_type`=0 AND `id`=12 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=19000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27639 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=19000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27639 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=2500, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=27642 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27676 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27678 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27678 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27678 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=8000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=27678 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27680 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27680 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27680 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27680 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27687 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27687 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27687 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27687 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=17000, `event_param4`=20000, `event_param5`=5, `event_param6`=45 WHERE `entryorguid`=27708 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27713 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27713 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27713 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=27713 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=27713 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27715 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=17000, `event_param4`=24000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=27715 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=22000, `event_param4`=30000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27717 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=21000, `event_param4`=29000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=27718 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27727 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=13000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=27731 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=13000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=27731 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=19000, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=27731 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=19000, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=27731 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27732 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27732 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27732 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27732 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27732 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27745 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27747 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27747 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27747 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27747 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27748 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27749 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27749 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27749 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=27749 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27749 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=45 WHERE `entryorguid`=27759 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27762 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27762 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27762 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27762 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27783 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=14000, `event_param5`=8, `event_param6`=40 WHERE `entryorguid`=27797 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27799 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27800 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27805 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27805 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27805 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27805 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=18000, `event_param5`=8, `event_param6`=40 WHERE `entryorguid`=27808 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=14000, `event_param5`=8, `event_param6`=40 WHERE `entryorguid`=27824 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27826 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27826 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27826 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27826 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27844 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27844 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27844 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=27844 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=25, `event_param6`=80 WHERE `entryorguid`=27857 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27857 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27857 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=27857 AND `source_type`=0 AND `id`=4 AND `link`=5; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=40, `event_param6`=100 WHERE `entryorguid`=27898 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=10, `event_param6`=15 WHERE `entryorguid`=27898 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27898 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4700, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27898 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27953 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=13000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=27953 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=45000, `event_param4`=45000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27961 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27963 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27963 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27963 AND `source_type`=0 AND `id`=11 AND `link`=12; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27963 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27963 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=80 WHERE `entryorguid`=27965 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=15 WHERE `entryorguid`=27965 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=27965 AND `source_type`=0 AND `id`=12 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27965 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=27965 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=28029 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3500, `event_param5`=1, `event_param6`=50 WHERE `entryorguid`=28083 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=10, `event_param6`=30 WHERE `entryorguid`=28096 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=28097 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=17000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=28132 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=17000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=28132 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=20000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=28132 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=20000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=28132 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=28340 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=12000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=28358 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4800, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=28495 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=16500, `event_param4`=18000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=28495 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=16500, `event_param4`=18000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=28495 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=28519 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=28547 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=28580 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=28583 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=28583 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=28609 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2300, `event_param4`=3900, `event_param5`=2, `event_param6`=30 WHERE `entryorguid`=28611 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=28611 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=28835 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=28835 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=21000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=28838 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=21000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=28838 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=2 WHERE `entryorguid`=28854 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=28902 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=0, `event_param6`=80 WHERE `entryorguid`=28952 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=5000, `event_param5`=0, `event_param6`=25 WHERE `entryorguid`=28988 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=7000, `event_param5`=25, `event_param6`=35 WHERE `entryorguid`=28988 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=29000 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=6000, `event_param5`=0, `event_param6`=70 WHERE `entryorguid`=29079 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=29146 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=29376 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=15000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=29411 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=17000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=29412 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=25000, `event_param4`=30000, `event_param5`=5, `event_param6`=35 WHERE `entryorguid`=29469 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=250, `event_param4`=250, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=29475 AND `source_type`=0 AND `id`=0 AND `link`=1; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1000, `event_param4`=1000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=29483 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=8, `event_param6`=25000 WHERE `entryorguid`=29489 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=25000, `event_param4`=28000, `event_param5`=5, `event_param6`=35 WHERE `entryorguid`=29553 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=29693 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=11000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=29696 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=29769 AND `source_type`=0 AND `id`=20 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=8000, `event_param5`=5, `event_param6`=40 WHERE `entryorguid`=29838 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=8000, `event_param5`=5, `event_param6`=40 WHERE `entryorguid`=29838 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=29840 AND `source_type`=0 AND `id`=20 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=29851 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=29851 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=29859 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=29860 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=16000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=29910 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=6000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=29920 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=8000, `event_param5`=5, `event_param6`=40 WHERE `entryorguid`=29931 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=8000, `event_param5`=5, `event_param6`=40 WHERE `entryorguid`=29931 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=29942 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11000, `event_param4`=16000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=29960 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=12000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=29981 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=25000, `event_param4`=28000, `event_param5`=5, `event_param6`=35 WHERE `entryorguid`=30006 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30012 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=11000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30014 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30014 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=16000, `event_param5`=0, `event_param6`=10 WHERE `entryorguid`=30017 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=10, `event_param6`=60 WHERE `entryorguid`=30020 AND `source_type`=0 AND `id`=15 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30022 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=17000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30023 AND `source_type`=0 AND `id`=12 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=21000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=30023 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30025 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=7000, `event_param5`=10, `event_param6`=70 WHERE `entryorguid`=30042 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=7000, `event_param5`=10, `event_param6`=70 WHERE `entryorguid`=30043 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=7000, `event_param5`=10, `event_param6`=70 WHERE `entryorguid`=30044 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=7000, `event_param5`=10, `event_param6`=70 WHERE `entryorguid`=30045 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=18000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30060 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=30, `event_param6`=100 WHERE `entryorguid`=30086 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=30086 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=30086 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30086 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3500, `event_param4`=4100, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=30086 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30113 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30167 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=25000, `event_param4`=28000, `event_param5`=5, `event_param6`=35 WHERE `entryorguid`=30167 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=12500, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=30174 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=40, `event_param6`=100 WHERE `entryorguid`=30180 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=10, `event_param6`=15 WHERE `entryorguid`=30180 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=30180 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3400, `event_param4`=4700, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=30180 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=13000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=30233 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=30233 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=13000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=30238 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=30238 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=5000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30250 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=13000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=30263 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=30263 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=13000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=30265 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=30265 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=19000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=30276 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=19000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=30276 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=30, `event_param6`=60 WHERE `entryorguid`=30340 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=30340 AND `source_type`=0 AND `id`=15 AND `link`=16; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30448 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=8, `event_param6`=30 WHERE `entryorguid`=30450 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=20000, `event_param5`=6, `event_param6`=30 WHERE `entryorguid`=30483 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=0 WHERE `entryorguid`=30665 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=0 WHERE `entryorguid`=30665 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=0 WHERE `entryorguid`=30665 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2400, `event_param4`=3800, `event_param5`=0, `event_param6`=0 WHERE `entryorguid`=30665 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3500, `event_param4`=4100, `event_param5`=8, `event_param6`=40 WHERE `entryorguid`=30696 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30725 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=10000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=30737 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=30737 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30865 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=12000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30892 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=21000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30892 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=21000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30892 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=19000, `event_param5`=0, `event_param6`=45 WHERE `entryorguid`=30893 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=19000, `event_param5`=0, `event_param6`=45 WHERE `entryorguid`=30893 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=19000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=30954 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=10, `event_param6`=40 WHERE `entryorguid`=30956 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=15000, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=31007 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=16000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=31008 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=16000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=31008 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=16000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=31009 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13000, `event_param4`=16000, `event_param5`=0, `event_param6`=30 WHERE `entryorguid`=31009 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=31016 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=8, `event_param6`=20 WHERE `entryorguid`=31098 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=17000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=31104 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=8, `event_param6`=40 WHERE `entryorguid`=31140 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=19000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=31160 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=10, `event_param6`=40 WHERE `entryorguid`=31161 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=15000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=31283 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6000, `event_param4`=9000, `event_param5`=0, `event_param6`=4 WHERE `entryorguid`=31775 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=6000, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=32235 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=13000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=32400 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=32438 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=32485 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=8000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=32599 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=14000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=32599 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=2000, `event_param4`=3000, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=32767 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1500, `event_param4`=1500, `event_param5`=0, `event_param6`=40 WHERE `entryorguid`=32769 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33285 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=7000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33285 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33306 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33306 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33382 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33382 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33383 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33383 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33384 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33384 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33448 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=7000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33448 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33558 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33558 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33559 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33559 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33561 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33561 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33562 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33562 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33564 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33564 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=7000, `event_param4`=10000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=33704 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33707 AND `source_type`=0 AND `id`=6 AND `link`=7; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=7000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33707 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33738 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33738 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33739 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33739 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33740 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33740 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33743 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33743 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33744 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33744 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33745 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=7000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33745 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33746 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33746 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33747 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33747 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33748 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33748 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=3000, `event_param4`=3000, `event_param5`=9, `event_param6`=15 WHERE `entryorguid`=33749 AND `source_type`=0 AND `id`=8 AND `link`=9; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=10000, `event_param5`=5, `event_param6`=5 WHERE `entryorguid`=33749 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1000, `event_param4`=1000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=33785 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1500, `event_param4`=2000, `event_param5`=3, `event_param6`=30 WHERE `entryorguid`=33785 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=9, `event_param6`=25 WHERE `entryorguid`=34127 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=0, `event_param6`=20 WHERE `entryorguid`=34505 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=30, `event_param6`=60 WHERE `entryorguid`=34920 AND `source_type`=0 AND `id`=10 AND `link`=11; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=0, `event_param6`=8 WHERE `entryorguid`=34920 AND `source_type`=0 AND `id`=12 AND `link`=13; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=34947 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=34980 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=35012 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=35070 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=35090 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=35090 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=35098 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=4000, `event_param4`=7000, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=35102 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=11000, `event_param5`=5, `event_param6`=30 WHERE `entryorguid`=35102 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=8, `event_param6`=25 WHERE `entryorguid`=37501 AND `source_type`=0 AND `id`=0 AND `link`=0; + +-- Friendly HP PCT +DELETE FROM `smart_scripts` WHERE (`entryorguid` = 3939) AND (`source_type` = 0) AND (`id` IN (2, 3, 4)); + +DELETE FROM `smart_scripts` WHERE (`entryorguid` = 8996) AND (`source_type` = 0) AND (`id` IN (0, 1, 2, 3, 4)); +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(8996, 0, 0, 0, 0, 0, 100, 0, 2000, 5000, 4000, 6000, 0, 11, 33914, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Voidwalker Minion - In Combat - Cast \'Shadowstrike\''); + +DELETE FROM `smart_scripts` WHERE (`entryorguid` = 12922) AND (`source_type` = 0) AND (`id` IN (1, 2, 3)); + +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=-82291 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=-82289 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=48800, `event_param4`=53700, `event_param5`=50, `event_param6`=0 WHERE `entryorguid`=517 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=24100, `event_param4`=25500, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=545 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=31800, `event_param4`=82800, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=548 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=787 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=19900, `event_param4`=28900, `event_param5`=30, `event_param6`=0 WHERE `entryorguid`=940 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=34300, `event_param4`=39100, `event_param5`=30, `event_param6`=0 WHERE `entryorguid`=940 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=1013 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=11500, `event_param4`=24600, `event_param5`=30, `event_param6`=0 WHERE `entryorguid`=1029 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=1065 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=1183 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=17600, `event_param4`=35700, `event_param5`=50, `event_param6`=0 WHERE `entryorguid`=1197 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=26700, `event_param4`=26700, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=1399 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20100, `event_param4`=28100, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=1425 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=14000, `event_param5`=80, `event_param6`=0 WHERE `entryorguid`=1768 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=5000, `event_param5`=80, `event_param6`=0 WHERE `entryorguid`=1773 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=1834 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=30, `event_param6`=0 WHERE `entryorguid`=1983 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=15, `event_param6`=0 WHERE `entryorguid`=2287 AND `source_type`=0 AND `id`=3 AND `link`=4; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=21000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=2346 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=19000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=2373 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=35, `event_param6`=0 WHERE `entryorguid`=2575 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=20, `event_param6`=0 WHERE `entryorguid`=2585 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=2713 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=18300, `event_param4`=24100, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=2718 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=18800, `event_param4`=36600, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=2742 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=2892 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=3732 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=19500, `event_param4`=35500, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=3924 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=25600, `event_param4`=37700, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=3944 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=25000, `event_param5`=25, `event_param6`=0 WHERE `entryorguid`=5236 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=16000, `event_param4`=21000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=6000 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=10, `event_param6`=0 WHERE `entryorguid`=6006 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=17000, `event_param5`=50, `event_param6`=40 WHERE `entryorguid`=6195 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=18000, `event_param4`=25000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=7068 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=18000, `event_param4`=21000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=7070 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=6000, `event_param5`=35, `event_param6`=0 WHERE `entryorguid`=9045 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=50, `event_param6`=0 WHERE `entryorguid`=9217 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=30000, `event_param4`=30000, `event_param5`=30, `event_param6`=0 WHERE `entryorguid`=9217 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=25000, `event_param4`=35000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=9449 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=25000, `event_param4`=35000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=9450 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=15000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=10823 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=20, `event_param6`=0 WHERE `entryorguid`=11880 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14000, `event_param4`=18000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=12337 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=1000, `event_param4`=1000, `event_param5`=1, `event_param6`=0 WHERE `entryorguid`=12339 AND `source_type`=0 AND `id`=40 AND `link`=41; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=20000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=12352 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=25000, `event_param4`=30000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=12476 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=30000, `event_param4`=35000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=12476 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=25000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=16331 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=20000, `event_param4`=30000, `event_param5`=10, `event_param6`=0 WHERE `entryorguid`=16343 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=120000, `event_param4`=120000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=16501 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=120000, `event_param4`=120000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=16502 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=14500, `event_param4`=15000, `event_param5`=50, `event_param6`=30 WHERE `entryorguid`=17256 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=14000, `event_param5`=40, `event_param6`=40 WHERE `entryorguid`=17803 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=9000, `event_param4`=14000, `event_param5`=40, `event_param6`=40 WHERE `entryorguid`=17803 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=15000, `event_param5`=25, `event_param6`=0 WHERE `entryorguid`=17969 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=50, `event_param6`=25 WHERE `entryorguid`=17993 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13300, `event_param4`=35100, `event_param5`=60, `event_param6`=40 WHERE `entryorguid`=18422 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15700, `event_param4`=27700, `event_param5`=60, `event_param6`=40 WHERE `entryorguid`=18633 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15700, `event_param4`=27700, `event_param5`=60, `event_param6`=40 WHERE `entryorguid`=18633 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13200, `event_param4`=19300, `event_param5`=50, `event_param6`=40 WHERE `entryorguid`=18633 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13200, `event_param4`=19300, `event_param5`=50, `event_param6`=40 WHERE `entryorguid`=18633 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15700, `event_param4`=26500, `event_param5`=70, `event_param6`=15 WHERE `entryorguid`=18702 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=6100, `event_param4`=8400, `event_param5`=70, `event_param6`=15 WHERE `entryorguid`=18702 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15700, `event_param4`=27700, `event_param5`=60, `event_param6`=40 WHERE `entryorguid`=19208 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15700, `event_param4`=27700, `event_param5`=60, `event_param6`=40 WHERE `entryorguid`=19208 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13200, `event_param4`=19300, `event_param5`=50, `event_param6`=40 WHERE `entryorguid`=19208 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=13200, `event_param4`=19300, `event_param5`=50, `event_param6`=40 WHERE `entryorguid`=19208 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=75, `event_param6`=40 WHERE `entryorguid`=19633 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=8000, `event_param4`=12000, `event_param5`=25, `event_param6`=5 WHERE `entryorguid`=19733 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=40000, `event_param4`=40000, `event_param5`=50, `event_param6`=0 WHERE `entryorguid`=20049 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=10000, `event_param5`=75, `event_param6`=40 WHERE `entryorguid`=20083 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=16000, `event_param5`=75, `event_param6`=15 WHERE `entryorguid`=20990 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=16000, `event_param5`=65, `event_param6`=40 WHERE `entryorguid`=21126 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=11000, `event_param5`=40, `event_param6`=40 WHERE `entryorguid`=21338 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=10000, `event_param4`=11000, `event_param5`=40, `event_param6`=40 WHERE `entryorguid`=21338 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=10000, `event_param5`=40, `event_param6`=40 WHERE `entryorguid`=21702 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=20000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=24684 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=15000, `event_param4`=20000, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=24684 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=18000, `event_param4`=21000, `event_param5`=30, `event_param6`=0 WHERE `entryorguid`=26554 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=25, `event_param6`=0 WHERE `entryorguid`=26694 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=12000, `event_param4`=15000, `event_param5`=20, `event_param6`=0 WHERE `entryorguid`=26694 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=28582 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0, `event_param5`=40, `event_param6`=0 WHERE `entryorguid`=28582 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=10000, `event_param5`=20, `event_param6`=0 WHERE `entryorguid`=29174 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=10000, `event_param5`=20, `event_param6`=0 WHERE `entryorguid`=29177 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=10000, `event_param5`=20, `event_param6`=0 WHERE `entryorguid`=29181 AND `source_type`=0 AND `id`=2 AND `link`=3; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=5000, `event_param4`=10000, `event_param5`=20, `event_param6`=0 WHERE `entryorguid`=29182 AND `source_type`=0 AND `id`=1 AND `link`=0; +-- Hostile Random Aura +UPDATE `smart_scripts` SET `target_param4`=3429 WHERE `entryorguid`=570 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=3436 WHERE `entryorguid`=604 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=8806 WHERE `entryorguid`=979 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=10651 WHERE `entryorguid`=1160 AND `source_type`=0 AND `id`=1 AND `link`=2; +UPDATE `smart_scripts` SET `target_param4`=3360 WHERE `entryorguid`=1160 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=3427 WHERE `entryorguid`=1815 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=3427 WHERE `entryorguid`=1816 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=3256 WHERE `entryorguid`=1940 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=7124 WHERE `entryorguid`=2529 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=118 WHERE `entryorguid`=2543 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=7646 WHERE `entryorguid`=2557 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=7992 WHERE `entryorguid`=2601 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=4974 WHERE `entryorguid`=2605 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=3150 WHERE `entryorguid`=2730 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=9482 WHERE `entryorguid`=2740 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=8806 WHERE `entryorguid`=3258 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=8040 WHERE `entryorguid`=3669 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=8040 WHERE `entryorguid`=3670 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=8040 WHERE `entryorguid`=3671 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=8040 WHERE `entryorguid`=3673 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=6222 WHERE `entryorguid`=3725 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=6205 WHERE `entryorguid`=3762 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=8040 WHERE `entryorguid`=3840 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=8140 WHERE `entryorguid`=3855 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=7057 WHERE `entryorguid`=3875 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=113 WHERE `entryorguid`=4418 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=3584 WHERE `entryorguid`=4475 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=3429 WHERE `entryorguid`=4681 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=246 WHERE `entryorguid`=4831 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=3247 WHERE `entryorguid`=5828 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=7992 WHERE `entryorguid`=5838 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=11963 WHERE `entryorguid`=5979 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=5416 WHERE `entryorguid`=5988 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=13338 WHERE `entryorguid`=7028 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=20787 WHERE `entryorguid`=7372 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=3150 WHERE `entryorguid`=7446 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=15042 WHERE `entryorguid`=8299 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=16555 WHERE `entryorguid`=8521 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=20825 WHERE `entryorguid`=8526 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=16498 WHERE `entryorguid`=8565 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=16449 WHERE `entryorguid`=8603 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=16449 WHERE `entryorguid`=8605 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=7279 WHERE `entryorguid`=8607 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=11980 WHERE `entryorguid`=8915 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=13298 WHERE `entryorguid`=8925 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=15128 WHERE `entryorguid`=9261 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=16071 WHERE `entryorguid`=9261 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=15128 WHERE `entryorguid`=9262 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=15802 WHERE `entryorguid`=9269 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=14875 WHERE `entryorguid`=9439 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=7992 WHERE `entryorguid`=10041 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=16429 WHERE `entryorguid`=10398 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=15732 WHERE `entryorguid`=10425 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=17146 WHERE `entryorguid`=10426 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=11443 WHERE `entryorguid`=10471 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=18376 WHERE `entryorguid`=10505 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=17230 WHERE `entryorguid`=10982 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=18266 WHERE `entryorguid`=11322 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=8994 WHERE `entryorguid`=11448 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=13338 WHERE `entryorguid`=11448 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=12493 WHERE `entryorguid`=11453 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=22371 WHERE `entryorguid`=11453 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=13323 WHERE `entryorguid`=11470 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=22744 WHERE `entryorguid`=11471 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=21048 WHERE `entryorguid`=11688 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=18270 WHERE `entryorguid`=12248 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=22206 WHERE `entryorguid`=13442 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=22371 WHERE `entryorguid`=14861 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=25809 WHERE `entryorguid`=15240 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=25810 WHERE `entryorguid`=15240 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=25772 WHERE `entryorguid`=15552 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=3396 WHERE `entryorguid`=16246 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=6951 WHERE `entryorguid`=16300 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=8282 WHERE `entryorguid`=16302 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=8016 WHERE `entryorguid`=16322 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=30900 WHERE `entryorguid`=16323 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=7289 WHERE `entryorguid`=16358 AND `source_type`=0 AND `id`=12 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=7901 WHERE `entryorguid`=16403 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=31394 WHERE `entryorguid`=16469 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=29679 WHERE `entryorguid`=16473 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=8050 WHERE `entryorguid`=17206 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=32197 WHERE `entryorguid`=17371 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=13338 WHERE `entryorguid`=17371 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=6726 WHERE `entryorguid`=17414 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=31405 WHERE `entryorguid`=17771 AND `source_type`=0 AND `id`=12 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=37113 WHERE `entryorguid`=17771 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=34880 WHERE `entryorguid`=17771 AND `source_type`=0 AND `id`=14 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=32863 WHERE `entryorguid`=18640 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=34435 WHERE `entryorguid`=18829 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=34439 WHERE `entryorguid`=18829 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=34441 WHERE `entryorguid`=18829 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=36659 WHERE `entryorguid`=18880 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=34073 WHERE `entryorguid`=19422 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=11980 WHERE `entryorguid`=19493 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=34261 WHERE `entryorguid`=19738 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=38772 WHERE `entryorguid`=20216 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=25809 WHERE `entryorguid`=20682 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=36840 WHERE `entryorguid`=20897 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=36831 WHERE `entryorguid`=20902 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=39262 WHERE `entryorguid`=21164 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=39262 WHERE `entryorguid`=21168 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=39262 WHERE `entryorguid`=21171 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=38254 WHERE `entryorguid`=21324 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=15654 WHERE `entryorguid`=21702 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=34941 WHERE `entryorguid`=21702 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=38859 WHERE `entryorguid`=21719 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=38864 WHERE `entryorguid`=22062 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=38859 WHERE `entryorguid`=22331 AND `source_type`=0 AND `id`=15 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=36541 WHERE `entryorguid`=22381 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=37579 WHERE `entryorguid`=22393 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=9791 WHERE `entryorguid`=24069 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=59599 WHERE `entryorguid`=24069 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=32063 WHERE `entryorguid`=26413 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=48876 WHERE `entryorguid`=26669 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=59237 WHERE `entryorguid`=26669 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=51804 WHERE `entryorguid`=26828 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=23380 WHERE `entryorguid`=27571 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=51899 WHERE `entryorguid`=27680 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=39621 WHERE `entryorguid`=27731 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=58811 WHERE `entryorguid`=27731 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=51340 WHERE `entryorguid`=27805 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=32019 WHERE `entryorguid`=28009 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=32019 WHERE `entryorguid`=28297 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=53317 WHERE `entryorguid`=29096 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=59343 WHERE `entryorguid`=29096 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=53330 WHERE `entryorguid`=29097 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=59348 WHERE `entryorguid`=29097 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=53317 WHERE `entryorguid`=29117 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=59343 WHERE `entryorguid`=29117 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=53330 WHERE `entryorguid`=29118 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=59348 WHERE `entryorguid`=29118 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=59466 WHERE `entryorguid`=32237 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `target_param4`=58667 WHERE `entryorguid`=33422 AND `source_type`=0 AND `id`=1 AND `link`=0; diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 276074ca9079ef..6f98fd9fcfb92b 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -601,7 +601,7 @@ void SmartAI::MovepointReached(uint32 id) if (mLastWP) { me->SetPosition(mLastWP->x, mLastWP->y, mLastWP->z, me->GetOrientation()); - me->SetHomePosition(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), me->GetOrientation()); + me->SetHomePosition(me->GetPosition()); } if (HasEscortState(SMART_ESCORT_PAUSED)) diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index 9452c86d673308..d9274030bf1244 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -593,9 +593,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u { // may be nullptr if (go) - { go->CastSpell(target->ToUnit(), e.action.cast.spell); - } if (!IsUnit(target)) continue; @@ -604,29 +602,24 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u { caster->CastSpell(target->ToUnit(), e.action.cast.spell, (e.action.cast.castFlags & SMARTCAST_TRIGGERED)); } - else if (me && (!(e.action.cast.castFlags & SMARTCAST_AURA_NOT_PRESENT) || !target->ToUnit()->HasAura(e.action.cast.spell))) + else if (me) { - if (e.action.cast.castFlags & SMARTCAST_INTERRUPT_PREVIOUS) - { - me->InterruptNonMeleeSpells(false); - } + // If target has the aura, skip + if ((e.action.cast.castFlags & SMARTCAST_AURA_NOT_PRESENT) && target->ToUnit()->HasAura(e.action.cast.spell)) + continue; + // If the threatlist is a singleton, cancel if (e.action.cast.castFlags & SMARTCAST_THREATLIST_NOT_SINGLE) if (me->GetThreatMgr().GetThreatListSize() <= 1) break; - TriggerCastFlags triggerFlags = TRIGGERED_NONE; - if (e.action.cast.castFlags & SMARTCAST_TRIGGERED) - { - if (e.action.cast.triggerFlags) - { - triggerFlags = TriggerCastFlags(e.action.cast.triggerFlags); - } - else - { - triggerFlags = TRIGGERED_FULL_MASK; - } - } + // If target does not use mana, skip + if ((e.action.cast.castFlags & SMARTCAST_TARGET_POWER_MANA) && !target->ToUnit()->GetPower(POWER_MANA)) + continue; + + // Interrupts current spellcast + if (e.action.cast.castFlags & SMARTCAST_INTERRUPT_PREVIOUS) + me->InterruptNonMeleeSpells(false); // Flag usable only if caster has max dist set. if ((e.action.cast.castFlags & SMARTCAST_COMBAT_MOVE) && GetCasterMaxDist() > 0.0f && me->GetMaxPower(GetCasterPowerType()) > 0) @@ -647,15 +640,19 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u } } + TriggerCastFlags triggerFlags = TRIGGERED_NONE; + if (e.action.cast.castFlags & SMARTCAST_TRIGGERED) + { + if (e.action.cast.triggerFlags) + triggerFlags = TriggerCastFlags(e.action.cast.triggerFlags); + else + triggerFlags = TRIGGERED_FULL_MASK; + } + me->CastSpell(target->ToUnit(), e.action.cast.spell, triggerFlags); LOG_DEBUG("scripts.ai", "SmartScript::ProcessAction:: SMART_ACTION_CAST: Unit {} casts spell {} on target {} with castflags {}", me->GetGUID().ToString(), e.action.cast.spell, target->GetGUID().ToString(), e.action.cast.castFlags); } - else - { - LOG_DEBUG("scripts.ai", "Spell {} not cast because it has flag SMARTCAST_AURA_NOT_PRESENT and the target {} already has the aura", - e.action.cast.spell, target->GetGUID().ToString()); - } } break; } @@ -2991,6 +2988,47 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u break; } + case SMART_ACTION_SET_ORIENTATION_TARGET: + { + switch (e.action.orientationTarget.type) + { + case 0: // Reset + { + for (WorldObject* target : targets) + target->ToCreature()->SetFacingTo((target->ToCreature()->HasUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT) && target->ToCreature()->GetTransGUID() ? target->ToCreature()->GetTransportHomePosition() : target->ToCreature()->GetHomePosition()).GetOrientation()); + + break; + } + case 1: // Target target.o + { + for (WorldObject* target : targets) + target->ToCreature()->SetFacingTo(e.target.o); + + break; + } + case 2: // Target source + { + for (WorldObject* target : targets) + target->ToCreature()->SetFacingToObject(me); + + break; + } + case 3: // Target parameters + { + ObjectVector facingTargets; + GetTargets(facingTargets, CreateSmartEvent(SMART_EVENT_UPDATE_IC, 0, 0, 0, 0, 0, 0, 0, SMART_ACTION_NONE, 0, 0, 0, 0, 0, 0, (SMARTAI_TARGETS)e.action.orientationTarget.targetType, e.action.orientationTarget.targetParam1, e.action.orientationTarget.targetParam2, e.action.orientationTarget.targetParam3, e.action.orientationTarget.targetParam4, 0), unit); + + for (WorldObject* facingTarget : facingTargets) + for (WorldObject* target : targets) + target->ToCreature()->SetFacingToObject(facingTarget); + + break; + } + default: + break; + } + break; + } default: LOG_ERROR("sql.sql", "SmartScript::ProcessAction: Entry {} SourceType {}, Event {}, Unhandled Action type {}", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType()); break; @@ -3162,7 +3200,7 @@ void SmartScript::GetTargets(ObjectVector& targets, SmartScriptHolder const& e, if (Unit* u = me->AI()->SelectTarget(SelectTargetMethod::MaxThreat, 1, PowerUsersSelector(me, Powers(e.target.hostileRandom.powerType - 1), (float)e.target.hostileRandom.maxDist, e.target.hostileRandom.playerOnly))) targets.push_back(u); } - else if (Unit* u = me->AI()->SelectTarget(SelectTargetMethod::MaxThreat, 1, (float)e.target.hostileRandom.maxDist, e.target.hostileRandom.playerOnly)) + else if (Unit* u = me->AI()->SelectTarget(SelectTargetMethod::MaxThreat, 1, (float)e.target.hostileRandom.maxDist, e.target.hostileRandom.playerOnly, true, -e.target.hostileRandom.aura)) targets.push_back(u); } break; @@ -3174,7 +3212,7 @@ void SmartScript::GetTargets(ObjectVector& targets, SmartScriptHolder const& e, if (Unit* u = me->AI()->SelectTarget(SelectTargetMethod::MinThreat, 0, PowerUsersSelector(me, Powers(e.target.hostileRandom.powerType - 1), (float)e.target.hostileRandom.maxDist, e.target.hostileRandom.playerOnly))) targets.push_back(u); } - else if (Unit* u = me->AI()->SelectTarget(SelectTargetMethod::MinThreat, 0, (float)e.target.hostileRandom.maxDist, e.target.hostileRandom.playerOnly)) + else if (Unit* u = me->AI()->SelectTarget(SelectTargetMethod::MinThreat, 0, (float)e.target.hostileRandom.maxDist, e.target.hostileRandom.playerOnly, true, -e.target.hostileRandom.aura)) targets.push_back(u); } break; @@ -3186,7 +3224,7 @@ void SmartScript::GetTargets(ObjectVector& targets, SmartScriptHolder const& e, if (Unit* u = me->AI()->SelectTarget(SelectTargetMethod::Random, 0, PowerUsersSelector(me, Powers(e.target.hostileRandom.powerType - 1), (float)e.target.hostileRandom.maxDist, e.target.hostileRandom.playerOnly))) targets.push_back(u); } - else if (Unit* u = me->AI()->SelectTarget(SelectTargetMethod::Random, 0, (float)e.target.hostileRandom.maxDist, e.target.hostileRandom.playerOnly)) + else if (Unit* u = me->AI()->SelectTarget(SelectTargetMethod::Random, 0, (float)e.target.hostileRandom.maxDist, e.target.hostileRandom.playerOnly, true, -e.target.hostileRandom.aura)) targets.push_back(u); } break; @@ -3198,7 +3236,7 @@ void SmartScript::GetTargets(ObjectVector& targets, SmartScriptHolder const& e, if (Unit* u = me->AI()->SelectTarget(SelectTargetMethod::Random, 1, PowerUsersSelector(me, Powers(e.target.hostileRandom.powerType - 1), (float)e.target.hostileRandom.maxDist, e.target.hostileRandom.playerOnly))) targets.push_back(u); } - else if (Unit* u = me->AI()->SelectTarget(SelectTargetMethod::Random, 1, (float)e.target.hostileRandom.maxDist, e.target.hostileRandom.playerOnly)) + else if (Unit* u = me->AI()->SelectTarget(SelectTargetMethod::Random, 1, (float)e.target.hostileRandom.maxDist, e.target.hostileRandom.playerOnly, true, -e.target.hostileRandom.aura)) targets.push_back(u); } break; @@ -3785,16 +3823,8 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui if (!me || !me->IsEngaged() || !me->GetVictim()) return; - if (me->IsInRange(me->GetVictim(), (float)e.event.rangeRepeat.minRange, (float)e.event.rangeRepeat.maxRange)) - { - if (e.event.rangeRepeat.onlyFireOnRepeat == 2) - { - e.event.rangeRepeat.onlyFireOnRepeat = 1; - RecalcTimer(e, e.event.rangeRepeat.repeatMin, e.event.rangeRepeat.repeatMax); - } - else - ProcessTimedAction(e, e.event.rangeRepeat.repeatMin, e.event.rangeRepeat.repeatMax, me->GetVictim()); - } + if (me->IsInRange(me->GetVictim(), (float)e.event.minMaxRepeat.rangeMin, (float)e.event.minMaxRepeat.rangeMax)) + ProcessTimedAction(e, e.event.minMaxRepeat.repeatMin, e.event.minMaxRepeat.repeatMax, me->GetVictim()); else RecalcTimer(e, 1200, 1200); // make it predictable @@ -3947,9 +3977,11 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui if (Unit* victim = me->GetVictim()) { - if (!victim->HasInArc(static_cast(M_PI), me)) - ProcessTimedAction(e, e.event.behindTarget.cooldownMin, e.event.behindTarget.cooldownMax, victim); + if (e.event.minMaxRepeat.rangeMax && (me->IsInRange(victim, (float)e.event.minMaxRepeat.rangeMin, (float)e.event.minMaxRepeat.rangeMax))) + if (!victim->HasInArc(static_cast(M_PI), me)) + ProcessTimedAction(e, e.event.minMaxRepeat.repeatMin, e.event.minMaxRepeat.repeatMax, victim); } + break; } case SMART_EVENT_RECEIVE_EMOTE: @@ -4229,7 +4261,7 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui if (IsUnit(target) && me->IsFriendlyTo(target->ToUnit()) && target->ToUnit()->IsAlive() && target->ToUnit()->IsInCombat()) { uint32 healthPct = uint32(target->ToUnit()->GetHealthPct()); - if (healthPct > e.event.friendlyHealthPct.maxHpPct || healthPct < e.event.friendlyHealthPct.minHpPct) + if (healthPct > e.event.friendlyHealthPct.hpPct) { continue; } @@ -4243,7 +4275,7 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui } case SMART_TARGET_SELF: case SMART_TARGET_ACTION_INVOKER: - unitTarget = DoSelectLowestHpPercentFriendly((float)e.event.friendlyHealthPct.radius, e.event.friendlyHealthPct.minHpPct, e.event.friendlyHealthPct.maxHpPct); + unitTarget = DoSelectLowestHpPercentFriendly((float)e.event.friendlyHealthPct.radius, 0, e.event.friendlyHealthPct.hpPct); break; default: return; @@ -4435,14 +4467,14 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui { if (Unit* target = ObjectAccessor::GetUnit(*me, (*i)->getUnitGuid())) { - if (!target || target->IsPet() || target->IsTotem() || !target->IsNonMeleeSpellCast(false, false, true)) + if (!target || !IsPlayer(target) || !target->IsNonMeleeSpellCast(false, false, true)) continue; - if (e.event.areaCasting.rangeMin && !(me->IsInRange(target, (float)e.event.areaCasting.rangeMin, (float)e.event.areaCasting.rangeMax))) + if (!(me->IsInRange(target, (float)e.event.minMaxRepeat.rangeMin, (float)e.event.minMaxRepeat.rangeMax))) continue; ProcessAction(e, target); - RecalcTimer(e, e.event.areaCasting.repeatMin, e.event.areaCasting.repeatMax); + RecalcTimer(e, e.event.minMaxRepeat.repeatMin, e.event.minMaxRepeat.repeatMax); return; } @@ -4463,11 +4495,11 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui { if (Unit* target = ObjectAccessor::GetUnit(*me, (*i)->getUnitGuid())) { - if (!(me->IsInRange(target, (float)e.event.areaRange.rangeMin, (float)e.event.areaRange.rangeMax))) + if (!(me->IsInRange(target, (float)e.event.minMaxRepeat.rangeMin, (float)e.event.minMaxRepeat.rangeMax))) continue; ProcessAction(e, target); - RecalcTimer(e, e.event.areaRange.repeatMin, e.event.areaRange.repeatMax); + RecalcTimer(e, e.event.minMaxRepeat.repeatMin, e.event.minMaxRepeat.repeatMax); return; } } @@ -4487,16 +4519,6 @@ void SmartScript::InitTimer(SmartScriptHolder& e) switch (e.GetEventType()) { //set only events which have initial timers - case SMART_EVENT_RANGE: - // If onlyFireOnRepeat is true set to 2 before entering combat. Will be set back to 1 after entering combat to ignore initial firing. - if (e.event.rangeRepeat.onlyFireOnRepeat == 1) - e.event.rangeRepeat.onlyFireOnRepeat = 2; - // make it predictable - RecalcTimer(e, 1200, 1200); - break; - case SMART_EVENT_AREA_RANGE: - RecalcTimer(e, e.event.areaRange.min, e.event.areaRange.max); - break; case SMART_EVENT_NEAR_PLAYERS: case SMART_EVENT_NEAR_PLAYERS_NEGATION: RecalcTimer(e, e.event.nearPlayer.firstTimer, e.event.nearPlayer.firstTimer); @@ -4504,13 +4526,13 @@ void SmartScript::InitTimer(SmartScriptHolder& e) case SMART_EVENT_UPDATE: case SMART_EVENT_UPDATE_IC: case SMART_EVENT_UPDATE_OOC: + case SMART_EVENT_RANGE: + case SMART_EVENT_AREA_RANGE: + case SMART_EVENT_AREA_CASTING: + case SMART_EVENT_IS_BEHIND_TARGET: + case SMART_EVENT_FRIENDLY_HEALTH_PCT: RecalcTimer(e, e.event.minMaxRepeat.min, e.event.minMaxRepeat.max); break; - case SMART_EVENT_OOC_LOS: - case SMART_EVENT_IC_LOS: - // Xinef: cooldown should be processed AFTER action is done, not before... - //RecalcTimer(e, e.event.los.cooldownMin, e.event.los.cooldownMax); - //break; case SMART_EVENT_DISTANCE_CREATURE: case SMART_EVENT_DISTANCE_GAMEOBJECT: RecalcTimer(e, e.event.distance.repeat, e.event.distance.repeat); @@ -4519,9 +4541,6 @@ void SmartScript::InitTimer(SmartScriptHolder& e) case SMART_EVENT_NEAR_UNIT_NEGATION: RecalcTimer(e, e.event.nearUnit.timer, e.event.nearUnit.timer); break; - case SMART_EVENT_AREA_CASTING: - RecalcTimer(e, e.event.areaCasting.min, e.event.areaCasting.max); - break; default: e.active = true; break; @@ -4550,14 +4569,14 @@ void SmartScript::UpdateTimer(SmartScriptHolder& e, uint32 const diff) if (e.timer < diff) { - // delay spell cast event if another spell is being casted + // delay spell cast for another AI tick if another spell is being cast if (e.GetActionType() == SMART_ACTION_CAST) { if (!(e.action.cast.castFlags & SMARTCAST_INTERRUPT_PREVIOUS)) { if (me && me->HasUnitState(UNIT_STATE_CASTING)) { - e.timer = 1; + e.timer = 1200; return; } } @@ -4566,9 +4585,9 @@ void SmartScript::UpdateTimer(SmartScriptHolder& e, uint32 const diff) // Delay flee for assist event if casting if (e.GetActionType() == SMART_ACTION_FLEE_FOR_ASSIST && me && me->HasUnitState(UNIT_STATE_CASTING)) { - e.timer = 1; + e.timer = 1200; return; - } + } // @TODO: Can't these be handled by the action themselves instead? Less expensive e.active = true;//activate events with cooldown switch (e.GetEventType())//process ONLY timed events @@ -4809,10 +4828,10 @@ void SmartScript::OnInitialize(WorldObject* obj, AreaTrigger const* at) InitTimer((*i));//calculate timers for first time use if (i->GetEventType() == SMART_EVENT_RANGE && i->GetActionType() == SMART_ACTION_ALLOW_COMBAT_MOVEMENT) { - if (i->action.combatMove.move == 1 && i->event.rangeRepeat.minRange > minEnableDist) - minEnableDist = i->event.rangeRepeat.minRange; - else if (i->action.combatMove.move == 0 && (i->event.rangeRepeat.maxRange < maxDisableDist || maxDisableDist == 0)) - maxDisableDist = i->event.rangeRepeat.maxRange; + if (i->action.combatMove.move == 1 && i->event.minMaxRepeat.rangeMin > minEnableDist) + minEnableDist = i->event.minMaxRepeat.rangeMin; + else if (i->action.combatMove.move == 0 && (i->event.minMaxRepeat.rangeMax < maxDisableDist || maxDisableDist == 0)) + maxDisableDist = i->event.minMaxRepeat.rangeMax; } // Xinef: if smartcast combat move flag is present diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index aceadfc11b294c..85422ee251f7f8 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -264,29 +264,14 @@ void SmartAIMgr::LoadSmartAIFromDB() case SMART_EVENT_FRIENDLY_MISSING_BUFF: case SMART_EVENT_HAS_AURA: case SMART_EVENT_TARGET_BUFFED: - if (temp.event.minMaxRepeat.repeatMin == 0 && temp.event.minMaxRepeat.repeatMax == 0) - temp.event.event_flags |= SMART_EVENT_FLAG_NOT_REPEATABLE; - break; case SMART_EVENT_RANGE: - if (temp.event.rangeRepeat.repeatMin == 0 && temp.event.rangeRepeat.repeatMax == 0) - temp.event.event_flags |= SMART_EVENT_FLAG_NOT_REPEATABLE; - // Will only work properly if value is 0 or 1 - if (temp.event.rangeRepeat.onlyFireOnRepeat > 1) - temp.event.rangeRepeat.onlyFireOnRepeat = 1; - break; case SMART_EVENT_AREA_RANGE: - if (temp.event.areaRange.repeatMin == 0 && temp.event.areaRange.repeatMax == 0) - temp.event.event_flags |= SMART_EVENT_FLAG_NOT_REPEATABLE; - break; - case SMART_EVENT_VICTIM_CASTING: - case SMART_EVENT_IS_BEHIND_TARGET: - if (temp.event.minMaxRepeat.min == 0 && temp.event.minMaxRepeat.max == 0) - temp.event.event_flags |= SMART_EVENT_FLAG_NOT_REPEATABLE; - break; case SMART_EVENT_AREA_CASTING: - if (temp.event.areaCasting.repeatMin == 0 && temp.event.areaCasting.repeatMax == 0) + case SMART_EVENT_IS_BEHIND_TARGET: + if (temp.event.minMaxRepeat.repeatMin == 0 && temp.event.minMaxRepeat.repeatMax == 0) temp.event.event_flags |= SMART_EVENT_FLAG_NOT_REPEATABLE; break; + case SMART_EVENT_VICTIM_CASTING: case SMART_EVENT_FRIENDLY_IS_CC: if (temp.event.friendlyCC.repeatMin == 0 && temp.event.friendlyCC.repeatMax == 0) temp.event.event_flags |= SMART_EVENT_FLAG_NOT_REPEATABLE; @@ -506,7 +491,7 @@ bool SmartAIMgr::CheckUnusedEventParams(SmartScriptHolder const& e) case SMART_EVENT_DEATH: return NO_PARAMS; case SMART_EVENT_EVADE: return NO_PARAMS; case SMART_EVENT_SPELLHIT: return sizeof(SmartEvent::spellHit); - case SMART_EVENT_RANGE: return sizeof(SmartEvent::rangeRepeat); + case SMART_EVENT_RANGE: return sizeof(SmartEvent::minMaxRepeat); case SMART_EVENT_OOC_LOS: return sizeof(SmartEvent::los); case SMART_EVENT_RESPAWN: return sizeof(SmartEvent::respawn); case SMART_EVENT_TARGET_HEALTH_PCT: return sizeof(SmartEvent::minMaxRepeat); @@ -564,7 +549,7 @@ bool SmartAIMgr::CheckUnusedEventParams(SmartScriptHolder const& e) case SMART_EVENT_GOSSIP_HELLO: return sizeof(SmartEvent::gossipHello); case SMART_EVENT_FOLLOW_COMPLETED: return NO_PARAMS; case SMART_EVENT_EVENT_PHASE_CHANGE: return sizeof(SmartEvent::eventPhaseChange); - case SMART_EVENT_IS_BEHIND_TARGET: return sizeof(SmartEvent::behindTarget); + case SMART_EVENT_IS_BEHIND_TARGET: return sizeof(SmartEvent::minMaxRepeat); case SMART_EVENT_GAME_EVENT_START: return sizeof(SmartEvent::gameEvent); case SMART_EVENT_GAME_EVENT_END: return sizeof(SmartEvent::gameEvent); case SMART_EVENT_GO_STATE_CHANGED: return sizeof(SmartEvent::goStateChanged); @@ -584,8 +569,8 @@ bool SmartAIMgr::CheckUnusedEventParams(SmartScriptHolder const& e) case SMART_EVENT_NEAR_PLAYERS_NEGATION: return sizeof(SmartEvent::nearPlayerNegation); case SMART_EVENT_NEAR_UNIT: return sizeof(SmartEvent::nearUnit); case SMART_EVENT_NEAR_UNIT_NEGATION: return sizeof(SmartEvent::nearUnitNegation); - case SMART_EVENT_AREA_CASTING: return sizeof(SmartEvent::areaCasting); - case SMART_EVENT_AREA_RANGE: return sizeof(SmartEvent::areaRange); + case SMART_EVENT_AREA_CASTING: return sizeof(SmartEvent::minMaxRepeat); + case SMART_EVENT_AREA_RANGE: return sizeof(SmartEvent::minMaxRepeat); default: LOG_WARN("sql.sql", "SmartAIMgr: entryorguid {} source_type {} id {} action_type {} is using an event {} with no unused params specified in SmartAIMgr::CheckUnusedEventParams(), please report this.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.GetEventType()); @@ -781,6 +766,7 @@ bool SmartAIMgr::CheckUnusedActionParams(SmartScriptHolder const& e) case SMART_ACTION_SUMMON_RADIAL: return sizeof(SmartAction::radialSummon); case SMART_ACTION_PLAY_SPELL_VISUAL: return sizeof(SmartAction::spellVisual); case SMART_ACTION_FOLLOW_GROUP: return sizeof(SmartAction::followGroup); + case SMART_ACTION_SET_ORIENTATION_TARGET: return sizeof(SmartAction::orientationTarget); default: LOG_WARN("sql.sql", "SmartAIMgr: entryorguid {} source_type {} id {} action_type {} is using an action with no unused params specified in SmartAIMgr::CheckUnusedActionParams(), please report this.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType()); @@ -963,21 +949,17 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) if (!IsMinMaxValid(e, e.event.minMaxRepeat.repeatMin, e.event.minMaxRepeat.repeatMax)) return false; break; - case SMART_EVENT_RANGE: - if (!IsMinMaxValid(e, e.event.rangeRepeat.minRange, e.event.rangeRepeat.maxRange)) - return false; - - if (!IsMinMaxValid(e, e.event.rangeRepeat.repeatMin, e.event.rangeRepeat.repeatMax)) - return false; - break; case SMART_EVENT_AREA_RANGE: - if (!IsMinMaxValid(e, e.event.areaRange.min, e.event.areaRange.max)) + case SMART_EVENT_AREA_CASTING: + case SMART_EVENT_IS_BEHIND_TARGET: + case SMART_EVENT_RANGE: + if (!IsMinMaxValid(e, e.event.minMaxRepeat.min, e.event.minMaxRepeat.max)) return false; - if (!IsMinMaxValid(e, e.event.areaRange.repeatMin, e.event.areaRange.repeatMax)) + if (!IsMinMaxValid(e, e.event.minMaxRepeat.repeatMin, e.event.minMaxRepeat.repeatMax)) return false; - if (!IsMinMaxValid(e, e.event.areaRange.rangeMin, e.event.areaRange.rangeMax)) + if (!IsMinMaxValid(e, e.event.minMaxRepeat.rangeMin, e.event.minMaxRepeat.rangeMax)) return false; break; @@ -1070,16 +1052,6 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) if (!IsMinMaxValid(e, e.event.targetCasting.repeatMin, e.event.targetCasting.repeatMax)) return false; break; - case SMART_EVENT_AREA_CASTING: - if (!IsMinMaxValid(e, e.event.areaCasting.min, e.event.areaCasting.max)) - return false; - - if (!IsMinMaxValid(e, e.event.areaCasting.repeatMin, e.event.areaCasting.repeatMax)) - return false; - - if (!IsMinMaxValid(e, e.event.areaCasting.rangeMin, e.event.areaCasting.rangeMax)) - return false; - break; case SMART_EVENT_PASSENGER_BOARDED: case SMART_EVENT_PASSENGER_REMOVED: if (!IsMinMaxValid(e, e.event.minMax.repeatMin, e.event.minMax.repeatMax)) @@ -1185,10 +1157,6 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) } break; } - case SMART_EVENT_IS_BEHIND_TARGET: - if (!IsMinMaxValid(e, e.event.behindTarget.cooldownMin, e.event.behindTarget.cooldownMax)) - return false; - break; case SMART_EVENT_GAME_EVENT_START: case SMART_EVENT_GAME_EVENT_END: { @@ -1207,10 +1175,13 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) break; } case SMART_EVENT_FRIENDLY_HEALTH_PCT: + if (!IsMinMaxValid(e, e.event.friendlyHealthPct.min, e.event.friendlyHealthPct.max)) + return false; + if (!IsMinMaxValid(e, e.event.friendlyHealthPct.repeatMin, e.event.friendlyHealthPct.repeatMax)) return false; - if (e.event.friendlyHealthPct.maxHpPct > 100 || e.event.friendlyHealthPct.minHpPct > 100) + if (e.event.friendlyHealthPct.hpPct > 100) { LOG_ERROR("sql.sql", "SmartAIMgr: Entry {} SourceType {} Event {} Action {} has pct value above 100, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType()); return false; @@ -1971,6 +1942,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) case SMART_ACTION_SUMMON_RADIAL: case SMART_ACTION_PLAY_SPELL_VISUAL: case SMART_ACTION_FOLLOW_GROUP: + case SMART_ACTION_SET_ORIENTATION_TARGET: break; default: LOG_ERROR("sql.sql", "SmartAIMgr: Not handled action_type({}), event_type({}), Entry {} SourceType {} Event {}, skipped.", e.GetActionType(), e.GetEventType(), e.entryOrGuid, e.GetScriptType(), e.event_id); diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.h b/src/server/game/AI/SmartScripts/SmartScriptMgr.h index b822ae9898e4c9..3ac499498c1abd 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.h +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.h @@ -124,7 +124,7 @@ enum SMART_EVENT SMART_EVENT_DEATH = 6, // NONE SMART_EVENT_EVADE = 7, // NONE SMART_EVENT_SPELLHIT = 8, // SpellID, School, CooldownMin, CooldownMax - SMART_EVENT_RANGE = 9, // minRange, maxRange, repeatMin, repeatMax, onlyFireOnRepeat + SMART_EVENT_RANGE = 9, // min, max, repeatMin, repeatMax, rangeMin, rangeMax SMART_EVENT_OOC_LOS = 10, // HostilityMode, MaxRnage, CooldownMin, CooldownMax, PlayerOnly SMART_EVENT_RESPAWN = 11, // type, MapId, ZoneId SMART_EVENT_TARGET_HEALTH_PCT = 12, // HPMin%, HPMax%, RepeatMin, RepeatMax @@ -182,14 +182,14 @@ enum SMART_EVENT SMART_EVENT_GOSSIP_HELLO = 64, // event_para_1 (only) 0 = no filter set, always execute action, 1 = GossipHello only filter set, skip action if reportUse, 2 = reportUse only filter set, skip action if GossipHello SMART_EVENT_FOLLOW_COMPLETED = 65, // none SMART_EVENT_EVENT_PHASE_CHANGE = 66, // event phase mask (<= SMART_EVENT_PHASE_ALL) - SMART_EVENT_IS_BEHIND_TARGET = 67, // cooldownMin, CooldownMax + SMART_EVENT_IS_BEHIND_TARGET = 67, // min, max, repeatMin, repeatMax, rangeMin, rangeMax SMART_EVENT_GAME_EVENT_START = 68, // game_event.Entry SMART_EVENT_GAME_EVENT_END = 69, // game_event.Entry SMART_EVENT_GO_STATE_CHANGED = 70, // go state SMART_EVENT_GO_EVENT_INFORM = 71, // eventId SMART_EVENT_ACTION_DONE = 72, // eventId (SharedDefines.EventId) SMART_EVENT_ON_SPELLCLICK = 73, // clicker (unit) - SMART_EVENT_FRIENDLY_HEALTH_PCT = 74, // minHpPct, maxHpPct, repeatMin, repeatMax + SMART_EVENT_FRIENDLY_HEALTH_PCT = 74, // min, max, repeatMin, repeatMax, hpPct, range SMART_EVENT_DISTANCE_CREATURE = 75, // guid, entry, distance, repeat SMART_EVENT_DISTANCE_GAMEOBJECT = 76, // guid, entry, distance, repeat SMART_EVENT_COUNTER_SET = 77, // id, value, cooldownMin, cooldownMax @@ -210,8 +210,8 @@ enum SMART_EVENT SMART_EVENT_NEAR_PLAYERS_NEGATION = 102, // max, radius, first timer, repeatMin, repeatMax SMART_EVENT_NEAR_UNIT = 103, // type (0: creature 1: gob), entry, count, range, timer SMART_EVENT_NEAR_UNIT_NEGATION = 104, // type (0: creature 1: gob), entry, count, range, timer - SMART_EVENT_AREA_CASTING = 105, // min, max, repeatMin, repeatMax, range - SMART_EVENT_AREA_RANGE = 106, // min, max, repeatMin, repeatMax, range + SMART_EVENT_AREA_CASTING = 105, // min, max, repeatMin, repeatMax, rangeMin, rangeMax + SMART_EVENT_AREA_RANGE = 106, // min, max, repeatMin, repeatMax, rangeMin, rangeMax SMART_EVENT_AC_END = 107 }; @@ -230,17 +230,10 @@ struct SmartEvent uint32 max; uint32 repeatMin; uint32 repeatMax; + uint32 rangeMin; + uint32 rangeMax; } minMaxRepeat; - struct - { - uint32 minRange; - uint32 maxRange; - uint32 repeatMin; - uint32 repeatMax; - uint32 onlyFireOnRepeat; - } rangeRepeat; - struct { uint32 cooldownMin; @@ -430,12 +423,6 @@ struct SmartEvent uint32 phasemask; } eventPhaseChange; - struct - { - uint32 cooldownMin; - uint32 cooldownMax; - } behindTarget; - struct { uint32 gameEventId; @@ -458,10 +445,11 @@ struct SmartEvent struct { - uint32 minHpPct; - uint32 maxHpPct; + uint32 min; + uint32 max; uint32 repeatMin; uint32 repeatMax; + uint32 hpPct; uint32 radius; } friendlyHealthPct; @@ -517,26 +505,6 @@ struct SmartEvent uint32 timer; } nearUnitNegation; - struct - { - uint32 min; - uint32 max; - uint32 repeatMin; - uint32 repeatMax; - uint32 rangeMin; - uint32 rangeMax; - } areaCasting; - - struct - { - uint32 min; - uint32 max; - uint32 repeatMin; - uint32 repeatMax; - uint32 rangeMin; - uint32 rangeMax; - } areaRange; - struct { uint32 param1; @@ -743,8 +711,9 @@ enum SMART_ACTION SMART_ACTION_SUMMON_RADIAL = 228, // summonEntry, summonDuration, repetitions, startAngle, stepAngle, dist SMART_ACTION_PLAY_SPELL_VISUAL = 229, // visualId, visualIdImpact SMART_ACTION_FOLLOW_GROUP = 230, // followState, followType, dist + SMART_ACTION_SET_ORIENTATION_TARGET = 231, // type, target_type, target_param1, target_param2, target_param3, target_param4 - SMART_ACTION_AC_END = 231, // placeholder + SMART_ACTION_AC_END = 232, // placeholder }; enum class SmartActionSummonCreatureFlags @@ -1453,6 +1422,16 @@ struct SmartAction uint32 followType; uint32 dist; } followGroup; + + struct + { + uint32 type; + uint32 targetType; + uint32 targetParam1; + uint32 targetParam2; + uint32 targetParam3; + uint32 targetParam4; + } orientationTarget; //! Note for any new future actions //! All parameters must have type uint32 @@ -1484,10 +1463,10 @@ enum SMARTAI_TARGETS SMART_TARGET_NONE = 0, // NONE SMART_TARGET_SELF = 1, // Self cast SMART_TARGET_VICTIM = 2, // Our current target (ie: highest aggro) - SMART_TARGET_HOSTILE_SECOND_AGGRO = 3, // Second highest aggro, maxdist, playerOnly, powerType + 1 - SMART_TARGET_HOSTILE_LAST_AGGRO = 4, // Dead last on aggro, maxdist, playerOnly, powerType + 1 - SMART_TARGET_HOSTILE_RANDOM = 5, // Just any random target on our threat list, maxdist, playerOnly, powerType + 1 - SMART_TARGET_HOSTILE_RANDOM_NOT_TOP = 6, // Any random target except top threat, maxdist, playerOnly, powerType + 1 + SMART_TARGET_HOSTILE_SECOND_AGGRO = 3, // Second highest aggro, maxdist, playerOnly, powerType + 1, missing aura + SMART_TARGET_HOSTILE_LAST_AGGRO = 4, // Dead last on aggro, maxdist, playerOnly, powerType + 1, missing aura + SMART_TARGET_HOSTILE_RANDOM = 5, // Just any random target on our threat list, maxdist, playerOnly, powerType + 1, missing aura + SMART_TARGET_HOSTILE_RANDOM_NOT_TOP = 6, // Any random target except top threat, maxdist, playerOnly, powerType + 1, missing aura SMART_TARGET_ACTION_INVOKER = 7, // Unit who caused this Event to occur SMART_TARGET_POSITION = 8, // use xyz from event params SMART_TARGET_CREATURE_RANGE = 9, // CreatureEntry(0any), minDist, maxDist, alive(0 - both, 1 - alive, 2 - dead) @@ -1551,6 +1530,7 @@ struct SmartTarget uint32 maxDist; SAIBool playerOnly; uint32 powerType; + uint32 aura; } hostileRandom; struct @@ -1864,16 +1844,16 @@ const uint32 SmartAIEventMask[SMART_EVENT_AC_END][2] = enum SmartEventFlags { - SMART_EVENT_FLAG_NOT_REPEATABLE = 0x001, //Event can not repeat - SMART_EVENT_FLAG_DIFFICULTY_0 = 0x002, //Event only occurs in instance difficulty 0 - SMART_EVENT_FLAG_DIFFICULTY_1 = 0x004, //Event only occurs in instance difficulty 1 - SMART_EVENT_FLAG_DIFFICULTY_2 = 0x008, //Event only occurs in instance difficulty 2 - SMART_EVENT_FLAG_DIFFICULTY_3 = 0x010, //Event only occurs in instance difficulty 3 + SMART_EVENT_FLAG_NOT_REPEATABLE = 0x001, // Event can not repeat + SMART_EVENT_FLAG_DIFFICULTY_0 = 0x002, // Event only occurs in instance difficulty 0 + SMART_EVENT_FLAG_DIFFICULTY_1 = 0x004, // Event only occurs in instance difficulty 1 + SMART_EVENT_FLAG_DIFFICULTY_2 = 0x008, // Event only occurs in instance difficulty 2 + SMART_EVENT_FLAG_DIFFICULTY_3 = 0x010, // Event only occurs in instance difficulty 3 SMART_EVENT_FLAG_RESERVED_5 = 0x020, SMART_EVENT_FLAG_RESERVED_6 = 0x040, - SMART_EVENT_FLAG_DEBUG_ONLY = 0x080, //Event only occurs in debug build - SMART_EVENT_FLAG_DONT_RESET = 0x100, //Event will not reset in SmartScript::OnReset() - SMART_EVENT_FLAG_WHILE_CHARMED = 0x200, //Event occurs even if AI owner is charmed + SMART_EVENT_FLAG_DEBUG_ONLY = 0x080, // Event only occurs in debug build + SMART_EVENT_FLAG_DONT_RESET = 0x100, // Event will not reset in SmartScript::OnReset() + SMART_EVENT_FLAG_WHILE_CHARMED = 0x200, // Event occurs even if AI owner is charmed SMART_EVENT_FLAG_DIFFICULTY_ALL = (SMART_EVENT_FLAG_DIFFICULTY_0 | SMART_EVENT_FLAG_DIFFICULTY_1 | SMART_EVENT_FLAG_DIFFICULTY_2 | SMART_EVENT_FLAG_DIFFICULTY_3), SMART_EVENT_FLAGS_ALL = (SMART_EVENT_FLAG_NOT_REPEATABLE | SMART_EVENT_FLAG_DIFFICULTY_ALL | SMART_EVENT_FLAG_RESERVED_5 | SMART_EVENT_FLAG_RESERVED_6 | SMART_EVENT_FLAG_DEBUG_ONLY | SMART_EVENT_FLAG_DONT_RESET | SMART_EVENT_FLAG_WHILE_CHARMED) @@ -1881,14 +1861,15 @@ enum SmartEventFlags enum SmartCastFlags { - SMARTCAST_INTERRUPT_PREVIOUS = 0x01, //Interrupt any spell casting - SMARTCAST_TRIGGERED = 0x02, //Triggered (this makes spell cost zero mana and have no cast time) - //CAST_FORCE_CAST = 0x04, //Forces cast even if creature is out of mana or out of range - //CAST_NO_MELEE_IF_OOM = 0x08, //Prevents creature from entering melee if out of mana or out of range - //CAST_FORCE_TARGET_SELF = 0x10, //Forces the target to cast this spell on itself - SMARTCAST_AURA_NOT_PRESENT = 0x20, //Only casts the spell if the target does not have an aura from the spell - SMARTCAST_COMBAT_MOVE = 0x40, //Prevents combat movement if cast successful. Allows movement on range, OOM, LOS - SMARTCAST_THREATLIST_NOT_SINGLE = 0x80 //Only cast if the source's threatlist is higher than one. This includes pets (see Skeram's True Fulfillment) + SMARTCAST_INTERRUPT_PREVIOUS = 0x001, // Interrupt any spell casting + SMARTCAST_TRIGGERED = 0x002, // Triggered (this makes spell cost zero mana and have no cast time) + //CAST_FORCE_CAST = 0x004, // Forces cast even if creature is out of mana or out of range + //CAST_NO_MELEE_IF_OOM = 0x008, // Prevents creature from entering melee if out of mana or out of range + //CAST_FORCE_TARGET_SELF = 0x010, // Forces the target to cast this spell on itself + SMARTCAST_AURA_NOT_PRESENT = 0x020, // Only casts the spell if the target does not have an aura from the spell + SMARTCAST_COMBAT_MOVE = 0x040, // Prevents combat movement if cast successful. Allows movement on range, OOM, LOS + SMARTCAST_THREATLIST_NOT_SINGLE = 0x080, // Only cast if the source's threatlist is higher than one. This includes pets (see Skeram's True Fulfillment) + SMARTCAST_TARGET_POWER_MANA = 0x100 // Only cast if the target has power type mana (e.g. Mana Drain) }; enum SmartFollowType From fa6c9450948387ab21916231e74986e12708fceb Mon Sep 17 00:00:00 2001 From: Gultask <100873791+Gultask@users.noreply.github.com> Date: Sun, 10 Sep 2023 08:13:03 -0300 Subject: [PATCH 06/29] feat(DB/Creature): Add CreateObject column in the creature table (#17187) * Create rev_1693858384423226200.sql * i forgor coauthor :skull: Co-Authored-By: neifion-00000000 <91289495+neifion-00000000@users.noreply.github.com> * Update rev_1693858384423226200.sql * Update rev_1693858384423226200.sql --------- Co-authored-by: neifion-00000000 <91289495+neifion-00000000@users.noreply.github.com> --- .../rev_1693858384423226200.sql | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1693858384423226200.sql diff --git a/data/sql/updates/pending_db_world/rev_1693858384423226200.sql b/data/sql/updates/pending_db_world/rev_1693858384423226200.sql new file mode 100644 index 00000000000000..5cd175514b0eed --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1693858384423226200.sql @@ -0,0 +1,50 @@ +-- +ALTER TABLE `creature` + ADD COLUMN `CreateObject` TINYINT UNSIGNED NOT NULL DEFAULT '0' AFTER `VerifiedBuild`; + +-- Haggle +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` = 53788 AND `id1` = 14041; + +-- The Underbog +SET @CGUID := 138300; +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+218; + +-- The Steamvault +SET @CGUID := 142000; +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` BETWEEN @CGUID AND @CGUID+174; + +-- The Shattered Halls +SET @CGUID := 151000; +UPDATE `creature` SET `CreateObject` = 2 WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+4; +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` BETWEEN @CGUID+5 AND @CGUID+18; +UPDATE `creature` SET `CreateObject` = 3 WHERE `guid` BETWEEN @CGUID+19 AND @CGUID+34; +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` BETWEEN @CGUID+35 AND @CGUID+84; +UPDATE `creature` SET `CreateObject` = 2 WHERE `guid` BETWEEN @CGUID+85 AND @CGUID+88; +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` BETWEEN @CGUID+89 AND @CGUID+282; + +-- Sethekk Halls +SET @CGUID := 138600; +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+187; + +-- The Shadow Labyrinth +SET @CGUID := 146000; +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+224; +UPDATE `creature` SET `CreateObject` = 2 WHERE `guid` BETWEEN @CGUID+225 AND @CGUID+229; +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` BETWEEN @CGUID+230 AND @CGUID+235; + +-- The Mechanar +SET @CGUID := 138800; +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+93; +UPDATE `creature` SET `CreateObject` = 3 WHERE `guid` IN (138893, 138892, 138891, 138890, 138879, 138878, 138877, 138876, 138869, 138864, 138863, 138831, 138820, 138819, 138818, 138817); + +-- The Botanica +SET @CGUID := 147000; +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+187; + +-- The Arcatraz +SET @CGUID := 138900; +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+97; + +-- The Deathforge +SET @CGUID := 83028; +UPDATE `creature` SET `CreateObject` = 1 WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+84; From 2698ed5a26c5aa786301d575b6bca19f17b97571 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Sun, 10 Sep 2023 14:01:03 +0200 Subject: [PATCH 07/29] fix(CI): pending files (#17229) --- .github/workflows/import_pending.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/import_pending.yml b/.github/workflows/import_pending.yml index ca4ef57714658a..d4eb1322f8614c 100644 --- a/.github/workflows/import_pending.yml +++ b/.github/workflows/import_pending.yml @@ -27,10 +27,10 @@ jobs: - name: Import and commit pending sql run: | git config user.email "azerothcorebot@gmail.com" && git config user.name "AzerothCoreBot" - bash bin/acore-db-pendings - deno run --allow-all --unstable apps/ci/ci-pending-changelogs.ts # Get the latest changes from git git pull --rebase origin "${{ github.ref_name }}" + bash bin/acore-db-pendings + deno run --allow-all --unstable apps/ci/ci-pending-changelogs.ts git add -A . git commit -am "chore(DB): import pending files" -m "Referenced commit(s): ${GITHUB_SHA}" || true env: From ea37443ccaf0b058b218387c140d7b721f9e9a5c Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Sun, 10 Sep 2023 12:02:09 +0000 Subject: [PATCH 08/29] chore(DB): import pending files Referenced commit(s): 2698ed5a26c5aa786301d575b6bca19f17b97571 --- .../rev_1693093120417899200.sql => db_world/2023_09_10_00.sql} | 1 + .../rev_1693858384423226200.sql => db_world/2023_09_10_01.sql} | 1 + 2 files changed, 2 insertions(+) rename data/sql/updates/{pending_db_world/rev_1693093120417899200.sql => db_world/2023_09_10_00.sql} (99%) rename data/sql/updates/{pending_db_world/rev_1693858384423226200.sql => db_world/2023_09_10_01.sql} (97%) diff --git a/data/sql/updates/pending_db_world/rev_1693093120417899200.sql b/data/sql/updates/db_world/2023_09_10_00.sql similarity index 99% rename from data/sql/updates/pending_db_world/rev_1693093120417899200.sql rename to data/sql/updates/db_world/2023_09_10_00.sql index adeaa94e1c36f6..306cb21833e1ce 100644 --- a/data/sql/updates/pending_db_world/rev_1693093120417899200.sql +++ b/data/sql/updates/db_world/2023_09_10_00.sql @@ -1,3 +1,4 @@ +-- DB update 2023_09_05_00 -> 2023_09_10_00 -- Update IS_BEHIND_TARGET to new system UPDATE `smart_scripts` SET `event_param1`=1300, `event_param2`=7300, `event_param3`=1300, `event_param4`=7300, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=95 AND `source_type`=0 AND `id`=2 AND `link`=0; UPDATE `smart_scripts` SET `event_param1`=3900, `event_param2`=6900, `event_param3`=3900, `event_param4`=6900, `event_param5`=0, `event_param6`=5 WHERE `entryorguid`=732 AND `source_type`=0 AND `id`=0 AND `link`=0; diff --git a/data/sql/updates/pending_db_world/rev_1693858384423226200.sql b/data/sql/updates/db_world/2023_09_10_01.sql similarity index 97% rename from data/sql/updates/pending_db_world/rev_1693858384423226200.sql rename to data/sql/updates/db_world/2023_09_10_01.sql index 5cd175514b0eed..c6ffffa8823f2f 100644 --- a/data/sql/updates/pending_db_world/rev_1693858384423226200.sql +++ b/data/sql/updates/db_world/2023_09_10_01.sql @@ -1,3 +1,4 @@ +-- DB update 2023_09_10_00 -> 2023_09_10_01 -- ALTER TABLE `creature` ADD COLUMN `CreateObject` TINYINT UNSIGNED NOT NULL DEFAULT '0' AFTER `VerifiedBuild`; From 2c81ccaea46d60c7371715609548d4cc55aec586 Mon Sep 17 00:00:00 2001 From: Mike Delago <32778141+michaeldelago@users.noreply.github.com> Date: Sun, 10 Sep 2023 15:24:36 -0400 Subject: [PATCH 09/29] fix(apps/Docker): Missing arg for build:prod (#17231) --- apps/docker/docker-cmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docker/docker-cmd.sh b/apps/docker/docker-cmd.sh index cf45b4abb6c4e3..89e41e14a27598 100644 --- a/apps/docker/docker-cmd.sh +++ b/apps/docker/docker-cmd.sh @@ -140,7 +140,7 @@ while [[ $# -gt 0 ]]; do build:prod|prod:build) set -x - docker compose --profile build + docker compose --profile prod build docker image prune -f set +x shift From cceafcf580ccc622670764f8a12465ed3699cc97 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Mon, 11 Sep 2023 06:23:42 +0200 Subject: [PATCH 10/29] fix(CI): only run cpp check on AC (#17230) --- .github/workflows/cpp-check.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cpp-check.yml b/.github/workflows/cpp-check.yml index b29cb48162bc81..7a2cac94d17874 100644 --- a/.github/workflows/cpp-check.yml +++ b/.github/workflows/cpp-check.yml @@ -18,6 +18,7 @@ jobs: strategy: fail-fast: false runs-on: ubuntu-22.04 + if: github.repository == 'azerothcore/azerothcore-wotlk' name: cpp check steps: - uses: actions/checkout@v3 From 6506a67d0f20e3a3db2ccd2dd0385eeb6151d58c Mon Sep 17 00:00:00 2001 From: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com> Date: Mon, 11 Sep 2023 12:53:15 -0400 Subject: [PATCH 11/29] chore(DB/Creature): Correct VerifiedBuild for unverified chess piece spells. (#17233) Init. --- data/sql/updates/pending_db_world/verify-your-builds.sql | 1 + 1 file changed, 1 insertion(+) create mode 100644 data/sql/updates/pending_db_world/verify-your-builds.sql diff --git a/data/sql/updates/pending_db_world/verify-your-builds.sql b/data/sql/updates/pending_db_world/verify-your-builds.sql new file mode 100644 index 00000000000000..180632b9bac2d9 --- /dev/null +++ b/data/sql/updates/pending_db_world/verify-your-builds.sql @@ -0,0 +1 @@ +UPDATE `creature_template_spell` SET `VerifiedBuild` = 0 WHERE `CreatureID` IN (17211, 17469, 21160, 21664, 21682, 21683, 21684, 21726, 21747, 21748, 21750, 21752); From e2eef06317cbdabeb377476a6fae695f00d4e466 Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Mon, 11 Sep 2023 16:54:26 +0000 Subject: [PATCH 12/29] chore(DB): import pending files Referenced commit(s): 6506a67d0f20e3a3db2ccd2dd0385eeb6151d58c --- .../verify-your-builds.sql => db_world/2023_09_11_00.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/verify-your-builds.sql => db_world/2023_09_11_00.sql} (78%) diff --git a/data/sql/updates/pending_db_world/verify-your-builds.sql b/data/sql/updates/db_world/2023_09_11_00.sql similarity index 78% rename from data/sql/updates/pending_db_world/verify-your-builds.sql rename to data/sql/updates/db_world/2023_09_11_00.sql index 180632b9bac2d9..53ddde2c7d5e1b 100644 --- a/data/sql/updates/pending_db_world/verify-your-builds.sql +++ b/data/sql/updates/db_world/2023_09_11_00.sql @@ -1 +1,2 @@ +-- DB update 2023_09_10_01 -> 2023_09_11_00 UPDATE `creature_template_spell` SET `VerifiedBuild` = 0 WHERE `CreatureID` IN (17211, 17469, 21160, 21664, 21682, 21683, 21684, 21726, 21747, 21748, 21750, 21752); From a469cb5956e364058e5efc1869a8d40e4a5c5623 Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Thu, 14 Sep 2023 01:58:19 +0200 Subject: [PATCH 13/29] fix(Scripts/Karazhan): Malchezaar infernals now spawn in the correct locations under the right conditions (#17237) * initial test Co-authored-by: <100873791+Gultask@users.noreply.github.com> * change spawnMask * better failsafe * get list once * extend search range for relays * put infernal spawn in separate method for readability * add more methods * remove leftover method * dumb and dumber mistakes --- .../pending_db_world/helpers-malchezaar.sql | 17 +++ .../Karazhan/boss_prince_malchezaar.cpp | 121 ++++++++++-------- .../EasternKingdoms/Karazhan/karazhan.h | 9 +- 3 files changed, 95 insertions(+), 52 deletions(-) create mode 100644 data/sql/updates/pending_db_world/helpers-malchezaar.sql diff --git a/data/sql/updates/pending_db_world/helpers-malchezaar.sql b/data/sql/updates/pending_db_world/helpers-malchezaar.sql new file mode 100644 index 00000000000000..d60f8809bbe939 --- /dev/null +++ b/data/sql/updates/pending_db_world/helpers-malchezaar.sql @@ -0,0 +1,17 @@ +-- +DELETE FROM `creature` WHERE `guid` IN (135921, 135922, 135923, 135924, 135925, 135926, 135927, 135928, 135929, 135930, 135931, 135932, 135933, 135934); +INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `VerifiedBuild`) VALUES +(135923, 17644, 0, 0, 532, 3457, 3457, 1, 1, -11001.4, -1991.33, 275.119, 4.97419, 7200, 49890), +(135924, 17644, 0, 0, 532, 3457, 3457, 1, 1, -10984.4, -2016.32, 275.166, 3.1765, 7200, 49890), +(135925, 17644, 0, 0, 532, 3457, 3457, 1, 1, -10976.4, -1961.86, 275.128, 5.39307, 7200, 49890), +(135926, 17644, 0, 0, 532, 3457, 3457, 1, 1, -10975.6, -1984.06, 275.297, 2.9147, 7200, 49890), +(135927, 17644, 0, 0, 532, 3457, 3457, 1, 1, -10962.1, -2014.65, 275.512, 0.628319, 7200, 49890), +(135928, 17644, 0, 0, 532, 3457, 3457, 1, 1, -10953.4, -1983.33, 275.446, 5.00909, 7200, 49890), +(135929, 17644, 0, 0, 532, 3457, 3457, 1, 1, -10951.9, -1957.37, 275.31, 5.89921, 7200, 49890), +(135930, 17644, 0, 0, 532, 3457, 3457, 1, 1, -10931.5, -1983.72, 275.614, 3.22886, 7200, 49890), +(135931, 17644, 0, 0, 532, 3457, 3457, 1, 1, -10942.5, -2014.21, 275.737, 5.91667, 7200, 49890), +(135932, 17644, 0, 0, 532, 3457, 3457, 1, 1, -10929.6, -1958.1, 275.468, 4.71239, 7200, 49890), +(135933, 17644, 0, 0, 532, 3457, 3457, 1, 1, -10911, -1987.62, 275.881, 1.01229, 7200, 49890), +(135934, 17644, 0, 0, 532, 3457, 3457, 1, 1, -10924.4, -2005.02, 275.794, 6.05629, 7200, 49890), +(135921, 17645, 0, 0, 532, 3457, 3457, 1, 1, -10893.5107421875, -2081.342041015625, 342.29364013671875, 5.183627605438232421, 7200, 49890), +(135922, 17645, 0, 0, 532, 3457, 3457, 1, 1, -10833.099609375, -2151.580810546875, 380.8603515625, 4.625122547149658203, 7200, 49890); diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp index 9c8a293f91f7ea..31917b8a0b8b98 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp @@ -47,11 +47,13 @@ enum Spells enum creatures { - NPC_NETHERSPITE_INFERNAL = 17646, - NPC_MALCHEZARS_AXE = 17650, - INFERNAL_MODEL_INVISIBLE = 11686, - SPELL_INFERNAL_RELAY = 33814, // 30835, - EQUIP_ID_AXE = 33542 + NPC_NETHERSPITE_INFERNAL = 17646, + NPC_MALCHEZAARS_AXE = 17650, + INFERNAL_MODEL_INVISIBLE = 11686, + SPELL_INFERNAL_RELAY = 33814, // 30835, + SPELL_INFERNAL_RELAY_ONE = 30834, + SPELL_INFERNAL_RELAY_TWO = 30835, + EQUIP_ID_AXE = 33542 }; enum EventGroups @@ -68,44 +70,19 @@ enum Phases PHASE_THREE = 3 }; -struct InfernalPoint -{ - float x, y; -}; - -#define INFERNAL_Z 275.5f - -/*static InfernalPoint InfernalPoints[] = -{ - { -10922.8f, -1985.2f }, - { -10916.2f, -1996.2f }, - { -10932.2f, -2008.1f }, - { -10948.8f, -2022.1f }, - { -10958.7f, -1997.7f }, - { -10971.5f, -1997.5f }, - { -10990.8f, -1995.1f }, - { -10989.8f, -1976.5f }, - { -10971.6f, -1973.0f }, - { -10955.5f, -1974.0f }, - { -10939.6f, -1969.8f }, - { -10958.0f, -1952.2f }, - { -10941.7f, -1954.8f }, - { -10943.1f, -1988.5f }, - { -10948.8f, -2005.1f }, - { -10984.0f, -2019.3f }, - { -10932.8f, -1979.6f }, - { -10935.7f, -1996.0f } -};*/ - struct boss_malchezaar : public BossAI { - boss_malchezaar(Creature* creature) : BossAI(creature, DATA_MALCHEZZAR) { } + boss_malchezaar(Creature* creature) : BossAI(creature, DATA_MALCHEZAAR) { } + + std::list relays; + std::list infernalTargets; void Initialize() { _phase = 1; clearweapons(); - positions.clear(); + relays.clear(); + infernalTargets.clear(); instance->HandleGameObject(instance->GetGuidData(DATA_GO_NETHER_DOOR), true); } @@ -145,7 +122,7 @@ struct boss_malchezaar : public BossAI _phase = PHASE_THREE; clearweapons(); - me->SummonCreature(NPC_MALCHEZARS_AXE, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 10000); + me->SummonCreature(NPC_MALCHEZAARS_AXE, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 10000); scheduler.Schedule(20s, 30s, [this](TaskContext context) { @@ -174,10 +151,48 @@ struct boss_malchezaar : public BossAI instance->HandleGameObject(instance->GetGuidData(DATA_GO_NETHER_DOOR), true); } + void SpawnInfernal(Creature* relay, Creature* target) + { + if (Creature* infernal = relay->SummonCreature(NPC_NETHERSPITE_INFERNAL, target->GetPosition(), TEMPSUMMON_TIMED_DESPAWN, 180000)) + { + infernal->SetDisplayId(INFERNAL_MODEL_INVISIBLE); + relay->CastSpell(target, SPELL_INFERNAL_RELAY_TWO); + relay->CastSpell(infernal, SPELL_INFERNAL_RELAY); + infernal->SetFaction(me->GetFaction()); + infernal->SetControlled(true, UNIT_STATE_ROOT); + relay->CastSpell(infernal, SPELL_INFERNAL_RELAY); + summons.Summon(infernal); + } + } + + bool MaxSpawns(std::list spawns) + { + return spawns.size() == 0; + } + + Creature* PickTarget(std::list pickList) + { + uint8 index = urand(0, pickList.size()-1); + uint8 counter = 0; + for (Creature* creature : pickList) + { + if (counter == index) + { + return creature; + } + counter++; + } + return nullptr; + } + void JustEngagedWith(Unit* /*who*/) override { Talk(SAY_AGGRO); _JustEngagedWith(); + + me->GetCreaturesWithEntryInRange(relays, 250.0f, NPC_INFERNAL_RELAY); + me->GetCreaturesWithEntryInRange(infernalTargets, 100.0f, NPC_INFERNAL_TARGET); + instance->HandleGameObject(instance->GetGuidData(DATA_GO_NETHER_DOOR), false); scheduler.Schedule(30s, [this](TaskContext context) @@ -199,23 +214,30 @@ struct boss_malchezaar : public BossAI context.Repeat(); }).Schedule(40s, [this](TaskContext context) { - Position pos = me->GetRandomNearPosition(40.0);; - - if (Creature* RELAY = me->FindNearestCreature(NPC_RELAY, 100.0f)) + if (!MaxSpawns(infernalTargets)) // only spawn infernal when the area is not full { - if (Creature* infernal = RELAY->SummonCreature(NPC_NETHERSPITE_INFERNAL, pos, TEMPSUMMON_TIMED_DESPAWN, 180000)) + Talk(SAY_SUMMON); + if (Creature* infernalRelayOne = relays.back()) { - infernal->SetDisplayId(INFERNAL_MODEL_INVISIBLE); - infernal->SetFaction(me->GetFaction()); - infernal->SetControlled(true, UNIT_STATE_ROOT); - RELAY->AI()->DoCast(infernal, SPELL_INFERNAL_RELAY); - summons.Summon(infernal); + if (Creature* infernalRelayTwo = relays.front()) + { + infernalRelayOne->CastSpell(infernalRelayTwo, SPELL_INFERNAL_RELAY_ONE, true); + + if (Creature* infernalTarget = PickTarget(infernalTargets)) + { + infernalTargets.remove(infernalTarget); + SpawnInfernal(infernalRelayTwo, infernalTarget); + + scheduler.Schedule(3min, [this, infernalTarget](TaskContext) + { + infernalTargets.push_back(infernalTarget); //adds to list again + }); + + } + } } } - context.Repeat(_phase == PHASE_THREE ? 15s : 45s); - - Talk(SAY_SUMMON); }).Schedule(20s, [this](TaskContext context) { DoCastVictim(SPELL_SHADOW_WORD_PAIN); @@ -261,7 +283,6 @@ struct boss_malchezaar : public BossAI private: uint32 _phase; std::map _enfeebleTargets; - std::vector positions; }; struct npc_netherspite_infernal : public ScriptedAI diff --git a/src/server/scripts/EasternKingdoms/Karazhan/karazhan.h b/src/server/scripts/EasternKingdoms/Karazhan/karazhan.h index 86cf16fbe09d51..25a7fec00a8a84 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/karazhan.h +++ b/src/server/scripts/EasternKingdoms/Karazhan/karazhan.h @@ -37,7 +37,7 @@ enum KZDataTypes DATA_TERESTIAN = 7, DATA_NETHERSPITE = 8, DATA_CHESS_EVENT = 9, - DATA_MALCHEZZAR = 10, + DATA_MALCHEZAAR = 10, DATA_NIGHTBANE = 11, DATA_SERVANT_QUARTERS = 12, DATA_OPERA_OZ_DEATHCOUNT = 13, @@ -132,7 +132,12 @@ enum KZCreatures NPC_ROOK_A = 21160, NPC_KING_H = 21752, NPC_KING_A = 21684, - NPC_CHESS_EVENT_MEDIVH_CHEAT_FIRES = 22521 + NPC_CHESS_EVENT_MEDIVH_CHEAT_FIRES = 22521, + + // Malchezaar Helpers + NPC_INFERNAL_TARGET = 17644, + NPC_INFERNAL_RELAY = 17645 + }; enum KZGameObjectIds From 27943b6175ca6c2d95d5db9d7bfd8e550f8a2d72 Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Wed, 13 Sep 2023 23:59:51 +0000 Subject: [PATCH 14/29] chore(DB): import pending files Referenced commit(s): a469cb5956e364058e5efc1869a8d40e4a5c5623 --- .../helpers-malchezaar.sql => db_world/2023_09_13_00.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/helpers-malchezaar.sql => db_world/2023_09_13_00.sql} (97%) diff --git a/data/sql/updates/pending_db_world/helpers-malchezaar.sql b/data/sql/updates/db_world/2023_09_13_00.sql similarity index 97% rename from data/sql/updates/pending_db_world/helpers-malchezaar.sql rename to data/sql/updates/db_world/2023_09_13_00.sql index d60f8809bbe939..a4d496154bf24f 100644 --- a/data/sql/updates/pending_db_world/helpers-malchezaar.sql +++ b/data/sql/updates/db_world/2023_09_13_00.sql @@ -1,3 +1,4 @@ +-- DB update 2023_09_11_00 -> 2023_09_13_00 -- DELETE FROM `creature` WHERE `guid` IN (135921, 135922, 135923, 135924, 135925, 135926, 135927, 135928, 135929, 135930, 135931, 135932, 135933, 135934); INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `VerifiedBuild`) VALUES From 44d1df01c36d1a3c1f9e54c19b610b4f39c5a3d1 Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Thu, 14 Sep 2023 01:10:36 -0300 Subject: [PATCH 15/29] =?UTF-8?q?fix(Scripts/Karazhan):=20Should=20always?= =?UTF-8?q?=20be=20able=20to=20talk=20to=20chess=20pieces=20=E2=80=A6=20(#?= =?UTF-8?q?17246)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(Scripts/Karazhan): Should always be able to talk to chess pieces regardless of faction --- data/sql/updates/pending_db_world/rev_1694662379689891600.sql | 2 ++ .../scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 data/sql/updates/pending_db_world/rev_1694662379689891600.sql diff --git a/data/sql/updates/pending_db_world/rev_1694662379689891600.sql b/data/sql/updates/pending_db_world/rev_1694662379689891600.sql new file mode 100644 index 00000000000000..54c7763c20040e --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1694662379689891600.sql @@ -0,0 +1,2 @@ +-- +UPDATE `creature_template` SET `npcflag` = `npcflag` |1 WHERE `entry` IN (17469,17211,21748,21664,21750,21683,21747,21682,21726,21160,21752,21684); diff --git a/src/server/scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp b/src/server/scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp index f7c600a131c1d4..6f4a47161b5402 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp @@ -252,7 +252,6 @@ class instance_karazhan : public InstanceMapScript piece->NearTeleportTo(x, y, z, o); piece->AI()->DoAction(ACTION_CHESS_PIECE_RESET_ORIENTATION); piece->RemoveUnitFlag(UNIT_FLAG_NOT_SELECTABLE); - piece->RemoveNpcFlag(UNIT_NPC_FLAG_GOSSIP); piece->AI()->Reset(); } } From 1fc8029e304b3ffeb2dee538e1ee9abf03afa941 Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Thu, 14 Sep 2023 04:11:53 +0000 Subject: [PATCH 16/29] chore(DB): import pending files Referenced commit(s): 44d1df01c36d1a3c1f9e54c19b610b4f39c5a3d1 --- .../rev_1694662379689891600.sql => db_world/2023_09_14_00.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/rev_1694662379689891600.sql => db_world/2023_09_14_00.sql} (77%) diff --git a/data/sql/updates/pending_db_world/rev_1694662379689891600.sql b/data/sql/updates/db_world/2023_09_14_00.sql similarity index 77% rename from data/sql/updates/pending_db_world/rev_1694662379689891600.sql rename to data/sql/updates/db_world/2023_09_14_00.sql index 54c7763c20040e..ce3792ce625217 100644 --- a/data/sql/updates/pending_db_world/rev_1694662379689891600.sql +++ b/data/sql/updates/db_world/2023_09_14_00.sql @@ -1,2 +1,3 @@ +-- DB update 2023_09_13_00 -> 2023_09_14_00 -- UPDATE `creature_template` SET `npcflag` = `npcflag` |1 WHERE `entry` IN (17469,17211,21748,21664,21750,21683,21747,21682,21726,21160,21752,21684); From 8ba8f0fe9e275dbc7c4a5f63b46d6749b532ec52 Mon Sep 17 00:00:00 2001 From: Ludwig Date: Thu, 14 Sep 2023 22:27:39 +0200 Subject: [PATCH 17/29] fix(Core/Achievement): Implement ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK (#17180) * fix(Core): Implement ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK * fix(Core): LoadAchievementCriteriaData(): Add ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK - fixes minor oversight of ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK implementation - this enables DB achievement_criteria_data check for ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK --- .../rev_1693745806698601000.sql | 31 +++++++++++++++++++ .../game/Achievements/AchievementMgr.cpp | 15 ++++++++- src/server/game/Entities/Player/Player.cpp | 2 ++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 data/sql/updates/pending_db_world/rev_1693745806698601000.sql diff --git a/data/sql/updates/pending_db_world/rev_1693745806698601000.sql b/data/sql/updates/pending_db_world/rev_1693745806698601000.sql new file mode 100644 index 00000000000000..c05d4273f36f89 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1693745806698601000.sql @@ -0,0 +1,31 @@ +-- ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK +DELETE FROM `achievement_criteria_data` WHERE `criteria_id` IN (707, 708, 709, 710, 711, 712, 713, 714, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740); +INSERT INTO `achievement_criteria_data` (`criteria_id`, `type`, `value1`, `value2`, `ScriptName`) VALUES +(707, 23, 14, 0, ''), +(708, 23, 13, 0, ''), +(709, 23, 12, 0, ''), +(710, 23, 11, 0, ''), +(711, 23, 10, 0, ''), +(712, 23, 9, 0, ''), +(713, 23, 8, 0, ''), +(714, 23, 7, 0, ''), +(721, 23, 6, 0, ''), +(722, 23, 5, 0, ''), +(723, 23, 4, 0, ''), +(724, 23, 3, 0, ''), +(725, 23, 2, 0, ''), +(726, 23, 1, 0, ''), +(727, 23, 28, 0, ''), +(728, 23, 27, 0, ''), +(729, 23, 26, 0, ''), +(730, 23, 25, 0, ''), +(731, 23, 24, 0, ''), +(732, 23, 23, 0, ''), +(733, 23, 22, 0, ''), +(734, 23, 21, 0, ''), +(735, 23, 20, 0, ''), +(736, 23, 19, 0, ''), +(737, 23, 18, 0, ''), +(738, 23, 17, 0, ''), +(739, 23, 16, 0, ''), +(740, 23, 15, 0, ''); diff --git a/src/server/game/Achievements/AchievementMgr.cpp b/src/server/game/Achievements/AchievementMgr.cpp index 1e86f067c7c35e..4b1c92e728d573 100644 --- a/src/server/game/Achievements/AchievementMgr.cpp +++ b/src/server/game/Achievements/AchievementMgr.cpp @@ -82,6 +82,7 @@ bool AchievementCriteriaData::IsValid(AchievementCriteriaEntry const* criteria) case ACHIEVEMENT_CRITERIA_TYPE_ON_LOGIN: case ACHIEVEMENT_CRITERIA_TYPE_LOOT_EPIC_ITEM: case ACHIEVEMENT_CRITERIA_TYPE_RECEIVE_EPIC_ITEM: + case ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK: break; default: if (dataType != ACHIEVEMENT_CRITERIA_DATA_TYPE_SCRIPT) @@ -1732,6 +1733,16 @@ void AchievementMgr::UpdateAchievementCriteria(AchievementCriteriaTypes type, ui SetCriteriaProgress(achievementCriteria, 1, PROGRESS_ACCUMULATE); break; } + case ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK: + { + // those requirements couldn't be found in the dbc + AchievementCriteriaDataSet const* data = sAchievementMgr->GetCriteriaDataSet(achievementCriteria); + if (!data || !data->Meets(GetPlayer(), nullptr)) + continue; + + SetCriteriaProgress(achievementCriteria, 1); + break; + } // std case: not exist in DBC, not triggered in code as result case ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_HEALTH: case ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_SPELLPOWER: @@ -1742,7 +1753,6 @@ void AchievementMgr::UpdateAchievementCriteria(AchievementCriteriaTypes type, ui break; // FIXME: not triggered in code as result, need to implement case ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_RAID: - case ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK: case ACHIEVEMENT_CRITERIA_TYPE_TOTAL: break; // Not implemented yet :( } @@ -1907,6 +1917,8 @@ bool AchievementMgr::IsCompletedCriteria(AchievementCriteriaEntry const* achieve return true; case ACHIEVEMENT_CRITERIA_TYPE_WIN_ARENA: return achievementCriteria->win_arena.count && progress->counter >= achievementCriteria->win_arena.count; + case ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK: + return true; // handle all statistic-only criteria here case ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_BATTLEGROUND: case ACHIEVEMENT_CRITERIA_TYPE_DEATH_AT_MAP: @@ -2724,6 +2736,7 @@ void AchievementGlobalMgr::LoadAchievementCriteriaData() case ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL: case ACHIEVEMENT_CRITERIA_TYPE_BG_OBJECTIVE_CAPTURE: case ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL: + case ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK: case ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM: case ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED_ON_LOOT: case ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED_ON_LOOT: diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 1f0d9e314b7158..ae39a51a15df70 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -13272,6 +13272,8 @@ void Player::SetTitle(CharTitlesEntry const* title, bool lost) data << uint32(title->bit_index); data << uint32(lost ? 0 : 1); // 1 - earned, 0 - lost GetSession()->SendPacket(&data); + + UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK); } uint32 Player::GetRuneBaseCooldown(uint8 index, bool skipGrace) From 8c2fd67cf0339acc9e9a3caf1ae31bbc60e6a375 Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Thu, 14 Sep 2023 20:28:57 +0000 Subject: [PATCH 18/29] chore(DB): import pending files Referenced commit(s): 8ba8f0fe9e275dbc7c4a5f63b46d6749b532ec52 --- .../rev_1693745806698601000.sql => db_world/2023_09_14_01.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/rev_1693745806698601000.sql => db_world/2023_09_14_01.sql} (95%) diff --git a/data/sql/updates/pending_db_world/rev_1693745806698601000.sql b/data/sql/updates/db_world/2023_09_14_01.sql similarity index 95% rename from data/sql/updates/pending_db_world/rev_1693745806698601000.sql rename to data/sql/updates/db_world/2023_09_14_01.sql index c05d4273f36f89..6731bc981d7058 100644 --- a/data/sql/updates/pending_db_world/rev_1693745806698601000.sql +++ b/data/sql/updates/db_world/2023_09_14_01.sql @@ -1,3 +1,4 @@ +-- DB update 2023_09_14_00 -> 2023_09_14_01 -- ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK DELETE FROM `achievement_criteria_data` WHERE `criteria_id` IN (707, 708, 709, 710, 711, 712, 713, 714, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740); INSERT INTO `achievement_criteria_data` (`criteria_id`, `type`, `value1`, `value2`, `ScriptName`) VALUES From ecf85a2f3e5b84b46c749abfd4e9f861c09ce435 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Fri, 15 Sep 2023 02:32:36 +0200 Subject: [PATCH 19/29] =?UTF-8?q?chore(Core/Misc):=20Silence=20compile=20w?= =?UTF-8?q?arning=20in=20boost::process=20with=20vers=E2=80=A6=20(#17251)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit chore(Core/Misc): Silence compile warning in boost::process with version 1.83 * Cherry-pick commit https://github.com/TrinityCore/TrinityCore/commit/d8c98579d4a2c4191e42c2542901274ffe53083c Co-authored-by: Shauren --- src/common/Utilities/StartProcess.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/common/Utilities/StartProcess.cpp b/src/common/Utilities/StartProcess.cpp index 7fbe053a8da0c3..a8b35578beaed2 100644 --- a/src/common/Utilities/StartProcess.cpp +++ b/src/common/Utilities/StartProcess.cpp @@ -72,8 +72,22 @@ namespace Acore std::string const& logger, std::string const& input, bool secure) { +#if AC_COMPILER == AC_COMPILER_MICROSOFT +#pragma warning(push) +#pragma warning(disable:4297) +/* + Silence warning with boost 1.83 + boost/process/pipe.hpp(132,5): warning C4297: 'boost::process::basic_pipebuf>::~basic_pipebuf': function assumed not to throw an exception but does + boost/process/pipe.hpp(132,5): message : destructor or deallocator has a (possibly implicit) non-throwing exception specification + boost/process/pipe.hpp(124,6): message : while compiling class template member function 'boost::process::basic_pipebuf>::~basic_pipebuf(void)' + boost/process/pipe.hpp(304,42): message : see reference to class template instantiation 'boost::process::basic_pipebuf>' being compiled +*/ +#endif ipstream outStream; ipstream errStream; +#if AC_COMPILER == AC_COMPILER_MICROSOFT +#pragma warning(pop) +#endif if (!secure) { From 5d128d38ea98c325422d0c81e56d7743557216d0 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Fri, 15 Sep 2023 02:32:52 +0200 Subject: [PATCH 20/29] chore(CI): Update deps for Windows and Mac builds (#17252) * chore(CI): Update deps for Windows and Mac builds * Update windows.sh * Update windows.sh --- .github/workflows/windows_build.yml | 2 +- apps/compiler/includes/functions.sh | 2 +- apps/installer/includes/os_configs/osx.sh | 2 +- apps/installer/includes/os_configs/windows.sh | 7 ++++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml index 22f09f5c3ff639..082155b432eaaf 100644 --- a/.github/workflows/windows_build.yml +++ b/.github/workflows/windows_build.yml @@ -19,7 +19,7 @@ jobs: runs-on: ${{ matrix.os }} name: ${{ matrix.os }} env: - BOOST_ROOT: C:\local\boost_1_79_0 + BOOST_ROOT: C:\local\boost_1_82_0 if: | github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft diff --git a/apps/compiler/includes/functions.sh b/apps/compiler/includes/functions.sh index 5929816f922695..2e7299905cb060 100644 --- a/apps/compiler/includes/functions.sh +++ b/apps/compiler/includes/functions.sh @@ -73,7 +73,7 @@ function comp_configure() { echo "Platform: $OSTYPE" case "$OSTYPE" in darwin*) - OSOPTIONS=" -DMYSQL_ADD_INCLUDE_PATH=/usr/local/include -DMYSQL_LIBRARY=/usr/local/lib/libmysqlclient.dylib -DREADLINE_INCLUDE_DIR=/usr/local/opt/readline/include -DREADLINE_LIBRARY=/usr/local/opt/readline/lib/libreadline.dylib -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl@1.1/include -DOPENSSL_SSL_LIBRARIES=/usr/local/opt/openssl@1.1/lib/libssl.dylib -DOPENSSL_CRYPTO_LIBRARIES=/usr/local/opt/openssl@1.1/lib/libcrypto.dylib " + OSOPTIONS=" -DMYSQL_ADD_INCLUDE_PATH=/usr/local/include -DMYSQL_LIBRARY=/usr/local/lib/libmysqlclient.dylib -DREADLINE_INCLUDE_DIR=/usr/local/opt/readline/include -DREADLINE_LIBRARY=/usr/local/opt/readline/lib/libreadline.dylib -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl@3/include -DOPENSSL_SSL_LIBRARIES=/usr/local/opt/openssl@3/lib/libssl.dylib -DOPENSSL_CRYPTO_LIBRARIES=/usr/local/opt/openssl@3/lib/libcrypto.dylib " ;; msys*) OSOPTIONS=" -DMYSQL_INCLUDE_DIR=C:\tools\mysql\current\include -DMYSQL_LIBRARY=C:\tools\mysql\current\lib\mysqlclient.lib " diff --git a/apps/installer/includes/os_configs/osx.sh b/apps/installer/includes/os_configs/osx.sh index d3f762f574beb9..51d868f27508ce 100644 --- a/apps/installer/includes/os_configs/osx.sh +++ b/apps/installer/includes/os_configs/osx.sh @@ -26,4 +26,4 @@ if ! command -v cmake &>/dev/null ; then fi ########################################## -brew install openssl@3 readline boost bash-completion curl unzip mysql ccache +brew install openssl@3 readline boost@1.82 bash-completion curl unzip mysql@8.1 ccache diff --git a/apps/installer/includes/os_configs/windows.sh b/apps/installer/includes/os_configs/windows.sh index 227a0258db6cb1..7687739d70c7e4 100644 --- a/apps/installer/includes/os_configs/windows.sh +++ b/apps/installer/includes/os_configs/windows.sh @@ -23,7 +23,8 @@ else fi choco install -y --skip-checksums $INSTALL_ARGS cmake.install -y --installargs 'ADD_CMAKE_TO_PATH=System' -choco install -y --skip-checksums $INSTALL_ARGS visualstudio2022-workload-nativedesktop openssl -choco install -y --skip-checksums $INSTALL_ARGS boost-msvc-14.3 --version=1.79.0 -choco install -y --skip-checksums $INSTALL_ARGS mysql --version 8.0.31 +choco install -y --skip-checksums $INSTALL_ARGS visualstudio2022-workload-nativedesktop +choco install -y --skip-checksums $INSTALL_ARGS openssl --version=3.1.1 +choco install -y --skip-checksums $INSTALL_ARGS boost-msvc-14.3 --version=1.82.0 +choco install -y --skip-checksums $INSTALL_ARGS mysql --version=8.0.31 From 01dc3fe999159d1bb4129150de7e82fa8b0c95dc Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Fri, 15 Sep 2023 02:33:07 +0200 Subject: [PATCH 21/29] chore(docs): remove reference to BountySource (#17253) --- .github/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/README.md b/.github/README.md index 948a86f9a933f2..3bb68ad88335ce 100644 --- a/.github/README.md +++ b/.github/README.md @@ -1,7 +1,6 @@ # ![logo](https://raw.githubusercontent.com/azerothcore/azerothcore.github.io/master/images/logo-github.png) AzerothCore [![CodeFactor](https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk/badge)](https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk) -[![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=40032087)](https://www.bountysource.com/teams/azerothcore/bounties "Put money on issues or get paid for fixing them") [![StackOverflow](http://img.shields.io/badge/stackoverflow-azerothcore-blue.svg?logo=stackoverflow)](https://stackoverflow.com/questions/tagged/azerothcore?sort=newest "Ask / browse questions here") [![Discord](https://img.shields.io/discord/217589275766685707?logo=discord&logoColor=white)](https://discord.gg/gkt4y2x "Our community hub on Discord") From 2dbcee9af0771febf826faecb9622ca0e5145353 Mon Sep 17 00:00:00 2001 From: Gultask <100873791+Gultask@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:33:55 -0300 Subject: [PATCH 22/29] feat(DB): Add another column for comments (#17241) * Create rev_1694636334573006200.sql * varchar -> text * Update rev_1694636334573006200.sql --- .../rev_1694636334573006200.sql | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1694636334573006200.sql diff --git a/data/sql/updates/pending_db_world/rev_1694636334573006200.sql b/data/sql/updates/pending_db_world/rev_1694636334573006200.sql new file mode 100644 index 00000000000000..261b11f9738f95 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1694636334573006200.sql @@ -0,0 +1,21 @@ +-- +ALTER TABLE `creature` + ADD COLUMN `Comment` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci' AFTER `CreateObject`; + +ALTER TABLE `gameobject` + ADD COLUMN `Comment` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci' AFTER `VerifiedBuild`; + +UPDATE `creature` SET `Comment` = 'Original Orientation: 3.141592741012573242' WHERE `id1` = 18634 AND `guid` = 146209; + +UPDATE `creature` SET `Comment` = 'Mechanar Bridge Event Stage 1 Wave 1' WHERE `guid` IN (138817, 138818, 138890, 138831); +UPDATE `creature` SET `Comment` = 'Mechanar Bridge Event Stage 1 Wave 2' WHERE `guid` IN (138863); +UPDATE `creature` SET `Comment` = 'Mechanar Bridge Event Stage 1 Wave 3' WHERE `guid` IN (138891, 138876, 138877); + +UPDATE `creature` SET `Comment` = 'Mechanar Bridge Event Stage 2 Wave 1' WHERE `guid` IN (138819, 138892, 138878); +UPDATE `creature` SET `Comment` = 'Mechanar Bridge Event Stage 2 Wave 2' WHERE `guid` IN (138864); +UPDATE `creature` SET `Comment` = 'Mechanar Bridge Event Stage 2 Wave 3' WHERE `guid` IN (138820, 138869, 138893, 138879); + +SET @CGUID := 151000; +UPDATE `creature` SET `Comment` = 'Shattered Halls Legionnaire Gauntlet Group 1' WHERE `guid` BETWEEN @CGUID+19 AND @CGUID+23; +UPDATE `creature` SET `Comment` = 'Shattered Halls Legionnaire Gauntlet Group 2' WHERE `guid` BETWEEN @CGUID+24 AND @CGUID+28; +UPDATE `creature` SET `Comment` = 'Shattered Halls Legionnaire Gauntlet Group 3' WHERE `guid` BETWEEN @CGUID+29 AND @CGUID+34; From ef8f8bf71270857578c4b25dd9fb5aabb766ff49 Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Fri, 15 Sep 2023 00:34:08 +0000 Subject: [PATCH 23/29] chore(DB): import pending files Referenced commit(s): 5d128d38ea98c325422d0c81e56d7743557216d0 --- .../rev_1694636334573006200.sql => db_world/2023_09_15_00.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/rev_1694636334573006200.sql => db_world/2023_09_15_00.sql} (97%) diff --git a/data/sql/updates/pending_db_world/rev_1694636334573006200.sql b/data/sql/updates/db_world/2023_09_15_00.sql similarity index 97% rename from data/sql/updates/pending_db_world/rev_1694636334573006200.sql rename to data/sql/updates/db_world/2023_09_15_00.sql index 261b11f9738f95..ce154988363d1f 100644 --- a/data/sql/updates/pending_db_world/rev_1694636334573006200.sql +++ b/data/sql/updates/db_world/2023_09_15_00.sql @@ -1,3 +1,4 @@ +-- DB update 2023_09_14_01 -> 2023_09_15_00 -- ALTER TABLE `creature` ADD COLUMN `Comment` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci' AFTER `CreateObject`; From 358a1e71e0b84c194164d0fb74fd2372d9bcf713 Mon Sep 17 00:00:00 2001 From: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com> Date: Thu, 14 Sep 2023 20:35:26 -0400 Subject: [PATCH 24/29] refactor(DB/Player): Unify two player stat tables. (#17188) * Init. Change query table names, move data to existing table. * Combine two player stat loading functions. --- .../pending_db_world/condense-tables.sql | 9 ++ src/server/game/Globals/ObjectMgr.cpp | 123 +++++------------- 2 files changed, 45 insertions(+), 87 deletions(-) create mode 100644 data/sql/updates/pending_db_world/condense-tables.sql diff --git a/data/sql/updates/pending_db_world/condense-tables.sql b/data/sql/updates/pending_db_world/condense-tables.sql new file mode 100644 index 00000000000000..970760a2493404 --- /dev/null +++ b/data/sql/updates/pending_db_world/condense-tables.sql @@ -0,0 +1,9 @@ +ALTER TABLE `player_class_stats` + ADD COLUMN `BaseHP` int unsigned NOT NULL DEFAULT '1' AFTER `Level`, + ADD COLUMN `BaseMana` int unsigned NOT NULL DEFAULT '1' AFTER `BaseHP`; + +UPDATE player_class_stats AS noo +JOIN player_classlevelstats AS ole ON noo.Class = ole.class AND noo.Level = ole.level +SET noo.BaseHP = ole.basehp, noo.BaseMana = ole.basemana; + +DROP TABLE IF EXISTS `player_classlevelstats`; diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index d814b7c01a9f1b..4f48a34af49fed 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -4062,88 +4062,6 @@ void ObjectMgr::LoadPlayerInfo() } } - // Loading levels data (class only dependent) - LOG_INFO("server.loading", "Loading Player Create Level HP/Mana Data..."); - { - uint32 oldMSTime = getMSTime(); - - // 0 1 2 3 - QueryResult result = WorldDatabase.Query("SELECT class, level, basehp, basemana FROM player_classlevelstats"); - - if (!result) - { - LOG_FATAL("server.loading", ">> Loaded 0 level health/mana definitions. DB table `player_classlevelstats` is empty."); - exit(1); - } - - uint32 count = 0; - - do - { - Field* fields = result->Fetch(); - - uint32 current_class = fields[0].Get(); - if (current_class >= MAX_CLASSES) - { - LOG_ERROR("sql.sql", "Wrong class {} in `player_classlevelstats` table, ignoring.", current_class); - continue; - } - - uint8 current_level = fields[1].Get(); // Can't be > than STRONG_MAX_LEVEL (hardcoded level maximum) due to var type - if (current_level > sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL)) - { - LOG_INFO("sql.sql", "Unused (> MaxPlayerLevel in worldserver.conf) level {} in `player_classlevelstats` table, ignoring.", current_level); - ++count; // make result loading percent "expected" correct in case disabled detail mode for example. - continue; - } - - PlayerClassInfo* info = _playerClassInfo[current_class]; - if (!info) - { - info = new PlayerClassInfo(); - info->levelInfo = new PlayerClassLevelInfo[sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL)]; - _playerClassInfo[current_class] = info; - } - - PlayerClassLevelInfo& levelInfo = info->levelInfo[current_level - 1]; - - levelInfo.basehealth = fields[2].Get(); - levelInfo.basemana = fields[3].Get(); - - ++count; - } while (result->NextRow()); - - // Fill gaps and check integrity - for (int class_ = 0; class_ < MAX_CLASSES; ++class_) - { - // skip non existed classes - if (!sChrClassesStore.LookupEntry(class_)) - continue; - - PlayerClassInfo* pClassInfo = _playerClassInfo[class_]; - - // fatal error if no initial level data - if (!pClassInfo->levelInfo || (pClassInfo->levelInfo[sWorld->getIntConfig(CONFIG_START_PLAYER_LEVEL) - 1].basehealth == 0 && class_ != CLASS_DEATH_KNIGHT) || (pClassInfo->levelInfo[sWorld->getIntConfig(CONFIG_START_HEROIC_PLAYER_LEVEL) - 1].basehealth == 0 && class_ == CLASS_DEATH_KNIGHT)) - { - LOG_ERROR("sql.sql", "Class {} initial level does not have health/mana data!", class_); - exit(1); - } - - // fill level gaps - for (uint8 level = 1; level < sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL); ++level) - { - if ((pClassInfo->levelInfo[level].basehealth == 0 && class_ != CLASS_DEATH_KNIGHT) || (level >= sWorld->getIntConfig(CONFIG_START_HEROIC_PLAYER_LEVEL) && pClassInfo->levelInfo[level].basehealth == 0 && class_ == CLASS_DEATH_KNIGHT)) - { - LOG_ERROR("sql.sql", "Class {} level {} does not have health/mana data. Using stats data of level {}.", class_, level + 1, level); - pClassInfo->levelInfo[level] = pClassInfo->levelInfo[level - 1]; - } - } - } - - LOG_INFO("server.loading", ">> Loaded {} Level Health/Mana Definitions in {} ms", count, GetMSTimeDiffToNow(oldMSTime)); - LOG_INFO("server.loading", " "); - } - // Loading levels data (class/race dependent) LOG_INFO("server.loading", "Loading Player Create Level Stats Data..."); { @@ -4182,8 +4100,8 @@ void ObjectMgr::LoadPlayerInfo() } while (raceStatsResult->NextRow()); - // 0 1 2 3 4 5 6 - QueryResult result = WorldDatabase.Query("SELECT Class, Level, Strength, Agility, Stamina, Intellect, Spirit FROM player_class_stats"); + // 0 1 2 3 4 5 6 7 8 + QueryResult result = WorldDatabase.Query("SELECT Class, Level, Strength, Agility, Stamina, Intellect, Spirit, BaseHP, BaseMana FROM player_class_stats"); if (!result) { @@ -4207,7 +4125,7 @@ void ObjectMgr::LoadPlayerInfo() uint32 current_level = fields[1].Get(); if (current_level > sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL)) { - if (current_level > STRONG_MAX_LEVEL) // hardcoded level maximum + if (current_level > STRONG_MAX_LEVEL) // hardcoded level maximum LOG_ERROR("sql.sql", "Wrong (> {}) level {} in `player_class_stats` table, ignoring.", STRONG_MAX_LEVEL, current_level); else LOG_DEBUG("sql.sql", "Unused (> MaxPlayerLevel in worldserver.conf) level {} in `player_class_stats` table, ignoring.", current_level); @@ -4228,6 +4146,19 @@ void ObjectMgr::LoadPlayerInfo() } } + PlayerClassInfo* info = _playerClassInfo[current_class]; + if (!info) + { + info = new PlayerClassInfo(); + info->levelInfo = new PlayerClassLevelInfo[sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL)]; + _playerClassInfo[current_class] = info; + } + + PlayerClassLevelInfo& levelInfo = info->levelInfo[current_level - 1]; + + levelInfo.basehealth = fields[7].Get(); + levelInfo.basemana = fields[8].Get(); + ++count; } while (result->NextRow()); @@ -4244,6 +4175,7 @@ void ObjectMgr::LoadPlayerInfo() if (!sChrClassesStore.LookupEntry(class_)) continue; + PlayerClassInfo* pClassInfo = _playerClassInfo[class_]; PlayerInfo* info = _playerInfo[race][class_]; if (!info) continue; @@ -4256,14 +4188,21 @@ void ObjectMgr::LoadPlayerInfo() if (sWorld->getIntConfig(CONFIG_EXPANSION) < EXPANSION_WRATH_OF_THE_LICH_KING && class_ == CLASS_DEATH_KNIGHT) continue; - // fatal error if no initial level data + // fatal error if no initial stats data if (!info->levelInfo || (info->levelInfo[sWorld->getIntConfig(CONFIG_START_PLAYER_LEVEL) - 1].stats[0] == 0 && class_ != CLASS_DEATH_KNIGHT) || (info->levelInfo[sWorld->getIntConfig(CONFIG_START_HEROIC_PLAYER_LEVEL) - 1].stats[0] == 0 && class_ == CLASS_DEATH_KNIGHT)) { LOG_ERROR("sql.sql", "Race {} class {} initial level does not have stats data!", race, class_); exit(1); } - // fill level gaps + // fatal error if no initial health/mana data + if (!pClassInfo->levelInfo || (pClassInfo->levelInfo[sWorld->getIntConfig(CONFIG_START_PLAYER_LEVEL) - 1].basehealth == 0 && class_ != CLASS_DEATH_KNIGHT) || (pClassInfo->levelInfo[sWorld->getIntConfig(CONFIG_START_HEROIC_PLAYER_LEVEL) - 1].basehealth == 0 && class_ == CLASS_DEATH_KNIGHT)) + { + LOG_ERROR("sql.sql", "Class {} initial level does not have health/mana data!", class_); + exit(1); + } + + // fill level gaps for stats for (uint8 level = 1; level < sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL); ++level) { if ((info->levelInfo[level].stats[0] == 0 && class_ != CLASS_DEATH_KNIGHT) || (level >= sWorld->getIntConfig(CONFIG_START_HEROIC_PLAYER_LEVEL) && info->levelInfo[level].stats[0] == 0 && class_ == CLASS_DEATH_KNIGHT)) @@ -4272,6 +4211,16 @@ void ObjectMgr::LoadPlayerInfo() info->levelInfo[level] = info->levelInfo[level - 1]; } } + + // fill level gaps for health/mana + for (uint8 level = 1; level < sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL); ++level) + { + if ((pClassInfo->levelInfo[level].basehealth == 0 && class_ != CLASS_DEATH_KNIGHT) || (level >= sWorld->getIntConfig(CONFIG_START_HEROIC_PLAYER_LEVEL) && pClassInfo->levelInfo[level].basehealth == 0 && class_ == CLASS_DEATH_KNIGHT)) + { + LOG_ERROR("sql.sql", "Class {} level {} does not have health/mana data. Using stats data of level {}.", class_, level + 1, level); + pClassInfo->levelInfo[level] = pClassInfo->levelInfo[level - 1]; + } + } } } From d66b243cbd675443871086109132ab8e301c4524 Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Fri, 15 Sep 2023 00:36:38 +0000 Subject: [PATCH 25/29] chore(DB): import pending files Referenced commit(s): 358a1e71e0b84c194164d0fb74fd2372d9bcf713 --- .../condense-tables.sql => db_world/2023_09_15_01.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/condense-tables.sql => db_world/2023_09_15_01.sql} (90%) diff --git a/data/sql/updates/pending_db_world/condense-tables.sql b/data/sql/updates/db_world/2023_09_15_01.sql similarity index 90% rename from data/sql/updates/pending_db_world/condense-tables.sql rename to data/sql/updates/db_world/2023_09_15_01.sql index 970760a2493404..e1177cc23d5615 100644 --- a/data/sql/updates/pending_db_world/condense-tables.sql +++ b/data/sql/updates/db_world/2023_09_15_01.sql @@ -1,3 +1,4 @@ +-- DB update 2023_09_15_00 -> 2023_09_15_01 ALTER TABLE `player_class_stats` ADD COLUMN `BaseHP` int unsigned NOT NULL DEFAULT '1' AFTER `Level`, ADD COLUMN `BaseMana` int unsigned NOT NULL DEFAULT '1' AFTER `BaseHP`; From f2de40d1721aa45da7d804ed2e45373d84329112 Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Fri, 15 Sep 2023 02:34:56 -0300 Subject: [PATCH 26/29] fix(DB/Creature): Correct Orc Warlock controlled spell (#17232) * fix(DB/Creature): Correct Orc Warlock controlled spell * Update data/sql/updates/pending_db_world/rev_1694389067923549800.sql * Update data/sql/updates/pending_db_world/rev_1694389067923549800.sql * Update data/sql/updates/pending_db_world/rev_1694389067923549800.sql --------- Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> --- data/sql/updates/pending_db_world/rev_1694389067923549800.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1694389067923549800.sql diff --git a/data/sql/updates/pending_db_world/rev_1694389067923549800.sql b/data/sql/updates/pending_db_world/rev_1694389067923549800.sql new file mode 100644 index 00000000000000..2ae9acb84f9f4f --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1694389067923549800.sql @@ -0,0 +1,4 @@ +-- +DELETE FROM `creature_template_spell` WHERE `CreatureID` = 21750 AND `Index` = 2; +INSERT INTO `creature_template_spell` (`CreatureID`, `Index`, `Spell`, `VerifiedBuild`) VALUES +(21750, 2, 37469, 0); From 66379d907125926ceb74695336e8bbce343a0a9b Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Fri, 15 Sep 2023 05:36:07 +0000 Subject: [PATCH 27/29] chore(DB): import pending files Referenced commit(s): f2de40d1721aa45da7d804ed2e45373d84329112 --- .../rev_1694389067923549800.sql => db_world/2023_09_15_02.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/rev_1694389067923549800.sql => db_world/2023_09_15_02.sql} (82%) diff --git a/data/sql/updates/pending_db_world/rev_1694389067923549800.sql b/data/sql/updates/db_world/2023_09_15_02.sql similarity index 82% rename from data/sql/updates/pending_db_world/rev_1694389067923549800.sql rename to data/sql/updates/db_world/2023_09_15_02.sql index 2ae9acb84f9f4f..12cbb4cb5a4f36 100644 --- a/data/sql/updates/pending_db_world/rev_1694389067923549800.sql +++ b/data/sql/updates/db_world/2023_09_15_02.sql @@ -1,3 +1,4 @@ +-- DB update 2023_09_15_01 -> 2023_09_15_02 -- DELETE FROM `creature_template_spell` WHERE `CreatureID` = 21750 AND `Index` = 2; INSERT INTO `creature_template_spell` (`CreatureID`, `Index`, `Spell`, `VerifiedBuild`) VALUES From d18368ad601ab422e755e6f888acf1437c4cf55a Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Fri, 15 Sep 2023 10:57:53 +0200 Subject: [PATCH 28/29] fix(Scripts/Karazhan): decrease Aran cast cooldown on normal spells (#17260) initial --- .../scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp index 5b08d8399216ee..5a0869bf96b9aa 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp @@ -242,7 +242,7 @@ struct boss_shade_of_aran : public BossAI DoCast(target, CurrentNormalSpell); } } - context.Repeat(10s); + context.Repeat(2s); }).Schedule(5s, [this](TaskContext context) { switch (urand(0, 1)) From edaf38c6c37eb6a1ef01fea059bf8058e175da8b Mon Sep 17 00:00:00 2001 From: Tereneckla Date: Fri, 15 Sep 2023 23:30:15 +0000 Subject: [PATCH 29/29] refactor(Scripts/Spells): Check for existence of AD debuff instead of adding a custom cooldown to heal (#17265) * Update spell_paladin.cpp * whitespace --- src/server/scripts/Spells/spell_paladin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp index 14dfc2e240fa04..55945914e41045 100644 --- a/src/server/scripts/Spells/spell_paladin.cpp +++ b/src/server/scripts/Spells/spell_paladin.cpp @@ -302,7 +302,8 @@ class spell_pal_ardent_defender : public AuraScript enum Spell { - PAL_SPELL_ARDENT_DEFENDER_HEAL = 66235 + PAL_SPELL_ARDENT_DEFENDER_DEBUFF = 66233, + PAL_SPELL_ARDENT_DEFENDER_HEAL = 66235 }; bool Validate(SpellInfo const* /*spellInfo*/) override @@ -329,7 +330,7 @@ class spell_pal_ardent_defender : public AuraScript int32 remainingHealth = victim->GetHealth() - dmgInfo.GetDamage(); uint32 allowedHealth = victim->CountPctFromMaxHealth(35); // If damage kills us - if (remainingHealth <= 0 && !victim->ToPlayer()->HasSpellCooldown(PAL_SPELL_ARDENT_DEFENDER_HEAL)) + if (remainingHealth <= 0 && !victim->ToPlayer()->HasAura(PAL_SPELL_ARDENT_DEFENDER_DEBUFF)) { // Cast healing spell, completely avoid damage absorbAmount = dmgInfo.GetDamage(); @@ -344,7 +345,6 @@ class spell_pal_ardent_defender : public AuraScript int32 healAmount = int32(victim->CountPctFromMaxHealth(uint32(healPct * pctFromDefense))); victim->CastCustomSpell(PAL_SPELL_ARDENT_DEFENDER_HEAL, SPELLVALUE_BASE_POINT0, healAmount, victim, true, nullptr, aurEff); - victim->ToPlayer()->AddSpellCooldown(PAL_SPELL_ARDENT_DEFENDER_HEAL, 0, 120000); } else if (remainingHealth < int32(allowedHealth)) {