From 36f7dd04b360a5bbd678a8352fbd73b60c6915b2 Mon Sep 17 00:00:00 2001
From: megamage
Date: Tue, 3 Feb 2009 18:22:28 -0600
Subject: *Apply proc effects such as frostbite after the spell hits the
target.
--HG--
branch : trunk
---
src/game/Spell.cpp | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
(limited to 'src')
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 648d73a8f6f..55b6f93f8da 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2206,25 +2206,24 @@ void Spell::cast(bool skipCheck)
FillTargetMap();
+ if(m_spellState == SPELL_STATE_FINISHED) // stop cast if spell marked as finish somewhere in Take*/FillTargetMap
+ {
+ SetExecutedCurrently(false);
+ return;
+ }
+
// traded items have trade slot instead of guid in m_itemTargetGUID
// set to real guid to be sent later to the client
m_targets.updateTradeSlotItem();
- // CAST SPELL
- SendSpellCooldown();
-
if(!m_IsTriggeredSpell)
{
//TakePower();
TakeReagents(); // we must remove reagents before HandleEffects to allow place crafted item in same slot
}
- if(m_spellState == SPELL_STATE_FINISHED) // stop cast if spell marked as finish somewhere in Take*/FillTargetMap
- {
- SetExecutedCurrently(false);
- return;
- }
-
+ // CAST SPELL
+ SendSpellCooldown();
SendCastResult(castResult);
SendSpellGo(); // we must send smsg_spell_go packet before m_castItem delete in TakeCastItem()...
@@ -2270,10 +2269,13 @@ void Spell::cast(bool skipCheck)
{
// Calculate chance at that moment (can be depend for example from combo points)
int32 chance = m_caster->CalculateSpellDamage(auraSpellInfo, auraSpellIdx, (*i)->GetBasePoints(),unit);
+ chance *= (*i)->GetStackAmount();
if(roll_chance_i(chance))
- for (int j=0; j != (*i)->GetStackAmount(); ++j)
- m_caster->CastSpell(unit, auraSpellInfo->EffectTriggerSpell[auraSpellIdx], true, NULL, (*i));
+ {
+ if(SpellEntry const *spellInfo = sSpellStore.LookupEntry(auraSpellInfo->EffectTriggerSpell[auraSpellIdx]))
+ m_TriggerSpells.push_back(spellInfo);
+ }
}
}
}
--
cgit v1.2.3
From 18cbc94dd403e85da69068e61b5b90829fbb3a0a Mon Sep 17 00:00:00 2001
From: megamage
Date: Wed, 4 Feb 2009 10:06:16 -0600
Subject: *Do not check power for triggered spells. This fix broken execute.
--HG--
branch : trunk
---
CRLFfix.diff | 6382 ++++++++++++++++++++++++++++++++++++++++++++++++++++
src/game/Spell.cpp | 26 +-
2 files changed, 6396 insertions(+), 12 deletions(-)
create mode 100644 CRLFfix.diff
(limited to 'src')
diff --git a/CRLFfix.diff b/CRLFfix.diff
new file mode 100644
index 00000000000..41ac09e2153
--- /dev/null
+++ b/CRLFfix.diff
@@ -0,0 +1,6382 @@
+diff -r 7bda08d4cbf2 contrib/registration_form/Expanded/README
+--- a/contrib/registration_form/Expanded/README Sun Dec 21 18:13:05 2008 -0600
++++ b/contrib/registration_form/Expanded/README Sun Dec 21 19:51:16 2008 -0500
+@@ -1,30 +1,30 @@
+-= Trinity Core -- Account registration form =
+-
+-Copyright (C) Trinity Core (http://www.trinitycore.org)
+-
+-This is the somewhat expanded version account registration
+-form that allows users to register game accounts on the web.
+-
+-Its still very ugly, but if you get bored enough and make it
+-look somewhat better, feel free to shoot me back a better version
+-and I will include it here with credits :)
+-
+-To run this, you will need:
+-
+- * MySQL 5.0.45+
+- * A PHP5+ equipped web server
+-
+-To install this registration form, simply copy everything to
+-a folder on your web server. You can rename it to anything you
+-like, but it's recommended to keep it as "index.php" and put it
+-in a dedicated directory, such as "/home/public_html/register".
+-
+-In order for the script to work correctly, you must rename
+-db.conf.php.dist to db.conf.php and then fill out the correct values.
+-
+-
+-TODO :
+- Make it look better
+- Allow email checking by sending a code in an email to be confirmed.
+- Maybe switch to recaptcha.
++= Trinity Core -- Account registration form =
++
++Copyright (C) Trinity Core (http://www.trinitycore.org)
++
++This is the somewhat expanded version account registration
++form that allows users to register game accounts on the web.
++
++Its still very ugly, but if you get bored enough and make it
++look somewhat better, feel free to shoot me back a better version
++and I will include it here with credits :)
++
++To run this, you will need:
++
++ * MySQL 5.0.45+
++ * A PHP5+ equipped web server
++
++To install this registration form, simply copy everything to
++a folder on your web server. You can rename it to anything you
++like, but it's recommended to keep it as "index.php" and put it
++in a dedicated directory, such as "/home/public_html/register".
++
++In order for the script to work correctly, you must rename
++db.conf.php.dist to db.conf.php and then fill out the correct values.
++
++
++TODO :
++ Make it look better
++ Allow email checking by sending a code in an email to be confirmed.
++ Maybe switch to recaptcha.
+
+\ No newline at end of file
+diff -r 7bda08d4cbf2 contrib/registration_form/Expanded/db.conf.php.dist
+--- a/contrib/registration_form/Expanded/db.conf.php.dist Sun Dec 21 18:13:05 2008 -0600
++++ b/contrib/registration_form/Expanded/db.conf.php.dist Sun Dec 21 19:51:16 2008 -0500
+@@ -1,18 +1,18 @@
+-
+\ No newline at end of file
+diff -r 7bda08d4cbf2 contrib/registration_form/Expanded/inc/GIFEncoder.class.php
+--- a/contrib/registration_form/Expanded/inc/GIFEncoder.class.php Sun Dec 21 18:13:05 2008 -0600
++++ b/contrib/registration_form/Expanded/inc/GIFEncoder.class.php Sun Dec 21 19:51:16 2008 -0500
+@@ -1,231 +1,231 @@
+-"Does not supported function for only one image!",
+- 'ERR01' =>"Source is not a GIF image!",
+- 'ERR02' =>"Unintelligible flag ",
+- 'ERR03' =>"Could not make animation from animated GIF source",
+- );
+-
+- /*
+- :::::::::::::::::::::::::::::::::::::::::::::::::::
+- ::
+- :: GIFEncoder...
+- ::
+- */
+- function GIFEncoder (
+- $GIF_src, $GIF_dly, $GIF_lop, $GIF_dis,
+- $GIF_red, $GIF_grn, $GIF_blu, $GIF_mod
+- ) {
+- if ( ! is_array ( $GIF_src ) && ! is_array ( $GIF_tim ) ) {
+- printf ( "%s: %s", $this->VER, $this->ERR [ 'ERR00' ] );
+- exit ( 0 );
+- }
+- $this->LOP = ( $GIF_lop > -1 ) ? $GIF_lop : 0;
+- $this->DIS = ( $GIF_dis > -1 ) ? ( ( $GIF_dis < 3 ) ? $GIF_dis : 3 ) : 2;
+- $this->COL = ( $GIF_red > -1 && $GIF_grn > -1 && $GIF_blu > -1 ) ?
+- ( $GIF_red | ( $GIF_grn << 8 ) | ( $GIF_blu << 16 ) ) : -1;
+-
+- for ( $i = 0; $i < count ( $GIF_src ); $i++ ) {
+- if ( strToLower ( $GIF_mod ) == "url" ) {
+- $this->BUF [ ] = fread ( fopen ( $GIF_src [ $i ], "rb" ), filesize ( $GIF_src [ $i ] ) );
+- }
+- else if ( strToLower ( $GIF_mod ) == "bin" ) {
+- $this->BUF [ ] = $GIF_src [ $i ];
+- }
+- else {
+- printf ( "%s: %s ( %s )!", $this->VER, $this->ERR [ 'ERR02' ], $GIF_mod );
+- exit ( 0 );
+- }
+- if ( substr ( $this->BUF [ $i ], 0, 6 ) != "GIF87a" && substr ( $this->BUF [ $i ], 0, 6 ) != "GIF89a" ) {
+- printf ( "%s: %d %s", $this->VER, $i, $this->ERR [ 'ERR01' ] );
+- exit ( 0 );
+- }
+- for ( $j = ( 13 + 3 * ( 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ) ) ), $k = TRUE; $k; $j++ ) {
+- switch ( $this->BUF [ $i ] { $j } ) {
+- case "!":
+- if ( ( substr ( $this->BUF [ $i ], ( $j + 3 ), 8 ) ) == "NETSCAPE" ) {
+- printf ( "%s: %s ( %s source )!", $this->VER, $this->ERR [ 'ERR03' ], ( $i + 1 ) );
+- exit ( 0 );
+- }
+- break;
+- case ";":
+- $k = FALSE;
+- break;
+- }
+- }
+- }
+- GIFEncoder::GIFAddHeader ( );
+- for ( $i = 0; $i < count ( $this->BUF ); $i++ ) {
+- GIFEncoder::GIFAddFrames ( $i, $GIF_dly [ $i ] );
+- }
+- GIFEncoder::GIFAddFooter ( );
+- }
+- /*
+- :::::::::::::::::::::::::::::::::::::::::::::::::::
+- ::
+- :: GIFAddHeader...
+- ::
+- */
+- function GIFAddHeader ( ) {
+- $cmap = 0;
+-
+- if ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x80 ) {
+- $cmap = 3 * ( 2 << ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x07 ) );
+-
+- $this->GIF .= substr ( $this->BUF [ 0 ], 6, 7 );
+- $this->GIF .= substr ( $this->BUF [ 0 ], 13, $cmap );
+- $this->GIF .= "!\377\13NETSCAPE2.0\3\1" . GIFEncoder::GIFWord ( $this->LOP ) . "\0";
+- }
+- }
+- /*
+- :::::::::::::::::::::::::::::::::::::::::::::::::::
+- ::
+- :: GIFAddFrames...
+- ::
+- */
+- function GIFAddFrames ( $i, $d ) {
+-
+- $Locals_str = 13 + 3 * ( 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ) );
+-
+- $Locals_end = strlen ( $this->BUF [ $i ] ) - $Locals_str - 1;
+- $Locals_tmp = substr ( $this->BUF [ $i ], $Locals_str, $Locals_end );
+-
+- $Global_len = 2 << ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x07 );
+- $Locals_len = 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 );
+-
+- $Global_rgb = substr ( $this->BUF [ 0 ], 13,
+- 3 * ( 2 << ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x07 ) ) );
+- $Locals_rgb = substr ( $this->BUF [ $i ], 13,
+- 3 * ( 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ) ) );
+-
+- $Locals_ext = "!\xF9\x04" . chr ( ( $this->DIS << 2 ) + 0 ) .
+- chr ( ( $d >> 0 ) & 0xFF ) . chr ( ( $d >> 8 ) & 0xFF ) . "\x0\x0";
+-
+- if ( $this->COL > -1 && ord ( $this->BUF [ $i ] { 10 } ) & 0x80 ) {
+- for ( $j = 0; $j < ( 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ) ); $j++ ) {
+- if (
+- ord ( $Locals_rgb { 3 * $j + 0 } ) == ( $this->COL >> 0 ) & 0xFF &&
+- ord ( $Locals_rgb { 3 * $j + 1 } ) == ( $this->COL >> 8 ) & 0xFF &&
+- ord ( $Locals_rgb { 3 * $j + 2 } ) == ( $this->COL >> 16 ) & 0xFF
+- ) {
+- $Locals_ext = "!\xF9\x04" . chr ( ( $this->DIS << 2 ) + 1 ) .
+- chr ( ( $d >> 0 ) & 0xFF ) . chr ( ( $d >> 8 ) & 0xFF ) . chr ( $j ) . "\x0";
+- break;
+- }
+- }
+- }
+- switch ( $Locals_tmp { 0 } ) {
+- case "!":
+- $Locals_img = substr ( $Locals_tmp, 8, 10 );
+- $Locals_tmp = substr ( $Locals_tmp, 18, strlen ( $Locals_tmp ) - 18 );
+- break;
+- case ",":
+- $Locals_img = substr ( $Locals_tmp, 0, 10 );
+- $Locals_tmp = substr ( $Locals_tmp, 10, strlen ( $Locals_tmp ) - 10 );
+- break;
+- }
+- if ( ord ( $this->BUF [ $i ] { 10 } ) & 0x80 && $this->IMG > -1 ) {
+- if ( $Global_len == $Locals_len ) {
+- if ( GIFEncoder::GIFBlockCompare ( $Global_rgb, $Locals_rgb, $Global_len ) ) {
+- $this->GIF .= ( $Locals_ext . $Locals_img . $Locals_tmp );
+- }
+- else {
+- $byte = ord ( $Locals_img { 9 } );
+- $byte |= 0x80;
+- $byte &= 0xF8;
+- $byte |= ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x07 );
+- $Locals_img { 9 } = chr ( $byte );
+- $this->GIF .= ( $Locals_ext . $Locals_img . $Locals_rgb . $Locals_tmp );
+- }
+- }
+- else {
+- $byte = ord ( $Locals_img { 9 } );
+- $byte |= 0x80;
+- $byte &= 0xF8;
+- $byte |= ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 );
+- $Locals_img { 9 } = chr ( $byte );
+- $this->GIF .= ( $Locals_ext . $Locals_img . $Locals_rgb . $Locals_tmp );
+- }
+- }
+- else {
+- $this->GIF .= ( $Locals_ext . $Locals_img . $Locals_tmp );
+- }
+- $this->IMG = 1;
+- }
+- /*
+- :::::::::::::::::::::::::::::::::::::::::::::::::::
+- ::
+- :: GIFAddFooter...
+- ::
+- */
+- function GIFAddFooter ( ) {
+- $this->GIF .= ";";
+- }
+- /*
+- :::::::::::::::::::::::::::::::::::::::::::::::::::
+- ::
+- :: GIFBlockCompare...
+- ::
+- */
+- function GIFBlockCompare ( $GlobalBlock, $LocalBlock, $Len ) {
+-
+- for ( $i = 0; $i < $Len; $i++ ) {
+- if (
+- $GlobalBlock { 3 * $i + 0 } != $LocalBlock { 3 * $i + 0 } ||
+- $GlobalBlock { 3 * $i + 1 } != $LocalBlock { 3 * $i + 1 } ||
+- $GlobalBlock { 3 * $i + 2 } != $LocalBlock { 3 * $i + 2 }
+- ) {
+- return ( 0 );
+- }
+- }
+-
+- return ( 1 );
+- }
+- /*
+- :::::::::::::::::::::::::::::::::::::::::::::::::::
+- ::
+- :: GIFWord...
+- ::
+- */
+- function GIFWord ( $int ) {
+-
+- return ( chr ( $int & 0xFF ) . chr ( ( $int >> 8 ) & 0xFF ) );
+- }
+- /*
+- :::::::::::::::::::::::::::::::::::::::::::::::::::
+- ::
+- :: GetAnimation...
+- ::
+- */
+- function GetAnimation ( ) {
+- return ( $this->GIF );
+- }
+-}
+-?>
++"Does not supported function for only one image!",
++ 'ERR01' =>"Source is not a GIF image!",
++ 'ERR02' =>"Unintelligible flag ",
++ 'ERR03' =>"Could not make animation from animated GIF source",
++ );
++
++ /*
++ :::::::::::::::::::::::::::::::::::::::::::::::::::
++ ::
++ :: GIFEncoder...
++ ::
++ */
++ function GIFEncoder (
++ $GIF_src, $GIF_dly, $GIF_lop, $GIF_dis,
++ $GIF_red, $GIF_grn, $GIF_blu, $GIF_mod
++ ) {
++ if ( ! is_array ( $GIF_src ) && ! is_array ( $GIF_tim ) ) {
++ printf ( "%s: %s", $this->VER, $this->ERR [ 'ERR00' ] );
++ exit ( 0 );
++ }
++ $this->LOP = ( $GIF_lop > -1 ) ? $GIF_lop : 0;
++ $this->DIS = ( $GIF_dis > -1 ) ? ( ( $GIF_dis < 3 ) ? $GIF_dis : 3 ) : 2;
++ $this->COL = ( $GIF_red > -1 && $GIF_grn > -1 && $GIF_blu > -1 ) ?
++ ( $GIF_red | ( $GIF_grn << 8 ) | ( $GIF_blu << 16 ) ) : -1;
++
++ for ( $i = 0; $i < count ( $GIF_src ); $i++ ) {
++ if ( strToLower ( $GIF_mod ) == "url" ) {
++ $this->BUF [ ] = fread ( fopen ( $GIF_src [ $i ], "rb" ), filesize ( $GIF_src [ $i ] ) );
++ }
++ else if ( strToLower ( $GIF_mod ) == "bin" ) {
++ $this->BUF [ ] = $GIF_src [ $i ];
++ }
++ else {
++ printf ( "%s: %s ( %s )!", $this->VER, $this->ERR [ 'ERR02' ], $GIF_mod );
++ exit ( 0 );
++ }
++ if ( substr ( $this->BUF [ $i ], 0, 6 ) != "GIF87a" && substr ( $this->BUF [ $i ], 0, 6 ) != "GIF89a" ) {
++ printf ( "%s: %d %s", $this->VER, $i, $this->ERR [ 'ERR01' ] );
++ exit ( 0 );
++ }
++ for ( $j = ( 13 + 3 * ( 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ) ) ), $k = TRUE; $k; $j++ ) {
++ switch ( $this->BUF [ $i ] { $j } ) {
++ case "!":
++ if ( ( substr ( $this->BUF [ $i ], ( $j + 3 ), 8 ) ) == "NETSCAPE" ) {
++ printf ( "%s: %s ( %s source )!", $this->VER, $this->ERR [ 'ERR03' ], ( $i + 1 ) );
++ exit ( 0 );
++ }
++ break;
++ case ";":
++ $k = FALSE;
++ break;
++ }
++ }
++ }
++ GIFEncoder::GIFAddHeader ( );
++ for ( $i = 0; $i < count ( $this->BUF ); $i++ ) {
++ GIFEncoder::GIFAddFrames ( $i, $GIF_dly [ $i ] );
++ }
++ GIFEncoder::GIFAddFooter ( );
++ }
++ /*
++ :::::::::::::::::::::::::::::::::::::::::::::::::::
++ ::
++ :: GIFAddHeader...
++ ::
++ */
++ function GIFAddHeader ( ) {
++ $cmap = 0;
++
++ if ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x80 ) {
++ $cmap = 3 * ( 2 << ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x07 ) );
++
++ $this->GIF .= substr ( $this->BUF [ 0 ], 6, 7 );
++ $this->GIF .= substr ( $this->BUF [ 0 ], 13, $cmap );
++ $this->GIF .= "!\377\13NETSCAPE2.0\3\1" . GIFEncoder::GIFWord ( $this->LOP ) . "\0";
++ }
++ }
++ /*
++ :::::::::::::::::::::::::::::::::::::::::::::::::::
++ ::
++ :: GIFAddFrames...
++ ::
++ */
++ function GIFAddFrames ( $i, $d ) {
++
++ $Locals_str = 13 + 3 * ( 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ) );
++
++ $Locals_end = strlen ( $this->BUF [ $i ] ) - $Locals_str - 1;
++ $Locals_tmp = substr ( $this->BUF [ $i ], $Locals_str, $Locals_end );
++
++ $Global_len = 2 << ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x07 );
++ $Locals_len = 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 );
++
++ $Global_rgb = substr ( $this->BUF [ 0 ], 13,
++ 3 * ( 2 << ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x07 ) ) );
++ $Locals_rgb = substr ( $this->BUF [ $i ], 13,
++ 3 * ( 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ) ) );
++
++ $Locals_ext = "!\xF9\x04" . chr ( ( $this->DIS << 2 ) + 0 ) .
++ chr ( ( $d >> 0 ) & 0xFF ) . chr ( ( $d >> 8 ) & 0xFF ) . "\x0\x0";
++
++ if ( $this->COL > -1 && ord ( $this->BUF [ $i ] { 10 } ) & 0x80 ) {
++ for ( $j = 0; $j < ( 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ) ); $j++ ) {
++ if (
++ ord ( $Locals_rgb { 3 * $j + 0 } ) == ( $this->COL >> 0 ) & 0xFF &&
++ ord ( $Locals_rgb { 3 * $j + 1 } ) == ( $this->COL >> 8 ) & 0xFF &&
++ ord ( $Locals_rgb { 3 * $j + 2 } ) == ( $this->COL >> 16 ) & 0xFF
++ ) {
++ $Locals_ext = "!\xF9\x04" . chr ( ( $this->DIS << 2 ) + 1 ) .
++ chr ( ( $d >> 0 ) & 0xFF ) . chr ( ( $d >> 8 ) & 0xFF ) . chr ( $j ) . "\x0";
++ break;
++ }
++ }
++ }
++ switch ( $Locals_tmp { 0 } ) {
++ case "!":
++ $Locals_img = substr ( $Locals_tmp, 8, 10 );
++ $Locals_tmp = substr ( $Locals_tmp, 18, strlen ( $Locals_tmp ) - 18 );
++ break;
++ case ",":
++ $Locals_img = substr ( $Locals_tmp, 0, 10 );
++ $Locals_tmp = substr ( $Locals_tmp, 10, strlen ( $Locals_tmp ) - 10 );
++ break;
++ }
++ if ( ord ( $this->BUF [ $i ] { 10 } ) & 0x80 && $this->IMG > -1 ) {
++ if ( $Global_len == $Locals_len ) {
++ if ( GIFEncoder::GIFBlockCompare ( $Global_rgb, $Locals_rgb, $Global_len ) ) {
++ $this->GIF .= ( $Locals_ext . $Locals_img . $Locals_tmp );
++ }
++ else {
++ $byte = ord ( $Locals_img { 9 } );
++ $byte |= 0x80;
++ $byte &= 0xF8;
++ $byte |= ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x07 );
++ $Locals_img { 9 } = chr ( $byte );
++ $this->GIF .= ( $Locals_ext . $Locals_img . $Locals_rgb . $Locals_tmp );
++ }
++ }
++ else {
++ $byte = ord ( $Locals_img { 9 } );
++ $byte |= 0x80;
++ $byte &= 0xF8;
++ $byte |= ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 );
++ $Locals_img { 9 } = chr ( $byte );
++ $this->GIF .= ( $Locals_ext . $Locals_img . $Locals_rgb . $Locals_tmp );
++ }
++ }
++ else {
++ $this->GIF .= ( $Locals_ext . $Locals_img . $Locals_tmp );
++ }
++ $this->IMG = 1;
++ }
++ /*
++ :::::::::::::::::::::::::::::::::::::::::::::::::::
++ ::
++ :: GIFAddFooter...
++ ::
++ */
++ function GIFAddFooter ( ) {
++ $this->GIF .= ";";
++ }
++ /*
++ :::::::::::::::::::::::::::::::::::::::::::::::::::
++ ::
++ :: GIFBlockCompare...
++ ::
++ */
++ function GIFBlockCompare ( $GlobalBlock, $LocalBlock, $Len ) {
++
++ for ( $i = 0; $i < $Len; $i++ ) {
++ if (
++ $GlobalBlock { 3 * $i + 0 } != $LocalBlock { 3 * $i + 0 } ||
++ $GlobalBlock { 3 * $i + 1 } != $LocalBlock { 3 * $i + 1 } ||
++ $GlobalBlock { 3 * $i + 2 } != $LocalBlock { 3 * $i + 2 }
++ ) {
++ return ( 0 );
++ }
++ }
++
++ return ( 1 );
++ }
++ /*
++ :::::::::::::::::::::::::::::::::::::::::::::::::::
++ ::
++ :: GIFWord...
++ ::
++ */
++ function GIFWord ( $int ) {
++
++ return ( chr ( $int & 0xFF ) . chr ( ( $int >> 8 ) & 0xFF ) );
++ }
++ /*
++ :::::::::::::::::::::::::::::::::::::::::::::::::::
++ ::
++ :: GetAnimation...
++ ::
++ */
++ function GetAnimation ( ) {
++ return ( $this->GIF );
++ }
++}
++?>
+diff -r 7bda08d4cbf2 contrib/registration_form/Expanded/inc/OOP5.php
+--- a/contrib/registration_form/Expanded/inc/OOP5.php Sun Dec 21 18:13:05 2008 -0600
++++ b/contrib/registration_form/Expanded/inc/OOP5.php Sun Dec 21 19:51:16 2008 -0500
+@@ -1,82 +1,82 @@
+-
+-session_start( );
+-/**
+- @package AnimatedCaptcha
+- @author J Watkins
+- @desc OOP Interface to AnimCaptcha ( PHP 5 )
+- @static
+-**/
+-class AnimCaptcha
+-{
+- static $frames ;
+- static $time ;
+- static $num ;
+- static $pause ;
+- static $ops ;
+- static $gifs ;
+- static $rand ;
+- static $math ;
+-
+- function AnimCaptcha( $gifs, $pause )
+- {
+- if( !class_exists( 'GIFEncoder' ) and !include('GIFEncoder.class.php') )
+- die( 'I require GIFEncoder to be loaded before operation' );
+-
+- self::$pause = (int)$pause ;
+- self::$gifs = $gifs ;
+- self::$ops = array
+- (
+- 'minus',
+- 'plus',
+- 'times'
+- );
+- self::$math = array
+- (
+- '-',
+- '+',
+- '*'
+- );
+-
+- self::$num['rand1'] = rand( 1, 9 );
+- self::$num['rand2'] = rand( 1, 9 );
+- self::$num['op'] = rand( 0, count( self::$math ) - 1 );
+-
+- self::BuildImage( );
+- }
+- function BuildImage( )
+- {
+- self::$frames[ ] = sprintf( '%s/solve.gif', self::$gifs ) ;
+- self::$time[ ] = 260;
+- self::$frames[ ] = sprintf( '%s/%d.gif', self::$gifs, self::$num['rand1'] );
+- self::$time[ ] = self::$pause;
+- self::$frames[ ] = sprintf( '%s/%s.gif', self::$gifs, self::$ops[ self::$num['op'] ] );
+- self::$time[ ] = self::$pause;
+- self::$frames[ ] = sprintf( '%s/%d.gif', self::$gifs, self::$num['rand2'] );
+- self::$time[ ] = self::$pause;
+- self::$frames[ ] = "frames/equals.gif" ;
+- self::$time [ ] = 280;
+- foreach( self::$num as $index => $value ) $_SESSION[ $index ] = self::$num[ $value ];
+- }
+- function GetImage( )
+- {
+- eval( sprintf( '$_SESSION["answer"] = (%d %s %d);',
+- self::$num['rand1'],
+- self::$math[ self::$num['op'] ],
+- self::$num['rand2']
+- ) );
+-
+- if( $_SESSION['answer'] < 0 )
+- self::AnimCaptcha( self::$gifs, self::$pause );
+-
+- $gif = new GIFEncoder( self::$frames, self::$time, 0, 2, 0, 0, 0, "url" );
+-
+- if( !headers_sent( ) )
+- {
+- header ( 'Content-type:image/gif' );
+- echo $gif->GetAnimation ( );
+- }
+- }
+-}
+-new AnimCaptcha( 'frames', 140 );
+-AnimCaptcha::GetImage( );
+-?>
++
++session_start( );
++/**
++ @package AnimatedCaptcha
++ @author J Watkins
++ @desc OOP Interface to AnimCaptcha ( PHP 5 )
++ @static
++**/
++class AnimCaptcha
++{
++ static $frames ;
++ static $time ;
++ static $num ;
++ static $pause ;
++ static $ops ;
++ static $gifs ;
++ static $rand ;
++ static $math ;
++
++ function AnimCaptcha( $gifs, $pause )
++ {
++ if( !class_exists( 'GIFEncoder' ) and !include('GIFEncoder.class.php') )
++ die( 'I require GIFEncoder to be loaded before operation' );
++
++ self::$pause = (int)$pause ;
++ self::$gifs = $gifs ;
++ self::$ops = array
++ (
++ 'minus',
++ 'plus',
++ 'times'
++ );
++ self::$math = array
++ (
++ '-',
++ '+',
++ '*'
++ );
++
++ self::$num['rand1'] = rand( 1, 9 );
++ self::$num['rand2'] = rand( 1, 9 );
++ self::$num['op'] = rand( 0, count( self::$math ) - 1 );
++
++ self::BuildImage( );
++ }
++ function BuildImage( )
++ {
++ self::$frames[ ] = sprintf( '%s/solve.gif', self::$gifs ) ;
++ self::$time[ ] = 260;
++ self::$frames[ ] = sprintf( '%s/%d.gif', self::$gifs, self::$num['rand1'] );
++ self::$time[ ] = self::$pause;
++ self::$frames[ ] = sprintf( '%s/%s.gif', self::$gifs, self::$ops[ self::$num['op'] ] );
++ self::$time[ ] = self::$pause;
++ self::$frames[ ] = sprintf( '%s/%d.gif', self::$gifs, self::$num['rand2'] );
++ self::$time[ ] = self::$pause;
++ self::$frames[ ] = "frames/equals.gif" ;
++ self::$time [ ] = 280;
++ foreach( self::$num as $index => $value ) $_SESSION[ $index ] = self::$num[ $value ];
++ }
++ function GetImage( )
++ {
++ eval( sprintf( '$_SESSION["answer"] = (%d %s %d);',
++ self::$num['rand1'],
++ self::$math[ self::$num['op'] ],
++ self::$num['rand2']
++ ) );
++
++ if( $_SESSION['answer'] < 0 )
++ self::AnimCaptcha( self::$gifs, self::$pause );
++
++ $gif = new GIFEncoder( self::$frames, self::$time, 0, 2, 0, 0, 0, "url" );
++
++ if( !headers_sent( ) )
++ {
++ header ( 'Content-type:image/gif' );
++ echo $gif->GetAnimation ( );
++ }
++ }
++}
++new AnimCaptcha( 'frames', 140 );
++AnimCaptcha::GetImage( );
++?>
+diff -r 7bda08d4cbf2 contrib/registration_form/Expanded/inc/index.php
+--- a/contrib/registration_form/Expanded/inc/index.php Sun Dec 21 18:13:05 2008 -0600
++++ b/contrib/registration_form/Expanded/inc/index.php Sun Dec 21 19:51:16 2008 -0500
+@@ -1,112 +1,112 @@
+-> 6-13-07
+-
+-This Animated Gif Captcha system is brought to you courtesy of ...
+-josh@betteradv.com ==> Josh Storz
+-http://www.querythe.net/Animated-Gif-Captcha/ ==> Download Current Version
+-
+-OOP (PHP 4 & 5) Interface by ...
+-krakjoe@krakjoe.info ==> J Watkins
+-
+-The GIFEncoder class was written by ...
+-http://gifs.hu ==> László Zsidi
+-http://www.phpclasses.org/browse/package/3163.html ==> Download Current Version
+-
+-This file is part of QueryThe.Net's AnimatedCaptcha Package.
+-
+- QueryThe.Net's AnimatedCaptcha is free software; you can redistribute it and/or modify
+- it under the terms of the GNU Lesser General Public License as published by
+- the Free Software Foundation; either version 2.1 of the License, or
+- (at your option) any later version.
+-
+- QueryThe.Net's AnimatedCaptcha is distributed in the hope that it will be useful,
+- but WITHOUT ANY WARRANTY; without even the implied warranty of
+- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+- GNU Lesser General Public License for more details.
+-
+- You should have received a copy of the GNU Lesser General Public License
+- along with QueryThe.Net's AnimatedCaptcha; if not, write to the Free Software
+- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+-
+-include "GIFEncoder.class.php";
+-
+-function add_random_frames($frame) {
+-// random number & elapsed time of frames to *hopefully* make a cracker's life tougher
+-
+- global $frames ;
+- global $time ;
+-
+- $i = 0;
+- $loop = rand(6, 14); // total number of frames in loop loop
+-
+- while ($i < $loop)
+- {
+- $frames [ ] = "frames/$frame.gif"; // use the solve frame so that the human eye cannot see a flicker
+- $time [ ] = rand(15, 25); // 5 * 20 = 1 second so the delay is never too terribly long
+- $i ++ ;
+- }
+-}
+-
+-// get random numbers & operator and make sure the answer is >= 0
+- $k = 0 ;
+- while($k == 0)
+- {
+- $rand1 = rand(1, 9); // 1st number (1-9)
+- $rand3 = rand(1, 9); // 2nd number (1-9)
+- $rand2 = rand(0, 2); // operator (-,+,*)
+-
+- if (($rand2 != 0) || ($rand3 < $rand1)) $k = 1 ;
+- }
+-
+-// set sessions for numbers, operator & answer. Only $_SESSION['answer'] is necessary. Others are for displaying full equation if you desire.
+- $_SESSION['r1'] = $rand1 ;
+- $_SESSION['r3'] = $rand3 ;
+-
+- if ($rand2 == 0) {$_SESSION['r2'] = " - " ; $_SESSION['answer'] = $rand1 - $rand3 ; $frame_operator = "minus" ;}
+- elseif ($rand2 == 1) {$_SESSION['r2'] = " + " ; $_SESSION['answer'] = $rand1 + $rand3 ; $frame_operator = "plus" ;}
+- else {$_SESSION['r2'] = " * " ; $_SESSION['answer'] = $rand1 * $rand3 ; $frame_operator = "times" ;}
+-
+-// build the frame images and elapsed time to show in 2 arrays
+- $frames [ ] = "frames/solve.gif" ; // Intro message " Prove you are human ... "
+- $time [ ] = 140;
+- add_random_frames('solve') ;
+-
+- // set 1st random number
+- $frames [ ] = "frames/" .$rand1. ".gif"; // 1st number (0-9)
+- $time [ ] = 35;
+- add_random_frames($rand1) ;
+-
+- // set frame for operator
+- $frames [ ] = "frames/" .$frame_operator. ".gif" ;
+- $time [ ] = 60;
+- add_random_frames($frame_operator) ;
+-
+- // set 2nd random number
+- $frames [ ] = "frames/" .$rand3. ".gif"; // 2nd number (0-9)
+- $time [ ] = 35;
+- add_random_frames($rand3) ;
+-
+-
+- // set final frame for equals
+- $frames [ ] = "frames/equals.gif" ; // Ending message " equals = "
+- $time [ ] = 140; // equals frame time (100 = 1 second)
+- add_random_frames('equals') ;
+-
+-// encode the gif using the class to avoid gd dependencies
+- $gif = new GIFEncoder (
+- $frames, // frames array
+- $time, // elapsed time array
+- 0, // loops (0 = infinite)
+- 2, // disposal
+- 0, 0, 0, // rgb of transparency
+- "url" // source type
+- );
+-
+-// display the image
+-Header ( 'Content-type:image/gif' );
+-echo $gif->GetAnimation ( );
+-
+-?>
++> 6-13-07
++
++This Animated Gif Captcha system is brought to you courtesy of ...
++josh@betteradv.com ==> Josh Storz
++http://www.querythe.net/Animated-Gif-Captcha/ ==> Download Current Version
++
++OOP (PHP 4 & 5) Interface by ...
++krakjoe@krakjoe.info ==> J Watkins
++
++The GIFEncoder class was written by ...
++http://gifs.hu ==> László Zsidi
++http://www.phpclasses.org/browse/package/3163.html ==> Download Current Version
++
++This file is part of QueryThe.Net's AnimatedCaptcha Package.
++
++ QueryThe.Net's AnimatedCaptcha is free software; you can redistribute it and/or modify
++ it under the terms of the GNU Lesser General Public License as published by
++ the Free Software Foundation; either version 2.1 of the License, or
++ (at your option) any later version.
++
++ QueryThe.Net's AnimatedCaptcha is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ GNU Lesser General Public License for more details.
++
++ You should have received a copy of the GNU Lesser General Public License
++ along with QueryThe.Net's AnimatedCaptcha; if not, write to the Free Software
++ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
++
++include "GIFEncoder.class.php";
++
++function add_random_frames($frame) {
++// random number & elapsed time of frames to *hopefully* make a cracker's life tougher
++
++ global $frames ;
++ global $time ;
++
++ $i = 0;
++ $loop = rand(6, 14); // total number of frames in loop loop
++
++ while ($i < $loop)
++ {
++ $frames [ ] = "frames/$frame.gif"; // use the solve frame so that the human eye cannot see a flicker
++ $time [ ] = rand(15, 25); // 5 * 20 = 1 second so the delay is never too terribly long
++ $i ++ ;
++ }
++}
++
++// get random numbers & operator and make sure the answer is >= 0
++ $k = 0 ;
++ while($k == 0)
++ {
++ $rand1 = rand(1, 9); // 1st number (1-9)
++ $rand3 = rand(1, 9); // 2nd number (1-9)
++ $rand2 = rand(0, 2); // operator (-,+,*)
++
++ if (($rand2 != 0) || ($rand3 < $rand1)) $k = 1 ;
++ }
++
++// set sessions for numbers, operator & answer. Only $_SESSION['answer'] is necessary. Others are for displaying full equation if you desire.
++ $_SESSION['r1'] = $rand1 ;
++ $_SESSION['r3'] = $rand3 ;
++
++ if ($rand2 == 0) {$_SESSION['r2'] = " - " ; $_SESSION['answer'] = $rand1 - $rand3 ; $frame_operator = "minus" ;}
++ elseif ($rand2 == 1) {$_SESSION['r2'] = " + " ; $_SESSION['answer'] = $rand1 + $rand3 ; $frame_operator = "plus" ;}
++ else {$_SESSION['r2'] = " * " ; $_SESSION['answer'] = $rand1 * $rand3 ; $frame_operator = "times" ;}
++
++// build the frame images and elapsed time to show in 2 arrays
++ $frames [ ] = "frames/solve.gif" ; // Intro message " Prove you are human ... "
++ $time [ ] = 140;
++ add_random_frames('solve') ;
++
++ // set 1st random number
++ $frames [ ] = "frames/" .$rand1. ".gif"; // 1st number (0-9)
++ $time [ ] = 35;
++ add_random_frames($rand1) ;
++
++ // set frame for operator
++ $frames [ ] = "frames/" .$frame_operator. ".gif" ;
++ $time [ ] = 60;
++ add_random_frames($frame_operator) ;
++
++ // set 2nd random number
++ $frames [ ] = "frames/" .$rand3. ".gif"; // 2nd number (0-9)
++ $time [ ] = 35;
++ add_random_frames($rand3) ;
++
++
++ // set final frame for equals
++ $frames [ ] = "frames/equals.gif" ; // Ending message " equals = "
++ $time [ ] = 140; // equals frame time (100 = 1 second)
++ add_random_frames('equals') ;
++
++// encode the gif using the class to avoid gd dependencies
++ $gif = new GIFEncoder (
++ $frames, // frames array
++ $time, // elapsed time array
++ 0, // loops (0 = infinite)
++ 2, // disposal
++ 0, 0, 0, // rgb of transparency
++ "url" // source type
++ );
++
++// display the image
++Header ( 'Content-type:image/gif' );
++echo $gif->GetAnimation ( );
++
++?>
+diff -r 7bda08d4cbf2 contrib/registration_form/Expanded/index.php
+--- a/contrib/registration_form/Expanded/index.php Sun Dec 21 18:13:05 2008 -0600
++++ b/contrib/registration_form/Expanded/index.php Sun Dec 21 19:51:16 2008 -0500
+@@ -1,269 +1,269 @@
+-
+-
+-
+-
+-
+-' . $title . '
+-
+-
+-
+-
+-
+-Email:
+-
+- Original -
+- TBC -
+- WOTLK
+-
+-New question
+-
+-
+-Submit
+-
+-
+-
+-
+-';
+-
+-function error_s ($text) {
+- echo("" . $text);
+- echo("Go back...
");
+-};
+-
+-$user_chars = "#[^a-zA-Z0-9_\-]#";
+-$email_chars = "/^[^0-9][A-z0-9_]+([.][A-z0-9_]+)*[@][A-z0-9_]+([.][A-z0-9_]+)*[.][A-z]{2,4}$/";
+-
+-$con = @mysql_connect($ip, $user, $pass);
+-if (!$con) {
+- error_s("Unable to connect to database: " . mysql_error());
+-};
+-
+-if (!empty($_POST)) {
+- if ((empty($_POST["username"]))||(empty($_POST["password"]))||(empty($_POST["email"]))||(empty($_POST["expansion"])) ) {
+- error_s("You did not enter all the required information.");
+- exit();
+- } else {
+- $username = strtoupper($_POST["username"]);
+- $password = strtoupper($_POST["password"]);
+- $email = strtoupper($_POST["email"]);
+- if (strlen($username) < 5) {
+- error_s("Username too short.");
+- exit();
+- };
+- if (strlen($username) > 14) {
+- error_s("Username too long.");
+- exit();
+- };
+- if (strlen($password) < 6) {
+- error_s("Password too short.");
+- exit();
+- };
+- if (strlen($password) > 12) {
+- error_s("Password too long.");
+- exit();
+- };
+- if (strlen($email) < 15) {
+- error_s("Email was too short.");
+- exit();
+- };
+- if (strlen($email) > 50) {
+- error_s("Email was too long.");
+- exit();
+- };
+- if (preg_match($user_chars,$username)) {
+- error_s("Username contained illegal characters.");
+- exit();
+- };
+- if (preg_match($user_chars,$password)) {
+- error_s("Password contained illegal characters.");
+- exit();
+- };
+- if (!preg_match($email_chars,$email)) {
+- error_s("Email was in an incorrect format.");
+- exit();
+- };
+- $username = mysql_real_escape_string($username);
+- $password = mysql_real_escape_string($password);
+- $email = mysql_real_escape_string($email);
+- $qry = @mysql_query("select username from " . mysql_real_escape_string($r_db) . ".account where username = '" . $username . "'", $con);
+- if (!$qry) {
+- error_s("Error querying database: " . mysql_error());
+- };
+- if ($existing_username = mysql_fetch_assoc($qry)) {
+- foreach ($existing_username as $key => $value) {
+- $existing_username = $value;
+- };
+- };
+- $existing_username = strtoupper($existing_username);
+- if ($existing_username == strtoupper($_POST['username'])) {
+- error_s("That username is already taken.");
+- exit();
+- };
+- unset($qry);
+- $qry = @mysql_query("select email from " . mysql_real_escape_string($r_db) . ".account where email = '" . $email . "'", $con);
+- if (!$qry) {
+- error_s("Error querying database: " . mysql_error());
+- };
+- if ($existing_email = mysql_fetch_assoc($qry)) {
+- foreach ($existing_email as $key => $value) {
+- $existing_email = $value;
+- };
+- };
+- if ($existing_email == $_POST['email']) {
+- error_s("That email is already in use.");
+- exit();
+- };
+- unset($qry);
+- $sha_pass_hash = sha1(strtoupper($username) . ":" . strtoupper($password));
+- $register_sql = "insert into " . mysql_real_escape_string($r_db) . ".account (username, sha_pass_hash, email, expansion) values (upper('" . $username . "'),'" . $sha_pass_hash . "','" . $email . "','" . $expansion . "')";
+- if (isset($_POST['AnimCaptcha']))
+- {
+- if (is_numeric($_POST['AnimCaptcha']))
+- {
+- if ( $_POST['AnimCaptcha'] == $_SESSION['answer'])
+- {
+- $qry = @mysql_query($register_sql, $con);
+- }
+- else
+- {
+- error_s("Captcha not filled properlyTry again
");
+- exit();
+- }
+- }
+- else
+- {
+- error_s("Enter Numbers or (+/-) only. No alphabetical characters accepted.
Try again
");
+- exit();
+- }
+- }
+- if (!$qry) {
+- error_s("Error creating account: " . mysql_error());
+- };
+- echo("Account successfully created.");
+- exit();
+- };
+-} else {
+- echo($page);
+-};
+-
+-echo 'Trinity Powered ';
+-
++
++
++
++
++
++' . $title . '
++
++
++
++
++
++
++';
++
++function error_s ($text) {
++ echo("" . $text);
++ echo("Go back...
");
++};
++
++$user_chars = "#[^a-zA-Z0-9_\-]#";
++$email_chars = "/^[^0-9][A-z0-9_]+([.][A-z0-9_]+)*[@][A-z0-9_]+([.][A-z0-9_]+)*[.][A-z]{2,4}$/";
++
++$con = @mysql_connect($ip, $user, $pass);
++if (!$con) {
++ error_s("Unable to connect to database: " . mysql_error());
++};
++
++if (!empty($_POST)) {
++ if ((empty($_POST["username"]))||(empty($_POST["password"]))||(empty($_POST["email"]))||(empty($_POST["expansion"])) ) {
++ error_s("You did not enter all the required information.");
++ exit();
++ } else {
++ $username = strtoupper($_POST["username"]);
++ $password = strtoupper($_POST["password"]);
++ $email = strtoupper($_POST["email"]);
++ if (strlen($username) < 5) {
++ error_s("Username too short.");
++ exit();
++ };
++ if (strlen($username) > 14) {
++ error_s("Username too long.");
++ exit();
++ };
++ if (strlen($password) < 6) {
++ error_s("Password too short.");
++ exit();
++ };
++ if (strlen($password) > 12) {
++ error_s("Password too long.");
++ exit();
++ };
++ if (strlen($email) < 15) {
++ error_s("Email was too short.");
++ exit();
++ };
++ if (strlen($email) > 50) {
++ error_s("Email was too long.");
++ exit();
++ };
++ if (preg_match($user_chars,$username)) {
++ error_s("Username contained illegal characters.");
++ exit();
++ };
++ if (preg_match($user_chars,$password)) {
++ error_s("Password contained illegal characters.");
++ exit();
++ };
++ if (!preg_match($email_chars,$email)) {
++ error_s("Email was in an incorrect format.");
++ exit();
++ };
++ $username = mysql_real_escape_string($username);
++ $password = mysql_real_escape_string($password);
++ $email = mysql_real_escape_string($email);
++ $qry = @mysql_query("select username from " . mysql_real_escape_string($r_db) . ".account where username = '" . $username . "'", $con);
++ if (!$qry) {
++ error_s("Error querying database: " . mysql_error());
++ };
++ if ($existing_username = mysql_fetch_assoc($qry)) {
++ foreach ($existing_username as $key => $value) {
++ $existing_username = $value;
++ };
++ };
++ $existing_username = strtoupper($existing_username);
++ if ($existing_username == strtoupper($_POST['username'])) {
++ error_s("That username is already taken.");
++ exit();
++ };
++ unset($qry);
++ $qry = @mysql_query("select email from " . mysql_real_escape_string($r_db) . ".account where email = '" . $email . "'", $con);
++ if (!$qry) {
++ error_s("Error querying database: " . mysql_error());
++ };
++ if ($existing_email = mysql_fetch_assoc($qry)) {
++ foreach ($existing_email as $key => $value) {
++ $existing_email = $value;
++ };
++ };
++ if ($existing_email == $_POST['email']) {
++ error_s("That email is already in use.");
++ exit();
++ };
++ unset($qry);
++ $sha_pass_hash = sha1(strtoupper($username) . ":" . strtoupper($password));
++ $register_sql = "insert into " . mysql_real_escape_string($r_db) . ".account (username, sha_pass_hash, email, expansion) values (upper('" . $username . "'),'" . $sha_pass_hash . "','" . $email . "','" . $expansion . "')";
++ if (isset($_POST['AnimCaptcha']))
++ {
++ if (is_numeric($_POST['AnimCaptcha']))
++ {
++ if ( $_POST['AnimCaptcha'] == $_SESSION['answer'])
++ {
++ $qry = @mysql_query($register_sql, $con);
++ }
++ else
++ {
++ error_s("Captcha not filled properlyTry again
");
++ exit();
++ }
++ }
++ else
++ {
++ error_s("Enter Numbers or (+/-) only. No alphabetical characters accepted.
Try again
");
++ exit();
++ }
++ }
++ if (!$qry) {
++ error_s("Error creating account: " . mysql_error());
++ };
++ echo("Account successfully created.");
++ exit();
++ };
++} else {
++ echo($page);
++};
++
++echo 'Trinity Powered ';
++
+ ?>
+\ No newline at end of file
+diff -r 7bda08d4cbf2 contrib/registration_form/Readme.txt
+--- a/contrib/registration_form/Readme.txt Sun Dec 21 18:13:05 2008 -0600
++++ b/contrib/registration_form/Readme.txt Sun Dec 21 19:51:16 2008 -0500
+@@ -1,7 +1,7 @@
+-= Trinity Core -- Account registration form =
+-
+-Copyright (C) Trinity Core (http://www.trinitycore.org)
+-
+-Use either of the two scripts, not both :)
+-
++= Trinity Core -- Account registration form =
++
++Copyright (C) Trinity Core (http://www.trinitycore.org)
++
++Use either of the two scripts, not both :)
++
+ Expanded is based on the simple one however is still in beta so use at your own risk. if it one day takes over your computer and starts throwing out mutant monsters that eat your plants and kick your dog or cat its NOT our fault.
+\ No newline at end of file
+diff -r 7bda08d4cbf2 contrib/registration_form/simple/README
+--- a/contrib/registration_form/simple/README Sun Dec 21 18:13:05 2008 -0600
++++ b/contrib/registration_form/simple/README Sun Dec 21 19:51:16 2008 -0500
+@@ -1,20 +1,20 @@
+-= Trinity Core -- Account registration form =
+-
+-Copyright (C) Trinity Core (http://www.trinitycore.org)
+-
+-This is a very simple account registration form that allows users
+-to register game accounts on the web.
+-
+-To run this, you will need:
+-
+- * PHP 5.1+
+- * MySQL 5.0.45+
+- * Any web server
+-
+-To install this registration form, simply copy the "index.php" to
+-a folder on your web server. You can rename it to anything you
+-like, but it's recommended to keep it as "index.php" and put it
+-in a dedicated directory, such as "/home/public_html/register".
+-
+-In order for the script to work correctly, you must configure it
++= Trinity Core -- Account registration form =
++
++Copyright (C) Trinity Core (http://www.trinitycore.org)
++
++This is a very simple account registration form that allows users
++to register game accounts on the web.
++
++To run this, you will need:
++
++ * PHP 5.1+
++ * MySQL 5.0.45+
++ * Any web server
++
++To install this registration form, simply copy the "index.php" to
++a folder on your web server. You can rename it to anything you
++like, but it's recommended to keep it as "index.php" and put it
++in a dedicated directory, such as "/home/public_html/register".
++
++In order for the script to work correctly, you must configure it
+ in the file itself.
+\ No newline at end of file
+diff -r 7bda08d4cbf2 contrib/registration_form/simple/index.php
+--- a/contrib/registration_form/simple/index.php Sun Dec 21 18:13:05 2008 -0600
++++ b/contrib/registration_form/simple/index.php Sun Dec 21 19:51:16 2008 -0500
+@@ -1,148 +1,148 @@
+-
+-
+-
+-
+-' . $title . '
+-
+-
+-
+-
+-';
+-
+-function error_s ($text) {
+- echo("" . $text);
+- echo("Go back...
");
+-};
+-
+-$user_chars = "#[^a-zA-Z0-9_\-]#";
+-$email_chars = "/^[^0-9][A-z0-9_]+([.][A-z0-9_]+)*[@][A-z0-9_]+([.][A-z0-9_]+)*[.][A-z]{2,4}$/";
+-
+-$con = @mysql_connect($ip, $user, $pass);
+-if (!$con) {
+- error_s("Unable to connect to database: " . mysql_error());
+-};
+-
+-if (!empty($_POST)) {
+- if ((empty($_POST["username"]))||(empty($_POST["password"]))||(empty($_POST["email"]))||(empty($_POST["tbc"])) ) {
+- error_s("You did not enter all the required information.");
+- exit();
+- } else {
+- $username = strtoupper($_POST["username"]);
+- $password = strtoupper($_POST["password"]);
+- $email = strtoupper($_POST["email"]);
+- if (strlen($username) < 5) {
+- error_s("Username too short.");
+- exit();
+- };
+- if (strlen($username) > 14) {
+- error_s("Username too long.");
+- exit();
+- };
+- if (strlen($password) < 8) {
+- error_s("Password too short.");
+- exit();
+- };
+- if (strlen($password) > 12) {
+- error_s("Password too long.");
+- exit();
+- };
+- if (strlen($email) < 15) {
+- error_s("Email was too short.");
+- exit();
+- };
+- if (strlen($email) > 50) {
+- error_s("Email was too long.");
+- exit();
+- };
+- if (preg_match($user_chars,$username)) {
+- error_s("Username contained illegal characters.");
+- exit();
+- };
+- if (preg_match($user_chars,$password)) {
+- error_s("Password contained illegal characters.");
+- exit();
+- };
+- if (!preg_match($email_chars,$email)) {
+- error_s("Email was in an incorrect format.");
+- exit();
+- };
+- if ($_POST['tbc'] != "on") {
+- $tbc = "0";
+- } else {
+- $tbc = "1";
+- };
+- $username = mysql_real_escape_string($username);
+- $password = mysql_real_escape_string($password);
+- $email = mysql_real_escape_string($email);
+- $qry = @mysql_query("select username from " . mysql_real_escape_string($r_db) . ".account where username = '" . $username . "'", $con);
+- if (!$qry) {
+- error_s("Error querying database: " . mysql_error());
+- };
+- if ($existing_username = mysql_fetch_assoc($qry)) {
+- foreach ($existing_username as $key => $value) {
+- $existing_username = $value;
+- };
+- };
+- $existing_username = strtoupper($existing_username);
+- if ($existing_username == strtoupper($_POST['username'])) {
+- error_s("That username is already taken.");
+- exit();
+- };
+- unset($qry);
+- $qry = @mysql_query("select email from " . mysql_real_escape_string($r_db) . ".account where email = '" . $email . "'", $con);
+- if (!$qry) {
+- error_s("Error querying database: " . mysql_error());
+- };
+- if ($existing_email = mysql_fetch_assoc($qry)) {
+- foreach ($existing_email as $key => $value) {
+- $existing_email = $value;
+- };
+- };
+- if ($existing_email == $_POST['email']) {
+- error_s("That email is already in use.");
+- exit();
+- };
+- unset($qry);
+- $sha_pass_hash = sha1(strtoupper($username) . ":" . strtoupper($password));
+- $register_sql = "insert into " . mysql_real_escape_string($r_db) . ".account (username, sha_pass_hash, email, expansion) values (upper('" . $username . "'),'" . $sha_pass_hash . "','" . $email . "','" . $tbc . "')";
+- $qry = @mysql_query($register_sql, $con);
+- if (!$qry) {
+- error_s("Error creating account: " . mysql_error());
+- };
+- echo("Account successfully created.");
+- exit();
+- };
+-} else {
+- echo($page);
+-};
+-
+-?>
++
++
++
++
++' . $title . '
++
++
++
++
++';
++
++function error_s ($text) {
++ echo("" . $text);
++ echo("Go back...
");
++};
++
++$user_chars = "#[^a-zA-Z0-9_\-]#";
++$email_chars = "/^[^0-9][A-z0-9_]+([.][A-z0-9_]+)*[@][A-z0-9_]+([.][A-z0-9_]+)*[.][A-z]{2,4}$/";
++
++$con = @mysql_connect($ip, $user, $pass);
++if (!$con) {
++ error_s("Unable to connect to database: " . mysql_error());
++};
++
++if (!empty($_POST)) {
++ if ((empty($_POST["username"]))||(empty($_POST["password"]))||(empty($_POST["email"]))||(empty($_POST["tbc"])) ) {
++ error_s("You did not enter all the required information.");
++ exit();
++ } else {
++ $username = strtoupper($_POST["username"]);
++ $password = strtoupper($_POST["password"]);
++ $email = strtoupper($_POST["email"]);
++ if (strlen($username) < 5) {
++ error_s("Username too short.");
++ exit();
++ };
++ if (strlen($username) > 14) {
++ error_s("Username too long.");
++ exit();
++ };
++ if (strlen($password) < 8) {
++ error_s("Password too short.");
++ exit();
++ };
++ if (strlen($password) > 12) {
++ error_s("Password too long.");
++ exit();
++ };
++ if (strlen($email) < 15) {
++ error_s("Email was too short.");
++ exit();
++ };
++ if (strlen($email) > 50) {
++ error_s("Email was too long.");
++ exit();
++ };
++ if (preg_match($user_chars,$username)) {
++ error_s("Username contained illegal characters.");
++ exit();
++ };
++ if (preg_match($user_chars,$password)) {
++ error_s("Password contained illegal characters.");
++ exit();
++ };
++ if (!preg_match($email_chars,$email)) {
++ error_s("Email was in an incorrect format.");
++ exit();
++ };
++ if ($_POST['tbc'] != "on") {
++ $tbc = "0";
++ } else {
++ $tbc = "1";
++ };
++ $username = mysql_real_escape_string($username);
++ $password = mysql_real_escape_string($password);
++ $email = mysql_real_escape_string($email);
++ $qry = @mysql_query("select username from " . mysql_real_escape_string($r_db) . ".account where username = '" . $username . "'", $con);
++ if (!$qry) {
++ error_s("Error querying database: " . mysql_error());
++ };
++ if ($existing_username = mysql_fetch_assoc($qry)) {
++ foreach ($existing_username as $key => $value) {
++ $existing_username = $value;
++ };
++ };
++ $existing_username = strtoupper($existing_username);
++ if ($existing_username == strtoupper($_POST['username'])) {
++ error_s("That username is already taken.");
++ exit();
++ };
++ unset($qry);
++ $qry = @mysql_query("select email from " . mysql_real_escape_string($r_db) . ".account where email = '" . $email . "'", $con);
++ if (!$qry) {
++ error_s("Error querying database: " . mysql_error());
++ };
++ if ($existing_email = mysql_fetch_assoc($qry)) {
++ foreach ($existing_email as $key => $value) {
++ $existing_email = $value;
++ };
++ };
++ if ($existing_email == $_POST['email']) {
++ error_s("That email is already in use.");
++ exit();
++ };
++ unset($qry);
++ $sha_pass_hash = sha1(strtoupper($username) . ":" . strtoupper($password));
++ $register_sql = "insert into " . mysql_real_escape_string($r_db) . ".account (username, sha_pass_hash, email, expansion) values (upper('" . $username . "'),'" . $sha_pass_hash . "','" . $email . "','" . $tbc . "')";
++ $qry = @mysql_query($register_sql, $con);
++ if (!$qry) {
++ error_s("Error creating account: " . mysql_error());
++ };
++ echo("Account successfully created.");
++ exit();
++ };
++} else {
++ echo($page);
++};
++
++?>
+diff -r 7bda08d4cbf2 contrib/vmap_extractor_v2/stormlib/Makefile
+--- a/contrib/vmap_extractor_v2/stormlib/Makefile Sun Dec 21 18:13:05 2008 -0600
++++ b/contrib/vmap_extractor_v2/stormlib/Makefile Sun Dec 21 19:51:16 2008 -0500
+@@ -1,58 +1,58 @@
+-#####################################################################
###
+-#
+-# Makefile for compiling StormLib under linux
+-#
+-# Author: Marko Friedemann
+-# Created at: Mon Jan 29 18:26:01 CEST 2001
+-# Computer: whiplash.flachland-chemnitz.de
+-# System: Linux 2.4.0 on i686
+-#
+-# Copyright (c) 2001 BMX-Chemnitz.DE All rights reserved.
+-#
+-#####################################################################
###
+-
+-FILES.cpp = SCommon.cpp SCompression.cpp SFileCompactArchive.cpp \
+- SFileCreateArchiveEx.cpp SFileExtractFile.cpp SFileFindFile.cpp \
+- SListFile.cpp SFileOpenArchive.cpp SFileOpenFileEx.cpp SFileReadFile.cpp \
+- StormPortLinux.cpp wave/wave.cpp huffman/huff.cpp \
+- pklib/crc32.cpp pklib/explode.cpp pklib/implode.cpp
+-FILES.o = $(FILES.cpp:.cpp=.o)
+-
+-LIB = libStorm.so
+-
+-CXX = g++
+-CFLAGS = -Wall -s -D__SYS_ZLIB
+-I_FLAGS =
+-LDFLAGS = -lz -lbz2
+-
+-all: $(LIB)
+-
+-$(LIB): $(FILES.o)
+- $(LD) -shared $(LDFLAGS) -o $(LIB) $(FILES.o)
+-
+-%.o: %.cpp
+- $(CXX) $(CFLAGS) -c $< -o $@
+-
+-clean:
+- $(RM) $(FILES.o) $(LIB)
+-
+-new: clean all
+-
+-mrproper: clean
+- $(RM) Makefile.deps
+-
+-mrnew: mrproper new
+-
+-install: $(LIB)
+- install $(I_FLAGS) $(LIB) /usr/local/lib
+- mkdir -p /usr/local/include/StormLib
+- cp Storm.h /usr/local/include/StormLib
+- cp StormPort.h /usr/local/include/StormLib
+- ldconfig
+-
+-deps:
+- $(CXX) -MM $(CFLAGS) $(FILES.cpp) > Makefile.deps
+-
+--include Makefile.deps
+-
+-.PHONY: all clean new mrpoper mrnew install deps
++########################################################################
++#
++# Makefile for compiling StormLib under linux
++#
++# Author: Marko Friedemann
++# Created at: Mon Jan 29 18:26:01 CEST 2001
++# Computer: whiplash.flachland-chemnitz.de
++# System: Linux 2.4.0 on i686
++#
++# Copyright (c) 2001 BMX-Chemnitz.DE All rights reserved.
++#
++########################################################################
++
++FILES.cpp = SCommon.cpp SCompression.cpp SFileCompactArchive.cpp \
++ SFileCreateArchiveEx.cpp SFileExtractFile.cpp SFileFindFile.cpp \
++ SListFile.cpp SFileOpenArchive.cpp SFileOpenFileEx.cpp SFileReadFile.cpp \
++ StormPortLinux.cpp wave/wave.cpp huffman/huff.cpp \
++ pklib/crc32.cpp pklib/explode.cpp pklib/implode.cpp
++FILES.o = $(FILES.cpp:.cpp=.o)
++
++LIB = libStorm.so
++
++CXX = g++
++CFLAGS = -Wall -s -D__SYS_ZLIB
++I_FLAGS =
++LDFLAGS = -lz -lbz2
++
++all: $(LIB)
++
++$(LIB): $(FILES.o)
++ $(LD) -shared $(LDFLAGS) -o $(LIB) $(FILES.o)
++
++%.o: %.cpp
++ $(CXX) $(CFLAGS) -c $< -o $@
++
++clean:
++ $(RM) $(FILES.o) $(LIB)
++
++new: clean all
++
++mrproper: clean
++ $(RM) Makefile.deps
++
++mrnew: mrproper new
++
++install: $(LIB)
++ install $(I_FLAGS) $(LIB) /usr/local/lib
++ mkdir -p /usr/local/include/StormLib
++ cp Storm.h /usr/local/include/StormLib
++ cp StormPort.h /usr/local/include/StormLib
++ ldconfig
++
++deps:
++ $(CXX) -MM $(CFLAGS) $(FILES.cpp) > Makefile.deps
++
++-include Makefile.deps
++
++.PHONY: all clean new mrpoper mrnew install deps
+diff -r 7bda08d4cbf2 sql/trinityscript_script_texts.sql
+--- a/sql/trinityscript_script_texts.sql Sun Dec 21 18:13:05 2008 -0600
++++ b/sql/trinityscript_script_texts.sql Sun Dec 21 19:51:16 2008 -0500
+@@ -1,1090 +1,1090 @@
+---
+--- trinityscript_script_texts.sql Contains data for table `script_texts` mainly used in C++ parts.
+--- valid entries for table are between -1000000 and -1999999
+---
+-
+-TRUNCATE `script_texts`;
+-
+---
+--- -1 000 000 First 100 entries are reserved for special use, do not add regular text here.
+---
+-
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1000000,'',0,0,0,'DEFAULT_TEXT');
+-
+---
+--- Normal text entries. Say/Yell/Whisper/Emote for any regular world object.
+---
+-
+--- -1 000 100 GENERAL MAPS (not typical instance maps)
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1000100,'Come, little ones. Face me!',0,1,0,'azuregos SAY_TELEPORT'),
+-
+-(-1000101,'Follow me, $N. I\'ll take you to the Defias hideout. But you better protect me or I am as good as dead',0,0,7,'defias traitor SAY_START'),
+-(-1000102,'The entrance is hidden here in Moonbrook. Keep your eyes peeled for thieves. They want me dead.',0,0,7,'defias traitor SAY_PROGRESS'),
+-(-1000103,'You can go tell Stoutmantle this is where the Defias Gang is holed up, $N.',0,0,7,'defias traitor SAY_END'),
+-(-1000104,'%s coming in fast! Prepare to fight!',0,0,7,'defias traitor SAY_AGGRO_1'),
+-(-1000105,'Help!',0,0,7,'defias traitor SAY_AGGRO_2');
+-
+--- -1 033 000 SHADOWFANG KEEP
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1033000,'Thanks for freeing me, I\'ll open this door for you, then I will get out of here.',0,0,0,'shadowfang_prisoner SAY_FREE');
+-
+--- -1 034 000 STOCKADES
+-
+--- -1 036 000 DEADMINES
+-
+--- -1 043 000 WAILING CAVERNS
+-
+--- -1 047 000 RAZORFEN KRAUL
+-
+--- -1 048 000 BLACKFATHOM DEEPS
+-
+--- -1 070 000 ULDAMAN
+-
+--- -1 090 000 GNOMEREGAN
+-
+--- -1 109 000 SUNKEN TEMPLE
+-
+--- -1 129 000 RAZORFEN DOWNS
+-
+--- -1 189 000 SCARLET MONASTERY
+-
+--- -1 209 000 ZUL'FARRAK
+-
+--- -1 229 000 BLACKROCK SPIRE
+-
+--- -1 230 000 BLACKROCK DEPTHS
+-
+--- -1 249 000 ONYXIA'S LAIR
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1249000,'How fortuitous. Usually, I must leave my lair to feed.',0,1,0,'onyxia SAY_AGGRO'),
+-(-1249001,'Learn your place mortal!',0,1,0,'onyxia SAY_KILL'),
+-(-1249002,'This meaningless exertion bores me. I\'ll incinerate you all from above!',0,1,0,'onyxia SAY_PHASE_2_TRANS'),
+-(-1249003,'It seems you\'ll need another lesson, mortals!',0,1,0,'onyxia SAY_PHASE_3_TRANS'),
+-(-1249004,'takes in a deep breath...',0,1,0,'onyxia EMOTE_BREATH');
+-
+--- -1 269 000 OPENING OF THE DARK PORTAL (BLACK MORASS)
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1269000,'Why do you persist? Surely you can see the futility of it all. It is not too late! You may still leave with your lives ...',10442,1,0,'temporus SAY_ENTER'),
+-(-1269001,'So be it ... you have been warned.',10444,1,0,'temporus SAY_AGGRO'),
+-(-1269002,'Time... sands of time is run out for you.',10443,1,0,'temporus SAY_BANISH'),
+-(-1269003,'You should have left when you had the chance.',10445,1,0,'temporus SAY_SLAY1'),
+-(-1269004,'Your days are done.',10446,1,0,'temporus SAY_SLAY2'),
+-(-1269005,'My death means ... little.',10447,1,0,'temporus SAY_DEATH'),
+-
+-(-1269006,'Why do you aid the Magus? Just think of how many lives could be saved if the portal is never opened, if the resulting wars could be erased ...',10412,1,0,'chrono_lord_deja SAY_ENTER'),
+-(-1269007,'If you will not cease this foolish quest, then you will die!',10414,1,0,'chrono_lord_deja SAY_AGGRO'),
+-(-1269008,'You have outstayed your welcome, Timekeeper. Begone!',10413,1,0,'chrono_lord_deja SAY_BANISH'),
+-(-1269009,'I told you it was a fool\'s quest!',10415,1,0,'chrono_lord_deja SAY_SLAY1'),
+-(-1269010,'Leaving so soon?',10416,1,0,'chrono_lord_deja SAY_SLAY2'),
+-(-1269011,'Time ... is on our side.',10417,1,0,'chrono_lord_deja SAY_DEATH'),
+-
+-(-1269012,'The time has come to shatter this clockwork universe forever! Let us no longer be slaves of the hourglass! I warn you: those who do not embrace the greater path shall become victims of its passing!',10400,1,0,'aeonus SAY_ENTER'),
+-(-1269013,'Let us see what fate lays in store...',10402,1,0,'aeonus SAY_AGGRO'),
+-(-1269014,'Your time is up, slave of the past!',10401,1,0,'aeonus SAY_BANISH'),
+-(-1269015,'One less obstacle in our way!',10403,1,0,'aeonus SAY_SLAY1'),
+-(-1269016,'No one can stop us! No one!',10404,1,0,'aeonus SAY_SLAY2'),
+-(-1269017,'It is only a matter...of time.',10405,1,0,'aeonus SAY_DEATH');
+-
+--- -1 289 000 SCHOLOMANCE
+-
+--- -1 309 000 ZUL'GURUB
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1309000,'Let the coils of hate unfurl!',8421,1,0,'venoxis SAY_TRANSFORM'),
+-(-1309001,'Ssserenity..at lassst!',0,1,0,'venoxis SAY_DEATH'),
+-
+-(-1309002,'Lord Hir\'eek, grant me wings of vengance!',8417,1,0,'jeklik SAY_AGGRO'),
+-(-1309003,'I command you to rain fire down upon these invaders!',0,1,0,'jeklik SAY_RAIN_FIRE'),
+-(-1309004,'Finally ...death. Curse you Hakkar! Curse you!',8422,1,0,'jeklik SAY_DEATH'),
+-
+-(-1309005,'Draw me to your web mistress Shadra. Unleash your venom!',8418,1,0,'marli SAY_AGGRO'),
+-(-1309006,'Shadra, make of me your avatar!',0,1,0,'marli SAY_TRANSFORM'),
+-(-1309007,'Aid me my brood!',0,1,0,'marli SAY_SPIDER_SPAWN'),
+-(-1309008,'Bless you mortal for this release. Hakkar controls me no longer...',8423,1,0,'marli SAY_DEATH'),
+-
+-(-1309009,'Shirvallah, fill me with your RAGE!',8419,1,0,'thekal SAY_AGGRO'),
+-(-1309010,'Hakkar binds me no more! Peace at last!',8424,1,0,'thekal SAY_DEATH'),
+-
+-(-1309011,'Bethekk, your priestess calls upon your might!',8416,1,0,'arlokk SAY_AGGRO'),
+-(-1309012,'Feast on $n, my pretties!',0,1,0,'arlokk SAY_FEAST_PANTHER'),
+-(-1309013,'At last, I am free of the Soulflayer!',8412,1,0,'arlokk SAY_DEATH'),
+-
+-(-1309014,'Welcome to da great show friends! Step right up to die!',8425,1,0,'jindo SAY_AGGRO'),
+-
+-(-1309015,'I\'ll feed your souls to Hakkar himself!',8413,1,0,'mandokir SAY_AGGRO'),
+-(-1309016,'DING!',0,1,0,'mandokir SAY_DING_KILL'),
+-(-1309017,'GRATS!',0,1,0,'mandokir SAY_GRATS_JINDO'),
+-(-1309018,'I\'m keeping my eye on you, $N!',0,1,0,'mandokir SAY_WATCH'),
+-(-1309019,'Don\'t make me angry. You won\'t like it when I\'m angry.',0,1,0,'mandokir SAY_WATCH_WHISPER'),
+-
+-(-1309020,'PRIDE HERALDS THE END OF YOUR WORLD. COME, MORTALS! FACE THE WRATH OF THE SOULFLAYER!',8414,1,0,'hakkar SAY_AGGRO'),
+-(-1309021,'Fleeing will do you no good, mortals!',0,1,0,'hakkar SAY_FLEEING'),
+-(-1309022,'You dare set foot upon Hakkari holy ground? Minions of Hakkar, destroy the infidels!',0,1,0,'hakkar SAY_MINION_DESTROY'),
+-(-1309023,'Minions of Hakkar, hear your God. The sanctity of this temple has been compromised. Invaders encroach upon holy ground! The Altar of Blood must be protected. Kill them all!',0,1,0,'hakkar SAY_PROTECT_ALTAR');
+-
+--- -1 329 000 STRATHOLME
+-
+--- -1 349 000 MARAUDON
+-
+--- -1 389 000 RAGEFIRE CHASM
+-
+--- -1 409 000 MOLTEN CORE
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1409000,'performs one last service for Ragnaros.',0,2,0,'geddon EMOTE_SERVICE'),
+-(-1409001,'goes into a killing frenzy!',0,2,0,'magmadar EMOTE_FRENZY'),
+-(-1409002,'refuses to die while its master is in trouble.',0,2,0,'core rager EMOTE_AEGIS'),
+-
+-(-1409003,'Reckless mortals, none may challenge the sons of the living flame!',8035,1,0,'majordomo SAY_AGGRO'),
+-(-1409004,'The runes of warding have been destroyed! Hunt down the infedels my bretheren.',8039,1,0,'majordomo SAY_SPAWN'),
+-(-1409005,'Ashes to Ashes!',8037,1,0,'majordomo SAY_SLAY'),
+-(-1409006,'Burn mortals! Burn for this transgression!',8036,1,0,'majordomo SAY_SPECIAL'),
+-(-1409007,'Impossible! Stay your attack mortals! I submitt! I submitt! Brashly you have come to rest the secrets of the living flame. You will soon regret the recklessness of your quest. I go now to summon the lord whos house this is. Should you seek an audiance with him your paltry lives will surly be forfit. Nevertheless seek out his lair if you dare!',8038,1,0,'majordomo SAY_DEFEAT'),
+-
+-(-1409008,'Behold Ragnaros, the Firelord! He who was ancient when this world was young! Bow before him, mortals! Bow before your ending!',8040,1,0,'ragnaros SAY_SUMMON_MAJ'),
+-(-1409009,'TOO SOON! YOU HAVE AWAKENED ME TOO SOON, EXECUTUS! WHAT IS THE MEANING OF THIS INTRUSION?',8043,1,0,'ragnaros SAY_ARRIVAL1_RAG'),
+-(-1409010,'These mortal infidels, my lord! They have invaded your sanctum, and seek to steal your secrets!',8041,1,0,'ragnaros SAY_ARRIVAL2_MAJ'),
+-(-1409011,'FOOL! YOU ALLOWED THESE INSECTS TO RUN RAMPANT THROUGH THE HALLOWED CORE, AND NOW YOU LEAD THEM TO MY VERY LAIR? YOU HAVE FAILED ME, EXECUTUS! JUSTICE SHALL BE MET, INDEED!',8044,1,0,'ragnaros SAY_ARRIVAL3_RAG'),
+-(-1409012,'NOW FOR YOU, INSECTS. BOLDLY YOU SAUGHT THE POWER OF RAGNAROS NOW YOU SHALL SEE IT FIRST HAND.',8045,1,0,'ragnaros SAY_ARRIVAL5_RAG'),
+-
+-(-1409013,'COME FORTH, MY SERVANTS! DEFEND YOUR MASTER!',8049,1,0,'ragnaros SAY_REINFORCEMENTS1'),
+-(-1409014,'YOU CANNOT DEFEAT THE LIVING FLAME! COME YOU MINIONS OF FIRE! COME FORTH YOU CREATURES OF HATE! YOUR MASTER CALLS!',8050,1,0,'ragnaros SAY_REINFORCEMENTS2'),
+-(-1409015,'BY FIRE BE PURGED!',8046,1,0,'ragnaros SAY_HAND'),
+-(-1409016,'TASTE THE FLAMES OF SULFURON!',8047,1,0,'ragnaros SAY_WRATH'),
+-(-1409017,'DIE INSECT!',8051,1,0,'ragnaros SAY_KILL'),
+-(-1409018,'MY PATIENCE IS DWINDILING! COME NATS TO YOUR DEATH!',8048,1,0,'ragnaros SAY_MAGMABURST');
+-
+--- -1 429 000 DIRE MAUL
+-
+--- -1 469 000 BLACKWING LAIR
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1469000,'None of your kind should be here! You\'ve doomed only yourselves!',8286,1,0,'broodlord SAY_AGGRO'),
+-(-1469001,'Clever Mortals but I am not so easily lured away from my sanctum!',8287,1,0,'broodlord SAY_LEASH'),
+-
+-(-1469002,'goes into a killing frenzy!',0,2,0,'chromaggus EMOTE_FRENZY'),
+-(-1469003,'flinches as its skin shimmers.',0,2,0,'chromaggus EMOTE_SHIMMER'),
+-
+-(-1469004,'In this world where time is your enemy, it is my greatest ally. This grand game of life that you think you play in fact plays you. To that I say...',0,0,0,'victor_nefarius SAY_GAMESBEGIN_1'),
+-(-1469005,'Let the games begin!',8280,1,0,'victor_nefarius SAY_GAMESBEGIN_2'),
+-(-1469006,'Ah, the heroes. You are persistent, aren\'t you. Your allied attempted to match his power against mine, and had to pay the price. Now he shall serve me, by slaughtering you. Get up little red wyrm and destroy them!',8279,1,0,'victor_nefarius SAY_VAEL_INTRO'),
+-
+-(-1469007,'Well done, my minions. The mortals\' courage begins to wane! Now, let\'s see how they contend with the true Lord of Blackrock Spire!',8288,1,0,'nefarian SAY_AGGRO'),
+-(-1469008,'Enough! Now you vermin shall feel the force of my birthright, the fury of the earth itself.',8289,1,0,'nefarian SAY_XHEALTH'),
+-(-1469009,'Burn, you wretches! Burn!',8290,1,0,'nefarian SAY_SHADOWFLAME'),
+-(-1469010,'Impossible! Rise my minions! Serve your master once more!',8291,1,0,'nefarian SAY_RAISE_SKELETONS'),
+-(-1469011,'Worthless $N! Your friends will join you soon enough!',8293,1,0,'nefarian SAY_SLAY'),
+-(-1469012,'This cannot be! I am the Master here! You mortals are nothing to my kind! DO YOU HEAR? NOTHING!',8292,1,0,'nefarian SAY_DEATH'),
+-(-1469013,'Mages too? You should be more careful when you play with magic...',0,1,0,'nefarian SAY_MAGE'),
+-(-1469014,'Warriors, I know you can hit harder than that! Let\'s see it!',0,1,0,'nefarian SAY_WARRIOR'),
+-(-1469015,'Druids and your silly shapeshifting. Let\'s see it in action!',0,1,0,'nefarian SAY_DRUID'),
+-(-1469016,'Priests! If you\'re going to keep healing like that, we might as well make it a little more interesting!',0,1,0,'nefarian SAY_PRIEST'),
+-(-1469017,'Paladins, I\'ve heard you have many lives. Show me.',0,1,0,'nefarian SAY_PALADIN'),
+-(-1469018,'Shamans, show me what your totems can do!',0,1,0,'nefarian SAY_SHAMAN'),
+-(-1469019,'Warlocks, you shouldn\'t be playing with magic you don\'t understand. See what happens?',0,1,0,'nefarian SAY_WARLOCK'),
+-(-1469020,'Hunters and your annoying pea-shooters!',0,1,0,'nefarian SAY_HUNTER'),
+-(-1469021,'Rogues? Stop hiding and face me!',0,1,0,'nefarian SAY_ROGUE'),
+-
+-(-1469022,'You\'ll pay for forcing me to do this.',8275,1,0,'razorgore SAY_EGGS_BROKEN1'),
+-(-1469023,'Fools! These eggs are more precious than you know.',8276,1,0,'razorgore SAY_EGGS_BROKEN2'),
+-(-1469024,'No! Not another one! I\'ll have your heads for this atrocity.',8277,1,0,'razorgore SAY_EGGS_BROKEN3'),
+-(-1469025,'If I fall into the abyss I\'ll take all of you mortals with me...',8278,1,0,'razorgore SAY_DEATH'),
+-
+-(-1469026,'Too late...friends. Nefarius\' corruption has taken hold. I cannot...control myself.',8281,1,0,'vaelastrasz SAY_LINE1'),
+-(-1469027,'I beg you Mortals, flee! Flee before I lose all control. The Black Fire rages within my heart. I must release it!',8282,1,0,'vaelastrasz SAY_LINE2'),
+-(-1469028,'FLAME! DEATH! DESTRUCTION! COWER MORTALS BEFORE THE WRATH OF LORD....NO! I MUST FIGHT THIS!',8283,1,0,'vaelastrasz SAY_LINE3'),
+-(-1469029,'Nefarius\' hate has made me stronger than ever before. You should have fled, while you could, mortals! The fury of Blackrock courses through my veins!',8285,1,0,'vaelastrasz SAY_HALFLIFE'),
+-(-1469030,'Forgive me $N, your death only adds to my failure.',8284,1,0,'vaelastrasz SAY_KILLTARGET'),
+-
+-(-1469031,'goes into a frenzy!',0,2,0,'flamegor EMOTE_FRENZY');
+-
+--- -1 509 000 RUINS OF AHN'QIRAJ
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1509000,'senses your fear.',0,2,0,'moam EMOTE_AGGRO'),
+-(-1509001,'bristles with energy!',0,2,0,'moan EMOTE_MANA_FULL'),
+-
+-(-1509002,'sets eyes on $N!',0,2,0,'buru EMOTE_TARGET'),
+-
+-(-1509003,'They come now. Try not to get yourself killed, young blood.',0,1,0,'andorov SAY_ANDOROV_INTRO'),
+-(-1509004,'Remember, Rajaxx, when I said I\'d kill you last? I lied...',0,1,0,'andorov SAY_ANDOROV_ATTACK'),
+-
+-(-1509005,'The time of our retribution is at hand! Let darkness reign in the hearts of our enemies!',8612,1,0,'rajaxx SAY_WAVE3'),
+-(-1509006,'No longer will we wait behind barred doors and walls of stone! No longer will our vengeance be denied! The dragons themselves will tremble before our wrath!',8610,1,0,'rajaxx SAY_WAVE4'),
+-(-1509007,'Fear is for the enemy! Fear and death!',8608,1,0,'rajaxx SAY_WAVE5'),
+-(-1509008,'Staghelm will whimper and beg for his life, just as his whelp of a son did! One thousand years of injustice will end this day!',8611,1,0,'rajaxx SAY_WAVE6'),
+-(-1509009,'Fandral! Your time has come! Go and hide in the Emerald Dream and pray we never find you!',8607,1,0,'rajaxx SAY_WAVE7'),
+-(-1509010,'Impudent fool! I will kill you myself!',8609,1,0,'rajaxx SAY_INTRO'),
+-(-1509011,'Attack and make them pay dearly!',8603,1,0,'rajaxx SAY_UNK1'),
+-(-1509012,'Crush them! Drive them out!',8605,1,0,'rajaxx SAY_UNK2'),
+-(-1509013,'Do not hesitate! Destroy them!',8606,1,0,'rajaxx SAY_UNK3'),
+-(-1509014,'Warriors! Captains! Continue the fight!',8613,1,0,'rajaxx SAY_UNK4'),
+-(-1509015,'You are not worth my time $N!',8614,1,0,'rajaxx SAY_DEAGGRO'),
+-(-1509016,'Breath your last!',8604,1,0,'rajaxx SAY_KILLS_ANDOROV'),
+-(-1509017,'Soon you will know the price of your meddling, mortals... The master is nearly whole... And when he rises, your world will be cease!',0,1,0,'rajaxx SAY_COMPLETE_QUEST'),
+-
+-(-1509018,'I am rejuvinated!',8593,1,0,'ossirian SAY_SURPREME1'),
+-(-1509019,'My powers are renewed!',8595,1,0,'ossirian SAY_SURPREME2'),
+-(-1509020,'My powers return!',8596,1,0,'ossirian SAY_SURPREME3'),
+-(-1509021,'Protect the city at all costs!',8597,1,0,'ossirian SAY_RAND_INTRO1'),
+-(-1509022,'The walls have been breached!',8599,1,0,'ossirian SAY_RAND_INTRO2'),
+-(-1509023,'To your posts. Defend the city.',8600,1,0,'ossirian SAY_RAND_INTRO3'),
+-(-1509024,'Tresspassers will be terminated.',8601,1,0,'ossirian SAY_RAND_INTRO4'),
+-(-1509025,'Sands of the desert rise and block out the sun!',8598,1,0,'ossirian SAY_AGGRO'),
+-(-1509026,'You are terminated.',8602,1,0,'ossirian SAY_SLAY'),
+-(-1509027,'I...have...failed.',8594,1,0,'ossirian SAY_DEATH');
+-
+--- -1 531 000 TEMPLE OF AHN'QIRAJ
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1531000,'Are you so eager to die? I would be happy to accomodate you.',8615,1,0,'skeram SAY_AGGRO1'),
+-(-1531001,'Cower mortals! The age of darkness is at hand.',8616,1,0,'skeram SAY_AGGRO2'),
+-(-1531002,'Tremble! The end is upon you.',8621,1,0,'skeram SAY_AGGRO3'),
+-(-1531003,'Let your death serve as an example!',8617,1,0,'skeram SAY_SLAY1'),
+-(-1531004,'Spineless wretches! You will drown in rivers of blood!',8619,1,0,'skeram SAY_SLAY2'),
+-(-1531005,'The screams of the dying will fill the air. A symphony of terror is about to begin!',8620,1,0,'skeram SAY_SLAY3'),
+-(-1531006,'Prepare for the return of the ancient ones!',8618,1,0,'skeram SAY_SPLIT'),
+-(-1531007,'You only delay... the inevetable.',8622,1,0,'skeram SAY_DEATH'),
+-
+-(-1531008,'You will be judged for defiling these sacred grounds! The laws of the Ancients will not be challenged! Trespassers will be annihilated!',8646,1,0,'sartura SAY_AGGRO'),
+-(-1531009,'I sentence you to death!',8647,1,0,'sartura SAY_SLAY'),
+-(-1531010,'I serve to the last!',8648,1,0,'sartura SAY_DEATH'),
+-
+-(-1531011,'is weakened!',0,2,0,'cthun EMOTE_WEAKENED');
+-
+--- -1 532 000 KARAZHAN
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1532000,'Well done Midnight!',9173,1,0,'attumen SAY_MIDNIGHT_KILL'),
+-(-1532001,'Cowards! Wretches!',9167,1,0,'attumen SAY_APPEAR1'),
+-(-1532002,'Who dares attack the steed of the Huntsman?',9298,1,0,'attumen SAY_APPEAR2'),
+-(-1532003,'Perhaps you would rather test yourselves against a more formidable opponent?!',9299,1,0,'attumen SAY_APPEAR3'),
+-(-1532004,'Come, Midnight, let\'s disperse this petty rabble!',9168,1,0,'attumen SAY_MOUNT'),
+-(-1532005,'It was... inevitable.',9169,1,0,'attumen SAY_KILL1'),
+-(-1532006,'Another trophy to add to my collection!',9300,1,0,'attumen SAY_KILL2'),
+-(-1532007,'Weapons are merely a convenience for a warrior of my skill!',9166,1,0,'attumen SAY_DISARMED'),
+-(-1532008,'I always knew... someday I would become... the hunted.',9165,1,0,'attumen SAY_DEATH'),
+-(-1532009,'Such easy sport.',9170,1,0,'attumen SAY_RANDOM1'),
+-(-1532010,'Amateurs! Do not think you can best me! I kill for a living.',9304,1,0,'attumen SAY_RANDOM2'),
+-
+-(-1532011,'Hmm, unannounced visitors? Preparations must be made.',9211,1,0,'moroes SAY_AGGRO'),
+-(-1532012,'Now, where was I? Oh yes...',9215,1,0,'moroes SAY_SPECIAL_1'),
+-(-1532013,'You rang?',9316,1,0,'moroes SAY_SPECIAL_2'),
+-(-1532014,'One more for dinner this evening.',9214,1,0,'moroes SAY_KILL_1'),
+-(-1532015,'Time... Never enough time.',9314,1,0,'moroes SAY_KILL_2'),
+-(-1532016,'I\'ve gone and made a mess.',9315,1,0,'moroes SAY_KILL_3'),
+-(-1532017,'How terribly clumsy of me...',9213,1,0,'moroes SAY_DEATH'),
+-
+-(-1532018,'Your behavior will not be tolerated!',9204,1,0,'maiden SAY_AGGRO'),
+-(-1532019,'Ah ah ah...',9207,1,0,'maiden SAY_SLAY1'),
+-(-1532020,'This is for the best.',9312,1,0,'maiden SAY_SLAY2'),
+-(-1532021,'Impure thoughts lead to profane actions.',9311,1,0,'maiden SAY_SLAY3'),
+-(-1532022,'Cast out your corrupt thoughts.',9313,1,0,'maiden SAY_REPENTANCE1'),
+-(-1532023,'Your impurity must be cleansed.',9208,1,0,'maiden SAY_REPENTANCE2'),
+-(-1532024,'Death comes. Will your conscience be clear?',9206,1,0,'maiden SAY_DEATH'),
+-
+-(-1532025,'Oh at last, at last. I can go home.',9190,1,0,'dorothee SAY_DOROTHEE_DEATH'),
+-(-1532026,'Don\'t let them hurt us, Tito! Oh, you won\'t, will you?',9191,1,0,'dorothee SAY_DOROTHEE_SUMMON'),
+-(-1532027,'Tito, oh Tito, no!',9192,1,0,'dorothee SAY_DOROTHEE_TITO_DEATH'),
+-(-1532028,'Oh dear, we simply must find a way home! The old wizard could be our only hope! Strawman, Roar, Tinhead, will you... wait! Oh golly, look! We have visitors!',9195,1,0,'dorothee SAY_DOROTHEE_AGGRO'),
+-
+-(-1532029,'Wanna fight? Huh? Do ya? C\'mon, I\'ll fight you with both claws behind my back!',9227,1,0,'roar SAY_ROAR_AGGRO'),
+-(-1532030,'You didn\'t have to go and do that.',9229,1,0,'roar SAY_ROAR_DEATH'),
+-(-1532031,'I think I\'m going to go take fourty winks.',9230,1,0,'roar SAY_ROAR_SLAY'),
+-
+-(-1532032,'Now what should I do with you? I simply can\'t make up my mind.',9254,1,0,'strawman SAY_STRAWMAN_AGGRO'),
+-(-1532033,'Don\'t let them make a mattress... out of me.',9256,1,0,'strawman SAY_STRAWMAN_DEATH'),
+-(-1532034,'I guess I\'m not a failure after all.',9257,1,0,'strawman SAY_STRAWMAN_SLAY'),
+-
+-(-1532035,'I could really use a heart. Say, can I have yours?',9268,1,0,'tinhead SAY_TINHEAD_AGGRO'),
+-(-1532036,'Back to being an old rustbucket.',9270,1,0,'tinhead SAY_TINHEAD_DEATH'),
+-(-1532037,'Guess I\'m not so rusty, after all.',9271,1,0,'tinhead SAY_TINHEAD_SLAY'),
+-(-1532038,'begins to rust.',0,2,0,'tinhead EMOTE_RUST'),
+-
+-(-1532039,'Woe to each and every one of you my pretties! ',9179,1,0,'crone SAY_CRONE_AGGRO'),
+-(-1532040,'It will all be over soon! ',9307,1,0,'crone SAY_CRONE_AGGRO2'),
+-(-1532041,'How could you? What a cruel, cruel world!',9178,1,0,'crone SAY_CRONE_DEATH'),
+-(-1532042,'Fixed you, didn\'t I? ',9180,1,0,'crone SAY_CRONE_SLAY'),
+-
+-(-1532043,'All the better to own you with!',9276,1,0,'wolf SAY_WOLF_AGGRO'),
+-(-1532044,'Mmmm... delicious.',9277,1,0,'wolf SAY_WOLF_SLAY'),
+-(-1532045,'Run away little girl, run away!',9278,1,0,'wolf SAY_WOLF_HOOD'),
+-
+-(-1532046,'What devil art thou, that dost torment me thus?',9196,1,0,'julianne SAY_JULIANNE_AGGRO'),
+-(-1532047,'Where is my lord? Where is my Romulo?',9199,1,0,'julianne SAY_JULIANNE_ENTER'),
+-(-1532048,'Romulo, I come! Oh... this do I drink to thee!',9198,1,0,'julianne SAY_JULIANNE_DEATH01'),
+-(-1532049,'Where is my Lord? Where is my Romulo? Ohh, happy dagger! This is thy sheath! There rust, and let me die!',9310,1,0,'julianne SAY_JULIANNE_DEATH02'),
+-(-1532050,'Come, gentle night; and give me back my Romulo!',9200,1,0,'julianne SAY_JULIANNE_RESURRECT'),
+-(-1532051,'Parting is such sweet sorrow.',9201,1,0,'julianne SAY_JULIANNE_SLAY'),
+-
+-(-1532052,'Wilt thou provoke me? Then have at thee, boy!',9233,1,0,'romulo SAY_ROMULO_AGGRO'),
+-(-1532053,'Thou smilest... upon the stroke that... murders me.',9235,1,0,'romulo SAY_ROMULO_DEATH'),
+-(-1532054,'This day\'s black fate on more days doth depend. This but begins the woe. Others must end.',9236,1,0,'romulo SAY_ROMULO_ENTER'),
+-(-1532055,'Thou detestable maw, thou womb of death; I enforce thy rotten jaws to open!',9237,1,0,'romulo SAY_ROMULO_RESURRECT'),
+-(-1532056,'How well my comfort is revived by this!',9238,1,0,'romulo SAY_ROMULO_SLAY'),
+-
+-(-1532057,'The Menagerie is for guests only.',9183,1,0,'curator SAY_AGGRO'),
+-(-1532058,'Gallery rules will be strictly enforced.',9188,1,0,'curator SAY_SUMMON1'),
+-(-1532059,'This curator is equipped for gallery protection.',9309,1,0,'curator SAY_SUMMON2'),
+-(-1532060,'Your request cannot be processed.',9186,1,0,'curator SAY_EVOCATE'),
+-(-1532061,'Failure to comply will result in offensive action.',9185,1,0,'curator SAY_ENRAGE'),
+-(-1532062,'Do not touch the displays.',9187,1,0,'curator SAY_KILL1'),
+-(-1532063,'You are not a guest.',9308,1,0,'curator SAY_KILL2'),
+-(-1532064,'This Curator is no longer op... er... ation... al.',9184,1,0,'curator SAY_DEATH'),
+-
+-(-1532065,'Your blood will anoint my circle.',9264,1,0,'terestian SAY_SLAY1'),
+-(-1532066,'The great one will be pleased.',9329,1,0,'terestian SAY_SLAY2'),
+-(-1532067,'My life, is yours. Oh great one.',9262,1,0,'terestian SAY_DEATH'),
+-(-1532068,'Ah, you\'re just in time. The rituals are about to begin.',9260,1,0,'terestian SAY_AGGRO'),
+-(-1532069,'Please, accept this humble offering, oh great one.',9263,1,0,'terestian SAY_SACRIFICE1'),
+-(-1532070,'Let the sacrifice serve his testament to my fealty.',9330,1,0,'terestian SAY_SACRIFICE2'),
+-(-1532071,'Come, you dwellers in the dark. Rally to my call!',9265,1,0,'terestian SAY_SUMMON1'),
+-(-1532072,'Gather, my pets. There is plenty for all.',9331,1,0,'terestian SAY_SUMMON2'),
+-
+-(-1532073,'Please, no more. My son... he\'s gone mad!',9241,1,0,'aran SAY_AGGRO1'),
+-(-1532074,'I\'ll not be tortured again!',9323,1,0,'aran SAY_AGGRO2'),
+-(-1532075,'Who are you? What do you want? Stay away from me!',9324,1,0,'aran SAY_AGGRO3'),
+-(-1532076,'I\'ll show you this beaten dog still has some teeth!',9245,1,0,'aran SAY_FLAMEWREATH1'),
+-(-1532077,'Burn you hellish fiends!',9326,1,0,'aran SAY_FLAMEWREATH2'),
+-(-1532078,'I\'ll freeze you all!',9246,1,0,'aran SAY_BLIZZARD1'),
+-(-1532079,'Back to the cold dark with you!',9327,1,0,'aran SAY_BLIZZARD2'),
+-(-1532080,'Yes, yes, my son is quite powerful... but I have powers of my own!',9242,1,0,'aran SAY_EXPLOSION1'),
+-(-1532081,'I am not some simple jester! I am Nielas Aran!',9325,1,0,'aran SAY_EXPLOSION2'),
+-(-1532082,'Surely you would not deny an old man a replenishing drink? No, no I thought not.',9248,1,0,'aran SAY_DRINK'),
+-(-1532083,'I\'m not finished yet! No, I have a few more tricks up me sleeve.',9251,1,0,'aran SAY_ELEMENTALS'),
+-(-1532084,'I want this nightmare to be over!',9250,1,0,'aran SAY_KILL1'),
+-(-1532085,'Torment me no more!',9328,1,0,'aran SAY_KILL2'),
+-(-1532086,'You\'ve wasted enough of my time. Let these games be finished!',9247,1,0,'aran SAY_TIMEOVER'),
+-(-1532087,'At last... The nightmare is.. over...',9244,1,0,'aran SAY_DEATH'),
+-(-1532088,'Where did you get that?! Did HE send you?!',9249,1,0,'aran SAY_ATIESH'),
+-
+-(-1532089,'cries out in withdrawal, opening gates to the warp.',0,2,0,'netherspite EMOTE_PHASE_PORTAL'),
+-(-1532090,'goes into a nether-fed rage!',0,2,0,'netherspite EMOTE_PHASE_BANISH'),
+-
+-(-1532091,'Madness has brought you here to me. I shall be your undoing!',9218,1,0,'malchezaar SAY_AGGRO'),
+-(-1532092,'Simple fools! Time is the fire in which you\'ll burn!',9220,1,0,'malchezaar SAY_AXE_TOSS1'),
+-(-1532093,'I see the subtlety of conception is beyond primitives such as you.',9317,1,0,'malchezaar SAY_AXE_TOSS2'),
+-(-1532094,'Who knows what secrets hide in the dark.',9223,1,0,'malchezaar SAY_SPECIAL1'),
+-(-1532095,'The cerestial forces are mine to manipulate.',9320,1,0,'malchezaar SAY_SPECIAL2'),
+-(-1532096,'How can you hope to withstand against such overwhelming power?',9321,1,0,'malchezaar SAY_SPECIAL3'),
+-(-1532097,'Surely you did not think you could win.',9222,1,0,'malchezaar SAY_SLAY1'),
+-(-1532098,'Your greed, your foolishness has brought you to this end.',9318,1,0,'malchezaar SAY_SLAY2'),
+-(-1532099,'You are, but a plaything, unfit even to amuse.',9319,1,0,'malchezaar SAY_SLAY3'),
+-(-1532100,'All realities, all dimensions are open to me!',9224,1,0,'malchezaar SAY_SUMMON1'),
+-(-1532101,'You face not Malchezaar alone, but the legions I command!',9322,1,0,'malchezaar SAY_SUMMON2'),
+-(-1532102,'I refuse to concede defeat. I am a prince of the Eredar! I am...',9221,1,0,'malchezaar SAY_DEATH');
+-
+--- -1 533 000 NAXXRAMAS
+-
+--- -1 534 000 THE BATTLE OF MT. HYJAL
+-
+--- -1 540 000 SHATTERED HALLS
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1540000,'You wish to fight us all at once? This should be amusing!',10262,1,0,'nethekurse SAY_INTRO'),
+-(-1540001,'You can have that one. I no longer need him.',10263,1,0,'nethekurse PEON_ATTACK_1'),
+-(-1540002,'Yes, beat him mercilessly. His skull is a thick as an ogres.',10264,1,0,'nethekurse PEON_ATTACK_2'),
+-(-1540003,'Don\'t waste your time on that one. He\'s weak!',10265,1,0,'nethekurse PEON_ATTACK_3'),
+-(-1540004,'You want him? Very well, take him!',10266,1,0,'nethekurse PEON_ATTACK_4'),
+-(-1540005,'One pitiful wretch down. Go on, take another one.',10267,1,0,'nethekurse PEON_DIE_1'),
+-(-1540006,'Ahh, what a waste... Next!',10268,1,0,'nethekurse PEON_DIE_2'),
+-(-1540007,'I was going to kill him anyway!',10269,1,0,'nethekurse PEON_DIE_3'),
+-(-1540008,'Thank you for saving me the trouble! Now it\'s my turn to have some fun...',10270,1,0,'nethekurse PEON_DIE_4'),
+-(-1540009,'Beg for your pittyfull life!',10259,1,0,'nethekurse SAY_TAUNT_1'),
+-(-1540010,'Run covad, ruun!',10260,1,0,'nethekurse SAY_TAUNT_2'),
+-(-1540011,'Your pain amuses me.',10261,1,0,'nethekurse SAY_TAUNT_3'),
+-(-1540012,'I\'m already bored.',10271,1,0,'nethekurse SAY_AGGRO_1'),
+-(-1540013,'Come on! ... Show me a real fight.',10272,1,0,'nethekurse SAY_AGGRO_2'),
+-(-1540014,'I had more fun torturing the peons.',10273,1,0,'nethekurse SAY_AGGRO_3'),
+-(-1540015,'You Loose.',10274,1,0,'nethekurse SAY_SLAY_1'),
+-(-1540016,'Ohh! Just die.',10275,1,0,'nethekurse SAY_SLAY_2'),
+-(-1540017,'What a ... a shame.',10276,1,0,'nethekurse SAY_DIE'),
+-
+-(-1540018,'Smash!',10306,1,0,'omrogg GoCombat_1'),
+-(-1540019,'If you nice me let you live.',10308,1,0,'omrogg GoCombat_2'),
+-(-1540020,'Me hungry!',10309,1,0,'omrogg GoCombat_3'),
+-(-1540021,'Why don\'t you let me do the talking?',10317,1,0,'omrogg GoCombatDelay_1'),
+-(-1540022,'No, we will NOT let you live!',10318,1,0,'omrogg GoCombatDelay_2'),
+-(-1540023,'You always hungry. That why we so fat!',10319,1,0,'omrogg GoCombatDelay_3'),
+-(-1540024,'You stay here. Me go kill someone else!',10303,1,0,'omrogg Threat_1'),
+-(-1540025,'What are you doing!',10315,1,0,'omrogg Threat_2'),
+-(-1540026,'Me kill someone else...',10302,1,0,'omrogg Threat_3'),
+-(-1540027,'Me not like this one...',10300,1,0,'omrogg Threat_4'),
+-(-1540028,'That\'s not funny!',10314,1,0,'omrogg ThreatDelay1_1'),
+-(-1540029,'Me get bored...',10305,1,0,'omrogg ThreatDelay1_2'),
+-(-1540030,'I\'m not done yet, idiot!',10313,1,0,'omrogg ThreatDelay1_3'),
+-(-1540031,'Hey you numbskull!',10312,1,0,'omrogg ThreatDelay1_4'),
+-(-1540032,'Ha ha ha.',10304,1,0,'omrogg ThreatDelay2_1'),
+-(-1540033,'Whhy! He almost dead!',10316,1,0,'omrogg ThreatDelay2_2'),
+-(-1540034,'H\'ey...',10307,1,0,'omrogg ThreatDelay2_3'),
+-(-1540035,'We kill his friend!',10301,1,0,'omrogg ThreatDelay2_4'),
+-(-1540036,'This one die easy!',10310,1,0,'omrogg Killing_1'),
+-(-1540037,'I\'m tired. You kill next one!',10320,1,0,'omrogg Killing_2'),
+-(-1540038,'That\'s because I do all the hard work!',10321,1,0,'omrogg KillingDelay_1'),
+-(-1540039,'This all...your fault!',10311,1,0,'omrogg YELL_DIE_L'),
+-(-1540040,'I...hate...you...',10322,1,0,'omrogg YELL_DIE_R'),
+-(-1540041,'enrages',0,2,0,'omrogg EMOTE_ENRAGE');
+-
+--- -1 542 000 BLOOD FURNACE
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1542000,'Who dares interrupt... What is this? What have you done? You ruin everything!',10164,1,0,'kelidan SAY_WAKE'),
+-(-1542001,'You mustn\'t let him loose!',10166,1,0,'kelidan SAY_ADD_AGGRO_1'),
+-(-1542002,'Ignorant whelps!',10167,1,0,'kelidan SAY_ADD_AGGRO_2'),
+-(-1542003,'You fools! He\'ll kill us all!',10168,1,0,'kelidan SAY_ADD_AGGRO_3'),
+-(-1542004,'Just as you deserve!',10169,1,0,'kelidan SAY_KILL_1'),
+-(-1542005,'Your friends will soon be joining you.',10170,1,0,'kelidan SAY_KILL_2'),
+-(-1542006,'Closer... Come closer.. and burn!',10165,1,0,'kelidan SAY_NOVA'),
+-(-1542007,'Good luck... you\'ll need it..',10171,1,0,'kelidan SAY_DIE'),
+-
+-(-1542008,'Come intruders....',0,1,0,'broggok SAY_AGGRO'),
+-
+-(-1542009,'My work must not be interrupted.',10286,1,0,'the_maker SAY_AGGRO_1'),
+-(-1542010,'Perhaps I can find a use for you.',10287,1,0,'the_maker SAY_AGGRO_2'),
+-(-1542011,'Anger... Hate... These are tools I can use.',10288,1,0,'the_maker SAY_AGGRO_3'),
+-(-1542012,'Let\'s see what I can make of you.',10289,1,0,'the_maker SAY_KILL_1'),
+-(-1542013,'It is pointless to resist.',10290,1,0,'the_maker SAY_KILL_2'),
+-(-1542014,'Stay away from... me.',10291,1,0,'the_maker SAY_DIE');
+-
+--- -1 543 000 HELLFIRE RAMPARTS
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1543000,'Do you smell that? Fresh meat has somehow breached our citadel. Be wary of any intruders.',0,1,0,'gargolmar SAY_TAUNT'),
+-(-1543001,'Heal me! QUICKLY!',10329,1,0,'gargolmar SAY_HEAL'),
+-(-1543002,'Back off, pup!',10330,1,0,'gargolmar SAY_SURGE'),
+-(-1543003,'What have we here...?',10331,1,0,'gargolmar SAY_AGGRO_1'),
+-(-1543004,'Heh... this may hurt a little.',10332,1,0,'gargolmar SAY_AGGRO_2'),
+-(-1543005,'I\'m gonna enjoy this.',10333,1,0,'gargolmar SAY_AGGRO_3'),
+-(-1543006,'Say farewell!',10334,1,0,'gargolmar SAY_KILL_1'),
+-(-1543007,'Much too easy...',10335,1,0,'gargolmar SAY_KILL_2'),
+-(-1543008,'Hahah.. ..argh!',10336,1,0,'gargolmar SAY_DIE'),
+-
+-(-1543009,'You dare stand against me?!',10280,1,0,'omor SAY_AGGRO_1'),
+-(-1543010,'I will not be defeated!',10279,1,0,'omor SAY_AGGRO_2'),
+-(-1543011,'Your insolence will be your death.',10281,1,0,'omor SAY_AGGRO_3'),
+-(-1543012,'Achor-she-ki! Feast my pet! Eat your fill!',10277,1,0,'omor SAY_SUMMON'),
+-(-1543013,'A-Kreesh!',10278,1,0,'omor SAY_CURSE'),
+-(-1543014,'Die, weakling!',10282,1,0,'omor SAY_KILL_1'),
+-(-1543015,'It is... not over.',10284,1,0,'omor SAY_DIE'),
+-(-1543016,'I am victorious!',10283,1,0,'omor SAY_WIPE');
+-
+--- -1 544 000 MAGTHERIDON'S LAIR
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1544000,'Wretched, meddling insects. Release me and perhaps i will grant you a merciful death!',10247,1,0,'magtheridon SAY_TAUNT1'),
+-(-1544001,'Vermin! Leeches! Take my blood and choke on it!',10248,1,0,'magtheridon SAY_TAUNT2'),
+-(-1544002,'Illidan is an arrogant fool. I will crush him and reclaim Outland as my own.',10249,1,0,'magtheridon SAY_TAUNT3'),
+-(-1544003,'Away, you mindless parasites. My blood is my own!',10250,1,0,'magtheridon SAY_TAUNT4'),
+-(-1544004,'How long do you believe your pathetic sorcery can hold me?',10251,1,0,'magtheridon SAY_TAUNT5'),
+-(-1544005,'My blood will be the end of you!',10252,1,0,'magtheridon SAY_TAUNT6'),
+-(-1544006,'I...am...UNLEASHED!!!',10253,1,0,'magtheridon SAY_FREED'),
+-(-1544007,'Thank you for releasing me. Now...die!',10254,1,0,'magtheridon SAY_AGGRO'),
+-(-1544008,'Not again...NOT AGAIN!',10256,1,0,'magtheridon SAY_BANISH'),
+-(-1544009,'I will not be taken so easily. Let the walls of this prison tremble...and FALL!!!',10257,1,0,'magtheridon SAY_CHAMBER_DESTROY'),
+-(-1544010,'Did you think me weak? Soft? Who is the weak one now?!',10255,1,0,'magtheridon SAY_PLAYER_KILLED'),
+-(-1544011,'The Legion...will consume you...all...',10258,1,0,'magtheridon SAY_DEATH'),
+-(-1544012,'becomes enraged!',0,2,0,'magtheridon EMOTE_BERSERK'),
+-(-1544013,'begins to cast Blast Nova!',0,2,0,'magtheridon EMOTE_BLASTNOVA'),
+-(-1544014,'bonds begin to weaken!',0,2,0,'magtheridon EMOTE_BEGIN');
+-
+--- -1 545 000 THE STEAMVAULT
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1545000,'Surge forth my pets!',10360,1,0,'thespia SAY_SUMMON'),
+-(-1545001,'The depths will consume you!',10361,1,0,'thespia SAY_AGGRO_1'),
+-(-1545002,'Meet your doom, surface dwellers!',10362,1,0,'thespia SAY_AGGRO_2'),
+-(-1545003,'You will drown in blood!',10363,1,0,'thespia SAY_AGGRO_3'),
+-(-1545004,'To the depths of oblivion with you!',10364,1,0,'thespia SAY_SLAY_1'),
+-(-1545005,'For my lady and master!',10365,1,0,'thespia SAY_SLAY_2'),
+-(-1545006,'Our matron will be.. the end of.. you..',10366,1,0,'thespia SAY_DEAD'),
+-
+-(-1545007,'I\'m bringin\' the pain!',10367,1,0,'mekgineer SAY_MECHANICS'),
+-(-1545008,'You\'re in for a world of hurt!',10368,1,0,'mekgineer SAY_AGGRO_1'),
+-(-1545009,'Eat hot metal, scumbag!',10369,1,0,'mekgineer SAY_AGGRO_2'),
+-(-1545010,'I\'ll come over there!',10370,1,0,'mekgineer SAY_AGGRO_3'),
+-(-1545011,'I\'m bringin\' the pain!',10371,1,0,'mekgineer SAY_AGGRO_4'),
+-(-1545012,'You just got served, punk!',10372,1,0,'mekgineer SOUND_SLAY_1'),
+-(-1545013,'I own you!',10373,1,0,'mekgineer SOUND_SLAY_2'),
+-(-1545014,'Have fun dyin\', cupcake!',10374,1,0,'mekgineer SOUND_SLAY_3'),
+-(-1545015,'Mommy!',10375,1,0,'mekgineer SAY_DEATH'),
+-
+-(-1545016,'You deem yourselves worthy simply because you bested my guards? Our work here will not be compromised!',10390,1,0,'kalithresh SAY_INTRO'),
+-(-1545017,'This is not nearly over...',10391,1,0,'kalithresh SAY_REGEN'),
+-(-1545018,'Your head will roll!',10392,1,0,'kalithresh SAY_AGGRO1'),
+-(-1545019,'I despise all of your kind!',10393,1,0,'kalithresh SAY_AGGRO2'),
+-(-1545020,'Ba\'ahntha sol\'dorei!',10394,1,0,'kalithresh SAY_AGGRO3'),
+-(-1545021,'Scram, surface filth!',10395,1,0,'kalithresh SAY_SLAY1'),
+-(-1545022,'Ah ha ha ha ha ha ha!',10396,1,0,'kalithresh SAY_SLAY2'),
+-(-1545023,'For her Excellency... for... Vashj!',10397,1,0,'kalithresh SAY_DEATH');
+-
+--- -1 546 000 THE UNDERBOG
+-
+--- -1 547 000 THE SLAVE PENS
+-
+--- -1 548 000 SERPENTSHRINE CAVERN
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1548000,'I cannot allow you to interfere!',11289,1,0,'hydross SAY_AGGRO'),
+-(-1548001,'Better, much better.',11290,1,0,'hydross SAY_SWITCH_TO_CLEAN'),
+-(-1548002,'They have forced me to this...',11291,1,0,'hydross SAY_CLEAN_SLAY1'),
+-(-1548003,'I have no choice.',11292,1,0,'hydross SAY_CLEAN_SLAY2'),
+-(-1548004,'I am... released...',11293,1,0,'hydross SAY_CLEAN_DEATH'),
+-(-1548005,'Aaghh, the poison...',11297,1,0,'hydross SAY_SWITCH_TO_CORRUPT'),
+-(-1548006,'I will purge you from this place.',11298,1,0,'hydross SAY_CORRUPT_SLAY1'),
+-(-1548007,'You are no better than they!',11299,1,0,'hydross SAY_CORRUPT_SLAY2'),
+-(-1548008,'You are the disease, not I',11300,1,0,'hydross SAY_CORRUPT_DEATH'),
+-
+-(-1548009,'Finally my banishment ends!',11312,1,0,'leotheras SAY_AGGRO'),
+-(-1548010,'Be gone trifling elf. I\'m in control now.',11304,1,0,'leotheras SAY_SWITCH_TO_DEMON'),
+-(-1548011,'We all have our demons...',11305,1,0,'leotheras SAY_INNER_DEMONS'),
+-(-1548012,'I have no equal.',11306,1,0,'leotheras SAY_DEMON_SLAY1'),
+-(-1548013,'Perish, mortal.',11307,1,0,'leotheras SAY_DEMON_SLAY2'),
+-(-1548014,'Yes, YES! Ahahah!',11308,1,0,'leotheras SAY_DEMON_SLAY3'),
+-(-1548015,'Kill! KILL!',11314,1,0,'leotheras SAY_NIGHTELF_SLAY1'),
+-(-1548016,'That\'s right! Yes!',11315,1,0,'leotheras SAY_NIGHTELF_SLAY2'),
+-(-1548017,'Who\'s the master now?',11316,1,0,'leotheras SAY_NIGHTELF_SLAY3'),
+-(-1548018,'No! NO! What have you done?! I am the master, do you hear me? I... aaghh... Can\'t... contain him...',11313,1,0,'leotheras SAY_FINAL_FORM'),
+-(-1548019,'At last I am liberated. It has been too long since I have tasted true freedom!',11309,1,0,'leotheras SAY_FREE'),
+-(-1548020,'You cannot kill me! Fools, I\'ll be back! I\'ll... aarghh...',11317,1,0,'leotheras SAY_DEATH'),
+-
+-(-1548021,'Guards, attention! We have visitors...',11277,1,0,'karathress SAY_AGGRO'),
+-(-1548022,'Your overconfidence will be your undoing! Guards, lend me your strength!',11278,1,0,'karathress SAY_GAIN_BLESSING'),
+-(-1548023,'Go on, kill them! I\'ll be the better for it!',11279,1,0,'karathress SAY_GAIN_ABILITY1'),
+-(-1548024,'I am more powerful than ever!',11280,1,0,'karathress SAY_GAIN_ABILITY2'),
+-(-1548025,'More knowledge, more power!',11281,1,0,'karathress SAY_GAIN_ABILITY3'),
+-(-1548026,'Land-dwelling scum!',11282,1,0,'karathress SAY_SLAY1'),
+-(-1548027,'Alana be\'lendor!',11283,1,0,'karathress SAY_SLAY2'),
+-(-1548028,'I am rid of you.',11284,1,0,'karathress SAY_SLAY3'),
+-(-1548029,'Her ... excellency ... awaits!',11285,1,0,'karathress SAY_DEATH'),
+-
+-(-1548030,'Flood of the deep, take you!',11321,1,0,'morogrim SAY_AGGRO'),
+-(-1548031,'By the Tides, kill them at once!',11322,1,0,'morogrim SAY_SUMMON1'),
+-(-1548032,'Destroy them my subjects!',11323,1,0,'morogrim SAY_SUMMON2'),
+-(-1548033,'There is nowhere to hide!',11324,1,0,'morogrim SAY_SUMMON_BUBL1'),
+-(-1548034,'Soon it will be finished!',11325,1,0,'morogrim SAY_SUMMON_BUBL2'),
+-(-1548035,'It is done!',11326,1,0,'morogrim SAY_SLAY1'),
+-(-1548036,'Strugging only makes it worse.',11327,1,0,'morogrim SAY_SLAY2'),
+-(-1548037,'Only the strong survive.',11328,1,0,'morogrim SAY_SLAY3'),
+-(-1548038,'Great... currents of... Ageon.',11329,1,0,'morogrim SAY_DEATH'),
+-(-1548039,'sends his enemies to their watery graves!',0,2,0,'morogrim EMOTE_WATERY_GRAVE'),
+-(-1548040,'The violent earthquake has alerted nearby murlocs!',0,3,0,'morogrim EMOTE_EARTHQUAKE'),
+-(-1548041,'summons Watery Globules!',0,2,0,'morogrim EMOTE_WATERY_GLOBULES'),
+-
+-(-1548042,'Water is life. It has become a rare commodity here in Outland. A commodity that we alone shall control. We are the Highborne, and the time has come at last for us to retake our rightful place in the world!',11531,1,0,'vashj SAY_INTRO'),
+-(-1548043,'I\'ll split you from stem to stern!',11532,1,0,'vashj SAY_AGGRO1'),
+-(-1548044,'Victory to Lord Illidan!',11533,1,0,'vashj SAY_AGGRO2'),
+-(-1548045,'I spit on you, surface filth!',11534,1,0,'vashj SAY_AGGRO3'),
+-(-1548046,'Death to the outsiders!',11535,1,0,'vashj SAY_AGGRO4'),
+-(-1548047,'I did not wish to lower myself by engaging your kind, but you leave me little choice!',11538,1,0,'vashj SAY_PHASE1'),
+-(-1548048,'The time is now! Leave none standing!',11539,1,0,'vashj SAY_PHASE2'),
+-(-1548049,'You may want to take cover.',11540,1,0,'vashj SAY_PHASE3'),
+-(-1548050,'Straight to the heart!',11536,1,0,'vashj SAY_BOWSHOT1'),
+-(-1548051,'Seek your mark!',11537,1,0,'vashj SAY_BOWSHOT2'),
+-(-1548052,'Your time ends now!',11541,1,0,'vashj SAY_SLAY1'),
+-(-1548053,'You have failed!',11542,1,0,'vashj SAY_SLAY2'),
+-(-1548054,'Be\'lamere an\'delay',11543,1,0,'vashj SAY_SLAY3'),
+-(-1548055,'Lord Illidan, I... I am... sorry.',11544,1,0,'vashj SAY_DEATH');
+-
+--- -1 550 000 THE EYE
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1550000,'Alert, you are marked for extermination!',11213,1,0,'voidreaver SAY_AGGRO'),
+-(-1550001,'Extermination, successful.',11215,1,0,'voidreaver SAY_SLAY1'),
+-(-1550002,'Imbecile life form, no longer functional.',11216,1,0,'voidreaver SAY_SLAY2'),
+-(-1550003,'Threat neutralized.',11217,1,0,'voidreaver SAY_SLAY3'),
+-(-1550004,'Systems... shutting... down...',11214,1,0,'voidreaver SAY_DEATH'),
+-(-1550005,'Alternative measure commencing...',11218,1,0,'voidreaver SAY_POUNDING1'),
+-(-1550006,'Calculating force parameters...',11219,1,0,'voidreaver SAY_POUNDING2'),
+-
+-(-1550007,'Tal anu\'men no Sin\'dorei!',11134,1,0,'solarian SAY_AGGRO'),
+-(-1550008,'Ha ha ha! You are hopelessly outmatched!',11139,1,0,'solarian SAY_SUMMON1'),
+-(-1550009,'I will crush your delusions of grandeur!',11140,1,0,'solarian SAY_SUMMON2'),
+-(-1550010,'Your soul belongs to the Abyss!',11136,1,0,'solarian SAY_KILL1'),
+-(-1550011,'By the blood of the Highborne!',11137,1,0,'solarian SAY_KILL2'),
+-(-1550012,'For the Sunwell!',11138,1,0,'solarian SAY_KILL3'),
+-(-1550013,'The warmth of the sun... awaits.',11135,1,0,'solarian SAY_DEATH'),
+-(-1550014,'Enough of this! Now I call upon the fury of the cosmos itself.',0,1,0,'solarian SAY_VOIDA'),
+-(-1550015,'I become ONE... with the VOID!',0,1,0,'solarian SAY_VOIDB'),
+-
+-(-1550016,'Energy. Power. My people are addicted to it... a dependence made manifest after the Sunwell was destroyed. Welcome... to the future. A pity you are too late to stop it. No one can stop me now! Selama ashal\'anore!',11256,1,0,'kaelthas SAY_INTRO'),
+-(-1550017,'Capernian will see to it that your stay here is a short one.',11257,1,0,'kaelthas SAY_INTRO_CAPERNIAN'),
+-(-1550018,'Well done, you have proven worthy to test your skills against my master engineer, Telonicus.',11258,1,0,'kaelthas SAY_INTRO_TELONICUS'),
+-(-1550019,'Let us see how your nerves hold up against the Darkener, Thaladred.',11259,1,0,'kaelthas SAY_INTRO_THALADRED'),
+-(-1550020,'You have persevered against some of my best advisors... but none can withstand the might of the Blood Hammer. Behold, Lord Sanguinar!',11260,1,0,'kaelthas SAY_INTRO_SANGUINAR'),
+-(-1550021,'As you see, I have many weapons in my arsenal...',11261,1,0,'kaelthas SAY_PHASE2_WEAPON'),
+-(-1550022,'Perhaps I underestimated you. It would be unfair to make you fight all four advisors at once, but... fair treatment was never shown to my people. I\'m just returning the favor.',11262,1,0,'kaelthas SAY_PHASE3_ADVANCE'),
+-(-1550023,'Alas, sometimes one must take matters into one\'s own hands. Balamore shanal!',11263,1,0,'kaelthas SAY_PHASE4_INTRO2'),
+-(-1550024,'I have not come this far to be stopped! The future I have planned will not be jeopardized! Now you will taste true power!!',11273,1,0,'kaelthas SAY_PHASE5_NUTS'),
+-(-1550025,'You will not prevail.',11270,1,0,'kaelthas SAY_SLAY1'),
+-(-1550026,'You gambled...and lost.',11271,1,0,'kaelthas SAY_SLAY2'),
+-(-1550027,'This was Child\'s play.',11272,1,0,'kaelthas SAY_SLAY3'),
+-(-1550028,'Obey me.',11268,1,0,'kaelthas SAY_MINDCONTROL1'),
+-(-1550029,'Bow to my will.',11269,1,0,'kaelthas SAY_MINDCONTROL2'),
+-(-1550030,'Let us see how you fare when your world is turned upside down.',11264,1,0,'kaelthas SAY_GRAVITYLAPSE1'),
+-(-1550031,'Having trouble staying grounded?',11265,1,0,'kaelthas SAY_GRAVITYLAPSE2'),
+-(-1550032,'Anara\'nel belore!',11267,1,0,'kaelthas SAY_SUMMON_PHOENIX1'),
+-(-1550033,'By the power of the sun!',11266,1,0,'kaelthas SAY_SUMMON_PHOENIX2'),
+-(-1550034,'For...Quel...thalas!',11274,1,0,'kaelthas SAY_DEATH'),
+-
+-(-1550035,'Prepare yourselves!',11203,1,0,'thaladred SAY_THALADRED_AGGRO'),
+-(-1550036,'Forgive me, my prince! I have... failed.',11204,1,0,'thaladred SAY_THALADRED_DEATH'),
+-(-1550037,'sets his gaze on $N!',0,2,0,'thaladred EMOTE_THALADRED_GAZE'),
+-
+-(-1550038,'Blood for blood!',11152,1,0,'sanguinar SAY_SANGUINAR_AGGRO'),
+-(-1550039,'NO! I ...will... not...',11153,1,0,'sanguinar SAY_SANGUINAR_DEATH'),
+-
+-(-1550040,'The sin\'dore reign supreme!',11117,1,0,'capernian SAY_CAPERNIAN_AGGRO'),
+-(-1550041,'This is not over!',11118,1,0,'capernian SAY_CAPERNIAN_DEATH'),
+-
+-(-1550042,'Anar\'alah belore!',11157,1,0,'telonicus SAY_TELONICUS_AGGRO'),
+-(-1550043,'More perils... await',11158,1,0,'telonicus SAY_TELONICUS_DEATH');
+-
+--- -1 552 000 THE ARCATRAZ
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1552000,'It is a small matter to control the mind of the weak... for I bear allegiance to powers untouched by time, unmoved by fate. No force on this world or beyond harbors the strength to bend our knee... not even the mighty Legion!',11122,1,0,'skyriss SAY_INTRO'),
+-(-1552001,'Bear witness to the agent of your demise!',11123,1,0,'skyriss SAY_AGGRO'),
+-(-1552002,'Your fate is written!',11124,1,0,'skyriss SAY_KILL_1'),
+-(-1552003,'The chaos I have sown here is but a taste...',11125,1,0,'skyriss SAY_KILL_2'),
+-(-1552004,'You will do my bidding, weakling.',11127,1,0,'skyriss SAY_MIND_1'),
+-(-1552005,'Your will is no longer your own.',11128,1,0,'skyriss SAY_MIND_2'),
+-(-1552006,'Flee in terror!',11129,1,0,'skyriss SAY_FEAR_1'),
+-(-1552007,'I will show you horrors undreamed of!',11130,1,0,'skyriss SAY_FEAR_2'),
+-(-1552008,'We span the universe, as countless as the stars!',11131,1,0,'skyriss SAY_IMAGE'),
+-(-1552009,'I am merely one of... infinite multitudes.',11126,1,0,'skyriss SAY_DEATH'),
+-
+-(-1552010,'Where in Bonzo\'s brass buttons am I? And who are-- yaaghh, that\'s one mother of a headache!',11171,1,0,'millhouse SAY_INTRO_1'),
+-(-1552011,'\"Lowly\"? I don\'t care who you are friend, no one refers to the mighty Millhouse Manastorm as \"Lowly\"! I have no idea what goes on here, but I will gladly join your fight against this impudent imbecile! Prepare to defend yourself, cretin!',11172,1,0,'millhouse SAY_INTRO_2'),
+-(-1552012,'I just need to get some things ready first. You guys go ahead and get started. I need to summon up some water...',11173,1,0,'millhouse SAY_WATER'),
+-(-1552013,'Fantastic! Next, some protective spells. Yes! Now we\'re cookin\'',11174,1,0,'millhouse SAY_BUFFS'),
+-(-1552014,'And of course i\'ll need some mana. You guys are gonna love this, just wait.',11175,1,0,'millhouse SAY_DRINK'),
+-(-1552015,'Aaalllriiiight!! Who ordered up an extra large can of whoop-ass?',11176,1,0,'millhouse SAY_READY'),
+-(-1552016,'I didn\'t even break a sweat on that one.',11177,1,0,'millhouse SAY_KILL_1'),
+-(-1552017,'You guys, feel free to jump in anytime.',11178,1,0,'millhouse SAY_KILL_2'),
+-(-1552018,'I\'m gonna light you up, sweet cheeks!',11179,1,0,'millhouse SAY_PYRO'),
+-(-1552019,'Ice, ice, baby!',11180,1,0,'millhouse SAY_ICEBLOCK'),
+-(-1552020,'Heal me! Oh, for the love of all that is holy, HEAL me! I\'m dying!',11181,1,0,'millhouse SAY_LOWHP'),
+-(-1552021,'You\'ll be hearing from my lawyer...',11182,1,0,'millhouse SAY_DEATH'),
+-(-1552022,'Who\'s bad? Who\'s bad? That\'s right: we bad!',11183,1,0,'millhouse SAY_COMPLETE'),
+-
+-(-1552023,'I knew the prince would be angry but, I... I have not been myself. I had to let them out! The great one speaks to me, you see. Wait--outsiders. Kael\'thas did not send you! Good... I\'ll just tell the prince you released the prisoners!',11222,1,0,'mellichar YELL_INTRO1'),
+-(-1552024,'The naaru kept some of the most dangerous beings in existence here in these cells. Let me introduce you to another...',11223,1,0,'mellichar YELL_INTRO2'),
+-(-1552025,'Yes, yes... another! Your will is mine!',11224,1,0,'mellichar YELL_RELEASE1'),
+-(-1552026,'Behold another terrifying creature of incomprehensible power!',11225,1,0,'mellichar YELL_RELEASE2A'),
+-(-1552027,'What is this? A lowly gnome? I will do better, O\'great one.',11226,1,0,'mellichar YELL_RELEASE2B'),
+-(-1552028,'Anarchy! Bedlam! Oh, you are so wise! Yes, I see it now, of course!',11227,1,0,'mellichar YELL_RELEASE3'),
+-(-1552029,'One final cell remains. Yes, O\'great one, right away!',11228,1,0,'mellichar YELL_RELEASE4'),
+-(-1552030,'Welcome, O\'great one. I am your humble servant.',11229,1,0,'mellichar YELL_WELCOME');
+-
+--- -1 553 000 THE BOTANICA
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1553000,'What are you doing? These specimens are very delicate!',11144,1,0,'freywinn SAY_AGGRO'),
+-(-1553001,'Your life cycle is now concluded!',11145,1,0,'freywinn SAY_KILL_1'),
+-(-1553002,'You will feed the worms.',11146,1,0,'freywinn SAY_KILL_2'),
+-(-1553003,'Endorel aluminor!',11147,1,0,'freywinn SAY_TREE_1'),
+-(-1553004,'Nature bends to my will!',11148,1,0,'freywinn SAY_TREE_2'),
+-(-1553005,'The specimens...must be preserved.',11149,1,0,'freywinn SAY_DEATH'),
+-
+-(-1553006,'emits a strange noise.',0,2,0,'laj EMOTE_SUMMON'),
+-
+-(-1553007,'Who disturbs this sanctuary?',11230,1,0,'warp SAY_AGGRO'),
+-(-1553008,'You must die! But wait: this does not--No, no... you must die!',11231,1,0,'warp SAY_SLAY_1'),
+-(-1553009,'What am I doing? Why do I...',11232,1,0,'warp SAY_SLAY_2'),
+-(-1553010,'Children, come to me!',11233,1,0,'warp SAY_SUMMON_1'),
+-(-1553011,'Maybe this is not--No, we fight! Come to my aid.',11234,1,0,'warp SAY_SUMMON_2'),
+-(-1553012,'So... confused. Do not... belong here!',11235,1,0,'warp SAY_DEATH');
+-
+--- -1 554 000 THE MECHANAR
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1554000,'I predict a painful death.',11101,1,0,'gyro SAY_AGGRO'),
+-(-1554001,'Measure twice; cut once!',11104,1,0,'gyro SAY_SAW_ATTACK1'),
+-(-1554002,'If my division is correct, you should be quite dead.',11105,1,0,'gyro SAY_SAW_ATTACK2'),
+-(-1554003,'Your strategy was flawed!',11102,1,0,'gyro SAY_SLAY1'),
+-(-1554004,'Yes, the only logical outcome.',11103,1,0,'gyro SAY_SLAY2'),
+-(-1554005,'An unforseen... contingency',11106,1,0,'gyro SAY_DEATH'),
+-
+-(-1554006,'You have approximately five seconds to live.',11109,1,0,'ironhand SAY_AGGRO_1'),
+-(-1554007,'With the precise angle and velocity...',11112,1,0,'ironhand SAY_HAMMER_1'),
+-(-1554008,'Low tech yet quiet effective!',11113,1,0,'ironhand SAY_HAMMER_2'),
+-(-1554009,'A foregone conclusion.',11110,1,0,'ironhand SAY_SLAY_1'),
+-(-1554010,'The processing will continue a schedule!',11111,1,0,'ironhand SAY_SLAY_2'),
+-(-1554011,'My calculations did not...',11114,1,0,'ironhand SAY_DEATH_1'),
+-(-1554012,'raises his hammer menacingly...',0,3,0,'ironhand EMOTE_HAMMER'),
+-
+-(-1554013,'Don\'t value your life very much, do you?',11186,1,0,'sepethrea SAY_AGGRO'),
+-(-1554014,'I am not alone.',11191,1,0,'sepethrea SAY_SUMMON'),
+-(-1554015,'Think you can take the heat?',11189,1,0,'sepethrea SAY_DRAGONS_BREATH_1'),
+-(-1554016,'Anar\'endal dracon!',11190,1,0,'sepethrea SAY_DRAGONS_BREATH_2'),
+-(-1554017,'And don\'t come back!',11187,1,0,'sepethrea SAY_SLAY1'),
+-(-1554018,'En\'dala finel el\'dal',11188,1,0,'sepethrea SAY_SLAY2'),
+-(-1554019,'Anu... bala belore...alon.',11192,1,0,'sepethrea SAY_DEATH'),
+-
+-(-1554020,'We are on a strict timetable. You will not interfere!',11193,1,0,'pathaleon SAY_AGGRO'),
+-(-1554021,'I\'m looking for a team player...',11197,1,0,'pathaleon SAY_DOMINATION_1'),
+-(-1554022,'You work for me now!',11198,1,0,'pathaleon SAY_DOMINATION_2'),
+-(-1554023,'Time to supplement my work force.',11196,1,0,'pathaleon SAY_SUMMON'),
+-(-1554024,'I prefeer to be hands-on...',11199,1,0,'pathaleon SAY_ENRAGE'),
+-(-1554025,'A minor inconvenience.',11194,1,0,'pathaleon SAY_SLAY_1'),
+-(-1554026,'Looks like you lose.',11195,1,0,'pathaleon SAY_SLAY_2'),
+-(-1554027,'The project will... continue.',11200,1,0,'pathaleon SAY_DEATH');
+-
+--- -1 555 000 SHADOW LABYRINTH
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1555000,'Infidels have invaded the sanctuary! Sniveling pests...You have yet to learn the true meaning of agony!',10473,1,0,'hellmaw SAY_INTRO'),
+-(-1555001,'Pathetic mortals! You will pay dearly!',10475,1,0,'hellmaw SAY_AGGRO1'),
+-(-1555002,'I will break you!',10476,1,0,'hellmaw SAY_AGGRO2'),
+-(-1555003,'Finally! Something to relieve the tedium!',10477,1,0,'hellmaw SAY_AGGRO3'),
+-(-1555004,'Aid me, you fools, before it\'s too late!',10474,1,0,'hellmaw SAY_HELP'),
+-(-1555005,'Do you fear death?',10478,1,0,'hellmaw SAY_SLAY1'),
+-(-1555006,'This is the part I enjoy most.',10479,1,0,'hellmaw SAY_SLAY2'),
+-(-1555007,'Do not...grow...overconfident, mortal.',10480,1,0,'hellmaw SAY_DEATH'),
+-
+-(-1555008,'All flesh must burn.',10482,1,0,'blackhearth SAY_INTRO1'),
+-(-1555009,'All creation must be unmade!',10483,1,0,'blackhearth SAY_INTRO2'),
+-(-1555010,'Power will be yours!',10484,1,0,'blackhearth SAY_INTRO3'),
+-(-1555011,'You\'ll be sorry!',10486,1,0,'blackhearth SAY_AGGRO1'),
+-(-1555012,'Time for fun!',10487,1,0,'blackhearth SAY_AGGRO2'),
+-(-1555013,'I see dead people!',10488,1,0,'blackhearth SAY_AGGRO3'),
+-(-1555014,'No comin\' back for you!',10489,1,0,'blackhearth SAY_SLAY1'),
+-(-1555015,'Nice try!',10490,1,0,'blackhearth SAY_SLAY2'),
+-(-1555016,'Help us, hurry!',10485,1,0,'blackhearth SAY_HELP'),
+-(-1555017,'This... no... good...',10491,1,0,'blackhearth SAY_DEATH'),
+-
+-(-1555018,'Be ready for Dark One\'s return.',10492,1,0,'blackhearth SAY2_INTRO1'),
+-(-1555019,'So we have place in new universe.',10493,1,0,'blackhearth SAY2_INTRO2'),
+-(-1555020,'Dark one promise!',10494,1,0,'blackhearth SAY2_INTRO3'),
+-(-1555021,'You\'ll be sorry!',10496,1,0,'blackhearth SAY2_AGGRO1'),
+-(-1555022,'Time to kill!',10497,1,0,'blackhearth SAY2_AGGRO2'),
+-(-1555023,'You be dead people!',10498,1,0,'blackhearth SAY2_AGGRO3'),
+-(-1555024,'Now you gone for good.',10499,1,0,'blackhearth SAY2_SLAY1'),
+-(-1555025,'You failed, haha haha',10500,1,0,'blackhearth SAY2_SLAY2'),
+-(-1555026,'Help us, hurry!',10495,1,0,'blackhearth SAY2_HELP'),
+-(-1555027,'Arrgh, aah...ahhh',10501,1,0,'blackhearth SAY2_DEATH'),
+-
+-(-1555028,'Keep your minds focused for the days of reckoning are close at hand. Soon, the destroyer of worlds will return to make good on his promise. Soon the destruction of all that is will begin!',10522,1,0,'vorpil SAY_INTRO'),
+-(-1555029,'I\'ll make an offering of your blood!',10524,1,0,'vorpil SAY_AGGRO1'),
+-(-1555030,'You\'ll be a fine example, for the others.',10525,1,0,'vorpil SAY_AGGRO2'),
+-(-1555031,'Good, a worthy sacrifice.',10526,1,0,'vorpil SAY_AGGRO3'),
+-(-1555032,'Come to my aid, heed your master now!',10523,1,0,'vorpil SAY_HELP'),
+-(-1555033,'I serve with pride.',10527,1,0,'vorpil SAY_SLAY1'),
+-(-1555034,'Your death is for the greater cause!',10528,1,0,'vorpil SAY_SLAY2'),
+-(-1555035,'I give my life... Gladly.',10529,1,0,'vorpil SAY_DEATH'),
+-
+-(-1555036,'draws energy from the air.',0,2,0,'murmur EMOTE_SONIC_BOOM');
+-
+--- -1 556 000 SETHEKK HALLS
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1556000,'I have pets....of my own!',10502,1,0,'syth SAY_SUMMON'),
+-(-1556001,'Hrrmm.. Time to.. hrrm.. make my move.',10503,1,0,'syth SAY_AGGRO_1'),
+-(-1556002,'Nice pets..hrm.. Yes! ',10504,1,0,'syth SAY_AGGRO_2'),
+-(-1556003,'Nice pets have.. weapons. No so....nice.',10505,1,0,'syth SAY_AGGRO_3'),
+-(-1556004,'Death.. meeting life is.. ',10506,1,0,'syth SAY_SLAY_1'),
+-(-1556005,'Uhn.. Be free..',10507,1,0,'syth SAY_SLAY_2'),
+-(-1556006,'No more life..hrm. No more pain. ',10508,1,0,'syth SAY_DEATH'),
+-
+-(-1556007,'..Trinkets yes pretty Trinkets....power, great power...power in Trinkets..',10557,1,0,'ikiss SAY_INTRO'),
+-(-1556008,'You make war on Ikiss?..',10554,1,0,'ikiss SAY_AGGRO_1'),
+-(-1556009,'Ikiss cut you pretty....slice you. Yes!',10555,1,0,'ikiss SAY_AGGRO_2'),
+-(-1556010,'No escape for....for you',10556,1,0,'ikiss SAY_AGGRO_3'),
+-(-1556011,'You die....stay away from Trinkets',10558,1,0,'ikiss SAY_SLAY_1'),
+-(-1556012,'',10559,1,0,'ikiss SAY_SLAY_2'),
+-(-1556013,'Ikiss will not....die',10560,1,0,'ikiss SAY_DEATH'),
+-(-1556015,'begins to channel arcane energy...',0,3,0,'ikiss EMOTE_ARCANE_EXP');
+-
+--- -1 557 000 MANA TOMBS
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1557000,'What is this? You must forgive me, but I was not expecting company. As you can see, we are somewhat preoccupied right now. But no matter. As I am a gracious host, I will tend to you... personally.',10539,1,0,'shaffar SAY_INTRO'),
+-(-1557001,'We have not yet been properly introduced.',10541,1,0,'shaffar SAY_AGGRO_1'),
+-(-1557002,'An epic battle. How exciting!',10542,1,0,'shaffar SAY_AGGRO_2'),
+-(-1557003,'I have longed for a good adventure.',10543,1,0,'shaffar SAY_AGGRO_3'),
+-(-1557004,'It has been... entertaining.',10544,1,0,'shaffar SAY_SLAY_1'),
+-(-1557005,'And now we part company.',10545,1,0,'shaffar SAY_SLAY_2'),
+-(-1557006,'I have such fascinating things to show you.',10540,1,0,'shaffar SAY_SUMMON'),
+-(-1557007,'I must bid you... farewell.',10546,1,0,'shaffar SAY_DEAD'),
+-
+-(-1557008,'I will feed on your soul.',10561,1,0,'pandemonius SAY_AGGRO_1'),
+-(-1557009,'So... full of life!',10562,1,0,'pandemonius SAY_AGGRO_2'),
+-(-1557010,'Do not... resist.',10563,1,0,'pandemonius SAY_AGGRO_3'),
+-(-1557011,'Yes! I am... empowered!',10564,1,0,'pandemonius SAY_KILL_1'),
+-(-1557012,'More... I must have more!',10565,1,0,'pandemonius SAY_KILL_2'),
+-(-1557013,'To the void... once... more..',10566,1,0,'pandemonius SAY_DEATH'),
+-(-1557014,'shifts into the void...',0,3,0,'pandemonius EMOTE_DARK_SHELL');
+-
+--- -1 558 000 AUCHENAI CRYPTS
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1558000,'You have defiled the resting place of our ancestors. For this offense, there can be but one punishment. It is fitting that you have come to a place of the dead... for you will soon be joining them.',10509,1,0,'maladaar SAY_INTRO'),
+-(-1558001,'Rise my fallen brothers. Take form and fight!',10512,1,0,'maladaar SAY_SUMMON'),
+-(-1558002,'You will pay with your life!',10513,1,0,'maladaar SAY_AGGRO_1'),
+-(-1558003,'There\'s no turning back now!',10514,1,0,'maladaar SAY_AGGRO_2'),
+-(-1558004,'Serve your penitence!',10515,1,0,'maladaar SAY_AGGRO_3'),
+-(-1558005,'Let your mind be clouded.',10510,1,0,'maladaar SAY_ROAR'),
+-(-1558006,'Stare into the darkness of your soul.',10511,1,0,'maladaar SAY_SOUL_CLEAVE'),
+-(-1558007,'These walls will be your doom.',10516,1,0,'maladaar SAY_SLAY_1'),
+-(-1558008,' Now, you\'ll stay for eternity!',10517,1,0,'maladaar SAY_SLAY_2'),
+-(-1558009,'This is... where.. I belong...',10518,1,0,'maladaar SAY_DEATH');
+-
+--- -1 560 000 ESCAPE FROM DURNHOLDE (OLD HILLSBRAD)
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1560000,'Thrall! You didn\'t really think you would escape did you? You and your allies shall answer to Blackmoore - after I\'ve had my fun!',10406,1,0,'skarloc SAY_ENTER'),
+-(-1560001,'You\'re a slave. That\'s all you\'ll ever be.',10407,1,0,'skarloc SAY_TAUNT1'),
+-(-1560002,'I don\'t know what Blackmoore sees in you. For my money, you\'re just another ignorant savage!',10408,1,0,'skarloc SAY_TAUNT2'),
+-(-1560003,'Thrall will never be free!',10409,1,0,'skarloc SAY_SLAY1'),
+-(-1560004,'Did you really think you would leave here alive?',10410,1,0,'skarloc SAY_SLAY2'),
+-(-1560005,'Guards! Urgh..Guards..!',10411,1,0,'skarloc SAY_DEATH'),
+-
+-(-1560006,'You there, fetch water quickly! Get these flames out before they spread to the rest of the keep! Hurry, damn you!',10428,1,0,'lieutenant_drake SAY_ENTER'),
+-(-1560007,'I know what you\'re up to, and I mean to put an end to it, permanently!',10429,1,0,'lieutenant_drake SAY_AGGRO'),
+-(-1560008,'No more middling for you.',10432,1,0,'lieutenant_drake SAY_SLAY1'),
+-(-1560009,'You will not interfere!',10433,1,0,'lieutenant_drake SAY_SLAY2'),
+-(-1560010,'Time to bleed!',10430,1,0,'lieutenant_drake SAY_MORTAL'),
+-(-1560011,'Run, you blasted cowards!',10431,1,0,'lieutenant_drake SAY_SHOUT'),
+-(-1560012,'Thrall... must not... go free.',10434,1,0,'lieutenant_drake SAY_DEATH'),
+-
+-(-1560013,'Thrall! Come outside and face your fate!',10418,1,0,'epoch SAY_ENTER1'),
+-(-1560014,'Taretha\'s life hangs in the balance. Surely you care for her. Surely you wish to save her...',10419,1,0,'epoch SAY_ENTER2'),
+-(-1560015,'Ah, there you are. I had hoped to accomplish this with a bit of subtlety, but I suppose direct confrontation was inevitable. Your future, Thrall, must not come to pass and so...you and your troublesome friends must die!',10420,1,0,'epoch SAY_ENTER3'),
+-(-1560016,'Enough! I will erase your very existence!',10421,1,0,'epoch SAY_AGGRO1'),
+-(-1560017,'You cannot fight fate!',10422,1,0,'epoch SAY_AGGRO2'),
+-(-1560018,'You are...irrelevant.',10425,1,0,'epoch SAY_SLAY1'),
+-(-1560019,'Thrall will remain a slave. Taretha will die. You have failed.',10426,1,0,'epoch SAY_SLAY2'),
+-(-1560020,'Not so fast!',10423,1,0,'epoch SAY_BREATH1'),
+-(-1560021,'Struggle as much as you like!',10424,1,0,'epoch SAY_BREATH2'),
+-(-1560022,'No!...The master... will not... be pleased.',10427,1,0,'epoch SAY_DEATH');
+-
+--- -1 564 000 BLACK TEMPLE
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1564000,'You will die in the name of Lady Vashj!',11450,1,0,'SAY_AGGRO'),
+-(-1564001,'Stick around!',11451,1,0,'SAY_NEEDLE1'),
+-(-1564002,'I\'ll deal with you later!',11452,1,0,'SAY_NEEDLE2'),
+-(-1564003,'Your success was short lived!',11455,1,0,'SAY_SLAY1'),
+-(-1564004,'Time for you to go!',11456,1,0,'SAY_SLAY2'),
+-(-1564005,'Bel\'anen dal\'lorei!',11453,1,0,'SAY_SPECIAL1'),
+-(-1564006,'Blood will flow!',11454,1,0,'SAY_SPECIAL2'),
+-(-1564007,'Bal\'amer ch\'itah!',11457,1,0,'SAY_ENRAGE1'),
+-(-1564008,'My patience has ran out! Die, DIE!',11458,1,0,'SAY_ENRAGE2'),
+-(-1564009,'Lord Illidan will... crush you.',11459,1,0,'SAY_DEATH'),
+-
+-(-1564010,'%s acquires a new target!',0,3,0,'supremus EMOTE_NEW_TARGET'),
+-(-1564011,'%s punches the ground in anger!',0,3,0,'supremus EMOTE_PUNCH_GROUND'),
+-(-1564012,'The ground begins to crack open!',0,3,0,'supremus EMOTE_GROUND_CRACK'),
+-
+-(-1564013,'No! Not yet...',11385,1,0,'akama shade SAY_LOW_HEALTH'),
+-(-1564014,'I will not last much longer...',11386,1,0,'akama shade SAY_DEATH'),
+-(-1564015,'Come out from the shadows! I\'ve returned to lead you against our true enemy! Shed your chains and raise your weapons against your Illidari masters!',0,1,0,'akama shade SAY_FREE'),
+-(-1564016,'Hail our leader! Hail Akama!',0,1,0,'akama shade broken SAY_BROKEN_FREE_01'),
+-(-1564017,'Hail Akama!',0,1,0,'akama shade broken SAY_BROKEN_FREE_02'),
+-
+-(-1564018,'You play, you pay.',11501,1,0,'shahraz SAY_TAUNT1'),
+-(-1564019,'I\'m not impressed.',11502,1,0,'shahraz SAY_TAUNT2'),
+-(-1564020,'Enjoying yourselves?',11503,1,0,'shahraz SAY_TAUNT3'),
+-(-1564021,'So... business or pleasure?',11504,1,0,'shahraz SAY_AGGRO'),
+-(-1564022,'You seem a little tense.',11505,1,0,'shahraz SAY_SPELL1'),
+-(-1564023,'Don\'t be shy.',11506,1,0,'shahraz SAY_SPELL2'),
+-(-1564024,'I\'m all... yours.',11507,1,0,'shahraz SAY_SPELL3'),
+-(-1564025,'Easy come, easy go.',11508,1,0,'shahraz SAY_SLAY1'),
+-(-1564026,'So much for a happy ending.',11509,1,0,'shahraz SAY_SLAY2'),
+-(-1564027,'Stop toying with my emotions!',11510,1,0,'shahraz SAY_ENRAGE'),
+-(-1564028,'I wasn\'t... finished.',11511,1,0,'shahraz SAY_DEATH'),
+-
+-(-1564029,'Horde will... crush you.',11432,1,0,'bloodboil SOUND_AGGRO'),
+-(-1564030,'Time to feast!',11433,1,0,'bloodboil SAY_SLAY1'),
+-(-1564031,'More! I want more!',11434,1,0,'bloodboil SAY_SLAY2'),
+-(-1564032,'Drink your blood! Eat your flesh!',11435,1,0,'bloodboil SAY_SPECIAL1'),
+-(-1564033,'I hunger!',11436,1,0,'bloodboil SAY_SPECIAL2'),
+-(-1564034,'',11437,1,0,'bloodboil SAY_ENRAGE1'),
+-(-1564035,'I\'ll rip the meat from your bones!',11438,1,0,'bloodboil SAY_ENRAGE2'),
+-(-1564036,'Aaaahrg...',11439,1,0,'bloodboil SAY_DEATH'),
+-
+-(-1564037,'I was the first, you know. For me, the wheel of death has spun many times. So much time has passed. I have a lot of catching up to do...',11512,1,0,'teron SAY_INTRO'),
+-(-1564038,'Vengeance is mine!',11513,1,0,'teron SAY_AGGRO'),
+-(-1564039,'I have use for you!',11514,1,0,'teron SAY_SLAY1'),
+-(-1564040,'It gets worse...',11515,1,0,'teron SAY_SLAY2'),
+-(-1564041,'What are you afraid of?',11517,1,0,'teron SAY_SPELL1'),
+-(-1564042,'Death... really isn\'t so bad.',11516,1,0,'teron SAY_SPELL2'),
+-(-1564043,'Give in!',11518,1,0,'teron SAY_SPECIAL1'),
+-(-1564044,'I have something for you...',11519,1,0,'teron SAY_SPECIAL2'),
+-(-1564045,'YOU WILL SHOW THE PROPER RESPECT!',11520,1,0,'teron SAY_ENRAGE'),
+-(-1564046,'The wheel...spins...again....',11521,1,0,'teron SAY_DEATH'),
+-
+-(-1564047,'Pain and suffering are all that await you!',11415,1,0,'essence SUFF_SAY_FREED'),
+-(-1564048,'Don\'t leave me alone!',11416,1,0,'essence SUFF_SAY_AGGRO'),
+-(-1564049,'Look at what you make me do!',11417,1,0,'essence SUFF_SAY_SLAY1'),
+-(-1564050,'I didn\'t ask for this!',11418,1,0,'essence SUFF_SAY_SLAY2'),
+-(-1564051,'The pain is only beginning!',11419,1,0,'essence SUFF_SAY_SLAY3'),
+-(-1564052,'I don\'t want to go back!',11420,1,0,'essence SUFF_SAY_RECAP'),
+-(-1564053,'Now what do I do?',11421,1,0,'essence SUFF_SAY_AFTER'),
+-(-1564054,'%s becomes enraged!',0,3,0,'essence SUFF_EMOTE_ENRAGE'),
+-
+-(-1564055,'You can have anything you desire... for a price.',11408,1,0,'essence DESI_SAY_FREED'),
+-(-1564056,'Fulfilment is at hand!',11409,1,0,'essence DESI_SAY_SLAY1'),
+-(-1564057,'Yes... you\'ll stay with us now...',11410,1,0,'essence DESI_SAY_SLAY2'),
+-(-1564058,'Your reach exceeds your grasp.',11412,1,0,'essence DESI_SAY_SLAY3'),
+-(-1564059,'Be careful what you wish for...',11411,1,0,'essence DESI_SAY_SPEC'),
+-(-1564060,'I\'ll be waiting...',11413,1,0,'essence DESI_SAY_RECAP'),
+-(-1564061,'I won\'t be far...',11414,1,0,'essence DESI_SAY_AFTER'),
+-
+-(-1564062,'Beware: I live!',11399,1,0,'essence ANGER_SAY_FREED'),
+-(-1564063,'So... foolish.',11400,1,0,'essence ANGER_SAY_FREED2'),
+-(-1564064,'',11401,1,0,'essence ANGER_SAY_SLAY1'),
+-(-1564065,'Enough. No more.',11402,1,0,'essence ANGER_SAY_SLAY2'),
+-(-1564066,'On your knees!',11403,1,0,'essence ANGER_SAY_SPEC'),
+-(-1564067,'Beware, coward.',11405,1,0,'essence ANGER_SAY_BEFORE'),
+-(-1564068,'I won\'t... be... ignored.',11404,1,0,'essence ANGER_SAY_DEATH'),
+-
+-(-1564069,'You wish to test me?',11524,1,0,'council vera AGGRO'),
+-(-1564070,'I have better things to do...',11422,1,0,'council gath AGGRO'),
+-(-1564071,'Flee or die!',11482,1,0,'council mala AGGRO'),
+-(-1564072,'Common... such a crude language. Bandal!',11440,1,0,'council zere AGGRO'),
+-
+-(-1564073,'Enough games!',11428,1,0,'council gath ENRAGE'),
+-(-1564074,'You wish to kill me? Hahaha, you first!',11530,1,0,'council vera ENRAGE'),
+-(-1564075,'For Quel\'Thalas! For the Sunwell!',11488,1,0,'council mala ENRAGE'),
+-(-1564076,'Sha\'amoor sine menoor!',11446,1,0,'council zere ENRAGE'),
+-
+-(-1564077,'Enjoy your final moments!',11426,1,0,'council gath SPECIAL1'),
+-(-1564078,'You\'re not caught up for this!',11528,1,0,'council vera SPECIAL1'),
+-(-1564079,'No second chances!',11486,1,0,'council mala SPECIAL1'),
+-(-1564080,'Diel fin\'al',11444,1,0,'council zere SPECIAL1'),
+-
+-(-1564081,'You are mine!',11427,1,0,'council gath SPECIAL2'),
+-(-1564082,'Anar\'alah belore!',11529,1,0,'council vera SPECIAL2'),
+-(-1564083,'I\'m full of surprises!',11487,1,0,'council mala SPECIAL2'),
+-(-1564084,'Sha\'amoor ara mashal?',11445,1,0,'council zere SPECIAL2'),
+-
+-(-1564085,'Selama am\'oronor!',11423,1,0,'council gath SLAY'),
+-(-1564086,'Valiant effort!',11525,1,0,'council vera SLAY'),
+-(-1564087,'My work is done.',11483,1,0,'council mala SLAY'),
+-(-1564088,'Shorel\'aran.',11441,1,0,'council zere SLAY'),
+-
+-(-1564089,'Well done!',11424,1,0,'council gath SLAY_COMT'),
+-(-1564090,'A glorious kill!',11526,1,0,'council vera SLAY_COMT'),
+-(-1564091,'As it should be!',11484,1,0,'council mala SLAY_COMT'),
+-(-1564092,'Belesa menoor!',11442,1,0,'council zere SLAY_COMT'),
+-
+-(-1564093,'Lord Illidan... I...',11425,1,0,'council gath DEATH'),
+-(-1564094,'You got lucky!',11527,1,0,'council vera DEATH'),
+-(-1564095,'Destiny... awaits.',11485,1,0,'council mala DEATH'),
+-(-1564096,'Diel ma\'ahn... oreindel\'o',11443,1,0,'council zere DEATH');
+-
+--- -1 565 000 GRUUL'S LAIR
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1565000,'Gronn are the real power in outland.',11367,1,0,'maulgar SAY_AGGRO'),
+-(-1565001,'You will not defeat the hand of Gruul!',11368,1,0,'maulgar SAY_ENRAGE'),
+-(-1565002,'You won\'t kill next one so easy!',11369,1,0,'maulgar SAY_OGRE_DEATH1'),
+-(-1565003,'Pah! Does not prove anything!',11370,1,0,'maulgar SAY_OGRE_DEATH2'),
+-(-1565004,'I\'m not afraid of you.',11371,1,0,'maulgar SAY_OGRE_DEATH3'),
+-(-1565005,'Good, now you fight me!',11372,1,0,'maulgar SAY_OGRE_DEATH4'),
+-(-1565006,'You not so tough afterall!',11373,1,0,'maulgar SAY_SLAY1'),
+-(-1565007,'Aha-ha ha ha!',11374,1,0,'maulgar SAY_SLAY2'),
+-(-1565008,'Mulgar is king!',11375,1,0,'maulgar SAY_SLAY3'),
+-(-1565009,'Gruul... will crush you...',11376,1,0,'maulgar SAY_DEATH'),
+-
+-(-1565010,'Come... and die.',11355,1,0,'gruul SAY_AGGRO'),
+-(-1565011,'Scurry',11356,1,0,'gruul SAY_SLAM1'),
+-(-1565012,'No escape',11357,1,0,'gruul SAY_SLAM2'),
+-(-1565013,'Stay',11358,1,0,'gruul SAY_SHATTER1'),
+-(-1565014,'Beg... for life',11359,1,0,'gruul SAY_SHATTER2'),
+-(-1565015,'No more',11360,1,0,'gruul SAY_SLAY1'),
+-(-1565016,'Unworthy',11361,1,0,'gruul SAY_SLAY2'),
+-(-1565017,'Die',11362,1,0,'gruul SAY_SLAY3'),
+-(-1565018,'Aaargh...',11363,1,0,'gruul SAY_DEATH'),
+-(-1565019,'grows in size!',0,2,0,'gruul EMOTE_GROW');
+-
+--- -1 568 000 ZUL'AMAN
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1568000,'Spirits of da wind be your doom!',12031,1,0,'janalai SAY_AGGRO'),
+-(-1568001,'I burn ya now!',12032,1,0,'janalai SAY_FIRE_BOMBS'),
+-(-1568002,'Where ma hatcha? Get to work on dem eggs!',12033,1,0,'janalai SAY_SUMMON_HATCHER'),
+-(-1568003,'I show you strength... in numbers.',12034,1,0,'janalai SAY_ALL_EGGS'),
+-(-1568004,'You done run outta time!',12035,1,0,'janalai SAY_BERSERK'),
+-(-1568005,'It all be over now, mon!',12036,1,0,'janalai SAY_SLAY_1'),
+-(-1568006,'Tazaga-choo!',12037,1,0,'janalai SAY_SLAY_2'),
+-(-1568007,'Zul\'jin... got a surprise for you...',12038,1,0,'janalai SAY_DEATH'),
+-(-1568008,'Come, strangers. The spirit of the dragonhawk hot be hungry for worthy souls.',12039,1,0,'janalai SAY_EVENT_STRANGERS'),
+-(-1568009,'Come, friends. Your bodies gonna feed ma hatchlings, and your souls are going to feed me with power!',12040,1,0,'janalai SAY_EVENT_FRIENDS'),
+-
+-(-1568010,'Get da move on, guards! It be killin\' time!',12066,1,0,'nalorakk SAY_WAVE1_AGGRO'),
+-(-1568011,'Guards, go already! Who you more afraid of, dem... or me?',12067,1,0,'nalorakk SAY_WAVE2_STAIR1'),
+-(-1568012,'Ride now! Ride out dere and bring me back some heads!',12068,1,0,'nalorakk SAY_WAVE3_STAIR2'),
+-(-1568013,'I be losin\' me patience! Go on: make dem wish dey was never born!',12069,1,0,'nalorakk SAY_WAVE4_PLATFORM'),
+-(-1568014,'What could be better than servin\' da bear spirit for eternity? Come closer now. Bring your souls to me!',12078,1,0,'nalorakk SAY_EVENT1_SACRIFICE'),
+-(-1568015,'Don\'t be delayin\' your fate. Come to me now. I make your sacrifice quick.',12079,1,0,'nalorakk SAY_EVENT2_SACRIFICE'),
+-(-1568016,'You be dead soon enough!',12070,1,0,'nalorakk SAY_AGGRO'),
+-(-1568017,'I bring da pain!',12071,1,0,'nalorakk SAY_SURGE'),
+-(-1568018,'You call on da beast, you gonna get more dan you bargain for!',12072,1,0,'nalorakk SAY_TOBEAR'),
+-(-1568019,'Make way for Nalorakk!',12073,1,0,'nalorakk SAY_TOTROLL'),
+-(-1568020,'You had your chance, now it be too late!',12074,1,0,'nalorakk SAY_BERSERK'),
+-(-1568021,'Mua-ha-ha! Now whatchoo got to say?',12075,1,0,'nalorakk SAY_SLAY1'),
+-(-1568022,'Da Amani gonna rule again!',12076,1,0,'nalorakk SAY_SLAY2'),
+-(-1568023,'I... be waitin\' on da udda side....',12077,1,0,'nalorakk SAY_DEATH');
+-
+--- -1 580 000 SUNWELL PLATEAU
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1580000,'Aggh! No longer will I be a slave to Malygos! Challenge me and you will be destroyed!',12422,1,0,'kalecgos SAY_EVIL_AGGRO'),
+-(-1580001,'I will purge you!',12423,1,0,'kalecgos SAY_EVIL_SPELL1'),
+-(-1580002,'Your pain has only begun!',12424,1,0,'kalecgos SAY_EVIL_SPELL2'),
+-(-1580003,'In the name of Kil\'jaeden!',12425,1,0,'kalecgos SAY_EVIL_SLAY1'),
+-(-1580004,'You were warned!',12426,1,0,'kalecgos SAY_EVIL_SLAY2'),
+-(-1580005,'My awakening is complete! You shall all perish!',12427,1,0,'kalecgos SAY_EVIL_ENRAGE'),
+-(-1580006,'I need... your help... Cannot... resist him... much longer...',12428,1,0,'kalecgos humanoid SAY_GOOD_AGGRO'),
+-(-1580007,'Aaahhh! Help me, before I lose my mind!',12429,1,0,'kalecgos humanoid SAY_GOOD_NEAR_DEATH'),
+-(-1580008,'Hurry! There is not much of me left!',12430,1,0,'kalecgos humanoid SAY_GOOD_NEAR_DEATH2'),
+-(-1580009,'I am forever in your debt. Once we have triumphed over Kil\'jaeden, this entire world will be in your debt as well.',12431,1,0,'kalecgos humanoid SAY_GOOD_PLRWIN'),
+-(-1580010,'There will be no reprieve. My work here is nearly finished.',12451,1,0,'sathrovarr SAY_SATH_AGGRO'),
+-(-1580011,'I\'m... never on... the losing... side...',12452,1,0,'sathrovarr SAY_SATH_DEATH'),
+-(-1580012,'Your misery is my delight!',12453,1,0,'sathrovarr SAY_SATH_SPELL1'),
+-(-1580013,'I will watch you bleed!',12454,1,0,'sathrovarr SAY_SATH_SPELL2'),
+-(-1580014,'Pitious mortal!',12455,1,0,'sathrovarr SAY_SATH_SLAY1'),
+-(-1580015,'Haven\'t you heard? I always win!',12456,1,0,'sathrovarr SAY_SATH_SLAY2'),
+-(-1580016,'I have toyed with you long enough!',12457,1,0,'sathrovarr SAY_SATH_ENRAGE'),
+-
+-(-1580017,'Puny lizard! Death is the only answer you\'ll find here!',12458,1,0,'brutallus YELL_INTRO'),
+-(-1580018,'Grah! Your magic is weak!',12459,1,0,'brutallus YELL_INTRO_BREAK_ICE'),
+-(-1580019,'I will crush you!',12460,1,0,'brutallus YELL_INTRO_CHARGE'),
+-(-1580020,'That was fun.',12461,1,0,'brutallus YELL_INTRO_KILL_MADRIGOSA'),
+-(-1580021,'Come, try your luck!',12462,1,0,'brutallus YELL_INTRO_TAUNT'),
+-(-1580022,'Ahh! More lambs to the slaughter!',12463,1,0,'brutallus YELL_AGGRO'),
+-(-1580023,'Perish, insect!',12464,1,0,'brutallus YELL_KILL1'),
+-(-1580024,'You are meat!',12465,1,0,'brutallus YELL_KILL2'),
+-(-1580025,'Too easy!',12466,1,0,'brutallus YELL_KILL3'),
+-(-1580026,'Bring the fight to me!',12467,1,0,'brutallus YELL_LOVE1'),
+-(-1580027,'Another day, another glorious battle!',12468,1,0,'brutallus YELL_LOVE2'),
+-(-1580028,'I live for this!',12469,1,0,'brutallus YELL_LOVE3'),
+-(-1580029,'So much for a real challenge... Die!',12470,1,0,'brutallus YELL_BERSERK'),
+-(-1580030,'Gah! Well done... Now... this gets... interesting...',12471,1,0,'brutallus YELL_DEATH'),
+-
+-(-1580031,'Hold, friends! There is information to be had before this devil meets his fate!',12472,1,0,'madrigosa YELL_MADR_ICE_BARRIER'),
+-(-1580032,'Where is Anveena, demon? What has become of Kalec?',12473,1,0,'madrigosa YELL_MADR_INTRO'),
+-(-1580033,'You will tell me where they are!',12474,1,0,'madrigosa YELL_MADR_ICE_BLOCK'),
+-(-1580034,'Speak, I grow weary of asking!',12475,1,0,'madrigosa YELL_MADR_TRAP'),
+-(-1580035,'Malygos, my lord! I did my best!',12476,1,0,'madrigosa YELL_MADR_DEATH');
+-
+--- -1 585 000 MAGISTER'S TERRACE
+-INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
+-(-1585000,'You only waste my time!',12378,1,0,'selin SAY_AGGRO'),
+-(-1585001,'My hunger knows no bounds!',12381,1,0,'selin SAY_ENERGY'),
+-(-1585002,'Yes! I am a god!',12382,1,0,'selin SAY_EMPOWERED'),
+-(-1585003,'Enough distractions!',12388,1,0,'selin SAY_KILL_1'),
+-(-1585004,'I am invincible!',12385,1,0,'selin SAY_KILL_2'),
+-(-1585005,'No! More... I must have more!',12383,1,0,'selin SAY_DEATH'),
+-(-1585006,'begins to channel from the nearby Fel Crystal...',0,3,0,'selin EMOTE_CRYSTAL'),
+-
+-(-1585007,'Drain...life!',12389,1,0,'vexallus SAY_AGGRO'),
+-(-1585008,'Un...con...tainable.',12392,1,0,'vexallus SAY_ENERGY'),
+-(-1585009,'Un...leash...',12390,1,0,'vexallus SAY_OVERLOAD'),
+-(-1585010,'Con...sume.',12393,1,0,'vexallus SAY_KILL'),
+-(-1585011,'discharges pure energy!',0,3,0,'vexallus EMOTE_DISCHARGE_ENERGY'),
+-
+-(-1585012,'Annihilate them!',12395,1,0,'delrissa SAY_AGGRO'),
+-(-1585013,'Oh, the horror.',12398,1,0,'delrissa LackeyDeath1'),
+-(-1585014,'Well, aren\'t you lucky?',12400,1,0,'delrissa LackeyDeath2'),
+-(-1585015,'Now I\'m getting annoyed.',12401,1,0,'delrissa LackeyDeath3'),
+-(-1585016,'Lackies be damned! I\'ll finish you myself!',12403,1,0,'delrissa LackeyDeath4'),
+-(-1585017,'I call that a good start.',12405,1,0,'delrissa PlayerDeath1'),
+-(-1585018,'I could have sworn there were more of you.',12407,1,0,'delrissa PlayerDeath2'),
+-(-1585019,'Not really much of a group, anymore, is it?',12409,1,0,'delrissa PlayerDeath3'),
+-(-1585020,'One is such a lonely number.',12410,1,0,'delrissa PlayerDeath4'),
+-(-1585021,'It\'s been a kick, really.',12411,1,0,'delrissa PlayerDeath5'),
+-(-1585022,'Not what I had... planned...',12397,1,0,'delrissa SAY_DEATH'),
+-
+-(-1585023,'Don\'t look so smug! I know what you\'re thinking, but Tempest Keep was merely a set back. Did you honestly believe I would trust the future to some blind, half-night elf mongrel? Oh no, he was merely an instrument, a stepping stone to a much larger plan! It has all led to this, and this time, you will not interfere!',12413,1,0,'kaelthas MT SAY_AGGRO'),
+-(-1585024,'Vengeance burns!',12415,1,0,'kaelthas MT SAY_PHOENIX'),
+-(-1585025,'Felomin ashal!',12417,1,0,'kaelthas MT SAY_FLAMESTRIKE'),
+-(-1585026,'I\'ll turn your world... upside... down...',12418,1,0,'kaelthas MT SAY_GRAVITY_LAPSE'),
+-(-1585027,'Master... grant me strength.',12419,1,0,'kaelthas MT SAY_TIRED'),
+-(-1585028,'Do not... get too comfortable.',12420,1,0,'kaelthas MT SAY_RECAST_GRAVITY'),
+-(-1585029,'My demise accomplishes nothing! The Master will have you! You will drown in your own blood! This world shall burn! Aaaghh!',12421,1,0,'kaelthas MT SAY_DEATH');
+-
+---
+--- Below just for beautiful view in table, run at own desire
+---
+-
++--
++-- trinityscript_script_texts.sql Contains data for table `script_texts` mainly used in C++ parts.
++-- valid entries for table are between -1000000 and -1999999
++--
++
++TRUNCATE `script_texts`;
++
++--
++-- -1 000 000 First 100 entries are reserved for special use, do not add regular text here.
++--
++
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1000000,'',0,0,0,'DEFAULT_TEXT');
++
++--
++-- Normal text entries. Say/Yell/Whisper/Emote for any regular world object.
++--
++
++-- -1 000 100 GENERAL MAPS (not typical instance maps)
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1000100,'Come, little ones. Face me!',0,1,0,'azuregos SAY_TELEPORT'),
++
++(-1000101,'Follow me, $N. I\'ll take you to the Defias hideout. But you better protect me or I am as good as dead',0,0,7,'defias traitor SAY_START'),
++(-1000102,'The entrance is hidden here in Moonbrook. Keep your eyes peeled for thieves. They want me dead.',0,0,7,'defias traitor SAY_PROGRESS'),
++(-1000103,'You can go tell Stoutmantle this is where the Defias Gang is holed up, $N.',0,0,7,'defias traitor SAY_END'),
++(-1000104,'%s coming in fast! Prepare to fight!',0,0,7,'defias traitor SAY_AGGRO_1'),
++(-1000105,'Help!',0,0,7,'defias traitor SAY_AGGRO_2');
++
++-- -1 033 000 SHADOWFANG KEEP
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1033000,'Thanks for freeing me, I\'ll open this door for you, then I will get out of here.',0,0,0,'shadowfang_prisoner SAY_FREE');
++
++-- -1 034 000 STOCKADES
++
++-- -1 036 000 DEADMINES
++
++-- -1 043 000 WAILING CAVERNS
++
++-- -1 047 000 RAZORFEN KRAUL
++
++-- -1 048 000 BLACKFATHOM DEEPS
++
++-- -1 070 000 ULDAMAN
++
++-- -1 090 000 GNOMEREGAN
++
++-- -1 109 000 SUNKEN TEMPLE
++
++-- -1 129 000 RAZORFEN DOWNS
++
++-- -1 189 000 SCARLET MONASTERY
++
++-- -1 209 000 ZUL'FARRAK
++
++-- -1 229 000 BLACKROCK SPIRE
++
++-- -1 230 000 BLACKROCK DEPTHS
++
++-- -1 249 000 ONYXIA'S LAIR
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1249000,'How fortuitous. Usually, I must leave my lair to feed.',0,1,0,'onyxia SAY_AGGRO'),
++(-1249001,'Learn your place mortal!',0,1,0,'onyxia SAY_KILL'),
++(-1249002,'This meaningless exertion bores me. I\'ll incinerate you all from above!',0,1,0,'onyxia SAY_PHASE_2_TRANS'),
++(-1249003,'It seems you\'ll need another lesson, mortals!',0,1,0,'onyxia SAY_PHASE_3_TRANS'),
++(-1249004,'takes in a deep breath...',0,1,0,'onyxia EMOTE_BREATH');
++
++-- -1 269 000 OPENING OF THE DARK PORTAL (BLACK MORASS)
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1269000,'Why do you persist? Surely you can see the futility of it all. It is not too late! You may still leave with your lives ...',10442,1,0,'temporus SAY_ENTER'),
++(-1269001,'So be it ... you have been warned.',10444,1,0,'temporus SAY_AGGRO'),
++(-1269002,'Time... sands of time is run out for you.',10443,1,0,'temporus SAY_BANISH'),
++(-1269003,'You should have left when you had the chance.',10445,1,0,'temporus SAY_SLAY1'),
++(-1269004,'Your days are done.',10446,1,0,'temporus SAY_SLAY2'),
++(-1269005,'My death means ... little.',10447,1,0,'temporus SAY_DEATH'),
++
++(-1269006,'Why do you aid the Magus? Just think of how many lives could be saved if the portal is never opened, if the resulting wars could be erased ...',10412,1,0,'chrono_lord_deja SAY_ENTER'),
++(-1269007,'If you will not cease this foolish quest, then you will die!',10414,1,0,'chrono_lord_deja SAY_AGGRO'),
++(-1269008,'You have outstayed your welcome, Timekeeper. Begone!',10413,1,0,'chrono_lord_deja SAY_BANISH'),
++(-1269009,'I told you it was a fool\'s quest!',10415,1,0,'chrono_lord_deja SAY_SLAY1'),
++(-1269010,'Leaving so soon?',10416,1,0,'chrono_lord_deja SAY_SLAY2'),
++(-1269011,'Time ... is on our side.',10417,1,0,'chrono_lord_deja SAY_DEATH'),
++
++(-1269012,'The time has come to shatter this clockwork universe forever! Let us no longer be slaves of the hourglass! I warn you: those who do not embrace the greater path shall become victims of its passing!',10400,1,0,'aeonus SAY_ENTER'),
++(-1269013,'Let us see what fate lays in store...',10402,1,0,'aeonus SAY_AGGRO'),
++(-1269014,'Your time is up, slave of the past!',10401,1,0,'aeonus SAY_BANISH'),
++(-1269015,'One less obstacle in our way!',10403,1,0,'aeonus SAY_SLAY1'),
++(-1269016,'No one can stop us! No one!',10404,1,0,'aeonus SAY_SLAY2'),
++(-1269017,'It is only a matter...of time.',10405,1,0,'aeonus SAY_DEATH');
++
++-- -1 289 000 SCHOLOMANCE
++
++-- -1 309 000 ZUL'GURUB
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1309000,'Let the coils of hate unfurl!',8421,1,0,'venoxis SAY_TRANSFORM'),
++(-1309001,'Ssserenity..at lassst!',0,1,0,'venoxis SAY_DEATH'),
++
++(-1309002,'Lord Hir\'eek, grant me wings of vengance!',8417,1,0,'jeklik SAY_AGGRO'),
++(-1309003,'I command you to rain fire down upon these invaders!',0,1,0,'jeklik SAY_RAIN_FIRE'),
++(-1309004,'Finally ...death. Curse you Hakkar! Curse you!',8422,1,0,'jeklik SAY_DEATH'),
++
++(-1309005,'Draw me to your web mistress Shadra. Unleash your venom!',8418,1,0,'marli SAY_AGGRO'),
++(-1309006,'Shadra, make of me your avatar!',0,1,0,'marli SAY_TRANSFORM'),
++(-1309007,'Aid me my brood!',0,1,0,'marli SAY_SPIDER_SPAWN'),
++(-1309008,'Bless you mortal for this release. Hakkar controls me no longer...',8423,1,0,'marli SAY_DEATH'),
++
++(-1309009,'Shirvallah, fill me with your RAGE!',8419,1,0,'thekal SAY_AGGRO'),
++(-1309010,'Hakkar binds me no more! Peace at last!',8424,1,0,'thekal SAY_DEATH'),
++
++(-1309011,'Bethekk, your priestess calls upon your might!',8416,1,0,'arlokk SAY_AGGRO'),
++(-1309012,'Feast on $n, my pretties!',0,1,0,'arlokk SAY_FEAST_PANTHER'),
++(-1309013,'At last, I am free of the Soulflayer!',8412,1,0,'arlokk SAY_DEATH'),
++
++(-1309014,'Welcome to da great show friends! Step right up to die!',8425,1,0,'jindo SAY_AGGRO'),
++
++(-1309015,'I\'ll feed your souls to Hakkar himself!',8413,1,0,'mandokir SAY_AGGRO'),
++(-1309016,'DING!',0,1,0,'mandokir SAY_DING_KILL'),
++(-1309017,'GRATS!',0,1,0,'mandokir SAY_GRATS_JINDO'),
++(-1309018,'I\'m keeping my eye on you, $N!',0,1,0,'mandokir SAY_WATCH'),
++(-1309019,'Don\'t make me angry. You won\'t like it when I\'m angry.',0,1,0,'mandokir SAY_WATCH_WHISPER'),
++
++(-1309020,'PRIDE HERALDS THE END OF YOUR WORLD. COME, MORTALS! FACE THE WRATH OF THE SOULFLAYER!',8414,1,0,'hakkar SAY_AGGRO'),
++(-1309021,'Fleeing will do you no good, mortals!',0,1,0,'hakkar SAY_FLEEING'),
++(-1309022,'You dare set foot upon Hakkari holy ground? Minions of Hakkar, destroy the infidels!',0,1,0,'hakkar SAY_MINION_DESTROY'),
++(-1309023,'Minions of Hakkar, hear your God. The sanctity of this temple has been compromised. Invaders encroach upon holy ground! The Altar of Blood must be protected. Kill them all!',0,1,0,'hakkar SAY_PROTECT_ALTAR');
++
++-- -1 329 000 STRATHOLME
++
++-- -1 349 000 MARAUDON
++
++-- -1 389 000 RAGEFIRE CHASM
++
++-- -1 409 000 MOLTEN CORE
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1409000,'performs one last service for Ragnaros.',0,2,0,'geddon EMOTE_SERVICE'),
++(-1409001,'goes into a killing frenzy!',0,2,0,'magmadar EMOTE_FRENZY'),
++(-1409002,'refuses to die while its master is in trouble.',0,2,0,'core rager EMOTE_AEGIS'),
++
++(-1409003,'Reckless mortals, none may challenge the sons of the living flame!',8035,1,0,'majordomo SAY_AGGRO'),
++(-1409004,'The runes of warding have been destroyed! Hunt down the infedels my bretheren.',8039,1,0,'majordomo SAY_SPAWN'),
++(-1409005,'Ashes to Ashes!',8037,1,0,'majordomo SAY_SLAY'),
++(-1409006,'Burn mortals! Burn for this transgression!',8036,1,0,'majordomo SAY_SPECIAL'),
++(-1409007,'Impossible! Stay your attack mortals! I submitt! I submitt! Brashly you have come to rest the secrets of the living flame. You will soon regret the recklessness of your quest. I go now to summon the lord whos house this is. Should you seek an audiance with him your paltry lives will surly be forfit. Nevertheless seek out his lair if you dare!',8038,1,0,'majordomo SAY_DEFEAT'),
++
++(-1409008,'Behold Ragnaros, the Firelord! He who was ancient when this world was young! Bow before him, mortals! Bow before your ending!',8040,1,0,'ragnaros SAY_SUMMON_MAJ'),
++(-1409009,'TOO SOON! YOU HAVE AWAKENED ME TOO SOON, EXECUTUS! WHAT IS THE MEANING OF THIS INTRUSION?',8043,1,0,'ragnaros SAY_ARRIVAL1_RAG'),
++(-1409010,'These mortal infidels, my lord! They have invaded your sanctum, and seek to steal your secrets!',8041,1,0,'ragnaros SAY_ARRIVAL2_MAJ'),
++(-1409011,'FOOL! YOU ALLOWED THESE INSECTS TO RUN RAMPANT THROUGH THE HALLOWED CORE, AND NOW YOU LEAD THEM TO MY VERY LAIR? YOU HAVE FAILED ME, EXECUTUS! JUSTICE SHALL BE MET, INDEED!',8044,1,0,'ragnaros SAY_ARRIVAL3_RAG'),
++(-1409012,'NOW FOR YOU, INSECTS. BOLDLY YOU SAUGHT THE POWER OF RAGNAROS NOW YOU SHALL SEE IT FIRST HAND.',8045,1,0,'ragnaros SAY_ARRIVAL5_RAG'),
++
++(-1409013,'COME FORTH, MY SERVANTS! DEFEND YOUR MASTER!',8049,1,0,'ragnaros SAY_REINFORCEMENTS1'),
++(-1409014,'YOU CANNOT DEFEAT THE LIVING FLAME! COME YOU MINIONS OF FIRE! COME FORTH YOU CREATURES OF HATE! YOUR MASTER CALLS!',8050,1,0,'ragnaros SAY_REINFORCEMENTS2'),
++(-1409015,'BY FIRE BE PURGED!',8046,1,0,'ragnaros SAY_HAND'),
++(-1409016,'TASTE THE FLAMES OF SULFURON!',8047,1,0,'ragnaros SAY_WRATH'),
++(-1409017,'DIE INSECT!',8051,1,0,'ragnaros SAY_KILL'),
++(-1409018,'MY PATIENCE IS DWINDILING! COME NATS TO YOUR DEATH!',8048,1,0,'ragnaros SAY_MAGMABURST');
++
++-- -1 429 000 DIRE MAUL
++
++-- -1 469 000 BLACKWING LAIR
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1469000,'None of your kind should be here! You\'ve doomed only yourselves!',8286,1,0,'broodlord SAY_AGGRO'),
++(-1469001,'Clever Mortals but I am not so easily lured away from my sanctum!',8287,1,0,'broodlord SAY_LEASH'),
++
++(-1469002,'goes into a killing frenzy!',0,2,0,'chromaggus EMOTE_FRENZY'),
++(-1469003,'flinches as its skin shimmers.',0,2,0,'chromaggus EMOTE_SHIMMER'),
++
++(-1469004,'In this world where time is your enemy, it is my greatest ally. This grand game of life that you think you play in fact plays you. To that I say...',0,0,0,'victor_nefarius SAY_GAMESBEGIN_1'),
++(-1469005,'Let the games begin!',8280,1,0,'victor_nefarius SAY_GAMESBEGIN_2'),
++(-1469006,'Ah, the heroes. You are persistent, aren\'t you. Your allied attempted to match his power against mine, and had to pay the price. Now he shall serve me, by slaughtering you. Get up little red wyrm and destroy them!',8279,1,0,'victor_nefarius SAY_VAEL_INTRO'),
++
++(-1469007,'Well done, my minions. The mortals\' courage begins to wane! Now, let\'s see how they contend with the true Lord of Blackrock Spire!',8288,1,0,'nefarian SAY_AGGRO'),
++(-1469008,'Enough! Now you vermin shall feel the force of my birthright, the fury of the earth itself.',8289,1,0,'nefarian SAY_XHEALTH'),
++(-1469009,'Burn, you wretches! Burn!',8290,1,0,'nefarian SAY_SHADOWFLAME'),
++(-1469010,'Impossible! Rise my minions! Serve your master once more!',8291,1,0,'nefarian SAY_RAISE_SKELETONS'),
++(-1469011,'Worthless $N! Your friends will join you soon enough!',8293,1,0,'nefarian SAY_SLAY'),
++(-1469012,'This cannot be! I am the Master here! You mortals are nothing to my kind! DO YOU HEAR? NOTHING!',8292,1,0,'nefarian SAY_DEATH'),
++(-1469013,'Mages too? You should be more careful when you play with magic...',0,1,0,'nefarian SAY_MAGE'),
++(-1469014,'Warriors, I know you can hit harder than that! Let\'s see it!',0,1,0,'nefarian SAY_WARRIOR'),
++(-1469015,'Druids and your silly shapeshifting. Let\'s see it in action!',0,1,0,'nefarian SAY_DRUID'),
++(-1469016,'Priests! If you\'re going to keep healing like that, we might as well make it a little more interesting!',0,1,0,'nefarian SAY_PRIEST'),
++(-1469017,'Paladins, I\'ve heard you have many lives. Show me.',0,1,0,'nefarian SAY_PALADIN'),
++(-1469018,'Shamans, show me what your totems can do!',0,1,0,'nefarian SAY_SHAMAN'),
++(-1469019,'Warlocks, you shouldn\'t be playing with magic you don\'t understand. See what happens?',0,1,0,'nefarian SAY_WARLOCK'),
++(-1469020,'Hunters and your annoying pea-shooters!',0,1,0,'nefarian SAY_HUNTER'),
++(-1469021,'Rogues? Stop hiding and face me!',0,1,0,'nefarian SAY_ROGUE'),
++
++(-1469022,'You\'ll pay for forcing me to do this.',8275,1,0,'razorgore SAY_EGGS_BROKEN1'),
++(-1469023,'Fools! These eggs are more precious than you know.',8276,1,0,'razorgore SAY_EGGS_BROKEN2'),
++(-1469024,'No! Not another one! I\'ll have your heads for this atrocity.',8277,1,0,'razorgore SAY_EGGS_BROKEN3'),
++(-1469025,'If I fall into the abyss I\'ll take all of you mortals with me...',8278,1,0,'razorgore SAY_DEATH'),
++
++(-1469026,'Too late...friends. Nefarius\' corruption has taken hold. I cannot...control myself.',8281,1,0,'vaelastrasz SAY_LINE1'),
++(-1469027,'I beg you Mortals, flee! Flee before I lose all control. The Black Fire rages within my heart. I must release it!',8282,1,0,'vaelastrasz SAY_LINE2'),
++(-1469028,'FLAME! DEATH! DESTRUCTION! COWER MORTALS BEFORE THE WRATH OF LORD....NO! I MUST FIGHT THIS!',8283,1,0,'vaelastrasz SAY_LINE3'),
++(-1469029,'Nefarius\' hate has made me stronger than ever before. You should have fled, while you could, mortals! The fury of Blackrock courses through my veins!',8285,1,0,'vaelastrasz SAY_HALFLIFE'),
++(-1469030,'Forgive me $N, your death only adds to my failure.',8284,1,0,'vaelastrasz SAY_KILLTARGET'),
++
++(-1469031,'goes into a frenzy!',0,2,0,'flamegor EMOTE_FRENZY');
++
++-- -1 509 000 RUINS OF AHN'QIRAJ
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1509000,'senses your fear.',0,2,0,'moam EMOTE_AGGRO'),
++(-1509001,'bristles with energy!',0,2,0,'moan EMOTE_MANA_FULL'),
++
++(-1509002,'sets eyes on $N!',0,2,0,'buru EMOTE_TARGET'),
++
++(-1509003,'They come now. Try not to get yourself killed, young blood.',0,1,0,'andorov SAY_ANDOROV_INTRO'),
++(-1509004,'Remember, Rajaxx, when I said I\'d kill you last? I lied...',0,1,0,'andorov SAY_ANDOROV_ATTACK'),
++
++(-1509005,'The time of our retribution is at hand! Let darkness reign in the hearts of our enemies!',8612,1,0,'rajaxx SAY_WAVE3'),
++(-1509006,'No longer will we wait behind barred doors and walls of stone! No longer will our vengeance be denied! The dragons themselves will tremble before our wrath!',8610,1,0,'rajaxx SAY_WAVE4'),
++(-1509007,'Fear is for the enemy! Fear and death!',8608,1,0,'rajaxx SAY_WAVE5'),
++(-1509008,'Staghelm will whimper and beg for his life, just as his whelp of a son did! One thousand years of injustice will end this day!',8611,1,0,'rajaxx SAY_WAVE6'),
++(-1509009,'Fandral! Your time has come! Go and hide in the Emerald Dream and pray we never find you!',8607,1,0,'rajaxx SAY_WAVE7'),
++(-1509010,'Impudent fool! I will kill you myself!',8609,1,0,'rajaxx SAY_INTRO'),
++(-1509011,'Attack and make them pay dearly!',8603,1,0,'rajaxx SAY_UNK1'),
++(-1509012,'Crush them! Drive them out!',8605,1,0,'rajaxx SAY_UNK2'),
++(-1509013,'Do not hesitate! Destroy them!',8606,1,0,'rajaxx SAY_UNK3'),
++(-1509014,'Warriors! Captains! Continue the fight!',8613,1,0,'rajaxx SAY_UNK4'),
++(-1509015,'You are not worth my time $N!',8614,1,0,'rajaxx SAY_DEAGGRO'),
++(-1509016,'Breath your last!',8604,1,0,'rajaxx SAY_KILLS_ANDOROV'),
++(-1509017,'Soon you will know the price of your meddling, mortals... The master is nearly whole... And when he rises, your world will be cease!',0,1,0,'rajaxx SAY_COMPLETE_QUEST'),
++
++(-1509018,'I am rejuvinated!',8593,1,0,'ossirian SAY_SURPREME1'),
++(-1509019,'My powers are renewed!',8595,1,0,'ossirian SAY_SURPREME2'),
++(-1509020,'My powers return!',8596,1,0,'ossirian SAY_SURPREME3'),
++(-1509021,'Protect the city at all costs!',8597,1,0,'ossirian SAY_RAND_INTRO1'),
++(-1509022,'The walls have been breached!',8599,1,0,'ossirian SAY_RAND_INTRO2'),
++(-1509023,'To your posts. Defend the city.',8600,1,0,'ossirian SAY_RAND_INTRO3'),
++(-1509024,'Tresspassers will be terminated.',8601,1,0,'ossirian SAY_RAND_INTRO4'),
++(-1509025,'Sands of the desert rise and block out the sun!',8598,1,0,'ossirian SAY_AGGRO'),
++(-1509026,'You are terminated.',8602,1,0,'ossirian SAY_SLAY'),
++(-1509027,'I...have...failed.',8594,1,0,'ossirian SAY_DEATH');
++
++-- -1 531 000 TEMPLE OF AHN'QIRAJ
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1531000,'Are you so eager to die? I would be happy to accomodate you.',8615,1,0,'skeram SAY_AGGRO1'),
++(-1531001,'Cower mortals! The age of darkness is at hand.',8616,1,0,'skeram SAY_AGGRO2'),
++(-1531002,'Tremble! The end is upon you.',8621,1,0,'skeram SAY_AGGRO3'),
++(-1531003,'Let your death serve as an example!',8617,1,0,'skeram SAY_SLAY1'),
++(-1531004,'Spineless wretches! You will drown in rivers of blood!',8619,1,0,'skeram SAY_SLAY2'),
++(-1531005,'The screams of the dying will fill the air. A symphony of terror is about to begin!',8620,1,0,'skeram SAY_SLAY3'),
++(-1531006,'Prepare for the return of the ancient ones!',8618,1,0,'skeram SAY_SPLIT'),
++(-1531007,'You only delay... the inevetable.',8622,1,0,'skeram SAY_DEATH'),
++
++(-1531008,'You will be judged for defiling these sacred grounds! The laws of the Ancients will not be challenged! Trespassers will be annihilated!',8646,1,0,'sartura SAY_AGGRO'),
++(-1531009,'I sentence you to death!',8647,1,0,'sartura SAY_SLAY'),
++(-1531010,'I serve to the last!',8648,1,0,'sartura SAY_DEATH'),
++
++(-1531011,'is weakened!',0,2,0,'cthun EMOTE_WEAKENED');
++
++-- -1 532 000 KARAZHAN
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1532000,'Well done Midnight!',9173,1,0,'attumen SAY_MIDNIGHT_KILL'),
++(-1532001,'Cowards! Wretches!',9167,1,0,'attumen SAY_APPEAR1'),
++(-1532002,'Who dares attack the steed of the Huntsman?',9298,1,0,'attumen SAY_APPEAR2'),
++(-1532003,'Perhaps you would rather test yourselves against a more formidable opponent?!',9299,1,0,'attumen SAY_APPEAR3'),
++(-1532004,'Come, Midnight, let\'s disperse this petty rabble!',9168,1,0,'attumen SAY_MOUNT'),
++(-1532005,'It was... inevitable.',9169,1,0,'attumen SAY_KILL1'),
++(-1532006,'Another trophy to add to my collection!',9300,1,0,'attumen SAY_KILL2'),
++(-1532007,'Weapons are merely a convenience for a warrior of my skill!',9166,1,0,'attumen SAY_DISARMED'),
++(-1532008,'I always knew... someday I would become... the hunted.',9165,1,0,'attumen SAY_DEATH'),
++(-1532009,'Such easy sport.',9170,1,0,'attumen SAY_RANDOM1'),
++(-1532010,'Amateurs! Do not think you can best me! I kill for a living.',9304,1,0,'attumen SAY_RANDOM2'),
++
++(-1532011,'Hmm, unannounced visitors? Preparations must be made.',9211,1,0,'moroes SAY_AGGRO'),
++(-1532012,'Now, where was I? Oh yes...',9215,1,0,'moroes SAY_SPECIAL_1'),
++(-1532013,'You rang?',9316,1,0,'moroes SAY_SPECIAL_2'),
++(-1532014,'One more for dinner this evening.',9214,1,0,'moroes SAY_KILL_1'),
++(-1532015,'Time... Never enough time.',9314,1,0,'moroes SAY_KILL_2'),
++(-1532016,'I\'ve gone and made a mess.',9315,1,0,'moroes SAY_KILL_3'),
++(-1532017,'How terribly clumsy of me...',9213,1,0,'moroes SAY_DEATH'),
++
++(-1532018,'Your behavior will not be tolerated!',9204,1,0,'maiden SAY_AGGRO'),
++(-1532019,'Ah ah ah...',9207,1,0,'maiden SAY_SLAY1'),
++(-1532020,'This is for the best.',9312,1,0,'maiden SAY_SLAY2'),
++(-1532021,'Impure thoughts lead to profane actions.',9311,1,0,'maiden SAY_SLAY3'),
++(-1532022,'Cast out your corrupt thoughts.',9313,1,0,'maiden SAY_REPENTANCE1'),
++(-1532023,'Your impurity must be cleansed.',9208,1,0,'maiden SAY_REPENTANCE2'),
++(-1532024,'Death comes. Will your conscience be clear?',9206,1,0,'maiden SAY_DEATH'),
++
++(-1532025,'Oh at last, at last. I can go home.',9190,1,0,'dorothee SAY_DOROTHEE_DEATH'),
++(-1532026,'Don\'t let them hurt us, Tito! Oh, you won\'t, will you?',9191,1,0,'dorothee SAY_DOROTHEE_SUMMON'),
++(-1532027,'Tito, oh Tito, no!',9192,1,0,'dorothee SAY_DOROTHEE_TITO_DEATH'),
++(-1532028,'Oh dear, we simply must find a way home! The old wizard could be our only hope! Strawman, Roar, Tinhead, will you... wait! Oh golly, look! We have visitors!',9195,1,0,'dorothee SAY_DOROTHEE_AGGRO'),
++
++(-1532029,'Wanna fight? Huh? Do ya? C\'mon, I\'ll fight you with both claws behind my back!',9227,1,0,'roar SAY_ROAR_AGGRO'),
++(-1532030,'You didn\'t have to go and do that.',9229,1,0,'roar SAY_ROAR_DEATH'),
++(-1532031,'I think I\'m going to go take fourty winks.',9230,1,0,'roar SAY_ROAR_SLAY'),
++
++(-1532032,'Now what should I do with you? I simply can\'t make up my mind.',9254,1,0,'strawman SAY_STRAWMAN_AGGRO'),
++(-1532033,'Don\'t let them make a mattress... out of me.',9256,1,0,'strawman SAY_STRAWMAN_DEATH'),
++(-1532034,'I guess I\'m not a failure after all.',9257,1,0,'strawman SAY_STRAWMAN_SLAY'),
++
++(-1532035,'I could really use a heart. Say, can I have yours?',9268,1,0,'tinhead SAY_TINHEAD_AGGRO'),
++(-1532036,'Back to being an old rustbucket.',9270,1,0,'tinhead SAY_TINHEAD_DEATH'),
++(-1532037,'Guess I\'m not so rusty, after all.',9271,1,0,'tinhead SAY_TINHEAD_SLAY'),
++(-1532038,'begins to rust.',0,2,0,'tinhead EMOTE_RUST'),
++
++(-1532039,'Woe to each and every one of you my pretties! ',9179,1,0,'crone SAY_CRONE_AGGRO'),
++(-1532040,'It will all be over soon! ',9307,1,0,'crone SAY_CRONE_AGGRO2'),
++(-1532041,'How could you? What a cruel, cruel world!',9178,1,0,'crone SAY_CRONE_DEATH'),
++(-1532042,'Fixed you, didn\'t I? ',9180,1,0,'crone SAY_CRONE_SLAY'),
++
++(-1532043,'All the better to own you with!',9276,1,0,'wolf SAY_WOLF_AGGRO'),
++(-1532044,'Mmmm... delicious.',9277,1,0,'wolf SAY_WOLF_SLAY'),
++(-1532045,'Run away little girl, run away!',9278,1,0,'wolf SAY_WOLF_HOOD'),
++
++(-1532046,'What devil art thou, that dost torment me thus?',9196,1,0,'julianne SAY_JULIANNE_AGGRO'),
++(-1532047,'Where is my lord? Where is my Romulo?',9199,1,0,'julianne SAY_JULIANNE_ENTER'),
++(-1532048,'Romulo, I come! Oh... this do I drink to thee!',9198,1,0,'julianne SAY_JULIANNE_DEATH01'),
++(-1532049,'Where is my Lord? Where is my Romulo? Ohh, happy dagger! This is thy sheath! There rust, and let me die!',9310,1,0,'julianne SAY_JULIANNE_DEATH02'),
++(-1532050,'Come, gentle night; and give me back my Romulo!',9200,1,0,'julianne SAY_JULIANNE_RESURRECT'),
++(-1532051,'Parting is such sweet sorrow.',9201,1,0,'julianne SAY_JULIANNE_SLAY'),
++
++(-1532052,'Wilt thou provoke me? Then have at thee, boy!',9233,1,0,'romulo SAY_ROMULO_AGGRO'),
++(-1532053,'Thou smilest... upon the stroke that... murders me.',9235,1,0,'romulo SAY_ROMULO_DEATH'),
++(-1532054,'This day\'s black fate on more days doth depend. This but begins the woe. Others must end.',9236,1,0,'romulo SAY_ROMULO_ENTER'),
++(-1532055,'Thou detestable maw, thou womb of death; I enforce thy rotten jaws to open!',9237,1,0,'romulo SAY_ROMULO_RESURRECT'),
++(-1532056,'How well my comfort is revived by this!',9238,1,0,'romulo SAY_ROMULO_SLAY'),
++
++(-1532057,'The Menagerie is for guests only.',9183,1,0,'curator SAY_AGGRO'),
++(-1532058,'Gallery rules will be strictly enforced.',9188,1,0,'curator SAY_SUMMON1'),
++(-1532059,'This curator is equipped for gallery protection.',9309,1,0,'curator SAY_SUMMON2'),
++(-1532060,'Your request cannot be processed.',9186,1,0,'curator SAY_EVOCATE'),
++(-1532061,'Failure to comply will result in offensive action.',9185,1,0,'curator SAY_ENRAGE'),
++(-1532062,'Do not touch the displays.',9187,1,0,'curator SAY_KILL1'),
++(-1532063,'You are not a guest.',9308,1,0,'curator SAY_KILL2'),
++(-1532064,'This Curator is no longer op... er... ation... al.',9184,1,0,'curator SAY_DEATH'),
++
++(-1532065,'Your blood will anoint my circle.',9264,1,0,'terestian SAY_SLAY1'),
++(-1532066,'The great one will be pleased.',9329,1,0,'terestian SAY_SLAY2'),
++(-1532067,'My life, is yours. Oh great one.',9262,1,0,'terestian SAY_DEATH'),
++(-1532068,'Ah, you\'re just in time. The rituals are about to begin.',9260,1,0,'terestian SAY_AGGRO'),
++(-1532069,'Please, accept this humble offering, oh great one.',9263,1,0,'terestian SAY_SACRIFICE1'),
++(-1532070,'Let the sacrifice serve his testament to my fealty.',9330,1,0,'terestian SAY_SACRIFICE2'),
++(-1532071,'Come, you dwellers in the dark. Rally to my call!',9265,1,0,'terestian SAY_SUMMON1'),
++(-1532072,'Gather, my pets. There is plenty for all.',9331,1,0,'terestian SAY_SUMMON2'),
++
++(-1532073,'Please, no more. My son... he\'s gone mad!',9241,1,0,'aran SAY_AGGRO1'),
++(-1532074,'I\'ll not be tortured again!',9323,1,0,'aran SAY_AGGRO2'),
++(-1532075,'Who are you? What do you want? Stay away from me!',9324,1,0,'aran SAY_AGGRO3'),
++(-1532076,'I\'ll show you this beaten dog still has some teeth!',9245,1,0,'aran SAY_FLAMEWREATH1'),
++(-1532077,'Burn you hellish fiends!',9326,1,0,'aran SAY_FLAMEWREATH2'),
++(-1532078,'I\'ll freeze you all!',9246,1,0,'aran SAY_BLIZZARD1'),
++(-1532079,'Back to the cold dark with you!',9327,1,0,'aran SAY_BLIZZARD2'),
++(-1532080,'Yes, yes, my son is quite powerful... but I have powers of my own!',9242,1,0,'aran SAY_EXPLOSION1'),
++(-1532081,'I am not some simple jester! I am Nielas Aran!',9325,1,0,'aran SAY_EXPLOSION2'),
++(-1532082,'Surely you would not deny an old man a replenishing drink? No, no I thought not.',9248,1,0,'aran SAY_DRINK'),
++(-1532083,'I\'m not finished yet! No, I have a few more tricks up me sleeve.',9251,1,0,'aran SAY_ELEMENTALS'),
++(-1532084,'I want this nightmare to be over!',9250,1,0,'aran SAY_KILL1'),
++(-1532085,'Torment me no more!',9328,1,0,'aran SAY_KILL2'),
++(-1532086,'You\'ve wasted enough of my time. Let these games be finished!',9247,1,0,'aran SAY_TIMEOVER'),
++(-1532087,'At last... The nightmare is.. over...',9244,1,0,'aran SAY_DEATH'),
++(-1532088,'Where did you get that?! Did HE send you?!',9249,1,0,'aran SAY_ATIESH'),
++
++(-1532089,'cries out in withdrawal, opening gates to the warp.',0,2,0,'netherspite EMOTE_PHASE_PORTAL'),
++(-1532090,'goes into a nether-fed rage!',0,2,0,'netherspite EMOTE_PHASE_BANISH'),
++
++(-1532091,'Madness has brought you here to me. I shall be your undoing!',9218,1,0,'malchezaar SAY_AGGRO'),
++(-1532092,'Simple fools! Time is the fire in which you\'ll burn!',9220,1,0,'malchezaar SAY_AXE_TOSS1'),
++(-1532093,'I see the subtlety of conception is beyond primitives such as you.',9317,1,0,'malchezaar SAY_AXE_TOSS2'),
++(-1532094,'Who knows what secrets hide in the dark.',9223,1,0,'malchezaar SAY_SPECIAL1'),
++(-1532095,'The cerestial forces are mine to manipulate.',9320,1,0,'malchezaar SAY_SPECIAL2'),
++(-1532096,'How can you hope to withstand against such overwhelming power?',9321,1,0,'malchezaar SAY_SPECIAL3'),
++(-1532097,'Surely you did not think you could win.',9222,1,0,'malchezaar SAY_SLAY1'),
++(-1532098,'Your greed, your foolishness has brought you to this end.',9318,1,0,'malchezaar SAY_SLAY2'),
++(-1532099,'You are, but a plaything, unfit even to amuse.',9319,1,0,'malchezaar SAY_SLAY3'),
++(-1532100,'All realities, all dimensions are open to me!',9224,1,0,'malchezaar SAY_SUMMON1'),
++(-1532101,'You face not Malchezaar alone, but the legions I command!',9322,1,0,'malchezaar SAY_SUMMON2'),
++(-1532102,'I refuse to concede defeat. I am a prince of the Eredar! I am...',9221,1,0,'malchezaar SAY_DEATH');
++
++-- -1 533 000 NAXXRAMAS
++
++-- -1 534 000 THE BATTLE OF MT. HYJAL
++
++-- -1 540 000 SHATTERED HALLS
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1540000,'You wish to fight us all at once? This should be amusing!',10262,1,0,'nethekurse SAY_INTRO'),
++(-1540001,'You can have that one. I no longer need him.',10263,1,0,'nethekurse PEON_ATTACK_1'),
++(-1540002,'Yes, beat him mercilessly. His skull is a thick as an ogres.',10264,1,0,'nethekurse PEON_ATTACK_2'),
++(-1540003,'Don\'t waste your time on that one. He\'s weak!',10265,1,0,'nethekurse PEON_ATTACK_3'),
++(-1540004,'You want him? Very well, take him!',10266,1,0,'nethekurse PEON_ATTACK_4'),
++(-1540005,'One pitiful wretch down. Go on, take another one.',10267,1,0,'nethekurse PEON_DIE_1'),
++(-1540006,'Ahh, what a waste... Next!',10268,1,0,'nethekurse PEON_DIE_2'),
++(-1540007,'I was going to kill him anyway!',10269,1,0,'nethekurse PEON_DIE_3'),
++(-1540008,'Thank you for saving me the trouble! Now it\'s my turn to have some fun...',10270,1,0,'nethekurse PEON_DIE_4'),
++(-1540009,'Beg for your pittyfull life!',10259,1,0,'nethekurse SAY_TAUNT_1'),
++(-1540010,'Run covad, ruun!',10260,1,0,'nethekurse SAY_TAUNT_2'),
++(-1540011,'Your pain amuses me.',10261,1,0,'nethekurse SAY_TAUNT_3'),
++(-1540012,'I\'m already bored.',10271,1,0,'nethekurse SAY_AGGRO_1'),
++(-1540013,'Come on! ... Show me a real fight.',10272,1,0,'nethekurse SAY_AGGRO_2'),
++(-1540014,'I had more fun torturing the peons.',10273,1,0,'nethekurse SAY_AGGRO_3'),
++(-1540015,'You Loose.',10274,1,0,'nethekurse SAY_SLAY_1'),
++(-1540016,'Ohh! Just die.',10275,1,0,'nethekurse SAY_SLAY_2'),
++(-1540017,'What a ... a shame.',10276,1,0,'nethekurse SAY_DIE'),
++
++(-1540018,'Smash!',10306,1,0,'omrogg GoCombat_1'),
++(-1540019,'If you nice me let you live.',10308,1,0,'omrogg GoCombat_2'),
++(-1540020,'Me hungry!',10309,1,0,'omrogg GoCombat_3'),
++(-1540021,'Why don\'t you let me do the talking?',10317,1,0,'omrogg GoCombatDelay_1'),
++(-1540022,'No, we will NOT let you live!',10318,1,0,'omrogg GoCombatDelay_2'),
++(-1540023,'You always hungry. That why we so fat!',10319,1,0,'omrogg GoCombatDelay_3'),
++(-1540024,'You stay here. Me go kill someone else!',10303,1,0,'omrogg Threat_1'),
++(-1540025,'What are you doing!',10315,1,0,'omrogg Threat_2'),
++(-1540026,'Me kill someone else...',10302,1,0,'omrogg Threat_3'),
++(-1540027,'Me not like this one...',10300,1,0,'omrogg Threat_4'),
++(-1540028,'That\'s not funny!',10314,1,0,'omrogg ThreatDelay1_1'),
++(-1540029,'Me get bored...',10305,1,0,'omrogg ThreatDelay1_2'),
++(-1540030,'I\'m not done yet, idiot!',10313,1,0,'omrogg ThreatDelay1_3'),
++(-1540031,'Hey you numbskull!',10312,1,0,'omrogg ThreatDelay1_4'),
++(-1540032,'Ha ha ha.',10304,1,0,'omrogg ThreatDelay2_1'),
++(-1540033,'Whhy! He almost dead!',10316,1,0,'omrogg ThreatDelay2_2'),
++(-1540034,'H\'ey...',10307,1,0,'omrogg ThreatDelay2_3'),
++(-1540035,'We kill his friend!',10301,1,0,'omrogg ThreatDelay2_4'),
++(-1540036,'This one die easy!',10310,1,0,'omrogg Killing_1'),
++(-1540037,'I\'m tired. You kill next one!',10320,1,0,'omrogg Killing_2'),
++(-1540038,'That\'s because I do all the hard work!',10321,1,0,'omrogg KillingDelay_1'),
++(-1540039,'This all...your fault!',10311,1,0,'omrogg YELL_DIE_L'),
++(-1540040,'I...hate...you...',10322,1,0,'omrogg YELL_DIE_R'),
++(-1540041,'enrages',0,2,0,'omrogg EMOTE_ENRAGE');
++
++-- -1 542 000 BLOOD FURNACE
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1542000,'Who dares interrupt... What is this? What have you done? You ruin everything!',10164,1,0,'kelidan SAY_WAKE'),
++(-1542001,'You mustn\'t let him loose!',10166,1,0,'kelidan SAY_ADD_AGGRO_1'),
++(-1542002,'Ignorant whelps!',10167,1,0,'kelidan SAY_ADD_AGGRO_2'),
++(-1542003,'You fools! He\'ll kill us all!',10168,1,0,'kelidan SAY_ADD_AGGRO_3'),
++(-1542004,'Just as you deserve!',10169,1,0,'kelidan SAY_KILL_1'),
++(-1542005,'Your friends will soon be joining you.',10170,1,0,'kelidan SAY_KILL_2'),
++(-1542006,'Closer... Come closer.. and burn!',10165,1,0,'kelidan SAY_NOVA'),
++(-1542007,'Good luck... you\'ll need it..',10171,1,0,'kelidan SAY_DIE'),
++
++(-1542008,'Come intruders....',0,1,0,'broggok SAY_AGGRO'),
++
++(-1542009,'My work must not be interrupted.',10286,1,0,'the_maker SAY_AGGRO_1'),
++(-1542010,'Perhaps I can find a use for you.',10287,1,0,'the_maker SAY_AGGRO_2'),
++(-1542011,'Anger... Hate... These are tools I can use.',10288,1,0,'the_maker SAY_AGGRO_3'),
++(-1542012,'Let\'s see what I can make of you.',10289,1,0,'the_maker SAY_KILL_1'),
++(-1542013,'It is pointless to resist.',10290,1,0,'the_maker SAY_KILL_2'),
++(-1542014,'Stay away from... me.',10291,1,0,'the_maker SAY_DIE');
++
++-- -1 543 000 HELLFIRE RAMPARTS
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1543000,'Do you smell that? Fresh meat has somehow breached our citadel. Be wary of any intruders.',0,1,0,'gargolmar SAY_TAUNT'),
++(-1543001,'Heal me! QUICKLY!',10329,1,0,'gargolmar SAY_HEAL'),
++(-1543002,'Back off, pup!',10330,1,0,'gargolmar SAY_SURGE'),
++(-1543003,'What have we here...?',10331,1,0,'gargolmar SAY_AGGRO_1'),
++(-1543004,'Heh... this may hurt a little.',10332,1,0,'gargolmar SAY_AGGRO_2'),
++(-1543005,'I\'m gonna enjoy this.',10333,1,0,'gargolmar SAY_AGGRO_3'),
++(-1543006,'Say farewell!',10334,1,0,'gargolmar SAY_KILL_1'),
++(-1543007,'Much too easy...',10335,1,0,'gargolmar SAY_KILL_2'),
++(-1543008,'Hahah.. ..argh!',10336,1,0,'gargolmar SAY_DIE'),
++
++(-1543009,'You dare stand against me?!',10280,1,0,'omor SAY_AGGRO_1'),
++(-1543010,'I will not be defeated!',10279,1,0,'omor SAY_AGGRO_2'),
++(-1543011,'Your insolence will be your death.',10281,1,0,'omor SAY_AGGRO_3'),
++(-1543012,'Achor-she-ki! Feast my pet! Eat your fill!',10277,1,0,'omor SAY_SUMMON'),
++(-1543013,'A-Kreesh!',10278,1,0,'omor SAY_CURSE'),
++(-1543014,'Die, weakling!',10282,1,0,'omor SAY_KILL_1'),
++(-1543015,'It is... not over.',10284,1,0,'omor SAY_DIE'),
++(-1543016,'I am victorious!',10283,1,0,'omor SAY_WIPE');
++
++-- -1 544 000 MAGTHERIDON'S LAIR
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1544000,'Wretched, meddling insects. Release me and perhaps i will grant you a merciful death!',10247,1,0,'magtheridon SAY_TAUNT1'),
++(-1544001,'Vermin! Leeches! Take my blood and choke on it!',10248,1,0,'magtheridon SAY_TAUNT2'),
++(-1544002,'Illidan is an arrogant fool. I will crush him and reclaim Outland as my own.',10249,1,0,'magtheridon SAY_TAUNT3'),
++(-1544003,'Away, you mindless parasites. My blood is my own!',10250,1,0,'magtheridon SAY_TAUNT4'),
++(-1544004,'How long do you believe your pathetic sorcery can hold me?',10251,1,0,'magtheridon SAY_TAUNT5'),
++(-1544005,'My blood will be the end of you!',10252,1,0,'magtheridon SAY_TAUNT6'),
++(-1544006,'I...am...UNLEASHED!!!',10253,1,0,'magtheridon SAY_FREED'),
++(-1544007,'Thank you for releasing me. Now...die!',10254,1,0,'magtheridon SAY_AGGRO'),
++(-1544008,'Not again...NOT AGAIN!',10256,1,0,'magtheridon SAY_BANISH'),
++(-1544009,'I will not be taken so easily. Let the walls of this prison tremble...and FALL!!!',10257,1,0,'magtheridon SAY_CHAMBER_DESTROY'),
++(-1544010,'Did you think me weak? Soft? Who is the weak one now?!',10255,1,0,'magtheridon SAY_PLAYER_KILLED'),
++(-1544011,'The Legion...will consume you...all...',10258,1,0,'magtheridon SAY_DEATH'),
++(-1544012,'becomes enraged!',0,2,0,'magtheridon EMOTE_BERSERK'),
++(-1544013,'begins to cast Blast Nova!',0,2,0,'magtheridon EMOTE_BLASTNOVA'),
++(-1544014,'bonds begin to weaken!',0,2,0,'magtheridon EMOTE_BEGIN');
++
++-- -1 545 000 THE STEAMVAULT
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1545000,'Surge forth my pets!',10360,1,0,'thespia SAY_SUMMON'),
++(-1545001,'The depths will consume you!',10361,1,0,'thespia SAY_AGGRO_1'),
++(-1545002,'Meet your doom, surface dwellers!',10362,1,0,'thespia SAY_AGGRO_2'),
++(-1545003,'You will drown in blood!',10363,1,0,'thespia SAY_AGGRO_3'),
++(-1545004,'To the depths of oblivion with you!',10364,1,0,'thespia SAY_SLAY_1'),
++(-1545005,'For my lady and master!',10365,1,0,'thespia SAY_SLAY_2'),
++(-1545006,'Our matron will be.. the end of.. you..',10366,1,0,'thespia SAY_DEAD'),
++
++(-1545007,'I\'m bringin\' the pain!',10367,1,0,'mekgineer SAY_MECHANICS'),
++(-1545008,'You\'re in for a world of hurt!',10368,1,0,'mekgineer SAY_AGGRO_1'),
++(-1545009,'Eat hot metal, scumbag!',10369,1,0,'mekgineer SAY_AGGRO_2'),
++(-1545010,'I\'ll come over there!',10370,1,0,'mekgineer SAY_AGGRO_3'),
++(-1545011,'I\'m bringin\' the pain!',10371,1,0,'mekgineer SAY_AGGRO_4'),
++(-1545012,'You just got served, punk!',10372,1,0,'mekgineer SOUND_SLAY_1'),
++(-1545013,'I own you!',10373,1,0,'mekgineer SOUND_SLAY_2'),
++(-1545014,'Have fun dyin\', cupcake!',10374,1,0,'mekgineer SOUND_SLAY_3'),
++(-1545015,'Mommy!',10375,1,0,'mekgineer SAY_DEATH'),
++
++(-1545016,'You deem yourselves worthy simply because you bested my guards? Our work here will not be compromised!',10390,1,0,'kalithresh SAY_INTRO'),
++(-1545017,'This is not nearly over...',10391,1,0,'kalithresh SAY_REGEN'),
++(-1545018,'Your head will roll!',10392,1,0,'kalithresh SAY_AGGRO1'),
++(-1545019,'I despise all of your kind!',10393,1,0,'kalithresh SAY_AGGRO2'),
++(-1545020,'Ba\'ahntha sol\'dorei!',10394,1,0,'kalithresh SAY_AGGRO3'),
++(-1545021,'Scram, surface filth!',10395,1,0,'kalithresh SAY_SLAY1'),
++(-1545022,'Ah ha ha ha ha ha ha!',10396,1,0,'kalithresh SAY_SLAY2'),
++(-1545023,'For her Excellency... for... Vashj!',10397,1,0,'kalithresh SAY_DEATH');
++
++-- -1 546 000 THE UNDERBOG
++
++-- -1 547 000 THE SLAVE PENS
++
++-- -1 548 000 SERPENTSHRINE CAVERN
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1548000,'I cannot allow you to interfere!',11289,1,0,'hydross SAY_AGGRO'),
++(-1548001,'Better, much better.',11290,1,0,'hydross SAY_SWITCH_TO_CLEAN'),
++(-1548002,'They have forced me to this...',11291,1,0,'hydross SAY_CLEAN_SLAY1'),
++(-1548003,'I have no choice.',11292,1,0,'hydross SAY_CLEAN_SLAY2'),
++(-1548004,'I am... released...',11293,1,0,'hydross SAY_CLEAN_DEATH'),
++(-1548005,'Aaghh, the poison...',11297,1,0,'hydross SAY_SWITCH_TO_CORRUPT'),
++(-1548006,'I will purge you from this place.',11298,1,0,'hydross SAY_CORRUPT_SLAY1'),
++(-1548007,'You are no better than they!',11299,1,0,'hydross SAY_CORRUPT_SLAY2'),
++(-1548008,'You are the disease, not I',11300,1,0,'hydross SAY_CORRUPT_DEATH'),
++
++(-1548009,'Finally my banishment ends!',11312,1,0,'leotheras SAY_AGGRO'),
++(-1548010,'Be gone trifling elf. I\'m in control now.',11304,1,0,'leotheras SAY_SWITCH_TO_DEMON'),
++(-1548011,'We all have our demons...',11305,1,0,'leotheras SAY_INNER_DEMONS'),
++(-1548012,'I have no equal.',11306,1,0,'leotheras SAY_DEMON_SLAY1'),
++(-1548013,'Perish, mortal.',11307,1,0,'leotheras SAY_DEMON_SLAY2'),
++(-1548014,'Yes, YES! Ahahah!',11308,1,0,'leotheras SAY_DEMON_SLAY3'),
++(-1548015,'Kill! KILL!',11314,1,0,'leotheras SAY_NIGHTELF_SLAY1'),
++(-1548016,'That\'s right! Yes!',11315,1,0,'leotheras SAY_NIGHTELF_SLAY2'),
++(-1548017,'Who\'s the master now?',11316,1,0,'leotheras SAY_NIGHTELF_SLAY3'),
++(-1548018,'No! NO! What have you done?! I am the master, do you hear me? I... aaghh... Can\'t... contain him...',11313,1,0,'leotheras SAY_FINAL_FORM'),
++(-1548019,'At last I am liberated. It has been too long since I have tasted true freedom!',11309,1,0,'leotheras SAY_FREE'),
++(-1548020,'You cannot kill me! Fools, I\'ll be back! I\'ll... aarghh...',11317,1,0,'leotheras SAY_DEATH'),
++
++(-1548021,'Guards, attention! We have visitors...',11277,1,0,'karathress SAY_AGGRO'),
++(-1548022,'Your overconfidence will be your undoing! Guards, lend me your strength!',11278,1,0,'karathress SAY_GAIN_BLESSING'),
++(-1548023,'Go on, kill them! I\'ll be the better for it!',11279,1,0,'karathress SAY_GAIN_ABILITY1'),
++(-1548024,'I am more powerful than ever!',11280,1,0,'karathress SAY_GAIN_ABILITY2'),
++(-1548025,'More knowledge, more power!',11281,1,0,'karathress SAY_GAIN_ABILITY3'),
++(-1548026,'Land-dwelling scum!',11282,1,0,'karathress SAY_SLAY1'),
++(-1548027,'Alana be\'lendor!',11283,1,0,'karathress SAY_SLAY2'),
++(-1548028,'I am rid of you.',11284,1,0,'karathress SAY_SLAY3'),
++(-1548029,'Her ... excellency ... awaits!',11285,1,0,'karathress SAY_DEATH'),
++
++(-1548030,'Flood of the deep, take you!',11321,1,0,'morogrim SAY_AGGRO'),
++(-1548031,'By the Tides, kill them at once!',11322,1,0,'morogrim SAY_SUMMON1'),
++(-1548032,'Destroy them my subjects!',11323,1,0,'morogrim SAY_SUMMON2'),
++(-1548033,'There is nowhere to hide!',11324,1,0,'morogrim SAY_SUMMON_BUBL1'),
++(-1548034,'Soon it will be finished!',11325,1,0,'morogrim SAY_SUMMON_BUBL2'),
++(-1548035,'It is done!',11326,1,0,'morogrim SAY_SLAY1'),
++(-1548036,'Strugging only makes it worse.',11327,1,0,'morogrim SAY_SLAY2'),
++(-1548037,'Only the strong survive.',11328,1,0,'morogrim SAY_SLAY3'),
++(-1548038,'Great... currents of... Ageon.',11329,1,0,'morogrim SAY_DEATH'),
++(-1548039,'sends his enemies to their watery graves!',0,2,0,'morogrim EMOTE_WATERY_GRAVE'),
++(-1548040,'The violent earthquake has alerted nearby murlocs!',0,3,0,'morogrim EMOTE_EARTHQUAKE'),
++(-1548041,'summons Watery Globules!',0,2,0,'morogrim EMOTE_WATERY_GLOBULES'),
++
++(-1548042,'Water is life. It has become a rare commodity here in Outland. A commodity that we alone shall control. We are the Highborne, and the time has come at last for us to retake our rightful place in the world!',11531,1,0,'vashj SAY_INTRO'),
++(-1548043,'I\'ll split you from stem to stern!',11532,1,0,'vashj SAY_AGGRO1'),
++(-1548044,'Victory to Lord Illidan!',11533,1,0,'vashj SAY_AGGRO2'),
++(-1548045,'I spit on you, surface filth!',11534,1,0,'vashj SAY_AGGRO3'),
++(-1548046,'Death to the outsiders!',11535,1,0,'vashj SAY_AGGRO4'),
++(-1548047,'I did not wish to lower myself by engaging your kind, but you leave me little choice!',11538,1,0,'vashj SAY_PHASE1'),
++(-1548048,'The time is now! Leave none standing!',11539,1,0,'vashj SAY_PHASE2'),
++(-1548049,'You may want to take cover.',11540,1,0,'vashj SAY_PHASE3'),
++(-1548050,'Straight to the heart!',11536,1,0,'vashj SAY_BOWSHOT1'),
++(-1548051,'Seek your mark!',11537,1,0,'vashj SAY_BOWSHOT2'),
++(-1548052,'Your time ends now!',11541,1,0,'vashj SAY_SLAY1'),
++(-1548053,'You have failed!',11542,1,0,'vashj SAY_SLAY2'),
++(-1548054,'Be\'lamere an\'delay',11543,1,0,'vashj SAY_SLAY3'),
++(-1548055,'Lord Illidan, I... I am... sorry.',11544,1,0,'vashj SAY_DEATH');
++
++-- -1 550 000 THE EYE
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1550000,'Alert, you are marked for extermination!',11213,1,0,'voidreaver SAY_AGGRO'),
++(-1550001,'Extermination, successful.',11215,1,0,'voidreaver SAY_SLAY1'),
++(-1550002,'Imbecile life form, no longer functional.',11216,1,0,'voidreaver SAY_SLAY2'),
++(-1550003,'Threat neutralized.',11217,1,0,'voidreaver SAY_SLAY3'),
++(-1550004,'Systems... shutting... down...',11214,1,0,'voidreaver SAY_DEATH'),
++(-1550005,'Alternative measure commencing...',11218,1,0,'voidreaver SAY_POUNDING1'),
++(-1550006,'Calculating force parameters...',11219,1,0,'voidreaver SAY_POUNDING2'),
++
++(-1550007,'Tal anu\'men no Sin\'dorei!',11134,1,0,'solarian SAY_AGGRO'),
++(-1550008,'Ha ha ha! You are hopelessly outmatched!',11139,1,0,'solarian SAY_SUMMON1'),
++(-1550009,'I will crush your delusions of grandeur!',11140,1,0,'solarian SAY_SUMMON2'),
++(-1550010,'Your soul belongs to the Abyss!',11136,1,0,'solarian SAY_KILL1'),
++(-1550011,'By the blood of the Highborne!',11137,1,0,'solarian SAY_KILL2'),
++(-1550012,'For the Sunwell!',11138,1,0,'solarian SAY_KILL3'),
++(-1550013,'The warmth of the sun... awaits.',11135,1,0,'solarian SAY_DEATH'),
++(-1550014,'Enough of this! Now I call upon the fury of the cosmos itself.',0,1,0,'solarian SAY_VOIDA'),
++(-1550015,'I become ONE... with the VOID!',0,1,0,'solarian SAY_VOIDB'),
++
++(-1550016,'Energy. Power. My people are addicted to it... a dependence made manifest after the Sunwell was destroyed. Welcome... to the future. A pity you are too late to stop it. No one can stop me now! Selama ashal\'anore!',11256,1,0,'kaelthas SAY_INTRO'),
++(-1550017,'Capernian will see to it that your stay here is a short one.',11257,1,0,'kaelthas SAY_INTRO_CAPERNIAN'),
++(-1550018,'Well done, you have proven worthy to test your skills against my master engineer, Telonicus.',11258,1,0,'kaelthas SAY_INTRO_TELONICUS'),
++(-1550019,'Let us see how your nerves hold up against the Darkener, Thaladred.',11259,1,0,'kaelthas SAY_INTRO_THALADRED'),
++(-1550020,'You have persevered against some of my best advisors... but none can withstand the might of the Blood Hammer. Behold, Lord Sanguinar!',11260,1,0,'kaelthas SAY_INTRO_SANGUINAR'),
++(-1550021,'As you see, I have many weapons in my arsenal...',11261,1,0,'kaelthas SAY_PHASE2_WEAPON'),
++(-1550022,'Perhaps I underestimated you. It would be unfair to make you fight all four advisors at once, but... fair treatment was never shown to my people. I\'m just returning the favor.',11262,1,0,'kaelthas SAY_PHASE3_ADVANCE'),
++(-1550023,'Alas, sometimes one must take matters into one\'s own hands. Balamore shanal!',11263,1,0,'kaelthas SAY_PHASE4_INTRO2'),
++(-1550024,'I have not come this far to be stopped! The future I have planned will not be jeopardized! Now you will taste true power!!',11273,1,0,'kaelthas SAY_PHASE5_NUTS'),
++(-1550025,'You will not prevail.',11270,1,0,'kaelthas SAY_SLAY1'),
++(-1550026,'You gambled...and lost.',11271,1,0,'kaelthas SAY_SLAY2'),
++(-1550027,'This was Child\'s play.',11272,1,0,'kaelthas SAY_SLAY3'),
++(-1550028,'Obey me.',11268,1,0,'kaelthas SAY_MINDCONTROL1'),
++(-1550029,'Bow to my will.',11269,1,0,'kaelthas SAY_MINDCONTROL2'),
++(-1550030,'Let us see how you fare when your world is turned upside down.',11264,1,0,'kaelthas SAY_GRAVITYLAPSE1'),
++(-1550031,'Having trouble staying grounded?',11265,1,0,'kaelthas SAY_GRAVITYLAPSE2'),
++(-1550032,'Anara\'nel belore!',11267,1,0,'kaelthas SAY_SUMMON_PHOENIX1'),
++(-1550033,'By the power of the sun!',11266,1,0,'kaelthas SAY_SUMMON_PHOENIX2'),
++(-1550034,'For...Quel...thalas!',11274,1,0,'kaelthas SAY_DEATH'),
++
++(-1550035,'Prepare yourselves!',11203,1,0,'thaladred SAY_THALADRED_AGGRO'),
++(-1550036,'Forgive me, my prince! I have... failed.',11204,1,0,'thaladred SAY_THALADRED_DEATH'),
++(-1550037,'sets his gaze on $N!',0,2,0,'thaladred EMOTE_THALADRED_GAZE'),
++
++(-1550038,'Blood for blood!',11152,1,0,'sanguinar SAY_SANGUINAR_AGGRO'),
++(-1550039,'NO! I ...will... not...',11153,1,0,'sanguinar SAY_SANGUINAR_DEATH'),
++
++(-1550040,'The sin\'dore reign supreme!',11117,1,0,'capernian SAY_CAPERNIAN_AGGRO'),
++(-1550041,'This is not over!',11118,1,0,'capernian SAY_CAPERNIAN_DEATH'),
++
++(-1550042,'Anar\'alah belore!',11157,1,0,'telonicus SAY_TELONICUS_AGGRO'),
++(-1550043,'More perils... await',11158,1,0,'telonicus SAY_TELONICUS_DEATH');
++
++-- -1 552 000 THE ARCATRAZ
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1552000,'It is a small matter to control the mind of the weak... for I bear allegiance to powers untouched by time, unmoved by fate. No force on this world or beyond harbors the strength to bend our knee... not even the mighty Legion!',11122,1,0,'skyriss SAY_INTRO'),
++(-1552001,'Bear witness to the agent of your demise!',11123,1,0,'skyriss SAY_AGGRO'),
++(-1552002,'Your fate is written!',11124,1,0,'skyriss SAY_KILL_1'),
++(-1552003,'The chaos I have sown here is but a taste...',11125,1,0,'skyriss SAY_KILL_2'),
++(-1552004,'You will do my bidding, weakling.',11127,1,0,'skyriss SAY_MIND_1'),
++(-1552005,'Your will is no longer your own.',11128,1,0,'skyriss SAY_MIND_2'),
++(-1552006,'Flee in terror!',11129,1,0,'skyriss SAY_FEAR_1'),
++(-1552007,'I will show you horrors undreamed of!',11130,1,0,'skyriss SAY_FEAR_2'),
++(-1552008,'We span the universe, as countless as the stars!',11131,1,0,'skyriss SAY_IMAGE'),
++(-1552009,'I am merely one of... infinite multitudes.',11126,1,0,'skyriss SAY_DEATH'),
++
++(-1552010,'Where in Bonzo\'s brass buttons am I? And who are-- yaaghh, that\'s one mother of a headache!',11171,1,0,'millhouse SAY_INTRO_1'),
++(-1552011,'\"Lowly\"? I don\'t care who you are friend, no one refers to the mighty Millhouse Manastorm as \"Lowly\"! I have no idea what goes on here, but I will gladly join your fight against this impudent imbecile! Prepare to defend yourself, cretin!',11172,1,0,'millhouse SAY_INTRO_2'),
++(-1552012,'I just need to get some things ready first. You guys go ahead and get started. I need to summon up some water...',11173,1,0,'millhouse SAY_WATER'),
++(-1552013,'Fantastic! Next, some protective spells. Yes! Now we\'re cookin\'',11174,1,0,'millhouse SAY_BUFFS'),
++(-1552014,'And of course i\'ll need some mana. You guys are gonna love this, just wait.',11175,1,0,'millhouse SAY_DRINK'),
++(-1552015,'Aaalllriiiight!! Who ordered up an extra large can of whoop-ass?',11176,1,0,'millhouse SAY_READY'),
++(-1552016,'I didn\'t even break a sweat on that one.',11177,1,0,'millhouse SAY_KILL_1'),
++(-1552017,'You guys, feel free to jump in anytime.',11178,1,0,'millhouse SAY_KILL_2'),
++(-1552018,'I\'m gonna light you up, sweet cheeks!',11179,1,0,'millhouse SAY_PYRO'),
++(-1552019,'Ice, ice, baby!',11180,1,0,'millhouse SAY_ICEBLOCK'),
++(-1552020,'Heal me! Oh, for the love of all that is holy, HEAL me! I\'m dying!',11181,1,0,'millhouse SAY_LOWHP'),
++(-1552021,'You\'ll be hearing from my lawyer...',11182,1,0,'millhouse SAY_DEATH'),
++(-1552022,'Who\'s bad? Who\'s bad? That\'s right: we bad!',11183,1,0,'millhouse SAY_COMPLETE'),
++
++(-1552023,'I knew the prince would be angry but, I... I have not been myself. I had to let them out! The great one speaks to me, you see. Wait--outsiders. Kael\'thas did not send you! Good... I\'ll just tell the prince you released the prisoners!',11222,1,0,'mellichar YELL_INTRO1'),
++(-1552024,'The naaru kept some of the most dangerous beings in existence here in these cells. Let me introduce you to another...',11223,1,0,'mellichar YELL_INTRO2'),
++(-1552025,'Yes, yes... another! Your will is mine!',11224,1,0,'mellichar YELL_RELEASE1'),
++(-1552026,'Behold another terrifying creature of incomprehensible power!',11225,1,0,'mellichar YELL_RELEASE2A'),
++(-1552027,'What is this? A lowly gnome? I will do better, O\'great one.',11226,1,0,'mellichar YELL_RELEASE2B'),
++(-1552028,'Anarchy! Bedlam! Oh, you are so wise! Yes, I see it now, of course!',11227,1,0,'mellichar YELL_RELEASE3'),
++(-1552029,'One final cell remains. Yes, O\'great one, right away!',11228,1,0,'mellichar YELL_RELEASE4'),
++(-1552030,'Welcome, O\'great one. I am your humble servant.',11229,1,0,'mellichar YELL_WELCOME');
++
++-- -1 553 000 THE BOTANICA
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1553000,'What are you doing? These specimens are very delicate!',11144,1,0,'freywinn SAY_AGGRO'),
++(-1553001,'Your life cycle is now concluded!',11145,1,0,'freywinn SAY_KILL_1'),
++(-1553002,'You will feed the worms.',11146,1,0,'freywinn SAY_KILL_2'),
++(-1553003,'Endorel aluminor!',11147,1,0,'freywinn SAY_TREE_1'),
++(-1553004,'Nature bends to my will!',11148,1,0,'freywinn SAY_TREE_2'),
++(-1553005,'The specimens...must be preserved.',11149,1,0,'freywinn SAY_DEATH'),
++
++(-1553006,'emits a strange noise.',0,2,0,'laj EMOTE_SUMMON'),
++
++(-1553007,'Who disturbs this sanctuary?',11230,1,0,'warp SAY_AGGRO'),
++(-1553008,'You must die! But wait: this does not--No, no... you must die!',11231,1,0,'warp SAY_SLAY_1'),
++(-1553009,'What am I doing? Why do I...',11232,1,0,'warp SAY_SLAY_2'),
++(-1553010,'Children, come to me!',11233,1,0,'warp SAY_SUMMON_1'),
++(-1553011,'Maybe this is not--No, we fight! Come to my aid.',11234,1,0,'warp SAY_SUMMON_2'),
++(-1553012,'So... confused. Do not... belong here!',11235,1,0,'warp SAY_DEATH');
++
++-- -1 554 000 THE MECHANAR
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1554000,'I predict a painful death.',11101,1,0,'gyro SAY_AGGRO'),
++(-1554001,'Measure twice; cut once!',11104,1,0,'gyro SAY_SAW_ATTACK1'),
++(-1554002,'If my division is correct, you should be quite dead.',11105,1,0,'gyro SAY_SAW_ATTACK2'),
++(-1554003,'Your strategy was flawed!',11102,1,0,'gyro SAY_SLAY1'),
++(-1554004,'Yes, the only logical outcome.',11103,1,0,'gyro SAY_SLAY2'),
++(-1554005,'An unforseen... contingency',11106,1,0,'gyro SAY_DEATH'),
++
++(-1554006,'You have approximately five seconds to live.',11109,1,0,'ironhand SAY_AGGRO_1'),
++(-1554007,'With the precise angle and velocity...',11112,1,0,'ironhand SAY_HAMMER_1'),
++(-1554008,'Low tech yet quiet effective!',11113,1,0,'ironhand SAY_HAMMER_2'),
++(-1554009,'A foregone conclusion.',11110,1,0,'ironhand SAY_SLAY_1'),
++(-1554010,'The processing will continue a schedule!',11111,1,0,'ironhand SAY_SLAY_2'),
++(-1554011,'My calculations did not...',11114,1,0,'ironhand SAY_DEATH_1'),
++(-1554012,'raises his hammer menacingly...',0,3,0,'ironhand EMOTE_HAMMER'),
++
++(-1554013,'Don\'t value your life very much, do you?',11186,1,0,'sepethrea SAY_AGGRO'),
++(-1554014,'I am not alone.',11191,1,0,'sepethrea SAY_SUMMON'),
++(-1554015,'Think you can take the heat?',11189,1,0,'sepethrea SAY_DRAGONS_BREATH_1'),
++(-1554016,'Anar\'endal dracon!',11190,1,0,'sepethrea SAY_DRAGONS_BREATH_2'),
++(-1554017,'And don\'t come back!',11187,1,0,'sepethrea SAY_SLAY1'),
++(-1554018,'En\'dala finel el\'dal',11188,1,0,'sepethrea SAY_SLAY2'),
++(-1554019,'Anu... bala belore...alon.',11192,1,0,'sepethrea SAY_DEATH'),
++
++(-1554020,'We are on a strict timetable. You will not interfere!',11193,1,0,'pathaleon SAY_AGGRO'),
++(-1554021,'I\'m looking for a team player...',11197,1,0,'pathaleon SAY_DOMINATION_1'),
++(-1554022,'You work for me now!',11198,1,0,'pathaleon SAY_DOMINATION_2'),
++(-1554023,'Time to supplement my work force.',11196,1,0,'pathaleon SAY_SUMMON'),
++(-1554024,'I prefeer to be hands-on...',11199,1,0,'pathaleon SAY_ENRAGE'),
++(-1554025,'A minor inconvenience.',11194,1,0,'pathaleon SAY_SLAY_1'),
++(-1554026,'Looks like you lose.',11195,1,0,'pathaleon SAY_SLAY_2'),
++(-1554027,'The project will... continue.',11200,1,0,'pathaleon SAY_DEATH');
++
++-- -1 555 000 SHADOW LABYRINTH
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1555000,'Infidels have invaded the sanctuary! Sniveling pests...You have yet to learn the true meaning of agony!',10473,1,0,'hellmaw SAY_INTRO'),
++(-1555001,'Pathetic mortals! You will pay dearly!',10475,1,0,'hellmaw SAY_AGGRO1'),
++(-1555002,'I will break you!',10476,1,0,'hellmaw SAY_AGGRO2'),
++(-1555003,'Finally! Something to relieve the tedium!',10477,1,0,'hellmaw SAY_AGGRO3'),
++(-1555004,'Aid me, you fools, before it\'s too late!',10474,1,0,'hellmaw SAY_HELP'),
++(-1555005,'Do you fear death?',10478,1,0,'hellmaw SAY_SLAY1'),
++(-1555006,'This is the part I enjoy most.',10479,1,0,'hellmaw SAY_SLAY2'),
++(-1555007,'Do not...grow...overconfident, mortal.',10480,1,0,'hellmaw SAY_DEATH'),
++
++(-1555008,'All flesh must burn.',10482,1,0,'blackhearth SAY_INTRO1'),
++(-1555009,'All creation must be unmade!',10483,1,0,'blackhearth SAY_INTRO2'),
++(-1555010,'Power will be yours!',10484,1,0,'blackhearth SAY_INTRO3'),
++(-1555011,'You\'ll be sorry!',10486,1,0,'blackhearth SAY_AGGRO1'),
++(-1555012,'Time for fun!',10487,1,0,'blackhearth SAY_AGGRO2'),
++(-1555013,'I see dead people!',10488,1,0,'blackhearth SAY_AGGRO3'),
++(-1555014,'No comin\' back for you!',10489,1,0,'blackhearth SAY_SLAY1'),
++(-1555015,'Nice try!',10490,1,0,'blackhearth SAY_SLAY2'),
++(-1555016,'Help us, hurry!',10485,1,0,'blackhearth SAY_HELP'),
++(-1555017,'This... no... good...',10491,1,0,'blackhearth SAY_DEATH'),
++
++(-1555018,'Be ready for Dark One\'s return.',10492,1,0,'blackhearth SAY2_INTRO1'),
++(-1555019,'So we have place in new universe.',10493,1,0,'blackhearth SAY2_INTRO2'),
++(-1555020,'Dark one promise!',10494,1,0,'blackhearth SAY2_INTRO3'),
++(-1555021,'You\'ll be sorry!',10496,1,0,'blackhearth SAY2_AGGRO1'),
++(-1555022,'Time to kill!',10497,1,0,'blackhearth SAY2_AGGRO2'),
++(-1555023,'You be dead people!',10498,1,0,'blackhearth SAY2_AGGRO3'),
++(-1555024,'Now you gone for good.',10499,1,0,'blackhearth SAY2_SLAY1'),
++(-1555025,'You failed, haha haha',10500,1,0,'blackhearth SAY2_SLAY2'),
++(-1555026,'Help us, hurry!',10495,1,0,'blackhearth SAY2_HELP'),
++(-1555027,'Arrgh, aah...ahhh',10501,1,0,'blackhearth SAY2_DEATH'),
++
++(-1555028,'Keep your minds focused for the days of reckoning are close at hand. Soon, the destroyer of worlds will return to make good on his promise. Soon the destruction of all that is will begin!',10522,1,0,'vorpil SAY_INTRO'),
++(-1555029,'I\'ll make an offering of your blood!',10524,1,0,'vorpil SAY_AGGRO1'),
++(-1555030,'You\'ll be a fine example, for the others.',10525,1,0,'vorpil SAY_AGGRO2'),
++(-1555031,'Good, a worthy sacrifice.',10526,1,0,'vorpil SAY_AGGRO3'),
++(-1555032,'Come to my aid, heed your master now!',10523,1,0,'vorpil SAY_HELP'),
++(-1555033,'I serve with pride.',10527,1,0,'vorpil SAY_SLAY1'),
++(-1555034,'Your death is for the greater cause!',10528,1,0,'vorpil SAY_SLAY2'),
++(-1555035,'I give my life... Gladly.',10529,1,0,'vorpil SAY_DEATH'),
++
++(-1555036,'draws energy from the air.',0,2,0,'murmur EMOTE_SONIC_BOOM');
++
++-- -1 556 000 SETHEKK HALLS
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1556000,'I have pets....of my own!',10502,1,0,'syth SAY_SUMMON'),
++(-1556001,'Hrrmm.. Time to.. hrrm.. make my move.',10503,1,0,'syth SAY_AGGRO_1'),
++(-1556002,'Nice pets..hrm.. Yes! ',10504,1,0,'syth SAY_AGGRO_2'),
++(-1556003,'Nice pets have.. weapons. No so....nice.',10505,1,0,'syth SAY_AGGRO_3'),
++(-1556004,'Death.. meeting life is.. ',10506,1,0,'syth SAY_SLAY_1'),
++(-1556005,'Uhn.. Be free..',10507,1,0,'syth SAY_SLAY_2'),
++(-1556006,'No more life..hrm. No more pain. ',10508,1,0,'syth SAY_DEATH'),
++
++(-1556007,'..Trinkets yes pretty Trinkets....power, great power...power in Trinkets..',10557,1,0,'ikiss SAY_INTRO'),
++(-1556008,'You make war on Ikiss?..',10554,1,0,'ikiss SAY_AGGRO_1'),
++(-1556009,'Ikiss cut you pretty....slice you. Yes!',10555,1,0,'ikiss SAY_AGGRO_2'),
++(-1556010,'No escape for....for you',10556,1,0,'ikiss SAY_AGGRO_3'),
++(-1556011,'You die....stay away from Trinkets',10558,1,0,'ikiss SAY_SLAY_1'),
++(-1556012,'',10559,1,0,'ikiss SAY_SLAY_2'),
++(-1556013,'Ikiss will not....die',10560,1,0,'ikiss SAY_DEATH'),
++(-1556015,'begins to channel arcane energy...',0,3,0,'ikiss EMOTE_ARCANE_EXP');
++
++-- -1 557 000 MANA TOMBS
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1557000,'What is this? You must forgive me, but I was not expecting company. As you can see, we are somewhat preoccupied right now. But no matter. As I am a gracious host, I will tend to you... personally.',10539,1,0,'shaffar SAY_INTRO'),
++(-1557001,'We have not yet been properly introduced.',10541,1,0,'shaffar SAY_AGGRO_1'),
++(-1557002,'An epic battle. How exciting!',10542,1,0,'shaffar SAY_AGGRO_2'),
++(-1557003,'I have longed for a good adventure.',10543,1,0,'shaffar SAY_AGGRO_3'),
++(-1557004,'It has been... entertaining.',10544,1,0,'shaffar SAY_SLAY_1'),
++(-1557005,'And now we part company.',10545,1,0,'shaffar SAY_SLAY_2'),
++(-1557006,'I have such fascinating things to show you.',10540,1,0,'shaffar SAY_SUMMON'),
++(-1557007,'I must bid you... farewell.',10546,1,0,'shaffar SAY_DEAD'),
++
++(-1557008,'I will feed on your soul.',10561,1,0,'pandemonius SAY_AGGRO_1'),
++(-1557009,'So... full of life!',10562,1,0,'pandemonius SAY_AGGRO_2'),
++(-1557010,'Do not... resist.',10563,1,0,'pandemonius SAY_AGGRO_3'),
++(-1557011,'Yes! I am... empowered!',10564,1,0,'pandemonius SAY_KILL_1'),
++(-1557012,'More... I must have more!',10565,1,0,'pandemonius SAY_KILL_2'),
++(-1557013,'To the void... once... more..',10566,1,0,'pandemonius SAY_DEATH'),
++(-1557014,'shifts into the void...',0,3,0,'pandemonius EMOTE_DARK_SHELL');
++
++-- -1 558 000 AUCHENAI CRYPTS
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1558000,'You have defiled the resting place of our ancestors. For this offense, there can be but one punishment. It is fitting that you have come to a place of the dead... for you will soon be joining them.',10509,1,0,'maladaar SAY_INTRO'),
++(-1558001,'Rise my fallen brothers. Take form and fight!',10512,1,0,'maladaar SAY_SUMMON'),
++(-1558002,'You will pay with your life!',10513,1,0,'maladaar SAY_AGGRO_1'),
++(-1558003,'There\'s no turning back now!',10514,1,0,'maladaar SAY_AGGRO_2'),
++(-1558004,'Serve your penitence!',10515,1,0,'maladaar SAY_AGGRO_3'),
++(-1558005,'Let your mind be clouded.',10510,1,0,'maladaar SAY_ROAR'),
++(-1558006,'Stare into the darkness of your soul.',10511,1,0,'maladaar SAY_SOUL_CLEAVE'),
++(-1558007,'These walls will be your doom.',10516,1,0,'maladaar SAY_SLAY_1'),
++(-1558008,' Now, you\'ll stay for eternity!',10517,1,0,'maladaar SAY_SLAY_2'),
++(-1558009,'This is... where.. I belong...',10518,1,0,'maladaar SAY_DEATH');
++
++-- -1 560 000 ESCAPE FROM DURNHOLDE (OLD HILLSBRAD)
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1560000,'Thrall! You didn\'t really think you would escape did you? You and your allies shall answer to Blackmoore - after I\'ve had my fun!',10406,1,0,'skarloc SAY_ENTER'),
++(-1560001,'You\'re a slave. That\'s all you\'ll ever be.',10407,1,0,'skarloc SAY_TAUNT1'),
++(-1560002,'I don\'t know what Blackmoore sees in you. For my money, you\'re just another ignorant savage!',10408,1,0,'skarloc SAY_TAUNT2'),
++(-1560003,'Thrall will never be free!',10409,1,0,'skarloc SAY_SLAY1'),
++(-1560004,'Did you really think you would leave here alive?',10410,1,0,'skarloc SAY_SLAY2'),
++(-1560005,'Guards! Urgh..Guards..!',10411,1,0,'skarloc SAY_DEATH'),
++
++(-1560006,'You there, fetch water quickly! Get these flames out before they spread to the rest of the keep! Hurry, damn you!',10428,1,0,'lieutenant_drake SAY_ENTER'),
++(-1560007,'I know what you\'re up to, and I mean to put an end to it, permanently!',10429,1,0,'lieutenant_drake SAY_AGGRO'),
++(-1560008,'No more middling for you.',10432,1,0,'lieutenant_drake SAY_SLAY1'),
++(-1560009,'You will not interfere!',10433,1,0,'lieutenant_drake SAY_SLAY2'),
++(-1560010,'Time to bleed!',10430,1,0,'lieutenant_drake SAY_MORTAL'),
++(-1560011,'Run, you blasted cowards!',10431,1,0,'lieutenant_drake SAY_SHOUT'),
++(-1560012,'Thrall... must not... go free.',10434,1,0,'lieutenant_drake SAY_DEATH'),
++
++(-1560013,'Thrall! Come outside and face your fate!',10418,1,0,'epoch SAY_ENTER1'),
++(-1560014,'Taretha\'s life hangs in the balance. Surely you care for her. Surely you wish to save her...',10419,1,0,'epoch SAY_ENTER2'),
++(-1560015,'Ah, there you are. I had hoped to accomplish this with a bit of subtlety, but I suppose direct confrontation was inevitable. Your future, Thrall, must not come to pass and so...you and your troublesome friends must die!',10420,1,0,'epoch SAY_ENTER3'),
++(-1560016,'Enough! I will erase your very existence!',10421,1,0,'epoch SAY_AGGRO1'),
++(-1560017,'You cannot fight fate!',10422,1,0,'epoch SAY_AGGRO2'),
++(-1560018,'You are...irrelevant.',10425,1,0,'epoch SAY_SLAY1'),
++(-1560019,'Thrall will remain a slave. Taretha will die. You have failed.',10426,1,0,'epoch SAY_SLAY2'),
++(-1560020,'Not so fast!',10423,1,0,'epoch SAY_BREATH1'),
++(-1560021,'Struggle as much as you like!',10424,1,0,'epoch SAY_BREATH2'),
++(-1560022,'No!...The master... will not... be pleased.',10427,1,0,'epoch SAY_DEATH');
++
++-- -1 564 000 BLACK TEMPLE
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1564000,'You will die in the name of Lady Vashj!',11450,1,0,'SAY_AGGRO'),
++(-1564001,'Stick around!',11451,1,0,'SAY_NEEDLE1'),
++(-1564002,'I\'ll deal with you later!',11452,1,0,'SAY_NEEDLE2'),
++(-1564003,'Your success was short lived!',11455,1,0,'SAY_SLAY1'),
++(-1564004,'Time for you to go!',11456,1,0,'SAY_SLAY2'),
++(-1564005,'Bel\'anen dal\'lorei!',11453,1,0,'SAY_SPECIAL1'),
++(-1564006,'Blood will flow!',11454,1,0,'SAY_SPECIAL2'),
++(-1564007,'Bal\'amer ch\'itah!',11457,1,0,'SAY_ENRAGE1'),
++(-1564008,'My patience has ran out! Die, DIE!',11458,1,0,'SAY_ENRAGE2'),
++(-1564009,'Lord Illidan will... crush you.',11459,1,0,'SAY_DEATH'),
++
++(-1564010,'%s acquires a new target!',0,3,0,'supremus EMOTE_NEW_TARGET'),
++(-1564011,'%s punches the ground in anger!',0,3,0,'supremus EMOTE_PUNCH_GROUND'),
++(-1564012,'The ground begins to crack open!',0,3,0,'supremus EMOTE_GROUND_CRACK'),
++
++(-1564013,'No! Not yet...',11385,1,0,'akama shade SAY_LOW_HEALTH'),
++(-1564014,'I will not last much longer...',11386,1,0,'akama shade SAY_DEATH'),
++(-1564015,'Come out from the shadows! I\'ve returned to lead you against our true enemy! Shed your chains and raise your weapons against your Illidari masters!',0,1,0,'akama shade SAY_FREE'),
++(-1564016,'Hail our leader! Hail Akama!',0,1,0,'akama shade broken SAY_BROKEN_FREE_01'),
++(-1564017,'Hail Akama!',0,1,0,'akama shade broken SAY_BROKEN_FREE_02'),
++
++(-1564018,'You play, you pay.',11501,1,0,'shahraz SAY_TAUNT1'),
++(-1564019,'I\'m not impressed.',11502,1,0,'shahraz SAY_TAUNT2'),
++(-1564020,'Enjoying yourselves?',11503,1,0,'shahraz SAY_TAUNT3'),
++(-1564021,'So... business or pleasure?',11504,1,0,'shahraz SAY_AGGRO'),
++(-1564022,'You seem a little tense.',11505,1,0,'shahraz SAY_SPELL1'),
++(-1564023,'Don\'t be shy.',11506,1,0,'shahraz SAY_SPELL2'),
++(-1564024,'I\'m all... yours.',11507,1,0,'shahraz SAY_SPELL3'),
++(-1564025,'Easy come, easy go.',11508,1,0,'shahraz SAY_SLAY1'),
++(-1564026,'So much for a happy ending.',11509,1,0,'shahraz SAY_SLAY2'),
++(-1564027,'Stop toying with my emotions!',11510,1,0,'shahraz SAY_ENRAGE'),
++(-1564028,'I wasn\'t... finished.',11511,1,0,'shahraz SAY_DEATH'),
++
++(-1564029,'Horde will... crush you.',11432,1,0,'bloodboil SOUND_AGGRO'),
++(-1564030,'Time to feast!',11433,1,0,'bloodboil SAY_SLAY1'),
++(-1564031,'More! I want more!',11434,1,0,'bloodboil SAY_SLAY2'),
++(-1564032,'Drink your blood! Eat your flesh!',11435,1,0,'bloodboil SAY_SPECIAL1'),
++(-1564033,'I hunger!',11436,1,0,'bloodboil SAY_SPECIAL2'),
++(-1564034,'',11437,1,0,'bloodboil SAY_ENRAGE1'),
++(-1564035,'I\'ll rip the meat from your bones!',11438,1,0,'bloodboil SAY_ENRAGE2'),
++(-1564036,'Aaaahrg...',11439,1,0,'bloodboil SAY_DEATH'),
++
++(-1564037,'I was the first, you know. For me, the wheel of death has spun many times. So much time has passed. I have a lot of catching up to do...',11512,1,0,'teron SAY_INTRO'),
++(-1564038,'Vengeance is mine!',11513,1,0,'teron SAY_AGGRO'),
++(-1564039,'I have use for you!',11514,1,0,'teron SAY_SLAY1'),
++(-1564040,'It gets worse...',11515,1,0,'teron SAY_SLAY2'),
++(-1564041,'What are you afraid of?',11517,1,0,'teron SAY_SPELL1'),
++(-1564042,'Death... really isn\'t so bad.',11516,1,0,'teron SAY_SPELL2'),
++(-1564043,'Give in!',11518,1,0,'teron SAY_SPECIAL1'),
++(-1564044,'I have something for you...',11519,1,0,'teron SAY_SPECIAL2'),
++(-1564045,'YOU WILL SHOW THE PROPER RESPECT!',11520,1,0,'teron SAY_ENRAGE'),
++(-1564046,'The wheel...spins...again....',11521,1,0,'teron SAY_DEATH'),
++
++(-1564047,'Pain and suffering are all that await you!',11415,1,0,'essence SUFF_SAY_FREED'),
++(-1564048,'Don\'t leave me alone!',11416,1,0,'essence SUFF_SAY_AGGRO'),
++(-1564049,'Look at what you make me do!',11417,1,0,'essence SUFF_SAY_SLAY1'),
++(-1564050,'I didn\'t ask for this!',11418,1,0,'essence SUFF_SAY_SLAY2'),
++(-1564051,'The pain is only beginning!',11419,1,0,'essence SUFF_SAY_SLAY3'),
++(-1564052,'I don\'t want to go back!',11420,1,0,'essence SUFF_SAY_RECAP'),
++(-1564053,'Now what do I do?',11421,1,0,'essence SUFF_SAY_AFTER'),
++(-1564054,'%s becomes enraged!',0,3,0,'essence SUFF_EMOTE_ENRAGE'),
++
++(-1564055,'You can have anything you desire... for a price.',11408,1,0,'essence DESI_SAY_FREED'),
++(-1564056,'Fulfilment is at hand!',11409,1,0,'essence DESI_SAY_SLAY1'),
++(-1564057,'Yes... you\'ll stay with us now...',11410,1,0,'essence DESI_SAY_SLAY2'),
++(-1564058,'Your reach exceeds your grasp.',11412,1,0,'essence DESI_SAY_SLAY3'),
++(-1564059,'Be careful what you wish for...',11411,1,0,'essence DESI_SAY_SPEC'),
++(-1564060,'I\'ll be waiting...',11413,1,0,'essence DESI_SAY_RECAP'),
++(-1564061,'I won\'t be far...',11414,1,0,'essence DESI_SAY_AFTER'),
++
++(-1564062,'Beware: I live!',11399,1,0,'essence ANGER_SAY_FREED'),
++(-1564063,'So... foolish.',11400,1,0,'essence ANGER_SAY_FREED2'),
++(-1564064,'',11401,1,0,'essence ANGER_SAY_SLAY1'),
++(-1564065,'Enough. No more.',11402,1,0,'essence ANGER_SAY_SLAY2'),
++(-1564066,'On your knees!',11403,1,0,'essence ANGER_SAY_SPEC'),
++(-1564067,'Beware, coward.',11405,1,0,'essence ANGER_SAY_BEFORE'),
++(-1564068,'I won\'t... be... ignored.',11404,1,0,'essence ANGER_SAY_DEATH'),
++
++(-1564069,'You wish to test me?',11524,1,0,'council vera AGGRO'),
++(-1564070,'I have better things to do...',11422,1,0,'council gath AGGRO'),
++(-1564071,'Flee or die!',11482,1,0,'council mala AGGRO'),
++(-1564072,'Common... such a crude language. Bandal!',11440,1,0,'council zere AGGRO'),
++
++(-1564073,'Enough games!',11428,1,0,'council gath ENRAGE'),
++(-1564074,'You wish to kill me? Hahaha, you first!',11530,1,0,'council vera ENRAGE'),
++(-1564075,'For Quel\'Thalas! For the Sunwell!',11488,1,0,'council mala ENRAGE'),
++(-1564076,'Sha\'amoor sine menoor!',11446,1,0,'council zere ENRAGE'),
++
++(-1564077,'Enjoy your final moments!',11426,1,0,'council gath SPECIAL1'),
++(-1564078,'You\'re not caught up for this!',11528,1,0,'council vera SPECIAL1'),
++(-1564079,'No second chances!',11486,1,0,'council mala SPECIAL1'),
++(-1564080,'Diel fin\'al',11444,1,0,'council zere SPECIAL1'),
++
++(-1564081,'You are mine!',11427,1,0,'council gath SPECIAL2'),
++(-1564082,'Anar\'alah belore!',11529,1,0,'council vera SPECIAL2'),
++(-1564083,'I\'m full of surprises!',11487,1,0,'council mala SPECIAL2'),
++(-1564084,'Sha\'amoor ara mashal?',11445,1,0,'council zere SPECIAL2'),
++
++(-1564085,'Selama am\'oronor!',11423,1,0,'council gath SLAY'),
++(-1564086,'Valiant effort!',11525,1,0,'council vera SLAY'),
++(-1564087,'My work is done.',11483,1,0,'council mala SLAY'),
++(-1564088,'Shorel\'aran.',11441,1,0,'council zere SLAY'),
++
++(-1564089,'Well done!',11424,1,0,'council gath SLAY_COMT'),
++(-1564090,'A glorious kill!',11526,1,0,'council vera SLAY_COMT'),
++(-1564091,'As it should be!',11484,1,0,'council mala SLAY_COMT'),
++(-1564092,'Belesa menoor!',11442,1,0,'council zere SLAY_COMT'),
++
++(-1564093,'Lord Illidan... I...',11425,1,0,'council gath DEATH'),
++(-1564094,'You got lucky!',11527,1,0,'council vera DEATH'),
++(-1564095,'Destiny... awaits.',11485,1,0,'council mala DEATH'),
++(-1564096,'Diel ma\'ahn... oreindel\'o',11443,1,0,'council zere DEATH');
++
++-- -1 565 000 GRUUL'S LAIR
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1565000,'Gronn are the real power in outland.',11367,1,0,'maulgar SAY_AGGRO'),
++(-1565001,'You will not defeat the hand of Gruul!',11368,1,0,'maulgar SAY_ENRAGE'),
++(-1565002,'You won\'t kill next one so easy!',11369,1,0,'maulgar SAY_OGRE_DEATH1'),
++(-1565003,'Pah! Does not prove anything!',11370,1,0,'maulgar SAY_OGRE_DEATH2'),
++(-1565004,'I\'m not afraid of you.',11371,1,0,'maulgar SAY_OGRE_DEATH3'),
++(-1565005,'Good, now you fight me!',11372,1,0,'maulgar SAY_OGRE_DEATH4'),
++(-1565006,'You not so tough afterall!',11373,1,0,'maulgar SAY_SLAY1'),
++(-1565007,'Aha-ha ha ha!',11374,1,0,'maulgar SAY_SLAY2'),
++(-1565008,'Mulgar is king!',11375,1,0,'maulgar SAY_SLAY3'),
++(-1565009,'Gruul... will crush you...',11376,1,0,'maulgar SAY_DEATH'),
++
++(-1565010,'Come... and die.',11355,1,0,'gruul SAY_AGGRO'),
++(-1565011,'Scurry',11356,1,0,'gruul SAY_SLAM1'),
++(-1565012,'No escape',11357,1,0,'gruul SAY_SLAM2'),
++(-1565013,'Stay',11358,1,0,'gruul SAY_SHATTER1'),
++(-1565014,'Beg... for life',11359,1,0,'gruul SAY_SHATTER2'),
++(-1565015,'No more',11360,1,0,'gruul SAY_SLAY1'),
++(-1565016,'Unworthy',11361,1,0,'gruul SAY_SLAY2'),
++(-1565017,'Die',11362,1,0,'gruul SAY_SLAY3'),
++(-1565018,'Aaargh...',11363,1,0,'gruul SAY_DEATH'),
++(-1565019,'grows in size!',0,2,0,'gruul EMOTE_GROW');
++
++-- -1 568 000 ZUL'AMAN
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1568000,'Spirits of da wind be your doom!',12031,1,0,'janalai SAY_AGGRO'),
++(-1568001,'I burn ya now!',12032,1,0,'janalai SAY_FIRE_BOMBS'),
++(-1568002,'Where ma hatcha? Get to work on dem eggs!',12033,1,0,'janalai SAY_SUMMON_HATCHER'),
++(-1568003,'I show you strength... in numbers.',12034,1,0,'janalai SAY_ALL_EGGS'),
++(-1568004,'You done run outta time!',12035,1,0,'janalai SAY_BERSERK'),
++(-1568005,'It all be over now, mon!',12036,1,0,'janalai SAY_SLAY_1'),
++(-1568006,'Tazaga-choo!',12037,1,0,'janalai SAY_SLAY_2'),
++(-1568007,'Zul\'jin... got a surprise for you...',12038,1,0,'janalai SAY_DEATH'),
++(-1568008,'Come, strangers. The spirit of the dragonhawk hot be hungry for worthy souls.',12039,1,0,'janalai SAY_EVENT_STRANGERS'),
++(-1568009,'Come, friends. Your bodies gonna feed ma hatchlings, and your souls are going to feed me with power!',12040,1,0,'janalai SAY_EVENT_FRIENDS'),
++
++(-1568010,'Get da move on, guards! It be killin\' time!',12066,1,0,'nalorakk SAY_WAVE1_AGGRO'),
++(-1568011,'Guards, go already! Who you more afraid of, dem... or me?',12067,1,0,'nalorakk SAY_WAVE2_STAIR1'),
++(-1568012,'Ride now! Ride out dere and bring me back some heads!',12068,1,0,'nalorakk SAY_WAVE3_STAIR2'),
++(-1568013,'I be losin\' me patience! Go on: make dem wish dey was never born!',12069,1,0,'nalorakk SAY_WAVE4_PLATFORM'),
++(-1568014,'What could be better than servin\' da bear spirit for eternity? Come closer now. Bring your souls to me!',12078,1,0,'nalorakk SAY_EVENT1_SACRIFICE'),
++(-1568015,'Don\'t be delayin\' your fate. Come to me now. I make your sacrifice quick.',12079,1,0,'nalorakk SAY_EVENT2_SACRIFICE'),
++(-1568016,'You be dead soon enough!',12070,1,0,'nalorakk SAY_AGGRO'),
++(-1568017,'I bring da pain!',12071,1,0,'nalorakk SAY_SURGE'),
++(-1568018,'You call on da beast, you gonna get more dan you bargain for!',12072,1,0,'nalorakk SAY_TOBEAR'),
++(-1568019,'Make way for Nalorakk!',12073,1,0,'nalorakk SAY_TOTROLL'),
++(-1568020,'You had your chance, now it be too late!',12074,1,0,'nalorakk SAY_BERSERK'),
++(-1568021,'Mua-ha-ha! Now whatchoo got to say?',12075,1,0,'nalorakk SAY_SLAY1'),
++(-1568022,'Da Amani gonna rule again!',12076,1,0,'nalorakk SAY_SLAY2'),
++(-1568023,'I... be waitin\' on da udda side....',12077,1,0,'nalorakk SAY_DEATH');
++
++-- -1 580 000 SUNWELL PLATEAU
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1580000,'Aggh! No longer will I be a slave to Malygos! Challenge me and you will be destroyed!',12422,1,0,'kalecgos SAY_EVIL_AGGRO'),
++(-1580001,'I will purge you!',12423,1,0,'kalecgos SAY_EVIL_SPELL1'),
++(-1580002,'Your pain has only begun!',12424,1,0,'kalecgos SAY_EVIL_SPELL2'),
++(-1580003,'In the name of Kil\'jaeden!',12425,1,0,'kalecgos SAY_EVIL_SLAY1'),
++(-1580004,'You were warned!',12426,1,0,'kalecgos SAY_EVIL_SLAY2'),
++(-1580005,'My awakening is complete! You shall all perish!',12427,1,0,'kalecgos SAY_EVIL_ENRAGE'),
++(-1580006,'I need... your help... Cannot... resist him... much longer...',12428,1,0,'kalecgos humanoid SAY_GOOD_AGGRO'),
++(-1580007,'Aaahhh! Help me, before I lose my mind!',12429,1,0,'kalecgos humanoid SAY_GOOD_NEAR_DEATH'),
++(-1580008,'Hurry! There is not much of me left!',12430,1,0,'kalecgos humanoid SAY_GOOD_NEAR_DEATH2'),
++(-1580009,'I am forever in your debt. Once we have triumphed over Kil\'jaeden, this entire world will be in your debt as well.',12431,1,0,'kalecgos humanoid SAY_GOOD_PLRWIN'),
++(-1580010,'There will be no reprieve. My work here is nearly finished.',12451,1,0,'sathrovarr SAY_SATH_AGGRO'),
++(-1580011,'I\'m... never on... the losing... side...',12452,1,0,'sathrovarr SAY_SATH_DEATH'),
++(-1580012,'Your misery is my delight!',12453,1,0,'sathrovarr SAY_SATH_SPELL1'),
++(-1580013,'I will watch you bleed!',12454,1,0,'sathrovarr SAY_SATH_SPELL2'),
++(-1580014,'Pitious mortal!',12455,1,0,'sathrovarr SAY_SATH_SLAY1'),
++(-1580015,'Haven\'t you heard? I always win!',12456,1,0,'sathrovarr SAY_SATH_SLAY2'),
++(-1580016,'I have toyed with you long enough!',12457,1,0,'sathrovarr SAY_SATH_ENRAGE'),
++
++(-1580017,'Puny lizard! Death is the only answer you\'ll find here!',12458,1,0,'brutallus YELL_INTRO'),
++(-1580018,'Grah! Your magic is weak!',12459,1,0,'brutallus YELL_INTRO_BREAK_ICE'),
++(-1580019,'I will crush you!',12460,1,0,'brutallus YELL_INTRO_CHARGE'),
++(-1580020,'That was fun.',12461,1,0,'brutallus YELL_INTRO_KILL_MADRIGOSA'),
++(-1580021,'Come, try your luck!',12462,1,0,'brutallus YELL_INTRO_TAUNT'),
++(-1580022,'Ahh! More lambs to the slaughter!',12463,1,0,'brutallus YELL_AGGRO'),
++(-1580023,'Perish, insect!',12464,1,0,'brutallus YELL_KILL1'),
++(-1580024,'You are meat!',12465,1,0,'brutallus YELL_KILL2'),
++(-1580025,'Too easy!',12466,1,0,'brutallus YELL_KILL3'),
++(-1580026,'Bring the fight to me!',12467,1,0,'brutallus YELL_LOVE1'),
++(-1580027,'Another day, another glorious battle!',12468,1,0,'brutallus YELL_LOVE2'),
++(-1580028,'I live for this!',12469,1,0,'brutallus YELL_LOVE3'),
++(-1580029,'So much for a real challenge... Die!',12470,1,0,'brutallus YELL_BERSERK'),
++(-1580030,'Gah! Well done... Now... this gets... interesting...',12471,1,0,'brutallus YELL_DEATH'),
++
++(-1580031,'Hold, friends! There is information to be had before this devil meets his fate!',12472,1,0,'madrigosa YELL_MADR_ICE_BARRIER'),
++(-1580032,'Where is Anveena, demon? What has become of Kalec?',12473,1,0,'madrigosa YELL_MADR_INTRO'),
++(-1580033,'You will tell me where they are!',12474,1,0,'madrigosa YELL_MADR_ICE_BLOCK'),
++(-1580034,'Speak, I grow weary of asking!',12475,1,0,'madrigosa YELL_MADR_TRAP'),
++(-1580035,'Malygos, my lord! I did my best!',12476,1,0,'madrigosa YELL_MADR_DEATH');
++
++-- -1 585 000 MAGISTER'S TERRACE
++INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`comment`) VALUES
++(-1585000,'You only waste my time!',12378,1,0,'selin SAY_AGGRO'),
++(-1585001,'My hunger knows no bounds!',12381,1,0,'selin SAY_ENERGY'),
++(-1585002,'Yes! I am a god!',12382,1,0,'selin SAY_EMPOWERED'),
++(-1585003,'Enough distractions!',12388,1,0,'selin SAY_KILL_1'),
++(-1585004,'I am invincible!',12385,1,0,'selin SAY_KILL_2'),
++(-1585005,'No! More... I must have more!',12383,1,0,'selin SAY_DEATH'),
++(-1585006,'begins to channel from the nearby Fel Crystal...',0,3,0,'selin EMOTE_CRYSTAL'),
++
++(-1585007,'Drain...life!',12389,1,0,'vexallus SAY_AGGRO'),
++(-1585008,'Un...con...tainable.',12392,1,0,'vexallus SAY_ENERGY'),
++(-1585009,'Un...leash...',12390,1,0,'vexallus SAY_OVERLOAD'),
++(-1585010,'Con...sume.',12393,1,0,'vexallus SAY_KILL'),
++(-1585011,'discharges pure energy!',0,3,0,'vexallus EMOTE_DISCHARGE_ENERGY'),
++
++(-1585012,'Annihilate them!',12395,1,0,'delrissa SAY_AGGRO'),
++(-1585013,'Oh, the horror.',12398,1,0,'delrissa LackeyDeath1'),
++(-1585014,'Well, aren\'t you lucky?',12400,1,0,'delrissa LackeyDeath2'),
++(-1585015,'Now I\'m getting annoyed.',12401,1,0,'delrissa LackeyDeath3'),
++(-1585016,'Lackies be damned! I\'ll finish you myself!',12403,1,0,'delrissa LackeyDeath4'),
++(-1585017,'I call that a good start.',12405,1,0,'delrissa PlayerDeath1'),
++(-1585018,'I could have sworn there were more of you.',12407,1,0,'delrissa PlayerDeath2'),
++(-1585019,'Not really much of a group, anymore, is it?',12409,1,0,'delrissa PlayerDeath3'),
++(-1585020,'One is such a lonely number.',12410,1,0,'delrissa PlayerDeath4'),
++(-1585021,'It\'s been a kick, really.',12411,1,0,'delrissa PlayerDeath5'),
++(-1585022,'Not what I had... planned...',12397,1,0,'delrissa SAY_DEATH'),
++
++(-1585023,'Don\'t look so smug! I know what you\'re thinking, but Tempest Keep was merely a set back. Did you honestly believe I would trust the future to some blind, half-night elf mongrel? Oh no, he was merely an instrument, a stepping stone to a much larger plan! It has all led to this, and this time, you will not interfere!',12413,1,0,'kaelthas MT SAY_AGGRO'),
++(-1585024,'Vengeance burns!',12415,1,0,'kaelthas MT SAY_PHOENIX'),
++(-1585025,'Felomin ashal!',12417,1,0,'kaelthas MT SAY_FLAMESTRIKE'),
++(-1585026,'I\'ll turn your world... upside... down...',12418,1,0,'kaelthas MT SAY_GRAVITY_LAPSE'),
++(-1585027,'Master... grant me strength.',12419,1,0,'kaelthas MT SAY_TIRED'),
++(-1585028,'Do not... get too comfortable.',12420,1,0,'kaelthas MT SAY_RECAST_GRAVITY'),
++(-1585029,'My demise accomplishes nothing! The Master will have you! You will drown in your own blood! This world shall burn! Aaaghh!',12421,1,0,'kaelthas MT SAY_DEATH');
++
++--
++-- Below just for beautiful view in table, run at own desire
++--
++
+ -- ALTER TABLE `script_texts` ORDER BY `entry` desc;
+\ No newline at end of file
+diff -r 7bda08d4cbf2 sql/world_scripts_full.sql
+--- a/sql/world_scripts_full.sql Sun Dec 21 18:13:05 2008 -0600
++++ b/sql/world_scripts_full.sql Sun Dec 21 19:51:16 2008 -0500
+@@ -1,874 +1,874 @@
+-/* */
+-
+-/* WORLD BOSS */
+-UPDATE `creature_template` SET `ScriptName`='boss_ysondre' WHERE `entry`=14887;
+-UPDATE `creature_template` SET `ScriptName`='boss_emeriss' WHERE `entry`=14889;
+-UPDATE `creature_template` SET `ScriptName`='boss_taerar' WHERE `entry`=14890;
+-UPDATE `creature_template` SET `ScriptName`='boss_shade_of_taerar' WHERE `entry`=15302;
+-UPDATE `creature_template` SET `ScriptName`='boss_kruul' WHERE `entry`=18338;
+-UPDATE `creature_template` SET `ScriptName`='boss_azuregos' WHERE `entry`=6109;
+-UPDATE `creature_template` SET `ScriptName`='mob_dementeddruids' WHERE `entry`=15260;
+-
+-/* GO */
+-UPDATE `gameobject_template` SET `ScriptName`='go_northern_crystal_pylon' WHERE `entry`=164955;
+-UPDATE `gameobject_template` SET `ScriptName`='go_western_crystal_pylon' WHERE `entry`=164956;
+-UPDATE `gameobject_template` SET `ScriptName`='go_eastern_crystal_pylon' WHERE `entry`=164957;
+-UPDATE `gameobject_template` SET `ScriptName`='go_barov_journal' WHERE `entry`=180794;
+-UPDATE `gameobject_template` SET `ScriptName`='go_field_repair_bot_74A' where `entry`= 179552;
+-UPDATE `gameobject_template` SET `ScriptName`='go_orb_of_command' WHERE `entry`=179879;
+-UPDATE `gameobject_template` SET `ScriptName`='go_tablet_of_madness' WHERE `entry`=180368;
+-UPDATE `gameobject_template` SET `ScriptName`='go_tablet_of_the_seven' WHERE `entry`=169294;
+-
+-/* GUARD */
+-UPDATE `creature_template` SET `ScriptName`='guard_azuremyst' WHERE `entry`=18038;
+-UPDATE `creature_template` SET `ScriptName`='guard_orgrimmar' WHERE `entry`=3296;
+-UPDATE `creature_template` SET `ScriptName`='guard_stormwind' WHERE `entry` IN (68,1976);
+-UPDATE `creature_template` SET `ScriptName`='guard_contested' WHERE `entry` IN (9460,4624,3502,11190,15184);
+-UPDATE `creature_template` SET `ScriptName`='guard_elwynnforest' WHERE `entry`=1423;
+-UPDATE `creature_template` SET `ScriptName`='guard_eversong' WHERE `entry`=16221;
+-UPDATE `creature_template` SET `ScriptName`='guard_darnassus' WHERE `entry`=4262;
+-UPDATE `creature_template` SET `ScriptName`='guard_teldrassil' WHERE `entry`=3571;
+-UPDATE `creature_template` SET `ScriptName`='guard_ironforge' WHERE `entry`=5595;
+-UPDATE `creature_template` SET `ScriptName`='guard_dunmorogh' WHERE `entry` IN (727,13076);
+-UPDATE `creature_template` SET `ScriptName`='guard_undercity' WHERE `entry`=5624;
+-UPDATE `creature_template` SET `ScriptName`='guard_bluffwatcher' WHERE `entry`=3084;
+-UPDATE `creature_template` SET `ScriptName`='guard_durotar' WHERE `entry`=5953;
+-UPDATE `creature_template` SET `ScriptName`='guard_mulgore' WHERE `entry` IN (3212,3215,3217,3218,3219,3220,3221,3222,3223,3224);
+-UPDATE `creature_template` SET `ScriptName`='guard_dunmorogh' WHERE `entry` IN (727,13076);
+-UPDATE `creature_template` SET `ScriptName`='guard_tirisfal' WHERE `entry` IN (1735,1738,2210,1744,1745,5725,1743,2209,1746,1742);
+-UPDATE `creature_template` SET `ScriptName`='guard_silvermoon' WHERE `entry`=16222;
+-UPDATE `creature_template` SET `ScriptName`='guard_exodar' WHERE `entry`=16733;
+-UPDATE `creature_template` SET `ScriptName`='guard_shattrath' WHERE `entry`=19687;
+-UPDATE `creature_template` SET `ScriptName`='guard_shattrath_aldor' WHERE `entry`=18549;
+-UPDATE `creature_template` SET `ScriptName`='guard_shattrath_scryer' WHERE `entry`=18568;
+-
+-/* ITEM */
+-UPDATE `item_template` SET `ScriptName`='item_area_52_special' WHERE `entry`=28132;
+-UPDATE `item_template` SET `ScriptName`='item_attuned_crystal_cores' WHERE `entry`=34368;
+-UPDATE `item_template` SET `ScriptName`='item_blackwhelp_net' WHERE `entry`=31129;
+-UPDATE `item_template` SET `ScriptName`='item_disciplinary_rod' WHERE `entry`=22473;
+-UPDATE `item_template` SET `ScriptName`='item_draenei_fishing_net' WHERE `entry`=23654;
+-UPDATE `item_template` SET `ScriptName`='item_flying_machine' WHERE `entry` IN (34060,34061);
+-UPDATE `item_template` SET `ScriptName`='item_gor_dreks_ointment' WHERE `entry`=30175;
+-UPDATE `item_template` SET `ScriptName`='item_muiseks_vessel' WHERE `entry` IN (9606,9618,9619,9620,9621);
+-UPDATE `item_template` SET `ScriptName`='item_nether_wraith_beacon' WHERE `entry`=31742;
+-UPDATE `item_template` SET `ScriptName`='item_protovoltaic_magneto_collector' WHERE `entry`=30656;
+-UPDATE `item_template` SET `ScriptName`='item_razorthorn_flayer_gland' WHERE `entry`=34255;
+-UPDATE `item_template` SET `ScriptName`='item_soul_cannon' WHERE `entry`=32825;
+-UPDATE `item_template` SET `ScriptName`='item_sparrowhawk_net' WHERE `entry`=32321;
+-UPDATE `item_template` SET `ScriptName`='item_tainted_core' WHERE `entry`=31088;
+-UPDATE `item_template` SET `ScriptName`='item_tame_beast_rods' WHERE `entry` IN (15908,15911,15913,15914,15915,15916,15917,15919,15920,15921,15922,15923,23697,23702,23703,23896,23897,23898);
+-UPDATE `item_template` SET `ScriptName`='item_voodoo_charm' WHERE `entry`=8149;
+-UPDATE `item_template` SET `ScriptName`='item_vorenthals_presence' WHERE `entry`=30259;
+-UPDATE `item_template` SET `ScriptName`='item_yehkinyas_bramble' WHERE `entry`=10699;
+-UPDATE `item_template` SET `ScriptName`='item_zezzaks_shard' WHERE `entry`=31463;
+-
+-/* NPC (usually creatures to be found in more than one specific zone) */
+-UPDATE `creature_template` SET `ScriptName`='npc_chicken_cluck' WHERE `entry`=620;
+-UPDATE `creature_template` SET `ScriptName`='npc_dancing_flames' WHERE `entry`=25305;
+-UPDATE `creature_template` SET `ScriptName`='npc_guardian' WHERE `entry`=5764;
+-UPDATE `creature_template` SET `ScriptName`='npc_mount_vendor' WHERE `entry` IN (384,1261,1460,2357,3362,3685,4730,4731,4885,7952,7955,16264,17584);
+-UPDATE `creature_template` SET `ScriptName`='npc_doctor' WHERE `entry` IN (12939,12920);
+-UPDATE `creature_template` SET `ScriptName`='npc_injured_patient' WHERE `entry` IN (12936,12937,12938,12923,12924,12925);
+-UPDATE `creature_template` SET `ScriptName`='npc_prof_alchemy' WHERE `entry` IN (17909,19052,22427);
+-UPDATE `creature_template` SET `ScriptName`='npc_prof_blacksmith' WHERE `entry` IN (5164,11145,11146,11176,11177,11178,11191,11192,11193);
+-UPDATE `creature_template` SET `ScriptName`='npc_prof_leather' WHERE `entry` IN (7866,7867,7868,7869,7870,7871);
+-UPDATE `creature_template` SET `ScriptName`='npc_prof_tailor' WHERE `entry` IN (22208,22212,22213);
+-UPDATE `creature_template` SET `ScriptName`='npc_rogue_trainer' WHERE `entry` IN (918,4163,3328,4583,5165,5167,13283,16684);
+-UPDATE `creature_template` SET `ScriptName`='npc_sayge' WHERE `entry`=14822;
+-
+-
+-/* */
+-/* ZONE */
+-/* */
+-
+-/* ALTERAC MOUNTAINS */
+-UPDATE `creature_template` SET `ScriptName`='npc_ravenholdt' WHERE `entry`=13936;
+-
+-/* ALTERAC VALLEY */
+-
+-
+-/* ARATHI HIGHLANDS */
+-
+-
+-/* ASHENVALE */
+-
+-
+-/* */
+-/* AUCHINDOUN */
+-/* */
+-
+-/* MANA TOMBS */
+-UPDATE `creature_template` SET `ScriptName`='boss_pandemonius' WHERE `entry`=18341;
+-UPDATE `creature_template` SET `ScriptName`='boss_nexusprince_shaffar' WHERE `entry`=18344;
+-UPDATE `creature_template` SET `ScriptName`='mob_ethereal_beacon' WHERE `entry`=18431;
+-
+-/* AUCHENAI CRYPTS */
+-UPDATE `creature_template` SET `ScriptName`='boss_exarch_maladaar' WHERE `entry`=18373;
+-UPDATE `creature_template` SET `ScriptName`='mob_avatar_of_martyred' WHERE `entry`=18478;
+-UPDATE `creature_template` SET `ScriptName`='mob_stolen_soul' WHERE `entry`=18441;
+-
+-/* SETHEKK HALLS */
+-UPDATE `instance_template` SET `script`='instance_sethekk_halls' WHERE `map`=556;
+-UPDATE `creature_template` SET `ScriptName`='mob_syth_fire' WHERE `entry`=19203;
+-UPDATE `creature_template` SET `ScriptName`='mob_syth_arcane' WHERE `entry`=19205;
+-UPDATE `creature_template` SET `ScriptName`='mob_syth_frost' WHERE `entry`=19204;
+-UPDATE `creature_template` SET `ScriptName`='mob_syth_shadow' WHERE `entry`=19206;
+-UPDATE `creature_template` SET `ScriptName`='boss_talon_king_ikiss' WHERE `entry`=18473;
+-UPDATE `creature_template` SET `ScriptName`='boss_darkweaver_syth' WHERE `entry`=18472;
+-
+-/* SHADOW LABYRINTH */
+-UPDATE `instance_template` SET `script`='instance_shadow_labyrinth' WHERE `map`=555;
+-UPDATE `creature_template` SET `ScriptName`='boss_murmur' WHERE `entry`=18708;
+-UPDATE `creature_template` SET `ScriptName`='boss_grandmaster_vorpil' WHERE `entry`=18732;
+-UPDATE `creature_template` SET `ScriptName`='boss_blackheart_the_inciter' WHERE `entry`=18667;
+-UPDATE `creature_template` SET `ScriptName`='boss_ambassador_hellmaw' WHERE `entry`=18731;
+-
+-/* AZSHARA */
+-UPDATE `creature_template` SET `ScriptName`='mobs_spitelashes' WHERE `entry` IN (6190,6193,6194,6195,6196,7885,7886,12204,12205);
+-UPDATE `creature_template` SET `ScriptName`='npc_loramus_thalipedes' WHERE `entry`=7783;
+-
+-/* AZUREMYST ISLE */
+-UPDATE `creature_template` SET `ScriptName`='npc_engineer_spark_overgrind' WHERE `entry`=17243;
+-UPDATE `creature_template` SET `ScriptName`='npc_injured_draenei' WHERE `entry`=16971;
+-UPDATE `creature_template` SET `ScriptName`='npc_susurrus' WHERE `entry`=17435;
+-
+-/* BADLANDS */
+-
+-
+-/* BARRENS */
+-UPDATE `creature_template` SET `ScriptName`='npc_beaten_corpse' WHERE `entry`=10668;
+-UPDATE `creature_template` SET `ScriptName`='npc_sputtervalve' WHERE `entry`=3442;
+-UPDATE `creature_template` SET `ScriptName`='npc_taskmaster_fizzule' WHERE `entry`=7233;
+-
+-/* BLACK TEMPLE */
+-UPDATE `instance_template` SET `script`='instance_black_temple' WHERE `map`=564;
+-UPDATE `creature_template` SET `ScriptName`='npc_akama_shade' WHERE `entry`=22990; -- Akama at Shade of Akama
+-UPDATE `creature_template` SET `ScriptName`='npc_akama_illidan' WHERE `entry`=23089; -- Akama at Illidan
+-UPDATE `creature_template` SET `ScriptName`='mob_illidari_council' WHERE `entry`=23426; -- Illidari Council controller mob
+-UPDATE `creature_template` SET `ScriptName`='mob_blood_elf_council_voice_trigger' WHERE `entry` = 23499; -- Voice Trigger Mob (Controls Aggro + Enrage yells)
+-UPDATE `creature_template` SET `ScriptName`='boss_veras_darkshadow' WHERE `entry`=22952; -- Rogue of Illidari Council
+-UPDATE `creature_template` SET `ScriptName`='boss_teron_gorefiend' WHERE `entry`=22871; -- Teron Gorefiend
+-UPDATE `creature_template` SET `ScriptName`='boss_supremus' WHERE `entry`=22898; -- Supremus
+-UPDATE `creature_template` SET `ScriptName`='boss_shade_of_akama' WHERE `entry`=22841; -- Shade of Akama
+-UPDATE `creature_template` SET `ScriptName`='boss_reliquary_of_souls' WHERE `entry`=22856; -- Reliquary Controller Mob
+-UPDATE `creature_template` SET `ScriptName`='boss_essence_of_suffering' WHERE `entry`=23418; -- Essence Of Suffering
+-UPDATE `creature_template` SET `ScriptName`='boss_essence_of_desire' WHERE `entry`=23419; -- Essence of Desire
+-UPDATE `creature_template` SET `ScriptName`='boss_essence_of_anger' WHERE `entry`=23420; -- Essence of Anger
+-UPDATE `creature_template` SET `ScriptName`='boss_najentus' WHERE `entry`=22887; -- High Warlord Naj'entus
+-UPDATE `creature_template` SET `ScriptName`='boss_gurtogg_bloodboil' WHERE `entry`=22948; -- Gurtogg Bloodboil
+-UPDATE `creature_template` SET `ScriptName`='boss_mother_shahraz' WHERE `entry`=22947; -- Mother Shahraz
+-UPDATE `creature_template` SET `ScriptName`='boss_lady_malande' WHERE `entry`=22951; -- Priest <3 at Illidari Council
+-UPDATE `creature_template` SET `ScriptName`='boss_illidan_stormrage' WHERE `entry`=22917; -- Illidan The Betrayer!
+-UPDATE `creature_template` SET `ScriptName`='boss_high_nethermancer_zerevor' WHERE `entry`=22950; -- Mage at Illidari Council
+-UPDATE `creature_template` SET `ScriptName`='boss_gathios_the_shatterer' WHERE `entry`=22949; -- Paladin at Illidari Council
+-UPDATE `creature_template` SET `ScriptName`='boss_maiev_shadowsong' WHERE `entry`=23197; -- Maiev Shadowsong
+-UPDATE `gameobject_template` SET `ScriptName`='gameobject_cage_trap' WHERE `entry`=185916; -- Cage Trap GO in Illidan Encounter
+-UPDATE `creature_template` SET `ScriptName`='mob_blaze' WHERE `entry`=23259; -- Blaze mob in Illidan Phase 2
+-UPDATE `creature_template` SET `ScriptName`='mob_flame_of_azzinoth' WHERE `entry`=22997; -- Flame of Azzinoth (Illidan Phase 2)
+-UPDATE `creature_template` SET `ScriptName`='mob_blade_of_azzinoth' WHERE `entry`=22996; -- Blade of Azzinoth (Illidan Phase 2)
+-UPDATE `creature_template` SET `ScriptName`='mob_demon_fire' WHERE `entry`=23069; -- Demon Fire in Illidan Phase 2
+-UPDATE `creature_template` SET `ScriptName`='mob_flame_crash' WHERE `entry`=23336; -- Flame Crash in Illidan Normal Form
+-UPDATE `creature_template` SET `ScriptName`='mob_cage_trap_trigger' WHERE `entry`=23304; -- Cage Trap mob in Illidan Phase 3/4 Normal
+-UPDATE `creature_template` SET `ScriptName`='mob_shadow_demon' WHERE `entry`=23375; -- Shadow Demon in Illidan Demon Form
+-UPDATE `creature_template` SET `ScriptName`='npc_volcano' WHERE `entry`=23085; -- Supremus Volcano
+-UPDATE `creature_template` SET `ScriptName`='molten_flame' WHERE `entry`=23095; -- Molten Flame in SUpremus
+-UPDATE `creature_template` SET `ScriptName`='mob_ashtongue_channeler' WHERE `entry`=23421; -- Ashtongue CHanneler in Shade of AKama
+-UPDATE `creature_template` SET `ScriptName`='mob_ashtongue_sorcerer' WHERE `entry`=23215; -- Ashtongue Sorcerer in Shade of Akama
+-UPDATE `creature_template` SET `ScriptName`='npc_enslaved_soul' WHERE `entry`=23469; -- Enslaved Soul in Reliquary Event
+-UPDATE `creature_template` SET `ScriptName`='mob_doom_blossom' WHERE `entry`=23123; -- Doom Blossoms in Teron Gorefiend's encounter
+-UPDATE `creature_template` SET `ScriptName`='npc_spirit_of_olum' WHERE `entry`=23411;
+--- UPDATE `creature_template` SET `ScriptName`='mob_shadowy_construct' WHERE `entry`=23111; -- Shadowy Construct in Teron Gorefiend's encounter. Commented until Mind Control is implemented.
+-
+-/* BLACKFATHOM DEPTHS */
+-
+-
+-/* BLACKROCK DEPTHS */
+-UPDATE `creature_template` SET `ScriptName`='boss_emperor_dagran_thaurissan' WHERE `entry`=9019;
+-UPDATE `creature_template` SET `ScriptName`='boss_moira_bronzebeard' WHERE `entry`=8929;
+-UPDATE `creature_template` SET `ScriptName`='boss_ambassador_flamelash' WHERE `entry`=9156;
+-UPDATE `creature_template` SET `ScriptName`='boss_angerrel' WHERE `entry`=9035;
+-UPDATE `creature_template` SET `ScriptName`='boss_anubshiah' WHERE `entry`=9031;
+-UPDATE `creature_template` SET `ScriptName`='boss_doomrel' WHERE `entry`=9039;
+-UPDATE `creature_template` SET `ScriptName`='boss_doperel' WHERE `entry`=9040;
+-UPDATE `creature_template` SET `ScriptName`='boss_general_angerforge' WHERE `entry`=9033;
+-UPDATE `creature_template` SET `ScriptName`='boss_gloomrel' WHERE `entry`=9037;
+-UPDATE `creature_template` SET `ScriptName`='boss_gorosh_the_dervish' WHERE `entry`=9027;
+-UPDATE `creature_template` SET `ScriptName`='boss_grizzle' WHERE `entry`=9028;
+-UPDATE `creature_template` SET `ScriptName`='boss_haterel' WHERE `entry`=9034;
+-UPDATE `creature_template` SET `ScriptName`='boss_high_interrogator_gerstahn' WHERE `entry`=9018;
+-UPDATE `creature_template` SET `ScriptName`='boss_magmus' WHERE `entry`=9938;
+-UPDATE `creature_template` SET `ScriptName`='boss_seethrel' WHERE `entry`=9038;
+-UPDATE `creature_template` SET `ScriptName`='boss_vilerel' WHERE `entry`=9036;
+-UPDATE `creature_template` SET `ScriptName`='phalanx' WHERE `entry`=9502;
+-UPDATE `creature_template` SET `ScriptName`='npc_lokhtos_darkbargainer' WHERE `entry`=12944;
+-UPDATE `creature_template` SET `ScriptName`='npc_kharan_mighthammer' WHERE `entry`=9021;
+-
+-/* BLACKROCK SPIRE */
+-/* BLACKROCK SPIRE Lower bosses */
+-UPDATE `creature_template` SET `ScriptName`='boss_highlord_omokk' WHERE `entry`=9196;
+-UPDATE `creature_template` SET `ScriptName`='boss_shadow_hunter_voshgajin' WHERE `entry`=9236;
+-UPDATE `creature_template` SET `ScriptName`='boss_warmaster_voone' WHERE `entry`=9237;
+-UPDATE `creature_template` SET `ScriptName`='boss_mother_smolderweb' WHERE `entry`=10596;
+-UPDATE `creature_template` SET `ScriptName`='quartermaster_zigris' WHERE `entry`=9736;
+-UPDATE `creature_template` SET `ScriptName`='boss_halycon' WHERE `entry`=10220;
+-UPDATE `creature_template` SET `ScriptName`='boss_overlord_wyrmthalak' WHERE `entry`=9568;
+-/* BLACKROCK SPIRE Upper bosses */
+-UPDATE `creature_template` SET `ScriptName`='boss_the_beast' WHERE `entry`=10430;
+-UPDATE `creature_template` SET `ScriptName`='boss_drakkisath' WHERE `entry`=10363;
+-UPDATE `creature_template` SET `ScriptName`='boss_gyth' WHERE `entry`=10339;
+-UPDATE `creature_template` SET `ScriptName`='boss_rend_blackhand' WHERE `entry`=10429;
+-UPDATE `creature_template` SET `ScriptName`='boss_pyroguard_emberseer' WHERE `entry`=9816;
+-
+-/* BLACKWING LAIR */
+-UPDATE `instance_template` SET `script`='instance_blackwing_lair' WHERE `map`=469;
+-UPDATE `creature_template` SET `ScriptName`='boss_razorgore' WHERE `entry`=12435;
+-UPDATE `creature_template` SET `ScriptName`='boss_vaelastrasz' WHERE `entry`=13020;
+-UPDATE `creature_template` SET `ScriptName`='boss_broodlord' WHERE `entry`=12017;
+-UPDATE `creature_template` SET `ScriptName`='boss_firemaw' WHERE `entry`=11983;
+-UPDATE `creature_template` SET `ScriptName`='boss_ebonroc' WHERE `entry`=14601;
+-UPDATE `creature_template` SET `ScriptName`='boss_flamegor' WHERE `entry`=11981;
+-UPDATE `creature_template` SET `ScriptName`='boss_chromaggus' WHERE `entry`=14020;
+-UPDATE `creature_template` SET `ScriptName`='boss_victor_nefarius' WHERE `entry`=10162;
+-UPDATE `creature_template` SET `ScriptName`='boss_nefarian' WHERE `entry`=11583;
+-
+-/* BLADE'S EDGE MOUNTAINS */
+-UPDATE `creature_template` SET `ScriptName`='mobs_bladespire_ogre' WHERE `entry` IN (19998,20334,21296,21975);
+-UPDATE `creature_template` SET `ScriptName`='mobs_nether_drake' WHERE `entry` IN (20021,21817,21820,21821,21823);
+-UPDATE `creature_template` SET `ScriptName`='npc_daranelle' WHERE `entry`=21469;
+-UPDATE `creature_template` SET `ScriptName`='npc_overseer_nuaar' WHERE `entry`=21981;
+-UPDATE `creature_template` SET `ScriptName`='npc_saikkal_the_elder' WHERE `entry`=22932;
+-UPDATE `creature_template` SET `ScriptName`='npc_skyguard_handler_deesak' WHERE `entry`=23415;
+-
+-/* BLASTED LANDS */
+-UPDATE `creature_template` SET `ScriptName`='npc_deathly_usher' WHERE `entry`=8816;
+-UPDATE `creature_template` SET `ScriptName`='npc_fallen_hero_of_horde' WHERE `entry`=7572;
+-
+-/* BLOODMYST ISLE */
+-UPDATE `creature_template` SET `ScriptName`='mob_webbed_creature' WHERE `entry`=17680;
+-UPDATE `creature_template` SET `ScriptName`='npc_captured_sunhawk_agent' WHERE `entry`=17824;
+-
+-/* BURNING STEPPES */
+-UPDATE `creature_template` SET `ScriptName`='npc_ragged_john' WHERE `entry`=9563;
+-
+-/* */
+-/* CAVERNS OF TIME */
+-/* */
+-
+-/* MT. HYJAL */
+-UPDATE `instance_template` SET `script`='instance_hyjal' WHERE `map`=534;
+-UPDATE `creature_template` SET `ScriptName`='npc_tyrande_whisperwind' WHERE `entry`=17948;
+-UPDATE `creature_template` SET `ScriptName`='npc_thrall' WHERE `entry` =17852;
+-UPDATE `creature_template` SET `ScriptName`='npc_jaina_proudmoore' WHERE `entry`=17772;
+-UPDATE `creature_template` SET `ScriptName`='boss_archimonde' WHERE `entry`=17968;
+-UPDATE `creature_template` SET `ScriptName`='mob_doomfire' WHERE `entry`=18095;
+-UPDATE `creature_template` SET `ScriptName`='mob_doomfire_targetting' WHERE `entry`=18104;
+-UPDATE `creature_template` SET `ScriptName`='mob_ancient_wisp' WHERE `entry`=17946;
+-
+-/* OLD HILLSBRAD */
+-UPDATE `instance_template` SET `script`='instance_old_hillsbrad' WHERE `map`=560;
+-UPDATE `creature_template` SET `ScriptName`='boss_lieutenant_drake' WHERE `entry`=17848;
+-UPDATE `creature_template` SET `ScriptName`='boss_epoch_hunter' WHERE `entry`=18096;
+-UPDATE `creature_template` SET `ScriptName`='boss_captain_skarloc' WHERE `entry`=17862;
+-UPDATE `creature_template` SET `ScriptName`='npc_brazen' WHERE `entry`=18725;
+-UPDATE `creature_template` SET `ScriptName`='npc_erozion' WHERE `entry`=18723;
+-UPDATE `creature_template` SET `ScriptName`='npc_taretha' WHERE `entry`=18887;
+-UPDATE `creature_template` SET `ScriptName`='npc_thrall_old_hillsbrad' WHERE `entry`=17876;
+-
+-/* THE DARK PORTAL */
+-UPDATE `creature_template` SET `ScriptName`='boss_chrono_lord_deja' WHERE `entry`=17879;
+-UPDATE `creature_template` SET `ScriptName`='boss_aeonus' WHERE `entry`=17881;
+-UPDATE `creature_template` SET `ScriptName`='boss_temporus' WHERE `entry`=17880;
+-
+-
+-/* */
+-/* COILFANG RESERVOIR */
+-/* */
+-
+-/* THE SLAVE PENS */
+-
+-/* THE UNDERBOG */
+-UPDATE `creature_template` SET `ScriptName`='mob_underbog_mushroom' WHERE `entry`=17990;
+-UPDATE `creature_template` SET `ScriptName`='boss_hungarfen' WHERE `entry`=17770;
+-
+-/* THE STEAMVAULT */
+-UPDATE `instance_template` SET `script`='instance_steam_vault' WHERE `map`=545;
+-UPDATE `creature_template` SET `ScriptName`='boss_hydromancer_thespia' WHERE `entry`=17797;
+-UPDATE `creature_template` SET `ScriptName`='boss_mekgineer_steamrigger' WHERE `entry`=17796;
+-UPDATE `creature_template` SET `ScriptName`='boss_warlord_kalithresh' WHERE `entry`=17798;
+-UPDATE `creature_template` SET `ScriptName`='mob_coilfang_waterelemental' WHERE `entry`=17917;
+-UPDATE `creature_template` SET `ScriptName`='mob_naga_distiller' WHERE `entry`=17954;
+-UPDATE `creature_template` SET `ScriptName`='mob_steamrigger_mechanic' WHERE `entry`=17951;
+-
+-/* SERPENTSHRINE CAVERN */
+-UPDATE `instance_template` SET `script`='instance_serpent_shrine' WHERE `map`=548;
+-UPDATE `creature_template` SET `ScriptName`='boss_hydross_the_unstable' WHERE `entry`=21216;
+-/* Leotheras the Blind event */
+-UPDATE `creature_template` SET `ScriptName`='boss_leotheras_the_blind' WHERE `entry`=21215;
+-UPDATE `creature_template` SET `ScriptName`='boss_leotheras_the_blind_demonform' WHERE `entry`=21845;
+-/* Fathom-lord Karathress event */
+-UPDATE `creature_template` SET `ScriptName`='boss_fathomlord_karathress' WHERE `entry`=21214;
+-UPDATE `creature_template` SET `ScriptName`='boss_fathomguard_sharkkis' WHERE `entry`=21966;
+-UPDATE `creature_template` SET `ScriptName`='boss_fathomguard_tidalvess' WHERE `entry`=21965;
+-UPDATE `creature_template` SET `ScriptName`='boss_fathomguard_caribdis' WHERE `entry`=21964;
+-/* Morogrim Tidewalker event */
+-UPDATE `creature_template` SET `ScriptName`='boss_morogrim_tidewalker' WHERE `entry`=21213;
+-UPDATE `creature_template` SET `ScriptName`='mob_water_globule' WHERE `entry`=21913;
+-/* Lady Vashj event */
+-UPDATE `creature_template` SET `ScriptName`='boss_lady_vashj' WHERE `entry`=21212;
+-UPDATE `creature_template` SET `ScriptName`='mob_enchanted_elemental' WHERE `entry`=21958;
+-UPDATE `creature_template` SET `ScriptName`='mob_tainted_elemental' WHERE `entry`=22009;
+-UPDATE `creature_template` SET `ScriptName`='mob_coilfang_elite' WHERE `entry`=22055;
+-UPDATE `creature_template` SET `ScriptName`='mob_coilfang_strider' WHERE `entry`=22056;
+-UPDATE `creature_template` SET `ScriptName`='mob_fathom_sporebat' WHERE `entry`=22140;
+-UPDATE `creature_template` SET `ScriptName`='mob_shield_generator_channel' WHERE `entry`=19870;
+-
+-
+-/* DARKSHORE */
+-
+-
+-/* DEADMINES */
+-
+-
+-/* DEADWIND PASS */
+-
+-
+-/* DESOLACE */
+-
+-
+-/* DIRE MAUL */
+-
+-
+-/* DUN MOROGH */
+-UPDATE `creature_template` SET `ScriptName`='npc_narm_faulk' WHERE `entry`=6177;
+-
+-
+-/* DUROTAR */
+-
+-
+-/* DUSKWOOD */
+-
+-
+-/* DUSTWALLOW MARSH */
+-UPDATE `creature_template` SET `ScriptName`='mobs_risen_husk_spirit' WHERE `entry` IN (23554,23555);
+-UPDATE `creature_template` SET `ScriptName`='npc_deserter_agitator' WHERE `entry`=23602;
+-UPDATE `creature_template` SET `ScriptName`='npc_lady_jaina_proudmoore' WHERE `entry`=4968;
+-UPDATE `creature_template` SET `ScriptName`='npc_nat_pagle' WHERE `entry`=12919;
+-UPDATE `creature_template` SET `ScriptName`='npc_restless_apparition' WHERE `entry`=23861;
+-
+-/* EASTERN PLAGUELANDS */
+-UPDATE `creature_template` SET `ScriptName`='mobs_ghoul_flayer' WHERE `entry` IN (8530,8531,8532);
+-UPDATE `creature_template` SET `ScriptName`='npc_augustus_the_touched' WHERE `entry`=12384;
+-UPDATE `creature_template` SET `ScriptName`='npc_darrowshire_spirit' WHERE `entry`=11064;
+-UPDATE `creature_template` SET `ScriptName`='npc_tirion_fordring' WHERE `entry`=1855;
+-
+-/* ELWYNN FOREST */
+-UPDATE `creature_template` SET `ScriptName`='npc_henze_faulk' WHERE `entry`=6172;
+-
+-/* EVERSONG WOODS */
+-UPDATE `creature_template` SET `ScriptName`='mobs_mana_tapped' WHERE `entry` IN (15273,15274,15294,15298,15367);
+-UPDATE `creature_template` SET `ScriptName`='npc_prospector_anvilward' WHERE `entry`=15420;
+-
+-/* FELWOOD */
+-UPDATE `creature_template` SET `ScriptName`='npcs_riverbreeze_and_silversky' WHERE `entry` IN (9528,9529);
+-
+-/* FERALAS */
+-UPDATE `creature_template` SET `ScriptName`='npc_gregan_brewspewer' WHERE `entry`=7775;
+-UPDATE `creature_template` SET `ScriptName`='npc_screecher_spirit' WHERE `entry`=8612;
+-
+-/* GHOSTLANDS */
+-UPDATE `creature_template` SET `ScriptName`='npc_blood_knight_dawnstar' WHERE `entry`=17832;
+-UPDATE `creature_template` SET `ScriptName`='npc_budd_nedreck' WHERE `entry`=23559;
+-UPDATE `creature_template` SET `ScriptName`='npc_rathis_tomber' WHERE `entry`=16224;
+-
+-/* GNOMEREGAN */
+-
+-
+-/* GRUUL'S LAIR */
+-UPDATE `instance_template` SET `script`='instance_gruuls_lair' WHERE `map` =565;
+-UPDATE `creature_template` SET `ScriptName`='boss_gruul' WHERE `entry`=19044;
+-/* Maulgar and Event */
+-UPDATE `creature_template` SET `ScriptName`='boss_high_king_maulgar' WHERE `entry`=18831;
+-UPDATE `creature_template` SET `ScriptName`='boss_kiggler_the_crazed' WHERE `entry`=18835;
+-UPDATE `creature_template` SET `ScriptName`='boss_blindeye_the_seer' WHERE `entry`=18836;
+-UPDATE `creature_template` SET `ScriptName`='boss_olm_the_summoner' WHERE `entry`=18834;
+-UPDATE `creature_template` SET `ScriptName`='boss_krosh_firehand' WHERE `entry`=18832;
+-
+-/* */
+-/* HELLFIRE CITADEL */
+-/* */
+-
+-/* BLOOD FURNACE */
+-/* The Maker,Broggok,Kelidan,Broggok's cloud */
+-UPDATE `creature_template` SET `ScriptName`='boss_the_maker' WHERE `entry`=17381;
+-UPDATE `creature_template` SET `ScriptName`='boss_broggok' WHERE `entry`=17380;
+-UPDATE `creature_template` SET `ScriptName`='boss_kelidan_the_breaker' WHERE `entry`=17377;
+-UPDATE `creature_template` SET `ScriptName`='mob_broggok_poisoncloud' WHERE `entry`=17662;
+-UPDATE `creature_template` SET `ScriptName`='mob_shadowmoon_channeler' WHERE `entry`=17653;
+-
+-/* HELLFIRE RAMPARTS */
+-/* Vazruden,Omor the Unscarred,Watchkeeper Gargolmar */
+-UPDATE `creature_template` SET `ScriptName`='boss_omor_the_unscarred' WHERE `entry`=17308;
+-UPDATE `creature_template` SET `ScriptName`='boss_watchkeeper_gargolmar' WHERE `entry`=17306;
+-
+-/* SHATTERED HALLS */
+-/* Nethekurse and his spawned shadowfissure */
+-UPDATE `creature_template` SET `ScriptName`='boss_grand_warlock_nethekurse' WHERE `entry`=16807;
+-UPDATE `creature_template` SET `ScriptName`='boss_warbringer_omrogg' WHERE `entry`=16809;
+-UPDATE `creature_template` SET `ScriptName`='mob_fel_orc_convert' WHERE `entry`=17083;
+-UPDATE `creature_template` SET `ScriptName`='mob_lesser_shadow_fissure' WHERE `entry`=17471;
+-UPDATE `creature_template` SET `ScriptName`='mob_omrogg_heads' WHERE `entry` IN (19523,19524);
+-UPDATE `instance_template` SET `script`='instance_shattered_halls' WHERE `map`=540;
+-
+-/* MAGTHERIDON'S LAIR */
+-UPDATE `instance_template` SET `script`='instance_magtheridons_lair' WHERE `map`=544;
+-UPDATE `gameobject_template` SET `ScriptName`='go_manticron_cube' WHERE `entry`=181713;
+-UPDATE `creature_template` SET `ScriptName`='boss_magtheridon' WHERE `entry` =17257;
+-UPDATE `creature_template` SET `ScriptName`='mob_hellfire_channeler' WHERE `entry`=17256;
+-
+-/* HELLFIRE PENINSULA */
+-UPDATE `creature_template` SET `ScriptName`='boss_doomlord_kazzak' WHERE `entry`=18728;
+-UPDATE `creature_template` SET `ScriptName`='npc_wing_commander_brack' WHERE `entry`=19401;
+-UPDATE `creature_template` SET `ScriptName`='npc_wing_commander_dabiree' WHERE `entry`=19409;
+-UPDATE `creature_template` SET `ScriptName`='npc_gryphoneer_windbellow' WHERE `entry`=20235;
+-
+-/* HILLSBRAD FOOTHILLS */
+-
+-
+-/* HINTERLANDS */
+-
+-
+-/* IRONFORGE */
+-UPDATE `creature_template` SET `ScriptName`='npc_royal_historian_archesonus' WHERE `entry`=8879;
+-
+-/* ISLE OF QUEL'DANAS */
+-UPDATE `creature_template` SET `ScriptName`='npc_ayren_cloudbreaker' WHERE `entry`=25059;
+-UPDATE `creature_template` SET `ScriptName`='npc_converted_sentry' WHERE `entry`=24981;
+-UPDATE `creature_template` SET `ScriptName`='npc_unrestrained_dragonhawk' WHERE `entry`=25236;
+-
+-/* KARAZHAN */
+-UPDATE `instance_template` SET `script`='instance_karazhan' WHERE `map`=532;
+-UPDATE `creature_template` SET `ScriptName`='boss_midnight' WHERE `entry`=16151;
+-UPDATE `creature_template` SET `ScriptName`='boss_attumen' WHERE `entry`=15550;
+-UPDATE `creature_template` SET `ScriptName`='boss_moroes' WHERE `entry`=15687;
+-UPDATE `creature_template` SET `ScriptName`='boss_maiden_of_virtue' WHERE `entry`=16457;
+-UPDATE `creature_template` SET `ScriptName`='boss_curator' WHERE `entry`=15691;
+-UPDATE `creature_template` SET `ScriptName`='boss_julianne' WHERE `entry`=17534;
+-UPDATE `creature_template` SET `ScriptName`='boss_romulo' WHERE `entry`=17533;
+-UPDATE `creature_template` SET `ScriptName`='boss_dorothee' WHERE `entry`=17535;
+-UPDATE `creature_template` SET `ScriptName`='boss_strawman' WHERE `entry`=17543;
+-UPDATE `creature_template` SET `ScriptName`='boss_tinhead' WHERE `entry`=17547;
+-UPDATE `creature_template` SET `ScriptName`='boss_tito' WHERE `entry`=17548;
+-UPDATE `creature_template` SET `ScriptName`='boss_roar' WHERE `entry`=17546;
+-UPDATE `creature_template` SET `ScriptName`='boss_crone' WHERE `entry`=18168;
+-UPDATE `creature_template` SET `ScriptName`='boss_terestian_illhoof' WHERE `entry`=15688;
+-UPDATE `creature_template` SET `ScriptName`='boss_shade_of_aran' WHERE `entry`=16524;
+-UPDATE `creature_template` SET `ScriptName`='boss_netherspite' WHERE `entry`=15689;
+-UPDATE `creature_template` SET `ScriptName`='boss_malchezaar' WHERE `entry`=15690;
+-UPDATE `creature_template` SET `ScriptName`='boss_nightbane' WHERE `entry`=17225;
+-UPDATE `creature_template` SET `ScriptName`='boss_baroness_dorothea_millstipe' WHERE `entry`=19875;
+-UPDATE `creature_template` SET `ScriptName`='boss_baron_rafe_dreuger' WHERE `entry`=19874;
+-UPDATE `creature_template` SET `ScriptName`='boss_lady_catriona_von_indi' WHERE `entry`=19872;
+-UPDATE `creature_template` SET `ScriptName`='boss_lady_keira_berrybuck' WHERE `entry`=17007;
+-UPDATE `creature_template` SET `ScriptName`='boss_lord_robin_daris' WHERE `entry`=19876;
+-UPDATE `creature_template` SET `ScriptName`='boss_lord_crispin_ference' WHERE `entry`=19873;
+-UPDATE `creature_template` SET `ScriptName`='boss_bigbadwolf' WHERE `entry`=17521;
+-UPDATE `creature_template` SET `ScriptName`='mob_shadow_of_aran' WHERE `entry`=18254;
+-UPDATE `creature_template` SET `ScriptName`='mob_aran_elemental' WHERE `entry`=17167;
+-UPDATE `creature_template` SET `ScriptName`='mob_aran_blizzard' WHERE `entry`=17161;
+-UPDATE `creature_template` SET `ScriptName`='mob_homunculus' WHERE `entry`=16539;
+-UPDATE `creature_template` SET `ScriptName`='mob_kilrek' WHERE `entry`=17229;
+-UPDATE `creature_template` SET `ScriptName`='mob_demon_chain' WHERE `entry`=17248;
+-UPDATE `creature_template` SET `ScriptName`='mob_cyclone' WHERE `entry`=18412;
+-UPDATE `creature_template` SET `ScriptName`='netherspite_infernal' WHERE `entry`=17646;
+-UPDATE `creature_template` SET `ScriptName`='npc_berthold' WHERE `entry`=16153;
+-UPDATE `creature_template` SET `ScriptName`='npc_barnes' WHERE `entry`=16812;
+-UPDATE `creature_template` SET `ScriptName`='npc_grandmother' WHERE `entry`=17603;
+-
+-
+-/* LOCH MODAN */
+-UPDATE `creature_template` SET `ScriptName`='npc_mountaineer_pebblebitty' WHERE `entry`=3836;
+-
+-/* Magister's Terrace */
+-UPDATE `instance_template` SET `script`='instance_magisters_terrace' WHERE `map`=585;
+-UPDATE `creature_template` SET `ScriptName`='boss_selin_fireheart' WHERE `entry`=24723;
+-UPDATE `creature_template` SET `ScriptName`='mob_fel_crystal' WHERE `entry`=24722;
+-UPDATE `creature_template` SET `ScriptName`='boss_vexallus' WHERE `entry`=24744;
+-UPDATE `creature_template` SET `ScriptName`='mob_pure_energy' WHERE `entry`=24745;
+-UPDATE `creature_template` SET `ScriptName`='boss_priestess_delrissa' WHERE `entry`=24560;
+-UPDATE `creature_template` SET `ScriptName`='boss_kagani_nightstrike' WHERE `entry`=24557;
+-UPDATE `creature_template` SET `ScriptName`='boss_ellris_duskhallow' WHERE `entry`=24558;
+-UPDATE `creature_template` SET `ScriptName`='boss_eramas_brightblaze' WHERE `entry`=24554;
+-UPDATE `creature_template` SET `ScriptName`='boss_yazzai' WHERE `entry`=24561;
+-UPDATE `creature_template` SET `ScriptName`='boss_warlord_salaris' WHERE `entry`=24559;
+-UPDATE `creature_template` SET `ScriptName`='boss_garaxxas' WHERE `entry`=24555;
+-UPDATE `creature_template` SET `ScriptName`='mob_sliver' WHERE `entry`=24552;
+-UPDATE `creature_template` SET `ScriptName`='boss_apoko' WHERE `entry`=24553;
+-UPDATE `creature_template` SET `ScriptName`='boss_zelfan' WHERE `entry`=24556;
+-UPDATE `creature_template` SET `ScriptName`='boss_felblood_kaelthas' WHERE `entry`=24664;
+-UPDATE `creature_template` SET `ScriptName`='mob_arcane_sphere' WHERE `entry`=24708;
+-UPDATE `creature_template` SET `ScriptName`='mob_felkael_phoenix' WHERE `entry`=24674;
+-UPDATE `creature_template` SET `ScriptName`='mob_felkael_phoenix_egg' WHERE `entry`=24675;
+-UPDATE `creature_template` SET `ScriptName`='mob_felkael_flamestrike' WHERE `entry`=24666;
+-
+-/* MARAUDON */
+-UPDATE `creature_template` SET `ScriptName`='boss_princess_theradras' WHERE `entry`=12201;
+-UPDATE `creature_template` SET `ScriptName`='boss_noxxion' WHERE `entry`=13282;
+-UPDATE `creature_template` SET `ScriptName`='boss_landslide' WHERE `entry`=12203;
+-UPDATE `creature_template` SET `ScriptName`='celebras_the_cursed' WHERE `entry`=12225;
+-
+-/* MOLTEN CORE */
+-UPDATE `instance_template` SET `script`='instance_molten_core' WHERE `map`=409;
+-UPDATE `creature_template` SET `ScriptName`='boss_lucifron' WHERE `entry`=12118;
+-UPDATE `creature_template` SET `ScriptName`='boss_magmadar' WHERE `entry`=11982;
+-UPDATE `creature_template` SET `ScriptName`='boss_gehennas' WHERE `entry`=12259;
+-UPDATE `creature_template` SET `ScriptName`='boss_garr' WHERE `entry`=12057;
+-UPDATE `creature_template` SET `ScriptName`='boss_baron_geddon' WHERE `entry`=12056;
+-UPDATE `creature_template` SET `ScriptName`='boss_shazzrah' WHERE `entry`=12264;
+-UPDATE `creature_template` SET `ScriptName`='boss_golemagg' WHERE `entry`=11988;
+-UPDATE `creature_template` SET `ScriptName`='boss_sulfuron' WHERE `entry`=12098;
+-UPDATE `creature_template` SET `ScriptName`='boss_majordomo' WHERE `entry`=12018;
+-UPDATE `creature_template` SET `ScriptName`='boss_ragnaros' WHERE `entry`=11502;
+-UPDATE `creature_template` SET `ScriptName`='mob_ancient_core_hound' WHERE `entry`=11673;
+-UPDATE `creature_template` SET `ScriptName`='mob_firesworn' WHERE `entry`=12099;
+-UPDATE `creature_template` SET `ScriptName`='mob_core_rager' WHERE `entry`=11672;
+-UPDATE `creature_template` SET `ScriptName`='mob_flamewaker_priest' WHERE `entry`=11662;
+-
+-/* MOONGLADE */
+-UPDATE `creature_template` SET `ScriptName`='npc_bunthen_plainswind' WHERE `entry`=11798;
+-UPDATE `creature_template` SET `ScriptName`='npc_great_bear_spirit' WHERE `entry`=11956;
+-UPDATE `creature_template` SET `ScriptName`='npc_silva_filnaveth' WHERE `entry`=11800;
+-
+-/* MULGORE */
+-UPDATE `creature_template` SET `ScriptName`='npc_skorn_whitecloud' WHERE `entry`=3052;
+-
+-/* NAGRAND */
+-UPDATE `creature_template` SET `ScriptName`='mob_lump' WHERE `entry`=18351;
+-UPDATE `creature_template` SET `ScriptName`='mob_shattered_rumbler' WHERE `entry`=17157;
+-UPDATE `creature_template` SET `ScriptName`='mob_sunspring_villager' WHERE `entry`=18240;
+-UPDATE `creature_template` SET `ScriptName`='npc_altruis_the_sufferer' WHERE `entry`=18417;
+-UPDATE `creature_template` SET `ScriptName`='npc_greatmother_geyah' WHERE `entry`=18141;
+-UPDATE `creature_template` SET `ScriptName`='npc_lantresor_of_the_blade' WHERE `entry`=18261;
+-UPDATE `creature_template` SET `ScriptName`='npc_creditmarker_visit_with_ancestors' WHERE `entry` IN (18840,18841,18842,18843);
+-
+-/* NAXXRAMAS */
+-UPDATE `instance_template` SET `script`='instance_naxxramas' WHERE `map`=533;
+-UPDATE `creature_template` SET `ScriptName`='boss_anubrekhan' WHERE `entry`=15956;
+-UPDATE `creature_template` SET `ScriptName`='boss_faerlina' WHERE `entry`=15953;
+-UPDATE `creature_template` SET `ScriptName`='boss_maexxna' WHERE `entry`=15952;
+-UPDATE `creature_template` SET `ScriptName`='boss_noth' WHERE `entry`=15954;
+-UPDATE `creature_template` SET `ScriptName`='boss_heigan' WHERE `entry`=15936;
+-UPDATE `creature_template` SET `ScriptName`='boss_loatheb' WHERE `entry`=16011;
+-UPDATE `creature_template` SET `ScriptName`='boss_razuvious' WHERE `entry`=16061;
+-UPDATE `creature_template` SET `ScriptName`='boss_gothik' WHERE `entry`=16060;
+-UPDATE `creature_template` SET `ScriptName`='boss_highlord_mograine' WHERE `entry`=16062;
+-UPDATE `creature_template` SET `ScriptName`='boss_thane_korthazz' WHERE `entry`=16064;
+-UPDATE `creature_template` SET `ScriptName`='boss_sir_zeliek' WHERE `entry`=16063;
+-UPDATE `creature_template` SET `ScriptName`='boss_lady_blaumeux' WHERE `entry`=16065;
+-UPDATE `creature_template` SET `ScriptName`='boss_patchwerk' WHERE `entry`=16028;
+-UPDATE `creature_template` SET `ScriptName`='boss_grobbulus' WHERE `entry`=15931;
+-UPDATE `creature_template` SET `ScriptName`='boss_gluth' WHERE `entry`=15932;
+-UPDATE `creature_template` SET `ScriptName`='boss_thaddius' WHERE `entry`=15928;
+-UPDATE `creature_template` SET `ScriptName`='boss_stalagg' WHERE `entry`=15929;
+-UPDATE `creature_template` SET `ScriptName`='boss_fugen' WHERE `entry`=15930;
+-UPDATE `creature_template` SET `ScriptName`='boss_sapphiron' WHERE `entry`=15989;
+-UPDATE `creature_template` SET `ScriptName`='boss_kelthuzad' WHERE `entry`=15990;
+-
+-/* NETHERSTORM */
+-UPDATE `gameobject_template` SET `ScriptName`='go_manaforge_control_console' WHERE `entry` IN (183770,183956,184311,184312);
+-UPDATE `creature_template` SET `ScriptName`='npc_manaforge_control_console' WHERE `entry` IN (20209,20417,20418,20440);
+-UPDATE `creature_template` SET `ScriptName`='npc_protectorate_nether_drake' WHERE `entry`=20903;
+-UPDATE `creature_template` SET `ScriptName`='npc_veronia' WHERE `entry`=20162;
+-
+-/* ONYXIA'S LAIR */
+-UPDATE `creature_template` SET `ScriptName`='boss_onyxia' WHERE `entry`=10184;
+-
+-/* ORGRIMMAR */
+-UPDATE `creature_template` SET `ScriptName`='npc_neeru_fireblade' WHERE `entry`=3216;
+-UPDATE `creature_template` SET `ScriptName`='npc_shenthul' WHERE `entry`=3401;
+-UPDATE `creature_template` SET `ScriptName`='npc_thrall_warchief' WHERE `entry`=4949;
+-
+-/* RAGEFIRE CHASM */
+-
+-
+-/* RAZORFEN DOWNS */
+-UPDATE `creature_template` SET `ScriptName`='boss_amnennar_the_coldbringer' WHERE `entry`=7358;
+-
+-/* REDRIDGE MOUNTAINS */
+-
+-
+-/* RUINS OF AHN'QIRAJ */
+-UPDATE `instance_template` SET `script`='instance_ruins_of_ahnqiraj' WHERE `map`=509;
+-
+-/* SCARLET MONASTERY */
+-UPDATE `creature_template` SET `ScriptName`='boss_arcanist_doan' WHERE `entry`=6487;
+-UPDATE `creature_template` SET `ScriptName`='boss_azshir_the_sleepless' WHERE `entry`=6490;
+-UPDATE `creature_template` SET `ScriptName`='boss_bloodmage_thalnos' WHERE `entry`=4543;
+-UPDATE `creature_template` SET `ScriptName`='boss_herod' WHERE `entry`=3975;
+-UPDATE `creature_template` SET `ScriptName`='boss_high_inquisitor_fairbanks' WHERE `entry`=4542;
+-UPDATE `creature_template` SET `ScriptName`='boss_high_inquisitor_whitemane' WHERE `entry`=3977;
+-UPDATE `creature_template` SET `ScriptName`='boss_houndmaster_loksey' WHERE `entry`=3974;
+-UPDATE `creature_template` SET `ScriptName`='boss_interrogator_vishas' WHERE `entry`=3983;
+-UPDATE `creature_template` SET `ScriptName`='boss_scarlet_commander_mograine' WHERE `entry`=3976;
+-UPDATE `creature_template` SET `ScriptName`='boss_scorn' WHERE `entry`=14693;
+-
+-/* SCHOLOMANCE */
+-UPDATE `instance_template` SET `script`='instance_scholomance' WHERE `map`=289;
+-UPDATE `creature_template` SET `ScriptName`='boss_darkmaster_gandling' WHERE `entry`=1853;
+-UPDATE `creature_template` SET `ScriptName`='boss_death_knight_darkreaver' WHERE `entry`=14516;
+-UPDATE `creature_template` SET `ScriptName`='boss_lord_alexei_barov' WHERE `entry`=10504;
+-UPDATE `creature_template` SET `ScriptName`='boss_instructor_malicia' WHERE `entry`=10505;
+-UPDATE `creature_template` SET `ScriptName`='boss_boss_ras_frostwhisper' WHERE `entry`=10508;
+-UPDATE `creature_template` SET `ScriptName`='boss_the_ravenian' WHERE `entry`=10507;
+-UPDATE `creature_template` SET `ScriptName`='boss_vectus' WHERE `entry`=10432;
+-UPDATE `creature_template` SET `ScriptName`='boss_illucia_barov' WHERE `entry`=10502;
+-UPDATE `creature_template` SET `ScriptName`='boss_doctor_theolen_krastinov' WHERE `entry`=11261;
+-UPDATE `creature_template` SET `ScriptName`='boss_jandice_barov' WHERE `entry`=10503;
+-UPDATE `creature_template` SET `ScriptName`='boss_lorekeeper_polkelt' WHERE `entry`=10901;
+-UPDATE `creature_template` SET `ScriptName`='boss_kormok' WHERE `entry`=16118;
+-UPDATE `creature_template` SET `ScriptName`='mob_illusionofjandicebarov' WHERE `entry`=11439;
+-
+-/* SEARING GORGE */
+-UPDATE `creature_template` SET `ScriptName`='npc_kalaran_windblade' WHERE `entry`=8479;
+-UPDATE `creature_template` SET `ScriptName`='npc_lothos_riftwaker' WHERE `entry`=14387;
+-UPDATE `creature_template` SET `ScriptName`='npc_zamael_lunthistle' WHERE `entry`=8436;
+-
+-/* SHADOWFANG KEEP */
+-UPDATE `instance_template` SET `script`='instance_shadowfang_keep' WHERE `map`=33;
+-UPDATE `creature_template` SET `ScriptName`='npc_shadowfang_prisoner' WHERE `entry` IN (3849,3850);
+-
+-/* SHADOWMOON VALLEY */
+-UPDATE `creature_template` SET `ScriptName`='boss_doomwalker' WHERE `entry`=17711;
+-UPDATE `creature_template` SET `ScriptName`='npc_drake_dealer_hurlunk' WHERE `entry`=23489;
+-UPDATE `creature_template` SET `ScriptName`='npc_invis_legion_teleporter' WHERE `entry`=21807;
+-UPDATE `creature_template` SET `ScriptName`='npcs_flanis_swiftwing_and_kagrosh' WHERE `entry` IN (21725,21727);
+-UPDATE `creature_template` SET `ScriptName`='npc_murkblood_overseer' WHERE `entry`=23309;
+-UPDATE `creature_template` SET `ScriptName`='npc_neltharaku' WHERE `entry`=21657;
+-UPDATE `creature_template` SET `ScriptName`='npc_oronok_tornheart' WHERE `entry`=21183;
+-UPDATE `creature_template` SET `ScriptName`='mob_mature_netherwing_drake' WHERE `entry`=21648;
+-UPDATE `creature_template` SET `ScriptName`='mob_enslaved_netherwing_drake' WHERE `entry`=21722;
+-
+-/* SHATTRATH */
+-UPDATE `creature_template` SET `ScriptName`='npc_raliq_the_drunk' WHERE `entry`=18585;
+-UPDATE `creature_template` SET `ScriptName`='npc_salsalabim' WHERE `entry`=18584;
+-UPDATE `creature_template` SET `ScriptName`='npc_shattrathflaskvendors' WHERE `entry` IN (23483,23484);
+-UPDATE `creature_template` SET `ScriptName`='npc_zephyr' WHERE `entry`=25967;
+-
+-/* SILITHUS */
+-UPDATE `creature_template` SET `ScriptName`='npcs_rutgar_and_frankal' WHERE `entry` IN (15170,15171);
+-
+-/* SILVERMOON */
+-UPDATE `creature_template` SET `ScriptName`='npc_blood_knight_stillblade' WHERE `entry`=17768;
+-
+-/* SILVERPINE FOREST */
+-UPDATE `creature_template` SET `ScriptName`='npc_astor_hadren' WHERE `entry`=6497;
+-
+-/* STOCKADES */
+-
+-/* STONETALON MOUNTAINS */
+-UPDATE `creature_template` SET `ScriptName`='npc_braug_dimspirit' WHERE `entry`=4489;
+-
+-/* STORMWIND CITY */
+-UPDATE `creature_template` SET `ScriptName`='npc_archmage_malin' WHERE `entry`=2708;
+-UPDATE `creature_template` SET `ScriptName`='npc_bartleby' WHERE `entry`=6090;
+-UPDATE `creature_template` SET `ScriptName`='npc_dashel_stonefist' WHERE `entry`=4961;
+-UPDATE `creature_template` SET `ScriptName`='npc_general_marcus_jonathan' WHERE `entry`=466;
+-UPDATE `creature_template` SET `ScriptName`='npc_lady_katrana_prestor' WHERE `entry`=1749;
+-
+-/* STRANGLETHORN VALE */
+-UPDATE `creature_template` SET `ScriptName`='mob_yenniku' WHERE `entry`=2530;
+-
+-/* STRATHOLME */
+-UPDATE `instance_template` SET `script`='instance_stratholme' WHERE `map`=329;
+-UPDATE `creature_template` SET `ScriptName`='boss_dathrohan_balnazzar' WHERE `entry`=10812;
+-UPDATE `creature_template` SET `ScriptName`='boss_magistrate_barthilas' WHERE `entry`=10435;
+-UPDATE `creature_template` SET `ScriptName`='boss_maleki_the_pallid' WHERE `entry`=10438;
+-UPDATE `creature_template` SET `ScriptName`='boss_nerubenkan' WHERE `entry`=10437;
+-UPDATE `creature_template` SET `ScriptName`='boss_cannon_master_willey' WHERE `entry`=10997;
+-UPDATE `creature_template` SET `ScriptName`='boss_baroness_anastari' WHERE `entry`=10436;
+-UPDATE `creature_template` SET `ScriptName`='boss_ramstein_the_gorger' WHERE `entry`=10439;
+-UPDATE `creature_template` SET `ScriptName`='boss_timmy_the_cruel' WHERE `entry`=10808;
+-UPDATE `creature_template` SET `ScriptName`='boss_silver_hand_bosses' WHERE `entry` IN (17910,17911,17912,17913,17914);
+-UPDATE `creature_template` SET `ScriptName`='boss_postmaster_malown' WHERE `entry`=11143;
+-UPDATE `creature_template` SET `ScriptName`='boss_baron_rivendare' WHERE `entry`=10440;
+-UPDATE `creature_template` SET `ScriptName`='mob_mindless_skeleton' WHERE `entry`=11197;
+-UPDATE `creature_template` SET `ScriptName`='mob_thuzadin_acolyte' WHERE `entry`=10399;
+-UPDATE `creature_template` SET `ScriptName`='mobs_spectral_ghostly_citizen' WHERE `entry` IN (10384,10385);
+-UPDATE `creature_template` SET `ScriptName`='mob_restless_soul' WHERE `entry`=11122;
+-UPDATE `creature_template` SET `ScriptName`='mob_freed_soul' WHERE `entry`=11136;
+-
+-/* SUNKEN TEMPLE */
+-
+-
+-/* SWAMP OF SORROWS */
+-
+-
+-/* TANARIS */
+-UPDATE `creature_template` SET `ScriptName`='mob_aquementas' WHERE `entry`=9453;
+-UPDATE `creature_template` SET `ScriptName`='npc_custodian_of_time' WHERE `entry`=20129;
+-UPDATE `creature_template` SET `ScriptName`='npc_marin_noggenfogger' WHERE `entry`=7564;
+-UPDATE `creature_template` SET `ScriptName`='npc_steward_of_time' WHERE `entry`=20142;
+-UPDATE `creature_template` SET `ScriptName`='npc_stone_watcher_of_norgannon' WHERE `entry`=7918;
+-
+-/* TELDRASSIL */
+-
+-
+-/* */
+-/* TEMPEST KEEP */
+-/* */
+-
+-/* THE MECHANAR */
+-UPDATE `creature_template` SET `ScriptName`='boss_gatewatcher_iron_hand' WHERE `entry`=19710;
+-UPDATE `creature_template` SET `ScriptName`='boss_nethermancer_sepethrea' WHERE `entry`=19221;
+-UPDATE `creature_template` SET `ScriptName`='mob_ragin_flames' WHERE `entry`=20481;
+-UPDATE `creature_template` SET `ScriptName`='boss_pathaleon_the_calculator' WHERE `entry`=19220;
+-UPDATE `creature_template` SET `ScriptName`='mob_nether_wraith' WHERE `entry`=21062;
+-UPDATE `instance_template` SET `script`='instance_mechanar' WHERE `map`=554;
+-
+-/* THE BOTANICA */
+-UPDATE `creature_template` SET `ScriptName`='boss_high_botanist_freywinn' WHERE `entry`=17975;
+-UPDATE `creature_template` SET `ScriptName`='boss_laj' WHERE `entry`=17980;
+-UPDATE `creature_template` SET `ScriptName`='boss_warp_splinter' WHERE `entry`=17977;
+-UPDATE `creature_template` SET `ScriptName`='mob_warp_splinter_treant' WHERE `entry`=19949;
+-
+-/* THE ARCATRAZ */
+-UPDATE `instance_template` SET `script`='instance_arcatraz' WHERE `map`=552;
+-UPDATE `creature_template` SET `ScriptName`='mob_zerekethvoidzone' WHERE `entry`=21101;
+-UPDATE `creature_template` SET `ScriptName`='boss_harbinger_skyriss' WHERE `entry`=20912;
+-UPDATE `creature_template` SET `ScriptName`='boss_harbinger_skyriss_illusion' WHERE `entry` IN (21466,21467);
+-UPDATE `creature_template` SET `ScriptName`='npc_warden_mellichar' WHERE `entry`=20904;
+-UPDATE `creature_template` SET `ScriptName`='npc_millhouse_manastorm' WHERE `entry`=20977;
+-
+-/* THE EYE */
+-UPDATE `instance_template` SET `script`='instance_the_eye' WHERE `map`=550;
+-/* The Eye Trash Mobs */
+-UPDATE `creature_template` SET `ScriptName`='mob_crystalcore_devastator' WHERE `entry`=20040;
+-/* Void Reaver event */
+-UPDATE `creature_template` SET `ScriptName`='boss_void_reaver' WHERE `entry`=19516;
+-/* Astromancer event */
+-UPDATE `creature_template` SET `ScriptName`='boss_high_astromancer_solarian' WHERE `entry`=18805;
+-UPDATE `creature_template` SET `ScriptName`='mob_solarium_priest' WHERE `entry`=18806;
+-/* Kael'thas event */
+-UPDATE `creature_template` SET `ScriptName`='boss_kaelthas' WHERE `entry`=19622;
+-UPDATE `creature_template` SET `ScriptName`='boss_thaladred_the_darkener' WHERE `entry`=20064;
+-UPDATE `creature_template` SET `ScriptName`='boss_lord_sanguinar' WHERE `entry`=20060;
+-UPDATE `creature_template` SET `ScriptName`='boss_grand_astromancer_capernian' WHERE `entry`=20062;
+-UPDATE `creature_template` SET `ScriptName`='boss_master_engineer_telonicus' WHERE `entry`=20063;
+-UPDATE `creature_template` SET `ScriptName`='mob_phoenix' WHERE `entry`=21362;
+-UPDATE `creature_template` SET `ScriptName`='mob_nether_vapor' WHERE `entry`=21002;
+-UPDATE `creature_template` SET `ScriptName`='mob_kael_flamestrike' WHERE `entry`=21369;
+-
+-/* TEMPLE OF AHN'QIRAJ */
+-UPDATE `instance_template` SET `script`='instance_temple_of_ahnqiraj' WHERE `map`=531;
+-UPDATE `creature_template` SET `ScriptName`='boss_cthun' WHERE `entry`=15727;
+-UPDATE `creature_template` SET `ScriptName`='boss_skeram' WHERE `entry`=15263;
+-UPDATE `creature_template` SET `ScriptName`='boss_vem' WHERE `entry`=15544;
+-UPDATE `creature_template` SET `ScriptName`='boss_yauj' WHERE `entry`=15543;
+-UPDATE `creature_template` SET `ScriptName`='boss_kri' WHERE `entry`=15511;
+-UPDATE `creature_template` SET `ScriptName`='boss_sartura' WHERE `entry`=15516;
+-UPDATE `creature_template` SET `ScriptName`='boss_fankriss' WHERE `entry`=15510;
+-UPDATE `creature_template` SET `ScriptName`='boss_viscidus' WHERE `entry`=15299;
+-UPDATE `creature_template` SET `ScriptName`='boss_glob_of_viscidus' WHERE `entry`=15667;
+-UPDATE `creature_template` SET `ScriptName`='boss_huhuran' WHERE `entry`=15509;
+-UPDATE `creature_template` SET `ScriptName`='boss_veklor' WHERE `entry`=15276;
+-UPDATE `creature_template` SET `ScriptName`='boss_veknilash' WHERE `entry`=15275;
+-UPDATE `creature_template` SET `ScriptName`='boss_ouro' WHERE `entry`=15517;
+-UPDATE `creature_template` SET `ScriptName`='boss_eye_of_cthun' WHERE `entry`=15589;
+-UPDATE `creature_template` SET `ScriptName`='mob_sartura_royal_guard' WHERE `entry`=15984;
+-UPDATE `creature_template` SET `ScriptName`='mob_yauj_brood' WHERE `entry`=15621;
+-UPDATE `creature_template` SET `ScriptName`='mob_claw_tentacle' WHERE `entry`=15725;
+-UPDATE `creature_template` SET `ScriptName`='mob_eye_tentacle' WHERE `entry`=15726;
+-UPDATE `creature_template` SET `ScriptName`='mob_giant_claw_tentacle' WHERE `entry`=15728;
+-UPDATE `creature_template` SET `ScriptName`='mob_giant_eye_tentacle' WHERE `entry`=15334;
+-UPDATE `creature_template` SET `ScriptName`='mob_giant_flesh_tentacle' WHERE `entry`=15802;
+-UPDATE `creature_template` SET `ScriptName`='mob_anubisath_sentinel' WHERE `entry`=15264;
+-
+-/* TEROKKAR FOREST */
+-UPDATE `creature_template` SET `ScriptName`='mob_infested_root_walker' WHERE `entry`=22095;
+-UPDATE `creature_template` SET `ScriptName`='mob_netherweb_victim' WHERE `entry`=22355;
+-UPDATE `creature_template` SET `ScriptName`='mob_rotting_forest_rager' WHERE `entry`=22307;
+-UPDATE `creature_template` SET `ScriptName`='npc_floon' WHERE `entry`=18588;
+-UPDATE `creature_template` SET `ScriptName`='npc_skyguard_handler_irena' WHERE `entry`=23413;
+-
+-/* THOUSAND NEEDLES */
+-
+-
+-/* THUNDER BLUFF */
+-UPDATE `creature_template` SET `ScriptName`='npc_cairne_bloodhoof' WHERE `entry`=3057;
+-
+-/* TIRISFAL GLADES */
+-UPDATE `creature_template` SET `ScriptName`='npc_calvin_montague' WHERE `entry`=6784;
+-
+-/* ULDAMAN */
+-UPDATE `creature_template` SET `ScriptName`='boss_ironaya' WHERE `entry`=7228;
+-UPDATE `creature_template` SET `ScriptName`='mob_jadespine_basilisk' WHERE `entry`=4863;
+-UPDATE `creature_template` SET `ScriptName`='npc_lore_keeper_of_norgannon' WHERE `entry`=7172;
+-
+-/* UN'GORO CRATER */
+-
+-
+-/* UNDERCITY */
+-UPDATE `creature_template` SET `ScriptName`='npc_lady_sylvanas_windrunner' WHERE `entry`=10181;
+-UPDATE `creature_template` SET `ScriptName`='npc_highborne_lamenter' WHERE `entry`=21628;
+-UPDATE `creature_template` SET `ScriptName`='npc_parqual_fintallas' WHERE `entry`=4488;
+-
+-/* WAILING CAVERNS */
+-
+-
+-/* WESTERN PLAGUELANDS */
+-UPDATE `creature_template` SET `ScriptName`='npcs_dithers_and_arbington' WHERE `entry` IN (11056,11057);
+-UPDATE `creature_template` SET `ScriptName`='npc_the_scourge_cauldron' WHERE `entry`=11152;
+-
+-/* WESTFALL */
+-UPDATE `creature_template` SET `ScriptName`='npc_defias_traitor' WHERE `entry`='467';
+-
+-/* WETLANDS */
+-
+-
+-/* WINTERSPRING */
+-UPDATE `creature_template` SET `ScriptName`='npc_lorax' WHERE `entry`=10918;
+-UPDATE `creature_template` SET `ScriptName`='npc_rivern_frostwind' WHERE `entry`=10618;
+-UPDATE `creature_template` SET `ScriptName`='npc_witch_doctor_mauari' WHERE `entry`=10307;
+-
+-/* ZANGARMARSH */
+-UPDATE `creature_template` SET `ScriptName`='npcs_ashyen_and_keleth' WHERE `entry` IN (17900,17901);
+-UPDATE `creature_template` SET `ScriptName`='npc_cooshcoosh' WHERE `entry`=18586;
+-UPDATE `creature_template` SET `ScriptName`='npc_elder_kuruti' WHERE `entry`=18197;
+-UPDATE `creature_template` SET `ScriptName`='npc_mortog_steamhead' WHERE `entry`=23373;
+-
+-/* ZUL'AMAN */
+-UPDATE `instance_template` SET `script`='instance_zulaman' WHERE `map`=568;
+-UPDATE `creature_template` SET `ScriptName`='boss_janalai' WHERE `entry`=23578;
+-UPDATE `creature_template` SET `ScriptName`='boss_nalorakk' WHERE `entry`=23576;
+-UPDATE `creature_template` SET `ScriptName`='mob_jandalai_firebomb' WHERE `entry`=23920;
+-UPDATE `creature_template` SET `ScriptName`='mob_amanishi_hatcher' WHERE `entry`=23818;
+-UPDATE `creature_template` SET `ScriptName`='mob_hatchling' WHERE `entry`=23598;
+-UPDATE `creature_template` SET `ScriptName`='npc_forest_frog' WHERE `entry`=24396;
+-
+-/* ZUL'FARRAK */
+-UPDATE `creature_template` SET `ScriptName`='npc_sergeant_bly' WHERE `entry`=7604;
+-UPDATE `creature_template` SET `ScriptName`='npc_weegli_blastfuse' WHERE `entry`=7607;
+-
+-/* ZUL'GURUB */
+-UPDATE `instance_template` SET `script`='instance_zulgurub' WHERE `map`=309;
+-UPDATE `creature_template` SET `ScriptName`='boss_jeklik' WHERE `entry`=14517;
+-UPDATE `creature_template` SET `ScriptName`='boss_venoxis' WHERE `entry`=14507;
+-UPDATE `creature_template` SET `ScriptName`='boss_marli' WHERE `entry`=14510;
+-UPDATE `creature_template` SET `ScriptName`='boss_mandokir' WHERE `entry`=11382;
+-UPDATE `creature_template` SET `ScriptName`='boss_gahzranka' WHERE `entry`=15114;
+-UPDATE `creature_template` SET `ScriptName`='boss_jindo' WHERE `entry`=11380;
+-UPDATE `creature_template` SET `ScriptName`='boss_hakkar' WHERE `entry`=14834;
+-UPDATE `creature_template` SET `ScriptName`='boss_thekal' WHERE `entry`=14509;
+-UPDATE `creature_template` SET `ScriptName`='boss_arlokk' WHERE `entry`=14515;
+-UPDATE `creature_template` SET `ScriptName`='boss_grilek' WHERE `entry`=15082;
+-UPDATE `creature_template` SET `ScriptName`='boss_hazzarah' WHERE `entry`=15083;
+-UPDATE `creature_template` SET `ScriptName`='boss_renataki' WHERE `entry`=15084;
+-UPDATE `creature_template` SET `ScriptName`='boss_wushoolay' WHERE `entry`=15085;
+-UPDATE `creature_template` SET `ScriptName`='mob_zealot_lorkhan' WHERE `entry`=11347;
+-UPDATE `creature_template` SET `ScriptName`='mob_zealot_zath' WHERE `entry`=11348;
+-UPDATE `creature_template` SET `ScriptName`='mob_healing_ward' WHERE `entry`=14987;
+-UPDATE `creature_template` SET `ScriptName`='mob_spawn_of_marli' WHERE `entry`=15041;
+-UPDATE `creature_template` SET `ScriptName`='mob_batrider' WHERE `entry`=14965;
+-UPDATE `creature_template` SET `ScriptName`='mob_shade_of_jindo' WHERE `entry`=14986;
+-
+-/* EOF */
++/* */
++
++/* WORLD BOSS */
++UPDATE `creature_template` SET `ScriptName`='boss_ysondre' WHERE `entry`=14887;
++UPDATE `creature_template` SET `ScriptName`='boss_emeriss' WHERE `entry`=14889;
++UPDATE `creature_template` SET `ScriptName`='boss_taerar' WHERE `entry`=14890;
++UPDATE `creature_template` SET `ScriptName`='boss_shade_of_taerar' WHERE `entry`=15302;
++UPDATE `creature_template` SET `ScriptName`='boss_kruul' WHERE `entry`=18338;
++UPDATE `creature_template` SET `ScriptName`='boss_azuregos' WHERE `entry`=6109;
++UPDATE `creature_template` SET `ScriptName`='mob_dementeddruids' WHERE `entry`=15260;
++
++/* GO */
++UPDATE `gameobject_template` SET `ScriptName`='go_northern_crystal_pylon' WHERE `entry`=164955;
++UPDATE `gameobject_template` SET `ScriptName`='go_western_crystal_pylon' WHERE `entry`=164956;
++UPDATE `gameobject_template` SET `ScriptName`='go_eastern_crystal_pylon' WHERE `entry`=164957;
++UPDATE `gameobject_template` SET `ScriptName`='go_barov_journal' WHERE `entry`=180794;
++UPDATE `gameobject_template` SET `ScriptName`='go_field_repair_bot_74A' where `entry`= 179552;
++UPDATE `gameobject_template` SET `ScriptName`='go_orb_of_command' WHERE `entry`=179879;
++UPDATE `gameobject_template` SET `ScriptName`='go_tablet_of_madness' WHERE `entry`=180368;
++UPDATE `gameobject_template` SET `ScriptName`='go_tablet_of_the_seven' WHERE `entry`=169294;
++
++/* GUARD */
++UPDATE `creature_template` SET `ScriptName`='guard_azuremyst' WHERE `entry`=18038;
++UPDATE `creature_template` SET `ScriptName`='guard_orgrimmar' WHERE `entry`=3296;
++UPDATE `creature_template` SET `ScriptName`='guard_stormwind' WHERE `entry` IN (68,1976);
++UPDATE `creature_template` SET `ScriptName`='guard_contested' WHERE `entry` IN (9460,4624,3502,11190,15184);
++UPDATE `creature_template` SET `ScriptName`='guard_elwynnforest' WHERE `entry`=1423;
++UPDATE `creature_template` SET `ScriptName`='guard_eversong' WHERE `entry`=16221;
++UPDATE `creature_template` SET `ScriptName`='guard_darnassus' WHERE `entry`=4262;
++UPDATE `creature_template` SET `ScriptName`='guard_teldrassil' WHERE `entry`=3571;
++UPDATE `creature_template` SET `ScriptName`='guard_ironforge' WHERE `entry`=5595;
++UPDATE `creature_template` SET `ScriptName`='guard_dunmorogh' WHERE `entry` IN (727,13076);
++UPDATE `creature_template` SET `ScriptName`='guard_undercity' WHERE `entry`=5624;
++UPDATE `creature_template` SET `ScriptName`='guard_bluffwatcher' WHERE `entry`=3084;
++UPDATE `creature_template` SET `ScriptName`='guard_durotar' WHERE `entry`=5953;
++UPDATE `creature_template` SET `ScriptName`='guard_mulgore' WHERE `entry` IN (3212,3215,3217,3218,3219,3220,3221,3222,3223,3224);
++UPDATE `creature_template` SET `ScriptName`='guard_dunmorogh' WHERE `entry` IN (727,13076);
++UPDATE `creature_template` SET `ScriptName`='guard_tirisfal' WHERE `entry` IN (1735,1738,2210,1744,1745,5725,1743,2209,1746,1742);
++UPDATE `creature_template` SET `ScriptName`='guard_silvermoon' WHERE `entry`=16222;
++UPDATE `creature_template` SET `ScriptName`='guard_exodar' WHERE `entry`=16733;
++UPDATE `creature_template` SET `ScriptName`='guard_shattrath' WHERE `entry`=19687;
++UPDATE `creature_template` SET `ScriptName`='guard_shattrath_aldor' WHERE `entry`=18549;
++UPDATE `creature_template` SET `ScriptName`='guard_shattrath_scryer' WHERE `entry`=18568;
++
++/* ITEM */
++UPDATE `item_template` SET `ScriptName`='item_area_52_special' WHERE `entry`=28132;
++UPDATE `item_template` SET `ScriptName`='item_attuned_crystal_cores' WHERE `entry`=34368;
++UPDATE `item_template` SET `ScriptName`='item_blackwhelp_net' WHERE `entry`=31129;
++UPDATE `item_template` SET `ScriptName`='item_disciplinary_rod' WHERE `entry`=22473;
++UPDATE `item_template` SET `ScriptName`='item_draenei_fishing_net' WHERE `entry`=23654;
++UPDATE `item_template` SET `ScriptName`='item_flying_machine' WHERE `entry` IN (34060,34061);
++UPDATE `item_template` SET `ScriptName`='item_gor_dreks_ointment' WHERE `entry`=30175;
++UPDATE `item_template` SET `ScriptName`='item_muiseks_vessel' WHERE `entry` IN (9606,9618,9619,9620,9621);
++UPDATE `item_template` SET `ScriptName`='item_nether_wraith_beacon' WHERE `entry`=31742;
++UPDATE `item_template` SET `ScriptName`='item_protovoltaic_magneto_collector' WHERE `entry`=30656;
++UPDATE `item_template` SET `ScriptName`='item_razorthorn_flayer_gland' WHERE `entry`=34255;
++UPDATE `item_template` SET `ScriptName`='item_soul_cannon' WHERE `entry`=32825;
++UPDATE `item_template` SET `ScriptName`='item_sparrowhawk_net' WHERE `entry`=32321;
++UPDATE `item_template` SET `ScriptName`='item_tainted_core' WHERE `entry`=31088;
++UPDATE `item_template` SET `ScriptName`='item_tame_beast_rods' WHERE `entry` IN (15908,15911,15913,15914,15915,15916,15917,15919,15920,15921,15922,15923,23697,23702,23703,23896,23897,23898);
++UPDATE `item_template` SET `ScriptName`='item_voodoo_charm' WHERE `entry`=8149;
++UPDATE `item_template` SET `ScriptName`='item_vorenthals_presence' WHERE `entry`=30259;
++UPDATE `item_template` SET `ScriptName`='item_yehkinyas_bramble' WHERE `entry`=10699;
++UPDATE `item_template` SET `ScriptName`='item_zezzaks_shard' WHERE `entry`=31463;
++
++/* NPC (usually creatures to be found in more than one specific zone) */
++UPDATE `creature_template` SET `ScriptName`='npc_chicken_cluck' WHERE `entry`=620;
++UPDATE `creature_template` SET `ScriptName`='npc_dancing_flames' WHERE `entry`=25305;
++UPDATE `creature_template` SET `ScriptName`='npc_guardian' WHERE `entry`=5764;
++UPDATE `creature_template` SET `ScriptName`='npc_mount_vendor' WHERE `entry` IN (384,1261,1460,2357,3362,3685,4730,4731,4885,7952,7955,16264,17584);
++UPDATE `creature_template` SET `ScriptName`='npc_doctor' WHERE `entry` IN (12939,12920);
++UPDATE `creature_template` SET `ScriptName`='npc_injured_patient' WHERE `entry` IN (12936,12937,12938,12923,12924,12925);
++UPDATE `creature_template` SET `ScriptName`='npc_prof_alchemy' WHERE `entry` IN (17909,19052,22427);
++UPDATE `creature_template` SET `ScriptName`='npc_prof_blacksmith' WHERE `entry` IN (5164,11145,11146,11176,11177,11178,11191,11192,11193);
++UPDATE `creature_template` SET `ScriptName`='npc_prof_leather' WHERE `entry` IN (7866,7867,7868,7869,7870,7871);
++UPDATE `creature_template` SET `ScriptName`='npc_prof_tailor' WHERE `entry` IN (22208,22212,22213);
++UPDATE `creature_template` SET `ScriptName`='npc_rogue_trainer' WHERE `entry` IN (918,4163,3328,4583,5165,5167,13283,16684);
++UPDATE `creature_template` SET `ScriptName`='npc_sayge' WHERE `entry`=14822;
++
++
++/* */
++/* ZONE */
++/* */
++
++/* ALTERAC MOUNTAINS */
++UPDATE `creature_template` SET `ScriptName`='npc_ravenholdt' WHERE `entry`=13936;
++
++/* ALTERAC VALLEY */
++
++
++/* ARATHI HIGHLANDS */
++
++
++/* ASHENVALE */
++
++
++/* */
++/* AUCHINDOUN */
++/* */
++
++/* MANA TOMBS */
++UPDATE `creature_template` SET `ScriptName`='boss_pandemonius' WHERE `entry`=18341;
++UPDATE `creature_template` SET `ScriptName`='boss_nexusprince_shaffar' WHERE `entry`=18344;
++UPDATE `creature_template` SET `ScriptName`='mob_ethereal_beacon' WHERE `entry`=18431;
++
++/* AUCHENAI CRYPTS */
++UPDATE `creature_template` SET `ScriptName`='boss_exarch_maladaar' WHERE `entry`=18373;
++UPDATE `creature_template` SET `ScriptName`='mob_avatar_of_martyred' WHERE `entry`=18478;
++UPDATE `creature_template` SET `ScriptName`='mob_stolen_soul' WHERE `entry`=18441;
++
++/* SETHEKK HALLS */
++UPDATE `instance_template` SET `script`='instance_sethekk_halls' WHERE `map`=556;
++UPDATE `creature_template` SET `ScriptName`='mob_syth_fire' WHERE `entry`=19203;
++UPDATE `creature_template` SET `ScriptName`='mob_syth_arcane' WHERE `entry`=19205;
++UPDATE `creature_template` SET `ScriptName`='mob_syth_frost' WHERE `entry`=19204;
++UPDATE `creature_template` SET `ScriptName`='mob_syth_shadow' WHERE `entry`=19206;
++UPDATE `creature_template` SET `ScriptName`='boss_talon_king_ikiss' WHERE `entry`=18473;
++UPDATE `creature_template` SET `ScriptName`='boss_darkweaver_syth' WHERE `entry`=18472;
++
++/* SHADOW LABYRINTH */
++UPDATE `instance_template` SET `script`='instance_shadow_labyrinth' WHERE `map`=555;
++UPDATE `creature_template` SET `ScriptName`='boss_murmur' WHERE `entry`=18708;
++UPDATE `creature_template` SET `ScriptName`='boss_grandmaster_vorpil' WHERE `entry`=18732;
++UPDATE `creature_template` SET `ScriptName`='boss_blackheart_the_inciter' WHERE `entry`=18667;
++UPDATE `creature_template` SET `ScriptName`='boss_ambassador_hellmaw' WHERE `entry`=18731;
++
++/* AZSHARA */
++UPDATE `creature_template` SET `ScriptName`='mobs_spitelashes' WHERE `entry` IN (6190,6193,6194,6195,6196,7885,7886,12204,12205);
++UPDATE `creature_template` SET `ScriptName`='npc_loramus_thalipedes' WHERE `entry`=7783;
++
++/* AZUREMYST ISLE */
++UPDATE `creature_template` SET `ScriptName`='npc_engineer_spark_overgrind' WHERE `entry`=17243;
++UPDATE `creature_template` SET `ScriptName`='npc_injured_draenei' WHERE `entry`=16971;
++UPDATE `creature_template` SET `ScriptName`='npc_susurrus' WHERE `entry`=17435;
++
++/* BADLANDS */
++
++
++/* BARRENS */
++UPDATE `creature_template` SET `ScriptName`='npc_beaten_corpse' WHERE `entry`=10668;
++UPDATE `creature_template` SET `ScriptName`='npc_sputtervalve' WHERE `entry`=3442;
++UPDATE `creature_template` SET `ScriptName`='npc_taskmaster_fizzule' WHERE `entry`=7233;
++
++/* BLACK TEMPLE */
++UPDATE `instance_template` SET `script`='instance_black_temple' WHERE `map`=564;
++UPDATE `creature_template` SET `ScriptName`='npc_akama_shade' WHERE `entry`=22990; -- Akama at Shade of Akama
++UPDATE `creature_template` SET `ScriptName`='npc_akama_illidan' WHERE `entry`=23089; -- Akama at Illidan
++UPDATE `creature_template` SET `ScriptName`='mob_illidari_council' WHERE `entry`=23426; -- Illidari Council controller mob
++UPDATE `creature_template` SET `ScriptName`='mob_blood_elf_council_voice_trigger' WHERE `entry` = 23499; -- Voice Trigger Mob (Controls Aggro + Enrage yells)
++UPDATE `creature_template` SET `ScriptName`='boss_veras_darkshadow' WHERE `entry`=22952; -- Rogue of Illidari Council
++UPDATE `creature_template` SET `ScriptName`='boss_teron_gorefiend' WHERE `entry`=22871; -- Teron Gorefiend
++UPDATE `creature_template` SET `ScriptName`='boss_supremus' WHERE `entry`=22898; -- Supremus
++UPDATE `creature_template` SET `ScriptName`='boss_shade_of_akama' WHERE `entry`=22841; -- Shade of Akama
++UPDATE `creature_template` SET `ScriptName`='boss_reliquary_of_souls' WHERE `entry`=22856; -- Reliquary Controller Mob
++UPDATE `creature_template` SET `ScriptName`='boss_essence_of_suffering' WHERE `entry`=23418; -- Essence Of Suffering
++UPDATE `creature_template` SET `ScriptName`='boss_essence_of_desire' WHERE `entry`=23419; -- Essence of Desire
++UPDATE `creature_template` SET `ScriptName`='boss_essence_of_anger' WHERE `entry`=23420; -- Essence of Anger
++UPDATE `creature_template` SET `ScriptName`='boss_najentus' WHERE `entry`=22887; -- High Warlord Naj'entus
++UPDATE `creature_template` SET `ScriptName`='boss_gurtogg_bloodboil' WHERE `entry`=22948; -- Gurtogg Bloodboil
++UPDATE `creature_template` SET `ScriptName`='boss_mother_shahraz' WHERE `entry`=22947; -- Mother Shahraz
++UPDATE `creature_template` SET `ScriptName`='boss_lady_malande' WHERE `entry`=22951; -- Priest <3 at Illidari Council
++UPDATE `creature_template` SET `ScriptName`='boss_illidan_stormrage' WHERE `entry`=22917; -- Illidan The Betrayer!
++UPDATE `creature_template` SET `ScriptName`='boss_high_nethermancer_zerevor' WHERE `entry`=22950; -- Mage at Illidari Council
++UPDATE `creature_template` SET `ScriptName`='boss_gathios_the_shatterer' WHERE `entry`=22949; -- Paladin at Illidari Council
++UPDATE `creature_template` SET `ScriptName`='boss_maiev_shadowsong' WHERE `entry`=23197; -- Maiev Shadowsong
++UPDATE `gameobject_template` SET `ScriptName`='gameobject_cage_trap' WHERE `entry`=185916; -- Cage Trap GO in Illidan Encounter
++UPDATE `creature_template` SET `ScriptName`='mob_blaze' WHERE `entry`=23259; -- Blaze mob in Illidan Phase 2
++UPDATE `creature_template` SET `ScriptName`='mob_flame_of_azzinoth' WHERE `entry`=22997; -- Flame of Azzinoth (Illidan Phase 2)
++UPDATE `creature_template` SET `ScriptName`='mob_blade_of_azzinoth' WHERE `entry`=22996; -- Blade of Azzinoth (Illidan Phase 2)
++UPDATE `creature_template` SET `ScriptName`='mob_demon_fire' WHERE `entry`=23069; -- Demon Fire in Illidan Phase 2
++UPDATE `creature_template` SET `ScriptName`='mob_flame_crash' WHERE `entry`=23336; -- Flame Crash in Illidan Normal Form
++UPDATE `creature_template` SET `ScriptName`='mob_cage_trap_trigger' WHERE `entry`=23304; -- Cage Trap mob in Illidan Phase 3/4 Normal
++UPDATE `creature_template` SET `ScriptName`='mob_shadow_demon' WHERE `entry`=23375; -- Shadow Demon in Illidan Demon Form
++UPDATE `creature_template` SET `ScriptName`='npc_volcano' WHERE `entry`=23085; -- Supremus Volcano
++UPDATE `creature_template` SET `ScriptName`='molten_flame' WHERE `entry`=23095; -- Molten Flame in SUpremus
++UPDATE `creature_template` SET `ScriptName`='mob_ashtongue_channeler' WHERE `entry`=23421; -- Ashtongue CHanneler in Shade of AKama
++UPDATE `creature_template` SET `ScriptName`='mob_ashtongue_sorcerer' WHERE `entry`=23215; -- Ashtongue Sorcerer in Shade of Akama
++UPDATE `creature_template` SET `ScriptName`='npc_enslaved_soul' WHERE `entry`=23469; -- Enslaved Soul in Reliquary Event
++UPDATE `creature_template` SET `ScriptName`='mob_doom_blossom' WHERE `entry`=23123; -- Doom Blossoms in Teron Gorefiend's encounter
++UPDATE `creature_template` SET `ScriptName`='npc_spirit_of_olum' WHERE `entry`=23411;
++-- UPDATE `creature_template` SET `ScriptName`='mob_shadowy_construct' WHERE `entry`=23111; -- Shadowy Construct in Teron Gorefiend's encounter. Commented until Mind Control is implemented.
++
++/* BLACKFATHOM DEPTHS */
++
++
++/* BLACKROCK DEPTHS */
++UPDATE `creature_template` SET `ScriptName`='boss_emperor_dagran_thaurissan' WHERE `entry`=9019;
++UPDATE `creature_template` SET `ScriptName`='boss_moira_bronzebeard' WHERE `entry`=8929;
++UPDATE `creature_template` SET `ScriptName`='boss_ambassador_flamelash' WHERE `entry`=9156;
++UPDATE `creature_template` SET `ScriptName`='boss_angerrel' WHERE `entry`=9035;
++UPDATE `creature_template` SET `ScriptName`='boss_anubshiah' WHERE `entry`=9031;
++UPDATE `creature_template` SET `ScriptName`='boss_doomrel' WHERE `entry`=9039;
++UPDATE `creature_template` SET `ScriptName`='boss_doperel' WHERE `entry`=9040;
++UPDATE `creature_template` SET `ScriptName`='boss_general_angerforge' WHERE `entry`=9033;
++UPDATE `creature_template` SET `ScriptName`='boss_gloomrel' WHERE `entry`=9037;
++UPDATE `creature_template` SET `ScriptName`='boss_gorosh_the_dervish' WHERE `entry`=9027;
++UPDATE `creature_template` SET `ScriptName`='boss_grizzle' WHERE `entry`=9028;
++UPDATE `creature_template` SET `ScriptName`='boss_haterel' WHERE `entry`=9034;
++UPDATE `creature_template` SET `ScriptName`='boss_high_interrogator_gerstahn' WHERE `entry`=9018;
++UPDATE `creature_template` SET `ScriptName`='boss_magmus' WHERE `entry`=9938;
++UPDATE `creature_template` SET `ScriptName`='boss_seethrel' WHERE `entry`=9038;
++UPDATE `creature_template` SET `ScriptName`='boss_vilerel' WHERE `entry`=9036;
++UPDATE `creature_template` SET `ScriptName`='phalanx' WHERE `entry`=9502;
++UPDATE `creature_template` SET `ScriptName`='npc_lokhtos_darkbargainer' WHERE `entry`=12944;
++UPDATE `creature_template` SET `ScriptName`='npc_kharan_mighthammer' WHERE `entry`=9021;
++
++/* BLACKROCK SPIRE */
++/* BLACKROCK SPIRE Lower bosses */
++UPDATE `creature_template` SET `ScriptName`='boss_highlord_omokk' WHERE `entry`=9196;
++UPDATE `creature_template` SET `ScriptName`='boss_shadow_hunter_voshgajin' WHERE `entry`=9236;
++UPDATE `creature_template` SET `ScriptName`='boss_warmaster_voone' WHERE `entry`=9237;
++UPDATE `creature_template` SET `ScriptName`='boss_mother_smolderweb' WHERE `entry`=10596;
++UPDATE `creature_template` SET `ScriptName`='quartermaster_zigris' WHERE `entry`=9736;
++UPDATE `creature_template` SET `ScriptName`='boss_halycon' WHERE `entry`=10220;
++UPDATE `creature_template` SET `ScriptName`='boss_overlord_wyrmthalak' WHERE `entry`=9568;
++/* BLACKROCK SPIRE Upper bosses */
++UPDATE `creature_template` SET `ScriptName`='boss_the_beast' WHERE `entry`=10430;
++UPDATE `creature_template` SET `ScriptName`='boss_drakkisath' WHERE `entry`=10363;
++UPDATE `creature_template` SET `ScriptName`='boss_gyth' WHERE `entry`=10339;
++UPDATE `creature_template` SET `ScriptName`='boss_rend_blackhand' WHERE `entry`=10429;
++UPDATE `creature_template` SET `ScriptName`='boss_pyroguard_emberseer' WHERE `entry`=9816;
++
++/* BLACKWING LAIR */
++UPDATE `instance_template` SET `script`='instance_blackwing_lair' WHERE `map`=469;
++UPDATE `creature_template` SET `ScriptName`='boss_razorgore' WHERE `entry`=12435;
++UPDATE `creature_template` SET `ScriptName`='boss_vaelastrasz' WHERE `entry`=13020;
++UPDATE `creature_template` SET `ScriptName`='boss_broodlord' WHERE `entry`=12017;
++UPDATE `creature_template` SET `ScriptName`='boss_firemaw' WHERE `entry`=11983;
++UPDATE `creature_template` SET `ScriptName`='boss_ebonroc' WHERE `entry`=14601;
++UPDATE `creature_template` SET `ScriptName`='boss_flamegor' WHERE `entry`=11981;
++UPDATE `creature_template` SET `ScriptName`='boss_chromaggus' WHERE `entry`=14020;
++UPDATE `creature_template` SET `ScriptName`='boss_victor_nefarius' WHERE `entry`=10162;
++UPDATE `creature_template` SET `ScriptName`='boss_nefarian' WHERE `entry`=11583;
++
++/* BLADE'S EDGE MOUNTAINS */
++UPDATE `creature_template` SET `ScriptName`='mobs_bladespire_ogre' WHERE `entry` IN (19998,20334,21296,21975);
++UPDATE `creature_template` SET `ScriptName`='mobs_nether_drake' WHERE `entry` IN (20021,21817,21820,21821,21823);
++UPDATE `creature_template` SET `ScriptName`='npc_daranelle' WHERE `entry`=21469;
++UPDATE `creature_template` SET `ScriptName`='npc_overseer_nuaar' WHERE `entry`=21981;
++UPDATE `creature_template` SET `ScriptName`='npc_saikkal_the_elder' WHERE `entry`=22932;
++UPDATE `creature_template` SET `ScriptName`='npc_skyguard_handler_deesak' WHERE `entry`=23415;
++
++/* BLASTED LANDS */
++UPDATE `creature_template` SET `ScriptName`='npc_deathly_usher' WHERE `entry`=8816;
++UPDATE `creature_template` SET `ScriptName`='npc_fallen_hero_of_horde' WHERE `entry`=7572;
++
++/* BLOODMYST ISLE */
++UPDATE `creature_template` SET `ScriptName`='mob_webbed_creature' WHERE `entry`=17680;
++UPDATE `creature_template` SET `ScriptName`='npc_captured_sunhawk_agent' WHERE `entry`=17824;
++
++/* BURNING STEPPES */
++UPDATE `creature_template` SET `ScriptName`='npc_ragged_john' WHERE `entry`=9563;
++
++/* */
++/* CAVERNS OF TIME */
++/* */
++
++/* MT. HYJAL */
++UPDATE `instance_template` SET `script`='instance_hyjal' WHERE `map`=534;
++UPDATE `creature_template` SET `ScriptName`='npc_tyrande_whisperwind' WHERE `entry`=17948;
++UPDATE `creature_template` SET `ScriptName`='npc_thrall' WHERE `entry` =17852;
++UPDATE `creature_template` SET `ScriptName`='npc_jaina_proudmoore' WHERE `entry`=17772;
++UPDATE `creature_template` SET `ScriptName`='boss_archimonde' WHERE `entry`=17968;
++UPDATE `creature_template` SET `ScriptName`='mob_doomfire' WHERE `entry`=18095;
++UPDATE `creature_template` SET `ScriptName`='mob_doomfire_targetting' WHERE `entry`=18104;
++UPDATE `creature_template` SET `ScriptName`='mob_ancient_wisp' WHERE `entry`=17946;
++
++/* OLD HILLSBRAD */
++UPDATE `instance_template` SET `script`='instance_old_hillsbrad' WHERE `map`=560;
++UPDATE `creature_template` SET `ScriptName`='boss_lieutenant_drake' WHERE `entry`=17848;
++UPDATE `creature_template` SET `ScriptName`='boss_epoch_hunter' WHERE `entry`=18096;
++UPDATE `creature_template` SET `ScriptName`='boss_captain_skarloc' WHERE `entry`=17862;
++UPDATE `creature_template` SET `ScriptName`='npc_brazen' WHERE `entry`=18725;
++UPDATE `creature_template` SET `ScriptName`='npc_erozion' WHERE `entry`=18723;
++UPDATE `creature_template` SET `ScriptName`='npc_taretha' WHERE `entry`=18887;
++UPDATE `creature_template` SET `ScriptName`='npc_thrall_old_hillsbrad' WHERE `entry`=17876;
++
++/* THE DARK PORTAL */
++UPDATE `creature_template` SET `ScriptName`='boss_chrono_lord_deja' WHERE `entry`=17879;
++UPDATE `creature_template` SET `ScriptName`='boss_aeonus' WHERE `entry`=17881;
++UPDATE `creature_template` SET `ScriptName`='boss_temporus' WHERE `entry`=17880;
++
++
++/* */
++/* COILFANG RESERVOIR */
++/* */
++
++/* THE SLAVE PENS */
++
++/* THE UNDERBOG */
++UPDATE `creature_template` SET `ScriptName`='mob_underbog_mushroom' WHERE `entry`=17990;
++UPDATE `creature_template` SET `ScriptName`='boss_hungarfen' WHERE `entry`=17770;
++
++/* THE STEAMVAULT */
++UPDATE `instance_template` SET `script`='instance_steam_vault' WHERE `map`=545;
++UPDATE `creature_template` SET `ScriptName`='boss_hydromancer_thespia' WHERE `entry`=17797;
++UPDATE `creature_template` SET `ScriptName`='boss_mekgineer_steamrigger' WHERE `entry`=17796;
++UPDATE `creature_template` SET `ScriptName`='boss_warlord_kalithresh' WHERE `entry`=17798;
++UPDATE `creature_template` SET `ScriptName`='mob_coilfang_waterelemental' WHERE `entry`=17917;
++UPDATE `creature_template` SET `ScriptName`='mob_naga_distiller' WHERE `entry`=17954;
++UPDATE `creature_template` SET `ScriptName`='mob_steamrigger_mechanic' WHERE `entry`=17951;
++
++/* SERPENTSHRINE CAVERN */
++UPDATE `instance_template` SET `script`='instance_serpent_shrine' WHERE `map`=548;
++UPDATE `creature_template` SET `ScriptName`='boss_hydross_the_unstable' WHERE `entry`=21216;
++/* Leotheras the Blind event */
++UPDATE `creature_template` SET `ScriptName`='boss_leotheras_the_blind' WHERE `entry`=21215;
++UPDATE `creature_template` SET `ScriptName`='boss_leotheras_the_blind_demonform' WHERE `entry`=21845;
++/* Fathom-lord Karathress event */
++UPDATE `creature_template` SET `ScriptName`='boss_fathomlord_karathress' WHERE `entry`=21214;
++UPDATE `creature_template` SET `ScriptName`='boss_fathomguard_sharkkis' WHERE `entry`=21966;
++UPDATE `creature_template` SET `ScriptName`='boss_fathomguard_tidalvess' WHERE `entry`=21965;
++UPDATE `creature_template` SET `ScriptName`='boss_fathomguard_caribdis' WHERE `entry`=21964;
++/* Morogrim Tidewalker event */
++UPDATE `creature_template` SET `ScriptName`='boss_morogrim_tidewalker' WHERE `entry`=21213;
++UPDATE `creature_template` SET `ScriptName`='mob_water_globule' WHERE `entry`=21913;
++/* Lady Vashj event */
++UPDATE `creature_template` SET `ScriptName`='boss_lady_vashj' WHERE `entry`=21212;
++UPDATE `creature_template` SET `ScriptName`='mob_enchanted_elemental' WHERE `entry`=21958;
++UPDATE `creature_template` SET `ScriptName`='mob_tainted_elemental' WHERE `entry`=22009;
++UPDATE `creature_template` SET `ScriptName`='mob_coilfang_elite' WHERE `entry`=22055;
++UPDATE `creature_template` SET `ScriptName`='mob_coilfang_strider' WHERE `entry`=22056;
++UPDATE `creature_template` SET `ScriptName`='mob_fathom_sporebat' WHERE `entry`=22140;
++UPDATE `creature_template` SET `ScriptName`='mob_shield_generator_channel' WHERE `entry`=19870;
++
++
++/* DARKSHORE */
++
++
++/* DEADMINES */
++
++
++/* DEADWIND PASS */
++
++
++/* DESOLACE */
++
++
++/* DIRE MAUL */
++
++
++/* DUN MOROGH */
++UPDATE `creature_template` SET `ScriptName`='npc_narm_faulk' WHERE `entry`=6177;
++
++
++/* DUROTAR */
++
++
++/* DUSKWOOD */
++
++
++/* DUSTWALLOW MARSH */
++UPDATE `creature_template` SET `ScriptName`='mobs_risen_husk_spirit' WHERE `entry` IN (23554,23555);
++UPDATE `creature_template` SET `ScriptName`='npc_deserter_agitator' WHERE `entry`=23602;
++UPDATE `creature_template` SET `ScriptName`='npc_lady_jaina_proudmoore' WHERE `entry`=4968;
++UPDATE `creature_template` SET `ScriptName`='npc_nat_pagle' WHERE `entry`=12919;
++UPDATE `creature_template` SET `ScriptName`='npc_restless_apparition' WHERE `entry`=23861;
++
++/* EASTERN PLAGUELANDS */
++UPDATE `creature_template` SET `ScriptName`='mobs_ghoul_flayer' WHERE `entry` IN (8530,8531,8532);
++UPDATE `creature_template` SET `ScriptName`='npc_augustus_the_touched' WHERE `entry`=12384;
++UPDATE `creature_template` SET `ScriptName`='npc_darrowshire_spirit' WHERE `entry`=11064;
++UPDATE `creature_template` SET `ScriptName`='npc_tirion_fordring' WHERE `entry`=1855;
++
++/* ELWYNN FOREST */
++UPDATE `creature_template` SET `ScriptName`='npc_henze_faulk' WHERE `entry`=6172;
++
++/* EVERSONG WOODS */
++UPDATE `creature_template` SET `ScriptName`='mobs_mana_tapped' WHERE `entry` IN (15273,15274,15294,15298,15367);
++UPDATE `creature_template` SET `ScriptName`='npc_prospector_anvilward' WHERE `entry`=15420;
++
++/* FELWOOD */
++UPDATE `creature_template` SET `ScriptName`='npcs_riverbreeze_and_silversky' WHERE `entry` IN (9528,9529);
++
++/* FERALAS */
++UPDATE `creature_template` SET `ScriptName`='npc_gregan_brewspewer' WHERE `entry`=7775;
++UPDATE `creature_template` SET `ScriptName`='npc_screecher_spirit' WHERE `entry`=8612;
++
++/* GHOSTLANDS */
++UPDATE `creature_template` SET `ScriptName`='npc_blood_knight_dawnstar' WHERE `entry`=17832;
++UPDATE `creature_template` SET `ScriptName`='npc_budd_nedreck' WHERE `entry`=23559;
++UPDATE `creature_template` SET `ScriptName`='npc_rathis_tomber' WHERE `entry`=16224;
++
++/* GNOMEREGAN */
++
++
++/* GRUUL'S LAIR */
++UPDATE `instance_template` SET `script`='instance_gruuls_lair' WHERE `map` =565;
++UPDATE `creature_template` SET `ScriptName`='boss_gruul' WHERE `entry`=19044;
++/* Maulgar and Event */
++UPDATE `creature_template` SET `ScriptName`='boss_high_king_maulgar' WHERE `entry`=18831;
++UPDATE `creature_template` SET `ScriptName`='boss_kiggler_the_crazed' WHERE `entry`=18835;
++UPDATE `creature_template` SET `ScriptName`='boss_blindeye_the_seer' WHERE `entry`=18836;
++UPDATE `creature_template` SET `ScriptName`='boss_olm_the_summoner' WHERE `entry`=18834;
++UPDATE `creature_template` SET `ScriptName`='boss_krosh_firehand' WHERE `entry`=18832;
++
++/* */
++/* HELLFIRE CITADEL */
++/* */
++
++/* BLOOD FURNACE */
++/* The Maker,Broggok,Kelidan,Broggok's cloud */
++UPDATE `creature_template` SET `ScriptName`='boss_the_maker' WHERE `entry`=17381;
++UPDATE `creature_template` SET `ScriptName`='boss_broggok' WHERE `entry`=17380;
++UPDATE `creature_template` SET `ScriptName`='boss_kelidan_the_breaker' WHERE `entry`=17377;
++UPDATE `creature_template` SET `ScriptName`='mob_broggok_poisoncloud' WHERE `entry`=17662;
++UPDATE `creature_template` SET `ScriptName`='mob_shadowmoon_channeler' WHERE `entry`=17653;
++
++/* HELLFIRE RAMPARTS */
++/* Vazruden,Omor the Unscarred,Watchkeeper Gargolmar */
++UPDATE `creature_template` SET `ScriptName`='boss_omor_the_unscarred' WHERE `entry`=17308;
++UPDATE `creature_template` SET `ScriptName`='boss_watchkeeper_gargolmar' WHERE `entry`=17306;
++
++/* SHATTERED HALLS */
++/* Nethekurse and his spawned shadowfissure */
++UPDATE `creature_template` SET `ScriptName`='boss_grand_warlock_nethekurse' WHERE `entry`=16807;
++UPDATE `creature_template` SET `ScriptName`='boss_warbringer_omrogg' WHERE `entry`=16809;
++UPDATE `creature_template` SET `ScriptName`='mob_fel_orc_convert' WHERE `entry`=17083;
++UPDATE `creature_template` SET `ScriptName`='mob_lesser_shadow_fissure' WHERE `entry`=17471;
++UPDATE `creature_template` SET `ScriptName`='mob_omrogg_heads' WHERE `entry` IN (19523,19524);
++UPDATE `instance_template` SET `script`='instance_shattered_halls' WHERE `map`=540;
++
++/* MAGTHERIDON'S LAIR */
++UPDATE `instance_template` SET `script`='instance_magtheridons_lair' WHERE `map`=544;
++UPDATE `gameobject_template` SET `ScriptName`='go_manticron_cube' WHERE `entry`=181713;
++UPDATE `creature_template` SET `ScriptName`='boss_magtheridon' WHERE `entry` =17257;
++UPDATE `creature_template` SET `ScriptName`='mob_hellfire_channeler' WHERE `entry`=17256;
++
++/* HELLFIRE PENINSULA */
++UPDATE `creature_template` SET `ScriptName`='boss_doomlord_kazzak' WHERE `entry`=18728;
++UPDATE `creature_template` SET `ScriptName`='npc_wing_commander_brack' WHERE `entry`=19401;
++UPDATE `creature_template` SET `ScriptName`='npc_wing_commander_dabiree' WHERE `entry`=19409;
++UPDATE `creature_template` SET `ScriptName`='npc_gryphoneer_windbellow' WHERE `entry`=20235;
++
++/* HILLSBRAD FOOTHILLS */
++
++
++/* HINTERLANDS */
++
++
++/* IRONFORGE */
++UPDATE `creature_template` SET `ScriptName`='npc_royal_historian_archesonus' WHERE `entry`=8879;
++
++/* ISLE OF QUEL'DANAS */
++UPDATE `creature_template` SET `ScriptName`='npc_ayren_cloudbreaker' WHERE `entry`=25059;
++UPDATE `creature_template` SET `ScriptName`='npc_converted_sentry' WHERE `entry`=24981;
++UPDATE `creature_template` SET `ScriptName`='npc_unrestrained_dragonhawk' WHERE `entry`=25236;
++
++/* KARAZHAN */
++UPDATE `instance_template` SET `script`='instance_karazhan' WHERE `map`=532;
++UPDATE `creature_template` SET `ScriptName`='boss_midnight' WHERE `entry`=16151;
++UPDATE `creature_template` SET `ScriptName`='boss_attumen' WHERE `entry`=15550;
++UPDATE `creature_template` SET `ScriptName`='boss_moroes' WHERE `entry`=15687;
++UPDATE `creature_template` SET `ScriptName`='boss_maiden_of_virtue' WHERE `entry`=16457;
++UPDATE `creature_template` SET `ScriptName`='boss_curator' WHERE `entry`=15691;
++UPDATE `creature_template` SET `ScriptName`='boss_julianne' WHERE `entry`=17534;
++UPDATE `creature_template` SET `ScriptName`='boss_romulo' WHERE `entry`=17533;
++UPDATE `creature_template` SET `ScriptName`='boss_dorothee' WHERE `entry`=17535;
++UPDATE `creature_template` SET `ScriptName`='boss_strawman' WHERE `entry`=17543;
++UPDATE `creature_template` SET `ScriptName`='boss_tinhead' WHERE `entry`=17547;
++UPDATE `creature_template` SET `ScriptName`='boss_tito' WHERE `entry`=17548;
++UPDATE `creature_template` SET `ScriptName`='boss_roar' WHERE `entry`=17546;
++UPDATE `creature_template` SET `ScriptName`='boss_crone' WHERE `entry`=18168;
++UPDATE `creature_template` SET `ScriptName`='boss_terestian_illhoof' WHERE `entry`=15688;
++UPDATE `creature_template` SET `ScriptName`='boss_shade_of_aran' WHERE `entry`=16524;
++UPDATE `creature_template` SET `ScriptName`='boss_netherspite' WHERE `entry`=15689;
++UPDATE `creature_template` SET `ScriptName`='boss_malchezaar' WHERE `entry`=15690;
++UPDATE `creature_template` SET `ScriptName`='boss_nightbane' WHERE `entry`=17225;
++UPDATE `creature_template` SET `ScriptName`='boss_baroness_dorothea_millstipe' WHERE `entry`=19875;
++UPDATE `creature_template` SET `ScriptName`='boss_baron_rafe_dreuger' WHERE `entry`=19874;
++UPDATE `creature_template` SET `ScriptName`='boss_lady_catriona_von_indi' WHERE `entry`=19872;
++UPDATE `creature_template` SET `ScriptName`='boss_lady_keira_berrybuck' WHERE `entry`=17007;
++UPDATE `creature_template` SET `ScriptName`='boss_lord_robin_daris' WHERE `entry`=19876;
++UPDATE `creature_template` SET `ScriptName`='boss_lord_crispin_ference' WHERE `entry`=19873;
++UPDATE `creature_template` SET `ScriptName`='boss_bigbadwolf' WHERE `entry`=17521;
++UPDATE `creature_template` SET `ScriptName`='mob_shadow_of_aran' WHERE `entry`=18254;
++UPDATE `creature_template` SET `ScriptName`='mob_aran_elemental' WHERE `entry`=17167;
++UPDATE `creature_template` SET `ScriptName`='mob_aran_blizzard' WHERE `entry`=17161;
++UPDATE `creature_template` SET `ScriptName`='mob_homunculus' WHERE `entry`=16539;
++UPDATE `creature_template` SET `ScriptName`='mob_kilrek' WHERE `entry`=17229;
++UPDATE `creature_template` SET `ScriptName`='mob_demon_chain' WHERE `entry`=17248;
++UPDATE `creature_template` SET `ScriptName`='mob_cyclone' WHERE `entry`=18412;
++UPDATE `creature_template` SET `ScriptName`='netherspite_infernal' WHERE `entry`=17646;
++UPDATE `creature_template` SET `ScriptName`='npc_berthold' WHERE `entry`=16153;
++UPDATE `creature_template` SET `ScriptName`='npc_barnes' WHERE `entry`=16812;
++UPDATE `creature_template` SET `ScriptName`='npc_grandmother' WHERE `entry`=17603;
++
++
++/* LOCH MODAN */
++UPDATE `creature_template` SET `ScriptName`='npc_mountaineer_pebblebitty' WHERE `entry`=3836;
++
++/* Magister's Terrace */
++UPDATE `instance_template` SET `script`='instance_magisters_terrace' WHERE `map`=585;
++UPDATE `creature_template` SET `ScriptName`='boss_selin_fireheart' WHERE `entry`=24723;
++UPDATE `creature_template` SET `ScriptName`='mob_fel_crystal' WHERE `entry`=24722;
++UPDATE `creature_template` SET `ScriptName`='boss_vexallus' WHERE `entry`=24744;
++UPDATE `creature_template` SET `ScriptName`='mob_pure_energy' WHERE `entry`=24745;
++UPDATE `creature_template` SET `ScriptName`='boss_priestess_delrissa' WHERE `entry`=24560;
++UPDATE `creature_template` SET `ScriptName`='boss_kagani_nightstrike' WHERE `entry`=24557;
++UPDATE `creature_template` SET `ScriptName`='boss_ellris_duskhallow' WHERE `entry`=24558;
++UPDATE `creature_template` SET `ScriptName`='boss_eramas_brightblaze' WHERE `entry`=24554;
++UPDATE `creature_template` SET `ScriptName`='boss_yazzai' WHERE `entry`=24561;
++UPDATE `creature_template` SET `ScriptName`='boss_warlord_salaris' WHERE `entry`=24559;
++UPDATE `creature_template` SET `ScriptName`='boss_garaxxas' WHERE `entry`=24555;
++UPDATE `creature_template` SET `ScriptName`='mob_sliver' WHERE `entry`=24552;
++UPDATE `creature_template` SET `ScriptName`='boss_apoko' WHERE `entry`=24553;
++UPDATE `creature_template` SET `ScriptName`='boss_zelfan' WHERE `entry`=24556;
++UPDATE `creature_template` SET `ScriptName`='boss_felblood_kaelthas' WHERE `entry`=24664;
++UPDATE `creature_template` SET `ScriptName`='mob_arcane_sphere' WHERE `entry`=24708;
++UPDATE `creature_template` SET `ScriptName`='mob_felkael_phoenix' WHERE `entry`=24674;
++UPDATE `creature_template` SET `ScriptName`='mob_felkael_phoenix_egg' WHERE `entry`=24675;
++UPDATE `creature_template` SET `ScriptName`='mob_felkael_flamestrike' WHERE `entry`=24666;
++
++/* MARAUDON */
++UPDATE `creature_template` SET `ScriptName`='boss_princess_theradras' WHERE `entry`=12201;
++UPDATE `creature_template` SET `ScriptName`='boss_noxxion' WHERE `entry`=13282;
++UPDATE `creature_template` SET `ScriptName`='boss_landslide' WHERE `entry`=12203;
++UPDATE `creature_template` SET `ScriptName`='celebras_the_cursed' WHERE `entry`=12225;
++
++/* MOLTEN CORE */
++UPDATE `instance_template` SET `script`='instance_molten_core' WHERE `map`=409;
++UPDATE `creature_template` SET `ScriptName`='boss_lucifron' WHERE `entry`=12118;
++UPDATE `creature_template` SET `ScriptName`='boss_magmadar' WHERE `entry`=11982;
++UPDATE `creature_template` SET `ScriptName`='boss_gehennas' WHERE `entry`=12259;
++UPDATE `creature_template` SET `ScriptName`='boss_garr' WHERE `entry`=12057;
++UPDATE `creature_template` SET `ScriptName`='boss_baron_geddon' WHERE `entry`=12056;
++UPDATE `creature_template` SET `ScriptName`='boss_shazzrah' WHERE `entry`=12264;
++UPDATE `creature_template` SET `ScriptName`='boss_golemagg' WHERE `entry`=11988;
++UPDATE `creature_template` SET `ScriptName`='boss_sulfuron' WHERE `entry`=12098;
++UPDATE `creature_template` SET `ScriptName`='boss_majordomo' WHERE `entry`=12018;
++UPDATE `creature_template` SET `ScriptName`='boss_ragnaros' WHERE `entry`=11502;
++UPDATE `creature_template` SET `ScriptName`='mob_ancient_core_hound' WHERE `entry`=11673;
++UPDATE `creature_template` SET `ScriptName`='mob_firesworn' WHERE `entry`=12099;
++UPDATE `creature_template` SET `ScriptName`='mob_core_rager' WHERE `entry`=11672;
++UPDATE `creature_template` SET `ScriptName`='mob_flamewaker_priest' WHERE `entry`=11662;
++
++/* MOONGLADE */
++UPDATE `creature_template` SET `ScriptName`='npc_bunthen_plainswind' WHERE `entry`=11798;
++UPDATE `creature_template` SET `ScriptName`='npc_great_bear_spirit' WHERE `entry`=11956;
++UPDATE `creature_template` SET `ScriptName`='npc_silva_filnaveth' WHERE `entry`=11800;
++
++/* MULGORE */
++UPDATE `creature_template` SET `ScriptName`='npc_skorn_whitecloud' WHERE `entry`=3052;
++
++/* NAGRAND */
++UPDATE `creature_template` SET `ScriptName`='mob_lump' WHERE `entry`=18351;
++UPDATE `creature_template` SET `ScriptName`='mob_shattered_rumbler' WHERE `entry`=17157;
++UPDATE `creature_template` SET `ScriptName`='mob_sunspring_villager' WHERE `entry`=18240;
++UPDATE `creature_template` SET `ScriptName`='npc_altruis_the_sufferer' WHERE `entry`=18417;
++UPDATE `creature_template` SET `ScriptName`='npc_greatmother_geyah' WHERE `entry`=18141;
++UPDATE `creature_template` SET `ScriptName`='npc_lantresor_of_the_blade' WHERE `entry`=18261;
++UPDATE `creature_template` SET `ScriptName`='npc_creditmarker_visit_with_ancestors' WHERE `entry` IN (18840,18841,18842,18843);
++
++/* NAXXRAMAS */
++UPDATE `instance_template` SET `script`='instance_naxxramas' WHERE `map`=533;
++UPDATE `creature_template` SET `ScriptName`='boss_anubrekhan' WHERE `entry`=15956;
++UPDATE `creature_template` SET `ScriptName`='boss_faerlina' WHERE `entry`=15953;
++UPDATE `creature_template` SET `ScriptName`='boss_maexxna' WHERE `entry`=15952;
++UPDATE `creature_template` SET `ScriptName`='boss_noth' WHERE `entry`=15954;
++UPDATE `creature_template` SET `ScriptName`='boss_heigan' WHERE `entry`=15936;
++UPDATE `creature_template` SET `ScriptName`='boss_loatheb' WHERE `entry`=16011;
++UPDATE `creature_template` SET `ScriptName`='boss_razuvious' WHERE `entry`=16061;
++UPDATE `creature_template` SET `ScriptName`='boss_gothik' WHERE `entry`=16060;
++UPDATE `creature_template` SET `ScriptName`='boss_highlord_mograine' WHERE `entry`=16062;
++UPDATE `creature_template` SET `ScriptName`='boss_thane_korthazz' WHERE `entry`=16064;
++UPDATE `creature_template` SET `ScriptName`='boss_sir_zeliek' WHERE `entry`=16063;
++UPDATE `creature_template` SET `ScriptName`='boss_lady_blaumeux' WHERE `entry`=16065;
++UPDATE `creature_template` SET `ScriptName`='boss_patchwerk' WHERE `entry`=16028;
++UPDATE `creature_template` SET `ScriptName`='boss_grobbulus' WHERE `entry`=15931;
++UPDATE `creature_template` SET `ScriptName`='boss_gluth' WHERE `entry`=15932;
++UPDATE `creature_template` SET `ScriptName`='boss_thaddius' WHERE `entry`=15928;
++UPDATE `creature_template` SET `ScriptName`='boss_stalagg' WHERE `entry`=15929;
++UPDATE `creature_template` SET `ScriptName`='boss_fugen' WHERE `entry`=15930;
++UPDATE `creature_template` SET `ScriptName`='boss_sapphiron' WHERE `entry`=15989;
++UPDATE `creature_template` SET `ScriptName`='boss_kelthuzad' WHERE `entry`=15990;
++
++/* NETHERSTORM */
++UPDATE `gameobject_template` SET `ScriptName`='go_manaforge_control_console' WHERE `entry` IN (183770,183956,184311,184312);
++UPDATE `creature_template` SET `ScriptName`='npc_manaforge_control_console' WHERE `entry` IN (20209,20417,20418,20440);
++UPDATE `creature_template` SET `ScriptName`='npc_protectorate_nether_drake' WHERE `entry`=20903;
++UPDATE `creature_template` SET `ScriptName`='npc_veronia' WHERE `entry`=20162;
++
++/* ONYXIA'S LAIR */
++UPDATE `creature_template` SET `ScriptName`='boss_onyxia' WHERE `entry`=10184;
++
++/* ORGRIMMAR */
++UPDATE `creature_template` SET `ScriptName`='npc_neeru_fireblade' WHERE `entry`=3216;
++UPDATE `creature_template` SET `ScriptName`='npc_shenthul' WHERE `entry`=3401;
++UPDATE `creature_template` SET `ScriptName`='npc_thrall_warchief' WHERE `entry`=4949;
++
++/* RAGEFIRE CHASM */
++
++
++/* RAZORFEN DOWNS */
++UPDATE `creature_template` SET `ScriptName`='boss_amnennar_the_coldbringer' WHERE `entry`=7358;
++
++/* REDRIDGE MOUNTAINS */
++
++
++/* RUINS OF AHN'QIRAJ */
++UPDATE `instance_template` SET `script`='instance_ruins_of_ahnqiraj' WHERE `map`=509;
++
++/* SCARLET MONASTERY */
++UPDATE `creature_template` SET `ScriptName`='boss_arcanist_doan' WHERE `entry`=6487;
++UPDATE `creature_template` SET `ScriptName`='boss_azshir_the_sleepless' WHERE `entry`=6490;
++UPDATE `creature_template` SET `ScriptName`='boss_bloodmage_thalnos' WHERE `entry`=4543;
++UPDATE `creature_template` SET `ScriptName`='boss_herod' WHERE `entry`=3975;
++UPDATE `creature_template` SET `ScriptName`='boss_high_inquisitor_fairbanks' WHERE `entry`=4542;
++UPDATE `creature_template` SET `ScriptName`='boss_high_inquisitor_whitemane' WHERE `entry`=3977;
++UPDATE `creature_template` SET `ScriptName`='boss_houndmaster_loksey' WHERE `entry`=3974;
++UPDATE `creature_template` SET `ScriptName`='boss_interrogator_vishas' WHERE `entry`=3983;
++UPDATE `creature_template` SET `ScriptName`='boss_scarlet_commander_mograine' WHERE `entry`=3976;
++UPDATE `creature_template` SET `ScriptName`='boss_scorn' WHERE `entry`=14693;
++
++/* SCHOLOMANCE */
++UPDATE `instance_template` SET `script`='instance_scholomance' WHERE `map`=289;
++UPDATE `creature_template` SET `ScriptName`='boss_darkmaster_gandling' WHERE `entry`=1853;
++UPDATE `creature_template` SET `ScriptName`='boss_death_knight_darkreaver' WHERE `entry`=14516;
++UPDATE `creature_template` SET `ScriptName`='boss_lord_alexei_barov' WHERE `entry`=10504;
++UPDATE `creature_template` SET `ScriptName`='boss_instructor_malicia' WHERE `entry`=10505;
++UPDATE `creature_template` SET `ScriptName`='boss_boss_ras_frostwhisper' WHERE `entry`=10508;
++UPDATE `creature_template` SET `ScriptName`='boss_the_ravenian' WHERE `entry`=10507;
++UPDATE `creature_template` SET `ScriptName`='boss_vectus' WHERE `entry`=10432;
++UPDATE `creature_template` SET `ScriptName`='boss_illucia_barov' WHERE `entry`=10502;
++UPDATE `creature_template` SET `ScriptName`='boss_doctor_theolen_krastinov' WHERE `entry`=11261;
++UPDATE `creature_template` SET `ScriptName`='boss_jandice_barov' WHERE `entry`=10503;
++UPDATE `creature_template` SET `ScriptName`='boss_lorekeeper_polkelt' WHERE `entry`=10901;
++UPDATE `creature_template` SET `ScriptName`='boss_kormok' WHERE `entry`=16118;
++UPDATE `creature_template` SET `ScriptName`='mob_illusionofjandicebarov' WHERE `entry`=11439;
++
++/* SEARING GORGE */
++UPDATE `creature_template` SET `ScriptName`='npc_kalaran_windblade' WHERE `entry`=8479;
++UPDATE `creature_template` SET `ScriptName`='npc_lothos_riftwaker' WHERE `entry`=14387;
++UPDATE `creature_template` SET `ScriptName`='npc_zamael_lunthistle' WHERE `entry`=8436;
++
++/* SHADOWFANG KEEP */
++UPDATE `instance_template` SET `script`='instance_shadowfang_keep' WHERE `map`=33;
++UPDATE `creature_template` SET `ScriptName`='npc_shadowfang_prisoner' WHERE `entry` IN (3849,3850);
++
++/* SHADOWMOON VALLEY */
++UPDATE `creature_template` SET `ScriptName`='boss_doomwalker' WHERE `entry`=17711;
++UPDATE `creature_template` SET `ScriptName`='npc_drake_dealer_hurlunk' WHERE `entry`=23489;
++UPDATE `creature_template` SET `ScriptName`='npc_invis_legion_teleporter' WHERE `entry`=21807;
++UPDATE `creature_template` SET `ScriptName`='npcs_flanis_swiftwing_and_kagrosh' WHERE `entry` IN (21725,21727);
++UPDATE `creature_template` SET `ScriptName`='npc_murkblood_overseer' WHERE `entry`=23309;
++UPDATE `creature_template` SET `ScriptName`='npc_neltharaku' WHERE `entry`=21657;
++UPDATE `creature_template` SET `ScriptName`='npc_oronok_tornheart' WHERE `entry`=21183;
++UPDATE `creature_template` SET `ScriptName`='mob_mature_netherwing_drake' WHERE `entry`=21648;
++UPDATE `creature_template` SET `ScriptName`='mob_enslaved_netherwing_drake' WHERE `entry`=21722;
++
++/* SHATTRATH */
++UPDATE `creature_template` SET `ScriptName`='npc_raliq_the_drunk' WHERE `entry`=18585;
++UPDATE `creature_template` SET `ScriptName`='npc_salsalabim' WHERE `entry`=18584;
++UPDATE `creature_template` SET `ScriptName`='npc_shattrathflaskvendors' WHERE `entry` IN (23483,23484);
++UPDATE `creature_template` SET `ScriptName`='npc_zephyr' WHERE `entry`=25967;
++
++/* SILITHUS */
++UPDATE `creature_template` SET `ScriptName`='npcs_rutgar_and_frankal' WHERE `entry` IN (15170,15171);
++
++/* SILVERMOON */
++UPDATE `creature_template` SET `ScriptName`='npc_blood_knight_stillblade' WHERE `entry`=17768;
++
++/* SILVERPINE FOREST */
++UPDATE `creature_template` SET `ScriptName`='npc_astor_hadren' WHERE `entry`=6497;
++
++/* STOCKADES */
++
++/* STONETALON MOUNTAINS */
++UPDATE `creature_template` SET `ScriptName`='npc_braug_dimspirit' WHERE `entry`=4489;
++
++/* STORMWIND CITY */
++UPDATE `creature_template` SET `ScriptName`='npc_archmage_malin' WHERE `entry`=2708;
++UPDATE `creature_template` SET `ScriptName`='npc_bartleby' WHERE `entry`=6090;
++UPDATE `creature_template` SET `ScriptName`='npc_dashel_stonefist' WHERE `entry`=4961;
++UPDATE `creature_template` SET `ScriptName`='npc_general_marcus_jonathan' WHERE `entry`=466;
++UPDATE `creature_template` SET `ScriptName`='npc_lady_katrana_prestor' WHERE `entry`=1749;
++
++/* STRANGLETHORN VALE */
++UPDATE `creature_template` SET `ScriptName`='mob_yenniku' WHERE `entry`=2530;
++
++/* STRATHOLME */
++UPDATE `instance_template` SET `script`='instance_stratholme' WHERE `map`=329;
++UPDATE `creature_template` SET `ScriptName`='boss_dathrohan_balnazzar' WHERE `entry`=10812;
++UPDATE `creature_template` SET `ScriptName`='boss_magistrate_barthilas' WHERE `entry`=10435;
++UPDATE `creature_template` SET `ScriptName`='boss_maleki_the_pallid' WHERE `entry`=10438;
++UPDATE `creature_template` SET `ScriptName`='boss_nerubenkan' WHERE `entry`=10437;
++UPDATE `creature_template` SET `ScriptName`='boss_cannon_master_willey' WHERE `entry`=10997;
++UPDATE `creature_template` SET `ScriptName`='boss_baroness_anastari' WHERE `entry`=10436;
++UPDATE `creature_template` SET `ScriptName`='boss_ramstein_the_gorger' WHERE `entry`=10439;
++UPDATE `creature_template` SET `ScriptName`='boss_timmy_the_cruel' WHERE `entry`=10808;
++UPDATE `creature_template` SET `ScriptName`='boss_silver_hand_bosses' WHERE `entry` IN (17910,17911,17912,17913,17914);
++UPDATE `creature_template` SET `ScriptName`='boss_postmaster_malown' WHERE `entry`=11143;
++UPDATE `creature_template` SET `ScriptName`='boss_baron_rivendare' WHERE `entry`=10440;
++UPDATE `creature_template` SET `ScriptName`='mob_mindless_skeleton' WHERE `entry`=11197;
++UPDATE `creature_template` SET `ScriptName`='mob_thuzadin_acolyte' WHERE `entry`=10399;
++UPDATE `creature_template` SET `ScriptName`='mobs_spectral_ghostly_citizen' WHERE `entry` IN (10384,10385);
++UPDATE `creature_template` SET `ScriptName`='mob_restless_soul' WHERE `entry`=11122;
++UPDATE `creature_template` SET `ScriptName`='mob_freed_soul' WHERE `entry`=11136;
++
++/* SUNKEN TEMPLE */
++
++
++/* SWAMP OF SORROWS */
++
++
++/* TANARIS */
++UPDATE `creature_template` SET `ScriptName`='mob_aquementas' WHERE `entry`=9453;
++UPDATE `creature_template` SET `ScriptName`='npc_custodian_of_time' WHERE `entry`=20129;
++UPDATE `creature_template` SET `ScriptName`='npc_marin_noggenfogger' WHERE `entry`=7564;
++UPDATE `creature_template` SET `ScriptName`='npc_steward_of_time' WHERE `entry`=20142;
++UPDATE `creature_template` SET `ScriptName`='npc_stone_watcher_of_norgannon' WHERE `entry`=7918;
++
++/* TELDRASSIL */
++
++
++/* */
++/* TEMPEST KEEP */
++/* */
++
++/* THE MECHANAR */
++UPDATE `creature_template` SET `ScriptName`='boss_gatewatcher_iron_hand' WHERE `entry`=19710;
++UPDATE `creature_template` SET `ScriptName`='boss_nethermancer_sepethrea' WHERE `entry`=19221;
++UPDATE `creature_template` SET `ScriptName`='mob_ragin_flames' WHERE `entry`=20481;
++UPDATE `creature_template` SET `ScriptName`='boss_pathaleon_the_calculator' WHERE `entry`=19220;
++UPDATE `creature_template` SET `ScriptName`='mob_nether_wraith' WHERE `entry`=21062;
++UPDATE `instance_template` SET `script`='instance_mechanar' WHERE `map`=554;
++
++/* THE BOTANICA */
++UPDATE `creature_template` SET `ScriptName`='boss_high_botanist_freywinn' WHERE `entry`=17975;
++UPDATE `creature_template` SET `ScriptName`='boss_laj' WHERE `entry`=17980;
++UPDATE `creature_template` SET `ScriptName`='boss_warp_splinter' WHERE `entry`=17977;
++UPDATE `creature_template` SET `ScriptName`='mob_warp_splinter_treant' WHERE `entry`=19949;
++
++/* THE ARCATRAZ */
++UPDATE `instance_template` SET `script`='instance_arcatraz' WHERE `map`=552;
++UPDATE `creature_template` SET `ScriptName`='mob_zerekethvoidzone' WHERE `entry`=21101;
++UPDATE `creature_template` SET `ScriptName`='boss_harbinger_skyriss' WHERE `entry`=20912;
++UPDATE `creature_template` SET `ScriptName`='boss_harbinger_skyriss_illusion' WHERE `entry` IN (21466,21467);
++UPDATE `creature_template` SET `ScriptName`='npc_warden_mellichar' WHERE `entry`=20904;
++UPDATE `creature_template` SET `ScriptName`='npc_millhouse_manastorm' WHERE `entry`=20977;
++
++/* THE EYE */
++UPDATE `instance_template` SET `script`='instance_the_eye' WHERE `map`=550;
++/* The Eye Trash Mobs */
++UPDATE `creature_template` SET `ScriptName`='mob_crystalcore_devastator' WHERE `entry`=20040;
++/* Void Reaver event */
++UPDATE `creature_template` SET `ScriptName`='boss_void_reaver' WHERE `entry`=19516;
++/* Astromancer event */
++UPDATE `creature_template` SET `ScriptName`='boss_high_astromancer_solarian' WHERE `entry`=18805;
++UPDATE `creature_template` SET `ScriptName`='mob_solarium_priest' WHERE `entry`=18806;
++/* Kael'thas event */
++UPDATE `creature_template` SET `ScriptName`='boss_kaelthas' WHERE `entry`=19622;
++UPDATE `creature_template` SET `ScriptName`='boss_thaladred_the_darkener' WHERE `entry`=20064;
++UPDATE `creature_template` SET `ScriptName`='boss_lord_sanguinar' WHERE `entry`=20060;
++UPDATE `creature_template` SET `ScriptName`='boss_grand_astromancer_capernian' WHERE `entry`=20062;
++UPDATE `creature_template` SET `ScriptName`='boss_master_engineer_telonicus' WHERE `entry`=20063;
++UPDATE `creature_template` SET `ScriptName`='mob_phoenix' WHERE `entry`=21362;
++UPDATE `creature_template` SET `ScriptName`='mob_nether_vapor' WHERE `entry`=21002;
++UPDATE `creature_template` SET `ScriptName`='mob_kael_flamestrike' WHERE `entry`=21369;
++
++/* TEMPLE OF AHN'QIRAJ */
++UPDATE `instance_template` SET `script`='instance_temple_of_ahnqiraj' WHERE `map`=531;
++UPDATE `creature_template` SET `ScriptName`='boss_cthun' WHERE `entry`=15727;
++UPDATE `creature_template` SET `ScriptName`='boss_skeram' WHERE `entry`=15263;
++UPDATE `creature_template` SET `ScriptName`='boss_vem' WHERE `entry`=15544;
++UPDATE `creature_template` SET `ScriptName`='boss_yauj' WHERE `entry`=15543;
++UPDATE `creature_template` SET `ScriptName`='boss_kri' WHERE `entry`=15511;
++UPDATE `creature_template` SET `ScriptName`='boss_sartura' WHERE `entry`=15516;
++UPDATE `creature_template` SET `ScriptName`='boss_fankriss' WHERE `entry`=15510;
++UPDATE `creature_template` SET `ScriptName`='boss_viscidus' WHERE `entry`=15299;
++UPDATE `creature_template` SET `ScriptName`='boss_glob_of_viscidus' WHERE `entry`=15667;
++UPDATE `creature_template` SET `ScriptName`='boss_huhuran' WHERE `entry`=15509;
++UPDATE `creature_template` SET `ScriptName`='boss_veklor' WHERE `entry`=15276;
++UPDATE `creature_template` SET `ScriptName`='boss_veknilash' WHERE `entry`=15275;
++UPDATE `creature_template` SET `ScriptName`='boss_ouro' WHERE `entry`=15517;
++UPDATE `creature_template` SET `ScriptName`='boss_eye_of_cthun' WHERE `entry`=15589;
++UPDATE `creature_template` SET `ScriptName`='mob_sartura_royal_guard' WHERE `entry`=15984;
++UPDATE `creature_template` SET `ScriptName`='mob_yauj_brood' WHERE `entry`=15621;
++UPDATE `creature_template` SET `ScriptName`='mob_claw_tentacle' WHERE `entry`=15725;
++UPDATE `creature_template` SET `ScriptName`='mob_eye_tentacle' WHERE `entry`=15726;
++UPDATE `creature_template` SET `ScriptName`='mob_giant_claw_tentacle' WHERE `entry`=15728;
++UPDATE `creature_template` SET `ScriptName`='mob_giant_eye_tentacle' WHERE `entry`=15334;
++UPDATE `creature_template` SET `ScriptName`='mob_giant_flesh_tentacle' WHERE `entry`=15802;
++UPDATE `creature_template` SET `ScriptName`='mob_anubisath_sentinel' WHERE `entry`=15264;
++
++/* TEROKKAR FOREST */
++UPDATE `creature_template` SET `ScriptName`='mob_infested_root_walker' WHERE `entry`=22095;
++UPDATE `creature_template` SET `ScriptName`='mob_netherweb_victim' WHERE `entry`=22355;
++UPDATE `creature_template` SET `ScriptName`='mob_rotting_forest_rager' WHERE `entry`=22307;
++UPDATE `creature_template` SET `ScriptName`='npc_floon' WHERE `entry`=18588;
++UPDATE `creature_template` SET `ScriptName`='npc_skyguard_handler_irena' WHERE `entry`=23413;
++
++/* THOUSAND NEEDLES */
++
++
++/* THUNDER BLUFF */
++UPDATE `creature_template` SET `ScriptName`='npc_cairne_bloodhoof' WHERE `entry`=3057;
++
++/* TIRISFAL GLADES */
++UPDATE `creature_template` SET `ScriptName`='npc_calvin_montague' WHERE `entry`=6784;
++
++/* ULDAMAN */
++UPDATE `creature_template` SET `ScriptName`='boss_ironaya' WHERE `entry`=7228;
++UPDATE `creature_template` SET `ScriptName`='mob_jadespine_basilisk' WHERE `entry`=4863;
++UPDATE `creature_template` SET `ScriptName`='npc_lore_keeper_of_norgannon' WHERE `entry`=7172;
++
++/* UN'GORO CRATER */
++
++
++/* UNDERCITY */
++UPDATE `creature_template` SET `ScriptName`='npc_lady_sylvanas_windrunner' WHERE `entry`=10181;
++UPDATE `creature_template` SET `ScriptName`='npc_highborne_lamenter' WHERE `entry`=21628;
++UPDATE `creature_template` SET `ScriptName`='npc_parqual_fintallas' WHERE `entry`=4488;
++
++/* WAILING CAVERNS */
++
++
++/* WESTERN PLAGUELANDS */
++UPDATE `creature_template` SET `ScriptName`='npcs_dithers_and_arbington' WHERE `entry` IN (11056,11057);
++UPDATE `creature_template` SET `ScriptName`='npc_the_scourge_cauldron' WHERE `entry`=11152;
++
++/* WESTFALL */
++UPDATE `creature_template` SET `ScriptName`='npc_defias_traitor' WHERE `entry`='467';
++
++/* WETLANDS */
++
++
++/* WINTERSPRING */
++UPDATE `creature_template` SET `ScriptName`='npc_lorax' WHERE `entry`=10918;
++UPDATE `creature_template` SET `ScriptName`='npc_rivern_frostwind' WHERE `entry`=10618;
++UPDATE `creature_template` SET `ScriptName`='npc_witch_doctor_mauari' WHERE `entry`=10307;
++
++/* ZANGARMARSH */
++UPDATE `creature_template` SET `ScriptName`='npcs_ashyen_and_keleth' WHERE `entry` IN (17900,17901);
++UPDATE `creature_template` SET `ScriptName`='npc_cooshcoosh' WHERE `entry`=18586;
++UPDATE `creature_template` SET `ScriptName`='npc_elder_kuruti' WHERE `entry`=18197;
++UPDATE `creature_template` SET `ScriptName`='npc_mortog_steamhead' WHERE `entry`=23373;
++
++/* ZUL'AMAN */
++UPDATE `instance_template` SET `script`='instance_zulaman' WHERE `map`=568;
++UPDATE `creature_template` SET `ScriptName`='boss_janalai' WHERE `entry`=23578;
++UPDATE `creature_template` SET `ScriptName`='boss_nalorakk' WHERE `entry`=23576;
++UPDATE `creature_template` SET `ScriptName`='mob_jandalai_firebomb' WHERE `entry`=23920;
++UPDATE `creature_template` SET `ScriptName`='mob_amanishi_hatcher' WHERE `entry`=23818;
++UPDATE `creature_template` SET `ScriptName`='mob_hatchling' WHERE `entry`=23598;
++UPDATE `creature_template` SET `ScriptName`='npc_forest_frog' WHERE `entry`=24396;
++
++/* ZUL'FARRAK */
++UPDATE `creature_template` SET `ScriptName`='npc_sergeant_bly' WHERE `entry`=7604;
++UPDATE `creature_template` SET `ScriptName`='npc_weegli_blastfuse' WHERE `entry`=7607;
++
++/* ZUL'GURUB */
++UPDATE `instance_template` SET `script`='instance_zulgurub' WHERE `map`=309;
++UPDATE `creature_template` SET `ScriptName`='boss_jeklik' WHERE `entry`=14517;
++UPDATE `creature_template` SET `ScriptName`='boss_venoxis' WHERE `entry`=14507;
++UPDATE `creature_template` SET `ScriptName`='boss_marli' WHERE `entry`=14510;
++UPDATE `creature_template` SET `ScriptName`='boss_mandokir' WHERE `entry`=11382;
++UPDATE `creature_template` SET `ScriptName`='boss_gahzranka' WHERE `entry`=15114;
++UPDATE `creature_template` SET `ScriptName`='boss_jindo' WHERE `entry`=11380;
++UPDATE `creature_template` SET `ScriptName`='boss_hakkar' WHERE `entry`=14834;
++UPDATE `creature_template` SET `ScriptName`='boss_thekal' WHERE `entry`=14509;
++UPDATE `creature_template` SET `ScriptName`='boss_arlokk' WHERE `entry`=14515;
++UPDATE `creature_template` SET `ScriptName`='boss_grilek' WHERE `entry`=15082;
++UPDATE `creature_template` SET `ScriptName`='boss_hazzarah' WHERE `entry`=15083;
++UPDATE `creature_template` SET `ScriptName`='boss_renataki' WHERE `entry`=15084;
++UPDATE `creature_template` SET `ScriptName`='boss_wushoolay' WHERE `entry`=15085;
++UPDATE `creature_template` SET `ScriptName`='mob_zealot_lorkhan' WHERE `entry`=11347;
++UPDATE `creature_template` SET `ScriptName`='mob_zealot_zath' WHERE `entry`=11348;
++UPDATE `creature_template` SET `ScriptName`='mob_healing_ward' WHERE `entry`=14987;
++UPDATE `creature_template` SET `ScriptName`='mob_spawn_of_marli' WHERE `entry`=15041;
++UPDATE `creature_template` SET `ScriptName`='mob_batrider' WHERE `entry`=14965;
++UPDATE `creature_template` SET `ScriptName`='mob_shade_of_jindo' WHERE `entry`=14986;
++
++/* EOF */
+diff -r 7bda08d4cbf2 sql/world_scripts_structure.sql
+--- a/sql/world_scripts_structure.sql Sun Dec 21 18:13:05 2008 -0600
++++ b/sql/world_scripts_structure.sql Sun Dec 21 19:51:16 2008 -0500
+@@ -1,101 +1,101 @@
+-DROP TABLE IF EXISTS `custom_texts`;
+-CREATE TABLE `custom_texts` (
+- `entry` mediumint(8) NOT NULL,
+- `content_default` text NOT NULL,
+- `content_loc1` text,
+- `content_loc2` text,
+- `content_loc3` text,
+- `content_loc4` text,
+- `content_loc5` text,
+- `content_loc6` text,
+- `content_loc7` text,
+- `content_loc8` text,
+- `sound` mediumint(8) unsigned NOT NULL default '0',
+- `type` tinyint unsigned NOT NULL default '0',
+- `language` tinyint unsigned NOT NULL default '0',
+- `comment` text,
+- PRIMARY KEY (`entry`)
+-) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Custom Texts';
+-
+-DROP TABLE IF EXISTS `eventai_scripts`;
+-CREATE TABLE `eventai_scripts` (
+- `id` int(11) unsigned NOT NULL COMMENT 'Identifier' AUTO_INCREMENT,
+- `creature_id` int(11) unsigned NOT NULL default '0' COMMENT 'Creature Template Identifier',
+- `event_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Event Type',
+- `event_inverse_phase_mask` int(11) signed NOT NULL default '0' COMMENT 'Mask which phases this event will not trigger in',
+- `event_chance` int(3) unsigned NOT NULL default '100',
+- `event_flags` int(3) unsigned NOT NULL default '0',
+- `event_param1` int(11) signed NOT NULL default '0',
+- `event_param2` int(11) signed NOT NULL default '0',
+- `event_param3` int(11) signed NOT NULL default '0',
+- `event_param4` int(11) signed NOT NULL default '0',
+- `action1_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
+- `action1_param1` int(11) signed NOT NULL default '0',
+- `action1_param2` int(11) signed NOT NULL default '0',
+- `action1_param3` int(11) signed NOT NULL default '0',
+- `action2_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
+- `action2_param1` int(11) signed NOT NULL default '0',
+- `action2_param2` int(11) signed NOT NULL default '0',
+- `action2_param3` int(11) signed NOT NULL default '0',
+- `action3_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
+- `action3_param1` int(11) signed NOT NULL default '0',
+- `action3_param2` int(11) signed NOT NULL default '0',
+- `action3_param3` int(11) signed NOT NULL default '0',
+- `comment` varchar(255) NOT NULL default '' COMMENT 'Event Comment',
+- PRIMARY KEY (`id`)
+-) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='EventAI Scripts';
+-
+-DROP TABLE IF EXISTS `eventai_summons`;
+-CREATE TABLE `eventai_summons` (
+- `id` int(11) unsigned NOT NULL COMMENT 'Location Identifier' AUTO_INCREMENT,
+- `position_x` float NOT NULL default '0',
+- `position_y` float NOT NULL default '0',
+- `position_z` float NOT NULL default '0',
+- `orientation` float NOT NULL default '0',
+- `spawntimesecs` int(11) unsigned NOT NULL default '120',
+- `comment` varchar(255) NOT NULL default '' COMMENT 'Summon Comment',
+- PRIMARY KEY (`id`)
+-) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='EventAI Summoning Locations';
+-
+-DROP TABLE IF EXISTS `eventai_texts`;
+-CREATE TABLE `eventai_texts` (
+- `entry` mediumint(8) NOT NULL,
+- `content_default` text NOT NULL,
+- `content_loc1` text,
+- `content_loc2` text,
+- `content_loc3` text,
+- `content_loc4` text,
+- `content_loc5` text,
+- `content_loc6` text,
+- `content_loc7` text,
+- `content_loc8` text,
+- `sound` mediumint(8) unsigned NOT NULL default '0',
+- `type` tinyint unsigned NOT NULL default '0',
+- `language` tinyint unsigned NOT NULL default '0',
+- `comment` text,
+- PRIMARY KEY (`entry`)
+-) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Script Texts';
+-
+-DROP TABLE IF EXISTS `script_texts`;
+-CREATE TABLE `script_texts` (
+- `entry` mediumint(8) NOT NULL,
+- `content_default` text NOT NULL,
+- `content_loc1` text,
+- `content_loc2` text,
+- `content_loc3` text,
+- `content_loc4` text,
+- `content_loc5` text,
+- `content_loc6` text,
+- `content_loc7` text,
+- `content_loc8` text,
+- `sound` mediumint(8) unsigned NOT NULL default '0',
+- `type` tinyint unsigned NOT NULL default '0',
+- `language` tinyint unsigned NOT NULL default '0',
+- `comment` text,
+- PRIMARY KEY (`entry`)
+-) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Script Texts';
+-
+-DROP TABLE IF EXISTS `script_db_version`;
+-CREATE TABLE `script_db_version` (
+- `version` varchar(255) NOT NULL default '' COMMENT 'Script Database version string'
+-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
++DROP TABLE IF EXISTS `custom_texts`;
++CREATE TABLE `custom_texts` (
++ `entry` mediumint(8) NOT NULL,
++ `content_default` text NOT NULL,
++ `content_loc1` text,
++ `content_loc2` text,
++ `content_loc3` text,
++ `content_loc4` text,
++ `content_loc5` text,
++ `content_loc6` text,
++ `content_loc7` text,
++ `content_loc8` text,
++ `sound` mediumint(8) unsigned NOT NULL default '0',
++ `type` tinyint unsigned NOT NULL default '0',
++ `language` tinyint unsigned NOT NULL default '0',
++ `comment` text,
++ PRIMARY KEY (`entry`)
++) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Custom Texts';
++
++DROP TABLE IF EXISTS `eventai_scripts`;
++CREATE TABLE `eventai_scripts` (
++ `id` int(11) unsigned NOT NULL COMMENT 'Identifier' AUTO_INCREMENT,
++ `creature_id` int(11) unsigned NOT NULL default '0' COMMENT 'Creature Template Identifier',
++ `event_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Event Type',
++ `event_inverse_phase_mask` int(11) signed NOT NULL default '0' COMMENT 'Mask which phases this event will not trigger in',
++ `event_chance` int(3) unsigned NOT NULL default '100',
++ `event_flags` int(3) unsigned NOT NULL default '0',
++ `event_param1` int(11) signed NOT NULL default '0',
++ `event_param2` int(11) signed NOT NULL default '0',
++ `event_param3` int(11) signed NOT NULL default '0',
++ `event_param4` int(11) signed NOT NULL default '0',
++ `action1_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
++ `action1_param1` int(11) signed NOT NULL default '0',
++ `action1_param2` int(11) signed NOT NULL default '0',
++ `action1_param3` int(11) signed NOT NULL default '0',
++ `action2_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
++ `action2_param1` int(11) signed NOT NULL default '0',
++ `action2_param2` int(11) signed NOT NULL default '0',
++ `action2_param3` int(11) signed NOT NULL default '0',
++ `action3_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
++ `action3_param1` int(11) signed NOT NULL default '0',
++ `action3_param2` int(11) signed NOT NULL default '0',
++ `action3_param3` int(11) signed NOT NULL default '0',
++ `comment` varchar(255) NOT NULL default '' COMMENT 'Event Comment',
++ PRIMARY KEY (`id`)
++) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='EventAI Scripts';
++
++DROP TABLE IF EXISTS `eventai_summons`;
++CREATE TABLE `eventai_summons` (
++ `id` int(11) unsigned NOT NULL COMMENT 'Location Identifier' AUTO_INCREMENT,
++ `position_x` float NOT NULL default '0',
++ `position_y` float NOT NULL default '0',
++ `position_z` float NOT NULL default '0',
++ `orientation` float NOT NULL default '0',
++ `spawntimesecs` int(11) unsigned NOT NULL default '120',
++ `comment` varchar(255) NOT NULL default '' COMMENT 'Summon Comment',
++ PRIMARY KEY (`id`)
++) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='EventAI Summoning Locations';
++
++DROP TABLE IF EXISTS `eventai_texts`;
++CREATE TABLE `eventai_texts` (
++ `entry` mediumint(8) NOT NULL,
++ `content_default` text NOT NULL,
++ `content_loc1` text,
++ `content_loc2` text,
++ `content_loc3` text,
++ `content_loc4` text,
++ `content_loc5` text,
++ `content_loc6` text,
++ `content_loc7` text,
++ `content_loc8` text,
++ `sound` mediumint(8) unsigned NOT NULL default '0',
++ `type` tinyint unsigned NOT NULL default '0',
++ `language` tinyint unsigned NOT NULL default '0',
++ `comment` text,
++ PRIMARY KEY (`entry`)
++) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Script Texts';
++
++DROP TABLE IF EXISTS `script_texts`;
++CREATE TABLE `script_texts` (
++ `entry` mediumint(8) NOT NULL,
++ `content_default` text NOT NULL,
++ `content_loc1` text,
++ `content_loc2` text,
++ `content_loc3` text,
++ `content_loc4` text,
++ `content_loc5` text,
++ `content_loc6` text,
++ `content_loc7` text,
++ `content_loc8` text,
++ `sound` mediumint(8) unsigned NOT NULL default '0',
++ `type` tinyint unsigned NOT NULL default '0',
++ `language` tinyint unsigned NOT NULL default '0',
++ `comment` text,
++ PRIMARY KEY (`entry`)
++) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Script Texts';
++
++DROP TABLE IF EXISTS `script_db_version`;
++CREATE TABLE `script_db_version` (
++ `version` varchar(255) NOT NULL default '' COMMENT 'Script Database version string'
++) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+diff -r 7bda08d4cbf2 src/bindings/scripts/docs/Text-tables.txt
+--- a/src/bindings/scripts/docs/Text-tables.txt Sun Dec 21 18:13:05 2008 -0600
++++ b/src/bindings/scripts/docs/Text-tables.txt Sun Dec 21 19:51:16 2008 -0500
+@@ -1,85 +1,85 @@
+-=========================================
+-Texts Documentation
+-=========================================
+-
+-Scriptdev2 Revision 695 introduces a new format for using texts in EventAI and SD2 Scripts.
+-This information relates to the three *_texts tables located in the ScriptDev Database.
+-
+-Any script can at any time access and use text from any of the three text tables, as long as the entry does in fact exist.
+-Custom scripters are adviced to store their text data in custom_texts.
+-
+-The three different tables has ranges of entries allowed for that table.
+-eventai_texts: entry -1 -> -999999
+-script_texts: entry -1000000 -> -1999999
+-custom_texts: entry -2000000 -> -2999999
+-Any entry out of range for that table will display a startup error.
+-
+-
+-=========================================
+-Basic Structure of eventai_texts, script_texts and custom_texts
+-=========================================
+-Below is a the list of current fields within the texts tables.
+-
+-Field_Name Description
+------------------------------------------------------------
+-entry This value is mearly an NEGATIVE identifier of the current text number. Required for sql queries.
+-content_default This is the actual text presented in the default language (English).
+-
+-content_loc1 This is the actual text presented in the Localization #1 Clients (Korean)
+-content_loc2 This is the actual text presented in the Localization #2 Clients (French)
+-content_loc3 This is the actual text presented in the Localization #3 Clients (German)
+-content_loc4 This is the actual text presented in the Localization #4 Clients (Chinese)
+-content_loc5 This is the actual text presented in the Localization #5 Clients (Taiwanese)
+-content_loc6 This is the actual text presented in the Localization #6 Clients (Spanish)
+-content_loc7 This is the actual text presented in the Localization #7 Clients (Spanish Mexico)
+-content_loc8 This is the actual text presented in the Localization #8 Clients (Russian)
+-
+-sound This value is the Sound ID that corresponds to the actual text used (Defined in SoundEntries.dbc).
+-type Variables used to define type of text (Say/Yell/Textemote/Whisper).
+-language This value is the Language that the text is native in (Defined in Languages.dbc).
+-comment This is a comment regarding the text entry (For ACID, accepted format is to use Creature ID of NPC using it).
+-
+-Note: Fields `content_loc1` to `content_loc8` are NULL values by default and are handled by seperate localization projects.
+-
+-
+-=========================================
+-Text Types (type)
+-=========================================
+-Below is the list of current Text types that texts tables can handle. These were previously seperate Actions in ACID.
+-
+-# Internal Name Description
+------------------------------------------------------------
+-0 CHAT_TYPE_SAY This type sets the text to be displayed as a Say (Speech Bubble).
+-1 CHAT_TYPE_YELL This type sets the text to be displayed as a Yell (Red Speech Bubble) and usually has a matching Sound ID.
+-2 CHAT_TYPE_TEXT_EMOTE This type sets the text to be displayed as a text emote in orange in the chat log.
+-3 CHAT_TYPE_BOSS_EMOTE This type sets the text to be displayed as a text emote in orange in the chat log (Used only for specific Bosses).
+-4 CHAT_TYPE_WHISPER This type sets the text to be displayed as a whisper to the player in the chat log.
+-5 CHAT_TYPE_BOSS_WHISPER This type sets the text to be displayed as a whisper to the player in the chat log (Used only for specific Bosses).
+-
+-
+-=========================================
+-Language Types (language)
+-=========================================
+-Below is the list of current Language types that are allowed.
+-This is the Race Language that the text is native to (So it will display properly)
+-
+-# Internal Name Description
+------------------------------------------------------------
+-0 UNIVERSAL Text in this language is understood by ALL Races.
+-1 ORCISH Text in this language is understood ONLY by Horde Races.
+-2 DARNASSIAN Text in this language is understood ONLY by the Night Elf Race.
+-3 TAURAHE Text in this language is understood ONLY by the Tauren Race.
+-6 DWARVISH Text in this language is understood ONLY by the Dwarf Race.
+-7 COMMON Text in this language is understood ONLY by Alliance Races.
+-8 DEMONIC Text in this language is understood ONLY by the Demon Race (Not Implimented).
+-9 TITAN This language was used by Sargeras to speak with other Titians (Not Implemented).
+-10 THALASSIAN Text in this language is understood ONLY by the Blood Elf Race.
+-11 DRACONIC Text in this language is understood ONLY by the Dragon Race.
+-12 KALIMAG Text will display as Kalimag (not readable by players, language of all elementals)
+-13 GNOMISH Text in this language is understood ONLY by the Gnome Race.
+-14 TROLL Text in this language is understood ONLY by the Troll Race.
+-33 GUTTERSPEAK Text in this language is understood ONLY by the Undead Race.
+-35 DRAENEI Text in this language is understood ONLY by the Draenai Race.
+-36 ZOMBIE (not currently used?)
+-37 GNOMISH BINARY Binary language used by Alliance when drinking Binary Brew
++=========================================
++Texts Documentation
++=========================================
++
++Scriptdev2 Revision 695 introduces a new format for using texts in EventAI and SD2 Scripts.
++This information relates to the three *_texts tables located in the ScriptDev Database.
++
++Any script can at any time access and use text from any of the three text tables, as long as the entry does in fact exist.
++Custom scripters are adviced to store their text data in custom_texts.
++
++The three different tables has ranges of entries allowed for that table.
++eventai_texts: entry -1 -> -999999
++script_texts: entry -1000000 -> -1999999
++custom_texts: entry -2000000 -> -2999999
++Any entry out of range for that table will display a startup error.
++
++
++=========================================
++Basic Structure of eventai_texts, script_texts and custom_texts
++=========================================
++Below is a the list of current fields within the texts tables.
++
++Field_Name Description
++-----------------------------------------------------------
++entry This value is mearly an NEGATIVE identifier of the current text number. Required for sql queries.
++content_default This is the actual text presented in the default language (English).
++
++content_loc1 This is the actual text presented in the Localization #1 Clients (Korean)
++content_loc2 This is the actual text presented in the Localization #2 Clients (French)
++content_loc3 This is the actual text presented in the Localization #3 Clients (German)
++content_loc4 This is the actual text presented in the Localization #4 Clients (Chinese)
++content_loc5 This is the actual text presented in the Localization #5 Clients (Taiwanese)
++content_loc6 This is the actual text presented in the Localization #6 Clients (Spanish)
++content_loc7 This is the actual text presented in the Localization #7 Clients (Spanish Mexico)
++content_loc8 This is the actual text presented in the Localization #8 Clients (Russian)
++
++sound This value is the Sound ID that corresponds to the actual text used (Defined in SoundEntries.dbc).
++type Variables used to define type of text (Say/Yell/Textemote/Whisper).
++language This value is the Language that the text is native in (Defined in Languages.dbc).
++comment This is a comment regarding the text entry (For ACID, accepted format is to use Creature ID of NPC using it).
++
++Note: Fields `content_loc1` to `content_loc8` are NULL values by default and are handled by seperate localization projects.
++
++
++=========================================
++Text Types (type)
++=========================================
++Below is the list of current Text types that texts tables can handle. These were previously seperate Actions in ACID.
++
++# Internal Name Description
++-----------------------------------------------------------
++0 CHAT_TYPE_SAY This type sets the text to be displayed as a Say (Speech Bubble).
++1 CHAT_TYPE_YELL This type sets the text to be displayed as a Yell (Red Speech Bubble) and usually has a matching Sound ID.
++2 CHAT_TYPE_TEXT_EMOTE This type sets the text to be displayed as a text emote in orange in the chat log.
++3 CHAT_TYPE_BOSS_EMOTE This type sets the text to be displayed as a text emote in orange in the chat log (Used only for specific Bosses).
++4 CHAT_TYPE_WHISPER This type sets the text to be displayed as a whisper to the player in the chat log.
++5 CHAT_TYPE_BOSS_WHISPER This type sets the text to be displayed as a whisper to the player in the chat log (Used only for specific Bosses).
++
++
++=========================================
++Language Types (language)
++=========================================
++Below is the list of current Language types that are allowed.
++This is the Race Language that the text is native to (So it will display properly)
++
++# Internal Name Description
++-----------------------------------------------------------
++0 UNIVERSAL Text in this language is understood by ALL Races.
++1 ORCISH Text in this language is understood ONLY by Horde Races.
++2 DARNASSIAN Text in this language is understood ONLY by the Night Elf Race.
++3 TAURAHE Text in this language is understood ONLY by the Tauren Race.
++6 DWARVISH Text in this language is understood ONLY by the Dwarf Race.
++7 COMMON Text in this language is understood ONLY by Alliance Races.
++8 DEMONIC Text in this language is understood ONLY by the Demon Race (Not Implimented).
++9 TITAN This language was used by Sargeras to speak with other Titians (Not Implemented).
++10 THALASSIAN Text in this language is understood ONLY by the Blood Elf Race.
++11 DRACONIC Text in this language is understood ONLY by the Dragon Race.
++12 KALIMAG Text will display as Kalimag (not readable by players, language of all elementals)
++13 GNOMISH Text in this language is understood ONLY by the Gnome Race.
++14 TROLL Text in this language is understood ONLY by the Troll Race.
++33 GUTTERSPEAK Text in this language is understood ONLY by the Undead Race.
++35 DRAENEI Text in this language is understood ONLY by the Draenai Race.
++36 ZOMBIE (not currently used?)
++37 GNOMISH BINARY Binary language used by Alliance when drinking Binary Brew
+ 38 GOBLIN BINARY Binary language used by Horce when drinking Binary Brew
+\ No newline at end of file
+diff -r 7bda08d4cbf2 src/shared/SystemConfig.h.in
+--- a/src/shared/SystemConfig.h.in Sun Dec 21 18:13:05 2008 -0600
++++ b/src/shared/SystemConfig.h.in Sun Dec 21 19:51:16 2008 -0500
+@@ -1,36 +1,36 @@
+-/*
+- * Copyright (C) 2005-2008 MaNGOS
+- *
+- * Copyright (C) 2008 Trinity
+- *
+- *
+- * This program is free software; you can redistribute it and/or modify
+- * it under the terms of the GNU General Public License as published by
+- * the Free Software Foundation; either version 2 of the License, or
+- * (at your option) any later version.
+- *
+- * This program is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+- * GNU General Public License for more details.
+- *
+- * You should have received a copy of the GNU General Public License
+- * along with this program; if not, write to the Free Software
+- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+- */
+-
+-// THIS FILE IS DEPRECATED
+-
+-#ifndef TRINITY_SYSTEMCONFIG_H
+-#define TRINITY_SYSTEMCONFIG_H
+-
+-#include "Platform/Define.h"
+-
+-// THIS IS TEMP :)
+-#define _FULLVERSION "Trinity"
+-
+-#define DEFAULT_PLAYER_LIMIT 100
+-#define DEFAULT_WORLDSERVER_PORT 8085 //8129
+-#define DEFAULT_REALMSERVER_PORT 3724
+-#define DEFAULT_SOCKET_SELECT_TIME 10000
+-#endif
++/*
++ * Copyright (C) 2005-2008 MaNGOS
++ *
++ * Copyright (C) 2008 Trinity
++ *
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License as published by
++ * the Free Software Foundation; either version 2 of the License, or
++ * (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
++ */
++
++// THIS FILE IS DEPRECATED
++
++#ifndef TRINITY_SYSTEMCONFIG_H
++#define TRINITY_SYSTEMCONFIG_H
++
++#include "Platform/Define.h"
++
++// THIS IS TEMP :)
++#define _FULLVERSION "Trinity"
++
++#define DEFAULT_PLAYER_LIMIT 100
++#define DEFAULT_WORLDSERVER_PORT 8085 //8129
++#define DEFAULT_REALMSERVER_PORT 3724
++#define DEFAULT_SOCKET_SELECT_TIME 10000
++#endif
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 55b6f93f8da..407e78dea7c 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2100,8 +2100,9 @@ void Spell::prepare(SpellCastTargets * targets, Aura* triggeredByAura)
{
m_caster->SetCurrentCastedSpell( this );
m_selfContainer = &(m_caster->m_currentSpells[GetCurrentContainer()]);
- SendSpellStart();
}
+
+ SendSpellStart();
}
}
@@ -2182,13 +2183,16 @@ void Spell::cast(bool skipCheck)
if(m_caster->GetTypeId() != TYPEID_PLAYER && m_targets.getUnitTarget() && m_targets.getUnitTarget() != m_caster)
m_caster->SetInFront(m_targets.getUnitTarget());
- castResult = CheckPower();
- if(castResult != 0)
+ if(!m_IsTriggeredSpell)
{
- SendCastResult(castResult);
- finish(false);
- SetExecutedCurrently(false);
- return;
+ castResult = CheckPower();
+ if(castResult != 0)
+ {
+ SendCastResult(castResult);
+ finish(false);
+ SetExecutedCurrently(false);
+ return;
+ }
}
// triggered cast called from Spell::prepare where it was already checked
@@ -2224,7 +2228,7 @@ void Spell::cast(bool skipCheck)
// CAST SPELL
SendSpellCooldown();
- SendCastResult(castResult);
+ //SendCastResult(castResult);
SendSpellGo(); // we must send smsg_spell_go packet before m_castItem delete in TakeCastItem()...
if(m_customAttr & SPELL_ATTR_CU_DIRECT_DAMAGE)
@@ -3646,16 +3650,14 @@ uint8 Spell::CanCast(bool strict)
}
}*/
- if(!m_skipCheck && !m_triggeredByAuraSpell)
+ if(!m_IsTriggeredSpell)
+ {
if(uint8 castResult = CheckRange(strict))
return castResult;
- if(!m_IsTriggeredSpell)
- {
if(uint8 castResult = CheckPower())
return castResult;
- //if(!m_triggeredByAuraSpell) // triggered spell not affected by stun/etc
if(uint8 castResult = CheckCasterAuras())
return castResult;
}
--
cgit v1.2.3
From edbfb386ce87f918da8e11e843d7b5a227e5328d Mon Sep 17 00:00:00 2001
From: megamage
Date: Wed, 4 Feb 2009 10:25:28 -0600
Subject: *Do not check range weapon skills for paladin. This fix the bug that
flying hammer miss too much.
--HG--
branch : trunk
---
src/game/Creature.h | 1 -
src/game/Unit.cpp | 6 +++++-
src/game/Unit.h | 2 ++
3 files changed, 7 insertions(+), 2 deletions(-)
(limited to 'src')
diff --git a/src/game/Creature.h b/src/game/Creature.h
index 14fc77cf24a..cde68f0670b 100644
--- a/src/game/Creature.h
+++ b/src/game/Creature.h
@@ -673,7 +673,6 @@ class TRINITY_DLL_SPEC Creature : public Unit
bool m_AlreadyCallAssistance;
bool m_regenHealth;
bool m_AI_locked;
- bool m_AI_enabled;
bool m_isDeadByDefault;
SpellSchoolMask m_meleeDamageSchoolMask;
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index db777fe757f..d46b4180b64 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -149,7 +149,7 @@ bool IsPassiveStackableSpell( uint32 spellId )
Unit::Unit()
: WorldObject(), i_motionMaster(this), m_ThreatManager(this), m_HostilRefManager(this)
-, m_IsInNotifyList(false), m_Notified(false)
+, m_IsInNotifyList(false), m_Notified(false), m_AI_enabled(false)
{
m_objectType |= TYPEMASK_UNIT;
m_objectTypeId = TYPEID_UNIT;
@@ -3576,7 +3576,11 @@ uint32 Unit::GetWeaponSkillValue (WeaponAttackType attType, Unit const* target)
// feral or unarmed skill only for base attack
if(attType != BASE_ATTACK && !item )
+ {
+ if(attType == RANGED_ATTACK && getClass() == CLASS_PALADIN) //hammer
+ return GetMaxSkillValueForLevel();
return 0;
+ }
if(((Player*)this)->IsInFeralForm())
return GetMaxSkillValueForLevel(); // always maximized SKILL_FERAL_COMBAT in fact
diff --git a/src/game/Unit.h b/src/game/Unit.h
index b1ca703007c..af670b80208 100644
--- a/src/game/Unit.h
+++ b/src/game/Unit.h
@@ -1452,6 +1452,8 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
uint32 m_reactiveTimer[MAX_REACTIVE];
ThreatManager m_ThreatManager;
+
+ bool m_AI_enabled;
private:
void SendAttackStop(Unit* victim); // only from AttackStop(Unit*)
//void SendAttackStart(Unit* pVictim); // only from Unit::AttackStart(Unit*)
--
cgit v1.2.3
From 4d008f2043084b72fb9d4a9929ff2793c7bbd8ee Mon Sep 17 00:00:00 2001
From: megamage
Date: Wed, 4 Feb 2009 10:33:18 -0600
Subject: Replace tabs with spaces, and fix crlf issues
--HG--
branch : trunk
---
sql/updates/54_world.sql | 2 +-
src/bindings/interface/ScriptMgr.cpp | 2 +-
src/bindings/interface/ScriptMgr.h | 2 +-
src/bindings/interface/Scripts/sc_default.cpp | 2 +-
src/bindings/interface/Scripts/sc_defines.cpp | 2 +-
src/bindings/interface/Scripts/sc_defines.h | 2 +-
src/bindings/interface/config.h | 2 +-
src/bindings/interface/system.cpp | 2 +-
src/bindings/scripts/ScriptMgr.cpp | 8 +-
src/bindings/scripts/include/sc_creature.cpp | 16 +-
src/bindings/scripts/include/sc_instance.h | 2 +-
.../scripts/areatrigger/areatrigger_scripts.cpp | 4 +-
.../scripts/creature/mob_generic_creature.cpp | 4 +-
src/bindings/scripts/scripts/guard/guard_ai.cpp | 4 +-
src/bindings/scripts/scripts/item/item_scripts.cpp | 8 +-
src/bindings/scripts/scripts/npc/npc_escortAI.cpp | 4 +-
src/bindings/scripts/scripts/npc/npcs_special.cpp | 48 ++---
.../zone/arathi_highlands/arathi_highlands.cpp | 20 +-
.../scripts/zone/ashenvale_forest/ashenvale.cpp | 74 +++----
.../boss_shirrak_the_dead_watcher.cpp | 20 +-
.../sethekk_halls/boss_darkweaver_syth.cpp | 10 +-
.../shadow_labyrinth/boss_grandmaster_vorpil.cpp | 8 +-
.../shadow_labyrinth/instance_shadow_labyrinth.cpp | 24 +--
.../scripts/scripts/zone/azshara/azshara.cpp | 8 +-
.../scripts/scripts/zone/azshara/boss_azuregos.cpp | 2 +-
.../scripts/zone/azuremyst_isle/azuremyst_isle.cpp | 20 +-
.../scripts/scripts/zone/barrens/the_barrens.cpp | 38 ++--
.../scripts/zone/black_temple/boss_bloodboil.cpp | 2 +-
.../scripts/zone/black_temple/boss_illidan.cpp | 20 +-
.../zone/black_temple/boss_reliquary_of_souls.cpp | 20 +-
.../scripts/zone/black_temple/boss_supremus.cpp | 14 +-
.../zone/black_temple/boss_teron_gorefiend.cpp | 4 +-
.../zone/black_temple/boss_warlord_najentus.cpp | 2 +-
.../scripts/zone/black_temple/illidari_council.cpp | 26 +--
.../zone/black_temple/instance_black_temple.cpp | 32 +--
.../zone/blackrock_depths/blackrock_depths.cpp | 168 ++++++++--------
.../zone/blackrock_depths/def_blackrock_depths.h | 10 +-
.../blackrock_depths/instance_blackrock_depths.cpp | 48 ++---
.../caverns_of_time/dark_portal/boss_aeonus.cpp | 6 +-
.../dark_portal/boss_chrono_lord_deja.cpp | 4 +-
.../caverns_of_time/dark_portal/boss_temporus.cpp | 2 +-
.../caverns_of_time/dark_portal/dark_portal.cpp | 96 ++++-----
.../caverns_of_time/dark_portal/def_dark_portal.h | 8 +-
.../dark_portal/instance_dark_portal.cpp | 82 ++++----
.../zone/caverns_of_time/hyjal/boss_archimonde.cpp | 8 +-
.../scripts/zone/caverns_of_time/hyjal/hyjal.cpp | 2 +-
.../scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp | 12 +-
.../scripts/zone/caverns_of_time/hyjal/hyjalAI.h | 28 +--
.../zone/caverns_of_time/hyjal/instance_hyjal.cpp | 2 +-
.../old_hillsbrad/boss_leutenant_drake.cpp | 4 +-
.../old_hillsbrad/instance_old_hillsbrad.cpp | 12 +-
.../old_hillsbrad/old_hillsbrad.cpp | 22 +-
.../serpent_shrine/boss_fathomlord_karathress.cpp | 18 +-
.../serpent_shrine/boss_hydross_the_unstable.cpp | 8 +-
.../serpent_shrine/boss_lady_vashj.cpp | 46 ++---
.../serpent_shrine/boss_leotheras_the_blind.cpp | 56 +++---
.../serpent_shrine/boss_lurker_below.cpp | 48 ++---
.../serpent_shrine/boss_morogrim_tidewalker.cpp | 12 +-
.../serpent_shrine/instance_serpent_shrine.cpp | 2 +-
.../steam_vault/instance_steam_vault.cpp | 10 +-
.../scripts/scripts/zone/deadmines/deadmines.cpp | 16 +-
.../scripts/zone/eversong_woods/eversong_woods.cpp | 18 +-
.../scripts/scripts/zone/ghostlands/ghostlands.cpp | 44 ++--
.../scripts/zone/gruuls_lair/boss_gruul.cpp | 4 +-
.../zone/gruuls_lair/boss_high_king_maulgar.cpp | 12 +-
.../blood_furnace/boss_kelidan_the_breaker.cpp | 4 +-
.../blood_furnace/instance_blood_furnace.cpp | 10 +-
.../hellfire_ramparts/boss_vazruden_the_herald.cpp | 6 +-
.../magtheridons_lair/boss_magtheridon.cpp | 20 +-
.../instance_magtheridons_lair.cpp | 2 +-
.../boss_warchief_kargath_bladefist.cpp | 20 +-
.../hellfire_peninsula/boss_doomlord_kazzak.cpp | 6 +-
.../zone/hellfire_peninsula/hellfire_peninsula.cpp | 28 +--
.../zone/isle_of_queldanas/isle_of_queldanas.cpp | 2 +-
.../scripts/scripts/zone/karazhan/boss_curator.cpp | 2 +-
.../zone/karazhan/boss_maiden_of_virtue.cpp | 10 +-
.../scripts/zone/karazhan/boss_midnight.cpp | 6 +-
.../scripts/scripts/zone/karazhan/boss_moroes.cpp | 4 +-
.../scripts/zone/karazhan/boss_nightbane.cpp | 68 +++----
.../zone/karazhan/boss_prince_malchezaar.cpp | 2 +-
.../scripts/zone/karazhan/boss_shade_of_aran.cpp | 2 +-
.../scripts/scripts/zone/karazhan/bosses_opera.cpp | 10 +-
.../scripts/zone/karazhan/instance_karazhan.cpp | 6 +-
.../scripts/scripts/zone/karazhan/karazhan.cpp | 10 +-
.../magisters_terrace/boss_felblood_kaelthas.cpp | 18 +-
.../magisters_terrace/boss_priestess_delrissa.cpp | 10 +-
.../magisters_terrace/boss_selin_fireheart.cpp | 2 +-
.../instance_magisters_terrace.cpp | 28 +--
.../scripts/zone/molten_core/boss_golemagg.cpp | 2 +-
.../zone/molten_core/boss_majordomo_executus.cpp | 6 +-
.../zone/molten_core/instance_molten_core.cpp | 4 +-
.../scripts/scripts/zone/moonglade/moonglade.cpp | 6 +-
.../scripts/scripts/zone/mulgore/mulgore.cpp | 4 +-
.../scripts/zone/naxxramas/boss_faerlina.cpp | 4 +-
.../scripts/zone/naxxramas/boss_four_horsemen.cpp | 128 ++++++------
.../scripts/zone/naxxramas/boss_kelthuzad.cpp | 14 +-
.../scripts/scripts/zone/naxxramas/boss_noth.cpp | 2 +-
.../scripts/zone/naxxramas/boss_thaddius.cpp | 8 +-
.../scripts/zone/netherstorm/netherstorm.cpp | 72 +++----
.../scripts/zone/onyxias_lair/boss_onyxia.cpp | 4 +-
.../scripts/zone/razorfen_kraul/razorfen_kraul.cpp | 8 +-
.../zone/ruins_of_ahnqiraj/boss_ossirian.cpp | 4 +-
.../scripts/zone/ruins_of_ahnqiraj/boss_rajaxx.cpp | 8 +-
.../scarlet_monastery/boss_headless_horseman.cpp | 32 +--
.../scripts/zone/scarlet_monastery/boss_herod.cpp | 4 +-
.../instance_scarlet_monastery.cpp | 10 +-
.../zone/scholomance/boss_jandice_barov.cpp | 12 +-
.../shadowfang_keep/instance_shadowfang_keep.cpp | 26 +--
.../zone/shadowfang_keep/shadowfang_keep.cpp | 2 +-
.../zone/shadowmoon_valley/boss_doomwalker.cpp | 2 +-
.../zone/shadowmoon_valley/shadowmoon_valley.cpp | 134 ++++++-------
.../scripts/zone/shattrath/shattrath_city.cpp | 8 +-
.../scripts/scripts/zone/silithus/silithus.cpp | 12 +-
.../zone/silverpine_forest/silverpine_forest.cpp | 18 +-
.../zone/stratholme/boss_baron_rivendare.cpp | 8 +-
.../zone/stratholme/boss_baroness_anastari.cpp | 6 +-
.../zone/stratholme/boss_cannon_master_willey.cpp | 6 +-
.../zone/stratholme/boss_dathrohan_balnazzar.cpp | 8 +-
.../zone/stratholme/boss_magistrate_barthilas.cpp | 14 +-
.../zone/stratholme/boss_maleki_the_pallid.cpp | 4 +-
.../scripts/zone/stratholme/boss_nerubenkan.cpp | 20 +-
.../zone/stratholme/boss_order_of_silver_hand.cpp | 4 +-
.../zone/stratholme/boss_postmaster_malown.cpp | 4 +-
.../zone/stratholme/boss_ramstein_the_gorger.cpp | 6 +-
.../zone/stratholme/boss_timmy_the_cruel.cpp | 4 +-
.../scripts/zone/stratholme/def_stratholme.h | 2 +-
.../zone/stratholme/instance_stratholme.cpp | 38 ++--
.../zone/sunwell_plateau/boss_brutallus.cpp | 6 +-
.../zone/sunwell_plateau/boss_eredar_twins.cpp | 98 ++++-----
.../scripts/zone/sunwell_plateau/boss_felmyst.cpp | 6 +-
.../scripts/zone/sunwell_plateau/boss_kalecgos.cpp | 12 +-
.../scripts/scripts/zone/tanaris/tanaris.cpp | 8 +-
.../zone/tempest_keep/arcatraz/arcatraz.cpp | 2 +-
.../tempest_keep/arcatraz/instance_arcatraz.cpp | 6 +-
.../tempest_keep/botanica/boss_warp_splinter.cpp | 12 +-
.../zone/tempest_keep/the_eye/boss_alar.cpp | 18 +-
.../zone/tempest_keep/the_eye/boss_astromancer.cpp | 4 +-
.../zone/tempest_keep/the_eye/boss_kaelthas.cpp | 8 +-
.../zone/tempest_keep/the_eye/instance_the_eye.cpp | 2 +-
.../the_mechanar/boss_gatewatcher_gyrokill.cpp | 2 +-
.../the_mechanar/boss_gatewatcher_ironhand.cpp | 98 ++++-----
.../the_mechanar/boss_nethermancer_sepethrea.cpp | 104 +++++-----
.../the_mechanar/boss_pathaleon_the_calculator.cpp | 154 +++++++-------
.../the_mechanar/instance_mechanar.cpp | 8 +-
.../scripts/zone/temple_of_ahnqiraj/boss_cthun.cpp | 2 +-
.../zone/temple_of_ahnqiraj/boss_sartura.cpp | 12 +-
.../zone/terokkar_forest/terokkar_forest.cpp | 8 +-
.../zone/thousand_needles/thousand_needles.cpp | 8 +-
.../zone/tirisfal_glades/tirisfal_glades.cpp | 18 +-
.../scripts/zone/uldaman/boss_archaedas.cpp | 4 +-
.../scripts/zone/uldaman/instance_uldaman.cpp | 6 +-
.../scripts/zone/ungoro_crater/ungoro_crater.cpp | 22 +-
.../scripts/scripts/zone/westfall/westfall.cpp | 2 +-
.../scripts/scripts/zone/zulaman/boss_akilzon.cpp | 28 +--
.../scripts/scripts/zone/zulaman/boss_halazzi.cpp | 6 +-
.../scripts/scripts/zone/zulaman/boss_hexlord.cpp | 14 +-
.../scripts/scripts/zone/zulaman/boss_janalai.cpp | 54 ++---
.../scripts/scripts/zone/zulaman/boss_nalorakk.cpp | 20 +-
.../scripts/scripts/zone/zulaman/boss_zuljin.cpp | 16 +-
.../scripts/zone/zulaman/instance_zulaman.cpp | 10 +-
.../scripts/scripts/zone/zulaman/zulaman.cpp | 2 +-
.../scripts/scripts/zone/zulgurub/boss_arlokk.cpp | 2 +-
.../scripts/scripts/zone/zulgurub/boss_hakkar.cpp | 2 +-
.../scripts/scripts/zone/zulgurub/boss_jeklik.cpp | 4 +-
.../scripts/scripts/zone/zulgurub/boss_jindo.cpp | 2 +-
.../scripts/zone/zulgurub/boss_mandokir.cpp | 2 +-
.../scripts/scripts/zone/zulgurub/boss_marli.cpp | 4 +-
.../scripts/scripts/zone/zulgurub/boss_thekal.cpp | 2 +-
.../scripts/scripts/zone/zulgurub/boss_venoxis.cpp | 4 +-
src/bindings/scripts/system.cpp | 2 +-
src/framework/Dynamic/FactoryHolder.h | 2 +-
src/framework/Dynamic/ObjectRegistry.h | 2 +-
src/framework/GameSystem/Grid.h | 2 +-
src/framework/GameSystem/GridLoader.h | 2 +-
src/framework/GameSystem/GridRefManager.h | 2 +-
src/framework/GameSystem/GridReference.h | 2 +-
src/framework/GameSystem/NGrid.h | 4 +-
src/framework/GameSystem/TypeContainer.h | 2 +-
src/framework/GameSystem/TypeContainerFunctions.h | 2 +-
.../GameSystem/TypeContainerFunctionsPtr.h | 2 +-
src/framework/GameSystem/TypeContainerVisitor.h | 2 +-
src/framework/Network/SocketDefines.h | 2 +-
src/framework/Platform/CompilerDefs.h | 2 +-
src/framework/Platform/Define.h | 2 +-
src/framework/Policies/CreationPolicy.h | 2 +-
src/framework/Policies/ObjectLifeTime.cpp | 2 +-
src/framework/Policies/ObjectLifeTime.h | 2 +-
src/framework/Policies/Singleton.h | 2 +-
src/framework/Policies/SingletonImp.h | 2 +-
src/framework/Policies/ThreadingModel.h | 2 +-
src/framework/Utilities/ByteConverter.h | 2 +-
src/framework/Utilities/Callback.h | 2 +-
.../Utilities/CountedReference/Reference.h | 2 +-
.../Utilities/CountedReference/ReferenceHolder.h | 2 +-
.../Utilities/CountedReference/ReferenceImpl.h | 2 +-
src/framework/Utilities/EventProcessor.cpp | 6 +-
src/framework/Utilities/EventProcessor.h | 4 +-
src/framework/Utilities/LinkedList.h | 2 +-
.../Utilities/LinkedReference/RefManager.h | 2 +-
.../Utilities/LinkedReference/Reference.h | 2 +-
src/framework/Utilities/TypeList.h | 2 +-
src/framework/Utilities/UnorderedMap.h | 2 +-
src/game/AccountMgr.cpp | 2 +-
src/game/CMakeLists.txt | 4 +-
src/game/CellImpl.h | 2 +-
src/game/Chat.cpp | 16 +-
src/game/Chat.h | 8 +-
src/game/ChatHandler.cpp | 2 +-
src/game/Creature.cpp | 8 +-
src/game/Creature.h | 6 +-
src/game/CreatureAI.h | 2 +-
src/game/CreatureAISelector.cpp | 2 +-
src/game/CreatureGroups.cpp | 54 ++---
src/game/CreatureGroups.h | 10 +-
src/game/DestinationHolderImp.h | 4 +-
src/game/DynamicObject.cpp | 2 +-
src/game/FleeingMovementGenerator.cpp | 8 +-
src/game/GameEvent.cpp | 10 +-
src/game/GameObject.cpp | 4 +-
src/game/GridNotifiers.cpp | 4 +-
src/game/GridNotifiers.h | 8 +-
src/game/Group.cpp | 32 +--
src/game/Group.h | 12 +-
src/game/GroupHandler.cpp | 2 +-
src/game/GuildHandler.cpp | 28 +--
src/game/Language.h | 12 +-
src/game/Level1.cpp | 26 +--
src/game/Level2.cpp | 222 ++++++++++-----------
src/game/Level3.cpp | 22 +-
src/game/Makefile.am | 6 +-
src/game/Map.h | 12 +-
src/game/MotionMaster.cpp | 10 +-
src/game/MovementHandler.cpp | 6 +-
src/game/Object.cpp | 4 +-
src/game/ObjectMgr.cpp | 14 +-
src/game/ObjectMgr.h | 10 +-
src/game/OutdoorPvP.cpp | 8 +-
src/game/OutdoorPvP.h | 2 +-
src/game/OutdoorPvPEP.cpp | 2 +-
src/game/OutdoorPvPEP.h | 2 +-
src/game/OutdoorPvPHP.cpp | 2 +-
src/game/OutdoorPvPHP.h | 2 +-
src/game/OutdoorPvPMgr.cpp | 2 +-
src/game/OutdoorPvPMgr.h | 2 +-
src/game/OutdoorPvPNA.cpp | 16 +-
src/game/OutdoorPvPNA.h | 8 +-
src/game/OutdoorPvPObjectiveAI.cpp | 2 +-
src/game/OutdoorPvPObjectiveAI.h | 2 +-
src/game/OutdoorPvPSI.cpp | 6 +-
src/game/OutdoorPvPSI.h | 2 +-
src/game/OutdoorPvPTF.cpp | 4 +-
src/game/OutdoorPvPZM.cpp | 2 +-
src/game/OutdoorPvPZM.h | 2 +-
src/game/Pet.cpp | 4 +-
src/game/Player.cpp | 21 +-
src/game/Player.h | 2 +-
src/game/PointMovementGenerator.cpp | 2 +-
src/game/RandomMovementGenerator.cpp | 14 +-
src/game/RandomMovementGenerator.h | 2 +-
src/game/SharedDefines.h | 4 +-
src/game/Spell.cpp | 28 +--
src/game/SpellAuras.cpp | 22 +-
src/game/SpellEffects.cpp | 14 +-
src/game/SpellHandler.cpp | 2 +-
src/game/TargetedMovementGenerator.cpp | 4 +-
src/game/ThreatManager.cpp | 6 +-
src/game/TicketHandler.cpp | 26 +--
src/game/TicketMgr.cpp | 8 +-
src/game/TicketMgr.h | 8 +-
src/game/Totem.h | 2 +-
src/game/Transports.cpp | 2 +-
src/game/Traveller.h | 2 +-
src/game/Unit.cpp | 42 ++--
src/game/Unit.h | 2 +-
src/game/WaypointManager.cpp | 34 ++--
src/game/WaypointManager.h | 6 +-
src/game/WaypointMovementGenerator.cpp | 28 +--
src/game/WaypointMovementGenerator.h | 6 +-
src/game/World.cpp | 30 +--
src/game/WorldSession.h | 2 +-
src/game/WorldSocket.cpp | 2 +-
src/game/WorldSocket.h | 2 +-
src/game/WorldSocketMgr.h | 22 +-
src/shared/Auth/AuthCrypt.cpp | 2 +-
src/shared/Auth/AuthCrypt.h | 2 +-
src/shared/Auth/BigNumber.cpp | 2 +-
src/shared/Auth/Hmac.cpp | 2 +-
src/shared/Auth/Hmac.h | 2 +-
src/shared/Auth/Sha1.cpp | 2 +-
src/shared/Auth/Sha1.h | 2 +-
src/shared/ByteBuffer.h | 2 +-
src/shared/CMakeLists.txt | 1 -
src/shared/Common.cpp | 2 +-
src/shared/Common.h | 8 +-
src/shared/Config/Config.cpp | 2 +-
src/shared/Config/Config.h | 2 +-
src/shared/Config/ConfigEnv.h | 2 +-
src/shared/Database/DBCStructure.h | 2 +-
src/shared/Database/Database.cpp | 2 +-
src/shared/Database/Database.h | 2 +-
src/shared/Database/DatabaseEnv.h | 2 +-
src/shared/Database/DatabaseImpl.h | 2 +-
src/shared/Database/DatabaseMysql.cpp | 2 +-
src/shared/Database/DatabaseMysql.h | 2 +-
src/shared/Database/DatabasePostgre.cpp | 2 +-
src/shared/Database/DatabasePostgre.h | 2 +-
src/shared/Database/DatabaseSqlite.cpp | 2 +-
src/shared/Database/DatabaseSqlite.h | 2 +-
src/shared/Database/Field.cpp | 2 +-
src/shared/Database/Field.h | 2 +-
src/shared/Database/MySQLDelayThread.h | 2 +-
src/shared/Database/PGSQLDelayThread.h | 2 +-
src/shared/Database/QueryResult.h | 2 +-
src/shared/Database/QueryResultMysql.cpp | 2 +-
src/shared/Database/QueryResultMysql.h | 2 +-
src/shared/Database/QueryResultPostgre.cpp | 2 +-
src/shared/Database/QueryResultPostgre.h | 2 +-
src/shared/Database/QueryResultSqlite.cpp | 2 +-
src/shared/Database/QueryResultSqlite.h | 2 +-
src/shared/Database/SQLStorage.cpp | 2 +-
src/shared/Database/SQLStorage.h | 2 +-
src/shared/Database/SqlDelayThread.cpp | 2 +-
src/shared/Database/SqlDelayThread.h | 2 +-
src/shared/Database/SqlOperations.cpp | 2 +-
src/shared/Database/SqlOperations.h | 2 +-
src/shared/Database/dbcfile.cpp | 2 +-
src/shared/Database/dbcfile.h | 2 +-
src/shared/Errors.h | 2 +-
src/shared/Log.cpp | 2 +-
src/shared/Log.h | 2 +-
src/shared/PacketLog.cpp | 2 +-
src/shared/PacketLog.h | 2 +-
src/shared/ProgressBar.cpp | 2 +-
src/shared/ProgressBar.h | 2 +-
src/shared/ServiceWin32.cpp | 2 +-
src/shared/ServiceWin32.h | 2 +-
src/shared/Timer.h | 4 +-
src/shared/Util.cpp | 4 +-
src/shared/Util.h | 4 +-
src/shared/WorldPacket.h | 2 +-
src/shared/vmap/AABSPTree.h | 166 +++++++--------
src/shared/vmap/BaseModel.cpp | 6 +-
src/shared/vmap/BaseModel.h | 2 +-
src/shared/vmap/CoordModelMapping.cpp | 2 +-
src/shared/vmap/CoordModelMapping.h | 2 +-
src/shared/vmap/DebugCmdLogger.cpp | 6 +-
src/shared/vmap/DebugCmdLogger.h | 2 +-
src/shared/vmap/IVMapManager.h | 2 +-
src/shared/vmap/ManagedModelContainer.cpp | 2 +-
src/shared/vmap/ManagedModelContainer.h | 2 +-
src/shared/vmap/ModelContainer.cpp | 2 +-
src/shared/vmap/ModelContainer.h | 2 +-
src/shared/vmap/NodeValueAccess.h | 2 +-
src/shared/vmap/ShortBox.h | 2 +-
src/shared/vmap/ShortVector.h | 2 +-
src/shared/vmap/SubModel.cpp | 2 +-
src/shared/vmap/SubModel.h | 2 +-
src/shared/vmap/TileAssembler.cpp | 2 +-
src/shared/vmap/TileAssembler.h | 2 +-
src/shared/vmap/TreeNode.cpp | 2 +-
src/shared/vmap/TreeNode.h | 20 +-
src/shared/vmap/VMapDefinitions.h | 2 +-
src/shared/vmap/VMapFactory.cpp | 2 +-
src/shared/vmap/VMapFactory.h | 2 +-
src/shared/vmap/VMapManager.cpp | 2 +-
src/shared/vmap/VMapManager.h | 2 +-
src/shared/vmap/VMapTools.h | 4 +-
src/trinitycore/CliRunnable.h | 2 +-
src/trinitycore/Master.h | 2 +-
src/trinitycore/WorldRunnable.cpp | 2 +-
src/trinitycore/WorldRunnable.h | 2 +-
src/trinitycore/resource.h | 2 +-
src/trinityrealm/AuthCodes.h | 2 +-
src/trinityrealm/RealmList.cpp | 2 +-
src/trinityrealm/RealmList.h | 2 +-
src/trinityrealm/resource.h | 2 +-
win/VC71/game.vcproj | 4 +-
win/VC80/game.vcproj | 4 +-
win/VC90/game.vcproj | 4 +-
379 files changed, 2233 insertions(+), 2233 deletions(-)
(limited to 'src')
diff --git a/sql/updates/54_world.sql b/sql/updates/54_world.sql
index 7cc8a5feb36..88ebc4b46db 100644
--- a/sql/updates/54_world.sql
+++ b/sql/updates/54_world.sql
@@ -1,4 +1,4 @@
-ďťżCREATE TABLE `game_event_battleground_holiday` (
+CREATE TABLE `game_event_battleground_holiday` (
`event` int(10) unsigned NOT NULL,
`bgflag` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`event`)
diff --git a/src/bindings/interface/ScriptMgr.cpp b/src/bindings/interface/ScriptMgr.cpp
index 8e6f2e421b6..c502f65b99c 100644
--- a/src/bindings/interface/ScriptMgr.cpp
+++ b/src/bindings/interface/ScriptMgr.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* Thanks to the original authors: MaNGOS
diff --git a/src/bindings/interface/ScriptMgr.h b/src/bindings/interface/ScriptMgr.h
index 45bf084bc6a..30d94ac01e1 100644
--- a/src/bindings/interface/ScriptMgr.h
+++ b/src/bindings/interface/ScriptMgr.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* Thanks to the original authors: MaNGOS
diff --git a/src/bindings/interface/Scripts/sc_default.cpp b/src/bindings/interface/Scripts/sc_default.cpp
index 6125747d355..79796eba8f6 100644
--- a/src/bindings/interface/Scripts/sc_default.cpp
+++ b/src/bindings/interface/Scripts/sc_default.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* Thanks to the original authors: MaNGOS
diff --git a/src/bindings/interface/Scripts/sc_defines.cpp b/src/bindings/interface/Scripts/sc_defines.cpp
index 787c68d246b..2c7c4ec743f 100644
--- a/src/bindings/interface/Scripts/sc_defines.cpp
+++ b/src/bindings/interface/Scripts/sc_defines.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* Thanks to the original authors: MaNGOS
diff --git a/src/bindings/interface/Scripts/sc_defines.h b/src/bindings/interface/Scripts/sc_defines.h
index 0e47bfb2e2d..1f8b468dc05 100644
--- a/src/bindings/interface/Scripts/sc_defines.h
+++ b/src/bindings/interface/Scripts/sc_defines.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* Thanks to the original authors: MaNGOS
diff --git a/src/bindings/interface/config.h b/src/bindings/interface/config.h
index 6959677178f..f074f0a3351 100644
--- a/src/bindings/interface/config.h
+++ b/src/bindings/interface/config.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* Thanks to the original authors: MaNGOS
diff --git a/src/bindings/interface/system.cpp b/src/bindings/interface/system.cpp
index 8da34985fe4..3c76284b5af 100644
--- a/src/bindings/interface/system.cpp
+++ b/src/bindings/interface/system.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* Thanks to the original authors: MaNGOS
diff --git a/src/bindings/scripts/ScriptMgr.cpp b/src/bindings/scripts/ScriptMgr.cpp
index 4bca36cbc01..0936c77617e 100644
--- a/src/bindings/scripts/ScriptMgr.cpp
+++ b/src/bindings/scripts/ScriptMgr.cpp
@@ -650,7 +650,7 @@ void LoadDatabase()
// Drop Existing Text Map, only done once and we are ready to add data from multiple sources.
TextMap.clear();
- // Load EventAI Text
+ // Load EventAI Text
outstring_log("TSCR: Loading EventAI Texts...");
LoadTrinityStrings(TScriptDB,"eventai_texts",-1,1+(TEXT_SOURCE_RANGE));
@@ -716,7 +716,7 @@ void LoadDatabase()
outstring_log(">> Loaded 0 additional EventAI Texts data. DB table `eventai_texts` is empty.");
}
- // Load Script Text
+ // Load Script Text
outstring_log("TSCR: Loading Script Texts...");
LoadTrinityStrings(TScriptDB,"script_texts",TEXT_SOURCE_RANGE,1+(TEXT_SOURCE_RANGE*2));
@@ -781,7 +781,7 @@ void LoadDatabase()
outstring_log(">> Loaded 0 additional Script Texts data. DB table `script_texts` is empty.");
}
- // Load Custom Text
+ // Load Custom Text
outstring_log("TSCR: Loading Custom Texts...");
LoadTrinityStrings(TScriptDB,"custom_texts",TEXT_SOURCE_RANGE*2,1+(TEXT_SOURCE_RANGE*3));
@@ -1198,7 +1198,7 @@ void LoadDatabase()
struct TSpellSummary {
uint8 Targets; // set of enum SelectTarget
- uint8 Effects; // set of enum SelectEffect
+ uint8 Effects; // set of enum SelectEffect
}extern *SpellSummary;
TRINITY_DLL_EXPORT
diff --git a/src/bindings/scripts/include/sc_creature.cpp b/src/bindings/scripts/include/sc_creature.cpp
index b4bb5175a8b..f9f9e04235e 100644
--- a/src/bindings/scripts/include/sc_creature.cpp
+++ b/src/bindings/scripts/include/sc_creature.cpp
@@ -136,7 +136,7 @@ void ScriptedAI::EnterEvadeMode()
{
if(owner->isAlive())
m_creature->GetMotionMaster()->MoveFollow(owner,PET_FOLLOW_DIST,PET_FOLLOW_ANGLE);
- }
+ }
else
m_creature->GetMotionMaster()->MoveTargetedHome();
}
@@ -434,7 +434,7 @@ void ScriptedAI::SelectUnitList(std::list &targetList, uint32 num, Select
|| playerOnly && target->GetTypeId() != TYPEID_PLAYER
|| dist && !m_creature->IsWithinCombatRange(target, dist))
{
- continue;
+ continue;
}
targetList.push_back(target);
--num;
@@ -634,15 +634,15 @@ void FillSpellSummary()
SpellSummary[i].Targets |= 1 << (SELECT_TARGET_ANY_FRIEND-1);
//Make sure that this spell includes a damage effect
- if ( TempSpell->Effect[j] == SPELL_EFFECT_SCHOOL_DAMAGE ||
- TempSpell->Effect[j] == SPELL_EFFECT_INSTAKILL ||
- TempSpell->Effect[j] == SPELL_EFFECT_ENVIRONMENTAL_DAMAGE ||
+ if ( TempSpell->Effect[j] == SPELL_EFFECT_SCHOOL_DAMAGE ||
+ TempSpell->Effect[j] == SPELL_EFFECT_INSTAKILL ||
+ TempSpell->Effect[j] == SPELL_EFFECT_ENVIRONMENTAL_DAMAGE ||
TempSpell->Effect[j] == SPELL_EFFECT_HEALTH_LEECH )
SpellSummary[i].Effects |= 1 << (SELECT_EFFECT_DAMAGE-1);
//Make sure that this spell includes a healing effect (or an apply aura with a periodic heal)
- if ( TempSpell->Effect[j] == SPELL_EFFECT_HEAL ||
- TempSpell->Effect[j] == SPELL_EFFECT_HEAL_MAX_HEALTH ||
+ if ( TempSpell->Effect[j] == SPELL_EFFECT_HEAL ||
+ TempSpell->Effect[j] == SPELL_EFFECT_HEAL_MAX_HEALTH ||
TempSpell->Effect[j] == SPELL_EFFECT_HEAL_MECHANICAL ||
(TempSpell->Effect[j] == SPELL_EFFECT_APPLY_AURA && TempSpell->EffectApplyAuraName[j]== 8 ))
SpellSummary[i].Effects |= 1 << (SELECT_EFFECT_HEALING-1);
@@ -746,7 +746,7 @@ void ScriptedAI::DoTeleportAll(float x, float y, float z, float o)
}
Unit* FindCreature(uint32 entry, float range, Unit* Finder)
-{
+{
if(!Finder)
return NULL;
Creature* target = NULL;
diff --git a/src/bindings/scripts/include/sc_instance.h b/src/bindings/scripts/include/sc_instance.h
index 8ecd982f5cb..c02b05fa709 100644
--- a/src/bindings/scripts/include/sc_instance.h
+++ b/src/bindings/scripts/include/sc_instance.h
@@ -38,7 +38,7 @@ class TRINITY_DLL_DECL ScriptedInstance : public InstanceData
virtual void Update(uint32) {}
// Save and Load instance data to the database
- const char* Save() { return NULL; }
+ const char* Save() { return NULL; }
void Load(const char* in) { }
};
diff --git a/src/bindings/scripts/scripts/areatrigger/areatrigger_scripts.cpp b/src/bindings/scripts/scripts/areatrigger/areatrigger_scripts.cpp
index 13ad8ff6f29..18757d05510 100644
--- a/src/bindings/scripts/scripts/areatrigger/areatrigger_scripts.cpp
+++ b/src/bindings/scripts/scripts/areatrigger/areatrigger_scripts.cpp
@@ -44,13 +44,13 @@ bool AreaTrigger_at_legion_teleporter(Player *player, AreaTriggerEntry *at)
player->CastSpell(player,SPELL_TELE_A_TO,false);
return true;
}
-
+
if (player->GetTeam()== HORDE && player->GetQuestRewardStatus(10604))
{
player->CastSpell(player,SPELL_TELE_H_TO,false);
return true;
}
-
+
return false;
}
return false;
diff --git a/src/bindings/scripts/scripts/creature/mob_generic_creature.cpp b/src/bindings/scripts/scripts/creature/mob_generic_creature.cpp
index 043bf461c0c..be3168adbe4 100644
--- a/src/bindings/scripts/scripts/creature/mob_generic_creature.cpp
+++ b/src/bindings/scripts/scripts/creature/mob_generic_creature.cpp
@@ -112,7 +112,7 @@ struct TRINITY_DLL_DECL generic_creatureAI : public ScriptedAI
m_creature->resetAttackTimer();
}
}
- else
+ else
{
//Only run this code if we arn't already casting
if (!m_creature->IsNonMeleeSpellCasted(false))
@@ -155,7 +155,7 @@ struct TRINITY_DLL_DECL generic_creatureAI : public ScriptedAI
}
}
}
-};
+};
CreatureAI* GetAI_generic_creature(Creature *_Creature)
{
return new generic_creatureAI (_Creature);
diff --git a/src/bindings/scripts/scripts/guard/guard_ai.cpp b/src/bindings/scripts/scripts/guard/guard_ai.cpp
index 09b4a92a306..ed766d24e0e 100644
--- a/src/bindings/scripts/scripts/guard/guard_ai.cpp
+++ b/src/bindings/scripts/scripts/guard/guard_ai.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Guard_AI
SD%Complete: 90
-SDComment:
+SDComment:
SDCategory: Guards
EndScriptData */
@@ -51,7 +51,7 @@ void guardAI::Aggro(Unit *who)
break;
}
}
-
+
if (SpellEntry const *spell = m_creature->reachWithSpellAttack(who))
DoCastSpell(who, spell);
}
diff --git a/src/bindings/scripts/scripts/item/item_scripts.cpp b/src/bindings/scripts/scripts/item/item_scripts.cpp
index ba92a4adcd7..35d0cb5ab62 100644
--- a/src/bindings/scripts/scripts/item/item_scripts.cpp
+++ b/src/bindings/scripts/scripts/item/item_scripts.cpp
@@ -74,7 +74,7 @@ bool ItemUse_item_only_for_flight(Player *player, Item* _Item, SpellCastTargets
{
uint32 itemId = _Item->GetEntry();
bool disabled = false;
-
+
//for special scripts
switch(itemId)
{
@@ -84,10 +84,10 @@ bool ItemUse_item_only_for_flight(Player *player, Item* _Item, SpellCastTargets
break;
case 34489:
if(player->GetZoneId() != 4080)
- disabled = true;
+ disabled = true;
break;
}
-
+
// allow use in flight only
if( player->isInFlight() && !disabled)
return false;
@@ -110,7 +110,7 @@ bool ItemUse_item_attuned_crystal_cores(Player *player, Item* _Item, SpellCastTa
((Creature*)targets.getUnitTarget())->RemoveCorpse();
return false;
}
-
+
player->SendEquipError(EQUIP_ERR_CANT_DO_RIGHT_NOW,_Item,NULL);
return true;
}
diff --git a/src/bindings/scripts/scripts/npc/npc_escortAI.cpp b/src/bindings/scripts/scripts/npc/npc_escortAI.cpp
index f17c134ab2c..bfe4138c8a5 100644
--- a/src/bindings/scripts/scripts/npc/npc_escortAI.cpp
+++ b/src/bindings/scripts/scripts/npc/npc_escortAI.cpp
@@ -31,7 +31,7 @@ void npc_escortAI::AttackStart(Unit *who)
if (IsBeingEscorted && !Defend)
return;
-
+
if ( m_creature->Attack(who, true) )
{
m_creature->AddThreat(who, 0.0f);
@@ -237,7 +237,7 @@ void npc_escortAI::MovementInform(uint32 type, uint32 id)
void npc_escortAI::OnPossess(bool apply)
{
- // We got possessed in the middle of being escorted, store the point
+ // We got possessed in the middle of being escorted, store the point
// where we left off to come back to when possess is removed
if (IsBeingEscorted)
{
diff --git a/src/bindings/scripts/scripts/npc/npcs_special.cpp b/src/bindings/scripts/scripts/npc/npcs_special.cpp
index 9c23c21ffbd..432e225caa3 100644
--- a/src/bindings/scripts/scripts/npc/npcs_special.cpp
+++ b/src/bindings/scripts/scripts/npc/npcs_special.cpp
@@ -139,7 +139,7 @@ bool QuestComplete_npc_chicken_cluck(Player *player, Creature *_Creature, const
struct TRINITY_DLL_DECL npc_dancing_flamesAI : public ScriptedAI
{
npc_dancing_flamesAI(Creature *c) : ScriptedAI(c) {Reset();}
-
+
bool active;
uint32 can_iteract;
@@ -899,7 +899,7 @@ struct TRINITY_DLL_DECL npc_steam_tonkAI : public ScriptedAI
void Reset() {}
void Aggro(Unit *who) {}
-
+
void OnPossess(bool apply)
{
if (apply)
@@ -921,11 +921,11 @@ CreatureAI* GetAI_npc_steam_tonk(Creature *_Creature)
return new npc_steam_tonkAI(_Creature);
}
-#define SPELL_TONK_MINE_DETONATE 25099
+#define SPELL_TONK_MINE_DETONATE 25099
struct TRINITY_DLL_DECL npc_tonk_mineAI : public ScriptedAI
{
- npc_tonk_mineAI(Creature *c) : ScriptedAI(c)
+ npc_tonk_mineAI(Creature *c) : ScriptedAI(c)
{
m_creature->SetReactState(REACT_PASSIVE);
Reset();
@@ -1002,7 +1002,7 @@ bool ReceiveEmote_npc_brewfest_reveler( Player *player, Creature *_Creature, uin
#define SPELL_DEADLY_POISON 34655 //Venomous Snake
#define SPELL_CRIPPLING_POISON 3409 //Viper
-#define VENOMOUS_SNAKE_TIMER 1200
+#define VENOMOUS_SNAKE_TIMER 1200
#define VIPER_TIMER 3000
#define C_VIPER 19921
@@ -1016,14 +1016,14 @@ struct TRINITY_DLL_DECL npc_snake_trap_serpentsAI : public ScriptedAI
uint32 SpellTimer;
Unit *Owner;
bool IsViper;
-
+
void Aggro(Unit *who) {}
void Reset()
{
Owner = m_creature->GetOwner();
-
- if (!m_creature->isPet() || !Owner)
+
+ if (!m_creature->isPet() || !Owner)
return;
CreatureInfo const *Info = m_creature->GetCreatureInfo();
@@ -1051,25 +1051,25 @@ struct TRINITY_DLL_DECL npc_snake_trap_serpentsAI : public ScriptedAI
{
if (!m_creature->isPet() || !Owner)
return;
-
+
if( !m_creature->getVictim() && who->isTargetableForAttack() && ( m_creature->IsHostileTo( who )) && who->isInAccessiblePlaceFor(m_creature) && Owner->IsHostileTo(who))//don't attack not-pvp-flaged
{
if (m_creature->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE)
return;
-
+
float attackRadius = m_creature->GetAttackDistance(who);
if( m_creature->IsWithinDistInMap(who, attackRadius) && m_creature->IsWithinLOSInMap(who) )
- {
+ {
if (!(rand() % RAND) )
- {
- m_creature->setAttackTimer(BASE_ATTACK, (rand() % 10) * 100);
+ {
+ m_creature->setAttackTimer(BASE_ATTACK, (rand() % 10) * 100);
SpellTimer = (rand() % 10) * 100;
AttackStart(who);
InCombat = true;
}
}
- }
- }
+ }
+ }
void UpdateAI(const uint32 diff)
{
@@ -1077,41 +1077,41 @@ struct TRINITY_DLL_DECL npc_snake_trap_serpentsAI : public ScriptedAI
return;
//Follow if not in combat
- if (!m_creature->hasUnitState(UNIT_STAT_FOLLOW)&& !InCombat)
+ if (!m_creature->hasUnitState(UNIT_STAT_FOLLOW)&& !InCombat)
{
m_creature->GetMotionMaster()->Clear();
m_creature->GetMotionMaster()->MoveFollow(Owner,PET_FOLLOW_DIST,PET_FOLLOW_ANGLE);
}
-
+
//No victim -> get new from owner (need this because MoveInLineOfSight won't work while following -> corebug)
if (!m_creature->getVictim())
{
- if (InCombat)
+ if (InCombat)
DoStopAttack();
InCombat = false;
-
+
if(Owner->getAttackerForHelper())
AttackStart(Owner->getAttackerForHelper());
return;
}
-
+
if (SpellTimer < diff)
{
if (IsViper) //Viper
{
if (rand() % 3 == 0) //33% chance to cast
{
- uint32 spell;
+ uint32 spell;
if( rand() % 2 == 0)
spell = SPELL_MIND_NUMBING_POISON;
else
spell = SPELL_CRIPPLING_POISON;
-
+
DoCast(m_creature->getVictim(),spell);
}
-
+
SpellTimer = VIPER_TIMER;
}
else //Venomous Snake
@@ -1120,7 +1120,7 @@ struct TRINITY_DLL_DECL npc_snake_trap_serpentsAI : public ScriptedAI
DoCast(m_creature->getVictim(),SPELL_DEADLY_POISON);
SpellTimer = VENOMOUS_SNAKE_TIMER + (rand() %5)*100;
}
- }else SpellTimer-=diff;
+ }else SpellTimer-=diff;
DoMeleeAttackIfReady();
}
};
diff --git a/src/bindings/scripts/scripts/zone/arathi_highlands/arathi_highlands.cpp b/src/bindings/scripts/scripts/zone/arathi_highlands/arathi_highlands.cpp
index ad03e9e8987..857b682748d 100644
--- a/src/bindings/scripts/scripts/zone/arathi_highlands/arathi_highlands.cpp
+++ b/src/bindings/scripts/scripts/zone/arathi_highlands/arathi_highlands.cpp
@@ -32,11 +32,11 @@ EndContentData */
## npc_professor_phizzlethorpe
######*/
-#define SAY_PROGRESS_1 -1000235
+#define SAY_PROGRESS_1 -1000235
#define SAY_PROGRESS_2 -1000236
-#define SAY_PROGRESS_3 -1000237
-#define EMOTE_PROGRESS_4 -1000238
-#define SAY_AGGRO -1000239
+#define SAY_PROGRESS_3 -1000237
+#define EMOTE_PROGRESS_4 -1000238
+#define SAY_AGGRO -1000239
#define SAY_PROGRESS_5 -1000240
#define SAY_PROGRESS_6 -1000241
#define SAY_PROGRESS_7 -1000242
@@ -61,7 +61,7 @@ struct TRINITY_DLL_DECL npc_professor_phizzlethorpeAI : public npc_escortAI
case 4:DoScriptText(SAY_PROGRESS_2, m_creature, player);break;
case 5:DoScriptText(SAY_PROGRESS_3, m_creature, player);break;
case 8:DoScriptText(EMOTE_PROGRESS_4, m_creature);break;
- case 9:
+ case 9:
{
m_creature->SummonCreature(MOB_VENGEFUL_SURGE, -2052.96, -2142.49, 20.15, 1.0f, TEMPSUMMON_CORPSE_DESPAWN, 0);
m_creature->SummonCreature(MOB_VENGEFUL_SURGE, -2052.96, -2142.49, 20.15, 1.0f, TEMPSUMMON_CORPSE_DESPAWN, 0);
@@ -131,14 +131,14 @@ CreatureAI* GetAI_npc_professor_phizzlethorpeAI(Creature *_Creature)
professor_phizzlethorpeAI->AddWaypoint(1, -2077.99, -2105.33, 13.24);
professor_phizzlethorpeAI->AddWaypoint(2, -2074.60, -2109.67, 14.24);
professor_phizzlethorpeAI->AddWaypoint(3, -2076.60, -2117.46, 16.67);
- professor_phizzlethorpeAI->AddWaypoint(4, -2073.51, -2123.46, 18.42, 2000);
- professor_phizzlethorpeAI->AddWaypoint(5, -2073.51, -2123.46, 18.42, 4000);
+ professor_phizzlethorpeAI->AddWaypoint(4, -2073.51, -2123.46, 18.42, 2000);
+ professor_phizzlethorpeAI->AddWaypoint(5, -2073.51, -2123.46, 18.42, 4000);
professor_phizzlethorpeAI->AddWaypoint(6, -2066.60, -2131.85, 21.56);
professor_phizzlethorpeAI->AddWaypoint(7, -2053.85, -2143.19, 20.31);
professor_phizzlethorpeAI->AddWaypoint(8, -2043.49, -2153.73, 20.20, 12000);
- professor_phizzlethorpeAI->AddWaypoint(9, -2043.49, -2153.73, 20.20, 14000);
+ professor_phizzlethorpeAI->AddWaypoint(9, -2043.49, -2153.73, 20.20, 14000);
professor_phizzlethorpeAI->AddWaypoint(10, -2043.49, -2153.73, 20.20, 10000);
- professor_phizzlethorpeAI->AddWaypoint(11, -2043.49, -2153.73, 20.20, 2000);
+ professor_phizzlethorpeAI->AddWaypoint(11, -2043.49, -2153.73, 20.20, 2000);
professor_phizzlethorpeAI->AddWaypoint(12, -2053.85, -2143.19, 20.31);
professor_phizzlethorpeAI->AddWaypoint(13, -2066.60, -2131.85, 21.56);
professor_phizzlethorpeAI->AddWaypoint(14, -2073.51, -2123.46, 18.42);
@@ -146,7 +146,7 @@ CreatureAI* GetAI_npc_professor_phizzlethorpeAI(Creature *_Creature)
professor_phizzlethorpeAI->AddWaypoint(16, -2074.60, -2109.67, 14.24);
professor_phizzlethorpeAI->AddWaypoint(17, -2077.99, -2105.33, 13.24);
professor_phizzlethorpeAI->AddWaypoint(18, -2066.45, -2085.96, 9.08);
- professor_phizzlethorpeAI->AddWaypoint(19, -2066.41, -2086.21, 8.97, 6000);
+ professor_phizzlethorpeAI->AddWaypoint(19, -2066.41, -2086.21, 8.97, 6000);
professor_phizzlethorpeAI->AddWaypoint(20, -2066.41, -2086.21, 8.97, 2000);
return (CreatureAI*)professor_phizzlethorpeAI;
diff --git a/src/bindings/scripts/scripts/zone/ashenvale_forest/ashenvale.cpp b/src/bindings/scripts/scripts/zone/ashenvale_forest/ashenvale.cpp
index 10a311b3fc1..c684eeaf97d 100644
--- a/src/bindings/scripts/scripts/zone/ashenvale_forest/ashenvale.cpp
+++ b/src/bindings/scripts/scripts/zone/ashenvale_forest/ashenvale.cpp
@@ -20,12 +20,12 @@ SD%Complete: 70
SDComment: Quest support: 6544, 6482
SDCategory: Ashenvale Forest
EndScriptData */
-
+
/* ContentData
npc_torek
npc_ruul_snowhoof
EndContentData */
-
+
#include "precompiled.h"
#include "../../npc/npc_escortAI.h"
@@ -43,7 +43,7 @@ EndContentData */
#define SPELL_THUNDERCLAP 8078
#define QUEST_TOREK_ASSULT 6544
-
+
#define ENTRY_SPLINTERTREE_RAIDER 12859
#define ENTRY_DURIEL 12860
#define ENTRY_SILVERWING_SENTINEL 12896
@@ -52,18 +52,18 @@ EndContentData */
struct TRINITY_DLL_DECL npc_torekAI : public npc_escortAI
{
npc_torekAI(Creature *c) : npc_escortAI(c) {Reset();}
-
+
uint32 Rend_Timer;
uint32 Thunderclap_Timer;
bool Completed;
-
+
void WaypointReached(uint32 i)
{
Unit* player = Unit::GetUnit((*m_creature), PlayerGUID);
if (!player)
return;
-
+
switch (i)
{
case 1:
@@ -89,23 +89,23 @@ struct TRINITY_DLL_DECL npc_torekAI : public npc_escortAI
break;
}
}
-
+
void Reset()
{
Rend_Timer = 5000;
Thunderclap_Timer = 8000;
Completed = false;
}
-
+
void Aggro(Unit* who)
{
}
-
+
void JustSummoned(Creature* summoned)
{
summoned->AI()->AttackStart(m_creature);
}
-
+
void JustDied(Unit* killer)
{
if (PlayerGUID && !Completed)
@@ -114,14 +114,14 @@ struct TRINITY_DLL_DECL npc_torekAI : public npc_escortAI
((Player*)player)->FailQuest(QUEST_TOREK_ASSULT);
}
}
-
+
void UpdateAI(const uint32 diff)
{
npc_escortAI::UpdateAI(diff);
-
+
if (!UpdateVictim())
return;
-
+
if (Rend_Timer < diff)
{
DoCast(m_creature->getVictim(),SPELL_REND);
@@ -135,7 +135,7 @@ struct TRINITY_DLL_DECL npc_torekAI : public npc_escortAI
}else Thunderclap_Timer -= diff;
}
};
-
+
bool QuestAccept_npc_torek(Player* player, Creature* creature, Quest const* quest)
{
if (quest->GetQuestId() == QUEST_TOREK_ASSULT)
@@ -145,14 +145,14 @@ bool QuestAccept_npc_torek(Player* player, Creature* creature, Quest const* ques
DoScriptText(SAY_READY, creature, player);
creature->setFaction(113);
}
-
+
return true;
}
-
+
CreatureAI* GetAI_npc_torek(Creature *_Creature)
{
npc_torekAI* thisAI = new npc_torekAI(_Creature);
-
+
thisAI->AddWaypoint(0, 1782.63, -2241.11, 109.73, 5000);
thisAI->AddWaypoint(1, 1788.88, -2240.17, 111.71);
thisAI->AddWaypoint(2, 1797.49, -2238.11, 112.31);
@@ -176,7 +176,7 @@ CreatureAI* GetAI_npc_torek(Creature *_Creature)
thisAI->AddWaypoint(20, 1776.90, -2024.56, 109.83); //win
thisAI->AddWaypoint(21, 1776.87, -2028.31, 109.83,60000);//stay
thisAI->AddWaypoint(22, 1776.90, -2028.30, 109.83);
-
+
return (CreatureAI*)thisAI;
}
@@ -184,13 +184,13 @@ CreatureAI* GetAI_npc_torek(Creature *_Creature)
# npc_ruul_snowhoof
####*/
-#define QUEST_FREEDOM_TO_RUUL 6482
+#define QUEST_FREEDOM_TO_RUUL 6482
#define GO_CAGE 178147
struct TRINITY_DLL_DECL npc_ruul_snowhoofAI : public npc_escortAI
{
npc_ruul_snowhoofAI(Creature *c) : npc_escortAI(c) {Reset();}
-
+
void WaypointReached(uint32 i)
{
Unit* player = Unit::GetUnit((*m_creature), PlayerGUID);
@@ -200,33 +200,33 @@ struct TRINITY_DLL_DECL npc_ruul_snowhoofAI : public npc_escortAI
switch(i)
{
- case 0: {
+ case 0: {
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
GameObject* Cage = FindGameObject(GO_CAGE, 20, m_creature);
if(Cage)
Cage->SetGoState(0);
break;}
- case 13:
+ case 13:
m_creature->SummonCreature(3922, 3449.218018, -587.825073, 174.978867, 4.714445, TEMPSUMMON_DEAD_DESPAWN, 60000);
m_creature->SummonCreature(3921, 3446.384521, -587.830872, 175.186279, 4.714445, TEMPSUMMON_DEAD_DESPAWN, 60000);
- m_creature->SummonCreature(3926, 3444.218994, -587.835327, 175.380600, 4.714445, TEMPSUMMON_DEAD_DESPAWN, 60000);
- break;
+ m_creature->SummonCreature(3926, 3444.218994, -587.835327, 175.380600, 4.714445, TEMPSUMMON_DEAD_DESPAWN, 60000);
+ break;
case 19:
m_creature->SummonCreature(3922, 3508.344482, -492.024261, 186.929031, 4.145029, TEMPSUMMON_DEAD_DESPAWN, 60000);
m_creature->SummonCreature(3921, 3506.265625, -490.531006, 186.740128, 4.239277, TEMPSUMMON_DEAD_DESPAWN, 60000);
m_creature->SummonCreature(3926, 3503.682373, -489.393799, 186.629684, 4.349232, TEMPSUMMON_DEAD_DESPAWN, 60000);
- break;
-
+ break;
+
case 21:{
if (player && player->GetTypeId() == TYPEID_PLAYER)
((Player*)player)->GroupEventHappens(QUEST_FREEDOM_TO_RUUL,m_creature);
-
- break; }
+
+ break; }
}
}
-
+
void Aggro(Unit* who) {}
-
+
void Reset()
{
if (!IsBeingEscorted)
@@ -251,13 +251,13 @@ struct TRINITY_DLL_DECL npc_ruul_snowhoofAI : public npc_escortAI
((Player*)player)->FailQuest(QUEST_FREEDOM_TO_RUUL);
}
}
-
+
void UpdateAI(const uint32 diff)
{
npc_escortAI::UpdateAI(diff);
}
};
-
+
bool QuestAccept_npc_ruul_snowhoof(Player* player, Creature* creature, Quest const* quest)
{
if (quest->GetQuestId() == QUEST_FREEDOM_TO_RUUL)
@@ -267,13 +267,13 @@ bool QuestAccept_npc_ruul_snowhoof(Player* player, Creature* creature, Quest con
}
return true;
}
-
+
CreatureAI* GetAI_npc_ruul_snowhoofAI(Creature *_Creature)
{
npc_ruul_snowhoofAI* ruul_snowhoofAI = new npc_ruul_snowhoofAI(_Creature);
-
+
ruul_snowhoofAI->AddWaypoint(0, 3347.250089, -694.700989, 159.925995);
- ruul_snowhoofAI->AddWaypoint(1, 3341.527039, -694.725891, 161.124542, 4000);
+ ruul_snowhoofAI->AddWaypoint(1, 3341.527039, -694.725891, 161.124542, 4000);
ruul_snowhoofAI->AddWaypoint(2, 3338.351074, -686.088138, 163.444000);
ruul_snowhoofAI->AddWaypoint(3, 3352.744873, -677.721741, 162.316269);
ruul_snowhoofAI->AddWaypoint(4, 3370.291016, -669.366943, 160.751358);
@@ -294,14 +294,14 @@ CreatureAI* GetAI_npc_ruul_snowhoofAI(Creature *_Creature)
ruul_snowhoofAI->AddWaypoint(19,3497.619385, -510.411499, 188.345322, 1000); // Ambush 2
ruul_snowhoofAI->AddWaypoint(20,3498.498047, -497.787506, 185.806274);
ruul_snowhoofAI->AddWaypoint(21,3484.218750, -489.717529, 182.389862, 4000); // End
-
+
return (CreatureAI*)ruul_snowhoofAI;
}
void AddSC_ashenvale()
{
Script *newscript;
-
+
newscript = new Script;
newscript->Name = "npc_torek";
newscript->GetAI = &GetAI_npc_torek;
diff --git a/src/bindings/scripts/scripts/zone/aunchindoun/auchenai_crypts/boss_shirrak_the_dead_watcher.cpp b/src/bindings/scripts/scripts/zone/aunchindoun/auchenai_crypts/boss_shirrak_the_dead_watcher.cpp
index 2f554c9ca1d..2db0ee3adc4 100644
--- a/src/bindings/scripts/scripts/zone/aunchindoun/auchenai_crypts/boss_shirrak_the_dead_watcher.cpp
+++ b/src/bindings/scripts/scripts/zone/aunchindoun/auchenai_crypts/boss_shirrak_the_dead_watcher.cpp
@@ -23,7 +23,7 @@ EndScriptData */
#include "precompiled.h"
-#define SPELL_INHIBITMAGIC 32264
+#define SPELL_INHIBITMAGIC 32264
#define SPELL_ATTRACTMAGIC 32265
#define N_SPELL_CARNIVOROUSBITE 36383
#define H_SPELL_CARNIVOROUSBITE 39382
@@ -52,7 +52,7 @@ struct TRINITY_DLL_DECL boss_shirrak_the_dead_watcherAI : public ScriptedAI
Unit *focusedTarget;
void Reset()
- {
+ {
Inhibitmagic_Timer = 0;
Attractmagic_Timer = 28000;
Carnivorousbite_Timer = 10000;
@@ -81,12 +81,12 @@ struct TRINITY_DLL_DECL boss_shirrak_the_dead_watcherAI : public ScriptedAI
{
//Inhibitmagic_Timer
if (Inhibitmagic_Timer < diff)
- {
- float dist;
- Map *map = m_creature->GetMap();
- Map::PlayerList const &PlayerList = map->GetPlayers();
- for(Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
- if (Player* i_pl = i->getSource())
+ {
+ float dist;
+ Map *map = m_creature->GetMap();
+ Map::PlayerList const &PlayerList = map->GetPlayers();
+ for(Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
+ if (Player* i_pl = i->getSource())
if (i_pl->isAlive() && (dist = i_pl->GetDistance(m_creature)) < 45)
{
i_pl->RemoveAurasDueToSpell(SPELL_INHIBITMAGIC);
@@ -142,7 +142,7 @@ struct TRINITY_DLL_DECL boss_shirrak_the_dead_watcherAI : public ScriptedAI
DoMeleeAttackIfReady();
}
-};
+};
CreatureAI* GetAI_boss_shirrak_the_dead_watcher(Creature *_Creature)
{
@@ -189,7 +189,7 @@ struct TRINITY_DLL_DECL mob_focus_fireAI : public ScriptedAI
//DoMeleeAttackIfReady();
}
-};
+};
CreatureAI* GetAI_mob_focus_fire(Creature *_Creature)
{
diff --git a/src/bindings/scripts/scripts/zone/aunchindoun/sethekk_halls/boss_darkweaver_syth.cpp b/src/bindings/scripts/scripts/zone/aunchindoun/sethekk_halls/boss_darkweaver_syth.cpp
index 8d2572f90de..f7dfcb3ed0c 100644
--- a/src/bindings/scripts/scripts/zone/aunchindoun/sethekk_halls/boss_darkweaver_syth.cpp
+++ b/src/bindings/scripts/scripts/zone/aunchindoun/sethekk_halls/boss_darkweaver_syth.cpp
@@ -53,7 +53,7 @@ EndScriptData */
struct TRINITY_DLL_DECL boss_darkweaver_sythAI : public ScriptedAI
{
- boss_darkweaver_sythAI(Creature *c) : ScriptedAI(c)
+ boss_darkweaver_sythAI(Creature *c) : ScriptedAI(c)
{
HeroicMode = m_creature->GetMap()->IsHeroic();
@@ -258,7 +258,7 @@ CreatureAI* GetAI_mob_syth_fire(Creature *_Creature)
struct TRINITY_DLL_DECL mob_syth_arcaneAI : public ScriptedAI
{
- mob_syth_arcaneAI(Creature *c) : ScriptedAI(c)
+ mob_syth_arcaneAI(Creature *c) : ScriptedAI(c)
{
HeroicMode = m_creature->GetMap()->IsHeroic();
@@ -310,8 +310,8 @@ CreatureAI* GetAI_mob_syth_arcane(Creature *_Creature)
struct TRINITY_DLL_DECL mob_syth_frostAI : public ScriptedAI
{
- mob_syth_frostAI(Creature *c) : ScriptedAI(c)
-
+ mob_syth_frostAI(Creature *c) : ScriptedAI(c)
+
{
HeroicMode = m_creature->GetMap()->IsHeroic();
Reset();
@@ -362,7 +362,7 @@ CreatureAI* GetAI_mob_syth_frost(Creature *_Creature)
struct TRINITY_DLL_DECL mob_syth_shadowAI : public ScriptedAI
{
- mob_syth_shadowAI(Creature *c) : ScriptedAI(c)
+ mob_syth_shadowAI(Creature *c) : ScriptedAI(c)
{
HeroicMode = m_creature->GetMap()->IsHeroic();
diff --git a/src/bindings/scripts/scripts/zone/aunchindoun/shadow_labyrinth/boss_grandmaster_vorpil.cpp b/src/bindings/scripts/scripts/zone/aunchindoun/shadow_labyrinth/boss_grandmaster_vorpil.cpp
index ed6b1da35cd..0d04fc57f23 100644
--- a/src/bindings/scripts/scripts/zone/aunchindoun/shadow_labyrinth/boss_grandmaster_vorpil.cpp
+++ b/src/bindings/scripts/scripts/zone/aunchindoun/shadow_labyrinth/boss_grandmaster_vorpil.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_Grandmaster_Vorpil
SD%Complete: 100
-SDComment:
+SDComment:
SDCategory: Auchindoun, Shadow Labyrinth
EndScriptData */
@@ -51,7 +51,7 @@ EndScriptData */
float VorpilPosition[3] = {-252.8820,-264.3030,17.1};
-float VoidPortalCoords[5][3] =
+float VoidPortalCoords[5][3] =
{
{-283.5894, -239.5718, 12.7},
{-306.5853, -258.4539, 12.7},
@@ -143,7 +143,7 @@ struct TRINITY_DLL_DECL boss_grandmaster_vorpilAI : public ScriptedAI
bool Intro, HelpYell;
bool sumportals;
bool HeroicMode;
-
+
uint32 ShadowBoltVolley_Timer;
uint32 DrawShadows_Timer;
uint32 summonTraveler_Timer;
@@ -288,7 +288,7 @@ struct TRINITY_DLL_DECL boss_grandmaster_vorpilAI : public ScriptedAI
DoCast(m_creature,HeroicMode?H_SPELL_RAIN_OF_FIRE:SPELL_RAIN_OF_FIRE);
ShadowBoltVolley_Timer = 6000;
- DrawShadows_Timer = 30000;
+ DrawShadows_Timer = 30000;
}else DrawShadows_Timer -= diff;
if ( summonTraveler_Timer < diff)
diff --git a/src/bindings/scripts/scripts/zone/aunchindoun/shadow_labyrinth/instance_shadow_labyrinth.cpp b/src/bindings/scripts/scripts/zone/aunchindoun/shadow_labyrinth/instance_shadow_labyrinth.cpp
index cbd8df9e649..155f1c0e443 100644
--- a/src/bindings/scripts/scripts/zone/aunchindoun/shadow_labyrinth/instance_shadow_labyrinth.cpp
+++ b/src/bindings/scripts/scripts/zone/aunchindoun/shadow_labyrinth/instance_shadow_labyrinth.cpp
@@ -104,21 +104,21 @@ struct TRINITY_DLL_DECL instance_shadow_labyrinth : public ScriptedInstance
return plr;
}
}
-
+
debug_log("SD2: Instance Shadow Labyrinth: GetPlayerInMap, but PlayerList is empty!");
return NULL;
}
-
+
void HandleGameObject(uint64 guid, uint32 state)
{
Player *player = GetPlayerInMap();
-
+
if (!player || !guid)
{
debug_log("SD2: Shadow Labyrinth: HandleGameObject fail");
return;
}
-
+
if (GameObject *go = GameObject::GetGameObject(*player,guid))
go->SetGoState(state);
}
@@ -166,20 +166,20 @@ struct TRINITY_DLL_DECL instance_shadow_labyrinth : public ScriptedInstance
Encounter[4] = data;
break;
}
-
+
if (data == DONE)
{
if (type == TYPE_OVERSEER && FelOverseerCount != 0)
return;
-
+
OUT_SAVE_INST_DATA;
std::ostringstream saveStream;
saveStream << Encounter[0] << " " << Encounter[1] << " "
<< Encounter[2] << " " << Encounter[3] << " " << Encounter[4];
-
+
str_data = saveStream.str();
-
+
SaveToDB();
OUT_SAVE_INST_DATA_COMPLETE;
}
@@ -209,7 +209,7 @@ struct TRINITY_DLL_DECL instance_shadow_labyrinth : public ScriptedInstance
{
return str_data.c_str();
}
-
+
void Load(const char* in)
{
if (!in)
@@ -217,16 +217,16 @@ struct TRINITY_DLL_DECL instance_shadow_labyrinth : public ScriptedInstance
OUT_LOAD_INST_DATA_FAIL;
return;
}
-
+
OUT_LOAD_INST_DATA(in);
std::istringstream loadStream(in);
loadStream >> Encounter[0] >> Encounter[1] >> Encounter[2] >> Encounter[3] >> Encounter[4];
-
+
for(uint8 i = 0; i < ENCOUNTERS; ++i)
if (Encounter[i] == IN_PROGRESS)
Encounter[i] = NOT_STARTED;
-
+
OUT_LOAD_INST_DATA_COMPLETE;
}
};
diff --git a/src/bindings/scripts/scripts/zone/azshara/azshara.cpp b/src/bindings/scripts/scripts/zone/azshara/azshara.cpp
index e3851ab3821..6f31b7d0f67 100644
--- a/src/bindings/scripts/scripts/zone/azshara/azshara.cpp
+++ b/src/bindings/scripts/scripts/zone/azshara/azshara.cpp
@@ -371,7 +371,7 @@ struct TRINITY_DLL_DECL mob_rizzle_sprysprocketAI : public ScriptedAI
}
void AttackStart(Unit *who)
- {
+ {
if (!who || PlayerGUID)
return;
@@ -447,7 +447,7 @@ struct TRINITY_DLL_DECL mob_depth_chargeAI : public ScriptedAI
we_must_die = false;
must_die_timer = 1000;
}
-
+
void UpdateAI(const uint32 diff)
{
if(we_must_die)
@@ -471,9 +471,9 @@ struct TRINITY_DLL_DECL mob_depth_chargeAI : public ScriptedAI
return;
}
}
-
+
void AttackStart(Unit *who)
- {
+ {
return;
}
diff --git a/src/bindings/scripts/scripts/zone/azshara/boss_azuregos.cpp b/src/bindings/scripts/scripts/zone/azshara/boss_azuregos.cpp
index f0fde3ffbe2..4ff46437e35 100644
--- a/src/bindings/scripts/scripts/zone/azshara/boss_azuregos.cpp
+++ b/src/bindings/scripts/scripts/zone/azshara/boss_azuregos.cpp
@@ -29,7 +29,7 @@ EndScriptData */
#define SPELL_MANASTORM 21097
#define SPELL_CHILL 21098
#define SPELL_FROSTBREATH 21099
-#define SPELL_REFLECT 22067
+#define SPELL_REFLECT 22067
#define SPELL_CLEAVE 8255 //Perhaps not right ID
#define SPELL_ENRAGE 23537
diff --git a/src/bindings/scripts/scripts/zone/azuremyst_isle/azuremyst_isle.cpp b/src/bindings/scripts/scripts/zone/azuremyst_isle/azuremyst_isle.cpp
index 2c1d2635a1d..94616ed555a 100644
--- a/src/bindings/scripts/scripts/zone/azuremyst_isle/azuremyst_isle.cpp
+++ b/src/bindings/scripts/scripts/zone/azuremyst_isle/azuremyst_isle.cpp
@@ -314,16 +314,16 @@ CreatureAI* GetAI_npc_injured_draenei(Creature *_Creature)
/*######
## npc_magwin
######*/
-
+
#define SAY_START -1000111
#define SAY_AGGRO -1000112
#define SAY_PROGRESS -1000113
#define SAY_END1 -1000114
#define SAY_END2 -1000115
#define EMOTE_HUG -1000116
-
+
#define QUEST_A_CRY_FOR_HELP 9528
-
+
struct TRINITY_DLL_DECL npc_magwinAI : public npc_escortAI
{
npc_magwinAI(Creature *c) : npc_escortAI(c) {Reset();}
@@ -332,7 +332,7 @@ struct TRINITY_DLL_DECL npc_magwinAI : public npc_escortAI
void WaypointReached(uint32 i)
{
Unit* player = Unit::GetUnit((*m_creature), PlayerGUID);
-
+
if (!player)
return;
@@ -355,7 +355,7 @@ struct TRINITY_DLL_DECL npc_magwinAI : public npc_escortAI
break;
}
}
-
+
void Aggro(Unit* who)
{
DoScriptText(SAY_AGGRO, m_creature, who);
@@ -376,7 +376,7 @@ struct TRINITY_DLL_DECL npc_magwinAI : public npc_escortAI
((Player*)player)->FailQuest(QUEST_A_CRY_FOR_HELP);
}
}
-
+
void UpdateAI(const uint32 diff)
{
npc_escortAI::UpdateAI(diff);
@@ -392,7 +392,7 @@ bool QuestAccept_npc_magwin(Player* player, Creature* creature, Quest const* que
}
return true;
}
-
+
CreatureAI* GetAI_npc_magwinAI(Creature *_Creature)
{
npc_magwinAI* magwinAI = new npc_magwinAI(_Creature);
@@ -495,7 +495,7 @@ struct TRINITY_DLL_DECL npc_geezleAI : public ScriptedAI
uint32 Step;
uint32 SayTimer;
-
+
bool EventStarted;
void Reset()
@@ -560,14 +560,14 @@ struct TRINITY_DLL_DECL npc_geezleAI : public ScriptedAI
Cell cell(pair);
cell.data.Part.reserved = ALL_DISTRICT;
cell.SetNoCreate();
-
+
Trinity::AllGameObjectsWithEntryInGrid go_check(GO_NAGA_FLAG);
Trinity::GameObjectListSearcher go_search(FlagList, go_check);
TypeContainerVisitor
, GridTypeMapContainer> go_visit(go_search);
CellLock cell_lock(cell, pair);
cell_lock->Visit(cell_lock, go_visit, *(m_creature->GetMap()));
-
+
Player* player = NULL;
if (!FlagList.empty())
{
diff --git a/src/bindings/scripts/scripts/zone/barrens/the_barrens.cpp b/src/bindings/scripts/scripts/zone/barrens/the_barrens.cpp
index 2cb282422a7..08fb76889da 100644
--- a/src/bindings/scripts/scripts/zone/barrens/the_barrens.cpp
+++ b/src/bindings/scripts/scripts/zone/barrens/the_barrens.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: The_Barrens
SD%Complete: 90
-SDComment: Quest support: 2458, 4921, 6981, 1719, 863
+SDComment: Quest support: 2458, 4921, 6981, 1719, 863
SDCategory: Barrens
EndScriptData */
@@ -218,7 +218,7 @@ struct TRINITY_DLL_DECL npc_twiggy_flatheadAI : public ScriptedAI
Wave = 0;
PlayerGUID = 0;
- for(uint8 i = 0; i < 6; ++i)
+ for(uint8 i = 0; i < 6; ++i)
{
AffrayChallenger[i] = 0;
Challenger_down[i] = false;
@@ -257,13 +257,13 @@ struct TRINITY_DLL_DECL npc_twiggy_flatheadAI : public ScriptedAI
DoScriptText(SAY_TWIGGY_FLATHEAD_DOWN, m_creature);
pWarrior->FailQuest(1719);
- for(uint8 i = 0; i < 6; ++i)
+ for(uint8 i = 0; i < 6; ++i)
{
- if (AffrayChallenger[i])
+ if (AffrayChallenger[i])
{
Creature* pCreature = (Creature*)Unit::GetUnit((*m_creature), AffrayChallenger[i]);
if(pCreature) {
- if(pCreature->isAlive())
+ if(pCreature->isAlive())
{
pCreature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IN_COMBAT);
pCreature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
@@ -275,7 +275,7 @@ struct TRINITY_DLL_DECL npc_twiggy_flatheadAI : public ScriptedAI
Challenger_down[i] = false;
}
- if (BigWill)
+ if (BigWill)
{
Creature* pCreature = (Creature*)Unit::GetUnit((*m_creature), BigWill);
if(pCreature) {
@@ -289,7 +289,7 @@ struct TRINITY_DLL_DECL npc_twiggy_flatheadAI : public ScriptedAI
BigWill = 0;
}
- if (!EventGrate && EventInProgress)
+ if (!EventGrate && EventInProgress)
{
float x,y,z;
pWarrior->GetPosition(x, y, z);
@@ -298,7 +298,7 @@ struct TRINITY_DLL_DECL npc_twiggy_flatheadAI : public ScriptedAI
pWarrior->AreaExploredOrEventHappens(1719);
DoScriptText(SAY_TWIGGY_FLATHEAD_BEGIN, m_creature);
- for(uint8 i = 0; i < 6; ++i)
+ for(uint8 i = 0; i < 6; ++i)
{
Creature* pCreature = m_creature->SummonCreature(AFFRAY_CHALLENGER, AffrayChallengerLoc[i][0], AffrayChallengerLoc[i][1], AffrayChallengerLoc[i][2], AffrayChallengerLoc[i][3], TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 600000);
if(!pCreature)
@@ -314,16 +314,16 @@ struct TRINITY_DLL_DECL npc_twiggy_flatheadAI : public ScriptedAI
EventGrate = true;
}
}
- else if (EventInProgress)
+ else if (EventInProgress)
{
- if (Challenger_checker < diff)
+ if (Challenger_checker < diff)
{
- for(uint8 i = 0; i < 6; ++i)
+ for(uint8 i = 0; i < 6; ++i)
{
- if (AffrayChallenger[i])
+ if (AffrayChallenger[i])
{
Creature* pCreature = (Creature*)Unit::GetUnit((*m_creature), AffrayChallenger[i]);
- if((!pCreature || (!pCreature->isAlive())) && !Challenger_down[i])
+ if((!pCreature || (!pCreature->isAlive())) && !Challenger_down[i])
{
DoScriptText(SAY_TWIGGY_FLATHEAD_DOWN, m_creature);
Challenger_down[i] = true;
@@ -333,13 +333,13 @@ struct TRINITY_DLL_DECL npc_twiggy_flatheadAI : public ScriptedAI
Challenger_checker = 1000;
} else Challenger_checker -= diff;
- if(Wave_Timer < diff)
+ if(Wave_Timer < diff)
{
- if (AffrayChallenger[Wave] && Wave < 6 && !EventBigWill)
+ if (AffrayChallenger[Wave] && Wave < 6 && !EventBigWill)
{
DoScriptText(SAY_TWIGGY_FLATHEAD_FRAY, m_creature);
Creature* pCreature = (Creature*)Unit::GetUnit((*m_creature), AffrayChallenger[Wave]);
- if(pCreature && (pCreature->isAlive()))
+ if(pCreature && (pCreature->isAlive()))
{
pCreature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
pCreature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
@@ -363,10 +363,10 @@ struct TRINITY_DLL_DECL npc_twiggy_flatheadAI : public ScriptedAI
Wave_Timer = 1000;
}
}
- else if (Wave >= 6 && EventBigWill && BigWill)
+ else if (Wave >= 6 && EventBigWill && BigWill)
{
Creature* pCreature = (Creature*)Unit::GetUnit((*m_creature), BigWill);
- if (!pCreature || !pCreature->isAlive())
+ if (!pCreature || !pCreature->isAlive())
{
DoScriptText(SAY_TWIGGY_FLATHEAD_OVER, m_creature);
EventInProgress = false;
@@ -445,7 +445,7 @@ struct TRINITY_DLL_DECL npc_wizzlecrank_shredderAI : public npc_escortAI
Completed = true;
if (player && player->GetTypeId() == TYPEID_PLAYER)
((Player*)player)->GroupEventHappens(QUEST_ESCAPE, m_creature);
- break;
+ break;
}
}
diff --git a/src/bindings/scripts/scripts/zone/black_temple/boss_bloodboil.cpp b/src/bindings/scripts/scripts/zone/black_temple/boss_bloodboil.cpp
index 8ec0f7c0d1b..29b625dcaf6 100644
--- a/src/bindings/scripts/scripts/zone/black_temple/boss_bloodboil.cpp
+++ b/src/bindings/scripts/scripts/zone/black_temple/boss_bloodboil.cpp
@@ -145,7 +145,7 @@ struct TRINITY_DLL_DECL boss_gurtogg_bloodboilAI : public ScriptedAI
std::list m_threatlist = m_creature->getThreatManager().getThreatList();
if(!m_threatlist.size()) // He doesn't have anyone in his threatlist, useless to continue
- return;
+ return;
std::list targets;
std::list::iterator itr = m_threatlist.begin();
diff --git a/src/bindings/scripts/scripts/zone/black_temple/boss_illidan.cpp b/src/bindings/scripts/scripts/zone/black_temple/boss_illidan.cpp
index 16200052630..da50249b920 100644
--- a/src/bindings/scripts/scripts/zone/black_temple/boss_illidan.cpp
+++ b/src/bindings/scripts/scripts/zone/black_temple/boss_illidan.cpp
@@ -130,7 +130,7 @@ EndScriptData */
#define SPELL_FAN_BLADES 39954 // bugged visual
// Other defines
-#define CENTER_X 676.740
+#define CENTER_X 676.740
#define CENTER_Y 305.297
#define CENTER_Z 353.192
@@ -246,7 +246,7 @@ struct Yells
static Yells Conversation[]=
{
{11463, "Akama... your duplicity is hardly surprising. I should have slaughtered you and your malformed brethren long ago.", ILLIDAN_STORMRAGE, 8000, 0, true},
- {0, NULL, ILLIDAN_STORMRAGE, 5000, 396, true},
+ {0, NULL, ILLIDAN_STORMRAGE, 5000, 396, true},
{11389, "We've come to end your reign, Illidan. My people and all of Outland shall be free!", AKAMA, 7000, 25, true},
{0, NULL, AKAMA, 5000, 66, true},
{11464, "Boldly said. But I remain unconvinced.", ILLIDAN_STORMRAGE, 8000, 396, true},
@@ -423,7 +423,7 @@ struct TRINITY_DLL_DECL boss_illidan_stormrageAI : public ScriptedAI
EnterPhase(PHASE_FLIGHT);
}
else // handle flight sequence
- Timer[EVENT_FLIGHT_SEQUENCE] = 1000;
+ Timer[EVENT_FLIGHT_SEQUENCE] = 1000;
}
void Aggro(Unit *who)
@@ -688,7 +688,7 @@ struct TRINITY_DLL_DECL boss_illidan_stormrageAI : public ScriptedAI
break;
}
if(Phase == PHASE_TRANSFORM_SEQUENCE)
- Timer[EVENT_TRANSFORM_SEQUENCE] = DemonTransformation[TransformCount].timer;
+ Timer[EVENT_TRANSFORM_SEQUENCE] = DemonTransformation[TransformCount].timer;
TransformCount++;
}
@@ -793,7 +793,7 @@ struct TRINITY_DLL_DECL boss_illidan_stormrageAI : public ScriptedAI
case EVENT_DRAW_SOUL:
DoCast(m_creature->getVictim(), SPELL_DRAW_SOUL);
- Timer[EVENT_DRAW_SOUL] = 50000 + rand()%10000;
+ Timer[EVENT_DRAW_SOUL] = 50000 + rand()%10000;
break;
//PHASE_NORMAL_2
@@ -833,7 +833,7 @@ struct TRINITY_DLL_DECL boss_illidan_stormrageAI : public ScriptedAI
break;
case EVENT_EYE_BLAST:
- CastEyeBlast();
+ CastEyeBlast();
Timer[EVENT_EYE_BLAST] = 0;
break;
@@ -903,7 +903,7 @@ struct TRINITY_DLL_DECL flame_of_azzinothAI : public ScriptedAI
void Aggro(Unit *who) {DoZoneInCombat();}
void ChargeCheck()
- {
+ {
Unit* target = SelectUnit(SELECT_TARGET_FARTHEST, 0, 200, false);
if(target && (!m_creature->IsWithinCombatRange(target, FLAME_CHARGE_DISTANCE)))
{
@@ -1494,7 +1494,7 @@ struct TRINITY_DLL_DECL boss_maievAI : public ScriptedAI
void UpdateAI(const uint32 diff)
{
- if((!UpdateVictim())
+ if((!UpdateVictim())
&& !Timer[EVENT_MAIEV_STEALTH])
return;
@@ -1728,7 +1728,7 @@ struct TRINITY_DLL_DECL mob_parasitic_shadowfiendAI : public ScriptedAI
uint32 CheckTimer;
void Reset()
- {
+ {
if(pInstance)
IllidanGUID = pInstance->GetData64(DATA_ILLIDANSTORMRAGE);
else
@@ -1744,7 +1744,7 @@ struct TRINITY_DLL_DECL mob_parasitic_shadowfiendAI : public ScriptedAI
{
if( m_creature->isAttackReady() && m_creature->IsWithinMeleeRange(m_creature->getVictim()))
{
- if(!m_creature->getVictim()->HasAura(SPELL_PARASITIC_SHADOWFIEND, 0)
+ if(!m_creature->getVictim()->HasAura(SPELL_PARASITIC_SHADOWFIEND, 0)
&& !m_creature->getVictim()->HasAura(SPELL_PARASITIC_SHADOWFIEND2, 0))
{
m_creature->CastSpell(m_creature->getVictim(), SPELL_PARASITIC_SHADOWFIEND2, true, 0, 0, IllidanGUID); //do not stack
diff --git a/src/bindings/scripts/scripts/zone/black_temple/boss_reliquary_of_souls.cpp b/src/bindings/scripts/scripts/zone/black_temple/boss_reliquary_of_souls.cpp
index 6a9cd6bc7b8..af712a9bfd0 100644
--- a/src/bindings/scripts/scripts/zone/black_temple/boss_reliquary_of_souls.cpp
+++ b/src/bindings/scripts/scripts/zone/black_temple/boss_reliquary_of_souls.cpp
@@ -58,7 +58,7 @@ EndScriptData */
#define AURA_OF_SUFFERING 41292
#define AURA_OF_SUFFERING_ARMOR 42017 // linked aura, need core support
#define ESSENCE_OF_SUFFERING_PASSIVE 41296 // periodic trigger 41294
-#define ESSENCE_OF_SUFFERING_PASSIVE2 41623
+#define ESSENCE_OF_SUFFERING_PASSIVE2 41623
#define SPELL_FIXATE_TARGET 41294 // dummy, select target
#define SPELL_FIXATE_TAUNT 41295 // force taunt
#define SPELL_ENRAGE 41305
@@ -117,7 +117,7 @@ struct TRINITY_DLL_DECL npc_enslaved_soulAI : public ScriptedAI
struct TRINITY_DLL_DECL boss_reliquary_of_soulsAI : public ScriptedAI
{
- boss_reliquary_of_soulsAI(Creature *c) : ScriptedAI(c)
+ boss_reliquary_of_soulsAI(Creature *c) : ScriptedAI(c)
{
pInstance = ((ScriptedInstance*)c->GetInstanceData());
EssenceGUID = 0;
@@ -282,7 +282,7 @@ struct TRINITY_DLL_DECL boss_reliquary_of_soulsAI : public ScriptedAI
EssenceGUID = 0;
SoulCount = 0;
SoulDeathCount = 0;
- Timer = 3000;
+ Timer = 3000;
break;
case 6:
if(SoulCount < NUMBER_ENSLAVED_SOUL)
@@ -467,7 +467,7 @@ struct TRINITY_DLL_DECL boss_essence_of_desireAI : public ScriptedAI
if(m_creature->m_currentSpells[CURRENT_GENERIC_SPELL])
for(uint8 i = 0; i < 3; ++i)
if(spell->Effect[i] == SPELL_EFFECT_INTERRUPT_CAST)
- if(m_creature->m_currentSpells[CURRENT_GENERIC_SPELL]->m_spellInfo->Id == SPELL_SOUL_SHOCK
+ if(m_creature->m_currentSpells[CURRENT_GENERIC_SPELL]->m_spellInfo->Id == SPELL_SOUL_SHOCK
|| m_creature->m_currentSpells[CURRENT_GENERIC_SPELL]->m_spellInfo->Id == SPELL_DEADEN)
m_creature->InterruptSpell(CURRENT_GENERIC_SPELL, false);
}
@@ -483,9 +483,9 @@ struct TRINITY_DLL_DECL boss_essence_of_desireAI : public ScriptedAI
{
switch(rand()%3)
{
- case 0: DoScriptText(DESI_SAY_SLAY1, m_creature); break;
- case 1: DoScriptText(DESI_SAY_SLAY2, m_creature); break;
- case 2: DoScriptText(DESI_SAY_SLAY3, m_creature); break;
+ case 0: DoScriptText(DESI_SAY_SLAY1, m_creature); break;
+ case 1: DoScriptText(DESI_SAY_SLAY2, m_creature); break;
+ case 2: DoScriptText(DESI_SAY_SLAY3, m_creature); break;
}
}
@@ -572,8 +572,8 @@ struct TRINITY_DLL_DECL boss_essence_of_angerAI : public ScriptedAI
{
switch(rand()%2)
{
- case 0: DoScriptText(ANGER_SAY_SLAY1, m_creature); break;
- case 1: DoScriptText(ANGER_SAY_SLAY2, m_creature); break;
+ case 0: DoScriptText(ANGER_SAY_SLAY1, m_creature); break;
+ case 1: DoScriptText(ANGER_SAY_SLAY2, m_creature); break;
}
}
@@ -592,7 +592,7 @@ struct TRINITY_DLL_DECL boss_essence_of_angerAI : public ScriptedAI
if(CheckTankTimer < diff)
{
if(m_creature->getVictim()->GetGUID() != AggroTargetGUID)
- {
+ {
DoScriptText(ANGER_SAY_BEFORE, m_creature);
DoCast(m_creature, SPELL_SELF_SEETHE, true);
AggroTargetGUID = m_creature->getVictim()->GetGUID();
diff --git a/src/bindings/scripts/scripts/zone/black_temple/boss_supremus.cpp b/src/bindings/scripts/scripts/zone/black_temple/boss_supremus.cpp
index 954d66c9d82..ae3955ac6e2 100644
--- a/src/bindings/scripts/scripts/zone/black_temple/boss_supremus.cpp
+++ b/src/bindings/scripts/scripts/zone/black_temple/boss_supremus.cpp
@@ -236,23 +236,23 @@ struct TRINITY_DLL_DECL npc_volcanoAI : public ScriptedAI
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
}
-
+
ScriptedInstance *pInstance;
-
+
uint32 CheckTimer;
bool Eruption;
-
+
void Reset()
{
CheckTimer = 1500;
Eruption = false;
-
+
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
}
-
+
void Aggro(Unit *who) {}
-
+
void MoveInLineOfSight(Unit *who)
{
return; // paralyze the npc
@@ -263,7 +263,7 @@ struct TRINITY_DLL_DECL npc_volcanoAI : public ScriptedAI
if(CheckTimer < diff)
{
uint64 SupremusGUID = pInstance->GetData64(DATA_SUPREMUS);
- Creature* Supremus = ((Creature*)Unit::GetUnit((*m_creature), SupremusGUID));
+ Creature* Supremus = ((Creature*)Unit::GetUnit((*m_creature), SupremusGUID));
if(!Eruption && !((boss_supremusAI*)Supremus->AI())->Phase1)
{
Eruption = true;
diff --git a/src/bindings/scripts/scripts/zone/black_temple/boss_teron_gorefiend.cpp b/src/bindings/scripts/scripts/zone/black_temple/boss_teron_gorefiend.cpp
index 69afd23f888..d691407b91c 100644
--- a/src/bindings/scripts/scripts/zone/black_temple/boss_teron_gorefiend.cpp
+++ b/src/bindings/scripts/scripts/zone/black_temple/boss_teron_gorefiend.cpp
@@ -142,7 +142,7 @@ struct TRINITY_DLL_DECL mob_shadowy_constructAI : public ScriptedAI
{
if(!who || (!who->isAlive()) || (who->GetGUID() == GhostGUID))
return;
-
+
ScriptedAI::MoveInLineOfSight(who);
}
@@ -381,7 +381,7 @@ struct TRINITY_DLL_DECL boss_teron_gorefiendAI : public ScriptedAI
if(AggroTargetGUID)
{
Unit* pUnit = Unit::GetUnit((*m_creature), AggroTargetGUID);
- if(pUnit)
+ if(pUnit)
AttackStart(pUnit);
DoZoneInCombat();
diff --git a/src/bindings/scripts/scripts/zone/black_temple/boss_warlord_najentus.cpp b/src/bindings/scripts/scripts/zone/black_temple/boss_warlord_najentus.cpp
index 427ddbda2cb..d04ce294b22 100644
--- a/src/bindings/scripts/scripts/zone/black_temple/boss_warlord_najentus.cpp
+++ b/src/bindings/scripts/scripts/zone/black_temple/boss_warlord_najentus.cpp
@@ -48,7 +48,7 @@ EndScriptData */
struct TRINITY_DLL_DECL boss_najentusAI : public ScriptedAI
{
- boss_najentusAI(Creature *c) : ScriptedAI(c)
+ boss_najentusAI(Creature *c) : ScriptedAI(c)
{
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
diff --git a/src/bindings/scripts/scripts/zone/black_temple/illidari_council.cpp b/src/bindings/scripts/scripts/zone/black_temple/illidari_council.cpp
index 1fd53ec2cd7..18acc17322c 100644
--- a/src/bindings/scripts/scripts/zone/black_temple/illidari_council.cpp
+++ b/src/bindings/scripts/scripts/zone/black_temple/illidari_council.cpp
@@ -30,33 +30,33 @@ EndScriptData */
#define SAY_GATH_DEATH -1564093
#define SAY_GATH_SPECIAL1 -1564077
#define SAY_GATH_SPECIAL2 -1564081
-
+
#define SAY_VERA_SLAY -1564086
#define SAY_VERA_COMNT -1564089
#define SAY_VERA_DEATH -1564094
#define SAY_VERA_SPECIAL1 -1564078
#define SAY_VERA_SPECIAL2 -1564082
-
+
#define SAY_MALA_SLAY -1564087
#define SAY_MALA_COMNT -1564090
#define SAY_MALA_DEATH -1564095
#define SAY_MALA_SPECIAL1 -1564079
#define SAY_MALA_SPECIAL2 -1564083
-
+
#define SAY_ZERE_SLAY -1564088
#define SAY_ZERE_COMNT -1564091
#define SAY_ZERE_DEATH -1564096
#define SAY_ZERE_SPECIAL1 -1564080
#define SAY_ZERE_SPECIAL2 -1564084
-
+
#define ERROR_INST_DATA "SD2 ERROR: Instance Data for Black Temple not set properly; Illidari Council event will not function properly."
-
+
struct CouncilYells
{
int32 entry;
uint32 timer;
};
-
+
static CouncilYells CouncilAggro[]=
{
{-1564069, 5000}, // Gathios
@@ -64,7 +64,7 @@ static CouncilYells CouncilAggro[]=
{-1564071, 5000}, // Malande
{-1564072, 0}, // Zerevor
};
-
+
// Need to get proper timers for this later
static CouncilYells CouncilEnrage[]=
{
@@ -456,7 +456,7 @@ struct TRINITY_DLL_DECL boss_gathios_the_shattererAI : public boss_illidari_coun
void JustDied(Unit *victim)
{
- DoScriptText(SAY_GATH_DEATH, m_creature);
+ DoScriptText(SAY_GATH_DEATH, m_creature);
}
Unit* SelectCouncilMember()
@@ -568,12 +568,12 @@ struct TRINITY_DLL_DECL boss_high_nethermancer_zerevorAI : public boss_illidari_
void KilledUnit(Unit *victim)
{
- DoScriptText(SAY_ZERE_SLAY, m_creature);
+ DoScriptText(SAY_ZERE_SLAY, m_creature);
}
void JustDied(Unit *victim)
{
- DoScriptText(SAY_ZERE_DEATH, m_creature);
+ DoScriptText(SAY_ZERE_DEATH, m_creature);
}
void UpdateAI(const uint32 diff)
@@ -656,12 +656,12 @@ struct TRINITY_DLL_DECL boss_lady_malandeAI : public boss_illidari_councilAI
void KilledUnit(Unit *victim)
{
- DoScriptText(SAY_MALA_SLAY, m_creature);
+ DoScriptText(SAY_MALA_SLAY, m_creature);
}
void JustDied(Unit *victim)
{
- DoScriptText(SAY_MALA_DEATH, m_creature);
+ DoScriptText(SAY_MALA_DEATH, m_creature);
}
void UpdateAI(const uint32 diff)
@@ -730,7 +730,7 @@ struct TRINITY_DLL_DECL boss_veras_darkshadowAI : public boss_illidari_councilAI
void KilledUnit(Unit *victim)
{
- DoScriptText(SAY_VERA_SLAY, m_creature);
+ DoScriptText(SAY_VERA_SLAY, m_creature);
}
void JustDied(Unit *victim)
diff --git a/src/bindings/scripts/scripts/zone/black_temple/instance_black_temple.cpp b/src/bindings/scripts/scripts/zone/black_temple/instance_black_temple.cpp
index 2f1a456fb35..564958924b2 100644
--- a/src/bindings/scripts/scripts/zone/black_temple/instance_black_temple.cpp
+++ b/src/bindings/scripts/scripts/zone/black_temple/instance_black_temple.cpp
@@ -124,7 +124,7 @@ struct TRINITY_DLL_DECL instance_black_temple : public ScriptedInstance
return plr;
}
}
-
+
debug_log("TSCR: Instance Black Temple: GetPlayerInMap, but PlayerList is empty!");
return NULL;
}
@@ -132,13 +132,13 @@ struct TRINITY_DLL_DECL instance_black_temple : public ScriptedInstance
void HandleGameObject(uint64 guid, uint32 state)
{
Player *player = GetPlayerInMap();
-
+
if (!player || !guid)
{
debug_log("TSCR: Black Temple: HandleGameObject fail");
return;
}
-
+
if (GameObject *go = GameObject::GetGameObject(*player,guid))
go->SetGoState(state);
}
@@ -224,13 +224,13 @@ struct TRINITY_DLL_DECL instance_black_temple : public ScriptedInstance
HandleGameObject(NajentusGate, 0);
}
Encounters[1] = data; break;
- case DATA_SHADEOFAKAMAEVENT:
+ case DATA_SHADEOFAKAMAEVENT:
if(data == IN_PROGRESS)
{
HandleGameObject(ShadeOfAkamaDoor, 1);
}else HandleGameObject(ShadeOfAkamaDoor, 0);
Encounters[2] = data; break;
- case DATA_TERONGOREFIENDEVENT:
+ case DATA_TERONGOREFIENDEVENT:
if(data == IN_PROGRESS)
{
HandleGameObject(TeronDoor, 1);
@@ -247,13 +247,13 @@ struct TRINITY_DLL_DECL instance_black_temple : public ScriptedInstance
HandleGameObject(GuurtogDoor, 0);
}
Encounters[4] = data; break;
- case DATA_RELIQUARYOFSOULSEVENT:
+ case DATA_RELIQUARYOFSOULSEVENT:
if(data == DONE)
{
HandleGameObject(TempleDoor, 0);
}
Encounters[5] = data; break;
- case DATA_MOTHERSHAHRAZEVENT:
+ case DATA_MOTHERSHAHRAZEVENT:
if(data == DONE)
{
HandleGameObject(MotherDoor, 0);
@@ -274,15 +274,15 @@ struct TRINITY_DLL_DECL instance_black_temple : public ScriptedInstance
}
if (data == DONE)
- {
+ {
OUT_SAVE_INST_DATA;
std::ostringstream saveStream;
saveStream << Encounters[0] << " " << Encounters[1] << " "
- << Encounters[2] << " " << Encounters[3] << " " << Encounters[4]
+ << Encounters[2] << " " << Encounters[3] << " " << Encounters[4]
<< " " << Encounters[5] << " " << Encounters[6] << " " << Encounters[7]
<< " " << Encounters[8];
-
+
str_data = saveStream.str();
SaveToDB();
@@ -312,7 +312,7 @@ struct TRINITY_DLL_DECL instance_black_temple : public ScriptedInstance
{
return str_data.c_str();
}
-
+
void Load(const char* in)
{
if (!in)
@@ -320,18 +320,18 @@ struct TRINITY_DLL_DECL instance_black_temple : public ScriptedInstance
OUT_LOAD_INST_DATA_FAIL;
return;
}
-
+
OUT_LOAD_INST_DATA(in);
std::istringstream loadStream(in);
- loadStream >> Encounters[0] >> Encounters[1] >> Encounters[2]
- >> Encounters[3] >> Encounters[4] >> Encounters[5] >> Encounters[6]
+ loadStream >> Encounters[0] >> Encounters[1] >> Encounters[2]
+ >> Encounters[3] >> Encounters[4] >> Encounters[5] >> Encounters[6]
>> Encounters[7] >> Encounters[8];
-
+
for(uint8 i = 0; i < ENCOUNTERS; ++i)
if (Encounters[i] == IN_PROGRESS)
Encounters[i] = NOT_STARTED;
-
+
OUT_LOAD_INST_DATA_COMPLETE;
}
};
diff --git a/src/bindings/scripts/scripts/zone/blackrock_depths/blackrock_depths.cpp b/src/bindings/scripts/scripts/zone/blackrock_depths/blackrock_depths.cpp
index 7c5ff1e942f..75818bca575 100644
--- a/src/bindings/scripts/scripts/zone/blackrock_depths/blackrock_depths.cpp
+++ b/src/bindings/scripts/scripts/zone/blackrock_depths/blackrock_depths.cpp
@@ -40,10 +40,10 @@ EndContentData */
#define C_GRIMSTONE 10096
#define C_THELDREN 16059
-
+
//4 or 6 in total? 1+2+1 / 2+2+2 / 3+3. Depending on this, code should be changed.
#define MOB_AMOUNT 4
-
+
uint32 RingMob[]=
{
8925, // Dredge Worm
@@ -53,7 +53,7 @@ uint32 RingMob[]=
8933, // Cave Creeper
8932, // Borer Beetle
};
-
+
uint32 RingBoss[]=
{
9027, // Gorosh
@@ -63,7 +63,7 @@ uint32 RingBoss[]=
9031, // Anub'shiah
9032, // Hedrum
};
-
+
float RingLocations[6][3]=
{
{604.802673, -191.081985, -54.058590}, // ring
@@ -73,16 +73,16 @@ float RingLocations[6][3]=
{631.818359, -180.548126, -52.654770}, // second gate
{627.390381, -201.075974, -52.692917} // hiding in corner
};
-
+
bool AreaTrigger_at_ring_of_law(Player *player, AreaTriggerEntry *at)
{
ScriptedInstance* pInstance = ((ScriptedInstance*)player->GetInstanceData());
-
+
if (pInstance)
{
if (pInstance->GetData(TYPE_RING_OF_LAW) == IN_PROGRESS || pInstance->GetData(TYPE_RING_OF_LAW) == DONE)
return false;
-
+
pInstance->SetData(TYPE_RING_OF_LAW,IN_PROGRESS);
player->SummonCreature(C_GRIMSTONE,625.559,-205.618,-52.735,2.609,TEMPSUMMON_DEAD_DESPAWN,0);
@@ -90,11 +90,11 @@ bool AreaTrigger_at_ring_of_law(Player *player, AreaTriggerEntry *at)
}
return false;
}
-
+
/*######
## npc_grimstone
######*/
-
+
//TODO: implement quest part of event (different end boss)
struct TRINITY_DLL_DECL npc_grimstoneAI : public npc_escortAI
{
@@ -106,68 +106,68 @@ struct TRINITY_DLL_DECL npc_grimstoneAI : public npc_escortAI
}
ScriptedInstance* pInstance;
-
+
uint8 EventPhase;
uint32 Event_Timer;
-
+
uint8 MobSpawnId;
uint8 MobCount;
uint32 MobDeath_Timer;
uint64 RingMobGUID[4];
uint64 RingBossGUID;
-
+
bool CanWalk;
-
+
void Reset()
{
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
-
+
EventPhase = 0;
Event_Timer = 1000;
-
+
MobCount = 0;
MobDeath_Timer = 0;
-
+
for(uint8 i = 0; i < MOB_AMOUNT; i++)
RingMobGUID[i] = 0;
-
+
RingBossGUID = 0;
-
+
CanWalk = false;
}
void Aggro(Unit *who) { }
-
+
void DoGate(uint32 id, uint32 state)
{
if (GameObject *go = GameObject::GetGameObject(*m_creature,pInstance->GetData64(id)))
go->SetGoState(state);
-
+
debug_log("SD2: npc_grimstone, arena gate update state.");
}
-
+
//TODO: move them to center
void SummonRingMob()
{
if (Creature* tmp = m_creature->SummonCreature(RingMob[MobSpawnId],608.960,-235.322,-53.907,1.857,TEMPSUMMON_DEAD_DESPAWN,0))
RingMobGUID[MobCount] = tmp->GetGUID();
-
+
++MobCount;
-
+
if (MobCount == MOB_AMOUNT)
MobDeath_Timer = 2500;
}
-
+
//TODO: move them to center
void SummonRingBoss()
{
if (Creature* tmp = m_creature->SummonCreature(RingBoss[rand()%6],644.300,-175.989,-53.739,3.418,TEMPSUMMON_DEAD_DESPAWN,0))
RingBossGUID = tmp->GetGUID();
-
+
MobDeath_Timer = 2500;
}
-
+
void WaypointReached(uint32 i)
{
switch(i)
@@ -202,7 +202,7 @@ struct TRINITY_DLL_DECL npc_grimstoneAI : public npc_escortAI
break;
}
}
-
+
void UpdateAI(const uint32 diff)
{
if (!pInstance)
@@ -226,7 +226,7 @@ struct TRINITY_DLL_DECL npc_grimstoneAI : public npc_escortAI
}
return;
}
-
+
for(uint8 i = 0; i < MOB_AMOUNT; i++)
{
Creature *mob = (Creature*)Unit::GetUnit(*m_creature,RingMobGUID[i]);
@@ -245,7 +245,7 @@ struct TRINITY_DLL_DECL npc_grimstoneAI : public npc_escortAI
}
}else MobDeath_Timer -= diff;
}
-
+
if (Event_Timer)
{
if (Event_Timer <= diff)
@@ -313,21 +313,21 @@ struct TRINITY_DLL_DECL npc_grimstoneAI : public npc_escortAI
++EventPhase;
}else Event_Timer -= diff;
}
-
+
if (CanWalk)
npc_escortAI::UpdateAI(diff);
}
};
-
+
CreatureAI* GetAI_npc_grimstone(Creature *_Creature)
{
npc_grimstoneAI* Grimstone_AI = new npc_grimstoneAI(_Creature);
for(uint8 i = 0; i < 6; ++i)
Grimstone_AI->AddWaypoint(i, RingLocations[i][0], RingLocations[i][1], RingLocations[i][2]);
-
+
return (CreatureAI*)Grimstone_AI;
-
+
}
/*######
@@ -404,7 +404,7 @@ CreatureAI* GetAI_mob_phalanx(Creature *_Creature)
#define GOSSIP_ITEM_KHARAN_1 "I need to know where the princess are, Kharan!"
#define GOSSIP_ITEM_KHARAN_2 "All is not lost, Kharan!"
-
+
#define GOSSIP_ITEM_KHARAN_3 "Gor'shak is my friend, you can trust me."
#define GOSSIP_ITEM_KHARAN_4 "Not enough, you need to tell me more."
#define GOSSIP_ITEM_KHARAN_5 "So what happened?"
@@ -523,9 +523,9 @@ bool GossipSelect_npc_lokhtos_darkbargainer(Player *player, Creature *_Creature,
player->CLOSE_GOSSIP_MENU();
player->CastSpell(player, SPELL_CREATE_THORIUM_BROTHERHOOD_CONTRACT_DND, false);
}
- if (action == GOSSIP_ACTION_TRADE)
+ if (action == GOSSIP_ACTION_TRADE)
player->SEND_VENDORLIST( _Creature->GetGUID() );
-
+
return true;
}
@@ -591,7 +591,7 @@ struct TRINITY_DLL_DECL npc_dughal_stormwingAI : public npc_escortAI
}
};
CreatureAI* GetAI_npc_dughal_stormwing(Creature *_Creature)
-{
+{
npc_dughal_stormwingAI* dughal_stormwingAI = new npc_dughal_stormwingAI(_Creature);
dughal_stormwingAI->AddWaypoint(0, 280.42,-82.86, -77.12,0);
@@ -635,18 +635,18 @@ bool GossipSelect_npc_dughal_stormwing(Player *player, Creature *_Creature, uint
#define SAY_WINDSOR_4_3 "Good work! We're almost there, $N. This way."
#define SAY_WINDSOR_6 "This is it, $N. My stuff should be in that room. Cover me, I'm going in!"
#define SAY_WINDSOR_9 "Ah, there it is!"
-#define MOB_ENTRY_REGINALD_WINDSOR 9682
+#define MOB_ENTRY_REGINALD_WINDSOR 9682
Player* PlayerStart;
/*
struct TRINITY_DLL_DECL npc_marshal_windsorAI : public npc_escortAI
{
- npc_marshal_windsorAI(Creature *c) : npc_escortAI(c)
- {
+ npc_marshal_windsorAI(Creature *c) : npc_escortAI(c)
+ {
pInstance = ((ScriptedInstance*)c->GetInstanceData());
- Reset();
+ Reset();
}
-
+
void WaypointReached(uint32 i)
{
switch( i )
@@ -674,9 +674,9 @@ struct TRINITY_DLL_DECL npc_marshal_windsorAI : public npc_escortAI
m_creature->setFaction(11);
break;
case 16:
- m_creature->Say(SAY_WINDSOR_9, LANG_UNIVERSAL, PlayerGUID);
+ m_creature->Say(SAY_WINDSOR_9, LANG_UNIVERSAL, PlayerGUID);
break;
- case 17:
+ case 17:
m_creature->HandleEmoteCommand(EMOTE_STATE_USESTANDING);//EMOTE_STATE_WORK
break;
case 18:
@@ -692,7 +692,7 @@ struct TRINITY_DLL_DECL npc_marshal_windsorAI : public npc_escortAI
}
}
- void Aggro(Unit* who)
+ void Aggro(Unit* who)
{
switch(rand()%3)
{
@@ -716,9 +716,9 @@ struct TRINITY_DLL_DECL npc_marshal_windsorAI : public npc_escortAI
IsOnHold = false;
if(!pInstance->GetData(DATA_GATE_D) && pInstance->GetData(DATA_DUGHAL) == ENCOUNTER_STATE_NOT_STARTED )
{
- m_creature->Say(SAY_WINDSOR_4_2, LANG_UNIVERSAL, PlayerGUID);
+ m_creature->Say(SAY_WINDSOR_4_2, LANG_UNIVERSAL, PlayerGUID);
pInstance->SetData(DATA_DUGHAL, ENCOUNTER_STATE_BEFORE_START);
- }
+ }
if( pInstance->GetData(DATA_DUGHAL) == ENCOUNTER_STATE_OBJECTIVE_COMPLETED )
{
m_creature->Say(SAY_WINDSOR_4_3, LANG_UNIVERSAL, PlayerGUID);
@@ -740,7 +740,7 @@ struct TRINITY_DLL_DECL npc_marshal_windsorAI : public npc_escortAI
}
};
CreatureAI* GetAI_npc_marshal_windsor(Creature *_Creature)
-{
+{
npc_marshal_windsorAI* marshal_windsorAI = new npc_marshal_windsorAI(_Creature);
marshal_windsorAI->AddWaypoint(0, 316.336,-225.528, -77.7258,7000);
@@ -769,13 +769,13 @@ CreatureAI* GetAI_npc_marshal_windsor(Creature *_Creature)
bool QuestAccept_npc_marshal_windsor(Player *player, Creature *creature, Quest const *quest )
{
- if( quest->GetQuestId() == 4322 )
+ if( quest->GetQuestId() == 4322 )
{PlayerStart = player;
if( pInstance->GetData(DATA_QUEST_JAIL_BREAK) == ENCOUNTER_STATE_NOT_STARTED )
{
((npc_escortAI*)(creature->AI()))->Start(true, true, false, player->GetGUID());
pInstance->SetData(DATA_QUEST_JAIL_BREAK,ENCOUNTER_STATE_IN_PROGRESS);
- creature->setFaction(11);
+ creature->setFaction(11);
}
}
@@ -800,25 +800,25 @@ bool QuestAccept_npc_marshal_windsor(Player *player, Creature *creature, Quest c
#define SAY_REGINALD_WINDSOR_14_2 "Excellent work, $N. Let's find the exit. I think I know the way. Follow me!"
#define SAY_REGINALD_WINDSOR_20_1 "We made it!"
#define SAY_REGINALD_WINDSOR_20_2 "Meet me at Maxwell's encampment. We'll go over the next stages of the plan there and figure out a way to decode my tablets without the decryption ring."
-#define MOB_ENTRY_SHILL_DINGER 9678
-#define MOB_ENTRY_CREST_KILLER 9680
+#define MOB_ENTRY_SHILL_DINGER 9678
+#define MOB_ENTRY_CREST_KILLER 9680
int wp = 0;
/*
struct TRINITY_DLL_DECL npc_marshal_reginald_windsorAI : public npc_escortAI
{
- npc_marshal_reginald_windsorAI(Creature *c) : npc_escortAI(c)
- {
- Reset();
+ npc_marshal_reginald_windsorAI(Creature *c) : npc_escortAI(c)
+ {
+ Reset();
}
-
+
void WaypointReached(uint32 i)
{
wp=i;
switch( i )
{
case 0:
- m_creature->setFaction(11);
+ m_creature->setFaction(11);
m_creature->Say(SAY_REGINALD_WINDSOR_0_1, LANG_UNIVERSAL, PlayerGUID);
break;
case 1:
@@ -889,7 +889,7 @@ struct TRINITY_DLL_DECL npc_marshal_reginald_windsorAI : public npc_escortAI
}
}
- void Aggro(Unit* who)
+ void Aggro(Unit* who)
{
switch(rand()%3)
{
@@ -953,7 +953,7 @@ struct TRINITY_DLL_DECL npc_marshal_reginald_windsorAI : public npc_escortAI
}
};
CreatureAI* GetAI_npc_marshal_reginald_windsor(Creature *_Creature)
-{
+{
npc_marshal_reginald_windsorAI* marshal_reginald_windsorAI = new npc_marshal_reginald_windsorAI(_Creature);
marshal_reginald_windsorAI->AddWaypoint(0, 403.61,-52.71, -63.92,4000);
@@ -1004,7 +1004,7 @@ CreatureAI* GetAI_npc_marshal_reginald_windsor(Creature *_Creature)
struct TRINITY_DLL_DECL npc_tobias_seecherAI : public npc_escortAI
{
npc_tobias_seecherAI(Creature *c) :npc_escortAI(c) {Reset();}
-
+
void Aggro(Unit* who) { }
void Reset() {}
@@ -1055,7 +1055,7 @@ struct TRINITY_DLL_DECL npc_tobias_seecherAI : public npc_escortAI
};
CreatureAI* GetAI_npc_tobias_seecher(Creature *_Creature)
-{
+{
npc_tobias_seecherAI* tobias_seecherAI = new npc_tobias_seecherAI(_Creature);
tobias_seecherAI->AddWaypoint(0, 549.21, -281.07, -75.27);
@@ -1093,11 +1093,11 @@ bool GossipSelect_npc_tobias_seecher(Player *player, Creature *_Creature, uint32
/*######
## npc_rocknot
######*/
-
+
#define SAY_GOT_BEER -1230000
#define SPELL_DRUNKEN_RAGE 14872
#define QUEST_ALE 4295
-
+
float BarWpLocations[8][3]=
{
{883.294861, -188.926300, -43.703655},
@@ -1109,7 +1109,7 @@ float BarWpLocations[8][3]=
{877.035217, -187.048080, -43.703655},
{891.198000, -197.924000, -43.620400} //home
};
-
+
uint32 BarWpWait[8]=
{
0,
@@ -1121,7 +1121,7 @@ uint32 BarWpWait[8]=
0,
0
};
-
+
struct TRINITY_DLL_DECL npc_rocknotAI : public npc_escortAI
{
npc_rocknotAI(Creature *c) : npc_escortAI(c)
@@ -1129,7 +1129,7 @@ struct TRINITY_DLL_DECL npc_rocknotAI : public npc_escortAI
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
}
-
+
ScriptedInstance* pInstance;
uint32 BreakKeg_Timer;
@@ -1145,18 +1145,18 @@ struct TRINITY_DLL_DECL npc_rocknotAI : public npc_escortAI
}
void Aggro(Unit *who) { }
-
+
void DoGo(uint32 id, uint32 state)
{
if (GameObject *go = GameObject::GetGameObject(*m_creature,pInstance->GetData64(id)))
go->SetGoState(state);
}
-
+
void WaypointReached(uint32 i)
{
if (!pInstance)
return;
-
+
switch(i)
{
case 1:
@@ -1177,12 +1177,12 @@ struct TRINITY_DLL_DECL npc_rocknotAI : public npc_escortAI
break;
}
}
-
+
void UpdateAI(const uint32 diff)
{
if (!pInstance)
return;
-
+
if (BreakKeg_Timer)
{
if (BreakKeg_Timer <= diff)
@@ -1192,7 +1192,7 @@ struct TRINITY_DLL_DECL npc_rocknotAI : public npc_escortAI
BreakDoor_Timer = 1000;
}else BreakKeg_Timer -= diff;
}
-
+
if (BreakDoor_Timer)
{
if (BreakDoor_Timer <= diff)
@@ -1203,46 +1203,46 @@ struct TRINITY_DLL_DECL npc_rocknotAI : public npc_escortAI
if (Unit *tmp = Unit::GetUnit(*m_creature,pInstance->GetData64(DATA_PHALANX)))
tmp->setFaction(14);
-
+
//for later, this event(s) has alot more to it.
//optionally, DONE can trigger bar to go hostile.
pInstance->SetData(TYPE_BAR,DONE);
-
+
BreakDoor_Timer = 0;
}else BreakDoor_Timer -= diff;
}
-
+
npc_escortAI::UpdateAI(diff);
}
};
-
+
CreatureAI* GetAI_npc_rocknot(Creature *_Creature)
{
npc_rocknotAI* Rocknot_AI = new npc_rocknotAI(_Creature);
-
+
for(uint8 i = 0; i < 8; ++i)
Rocknot_AI->AddWaypoint(i, BarWpLocations[i][0], BarWpLocations[i][1], BarWpLocations[i][2], BarWpWait[i]);
-
+
return (CreatureAI*)Rocknot_AI;
}
-
+
bool ChooseReward_npc_rocknot(Player *player, Creature *_Creature, const Quest *_Quest, uint32 item)
{
ScriptedInstance* pInstance = ((ScriptedInstance*)_Creature->GetInstanceData());
-
+
if (!pInstance)
return true;
-
+
if (pInstance->GetData(TYPE_BAR) == DONE || pInstance->GetData(TYPE_BAR) == SPECIAL)
return true;
-
+
if (_Quest->GetQuestId() == QUEST_ALE)
{
if (pInstance->GetData(TYPE_BAR) != IN_PROGRESS)
pInstance->SetData(TYPE_BAR,IN_PROGRESS);
pInstance->SetData(TYPE_BAR,SPECIAL);
-
+
//keep track of amount in instance script, returns SPECIAL if amount ok and event in progress
if (pInstance->GetData(TYPE_BAR) == SPECIAL)
{
@@ -1251,7 +1251,7 @@ bool ChooseReward_npc_rocknot(Player *player, Creature *_Creature, const Quest *
((npc_escortAI*)(_Creature->AI()))->Start(false, false, false);
}
}
-
+
return true;
}
diff --git a/src/bindings/scripts/scripts/zone/blackrock_depths/def_blackrock_depths.h b/src/bindings/scripts/scripts/zone/blackrock_depths/def_blackrock_depths.h
index 1a7f8962752..355c557053a 100644
--- a/src/bindings/scripts/scripts/zone/blackrock_depths/def_blackrock_depths.h
+++ b/src/bindings/scripts/scripts/zone/blackrock_depths/def_blackrock_depths.h
@@ -1,25 +1,25 @@
/* Copyright (C) 2006 - 2009 ScriptDev2
* This program is free software licensed under GPL version 2
* Please see the included DOCS/LICENSE.TXT for more information */
-
+
#ifndef DEF_BRD_H
#define DEF_BRD_H
-
+
#define TYPE_RING_OF_LAW 1
#define TYPE_VAULT 2
#define TYPE_BAR 3
#define TYPE_TOMB_OF_SEVEN 4
#define TYPE_LYCEUM 5
#define TYPE_IRON_HALL 6
-
+
#define DATA_EMPEROR 10
#define DATA_PHALANX 11
-
+
#define DATA_ARENA1 12
#define DATA_ARENA2 13
#define DATA_ARENA3 14
#define DATA_ARENA4 15
-
+
#define DATA_GO_BAR_KEG 16
#define DATA_GO_BAR_KEG_TRAP 17
#define DATA_GO_BAR_DOOR 18
diff --git a/src/bindings/scripts/scripts/zone/blackrock_depths/instance_blackrock_depths.cpp b/src/bindings/scripts/scripts/zone/blackrock_depths/instance_blackrock_depths.cpp
index 8a45955c706..324e3bb8816 100644
--- a/src/bindings/scripts/scripts/zone/blackrock_depths/instance_blackrock_depths.cpp
+++ b/src/bindings/scripts/scripts/zone/blackrock_depths/instance_blackrock_depths.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Instance_Blackrock_Depths
SD%Complete: 100
-SDComment:
+SDComment:
SDCategory: Blackrock Depths
EndScriptData */
@@ -33,10 +33,10 @@ update `instance_template` set `script`='instance_blackrock_depths' where `map`=
#include "def_blackrock_depths.h"
#define ENCOUNTERS 6
-
+
#define C_EMPEROR 9019
#define C_PHALANX 9502
-
+
#define GO_ARENA1 161525
#define GO_ARENA2 161522
#define GO_ARENA3 161524
@@ -54,17 +54,17 @@ update `instance_template` set `script`='instance_blackrock_depths' where `map`=
#define GO_GOLEM_ROOM_N 170573
#define GO_GOLEM_ROOM_S 170574
#define GO_THONE_ROOM 170575
-
+
struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance
{
instance_blackrock_depths(Map *map) : ScriptedInstance(map) {Initialize();};
-
+
uint32 Encounter[ENCOUNTERS];
std::string str_data;
-
+
uint64 EmperorGUID;
uint64 PhalanxGUID;
-
+
uint64 GoArena1GUID;
uint64 GoArena2GUID;
uint64 GoArena3GUID;
@@ -84,7 +84,7 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance
uint64 GoThoneGUID;
uint32 BarAleCount;
-
+
void Initialize()
{
EmperorGUID = 0;
@@ -109,11 +109,11 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance
GoThoneGUID = 0;
BarAleCount = 0;
-
+
for(uint8 i = 0; i < ENCOUNTERS; i++)
Encounter[i] = NOT_STARTED;
}
-
+
Player* GetPlayerInMap()
{
Map::PlayerList const& players = instance->GetPlayers();
@@ -126,11 +126,11 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance
return plr;
}
}
-
+
debug_log("SD2: Instance Blackrock Depths: GetPlayerInMap, but PlayerList is empty!");
return NULL;
}
-
+
void OnCreatureCreate(Creature *creature, uint32 creature_entry)
{
switch(creature->GetEntry())
@@ -163,7 +163,7 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance
case GO_THONE_ROOM: GoThoneGUID = go->GetGUID(); break;
}
}
-
+
void SetData(uint32 type, uint32 data)
{
Player *player = GetPlayerInMap();
@@ -173,9 +173,9 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance
debug_log("SD2: Instance Blackrock Depths: SetData (Type: %u Data %u) cannot find any player.", type, data);
return;
}
-
+
debug_log("SD2: Instance Blackrock Depths: SetData update (Type: %u Data %u)", type, data);
-
+
switch(type)
{
case TYPE_RING_OF_LAW:
@@ -210,12 +210,12 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance
<< Encounter[3] << " " << Encounter[4] << " " << Encounter[5];
str_data = saveStream.str();
-
+
SaveToDB();
OUT_SAVE_INST_DATA_COMPLETE;
}
}
-
+
uint32 GetData(uint32 type)
{
switch(type)
@@ -238,7 +238,7 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance
}
return 0;
}
-
+
uint64 GetData64(uint32 data)
{
switch(data)
@@ -264,12 +264,12 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance
}
return 0;
}
-
+
const char* Save()
{
return str_data.c_str();
}
-
+
void Load(const char* in)
{
if (!in)
@@ -277,7 +277,7 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance
OUT_LOAD_INST_DATA_FAIL;
return;
}
-
+
OUT_LOAD_INST_DATA(in);
std::istringstream loadStream(in);
@@ -287,16 +287,16 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance
for(uint8 i = 0; i < ENCOUNTERS; ++i)
if (Encounter[i] == IN_PROGRESS)
Encounter[i] = NOT_STARTED;
-
+
OUT_LOAD_INST_DATA_COMPLETE;
}
};
-
+
InstanceData* GetInstanceData_instance_blackrock_depths(Map* map)
{
return new instance_blackrock_depths(map);
}
-
+
void AddSC_instance_blackrock_depths()
{
Script *newscript;
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_aeonus.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_aeonus.cpp
index 7f8142c155a..17958fb8ce0 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_aeonus.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_aeonus.cpp
@@ -46,7 +46,7 @@ struct TRINITY_DLL_DECL boss_aeonusAI : public ScriptedAI
HeroicMode = m_creature->GetMap()->IsHeroic();
Reset();
}
-
+
ScriptedInstance *pInstance;
bool HeroicMode;
@@ -77,7 +77,7 @@ struct TRINITY_DLL_DECL boss_aeonusAI : public ScriptedAI
m_creature->DealDamage(who, who->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
}
}
-
+
ScriptedAI::MoveInLineOfSight(who);
}
@@ -88,7 +88,7 @@ struct TRINITY_DLL_DECL boss_aeonusAI : public ScriptedAI
if (pInstance)
{
pInstance->SetData(TYPE_RIFT,DONE);
- pInstance->SetData(TYPE_MEDIVH,DONE);//FIXME: later should be removed
+ pInstance->SetData(TYPE_MEDIVH,DONE);//FIXME: later should be removed
}
}
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_chrono_lord_deja.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_chrono_lord_deja.cpp
index eec99e8b9bb..79f5ff10920 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_chrono_lord_deja.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_chrono_lord_deja.cpp
@@ -46,7 +46,7 @@ struct TRINITY_DLL_DECL boss_chrono_lord_dejaAI : public ScriptedAI
HeroicMode = m_creature->GetMap()->IsHeroic();
Reset();
}
-
+
ScriptedInstance *pInstance;
bool HeroicMode;
@@ -75,7 +75,7 @@ struct TRINITY_DLL_DECL boss_chrono_lord_dejaAI : public ScriptedAI
m_creature->DealDamage(who, who->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
}
}
-
+
ScriptedAI::MoveInLineOfSight(who);
}
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_temporus.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_temporus.cpp
index b112cd60c67..cacb460ac92 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_temporus.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/boss_temporus.cpp
@@ -45,7 +45,7 @@ struct TRINITY_DLL_DECL boss_temporusAI : public ScriptedAI
HeroicMode = m_creature->GetMap()->IsHeroic();
Reset();
}
-
+
ScriptedInstance *pInstance;
bool HeroicMode;
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/dark_portal.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/dark_portal.cpp
index 8ceb9ddd44b..1f12c88e8f3 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/dark_portal.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/dark_portal.cpp
@@ -13,7 +13,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
+
/* ScriptData
SDName: Dark_Portal
SD%Complete: 30
@@ -26,7 +26,7 @@ npc_medivh_bm
npc_time_rift
npc_saat
EndContentData */
-
+
#include "precompiled.h"
#include "def_dark_portal.h"
@@ -42,18 +42,18 @@ EndContentData */
#define SPELL_CHANNEL 31556
#define SPELL_PORTAL_RUNE 32570 //aura(portal on ground effect)
-
+
#define SPELL_BLACK_CRYSTAL 32563 //aura
#define SPELL_PORTAL_CRYSTAL 32564 //summon
-
+
#define SPELL_BANISH_PURPLE 32566 //aura
#define SPELL_BANISH_GREEN 32567 //aura
-
+
#define SPELL_CORRUPT 31326
#define SPELL_CORRUPT_AEONUS 37853
#define C_COUNCIL_ENFORCER 17023
-
+
struct TRINITY_DLL_DECL npc_medivh_bmAI : public ScriptedAI
{
npc_medivh_bmAI(Creature *c) : ScriptedAI(c)
@@ -61,9 +61,9 @@ struct TRINITY_DLL_DECL npc_medivh_bmAI : public ScriptedAI
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
}
-
+
ScriptedInstance *pInstance;
-
+
uint32 SpellCorrupt_Timer;
uint32 Check_Timer;
@@ -77,25 +77,25 @@ struct TRINITY_DLL_DECL npc_medivh_bmAI : public ScriptedAI
if (!pInstance)
return;
-
+
if (pInstance->GetData(TYPE_MEDIVH) == IN_PROGRESS)
m_creature->CastSpell(m_creature,SPELL_CHANNEL,true);
else if (m_creature->HasAura(SPELL_CHANNEL,0))
m_creature->RemoveAura(SPELL_CHANNEL,0);
-
+
m_creature->CastSpell(m_creature,SPELL_PORTAL_RUNE,true);
}
-
+
void MoveInLineOfSight(Unit *who)
{
if (!pInstance)
return;
-
+
if (who->GetTypeId() == TYPEID_PLAYER && m_creature->IsWithinDistInMap(who, 10.0f))
{
if (pInstance->GetData(TYPE_MEDIVH) == IN_PROGRESS)
return;
-
+
DoScriptText(SAY_INTRO, m_creature);
pInstance->SetData(TYPE_MEDIVH,IN_PROGRESS);
m_creature->CastSpell(m_creature,SPELL_CHANNEL,false);
@@ -108,7 +108,7 @@ struct TRINITY_DLL_DECL npc_medivh_bmAI : public ScriptedAI
uint32 entry = who->GetEntry();
if (entry == C_ASSAS || entry == C_WHELP || entry == C_CHRON || entry == C_EXECU || entry == C_VANQU)
- {
+ {
who->StopMoving();
who->CastSpell(m_creature,SPELL_CORRUPT,false);
}
@@ -119,15 +119,15 @@ struct TRINITY_DLL_DECL npc_medivh_bmAI : public ScriptedAI
}
}
}
-
+
void AttackStart(Unit *who)
{
//if (pInstance && pInstance->GetData(TYPE_MEDIVH) == IN_PROGRESS)
//return;
-
+
//ScriptedAI::AttackStart(who);
}
-
+
void Aggro(Unit *who) {}
void SpellHit(Unit* caster, const SpellEntry* spell)
@@ -141,15 +141,15 @@ struct TRINITY_DLL_DECL npc_medivh_bmAI : public ScriptedAI
if (spell->Id == SPELL_CORRUPT)
SpellCorrupt_Timer = 3000;
}
-
- void JustDied(Unit* Killer)
+
+ void JustDied(Unit* Killer)
{
if (Killer->GetEntry() == m_creature->GetEntry())
return;
DoScriptText(SAY_DEATH, m_creature);
}
-
+
void UpdateAI(const uint32 diff)
{
if (!pInstance)
@@ -177,7 +177,7 @@ struct TRINITY_DLL_DECL npc_medivh_bmAI : public ScriptedAI
uint32 pct = pInstance->GetData(DATA_SHIELD);
Check_Timer = 5000;
-
+
if (Life25 && pct <= 25)
{
DoScriptText(SAY_WEAK25, m_creature);
@@ -194,7 +194,7 @@ struct TRINITY_DLL_DECL npc_medivh_bmAI : public ScriptedAI
DoScriptText(SAY_WEAK75, m_creature);
Life75 = false;
}
-
+
//if we reach this it means event was running but at some point reset.
if (pInstance->GetData(TYPE_MEDIVH) == NOT_STARTED)
{
@@ -212,14 +212,14 @@ struct TRINITY_DLL_DECL npc_medivh_bmAI : public ScriptedAI
}
}else Check_Timer -= diff;
}
-
+
//if (!UpdateVictim())
//return;
-
+
//DoMeleeAttackIfReady();
}
};
-
+
CreatureAI* GetAI_npc_medivh_bm(Creature *_Creature)
{
return new npc_medivh_bmAI (_Creature);
@@ -229,7 +229,7 @@ struct Wave
{
uint32 PortalMob[4]; //spawns for portal waves (in order)
};
-
+
static Wave PortalWaves[]=
{
{C_ASSAS, C_WHELP, C_CHRON, 0},
@@ -244,7 +244,7 @@ struct TRINITY_DLL_DECL npc_time_riftAI : public ScriptedAI
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
}
-
+
ScriptedInstance *pInstance;
uint32 TimeRiftWave_Timer;
@@ -252,7 +252,7 @@ struct TRINITY_DLL_DECL npc_time_riftAI : public ScriptedAI
uint8 mPortalCount;
uint8 mWaveId;
- void Reset()
+ void Reset()
{
TimeRiftWave_Timer = 15000;
@@ -260,15 +260,15 @@ struct TRINITY_DLL_DECL npc_time_riftAI : public ScriptedAI
if (!pInstance)
return;
-
+
mPortalCount = pInstance->GetData(DATA_PORTAL_COUNT);
-
+
if (mPortalCount < 6)
mWaveId = 0;
else if (mPortalCount > 12)
mWaveId = 2;
else mWaveId = 1;
-
+
}
void Aggro(Unit *who) {}
@@ -286,32 +286,32 @@ struct TRINITY_DLL_DECL npc_time_riftAI : public ScriptedAI
float x,y,z;
m_creature->GetRandomPoint(m_creature->GetPositionX(),m_creature->GetPositionY(),m_creature->GetPositionZ(),10.0f,x,y,z);
-
+
//normalize Z-level if we can, if rift is not at ground level.
z = std::max(m_creature->GetMap()->GetHeight(x, y, MAX_HEIGHT), m_creature->GetMap()->GetWaterLevel(x, y));
-
+
Unit *Summon = m_creature->SummonCreature(creature_entry,x,y,z,m_creature->GetOrientation(),
TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,30000);
-
+
if (Summon)
{
if (Unit *temp = Unit::GetUnit(*m_creature,pInstance->GetData64(DATA_MEDIVH)))
Summon->AddThreat(temp,0.0f);
}
}
-
+
void DoSelectSummon()
{
uint32 entry = 0;
-
+
if ((mRiftWaveCount > 2 && mWaveId < 1) || mRiftWaveCount > 3)
mRiftWaveCount = 0;
-
+
entry = PortalWaves[mWaveId].PortalMob[mRiftWaveCount];
debug_log("SD2: npc_time_rift: summoning wave creature (Wave %u, Entry %u).",mRiftWaveCount,entry);
-
+
++mRiftWaveCount;
-
+
if (entry == C_WHELP)
{
for(uint8 i = 0; i < 3; i++)
@@ -323,23 +323,23 @@ struct TRINITY_DLL_DECL npc_time_riftAI : public ScriptedAI
{
if (!pInstance)
return;
-
+
if (TimeRiftWave_Timer < diff)
{
DoSelectSummon();
TimeRiftWave_Timer = 15000;
}else TimeRiftWave_Timer -= diff;
-
+
if (m_creature->IsNonMeleeSpellCasted(false))
return;
-
+
debug_log("SD2: npc_time_rift: not casting anylonger, i need to die.");
m_creature->setDeathState(JUST_DIED);
pInstance->SetData(TYPE_RIFT,SPECIAL);
}
};
-
+
CreatureAI* GetAI_npc_time_rift(Creature *_Creature)
{
return new npc_time_riftAI (_Creature);
@@ -350,7 +350,7 @@ CreatureAI* GetAI_npc_time_rift(Creature *_Creature)
#define GOSSIP_ITEM_OBTAIN "[PH] Obtain Chrono-Beacon"
#define SPELL_CHRONO_BEACON 34975
#define ITEM_CHRONO_BEACON 24289
-
+
bool GossipHello_npc_saat(Player *player, Creature *_Creature)
{
if (_Creature->isQuestGiver())
@@ -368,11 +368,11 @@ bool GossipHello_npc_saat(Player *player, Creature *_Creature)
player->SEND_GOSSIP_MENU(10001,_Creature->GetGUID());
return true;
}
-
+
player->SEND_GOSSIP_MENU(10002,_Creature->GetGUID());
return true;
}
-
+
bool GossipSelect_npc_saat(Player *player, Creature *_Creature, uint32 sender, uint32 action)
{
if (action == GOSSIP_ACTION_INFO_DEF+1)
@@ -382,7 +382,7 @@ bool GossipSelect_npc_saat(Player *player, Creature *_Creature, uint32 sender, u
}
return true;
}
-
+
void AddSC_dark_portal()
{
Script *newscript;
@@ -391,7 +391,7 @@ void AddSC_dark_portal()
newscript->Name = "npc_medivh_bm";
newscript->GetAI = &GetAI_npc_medivh_bm;
newscript->RegisterSelf();
-
+
newscript = new Script;
newscript->Name = "npc_time_rift";
newscript->GetAI = &GetAI_npc_time_rift;
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/def_dark_portal.h b/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/def_dark_portal.h
index 1470296cec0..4fa7c14c5ed 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/def_dark_portal.h
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/def_dark_portal.h
@@ -1,21 +1,21 @@
/* Copyright (C) 2006 - 2008 ScriptDev2
* This program is free software licensed under GPL version 2
* Please see the included DOCS/LICENSE.TXT for more information */
-
+
#ifndef DEF_DARKPORTAL_H
#define DEF_DARKPORTAL_H
#define TYPE_MEDIVH 1
#define TYPE_RIFT 2
-
+
#define DATA_MEDIVH 10
#define DATA_PORTAL_COUNT 11
#define DATA_SHIELD 12
-
+
#define WORLD_STATE_BM 2541
#define WORLD_STATE_BM_SHIELD 2540
#define WORLD_STATE_BM_RIFT 2784
-
+
#define QUEST_OPENING_PORTAL 10297
#define QUEST_MASTER_TOUCH 9836
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/instance_dark_portal.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/instance_dark_portal.cpp
index ea9d64673f1..16b889a122b 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/instance_dark_portal.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/dark_portal/instance_dark_portal.cpp
@@ -13,14 +13,14 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
+
/* ScriptData
SDName: Instance_Dark_Portal
SD%Complete: 50
SDComment: Quest support: 9836, 10297. Currently in progress.
SDCategory: Caverns of Time, The Dark Portal
EndScriptData */
-
+
#include "precompiled.h"
#include "def_dark_portal.h"
@@ -28,12 +28,12 @@ EndScriptData */
#define C_MEDIVH 15608
#define C_TIME_RIFT 17838
-
+
#define SPELL_RIFT_CHANNEL 31387
#define RIFT_BOSS 1
inline uint32 RandRiftBoss() { return rand()%2 ? C_RKEEP : C_RLORD; }
-
+
float PortalLocation[4][4]=
{
{-2041.06, 7042.08, 29.99, 1.30},
@@ -41,13 +41,13 @@ float PortalLocation[4][4]=
{-1885.82, 7107.36, 22.32, 3.07},
{-1928.11, 7175.95, 22.11, 3.44}
};
-
+
struct Wave
{
uint32 PortalBoss; //protector of current portal
uint32 NextPortalTime; //time to next portal, or 0 if portal boss need to be killed
};
-
+
static Wave RiftWaves[]=
{
{RIFT_BOSS, 0},
@@ -57,44 +57,44 @@ static Wave RiftWaves[]=
{RIFT_BOSS, 120000},
{C_AEONUS, 0}
};
-
+
struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
{
instance_dark_portal(Map *map) : ScriptedInstance(map) {Initialize();};
-
+
uint32 Encounter[ENCOUNTERS];
-
+
uint32 mRiftPortalCount;
uint32 mShieldPercent;
uint8 mRiftWaveCount;
uint8 mRiftWaveId;
-
+
uint32 NextPortal_Timer;
-
+
uint64 MedivhGUID;
uint8 CurrentRiftId;
-
+
void Initialize()
{
MedivhGUID = 0;
Clear();
}
-
+
void Clear()
{
for(uint8 i = 0; i < ENCOUNTERS; i++)
Encounter[i] = NOT_STARTED;
-
+
mRiftPortalCount = 0;
mShieldPercent = 100;
mRiftWaveCount = 0;
mRiftWaveId = 0;
-
+
CurrentRiftId = 0;
-
+
NextPortal_Timer = 0;
}
-
+
Player* GetPlayerInMap()
{
Map::PlayerList const& players = instance->GetPlayers();
@@ -107,11 +107,11 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
return plr;
}
}
-
+
debug_log("SD2: Instance Black Portal: GetPlayerInMap, but PlayerList is empty!");
return NULL;
}
-
+
void UpdateBMWorldState(uint32 id, uint32 state)
{
Map::PlayerList const& players = instance->GetPlayers();
@@ -125,19 +125,19 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
}
}else debug_log("SD2: Instance Black Portal: UpdateBMWorldState, but PlayerList is empty!");
}
-
+
void InitWorldState(bool Enable = true)
{
UpdateBMWorldState(WORLD_STATE_BM,Enable ? 1 : 0);
UpdateBMWorldState(WORLD_STATE_BM_SHIELD,100);
UpdateBMWorldState(WORLD_STATE_BM_RIFT,0);
}
-
+
bool IsEncounterInProgress()
{
if (GetData(TYPE_MEDIVH) == IN_PROGRESS)
return true;
-
+
return false;
}
@@ -154,7 +154,7 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
if (creature->GetEntry() == C_MEDIVH)
MedivhGUID = creature->GetGUID();
}
-
+
//what other conditions to check?
bool CanProgressEvent()
{
@@ -180,7 +180,7 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
return mRiftWaveId;
}
}
-
+
void SetData(uint32 type, uint32 data)
{
Player *player = GetPlayerInMap();
@@ -190,7 +190,7 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
debug_log("SD2: Instance Black Portal: SetData (Type: %u Data %u) cannot find any player.", type, data);
return;
}
-
+
switch(type)
{
case TYPE_MEDIVH:
@@ -231,7 +231,7 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
player->GroupEventHappens(QUEST_MASTER_TOUCH,medivh);
}
}
-
+
Encounter[0] = data;
}
break;
@@ -246,7 +246,7 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
break;
}
}
-
+
uint32 GetData(uint32 type)
{
switch(type)
@@ -262,7 +262,7 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
}
return 0;
}
-
+
uint64 GetData64(uint32 data)
{
if (data == DATA_MEDIVH)
@@ -283,17 +283,17 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
z = std::max(instance->GetHeight(x, y, MAX_HEIGHT), instance->GetWaterLevel(x, y));
debug_log("SD2: Instance Dark Portal: Summoning rift boss entry %u.",entry);
-
+
Unit *Summon = source->SummonCreature(entry,x,y,z,source->GetOrientation(),
TEMPSUMMON_TIMED_OR_DEAD_DESPAWN,600000);
-
+
if (Summon)
return Summon;
-
+
debug_log("SD2: Instance Dark Portal: what just happened there? No boss, no loot, no fun...");
return NULL;
}
-
+
void DoSpawnPortal()
{
Player *player = GetPlayerInMap();
@@ -301,7 +301,7 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
return;
if (Unit *medivh = Unit::GetUnit(*player,MedivhGUID))
- {
+ {
for(uint8 i = 0; i < 4; i++)
{
int tmp = rand()%4;
@@ -316,18 +316,18 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
TEMPSUMMON_CORPSE_DESPAWN,0);
if (temp)
{
-
+
temp->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
temp->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
-
-
+
+
if (Unit* boss = SummonedPortalBoss(temp))
{
if (boss->GetEntry() == C_AEONUS)
{
boss->AddThreat(medivh,0.0f);
}
- else
+ else
{
boss->AddThreat(temp,0.0f);
temp->CastSpell(boss,SPELL_RIFT_CHANNEL,false);
@@ -336,10 +336,10 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
}
break;
}
- }
+ }
}
}
-
+
void Update(uint32 diff)
{
if (Encounter[1] != IN_PROGRESS)
@@ -365,12 +365,12 @@ struct TRINITY_DLL_DECL instance_dark_portal : public ScriptedInstance
}
}
};
-
+
InstanceData* GetInstanceData_instance_dark_portal(Map* map)
{
return new instance_dark_portal(map);
}
-
+
void AddSC_instance_dark_portal()
{
Script *newscript;
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/boss_archimonde.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/boss_archimonde.cpp
index f1c8b12e60b..e2248b541e9 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/boss_archimonde.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/boss_archimonde.cpp
@@ -492,10 +492,10 @@ struct TRINITY_DLL_DECL boss_archimondeAI : public ScriptedAI
if(target)
Doomfire->AI()->AttackStart(target);
- if(rand()%2 == 0)
+ if(rand()%2 == 0)
DoScriptText(SAY_DOOMFIRE1, m_creature);
else
- DoScriptText(SAY_DOOMFIRE2, m_creature);
+ DoScriptText(SAY_DOOMFIRE2, m_creature);
}
}
@@ -594,7 +594,7 @@ struct TRINITY_DLL_DECL boss_archimondeAI : public ScriptedAI
}else EnrageTimer -= diff;
if(CheckDistanceTimer < diff)
- {
+ {
// To simplify the check, we simply summon a creature in the location and then check how far we are from the creature
Creature* Check = m_creature->SummonCreature(CREATURE_CHANNEL_TARGET, NORDRASSIL_X, NORDRASSIL_Y, NORDRASSIL_Z, 0, TEMPSUMMON_TIMED_DESPAWN, 2000);
if(Check)
@@ -667,7 +667,7 @@ struct TRINITY_DLL_DECL boss_archimondeAI : public ScriptedAI
{
if(rand()%2 == 0)
DoScriptText(SAY_AIR_BURST1, m_creature);
- else
+ else
DoScriptText(SAY_AIR_BURST2, m_creature);
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjal.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjal.cpp
index fb2ec0de734..d8b308d03cd 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjal.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjal.cpp
@@ -208,7 +208,7 @@ bool GossipHello_npc_tyrande_whisperwind(Player* player, Creature* _Creature)
bool GossipSelect_npc_tyrande_whisperwind(Player *player, Creature *_Creature, uint32 sender, uint32 action)
{
- if (action == GOSSIP_ACTION_INFO_DEF)
+ if (action == GOSSIP_ACTION_INFO_DEF)
{
ItemPosCountVec dest;
uint8 msg = player->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, ITEM_TEAR_OF_GODDESS, 1);
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp
index 0e2038e4e75..d0f1858271d 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp
@@ -34,7 +34,7 @@ float AllianceBase[4][3]=
};
// Locations for summoning waves in Horde base
-float HordeBase[4][3]=
+float HordeBase[4][3]=
{
{5554.399, -2581.419, 1480.820},
{5538.996, -2577.742, 1479.790},
@@ -83,7 +83,7 @@ void hyjalAI::Reset()
break;
}
- //Bools
+ //Bools
EventBegun = false;
FirstBossDead = false;
SecondBossDead = false;
@@ -131,7 +131,7 @@ void hyjalAI::EnterEvadeMode()
if(m_creature->isAlive())
m_creature->GetMotionMaster()->MoveTargetedHome();
-
+
m_creature->SetLootRecipient(NULL);
InCombat = false;
@@ -295,12 +295,12 @@ void hyjalAI::Talk(uint32 id)
void hyjalAI::UpdateWorldState(uint32 id, uint32 state)
{
Map * map = m_creature->GetMap();
-
- if(!map->IsDungeon())
+
+ if(!map->IsDungeon())
return;
Map::PlayerList const& players = map->GetPlayers();
-
+
if (!players.isEmpty())
{
for(Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.h b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.h
index 0c638385e78..ca95b1b99bf 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.h
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.h
@@ -46,25 +46,25 @@ struct Wave
static Wave AllianceWaves[]= // Waves that will be summoned in the Alliance Base
{ // Rage Winterchill Wave 1-8
- {GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, 0, 0, 0, 0, 0, 0, 0, 0, 120000, false},
- {GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, 0, 0, 0, 0, 0, 0, 120000, false},
- {GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, 0, 0, 0, 0, 0, 0, 120000, false},
- {GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, NECROMANCER, NECROMANCER, 0, 0, 0, 0, 0, 0, 120000, false},
- {GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, NECROMANCER, NECROMANCER, NECROMANCER, NECROMANCER, 0, 0, 0, 0, 0, 0, 120000, false},
- {GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, 0, 0, 0, 0, 0, 120000, false},
- {GHOUL, GHOUL, GHOUL, GHOUL, NECROMANCER, NECROMANCER, NECROMANCER, NECROMANCER, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, 0, 0, 0, 0, 0, 0, 120000, false},
+ {GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, 0, 0, 0, 0, 0, 0, 0, 0, 120000, false},
+ {GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, 0, 0, 0, 0, 0, 0, 120000, false},
+ {GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, 0, 0, 0, 0, 0, 0, 120000, false},
+ {GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, NECROMANCER, NECROMANCER, 0, 0, 0, 0, 0, 0, 120000, false},
+ {GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, NECROMANCER, NECROMANCER, NECROMANCER, NECROMANCER, 0, 0, 0, 0, 0, 0, 120000, false},
+ {GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, 0, 0, 0, 0, 0, 120000, false},
+ {GHOUL, GHOUL, GHOUL, GHOUL, NECROMANCER, NECROMANCER, NECROMANCER, NECROMANCER, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, 0, 0, 0, 0, 0, 0, 120000, false},
{GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, ABOMINATION, ABOMINATION, NECROMANCER, NECROMANCER, 0, 0, 0, 0, 180000, false},
// All 8 Waves are summoned, summon Rage Winterchill, next few waves are for Anetheron
- {RAGE_WINTERCHILL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true},
+ {RAGE_WINTERCHILL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true},
// Anetheron Wave 1-8
{GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, 0, 0, 0, 0, 0, 0, 0, 0, 120000, false},
{GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, 0, 0, 0, 0, 0, 0, 120000, false},
- {GHOUL, GHOUL, GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, NECROMANCER, NECROMANCER, NECROMANCER, NECROMANCER, 0, 0, 0, 0, 0, 0, 120000, false},
- {GHOUL, GHOUL, GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, BANSHEE, BANSHEE, BANSHEE, BANSHEE, 0, 0, 0, 0, 0, 0, 120000, false},
- {CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, NECROMANCER, NECROMANCER, BANSHEE, BANSHEE, BANSHEE, BANSHEE, 0, 0, 0, 0, 0, 0, 120000, false},
- {GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, ABOMINATION, ABOMINATION, NECROMANCER, NECROMANCER, NECROMANCER, NECROMANCER, 0, 0, 0, 0, 0, 0, 120000, false},
- {CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, BANSHEE, BANSHEE, BANSHEE, BANSHEE, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, 0, 0, 0, 0, 0, 0, 120000, false},
- {GHOUL, GHOUL, GHOUL, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, BANSHEE, BANSHEE, NECROMANCER, NECROMANCER, 0, 0, 0, 0, 180000, false},
+ {GHOUL, GHOUL, GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, NECROMANCER, NECROMANCER, NECROMANCER, NECROMANCER, 0, 0, 0, 0, 0, 0, 120000, false},
+ {GHOUL, GHOUL, GHOUL, GHOUL, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, BANSHEE, BANSHEE, BANSHEE, BANSHEE, 0, 0, 0, 0, 0, 0, 120000, false},
+ {CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, NECROMANCER, NECROMANCER, BANSHEE, BANSHEE, BANSHEE, BANSHEE, 0, 0, 0, 0, 0, 0, 120000, false},
+ {GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, GHOUL, ABOMINATION, ABOMINATION, NECROMANCER, NECROMANCER, NECROMANCER, NECROMANCER, 0, 0, 0, 0, 0, 0, 120000, false},
+ {CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, BANSHEE, BANSHEE, BANSHEE, BANSHEE, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, 0, 0, 0, 0, 0, 0, 120000, false},
+ {GHOUL, GHOUL, GHOUL, ABOMINATION, ABOMINATION, ABOMINATION, ABOMINATION, CRYPT_FIEND, CRYPT_FIEND, CRYPT_FIEND, BANSHEE, BANSHEE, NECROMANCER, NECROMANCER, 0, 0, 0, 0, 180000, false},
// All 8 Waves are summoned, summon Anatheron
{ANETHERON, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, true}
};
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/instance_hyjal.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/instance_hyjal.cpp
index 1d67582927b..a678b7f4776 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/instance_hyjal.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/instance_hyjal.cpp
@@ -147,7 +147,7 @@ struct TRINITY_DLL_DECL instance_mount_hyjal : public ScriptedInstance
void UpdateWorldState(uint32 id, uint32 state)
{
Map::PlayerList const& players = instance->GetPlayers();
-
+
if (!players.isEmpty())
{
for(Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/old_hillsbrad/boss_leutenant_drake.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/old_hillsbrad/boss_leutenant_drake.cpp
index ee7b6749f22..1c8d9a3de6b 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/old_hillsbrad/boss_leutenant_drake.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/old_hillsbrad/boss_leutenant_drake.cpp
@@ -35,12 +35,12 @@ bool GOHello_go_barrel_old_hillsbrad(Player *player, GameObject* _GO)
if (!pInstance)
return false;
-
+
if (pInstance->GetData(TYPE_BARREL_DIVERSION) == DONE)
return false;
pInstance->SetData(TYPE_BARREL_DIVERSION, IN_PROGRESS);
-
+
return false;
}
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/old_hillsbrad/instance_old_hillsbrad.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/old_hillsbrad/instance_old_hillsbrad.cpp
index 1d7c19e2f59..075def2f0d9 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/old_hillsbrad/instance_old_hillsbrad.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/old_hillsbrad/instance_old_hillsbrad.cpp
@@ -30,7 +30,7 @@ EndScriptData */
#define TARETHA_ENTRY 18887
#define DRAKE_ENTRY 17848
-
+
#define QUEST_ENTRY_DIVERSION 10283
#define LODGE_QUEST_TRIGGER 20155
@@ -68,15 +68,15 @@ struct TRINITY_DLL_DECL instance_old_hillsbrad : public ScriptedInstance
return plr;
}
}
-
+
debug_log("SD2: Instance Old Hillsbrad: GetPlayerInMap, but PlayerList is empty!");
return NULL;
}
-
+
void UpdateOHWorldState()
{
Map::PlayerList const& players = instance->GetPlayers();
-
+
if (!players.isEmpty())
{
for(Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
@@ -124,10 +124,10 @@ struct TRINITY_DLL_DECL instance_old_hillsbrad : public ScriptedInstance
{
if (mBarrelCount >= 5)
return;
-
+
++mBarrelCount;
UpdateOHWorldState();
-
+
debug_log("SD2: Instance Old Hillsbrad: go_barrel_old_hillsbrad count %u",mBarrelCount);
Encounter[0] = IN_PROGRESS;
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/old_hillsbrad/old_hillsbrad.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/old_hillsbrad/old_hillsbrad.cpp
index 0ed19fdc558..288ccbb57ef 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/old_hillsbrad/old_hillsbrad.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/old_hillsbrad/old_hillsbrad.cpp
@@ -126,22 +126,22 @@ bool GossipSelect_npc_erozion(Player *player, Creature *_Creature, uint32 sender
#define SAY_TH_EPOCH_WONDER -1560031
#define SAY_TH_EPOCH_KILL_TARETHA -1560032
#define SAY_TH_EVENT_COMPLETE -1560033
-
+
#define SAY_TH_RANDOM_LOW_HP1 -1560034
#define SAY_TH_RANDOM_LOW_HP2 -1560035
-
+
#define SAY_TH_RANDOM_DIE1 -1560036
#define SAY_TH_RANDOM_DIE2 -1560037
-
+
#define SAY_TH_RANDOM_AGGRO1 -1560038
#define SAY_TH_RANDOM_AGGRO2 -1560039
#define SAY_TH_RANDOM_AGGRO3 -1560040
#define SAY_TH_RANDOM_AGGRO4 -1560041
-
+
#define SAY_TH_RANDOM_KILL1 -1560042
#define SAY_TH_RANDOM_KILL2 -1560043
#define SAY_TH_RANDOM_KILL3 -1560044
-
+
#define SAY_TH_LEAVE_COMBAT1 -1560045
#define SAY_TH_LEAVE_COMBAT2 -1560046
#define SAY_TH_LEAVE_COMBAT3 -1560047
@@ -269,7 +269,7 @@ struct TRINITY_DLL_DECL npc_thrall_old_hillsbradAI : public npc_escortAI
case 29:
DoScriptText(SAY_TH_SKARLOC_MEET, m_creature);
m_creature->SummonCreature(17862,2036.48,271.22,63.43,5.27,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,30000);
- //temporary,skarloc should rather be triggered to walk up to thrall
+ //temporary,skarloc should rather be triggered to walk up to thrall
break;
case 30:
IsOnHold = true;
@@ -364,7 +364,7 @@ struct TRINITY_DLL_DECL npc_thrall_old_hillsbradAI : public npc_escortAI
//trigger taretha to run down outside
if (uint64 TarethaGUID = pInstance->GetData64(DATA_TARETHA))
- {
+ {
if (Creature* Taretha = ((Creature*)Unit::GetUnit(*m_creature, TarethaGUID)))
((npc_escortAI*)(Taretha->AI()))->Start(false, false, true, PlayerGUID);
}
@@ -380,13 +380,13 @@ struct TRINITY_DLL_DECL npc_thrall_old_hillsbradAI : public npc_escortAI
pPlayer->KilledMonster(20156,m_creature->GetGUID());
}
}
-
+
//alot will happen here, thrall and taretha talk, erozion appear at spot to explain
m_creature->SummonCreature(EROZION_ENTRY,2646.47,680.416,55.38,4.16,TEMPSUMMON_TIMED_DESPAWN,120000);
break;
}
}
-
+
void Reset()
{
@@ -481,7 +481,7 @@ struct TRINITY_DLL_DECL npc_thrall_old_hillsbradAI : public npc_escortAI
pInstance->SetData(TYPE_THRALL_EVENT,FAIL);
// Don't do a yell if he kills self (if player goes too far or at the end).
- if(slayer == m_creature)
+ if(slayer == m_creature)
return;
switch(rand()%2)
@@ -670,7 +670,7 @@ CreatureAI* GetAI_npc_thrall_old_hillsbrad(Creature *_Creature)
bool GossipHello_npc_thrall_old_hillsbrad(Player *player, Creature *_Creature)
{
if( _Creature->isQuestGiver() )
- {
+ {
player->PrepareQuestMenu( _Creature->GetGUID() );
player->SendPreparedQuest(_Creature->GetGUID());
}
diff --git a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_fathomlord_karathress.cpp b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_fathomlord_karathress.cpp
index 630b78ecbf2..c626a8d4544 100644
--- a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_fathomlord_karathress.cpp
+++ b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_fathomlord_karathress.cpp
@@ -132,7 +132,7 @@ struct TRINITY_DLL_DECL boss_fathomlord_karathressAI : public ScriptedAI
Creature* pAdvisor = NULL;
for( int i=0; i<3; i++ )
-
+
if(RAdvisors[i])
{
pAdvisor = ((Creature*)Unit::GetUnit((*m_creature), RAdvisors[i]));
@@ -145,8 +145,8 @@ struct TRINITY_DLL_DECL boss_fathomlord_karathressAI : public ScriptedAI
}
pInstance->SetData(DATA_KARATHRESSEVENT, NOT_STARTED);
}
-
-
+
+
}
void EventSharkkisDeath()
@@ -290,7 +290,7 @@ struct TRINITY_DLL_DECL boss_fathomlord_karathressAI : public ScriptedAI
break;
}
}
- }
+ }
if( continueTriggering )
{
DoCast(m_creature, SPELL_BLESSING_OF_THE_TIDES);
@@ -338,7 +338,7 @@ struct TRINITY_DLL_DECL boss_fathomguard_sharkkisAI : public ScriptedAI
{
Pet->DealDamage( Pet, Pet->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false );
}
-
+
SummonedPet = 0;
if( pInstance )
@@ -404,7 +404,7 @@ struct TRINITY_DLL_DECL boss_fathomguard_sharkkisAI : public ScriptedAI
DoCast(m_creature->getVictim(), SPELL_MULTISHOT);
Multishot_Timer = 20000;
}else Multishot_Timer -= diff;
-
+
//TheBeastWithin_Timer
if(TheBeastWithin_Timer < diff)
{
@@ -416,7 +416,7 @@ struct TRINITY_DLL_DECL boss_fathomguard_sharkkisAI : public ScriptedAI
}
TheBeastWithin_Timer = 30000;
}else TheBeastWithin_Timer -= diff;
-
+
//Pet_Timer
if(Pet_Timer < diff && pet == false)
{
@@ -704,7 +704,7 @@ struct TRINITY_DLL_DECL boss_fathomguard_caribdisAI : public ScriptedAI
break;
case 1:
pUnit = Unit::GetUnit((*m_creature), pInstance->GetData64(DATA_SHARKKIS));
- break;
+ break;
case 2:
pUnit = Unit::GetUnit((*m_creature), pInstance->GetData64(DATA_TIDALVESS));
break;
@@ -713,7 +713,7 @@ struct TRINITY_DLL_DECL boss_fathomguard_caribdisAI : public ScriptedAI
break;
}
}else pUnit = m_creature;
-
+
return pUnit;
}
};
diff --git a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_hydross_the_unstable.cpp b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_hydross_the_unstable.cpp
index df2c92246fb..6c28e61e863 100644
--- a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_hydross_the_unstable.cpp
+++ b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_hydross_the_unstable.cpp
@@ -79,7 +79,7 @@ struct TRINITY_DLL_DECL boss_hydross_the_unstableAI : public ScriptedAI
boss_hydross_the_unstableAI(Creature *c) : ScriptedAI(c), Summons(m_creature)
{
pInstance = ((ScriptedInstance*)c->GetInstanceData());
- Reset();
+ Reset();
}
ScriptedInstance* pInstance;
@@ -124,7 +124,7 @@ struct TRINITY_DLL_DECL boss_hydross_the_unstableAI : public ScriptedAI
}
void SummonBeams()
- {
+ {
Creature* beamer = m_creature->SummonCreature(ENTRY_BEAM_DUMMY,-258.333,-356.34,22.0499,5.90835,TEMPSUMMON_CORPSE_DESPAWN,0);
if(beamer)
{
@@ -133,7 +133,7 @@ struct TRINITY_DLL_DECL boss_hydross_the_unstableAI : public ScriptedAI
beamer->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
beams[0]=beamer->GetGUID();
}
- beamer = beamer = m_creature->SummonCreature(ENTRY_BEAM_DUMMY,-219.918,-371.308,22.0042,2.73072,TEMPSUMMON_CORPSE_DESPAWN,0);
+ beamer = beamer = m_creature->SummonCreature(ENTRY_BEAM_DUMMY,-219.918,-371.308,22.0042,2.73072,TEMPSUMMON_CORPSE_DESPAWN,0);
if(beamer)
{
beamer->CastSpell(m_creature,SPELL_BLUE_BEAM,true);
@@ -143,7 +143,7 @@ struct TRINITY_DLL_DECL boss_hydross_the_unstableAI : public ScriptedAI
}
}
void DeSummonBeams()
- {
+ {
for(uint8 i=0;i<2;i++)
{
Creature* mob = (Creature*)Unit::GetUnit(*m_creature,beams[i]);
diff --git a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp
index 70db67f0f06..c1b2d786ac5 100644
--- a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp
+++ b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp
@@ -66,8 +66,8 @@ EndScriptData */
#define TAINTED_ELEMENTAL 22009
#define COILFANG_STRIDER 22056
#define COILFANG_ELITE 22055
-#define TOXIC_SPOREBAT 22140
-#define TOXIC_SPORES_TRIGGER 22207
+#define TOXIC_SPOREBAT 22140
+#define TOXIC_SPORES_TRIGGER 22207
float ElementPos[8][4] =
{
@@ -81,7 +81,7 @@ float ElementPos[8][4] =
{-58.9, -901.6, 21.5, 6}
};
-float ElementWPPos[8][3] =
+float ElementWPPos[8][3] =
{
{71.700752, -883.905884, 41.097168},
{45.039848, -868.022827, 41.097015},
@@ -93,7 +93,7 @@ float ElementWPPos[8][3] =
{69.945908, -964.663940, 41.097054}
};
-float SporebatWPPos[8][3] =
+float SporebatWPPos[8][3] =
{
{31.6,-896.3,59.1},
{9.1, -913.9, 56},
@@ -135,7 +135,7 @@ struct TRINITY_DLL_DECL boss_lady_vashjAI : public ScriptedAI
pInstance = (c->GetInstanceData()) ? ((ScriptedInstance*)c->GetInstanceData()) : NULL;
Intro = false;
Reset();
- CanAttack = false;//must be after reset()
+ CanAttack = false;//must be after reset()
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); //set it only once on creature create (no need do intro if wiped)
}
@@ -143,7 +143,7 @@ struct TRINITY_DLL_DECL boss_lady_vashjAI : public ScriptedAI
uint64 ShieldGeneratorChannel[4];
- uint32 AggroTimer;
+ uint32 AggroTimer;
uint32 ShockBlast_Timer;
uint32 Entangle_Timer;
uint32 StaticCharge_Timer;
@@ -165,7 +165,7 @@ struct TRINITY_DLL_DECL boss_lady_vashjAI : public ScriptedAI
void Reset()
{
- AggroTimer = 19000;
+ AggroTimer = 19000;
ShockBlast_Timer = 1+rand()%60000;
Entangle_Timer = 30000;
StaticCharge_Timer = 10000+rand()%15000;
@@ -193,12 +193,12 @@ struct TRINITY_DLL_DECL boss_lady_vashjAI : public ScriptedAI
}
if(pInstance)
- pInstance->SetData(DATA_LADYVASHJEVENT, NOT_STARTED);
+ pInstance->SetData(DATA_LADYVASHJEVENT, NOT_STARTED);
ShieldGeneratorChannel[0] = 0;
ShieldGeneratorChannel[1] = 0;
ShieldGeneratorChannel[2] = 0;
ShieldGeneratorChannel[3] = 0;
-
+
m_creature->SetCorpseDelay(1000*60*60);
}
@@ -271,7 +271,7 @@ struct TRINITY_DLL_DECL boss_lady_vashjAI : public ScriptedAI
if (!Intro)
{
Intro = true;
- DoScriptText(SAY_INTRO, m_creature);
+ DoScriptText(SAY_INTRO, m_creature);
}
if (!CanAttack)
return;
@@ -327,9 +327,9 @@ struct TRINITY_DLL_DECL boss_lady_vashjAI : public ScriptedAI
if(AggroTimer < diff)
{
CanAttack = true;
- m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
+ m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
AggroTimer=19000;
- }else
+ }else
{
AggroTimer-=diff;
return;
@@ -596,7 +596,7 @@ struct TRINITY_DLL_DECL mob_enchanted_elementalAI : public ScriptedAI
Unit *Vashj;
void Reset()
- {
+ {
m_creature->SetSpeed(MOVE_WALK,0.6);//walk
m_creature->SetSpeed(MOVE_RUN,0.6);//run
move = 0;
@@ -628,17 +628,17 @@ struct TRINITY_DLL_DECL mob_enchanted_elementalAI : public ScriptedAI
void Aggro(Unit *who) { return; }
void MoveInLineOfSight(Unit *who){return;}
-
+
void UpdateAI(const uint32 diff)
{
if(!pInstance)
- return;
+ return;
- if (!Vashj)
+ if (!Vashj)
{
return;
}
-
+
if(move < diff)
{
m_creature->SetUnitMovementFlags(MOVEMENTFLAG_WALK_MODE);
@@ -678,9 +678,9 @@ struct TRINITY_DLL_DECL mob_enchanted_elementalAI : public ScriptedAI
{
//call Unsummon()
m_creature->DealDamage(m_creature, m_creature->GetMaxHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
- }
+ }
move = 1000;
- }else move -= diff;
+ }else move -= diff;
}
};
@@ -777,12 +777,12 @@ struct TRINITY_DLL_DECL mob_toxic_sporebatAI : public ScriptedAI
void Aggro(Unit *who)
{
-
+
}
void MoveInLineOfSight(Unit *who)
{
-
+
}
void MovementInform(uint32 type, uint32 id)
@@ -807,7 +807,7 @@ struct TRINITY_DLL_DECL mob_toxic_sporebatAI : public ScriptedAI
m_creature->GetMotionMaster()->MovePoint(1,SporebatWPPos[rndpos][0], SporebatWPPos[rndpos][1], SporebatWPPos[rndpos][2]);
movement_timer = 6000;
}else movement_timer -= diff;
-
+
//toxic spores
if(bolt_timer < diff)
{
@@ -986,7 +986,7 @@ bool ItemUse_item_tainted_core(Player *player, Item* _Item, SpellCastTargets con
if(Channel)
{
//call Unsummon()
- Channel->setDeathState(JUST_DIED);
+ Channel->setDeathState(JUST_DIED);
}
pInstance->SetData(identifier, 1);
diff --git a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_leotheras_the_blind.cpp b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_leotheras_the_blind.cpp
index 42d0a3e1ceb..dfb3ba69eb9 100644
--- a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_leotheras_the_blind.cpp
+++ b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_leotheras_the_blind.cpp
@@ -40,7 +40,7 @@ EndScriptData */
#define SPELL_MINDBLAST 37531
// --- Spells used by Inner Demons and creature ID
-#define INNER_DEMON_ID 21857
+#define INNER_DEMON_ID 21857
#define AURA_DEMONIC_ALIGNMENT 37713
#define SPELL_SHADOWBOLT 39309
#define SPELL_SOUL_LINK 38007
@@ -80,13 +80,13 @@ struct TRINITY_DLL_DECL mob_inner_demonAI : public ScriptedAI
}
uint32 ShadowBolt_Timer;
-
+
uint32 Link_Timer;
uint64 victimGUID;
void Reset()
{
- ShadowBolt_Timer = 10000;
+ ShadowBolt_Timer = 10000;
Link_Timer = 1000;
}
void JustDied(Unit *victim)
@@ -136,7 +136,7 @@ struct TRINITY_DLL_DECL mob_inner_demonAI : public ScriptedAI
{
DoCast(m_creature->getVictim(), SPELL_SHADOWBOLT, false);
ShadowBolt_Timer = 10000;
- }else ShadowBolt_Timer -= diff;
+ }else ShadowBolt_Timer -= diff;
DoMeleeAttackIfReady();
}
@@ -149,7 +149,7 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
m_creature->GetPosition(x,y,z);
pInstance = (c->GetInstanceData()) ? ((ScriptedInstance*)c->GetInstanceData()) : NULL;
Demon = 0;
-
+
for(uint8 i = 0; i < 3; i++)//clear guids
SpellBinderGUID[i] = 0;
Reset();
@@ -164,14 +164,14 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
uint32 Berserk_Timer;
uint32 InnerDemons_Timer;
uint32 BanishTimer;
-
+
bool DealDamage;
bool NeedThreatReset;
bool DemonForm;
bool IsFinalForm;
bool EnrageUsed;
float x,y,z;
-
+
uint64 InnderDemon[5];
uint32 InnderDemon_Count;
uint64 Demon;
@@ -203,7 +203,7 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
m_creature->CastSpell(m_creature, SPELL_DUAL_WIELD, true);
m_creature->SetCorpseDelay(1000*60*60);
if(pInstance)
- pInstance->SetData(DATA_LEOTHERASTHEBLINDEVENT, NOT_STARTED);
+ pInstance->SetData(DATA_LEOTHERASTHEBLINDEVENT, NOT_STARTED);
}
void CheckChannelers(bool DoEvade = true)
@@ -228,7 +228,7 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
Creature* binder = m_creature->SummonCreature(MOB_SPELLBINDER,nx,ny,z,o,TEMPSUMMON_DEAD_DESPAWN,0);
if (binder)
SpellBinderGUID[i] = binder->GetGUID();
-
+
}
}
void MoveInLineOfSight(Unit *who)
@@ -272,14 +272,14 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
// channelers == 0 remove banish aura
if(AliveChannelers == 0 && m_creature->HasAura(AURA_BANISH, 0))
- {
+ {
// removing banish aura
m_creature->RemoveAurasDueToSpell(AURA_BANISH);
- // Leotheras is getting immune again
+ // Leotheras is getting immune again
m_creature->ApplySpellImmune(AURA_BANISH, IMMUNITY_MECHANIC, MECHANIC_BANISH, true);
- // changing model to bloodelf
+ // changing model to bloodelf
m_creature->SetUInt32Value(UNIT_FIELD_DISPLAYID, MODEL_NIGHTELF);
// and reseting equipment
@@ -292,7 +292,7 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
if(victim)
m_creature->getThreatManager().addThreat(victim, 1);
StartEvent();
- }
+ }
}
else if(AliveChannelers != 0 && !m_creature->HasAura(AURA_BANISH, 0))
{
@@ -303,7 +303,7 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
// changing model
m_creature->SetUInt32Value(UNIT_FIELD_DISPLAYID, MODEL_DEMON);
-
+
// and removing weapons
m_creature->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_DISPLAY , 0);
m_creature->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_DISPLAY+1, 0);
@@ -418,7 +418,7 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
Unit *newTarget = SelectUnit(SELECT_TARGET_RANDOM, 0);
if(newTarget)
{
- DoResetThreat();
+ DoResetThreat();
m_creature->GetMotionMaster()->Clear();
m_creature->GetMotionMaster()->MovePoint(0,newTarget->GetPositionX(),newTarget->GetPositionY(),newTarget->GetPositionZ());
}
@@ -427,13 +427,13 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
// reseting after changing forms and after ending whirlwind
if(NeedThreatReset && !m_creature->HasAura(SPELL_WHIRLWIND, 0))
- {
+ {
// when changing forms seting timers (or when ending whirlwind - to avoid adding new variable i use Whirlwind_Timer to countdown 2s while whirlwinding)
if(DemonForm)
InnerDemons_Timer = 30000;
else
Whirlwind_Timer = 15000;
-
+
NeedThreatReset = false;
DoResetThreat();
m_creature->GetMotionMaster()->Clear();
@@ -486,7 +486,7 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
m_creature->StopMoving();
if(ChaosBlast_Timer < diff)
{
- // will cast only when in range of spell
+ // will cast only when in range of spell
if(m_creature->GetDistance(m_creature->getVictim()) < 30)
{
//m_creature->CastSpell(m_creature->getVictim(), SPELL_CHAOS_BLAST, true);
@@ -499,13 +499,13 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
if(InnerDemons_Timer < diff)
{
std::list& ThreatList = m_creature->getThreatManager().getThreatList();
- std::vector TargetList;
+ std::vector TargetList;
for(std::list::iterator itr = ThreatList.begin(); itr != ThreatList.end(); ++itr)
{
Unit *tempTarget = Unit::GetUnit(*m_creature, (*itr)->getUnitGuid());
if(tempTarget && tempTarget->GetTypeId() == TYPEID_PLAYER && tempTarget->GetGUID() != m_creature->getVictim()->GetGUID() && TargetList.size()<5)
TargetList.push_back( tempTarget );
- }
+ }
SpellEntry *spell = (SpellEntry *)GetSpellStore()->LookupEntry(SPELL_INSIDIOUS_WHISPER);
for(std::vector::iterator itr = TargetList.begin(); itr != TargetList.end(); ++itr)
{
@@ -516,7 +516,7 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blindAI : public ScriptedAI
{
((ScriptedAI *)demon->AI())->AttackStart( (*itr) );
((mob_inner_demonAI *)demon->AI())->victimGUID = (*itr)->GetGUID();
-
+
for (int i=0; i<3; i++)
{
if (!spell->Effect[i])
@@ -631,15 +631,15 @@ struct TRINITY_DLL_DECL boss_leotheras_the_blind_demonformAI : public ScriptedAI
//ChaosBlast_Timer
if(m_creature->GetDistance(m_creature->getVictim()) < 30)
m_creature->StopMoving();
-
+
if(ChaosBlast_Timer < diff)
{
- // will cast only when in range od spell
+ // will cast only when in range od spell
if(m_creature->GetDistance(m_creature->getVictim()) < 30)
{
//m_creature->CastSpell(m_creature->getVictim(),SPELL_CHAOS_BLAST,true);
int damage = 100;
- m_creature->CastCustomSpell(m_creature->getVictim(), SPELL_CHAOS_BLAST, &damage, NULL, NULL, false, NULL, NULL, m_creature->GetGUID());
+ m_creature->CastCustomSpell(m_creature->getVictim(), SPELL_CHAOS_BLAST, &damage, NULL, NULL, false, NULL, NULL, m_creature->GetGUID());
ChaosBlast_Timer = 3000;
}
}else ChaosBlast_Timer -= diff;
@@ -705,12 +705,12 @@ struct TRINITY_DLL_DECL mob_greyheart_spellbinderAI : public ScriptedAI
DoCast(leotheras, BANISH_BEAM);
}
}
- }
+ }
void UpdateAI(const uint32 diff)
{
if(pInstance)
- {
+ {
if(!leotherasGUID)
leotherasGUID = pInstance->GetData64(DATA_LEOTHERAS);
@@ -722,7 +722,7 @@ struct TRINITY_DLL_DECL mob_greyheart_spellbinderAI : public ScriptedAI
AttackStart(victim);
}
}
-
+
if(!UpdateVictim())
{
CastChanneling();
@@ -757,7 +757,7 @@ struct TRINITY_DLL_DECL mob_greyheart_spellbinderAI : public ScriptedAI
for(uint8 i = 0; i < CURRENT_MAX_SPELL; ++i)
if(i_pl->m_currentSpells[i])
isCasting = true;
-
+
if(isCasting)
{
DoCast(i_pl, SPELL_EARTHSHOCK);
diff --git a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lurker_below.cpp b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lurker_below.cpp
index 7fb0215169b..0baec82ac0c 100644
--- a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lurker_below.cpp
+++ b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lurker_below.cpp
@@ -52,7 +52,7 @@ EndScriptData */
#define SPELL_ARCINGSMASH 38761 // Wrong SpellId. Can't find the right one.
#define SPELL_HAMSTRING 26211
-float AddPos[9][3] =
+float AddPos[9][3] =
{
{2.8553810, -459.823914, -19.182686}, //MOVE_AMBUSHER_1 X, Y, Z
{12.400000, -466.042267, -19.182686}, //MOVE_AMBUSHER_2 X, Y, Z
@@ -64,7 +64,7 @@ float AddPos[9][3] =
{14.388216, -423.468018, -19.625271}, //MOVE_GUARDIAN_2 X, Y, Z
{42.471519, -445.115295, -19.769423} //MOVE_GUARDIAN_3 X, Y, Z
};
-
+
enum RotationType
{
NOROTATE = 0,
@@ -74,7 +74,7 @@ enum RotationType
struct TRINITY_DLL_DECL boss_the_lurker_belowAI : public Scripted_NoMovementAI
{
- boss_the_lurker_belowAI(Creature *c) : Scripted_NoMovementAI(c)
+ boss_the_lurker_belowAI(Creature *c) : Scripted_NoMovementAI(c)
{
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
@@ -133,7 +133,7 @@ struct TRINITY_DLL_DECL boss_the_lurker_belowAI : public Scripted_NoMovementAI
}*/
}
-
+
void MoveInLineOfSight(Unit *who)
{
if (!who || m_creature->getVictim())
@@ -143,18 +143,18 @@ struct TRINITY_DLL_DECL boss_the_lurker_belowAI : public Scripted_NoMovementAI
{
float attackRadius = m_creature->GetAttackDistance(who);
if (m_creature->IsWithinDistInMap(who, attackRadius) && m_creature->IsWithinLOSInMap(who))
- AttackStart(who);
+ AttackStart(who);
}
}
-
+
void Aggro(Unit *who)
{
if(pInstance)
pInstance->SetData(DATA_THELURKERBELOWEVENT, IN_PROGRESS);
-
- if (!who || m_creature->getVictim())
+
+ if (!who || m_creature->getVictim())
return;
-
+
if (who->isTargetableForAttack() && who->isInAccessiblePlaceFor(m_creature) && m_creature->IsHostileTo(who))
{
float attackRadius = m_creature->GetAttackDistance(who);
@@ -170,7 +170,7 @@ struct TRINITY_DLL_DECL boss_the_lurker_belowAI : public Scripted_NoMovementAI
}
void Rotate(const uint32 diff)
- {
+ {
bool Spout = false;
switch (RotType)
{
@@ -211,7 +211,7 @@ struct TRINITY_DLL_DECL boss_the_lurker_belowAI : public Scripted_NoMovementAI
if(SpoutAnimTimerGetMap();
@@ -241,7 +241,7 @@ struct TRINITY_DLL_DECL boss_the_lurker_belowAI : public Scripted_NoMovementAI
RotTimer=20000;
if(victim)
- SpoutAngle = m_creature->GetAngle(victim);
+ SpoutAngle = m_creature->GetAngle(victim);
m_creature->MonsterTextEmote(EMOTE_SPOUT,0,true);
//DoCast(m_creature,SPELL_SPOUT_BREATH);//take breath anim
}
@@ -260,7 +260,7 @@ struct TRINITY_DLL_DECL boss_the_lurker_belowAI : public Scripted_NoMovementAI
if (PlayerList.isEmpty())
return;
-
+
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
{
if (i->getSource()->isAlive() && i->getSource()->IsInWater() && !i->getSource()->HasAura(SPELL_SCALDINGWATER, 0))
@@ -281,7 +281,7 @@ struct TRINITY_DLL_DECL boss_the_lurker_belowAI : public Scripted_NoMovementAI
Submerged = true;
}else PhaseTimer-=diff;
}
-
+
if(!Submerged && RotType == NOROTATE)//is not spouting and not submerged
{
if(SpoutTimer < diff)
@@ -318,13 +318,13 @@ struct TRINITY_DLL_DECL boss_the_lurker_belowAI : public Scripted_NoMovementAI
if(WaterboltTimer < diff)
{
- Unit* target = SelectUnit(SELECT_TARGET_NEAREST,0,14,true);
+ Unit* target = SelectUnit(SELECT_TARGET_NEAREST,0,14,true);
if(!target)
{
target = SelectUnit(SELECT_TARGET_RANDOM,0);
if(target)
- DoCast(target,SPELL_WATERBOLT);
- }
+ DoCast(target,SPELL_WATERBOLT);
+ }
WaterboltTimer = 3000;
}else WaterboltTimer -= diff;
@@ -352,10 +352,10 @@ struct TRINITY_DLL_DECL boss_the_lurker_belowAI : public Scripted_NoMovementAI
PhaseTimer = 120000;
return;
}else PhaseTimer-=diff;
-
+
if(!m_creature->isInCombat())
m_creature->SetInCombatState(false);
-
+
if(!Spawned)
{
m_creature->SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
@@ -397,7 +397,7 @@ CreatureAI* GetAI_mob_coilfang_guardian(Creature *_Creature)
struct TRINITY_DLL_DECL mob_coilfang_ambusherAI : public Scripted_NoMovementAI
{
- mob_coilfang_ambusherAI(Creature *c) : Scripted_NoMovementAI(c)
+ mob_coilfang_ambusherAI(Creature *c) : Scripted_NoMovementAI(c)
{
Reset();
SpellEntry *TempSpell = (SpellEntry*)GetSpellStore()->LookupEntry(SPELL_SHOOT);
@@ -407,7 +407,7 @@ struct TRINITY_DLL_DECL mob_coilfang_ambusherAI : public Scripted_NoMovementAI
uint32 MultiShotTimer;
uint32 ShootBowTimer;
-
+
void Reset()
{
MultiShotTimer = 10000;
@@ -417,7 +417,7 @@ struct TRINITY_DLL_DECL mob_coilfang_ambusherAI : public Scripted_NoMovementAI
void Aggro(Unit *who)
{
-
+
}
void MoveInLineOfSight(Unit *who)
@@ -434,7 +434,7 @@ struct TRINITY_DLL_DECL mob_coilfang_ambusherAI : public Scripted_NoMovementAI
{
if(MultiShotTimer < diff)
{
- if(m_creature->getVictim())
+ if(m_creature->getVictim())
DoCast(m_creature->getVictim(), SPELL_SPREAD_SHOT, true);
MultiShotTimer = 10000;
@@ -444,7 +444,7 @@ struct TRINITY_DLL_DECL mob_coilfang_ambusherAI : public Scripted_NoMovementAI
if(ShootBowTimer < diff)
{
Unit* target = NULL;
- target = SelectUnit(SELECT_TARGET_RANDOM, 0);
+ target = SelectUnit(SELECT_TARGET_RANDOM, 0);
int bp0 = 1100;
if(target)
m_creature->CastCustomSpell(target,SPELL_SHOOT,&bp0,NULL,NULL,true);
diff --git a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_morogrim_tidewalker.cpp b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_morogrim_tidewalker.cpp
index 77d744d7006..3e0ff3e2c77 100644
--- a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_morogrim_tidewalker.cpp
+++ b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_morogrim_tidewalker.cpp
@@ -141,7 +141,7 @@ struct TRINITY_DLL_DECL boss_morogrim_tidewalkerAI : public ScriptedAI
DoScriptText(SAY_AGGRO, m_creature);
if (pInstance)
- pInstance->SetData(DATA_MOROGRIMTIDEWALKEREVENT, IN_PROGRESS);
+ pInstance->SetData(DATA_MOROGRIMTIDEWALKEREVENT, IN_PROGRESS);
}
void KilledUnit(Unit *victim)
@@ -161,9 +161,9 @@ struct TRINITY_DLL_DECL boss_morogrim_tidewalkerAI : public ScriptedAI
if (pInstance)
pInstance->SetData(DATA_MOROGRIMTIDEWALKEREVENT, NOT_STARTED);
}
-
- void Aggro(Unit *who)
- {
+
+ void Aggro(Unit *who)
+ {
PlayerList = &((InstanceMap*)m_creature->GetMap())->GetPlayers();
Playercount = PlayerList->getSize();
StartEvent();
@@ -212,7 +212,7 @@ struct TRINITY_DLL_DECL boss_morogrim_tidewalkerAI : public ScriptedAI
DoScriptText(EMOTE_EARTHQUAKE, m_creature);
Earthquake = false;
Earthquake_Timer = 40000+rand()%5000;
- }
+ }
}else Earthquake_Timer -= diff;
//TidalWave_Timer
@@ -234,7 +234,7 @@ struct TRINITY_DLL_DECL boss_morogrim_tidewalkerAI : public ScriptedAI
set::iterator itr;
for(uint8 i = 0; i < 4; i++)
{
- counter = 0;
+ counter = 0;
do{target = SelectUnit(SELECT_TARGET_RANDOM, 1, 50, true); //target players only
if(counter < Playercount)
break;
diff --git a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/instance_serpent_shrine.cpp b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/instance_serpent_shrine.cpp
index aaf6abdd3b0..1b7bade5f14 100644
--- a/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/instance_serpent_shrine.cpp
+++ b/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/instance_serpent_shrine.cpp
@@ -44,7 +44,7 @@ bool GOHello_go_bridge_console(Player *player, GameObject* go)
if (pInstance)
pInstance->SetData(DATA_CONTROL_CONSOLE, DONE);
-
+
return true;
}
diff --git a/src/bindings/scripts/scripts/zone/coilfang_resevoir/steam_vault/instance_steam_vault.cpp b/src/bindings/scripts/scripts/zone/coilfang_resevoir/steam_vault/instance_steam_vault.cpp
index e3415630684..6ea5517acf7 100644
--- a/src/bindings/scripts/scripts/zone/coilfang_resevoir/steam_vault/instance_steam_vault.cpp
+++ b/src/bindings/scripts/scripts/zone/coilfang_resevoir/steam_vault/instance_steam_vault.cpp
@@ -42,13 +42,13 @@ bool GOHello_go_main_chambers_access_panel(Player *player, GameObject* _GO)
if (!pInstance)
return false;
-
+
if (_GO->GetEntry() == ACCESS_PANEL_HYDRO && pInstance->GetData(TYPE_HYDROMANCER_THESPIA) == DONE)
pInstance->SetData(TYPE_HYDROMANCER_THESPIA,SPECIAL);
-
+
if (_GO->GetEntry() == ACCESS_PANEL_MEK && pInstance->GetData(TYPE_MEKGINEER_STEAMRIGGER) == DONE)
pInstance->SetData(TYPE_MEKGINEER_STEAMRIGGER,SPECIAL);
-
+
return true;
}
@@ -100,7 +100,7 @@ struct TRINITY_DLL_DECL instance_steam_vault : public ScriptedInstance
return plr;
}
}
-
+
debug_log("SD2: Instance Steamvault: GetPlayerInMap, but PlayerList is empty!");
return NULL;
}
@@ -128,7 +128,7 @@ struct TRINITY_DLL_DECL instance_steam_vault : public ScriptedInstance
void SetData(uint32 type, uint32 data)
{
Player *player = GetPlayerInMap();
-
+
if (!player)
{
debug_log("SD2: Instance Steamvault: SetData (Type: %u Data %u) cannot find any player.", type, data);
diff --git a/src/bindings/scripts/scripts/zone/deadmines/deadmines.cpp b/src/bindings/scripts/scripts/zone/deadmines/deadmines.cpp
index 4174aa20bd5..4bd33af98df 100644
--- a/src/bindings/scripts/scripts/zone/deadmines/deadmines.cpp
+++ b/src/bindings/scripts/scripts/zone/deadmines/deadmines.cpp
@@ -73,7 +73,7 @@ struct TRINITY_DLL_DECL instance_deadmines : public ScriptedInstance
DoPlaySound(IronCladDoor, SOUND_MR_SMITE_ALARM1);
State=CANNON_BLAST_INITIATED;
break;
- case CANNON_BLAST_INITIATED:
+ case CANNON_BLAST_INITIATED:
PiratesDelay_Timer = PIRATES_DELAY_TIMER;
if(CannonBlast_TimerYell(SAY_MR_SMITE_ALARM2, LANG_UNIVERSAL, 0);
DoPlaySound(IronCladDoor, SOUND_MR_SMITE_ALARM2);
- State = PIRATES_ATTACK;
+ State = PIRATES_ATTACK;
}else
- CannonBlast_Timer-=diff;
+ CannonBlast_Timer-=diff;
break;
case PIRATES_ATTACK:
if(PiratesDelay_TimerSummonCreature(657,IronCladDoor->GetPositionX() + 3,IronCladDoor->GetPositionY()-6,IronCladDoor->GetPositionZ(), 0, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 3000);
DefiasCompanion = IronCladDoor->SummonCreature(3450,IronCladDoor->GetPositionX() + 2,IronCladDoor->GetPositionY()-6,IronCladDoor->GetPositionZ(), 0, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 3000);
}
-
+
void MoveCreaturesInside()
{
MoveCreatureInside(DefiasPirate1);
@@ -155,14 +155,14 @@ struct TRINITY_DLL_DECL instance_deadmines : public ScriptedInstance
{
if (type == EVENT_STATE)
{
- if (DefiasCannon && IronCladDoor)
- State=data;
+ if (DefiasCannon && IronCladDoor)
+ State=data;
}
}
uint32 GetData(uint32 type)
{
- if (type == EVENT_STATE)
+ if (type == EVENT_STATE)
return State;
return 0;
}
@@ -221,7 +221,7 @@ void AddSC_instance_deadmines()
newscript->Name = "instance_deadmines";
newscript->GetInstanceData = &GetInstanceData_instance_deadmines;
newscript->RegisterSelf();
-
+
newscript = new Script;
newscript->Name = "item_defias_gunpowder";
newscript->pItemUse = &ItemUse_item_defias_gunpowder;
diff --git a/src/bindings/scripts/scripts/zone/eversong_woods/eversong_woods.cpp b/src/bindings/scripts/scripts/zone/eversong_woods/eversong_woods.cpp
index 885913ffbed..b0fbc5487e3 100644
--- a/src/bindings/scripts/scripts/zone/eversong_woods/eversong_woods.cpp
+++ b/src/bindings/scripts/scripts/zone/eversong_woods/eversong_woods.cpp
@@ -97,13 +97,13 @@ struct TRINITY_DLL_DECL npc_prospector_anvilwardAI : public npc_escortAI
}
void JustDied(Unit* killer)
- {
+ {
m_creature->setFaction(35);
}
void UpdateAI(const uint32 diff)
{
- npc_escortAI::UpdateAI(diff);
+ npc_escortAI::UpdateAI(diff);
}
};
@@ -543,7 +543,7 @@ bool GOHello_go_second_trial(Player *player, GameObject* _GO)
TypeContainerVisitor, GridTypeMapContainer > grid_unit_searcher(searcher);
//cell_lock->Visit(cell_lock, grid_unit_searcher, *MapManager::Instance().GetMap(_GO->GetMap(), _GO));
cell_lock->Visit(cell_lock, grid_unit_searcher, *(_GO->GetMap()));
-
+
if ( event_controller )
((master_kelerun_bloodmournAI*)event_controller->AI())->StartEvent();
@@ -583,7 +583,7 @@ struct TRINITY_DLL_DECL npc_apprentice_mirvedaAI : public ScriptedAI
Summons.Summon(summoned);
}
- void SummonedCreatureDespawn(Creature* summoned)
+ void SummonedCreatureDespawn(Creature* summoned)
{
Summons.Despawn(summoned);
++KillCount;
@@ -670,7 +670,7 @@ struct TRINITY_DLL_DECL npc_infused_crystalAI : public Scripted_NoMovementAI
bool Completed;
bool Progress;
uint64 PlayerGUID;
-
+
void Reset()
{
EndTimer = 0;
@@ -681,7 +681,7 @@ struct TRINITY_DLL_DECL npc_infused_crystalAI : public Scripted_NoMovementAI
}
void Aggro(Unit* who){}
-
+
void MoveInLineOfSight(Unit* who)
{
if( who->GetTypeId() == TYPEID_PLAYER && !m_creature->canStartAttack(who) && !Progress)
@@ -704,7 +704,7 @@ struct TRINITY_DLL_DECL npc_infused_crystalAI : public Scripted_NoMovementAI
{
summoned->AI()->AttackStart(m_creature);
}
-
+
void JustDied(Unit* killer)
{
if (PlayerGUID && !Completed)
@@ -714,7 +714,7 @@ struct TRINITY_DLL_DECL npc_infused_crystalAI : public Scripted_NoMovementAI
((Player*)player)->FailQuest(QUEST_POWERING_OUR_DEFENSES);
}
}
-
+
void UpdateAI(const uint32 diff)
{
if(EndTimer < diff && Progress)
@@ -743,7 +743,7 @@ struct TRINITY_DLL_DECL npc_infused_crystalAI : public Scripted_NoMovementAI
}else WaveTimer -= diff;
}
};
-
+
CreatureAI* GetAI_npc_infused_crystalAI(Creature *_Creature)
{
return new npc_infused_crystalAI (_Creature);
diff --git a/src/bindings/scripts/scripts/zone/ghostlands/ghostlands.cpp b/src/bindings/scripts/scripts/zone/ghostlands/ghostlands.cpp
index ecbd37abf2e..a81adad1291 100644
--- a/src/bindings/scripts/scripts/zone/ghostlands/ghostlands.cpp
+++ b/src/bindings/scripts/scripts/zone/ghostlands/ghostlands.cpp
@@ -134,7 +134,7 @@ bool GOHello_gilded_brazier(Player *player, GameObject* _GO)
/*######
## npc_ranger_lilatha
######*/
-
+
#define SAY_START -1000140
#define SAY_PROGRESS1 -1000141
#define SAY_PROGRESS2 -1000142
@@ -142,7 +142,7 @@ bool GOHello_gilded_brazier(Player *player, GameObject* _GO)
#define SAY_END1 -1000144
#define SAY_END2 -1000145
#define SAY_CAPTAIN_ANSWER -1000146
-
+
#define QUEST_ESCAPE_FROM_THE_CATACOMBS 9212
#define GO_CAGE 181152
#define NPC_CAPTAIN_HELIOS 16220
@@ -152,7 +152,7 @@ struct TRINITY_DLL_DECL npc_ranger_lilathaAI : public npc_escortAI
npc_ranger_lilathaAI(Creature *c) : npc_escortAI(c) {Reset();}
std::list CageList;
-
+
void WaypointReached(uint32 i)
{
Unit* player = Unit::GetUnit((*m_creature), PlayerGUID);
@@ -162,7 +162,7 @@ struct TRINITY_DLL_DECL npc_ranger_lilathaAI : public npc_escortAI
switch(i)
{
- case 0:
+ case 0:
{
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
GameObject* Cage = FindGameObject(GO_CAGE, 20, m_creature);
@@ -173,10 +173,10 @@ struct TRINITY_DLL_DECL npc_ranger_lilathaAI : public npc_escortAI
}
case 5:
DoScriptText(SAY_PROGRESS1, m_creature, player);
- case 11:
+ case 11:
DoScriptText(SAY_PROGRESS2, m_creature, player);
m_creature->SetOrientation(4.762841);
- break;
+ break;
case 18:
{
DoScriptText(SAY_PROGRESS3, m_creature, player);
@@ -185,30 +185,30 @@ struct TRINITY_DLL_DECL npc_ranger_lilathaAI : public npc_escortAI
Summ1->Attack(m_creature, true);
Summ2->Attack(player, true);
m_creature->AI()->AttackStart(Summ1);
- break;
+ break;
}
case 19: m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE); break;
case 25: m_creature->AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE); break;
case 30:
if (player && player->GetTypeId() == TYPEID_PLAYER)
- ((Player*)player)->GroupEventHappens(QUEST_ESCAPE_FROM_THE_CATACOMBS,m_creature);
+ ((Player*)player)->GroupEventHappens(QUEST_ESCAPE_FROM_THE_CATACOMBS,m_creature);
break;
- case 32:
+ case 32:
m_creature->SetOrientation(2.978281);
DoScriptText(SAY_END1, m_creature, player);
- break;
+ break;
case 33:
m_creature->SetOrientation(5.858011);
DoScriptText(SAY_END2, m_creature, player);
Unit* CaptainHelios = FindCreature(NPC_CAPTAIN_HELIOS, 50, m_creature);
if(CaptainHelios)
- DoScriptText(SAY_CAPTAIN_ANSWER, CaptainHelios, player);
- break;
+ DoScriptText(SAY_CAPTAIN_ANSWER, CaptainHelios, player);
+ break;
}
}
-
+
void Aggro(Unit* who) {}
-
+
void Reset()
{
if (!IsBeingEscorted)
@@ -218,7 +218,7 @@ struct TRINITY_DLL_DECL npc_ranger_lilathaAI : public npc_escortAI
if(Cage)
Cage->SetGoState(1);
}
-
+
void JustDied(Unit* killer)
{
if (PlayerGUID)
@@ -228,13 +228,13 @@ struct TRINITY_DLL_DECL npc_ranger_lilathaAI : public npc_escortAI
((Player*)player)->FailQuest(QUEST_ESCAPE_FROM_THE_CATACOMBS);
}
}
-
+
void UpdateAI(const uint32 diff)
{
npc_escortAI::UpdateAI(diff);
}
};
-
+
bool QuestAccept_npc_ranger_lilatha(Player* player, Creature* creature, Quest const* quest)
{
if (quest->GetQuestId() == QUEST_ESCAPE_FROM_THE_CATACOMBS)
@@ -244,11 +244,11 @@ bool QuestAccept_npc_ranger_lilatha(Player* player, Creature* creature, Quest co
}
return true;
}
-
+
CreatureAI* GetAI_npc_ranger_lilathaAI(Creature *_Creature)
{
npc_ranger_lilathaAI* ranger_lilathaAI = new npc_ranger_lilathaAI(_Creature);
-
+
ranger_lilathaAI->AddWaypoint(0, 7545.07, -7359.87, 162.354, 4000); // Say0
ranger_lilathaAI->AddWaypoint(1, 7550.048340, -7362.237793, 162.235657);
ranger_lilathaAI->AddWaypoint(2, 7566.976074, -7364.315430, 161.738770);
@@ -283,11 +283,11 @@ CreatureAI* GetAI_npc_ranger_lilathaAI(Creature *_Creature)
ranger_lilathaAI->AddWaypoint(31, 7603.768066, -7667.000488, 153.997726);
ranger_lilathaAI->AddWaypoint(32, 7603.768066, -7667.000488, 153.997726, 4000); // Say4 & Set orientation
ranger_lilathaAI->AddWaypoint(33, 7603.768066, -7667.000488, 153.997726, 8000); // Say5 & Set orientation
- ranger_lilathaAI->AddWaypoint(34, 7603.768066, -7667.000488, 153.997726);
-
+ ranger_lilathaAI->AddWaypoint(34, 7603.768066, -7667.000488, 153.997726);
+
return (CreatureAI*)ranger_lilathaAI;
}
-
+
void AddSC_ghostlands()
{
Script *newscript;
diff --git a/src/bindings/scripts/scripts/zone/gruuls_lair/boss_gruul.cpp b/src/bindings/scripts/scripts/zone/gruuls_lair/boss_gruul.cpp
index 8317f1d2062..0aed97dcf66 100644
--- a/src/bindings/scripts/scripts/zone/gruuls_lair/boss_gruul.cpp
+++ b/src/bindings/scripts/scripts/zone/gruuls_lair/boss_gruul.cpp
@@ -51,7 +51,7 @@ EndScriptData */
struct TRINITY_DLL_DECL boss_gruulAI : public ScriptedAI
{
- boss_gruulAI(Creature *c) : ScriptedAI(c)
+ boss_gruulAI(Creature *c) : ScriptedAI(c)
{
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
@@ -122,7 +122,7 @@ struct TRINITY_DLL_DECL boss_gruulAI : public ScriptedAI
void KilledUnit()
{
switch(rand()%3)
- {
+ {
case 0: DoScriptText(SAY_SLAY1, m_creature); break;
case 1: DoScriptText(SAY_SLAY2, m_creature); break;
case 2: DoScriptText(SAY_SLAY3, m_creature); break;
diff --git a/src/bindings/scripts/scripts/zone/gruuls_lair/boss_high_king_maulgar.cpp b/src/bindings/scripts/scripts/zone/gruuls_lair/boss_high_king_maulgar.cpp
index bdfbe1446d5..ce828367531 100644
--- a/src/bindings/scripts/scripts/zone/gruuls_lair/boss_high_king_maulgar.cpp
+++ b/src/bindings/scripts/scripts/zone/gruuls_lair/boss_high_king_maulgar.cpp
@@ -132,7 +132,7 @@ struct TRINITY_DLL_DECL boss_high_king_maulgarAI : public ScriptedAI
void JustDied(Unit* Killer)
{
DoScriptText(SAY_DEATH, m_creature);
-
+
if (pInstance)
{
pInstance->SetData(DATA_MAULGAREVENT, DONE);
@@ -178,7 +178,7 @@ struct TRINITY_DLL_DECL boss_high_king_maulgarAI : public ScriptedAI
GetCouncil();
DoScriptText(SAY_AGGRO, m_creature);
-
+
pInstance->SetData64(DATA_MAULGAREVENT_TANK, who->GetGUID());
pInstance->SetData(DATA_MAULGAREVENT, IN_PROGRESS);
@@ -237,9 +237,9 @@ struct TRINITY_DLL_DECL boss_high_king_maulgarAI : public ScriptedAI
Phase2 = true;
DoScriptText(SAY_ENRAGE, m_creature);
- m_creature->CastSpell(m_creature, SPELL_DUAL_WIELD, true);
+ m_creature->CastSpell(m_creature, SPELL_DUAL_WIELD, true);
m_creature->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_DISPLAY, 0);
- m_creature->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_DISPLAY+1, 0);
+ m_creature->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_DISPLAY+1, 0);
}
if(Phase2)
@@ -251,7 +251,7 @@ struct TRINITY_DLL_DECL boss_high_king_maulgarAI : public ScriptedAI
target = SelectUnit(SELECT_TARGET_RANDOM, 0);
if (target)
AttackStart(target);
- DoCast(target, SPELL_BERSERKER_C);
+ DoCast(target, SPELL_BERSERKER_C);
Charging_Timer = 20000;
}else Charging_Timer -= diff;
@@ -416,7 +416,7 @@ struct TRINITY_DLL_DECL boss_kiggler_the_crazedAI : public ScriptedAI
((boss_high_king_maulgarAI*)Maulgar->AI())->AddDeath();
}
}
-
+
void UpdateAI(const uint32 diff)
{
//Only if not incombat check if the event is started
diff --git a/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp b/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp
index 8e9a87d8c41..b8247eac92f 100644
--- a/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp
+++ b/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_Kelidan_The_Breaker
SD%Complete: 100
-SDComment:
+SDComment:
SDCategory: Hellfire Citadel, Blood Furnace
EndScriptData */
@@ -182,7 +182,7 @@ struct TRINITY_DLL_DECL boss_kelidan_the_breakerAI : public ScriptedAI
void JustDied(Unit* Killer)
{
DoScriptText(SAY_DIE, m_creature);
- if(pInstance)
+ if(pInstance)
pInstance->SetData(DATA_KELIDANEVENT, DONE);
}
diff --git a/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/instance_blood_furnace.cpp b/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/instance_blood_furnace.cpp
index 3c803350bb6..aae064d77c6 100644
--- a/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/instance_blood_furnace.cpp
+++ b/src/bindings/scripts/scripts/zone/hellfire_citadel/blood_furnace/instance_blood_furnace.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Instance_Blood_Furnace
SD%Complete: 85
-SDComment:
+SDComment:
SDCategory: Hellfire Citadel, Blood Furnace
EndScriptData */
@@ -63,21 +63,21 @@ struct TRINITY_DLL_DECL instance_blood_furnace : public ScriptedInstance
return plr;
}
}
-
+
debug_log("TSCR: Instance Blood Furnace: GetPlayerInMap, but PlayerList is empty!");
return NULL;
}
-
+
void HandleGameObject(uint64 guid, uint32 state)
{
Player *player = GetPlayerInMap();
-
+
if (!player || !guid)
{
debug_log("TSCR: Blood Furnace: HandleGameObject fail");
return;
}
-
+
if (GameObject *go = GameObject::GetGameObject(*player,guid))
go->SetGoState(state);
}
diff --git a/src/bindings/scripts/scripts/zone/hellfire_citadel/hellfire_ramparts/boss_vazruden_the_herald.cpp b/src/bindings/scripts/scripts/zone/hellfire_citadel/hellfire_ramparts/boss_vazruden_the_herald.cpp
index 4d4e9dcdd5c..165b27c9a0f 100644
--- a/src/bindings/scripts/scripts/zone/hellfire_citadel/hellfire_ramparts/boss_vazruden_the_herald.cpp
+++ b/src/bindings/scripts/scripts/zone/hellfire_citadel/hellfire_ramparts/boss_vazruden_the_herald.cpp
@@ -85,7 +85,7 @@ struct TRINITY_DLL_DECL boss_nazanAI : public ScriptedAI
Turn_Timer = 0;
UnsummonCheck = 5000;
}
-
+
void Aggro(Unit* who) {}
void JustSummoned(Creature *summoned)
@@ -309,7 +309,7 @@ struct TRINITY_DLL_DECL boss_vazruden_the_heraldAI : public ScriptedAI
void SummonAdds()
{
if(!summoned)
- {
+ {
Creature* Vazruden = m_creature->SummonCreature(ENTRY_VAZRUDEN,VazrudenMiddle[0],VazrudenMiddle[1],VazrudenMiddle[2],0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,6000000);
VazrudenGUID = Vazruden->GetGUID();
Creature* Nazan = m_creature->SummonCreature(ENTRY_NAZAN,VazrudenMiddle[0],VazrudenMiddle[1],VazrudenMiddle[2],0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,6000000);
@@ -406,7 +406,7 @@ struct TRINITY_DLL_DECL boss_vazruden_the_heraldAI : public ScriptedAI
break;
}
}
-};
+};
struct TRINITY_DLL_DECL mob_hellfire_sentryAI : public ScriptedAI
{
diff --git a/src/bindings/scripts/scripts/zone/hellfire_citadel/magtheridons_lair/boss_magtheridon.cpp b/src/bindings/scripts/scripts/zone/hellfire_citadel/magtheridons_lair/boss_magtheridon.cpp
index fdce1519c77..c6d7fd2031a 100644
--- a/src/bindings/scripts/scripts/zone/hellfire_citadel/magtheridons_lair/boss_magtheridon.cpp
+++ b/src/bindings/scripts/scripts/zone/hellfire_citadel/magtheridons_lair/boss_magtheridon.cpp
@@ -55,7 +55,7 @@ static Yell RandomTaunt[]=
#define MOB_CHANNELLER 17256
#define MOB_ABYSSAL 17454
-#define SPELL_BLASTNOVA 30616
+#define SPELL_BLASTNOVA 30616
#define SPELL_CLEAVE 30619
#define SPELL_QUAKE_TRIGGER 30657 // must be cast with 30561 as the proc spell
#define SPELL_QUAKE_KNOCKBACK 30571
@@ -125,7 +125,7 @@ struct TRINITY_DLL_DECL mob_abyssalAI : public ScriptedAI
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
m_creature->CastSpell(m_creature, SPELL_DEBRIS_VISUAL, true);
FireBlast_Timer = 5000;
- Despawn_Timer = 10000;
+ Despawn_Timer = 10000;
}
}
@@ -169,9 +169,9 @@ struct TRINITY_DLL_DECL mob_abyssalAI : public ScriptedAI
struct TRINITY_DLL_DECL boss_magtheridonAI : public ScriptedAI
{
- boss_magtheridonAI(Creature *c) : ScriptedAI(c)
+ boss_magtheridonAI(Creature *c) : ScriptedAI(c)
{
- pInstance =(ScriptedInstance*)m_creature->GetInstanceData();
+ pInstance =(ScriptedInstance*)m_creature->GetInstanceData();
m_creature->SetFloatValue(UNIT_FIELD_BOUNDINGRADIUS, 10);
m_creature->SetFloatValue(UNIT_FIELD_COMBATREACH, 10);
@@ -208,7 +208,7 @@ struct TRINITY_DLL_DECL boss_magtheridonAI : public ScriptedAI
bool NeedCheckCube;
void Reset()
- {
+ {
if(pInstance)
{
pInstance->SetData(DATA_MAGTHERIDON_EVENT, NOT_STARTED);
@@ -379,10 +379,10 @@ struct TRINITY_DLL_DECL boss_magtheridonAI : public ScriptedAI
Blaze_Timer = 20000 + rand()%20000;
}else Blaze_Timer -= diff;
- if(!Phase3 && m_creature->GetHealth()*10 < m_creature->GetMaxHealth()*3
+ if(!Phase3 && m_creature->GetHealth()*10 < m_creature->GetMaxHealth()*3
&& !m_creature->IsNonMeleeSpellCasted(false) // blast nova
&& !m_creature->hasUnitState(UNIT_STAT_STUNNED)) // shadow cage and earthquake
- {
+ {
Phase3 = true;
DoScriptText(SAY_CHAMBER_DESTROY, m_creature);
m_creature->CastSpell(m_creature, SPELL_CAMERA_SHAKE, true);
@@ -471,8 +471,8 @@ struct TRINITY_DLL_DECL mob_hellfire_channelerAI : public ScriptedAI
void UpdateAI(const uint32 diff)
{
if(!UpdateVictim())
- return;
-
+ return;
+
if(ShadowBoltVolley_Timer < diff)
{
DoCast(m_creature, SPELL_SHADOW_BOLT_VOLLEY);
@@ -497,7 +497,7 @@ struct TRINITY_DLL_DECL mob_hellfire_channelerAI : public ScriptedAI
{
if(Unit* target = SelectUnit(SELECT_TARGET_RANDOM, 0))
m_creature->CastSpell(target, SPELL_BURNING_ABYSSAL, true);
- Infernal_Timer = 30000 + rand()%10000;
+ Infernal_Timer = 30000 + rand()%10000;
}else Infernal_Timer -= diff;
DoMeleeAttackIfReady();
diff --git a/src/bindings/scripts/scripts/zone/hellfire_citadel/magtheridons_lair/instance_magtheridons_lair.cpp b/src/bindings/scripts/scripts/zone/hellfire_citadel/magtheridons_lair/instance_magtheridons_lair.cpp
index 0925a5054f3..c4a2eabd068 100644
--- a/src/bindings/scripts/scripts/zone/hellfire_citadel/magtheridons_lair/instance_magtheridons_lair.cpp
+++ b/src/bindings/scripts/scripts/zone/hellfire_citadel/magtheridons_lair/instance_magtheridons_lair.cpp
@@ -58,7 +58,7 @@ struct TRINITY_DLL_DECL instance_magtheridons_lair : public ScriptedInstance
MagtheridonGUID = 0;
ChannelerGUID.clear();
DoorGUID = 0;
- ColumnGUID.clear();
+ ColumnGUID.clear();
CageTimer = 0;
RespawnTimer = 0;
diff --git a/src/bindings/scripts/scripts/zone/hellfire_citadel/shattered_halls/boss_warchief_kargath_bladefist.cpp b/src/bindings/scripts/scripts/zone/hellfire_citadel/shattered_halls/boss_warchief_kargath_bladefist.cpp
index aa275d013e5..60df1f14b52 100644
--- a/src/bindings/scripts/scripts/zone/hellfire_citadel/shattered_halls/boss_warchief_kargath_bladefist.cpp
+++ b/src/bindings/scripts/scripts/zone/hellfire_citadel/shattered_halls/boss_warchief_kargath_bladefist.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 2008 - 2009 BroodWyrm */
+/* Copyright (C) 2008 - 2009 BroodWyrm */
#include "precompiled.h"
#define SPELL_BLADE_DANCE 30739
@@ -51,11 +51,11 @@ struct TRINITY_DLL_DECL boss_warchief_kargath_bladefistAI : public ScriptedAI
uint32 Assassins_Timer;
- uint32 summoned;
+ uint32 summoned;
bool InBlade;
uint32 target_num;
-
+
void Reset()
{
removeAdds();
@@ -143,7 +143,7 @@ struct TRINITY_DLL_DECL boss_warchief_kargath_bladefistAI : public ScriptedAI
if(id != 1)
return;
-
+
if(target_num > 0) // to prevent loops
{
Wait_Timer = 1;
@@ -160,7 +160,7 @@ struct TRINITY_DLL_DECL boss_warchief_kargath_bladefistAI : public ScriptedAI
Unit* temp = Unit::GetUnit((*m_creature),*itr);
if(temp && temp->isAlive())
{
- (*temp).GetMotionMaster()->Clear(true);
+ (*temp).GetMotionMaster()->Clear(true);
m_creature->DealDamage(temp,temp->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
((Creature*)temp)->RemoveCorpse();
}
@@ -181,10 +181,10 @@ struct TRINITY_DLL_DECL boss_warchief_kargath_bladefistAI : public ScriptedAI
}
void SpawnAssassin()
{
- m_creature->SummonCreature(MOB_SHATTERED_ASSASSIN,AssassEntrance[0],AssassEntrance[1]+8, AssassEntrance[2], 0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,10000);
- m_creature->SummonCreature(MOB_SHATTERED_ASSASSIN,AssassEntrance[0],AssassEntrance[1]-8, AssassEntrance[2], 0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,10000);
+ m_creature->SummonCreature(MOB_SHATTERED_ASSASSIN,AssassEntrance[0],AssassEntrance[1]+8, AssassEntrance[2], 0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,10000);
+ m_creature->SummonCreature(MOB_SHATTERED_ASSASSIN,AssassEntrance[0],AssassEntrance[1]-8, AssassEntrance[2], 0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,10000);
m_creature->SummonCreature(MOB_SHATTERED_ASSASSIN,AssassExit[0],AssassExit[1]+8, AssassExit[2], 0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,10000);
- m_creature->SummonCreature(MOB_SHATTERED_ASSASSIN,AssassExit[0],AssassExit[1]-8, AssassExit[2], 0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,10000);
+ m_creature->SummonCreature(MOB_SHATTERED_ASSASSIN,AssassExit[0],AssassExit[1]-8, AssassExit[2], 0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,10000);
}
void UpdateAI(const uint32 diff)
@@ -276,10 +276,10 @@ struct TRINITY_DLL_DECL boss_warchief_kargath_bladefistAI : public ScriptedAI
tempy = m_creature->GetPositionY();
if ( tempx > 255 || tempx < 205)
{
- EnterEvadeMode();
+ EnterEvadeMode();
}
resetcheck_timer = 5000;
- }else resetcheck_timer -= diff;
+ }else resetcheck_timer -= diff;
}
};
diff --git a/src/bindings/scripts/scripts/zone/hellfire_peninsula/boss_doomlord_kazzak.cpp b/src/bindings/scripts/scripts/zone/hellfire_peninsula/boss_doomlord_kazzak.cpp
index d4a8631a86a..05770d534f2 100644
--- a/src/bindings/scripts/scripts/zone/hellfire_peninsula/boss_doomlord_kazzak.cpp
+++ b/src/bindings/scripts/scripts/zone/hellfire_peninsula/boss_doomlord_kazzak.cpp
@@ -72,10 +72,10 @@ struct TRINITY_DLL_DECL boss_doomlordkazzakAI : public ScriptedAI
{
DoScriptText(SAY_INTRO, m_creature);
}
-
+
void Aggro(Unit *who)
{
- switch(rand()%2)
+ switch(rand()%2)
{
case 0: DoScriptText(SAY_AGGRO1, m_creature); break;
case 1: DoScriptText(SAY_AGGRO2, m_creature); break;
@@ -97,7 +97,7 @@ struct TRINITY_DLL_DECL boss_doomlordkazzakAI : public ScriptedAI
case 2: DoScriptText(SAY_KILL3, m_creature); break;
}
}
-
+
void JustDied(Unit *victim)
{
DoScriptText(SAY_DEATH, m_creature);
diff --git a/src/bindings/scripts/scripts/zone/hellfire_peninsula/hellfire_peninsula.cpp b/src/bindings/scripts/scripts/zone/hellfire_peninsula/hellfire_peninsula.cpp
index bda4d137894..7cfd32955ca 100644
--- a/src/bindings/scripts/scripts/zone/hellfire_peninsula/hellfire_peninsula.cpp
+++ b/src/bindings/scripts/scripts/zone/hellfire_peninsula/hellfire_peninsula.cpp
@@ -240,15 +240,15 @@ bool GossipSelect_npc_wing_commander_brack(Player *player, Creature *_Creature,
{
switch(action)
{
- case GOSSIP_ACTION_INFO_DEF + 1:
+ case GOSSIP_ACTION_INFO_DEF + 1:
player->CLOSE_GOSSIP_MENU();
player->CastSpell(player,33659,true); //TaxiPath 584 (Gateways Murket and Shaadraz)
- break;
+ break;
case GOSSIP_ACTION_INFO_DEF + 2:
player->CLOSE_GOSSIP_MENU();
player->CastSpell(player,33825,true); //TaxiPath 587 (Aerial Assault Flight (Horde))
break;
- case GOSSIP_ACTION_INFO_DEF + 3:
+ case GOSSIP_ACTION_INFO_DEF + 3:
player->CLOSE_GOSSIP_MENU();
player->CastSpell(player,34578,true); //TaxiPath 604 (Taxi - Reaver's Fall to Spinebreaker Ridge)
break;
@@ -259,7 +259,7 @@ bool GossipSelect_npc_wing_commander_brack(Player *player, Creature *_Creature,
/*######
## npc_wounded_blood_elf
######*/
-
+
#define SAY_ELF_START -1000117
#define SAY_ELF_SUMMON1 -1000118
#define SAY_ELF_RESTING -1000119
@@ -268,7 +268,7 @@ bool GossipSelect_npc_wing_commander_brack(Player *player, Creature *_Creature,
#define SAY_ELF_AGGRO -1000122
#define QUEST_ROAD_TO_FALCON_WATCH 9375
-
+
struct TRINITY_DLL_DECL npc_wounded_blood_elfAI : public npc_escortAI
{
npc_wounded_blood_elfAI(Creature *c) : npc_escortAI(c) {Reset();}
@@ -279,7 +279,7 @@ struct TRINITY_DLL_DECL npc_wounded_blood_elfAI : public npc_escortAI
if (!player)
return;
-
+
switch (i)
{
case 0:
@@ -311,7 +311,7 @@ struct TRINITY_DLL_DECL npc_wounded_blood_elfAI : public npc_escortAI
break;
}
}
-
+
void Reset()
{
if (!IsBeingEscorted)
@@ -323,7 +323,7 @@ struct TRINITY_DLL_DECL npc_wounded_blood_elfAI : public npc_escortAI
if (IsBeingEscorted)
DoScriptText(SAY_ELF_AGGRO, m_creature);
}
-
+
void JustSummoned(Creature* summoned)
{
summoned->AI()->AttackStart(m_creature);
@@ -342,13 +342,13 @@ struct TRINITY_DLL_DECL npc_wounded_blood_elfAI : public npc_escortAI
((Player*)player)->FailQuest(QUEST_ROAD_TO_FALCON_WATCH);
}
}
-
+
void UpdateAI(const uint32 diff)
{
npc_escortAI::UpdateAI(diff);
}
};
-
+
CreatureAI* GetAI_npc_wounded_blood_elf(Creature *_Creature)
{
npc_wounded_blood_elfAI* welfAI = new npc_wounded_blood_elfAI(_Creature);
@@ -381,10 +381,10 @@ CreatureAI* GetAI_npc_wounded_blood_elf(Creature *_Creature)
welfAI->AddWaypoint(25, -656.74, 4147.72, 64.11);
welfAI->AddWaypoint(26, -652.22, 4137.50, 64.58);
welfAI->AddWaypoint(27, -649.99, 4136.38, 64.63, 30000);// Award Quest Credit
-
+
return (CreatureAI*)welfAI;
}
-
+
bool QuestAccept_npc_wounded_blood_elf(Player* player, Creature* creature, Quest const* quest)
{
if (quest->GetQuestId() == QUEST_ROAD_TO_FALCON_WATCH)
@@ -393,7 +393,7 @@ bool QuestAccept_npc_wounded_blood_elf(Player* player, Creature* creature, Quest
// Change faction so mobs attack
creature->setFaction(775);
}
-
+
return true;
}
@@ -432,7 +432,7 @@ void AddSC_hellfire_peninsula()
newscript->pGossipHello = &GossipHello_npc_wing_commander_brack;
newscript->pGossipSelect = &GossipSelect_npc_wing_commander_brack;
newscript->RegisterSelf();
-
+
newscript = new Script;
newscript->Name="npc_wounded_blood_elf";
newscript->GetAI = &GetAI_npc_wounded_blood_elf;
diff --git a/src/bindings/scripts/scripts/zone/isle_of_queldanas/isle_of_queldanas.cpp b/src/bindings/scripts/scripts/zone/isle_of_queldanas/isle_of_queldanas.cpp
index b5fab052181..99aedf23bca 100644
--- a/src/bindings/scripts/scripts/zone/isle_of_queldanas/isle_of_queldanas.cpp
+++ b/src/bindings/scripts/scripts/zone/isle_of_queldanas/isle_of_queldanas.cpp
@@ -170,7 +170,7 @@ struct TRINITY_DLL_DECL npc_greengill_slaveAI : public ScriptedAI
if(PlayerGUID)
{
Unit* plr = Unit::GetUnit((*m_creature), PlayerGUID);
- if(plr && ((Player*)plr)->GetQuestStatus(QUESTG) == QUEST_STATUS_INCOMPLETE)
+ if(plr && ((Player*)plr)->GetQuestStatus(QUESTG) == QUEST_STATUS_INCOMPLETE)
((Player*)plr)->KilledMonster(25086, m_creature->GetGUID());
}
DoCast(m_creature, ENRAGE);
diff --git a/src/bindings/scripts/scripts/zone/karazhan/boss_curator.cpp b/src/bindings/scripts/scripts/zone/karazhan/boss_curator.cpp
index 300e06c5592..bf26d71398f 100644
--- a/src/bindings/scripts/scripts/zone/karazhan/boss_curator.cpp
+++ b/src/bindings/scripts/scripts/zone/karazhan/boss_curator.cpp
@@ -70,7 +70,7 @@ struct TRINITY_DLL_DECL boss_curatorAI : public ScriptedAI
switch(rand()%2)
{
case 0: DoScriptText(SAY_KILL1, m_creature); break;
- case 1: DoScriptText(SAY_KILL2, m_creature); break;
+ case 1: DoScriptText(SAY_KILL2, m_creature); break;
}
}
diff --git a/src/bindings/scripts/scripts/zone/karazhan/boss_maiden_of_virtue.cpp b/src/bindings/scripts/scripts/zone/karazhan/boss_maiden_of_virtue.cpp
index e41ab83543e..3030715ff27 100644
--- a/src/bindings/scripts/scripts/zone/karazhan/boss_maiden_of_virtue.cpp
+++ b/src/bindings/scripts/scripts/zone/karazhan/boss_maiden_of_virtue.cpp
@@ -65,7 +65,7 @@ struct TRINITY_DLL_DECL boss_maiden_of_virtueAI : public ScriptedAI
void KilledUnit(Unit* Victim)
{
- if(rand()%2)
+ if(rand()%2)
return;
switch(rand()%3)
@@ -117,19 +117,19 @@ struct TRINITY_DLL_DECL boss_maiden_of_virtueAI : public ScriptedAI
if (Holyfire_Timer < diff)
{
- if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM,0))
+ if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM,0))
DoCast(target,SPELL_HOLYFIRE);
- Holyfire_Timer = 8000 + rand()%17000; //Anywhere from 8 to 25 seconds, good luck having several of those in a row!
+ Holyfire_Timer = 8000 + rand()%17000; //Anywhere from 8 to 25 seconds, good luck having several of those in a row!
}else Holyfire_Timer -= diff;
if (Holywrath_Timer < diff)
{
if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM,0))
DoCast(target,SPELL_HOLYWRATH);
-
+
Holywrath_Timer = 20000+(rand()%10000); //20-30 secs sounds nice
-
+
}else Holywrath_Timer -= diff;
DoMeleeAttackIfReady();
diff --git a/src/bindings/scripts/scripts/zone/karazhan/boss_midnight.cpp b/src/bindings/scripts/scripts/zone/karazhan/boss_midnight.cpp
index e1f6c89f8c2..731f7ce2df9 100644
--- a/src/bindings/scripts/scripts/zone/karazhan/boss_midnight.cpp
+++ b/src/bindings/scripts/scripts/zone/karazhan/boss_midnight.cpp
@@ -203,7 +203,7 @@ struct TRINITY_DLL_DECL boss_attumenAI : public ScriptedAI
{
DoScriptText(SAY_DEATH, m_creature);
if (Unit *pMidnight = Unit::GetUnit(*m_creature, Midnight))
- pMidnight->DealDamage(pMidnight, pMidnight->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
+ pMidnight->DealDamage(pMidnight, pMidnight->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
}
void UpdateAI(const uint32 diff)
@@ -293,8 +293,8 @@ struct TRINITY_DLL_DECL boss_attumenAI : public ScriptedAI
void SpellHit(Unit *source, const SpellEntry *spell)
{
- if(spell->Mechanic == MECHANIC_DISARM)
- DoScriptText(SAY_DISARMED, m_creature);
+ if(spell->Mechanic == MECHANIC_DISARM)
+ DoScriptText(SAY_DISARMED, m_creature);
}
};
diff --git a/src/bindings/scripts/scripts/zone/karazhan/boss_moroes.cpp b/src/bindings/scripts/scripts/zone/karazhan/boss_moroes.cpp
index 12115dfa1d0..12c2a92ec91 100644
--- a/src/bindings/scripts/scripts/zone/karazhan/boss_moroes.cpp
+++ b/src/bindings/scripts/scripts/zone/karazhan/boss_moroes.cpp
@@ -147,7 +147,7 @@ struct TRINITY_DLL_DECL boss_moroesAI : public ScriptedAI
if (PlayerList.isEmpty())
return;
-
+
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
{
if (i->getSource()->isAlive() && i->getSource()->HasAura(SPELL_GARROTE,0))
@@ -326,7 +326,7 @@ struct TRINITY_DLL_DECL boss_moroesAI : public ScriptedAI
//Gouge highest aggro, and attack second highest
if (Gouge_Timer < diff)
{
- DoCast(m_creature->getVictim(), SPELL_GOUGE);
+ DoCast(m_creature->getVictim(), SPELL_GOUGE);
Gouge_Timer = 40000;
}else Gouge_Timer -= diff;
diff --git a/src/bindings/scripts/scripts/zone/karazhan/boss_nightbane.cpp b/src/bindings/scripts/scripts/zone/karazhan/boss_nightbane.cpp
index eabc302551b..fb78c46235c 100644
--- a/src/bindings/scripts/scripts/zone/karazhan/boss_nightbane.cpp
+++ b/src/bindings/scripts/scripts/zone/karazhan/boss_nightbane.cpp
@@ -23,7 +23,7 @@ EndScriptData */
#include "precompiled.h"
#include "def_karazhan.h"
-
+
//phase 1
#define SPELL_BELLOWING_ROAR 39427
#define SPELL_CHARRED_EARTH 30129
@@ -44,7 +44,7 @@ EndScriptData */
#define YELL_LAND_PHASE_2 "Insects! Let me show you my strength up close!"
#define EMOTE_BREATH "takes a deep breath."
-float IntroWay[8][3] =
+float IntroWay[8][3] =
{
{-11053.37,-1794.48,149},
{-11141.07,-1841.40,125},
@@ -52,11 +52,11 @@ float IntroWay[8][3] =
{-11189.20,-1931.25,125},
{-11153.76,-1948.93,125},
{-11128.73,-1929.75,125},
- {-11140 , -1915 ,122},
+ {-11140 , -1915 ,122},
{-11163 , -1903 ,91.473}
};
-//float IntroWay[5][3] =
+//float IntroWay[5][3] =
//{
// {-11000.00, -1765.75, 140.40},
// {-11000.00, -1765.75, 171.00},
@@ -71,7 +71,7 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
{
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Intro = true;
- Reset();
+ Reset();
}
ScriptedInstance* pInstance;
@@ -117,7 +117,7 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
Phase =1;
FlyCount = 0;
MovePhase = 0;
-
+
m_creature->SetSpeed(MOVE_RUN, 2.0f);
m_creature->AddUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT + MOVEMENTFLAG_LEVITATING);
m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
@@ -139,7 +139,7 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
m_creature->GetMotionMaster()->MoveTargetedHome();
}
}
-
+
void HandleTerraceDoors(bool open)
{
if(GameObject *Door = GameObject::GetGameObject((*m_creature),pInstance->GetData64(DATA_MASTERS_TERRACE_DOOR_1)))
@@ -167,7 +167,7 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
{
if(pInstance)
pInstance->SetData(DATA_NIGHTBANE_EVENT, DONE);
-
+
HandleTerraceDoors(true);
}
@@ -179,7 +179,7 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
ScriptedAI::AttackStart(who);
}
}
-
+
void MovementInform(uint32 type, uint32 id)
{
if(type != POINT_MOTION_TYPE)
@@ -193,7 +193,7 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
m_creature->SetHomePosition(IntroWay[7][0],IntroWay[7][1],IntroWay[7][2],0);
return;
}
-
+
WaitTimer = 1;
}
@@ -201,7 +201,7 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
{
if(id == 0)
{
- DoTextEmote(EMOTE_BREATH, NULL, true);
+ DoTextEmote(EMOTE_BREATH, NULL, true);
Flying = false;
Phase = 2;
return;
@@ -240,7 +240,7 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
m_creature->AddUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT + MOVEMENTFLAG_LEVITATING);
(*m_creature).GetMotionMaster()->Clear(false);
(*m_creature).GetMotionMaster()->MovePoint(0,IntroWay[2][0],IntroWay[2][1],IntroWay[2][2]);
-
+
Flying = true;
FlyTimer = 45000+rand()%15000; //timer wrong between 45 and 60 seconds
@@ -259,37 +259,37 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
if(Intro)
{
if(MovePhase >= 7)
- {
+ {
m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT + MOVEMENTFLAG_LEVITATING);
m_creature->HandleEmoteCommand(EMOTE_ONESHOT_LAND);
m_creature->GetMotionMaster()->MovePoint(8,IntroWay[7][0],IntroWay[7][1],IntroWay[7][2]);
}
- else
+ else
{
m_creature->GetMotionMaster()->MovePoint(MovePhase,IntroWay[MovePhase][0],IntroWay[MovePhase][1],IntroWay[MovePhase][2]);
++MovePhase;
}
}
-
+
if(Flying)
{
if(MovePhase >= 7)
- {
+ {
m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT + MOVEMENTFLAG_LEVITATING);
m_creature->HandleEmoteCommand(EMOTE_ONESHOT_LAND);
m_creature->GetMotionMaster()->MovePoint(8,IntroWay[7][0],IntroWay[7][1],IntroWay[7][2]);
}
- else
+ else
{
m_creature->GetMotionMaster()->MovePoint(MovePhase,IntroWay[MovePhase][0],IntroWay[MovePhase][1],IntroWay[MovePhase][2]);
++MovePhase;
}
}
-
+
WaitTimer = 0;
}else WaitTimer -= diff;
- if(!UpdateVictim())
+ if(!UpdateVictim())
return;
if(Flying)
@@ -318,7 +318,7 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
if (CharredEarthTimer < diff)
{
- if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM, 0))
+ if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM, 0))
DoCast(target,SPELL_CHARRED_EARTH);
CharredEarthTimer = 20000; //timer
}else CharredEarthTimer -= diff;
@@ -326,7 +326,7 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
if (TailSweepTimer < diff)
{
if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM, 0))
- if (!m_creature->HasInArc( M_PI, target))
+ if (!m_creature->HasInArc( M_PI, target))
DoCast(target,SPELL_TAIL_SWEEP);
TailSweepTimer = 15000;//timer
}else TailSweepTimer -= diff;
@@ -335,24 +335,24 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
{
if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM, 0))
DoCast(target,SPELL_SEARING_CINDERS);
- SearingCindersTimer = 10000; //timer
+ SearingCindersTimer = 10000; //timer
}else SearingCindersTimer -= diff;
uint32 Prozent;
Prozent = (m_creature->GetHealth()*100) / m_creature->GetMaxHealth();
- if (Prozent < 75 && FlyCount == 0) // first take off 75%
- TakeOff();
+ if (Prozent < 75 && FlyCount == 0) // first take off 75%
+ TakeOff();
- if (Prozent < 50 && FlyCount == 1) // secound take off 50%
- TakeOff();
+ if (Prozent < 50 && FlyCount == 1) // secound take off 50%
+ TakeOff();
- if (Prozent < 25 && FlyCount == 2) // third take off 25%
+ if (Prozent < 25 && FlyCount == 2) // third take off 25%
TakeOff();
-
+
DoMeleeAttackIfReady();
}
-
+
//Phase 2 "FLYING FIGHT"
if (Phase == 2)
{
@@ -368,7 +368,7 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
if (RainofBonesTimer < diff && !RainBones) // only once at the beginning of phase 2
{
- DoCast(m_creature->getVictim(),SPELL_RAIN_OF_BONES);
+ DoCast(m_creature->getVictim(),SPELL_RAIN_OF_BONES);
RainBones = true;
SmokingBlastTimer = 20000;
}else RainofBonesTimer -= diff;
@@ -394,20 +394,20 @@ struct TRINITY_DLL_DECL boss_nightbaneAI : public ScriptedAI
{
if (Unit* target = SelectUnit(SELECT_TARGET_FARTHEST, 0))
DoCast(target,SPELL_FIREBALL_BARRAGE);
- FireballBarrageTimer = 20000; //Timer
+ FireballBarrageTimer = 20000; //Timer
}else FireballBarrageTimer -= diff;
if (FlyTimer < diff) //landing
{
if(rand()%2 == 0)
DoYell(YELL_LAND_PHASE_1, LANG_UNIVERSAL, NULL);
- else
- DoYell(YELL_LAND_PHASE_2, LANG_UNIVERSAL, NULL);
+ else
+ DoYell(YELL_LAND_PHASE_2, LANG_UNIVERSAL, NULL);
(*m_creature).GetMotionMaster()->Clear(false);
m_creature->GetMotionMaster()->MovePoint(3,IntroWay[3][0],IntroWay[3][1],IntroWay[3][2]);
- Flying = true;
+ Flying = true;
}else FlyTimer -= diff;
}
}
diff --git a/src/bindings/scripts/scripts/zone/karazhan/boss_prince_malchezaar.cpp b/src/bindings/scripts/scripts/zone/karazhan/boss_prince_malchezaar.cpp
index 6a56b720f78..96d24878ebd 100644
--- a/src/bindings/scripts/scripts/zone/karazhan/boss_prince_malchezaar.cpp
+++ b/src/bindings/scripts/scripts/zone/karazhan/boss_prince_malchezaar.cpp
@@ -156,7 +156,7 @@ struct TRINITY_DLL_DECL netherspite_infernalAI : public ScriptedAI
struct TRINITY_DLL_DECL boss_malchezaarAI : public ScriptedAI
{
- boss_malchezaarAI(Creature *c) : ScriptedAI(c)
+ boss_malchezaarAI(Creature *c) : ScriptedAI(c)
{
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
diff --git a/src/bindings/scripts/scripts/zone/karazhan/boss_shade_of_aran.cpp b/src/bindings/scripts/scripts/zone/karazhan/boss_shade_of_aran.cpp
index 030781fed64..555ebafcb9e 100644
--- a/src/bindings/scripts/scripts/zone/karazhan/boss_shade_of_aran.cpp
+++ b/src/bindings/scripts/scripts/zone/karazhan/boss_shade_of_aran.cpp
@@ -251,7 +251,7 @@ struct TRINITY_DLL_DECL boss_aranAI : public ScriptedAI
}
if (FrostCooldown)
- {
+ {
if (FrostCooldown >= diff)
FrostCooldown -= diff;
else FrostCooldown = 0;
diff --git a/src/bindings/scripts/scripts/zone/karazhan/bosses_opera.cpp b/src/bindings/scripts/scripts/zone/karazhan/bosses_opera.cpp
index 73f19b03e61..ef528d518df 100644
--- a/src/bindings/scripts/scripts/zone/karazhan/bosses_opera.cpp
+++ b/src/bindings/scripts/scripts/zone/karazhan/bosses_opera.cpp
@@ -32,20 +32,20 @@ EndScriptData */
#define SAY_DOROTHEE_SUMMON -1532026
#define SAY_DOROTHEE_TITO_DEATH -1532027
#define SAY_DOROTHEE_AGGRO -1532028
-
+
#define SAY_ROAR_AGGRO -1532029
#define SAY_ROAR_DEATH -1532030
#define SAY_ROAR_SLAY -1532031
-
+
#define SAY_STRAWMAN_AGGRO -1532032
#define SAY_STRAWMAN_DEATH -1532033
#define SAY_STRAWMAN_SLAY -1532034
-
+
#define SAY_TINHEAD_AGGRO -1532035
#define SAY_TINHEAD_DEATH -1532036
#define SAY_TINHEAD_SLAY -1532037
#define EMOTE_RUST -1532038
-
+
#define SAY_CRONE_AGGRO -1532039
#define SAY_CRONE_AGGRO2 -1532040
#define SAY_CRONE_DEATH -1532041
@@ -855,7 +855,7 @@ CreatureAI* GetAI_boss_bigbadwolf(Creature* _Creature)
#define SAY_JULIANNE_DEATH02 -1532049
#define SAY_JULIANNE_RESURRECT -1532050
#define SAY_JULIANNE_SLAY -1532051
-
+
#define SAY_ROMULO_AGGRO -1532052
#define SAY_ROMULO_DEATH -1532053
#define SAY_ROMULO_ENTER -1532054
diff --git a/src/bindings/scripts/scripts/zone/karazhan/instance_karazhan.cpp b/src/bindings/scripts/scripts/zone/karazhan/instance_karazhan.cpp
index 5b5dd3dabd9..b0a6f5d130b 100644
--- a/src/bindings/scripts/scripts/zone/karazhan/instance_karazhan.cpp
+++ b/src/bindings/scripts/scripts/zone/karazhan/instance_karazhan.cpp
@@ -46,7 +46,7 @@ struct TRINITY_DLL_DECL instance_karazhan : public ScriptedInstance
uint32 Encounters[ENCOUNTERS];
- uint32 OperaEvent;
+ uint32 OperaEvent;
uint32 OzDeathCount;
uint64 CurtainGUID;
@@ -96,7 +96,7 @@ struct TRINITY_DLL_DECL instance_karazhan : public ScriptedInstance
bool IsEncounterInProgress() const
{
for (uint8 i = 0; i < ENCOUNTERS; ++i)
- if (Encounters[i] == IN_PROGRESS)
+ if (Encounters[i] == IN_PROGRESS)
return true;
return false;
@@ -192,7 +192,7 @@ struct TRINITY_DLL_DECL instance_karazhan : public ScriptedInstance
void SetData64(uint32 identifier, uint64 data)
{
switch(identifier)
- {
+ {
case DATA_IMAGE_OF_MEDIVH: ImageGUID = data;
}
}
diff --git a/src/bindings/scripts/scripts/zone/karazhan/karazhan.cpp b/src/bindings/scripts/scripts/zone/karazhan/karazhan.cpp
index eb69b604be6..49febb5520f 100644
--- a/src/bindings/scripts/scripts/zone/karazhan/karazhan.cpp
+++ b/src/bindings/scripts/scripts/zone/karazhan/karazhan.cpp
@@ -484,7 +484,7 @@ struct TRINITY_DLL_DECL npc_image_of_medivhAI : public ScriptedAI
pInstance->SetData64(DATA_IMAGE_OF_MEDIVH, m_creature->GetGUID());
(*m_creature).GetMotionMaster()->MovePoint(1,MedivPos[0],MedivPos[1],MedivPos[2]);
Step = 0;
- }else
+ }else
{
m_creature->DealDamage(m_creature,m_creature->GetHealth(),NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
m_creature->RemoveCorpse();
@@ -591,11 +591,11 @@ struct TRINITY_DLL_DECL npc_image_of_medivhAI : public ScriptedAI
}
return 50000;
case 15:
- arca->DealDamage(arca,arca->GetHealth(),NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
+ arca->DealDamage(arca,arca->GetHealth(),NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
return 5000;
- default : return 9999999;
- }
-
+ default : return 9999999;
+ }
+
}
void UpdateAI(const uint32 diff)
diff --git a/src/bindings/scripts/scripts/zone/magisters_terrace/boss_felblood_kaelthas.cpp b/src/bindings/scripts/scripts/zone/magisters_terrace/boss_felblood_kaelthas.cpp
index 24df5e7d0d8..2141d8dcb2e 100644
--- a/src/bindings/scripts/scripts/zone/magisters_terrace/boss_felblood_kaelthas.cpp
+++ b/src/bindings/scripts/scripts/zone/magisters_terrace/boss_felblood_kaelthas.cpp
@@ -140,7 +140,7 @@ struct TRINITY_DLL_DECL boss_felblood_kaelthasAI : public ScriptedAI
pInstance->SetData(DATA_KAELTHAS_EVENT, NOT_STARTED);
}
}
-
+
void KilledUnit(Unit* victim)
{
if(victim && (victim->GetTypeId() == TYPEID_PLAYER))
@@ -177,7 +177,7 @@ struct TRINITY_DLL_DECL boss_felblood_kaelthasAI : public ScriptedAI
void SetThreatList(Creature* SummonedUnit)
{
- if(!SummonedUnit)
+ if(!SummonedUnit)
return;
std::list& m_threatlist = m_creature->getThreatManager().getThreatList();
@@ -276,7 +276,7 @@ struct TRINITY_DLL_DECL boss_felblood_kaelthasAI : public ScriptedAI
Map::PlayerList const &PlayerList = map->GetPlayers();
Map::PlayerList::const_iterator i;
for (i = PlayerList.begin(); i != PlayerList.end(); ++i)
- {
+ {
if(Player* i_pl = i->getSource())
{
i_pl->RemoveAurasDueToSpell(SPELL_GRAVITY_LAPSE_FLY);
@@ -419,10 +419,10 @@ struct TRINITY_DLL_DECL boss_felblood_kaelthasAI : public ScriptedAI
GravityLapseTimer = 30000;
GravityLapsePhase = 4;
for(uint8 i = 0; i < 3; ++i)
- {
+ {
Creature* Orb = m_creature->SummonCreature(CREATURE_ARCANE_SPHERE,KaelLocations[3+i][0],KaelLocations[3+i][1],LOCATION_Z,0,TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN,30000);
- if(Orb)
- {
+ if(Orb)
+ {
SetThreatList(Orb);
Unit *target = SelectUnit(SELECT_TARGET_BOTTOMAGGRO,i);
if(target)
@@ -564,7 +564,7 @@ struct TRINITY_DLL_DECL mob_felkael_phoenixAI : public ScriptedAI
DoCast(m_creature->getVictim(), SPELL_PHOENIX_FIREBALL);
}
BurnTimer = 2000;
- }else BurnTimer -= diff;
+ }else BurnTimer -= diff;
//DoMeleeAttackIfReady();
}
@@ -586,7 +586,7 @@ struct TRINITY_DLL_DECL mob_felkael_phoenix_eggAI : public Scripted_NoMovementAI
void MoveInLineOfSight(Unit* who) {}
void UpdateAI(const uint32 diff)
{
-
+
if(HatchTimer < diff)
{
Creature *bird = DoSpawnCreature(CREATURE_PHOENIX, 0, 0, 0, 0, TEMPSUMMON_CORPSE_DESPAWN, 60000);
@@ -695,7 +695,7 @@ bool GOHello_go_movie_orb(Player *player, GameObject* _GO)
WorldPacket data(SMSG_TRIGGER_CINEMATIC, 4);
data << (uint32)164;
player->GetSession()->SendPacket(&data);
-
+
if (player->GetQuestStatus(11490) == QUEST_STATUS_INCOMPLETE)
{
Unit *qUnit = player->SummonCreature(25042,player->GetPositionX(),player->GetPositionY(),player->GetPositionZ()-10,0,TEMPSUMMON_CORPSE_DESPAWN,0);
diff --git a/src/bindings/scripts/scripts/zone/magisters_terrace/boss_priestess_delrissa.cpp b/src/bindings/scripts/scripts/zone/magisters_terrace/boss_priestess_delrissa.cpp
index 6688e40c27c..5eae41aa45f 100644
--- a/src/bindings/scripts/scripts/zone/magisters_terrace/boss_priestess_delrissa.cpp
+++ b/src/bindings/scripts/scripts/zone/magisters_terrace/boss_priestess_delrissa.cpp
@@ -99,7 +99,7 @@ struct TRINITY_DLL_DECL boss_priestess_delrissaAI : public ScriptedAI
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Adds.clear();
//SummonAdds();
- Reset();
+ Reset();
Heroic = c->GetMap()->IsHeroic();
}
@@ -192,7 +192,7 @@ struct TRINITY_DLL_DECL boss_priestess_delrissaAI : public ScriptedAI
{
pAdd->AI()->EnterEvadeMode();
pAdd->GetMotionMaster()->MovePoint(0,LackeyLocations[i][0], LackeyLocations[i][1], POS_Z);
- }
+ }
if(!pAdd || (pAdd && pAdd->isDead()))
{
if(pAdd)
@@ -751,7 +751,7 @@ struct TRINITY_DLL_DECL boss_yazzaiAI : public boss_priestess_guestAI
if(!UpdateVictim() )
return;
- boss_priestess_guestAI::UpdateAI(diff);
+ boss_priestess_guestAI::UpdateAI(diff);
if(Polymorph_Timer < diff)
{
@@ -816,7 +816,7 @@ struct TRINITY_DLL_DECL boss_yazzaiAI : public boss_priestess_guestAI
x = rand()%2 ? x+10+rand()%10 : x-10-rand()%10;
y = rand()%2 ? y+10+rand()%10 : y-10-rand()%10;
m_creature->Relocate(x,y,z);
- m_creature->SendMonsterMove(x, y, m_creature->GetPositionZ(), 0,0,0);
+ m_creature->SendMonsterMove(x, y, m_creature->GetPositionZ(), 0,0,0);
}
Blink_Timer = 8000;
}else Blink_Timer -= diff;
@@ -1206,7 +1206,7 @@ struct TRINITY_DLL_DECL boss_zelfanAI : public boss_priestess_guestAI
boss_priestess_guestAI::UpdateAI(diff);
if(Goblin_Dragon_Gun_Timer < diff)
- {
+ {
if (m_creature->GetDistance(m_creature->getVictim()) <= 5)
{
Goblin_Dragon_Gun_Timer = 10000;
diff --git a/src/bindings/scripts/scripts/zone/magisters_terrace/boss_selin_fireheart.cpp b/src/bindings/scripts/scripts/zone/magisters_terrace/boss_selin_fireheart.cpp
index fe6d3cb7ca4..df5653eba1f 100644
--- a/src/bindings/scripts/scripts/zone/magisters_terrace/boss_selin_fireheart.cpp
+++ b/src/bindings/scripts/scripts/zone/magisters_terrace/boss_selin_fireheart.cpp
@@ -113,7 +113,7 @@ struct TRINITY_DLL_DECL boss_selin_fireheartAI : public ScriptedAI
pInstance->SetData(DATA_SELIN_EVENT, DONE);
else pInstance->SetData(DATA_SELIN_EVENT, NOT_STARTED);
}else error_log(ERROR_INST_DATA);
-
+
DrainLifeTimer = 3000 + rand()%4000;
DrainManaTimer = DrainLifeTimer + 5000;
FelExplosionTimer = 2100;
diff --git a/src/bindings/scripts/scripts/zone/magisters_terrace/instance_magisters_terrace.cpp b/src/bindings/scripts/scripts/zone/magisters_terrace/instance_magisters_terrace.cpp
index 3caa4e1ebb1..fe07b7d7f2f 100644
--- a/src/bindings/scripts/scripts/zone/magisters_terrace/instance_magisters_terrace.cpp
+++ b/src/bindings/scripts/scripts/zone/magisters_terrace/instance_magisters_terrace.cpp
@@ -106,29 +106,29 @@ struct TRINITY_DLL_DECL instance_magisters_terrace : public ScriptedInstance
{
switch(identifier)
{
- case DATA_SELIN_EVENT:
- Encounters[0] = data;
+ case DATA_SELIN_EVENT:
+ Encounters[0] = data;
if(data==DONE)
{
DoorState[0] = 0;
SaveToDB();
}
break;
- case DATA_VEXALLUS_EVENT:
- Encounters[1] = data;
+ case DATA_VEXALLUS_EVENT:
+ Encounters[1] = data;
if(data==DONE)
{
DoorState[1] = 0;
SaveToDB();
}
break;
- case DATA_DELRISSA_EVENT:
- Encounters[2] = data;
+ case DATA_DELRISSA_EVENT:
+ Encounters[2] = data;
if(data==DONE)
{
DoorState[2] = 0;
SaveToDB();
- }
+ }
break;
case DATA_KAELTHAS_EVENT: Encounters[3] = data; break;
@@ -177,20 +177,20 @@ struct TRINITY_DLL_DECL instance_magisters_terrace : public ScriptedInstance
{
switch(go->GetEntry())
{
- case 187896:
- VexallusDoorGUID = go->GetGUID();
+ case 187896:
+ VexallusDoorGUID = go->GetGUID();
go->SetGoState(DoorState[1]);
break;
//SunwellRaid Gate 02
- case 187979:
- SelinDoorGUID = go->GetGUID();
+ case 187979:
+ SelinDoorGUID = go->GetGUID();
go->SetGoState(DoorState[0]);
break;
//Assembly Chamber Door
case 188065: SelinEncounterDoorGUID = go->GetGUID(); break;
- case 187770:
- DelrissaDoorGUID = go->GetGUID();
- go->SetGoState(DoorState[2]);
+ case 187770:
+ DelrissaDoorGUID = go->GetGUID();
+ go->SetGoState(DoorState[2]);
break;
case 188165: KaelStatue[0] = go->GetGUID(); break;
case 188166: KaelStatue[1] = go->GetGUID(); break;
diff --git a/src/bindings/scripts/scripts/zone/molten_core/boss_golemagg.cpp b/src/bindings/scripts/scripts/zone/molten_core/boss_golemagg.cpp
index 1c849cd5936..1001a9240ab 100644
--- a/src/bindings/scripts/scripts/zone/molten_core/boss_golemagg.cpp
+++ b/src/bindings/scripts/scripts/zone/molten_core/boss_golemagg.cpp
@@ -66,7 +66,7 @@ struct TRINITY_DLL_DECL boss_golemaggAI : public ScriptedAI
void JustDied(Unit* Killer)
{
-
+
if(pInstance)
pInstance->SetData(DATA_GOLEMAGG_DEATH, 0);
}
diff --git a/src/bindings/scripts/scripts/zone/molten_core/boss_majordomo_executus.cpp b/src/bindings/scripts/scripts/zone/molten_core/boss_majordomo_executus.cpp
index 3e77f52fa77..cce0a783d44 100644
--- a/src/bindings/scripts/scripts/zone/molten_core/boss_majordomo_executus.cpp
+++ b/src/bindings/scripts/scripts/zone/molten_core/boss_majordomo_executus.cpp
@@ -28,18 +28,18 @@ EndScriptData */
#define SAY_SLAY -1409005
#define SAY_SPECIAL -1409006
#define SAY_DEFEAT -1409007
-
+
#define SAY_SUMMON_MAJ -1409008
#define SAY_ARRIVAL1_RAG -1409009
#define SAY_ARRIVAL2_MAJ -1409010
#define SAY_ARRIVAL3_RAG -1409011
#define SAY_ARRIVAL5_RAG -1409012
-
+
#define SPAWN_RAG_X 838.51
#define SPAWN_RAG_Y -829.84
#define SPAWN_RAG_Z -232.00
#define SPAWN_RAG_O 1.70
-
+
#define SPELL_MAGIC_REFLECTION 20619
#define SPELL_DAMAGE_REFLECTION 21075
diff --git a/src/bindings/scripts/scripts/zone/molten_core/instance_molten_core.cpp b/src/bindings/scripts/scripts/zone/molten_core/instance_molten_core.cpp
index cd13967e5ec..9069175a5ef 100644
--- a/src/bindings/scripts/scripts/zone/molten_core/instance_molten_core.cpp
+++ b/src/bindings/scripts/scripts/zone/molten_core/instance_molten_core.cpp
@@ -94,7 +94,7 @@ struct TRINITY_DLL_DECL instance_molten_core : public ScriptedInstance
return false;
};
-
+
void OnObjectCreate(GameObject *go)
{
switch(go->GetEntry())
@@ -188,7 +188,7 @@ struct TRINITY_DLL_DECL instance_molten_core : public ScriptedInstance
}
return 0;
- }
+ }
uint32 GetData(uint32 type)
{
diff --git a/src/bindings/scripts/scripts/zone/moonglade/moonglade.cpp b/src/bindings/scripts/scripts/zone/moonglade/moonglade.cpp
index f2433ea9234..03d799e30d7 100644
--- a/src/bindings/scripts/scripts/zone/moonglade/moonglade.cpp
+++ b/src/bindings/scripts/scripts/zone/moonglade/moonglade.cpp
@@ -201,7 +201,7 @@ bool GossipSelect_npc_silva_filnaveth(Player *player, Creature *_Creature, uint3
## npc_clintar_spirit
######*/
-float Clintar_spirit_WP[41][5] =
+float Clintar_spirit_WP[41][5] =
{
//pos_x pos_y pos_z orien waitTime
{7465.28, -3115.46, 439.327, 0.83, 4000},
@@ -524,7 +524,7 @@ CreatureAI* GetAI_npc_clintar_spirit(Creature *_Creature)
# npc_clintar_dreamwalker
####*/
-#define CLINTAR_SPIRIT 22916
+#define CLINTAR_SPIRIT 22916
bool QuestAccept_npc_clintar_dreamwalker(Player *player, Creature *creature, Quest const *quest )
{
@@ -538,7 +538,7 @@ bool QuestAccept_npc_clintar_dreamwalker(Player *player, Creature *creature, Que
}
/*####
-#
+#
####*/
void AddSC_moonglade()
diff --git a/src/bindings/scripts/scripts/zone/mulgore/mulgore.cpp b/src/bindings/scripts/scripts/zone/mulgore/mulgore.cpp
index a2027ac3904..8d4d68fe7fb 100644
--- a/src/bindings/scripts/scripts/zone/mulgore/mulgore.cpp
+++ b/src/bindings/scripts/scripts/zone/mulgore/mulgore.cpp
@@ -97,7 +97,7 @@ struct TRINITY_DLL_DECL npc_kyle_frenziedAI : public ScriptedAI
void MovementInform(uint32 type, uint32 id)
{
if(type == POINT_MOTION_TYPE)
- {
+ {
switch(STATE)
{
case 1:
@@ -129,7 +129,7 @@ struct TRINITY_DLL_DECL npc_kyle_frenziedAI : public ScriptedAI
{
switch(STATE)
{
- case 2:
+ case 2:
STATE = 3; wait = 7000;
m_creature->UpdateEntry(23622,HORDE);
m_creature->HandleEmoteCommand(EMOTE_ONESHOT_DANCE);
diff --git a/src/bindings/scripts/scripts/zone/naxxramas/boss_faerlina.cpp b/src/bindings/scripts/scripts/zone/naxxramas/boss_faerlina.cpp
index 49921ad24f0..1df59d08ca5 100644
--- a/src/bindings/scripts/scripts/zone/naxxramas/boss_faerlina.cpp
+++ b/src/bindings/scripts/scripts/zone/naxxramas/boss_faerlina.cpp
@@ -68,11 +68,11 @@ struct TRINITY_DLL_DECL boss_faerlinaAI : public ScriptedAI
void MoveInLineOfSight(Unit *who)
{
- if (!HasTaunted && m_creature->IsWithinDistInMap(who, 60.0f))
+ if (!HasTaunted && m_creature->IsWithinDistInMap(who, 60.0f))
{
DoScriptText(SAY_GREET, m_creature);
HasTaunted = true;
-
+
}
ScriptedAI::MoveInLineOfSight(who);
}
diff --git a/src/bindings/scripts/scripts/zone/naxxramas/boss_four_horsemen.cpp b/src/bindings/scripts/scripts/zone/naxxramas/boss_four_horsemen.cpp
index 527d19aff05..496d0d68526 100644
--- a/src/bindings/scripts/scripts/zone/naxxramas/boss_four_horsemen.cpp
+++ b/src/bindings/scripts/scripts/zone/naxxramas/boss_four_horsemen.cpp
@@ -13,20 +13,20 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
+
/* ScriptData
SDName: Boss_Four_Horsemen
SD%Complete: 75
SDComment: Lady Blaumeux, Thane Korthazz, Sir Zeliek, Baron Rivendare
SDCategory: Naxxramas
EndScriptData */
-
+
#include "precompiled.h"
-
+
//all horsemen
#define SPELL_SHIELDWALL 29061
#define SPELL_BESERK 26662
-
+
//lady blaumeux
#define SAY_BLAU_AGGRO -1533044
#define SAY_BLAU_TAUNT1 -1533045
@@ -35,25 +35,25 @@
#define SAY_BLAU_SPECIAL -1533048
#define SAY_BLAU_SLAY -1533049
#define SAY_BLAU_DEATH -1533050
-
+
#define SPELL_MARK_OF_BLAUMEUX 28833
#define SPELL_UNYILDING_PAIN 57381
#define SPELL_VOIDZONE 28863
#define H_SPELL_VOIDZONE 57463
#define SPELL_SHADOW_BOLT 57374
#define H_SPELL_SHADOW_BOLT 57464
-
+
#define C_SPIRIT_OF_BLAUMEUX 16776
-
+
struct TRINITY_DLL_DECL boss_lady_blaumeuxAI : public ScriptedAI
{
boss_lady_blaumeuxAI(Creature *c) : ScriptedAI(c) {Reset();}
-
+
uint32 Mark_Timer;
uint32 VoidZone_Timer;
bool ShieldWall1;
bool ShieldWall2;
-
+
void Reset()
{
Mark_Timer = 20000; // First Horsemen Mark is applied at 20 sec.
@@ -61,34 +61,34 @@
ShieldWall1 = true;
ShieldWall2 = true;
}
-
+
void Aggro(Unit *who)
{
DoScriptText(SAY_BLAU_AGGRO, m_creature);
}
-
+
void KilledUnit(Unit* Victim)
{
DoScriptText(SAY_BLAU_SLAY, m_creature);
}
-
+
void JustDied(Unit* Killer)
{
DoScriptText(SAY_BLAU_DEATH, m_creature);
}
-
+
void UpdateAI(const uint32 diff)
{
if (!UpdateVictim())
return;
-
+
// Mark of Blaumeux
if (Mark_Timer < diff)
{
DoCast(m_creature->getVictim(),SPELL_MARK_OF_BLAUMEUX);
Mark_Timer = 12000;
}else Mark_Timer -= diff;
-
+
// Shield Wall - All 4 horsemen will shield wall at 50% hp and 20% hp for 20 seconds
if (ShieldWall1 && (m_creature->GetHealth()*100 / m_creature->GetMaxHealth()) < 50)
{
@@ -106,23 +106,23 @@
ShieldWall2 = false;
}
}
-
+
// Void Zone
if (VoidZone_Timer < diff)
{
DoCast(m_creature->getVictim(),SPELL_VOIDZONE);
VoidZone_Timer = 12000;
}else VoidZone_Timer -= diff;
-
+
DoMeleeAttackIfReady();
}
};
-
+
CreatureAI* GetAI_boss_lady_blaumeux(Creature *_Creature)
{
return new boss_lady_blaumeuxAI (_Creature);
}
-
+
//baron rivendare
#define SAY_RIVE_AGGRO1 -1533065
#define SAY_RIVE_AGGRO2 -1533066
@@ -134,21 +134,21 @@
#define SAY_RIVE_TAUNT2 -1533072
#define SAY_RIVE_TAUNT3 -1533073
#define SAY_RIVE_DEATH -1533074
-
+
#define SPELL_MARK_OF_RIVENDARE 28834
#define SPELL_UNHOLY_SHADOW 28882
#define H_SPELL_UNHOLY_SHADOW 57369
-
+
#define C_SPIRIT_OF_RIVENDARE 0 //creature entry not known yet
-
+
struct TRINITY_DLL_DECL boss_rivendare_naxxAI : public ScriptedAI
{
boss_rivendare_naxxAI(Creature *c) : ScriptedAI(c) {Reset();}
-
+
void Reset()
{
}
-
+
void Aggro(Unit *who)
{
switch(rand()%3)
@@ -158,7 +158,7 @@
case 2: DoScriptText(SAY_RIVE_AGGRO3, m_creature); break;
}
}
-
+
void KilledUnit(Unit* Victim)
{
switch(rand()%2)
@@ -167,26 +167,26 @@
case 1: DoScriptText(SAY_RIVE_SLAY2, m_creature); break;
}
}
-
+
void JustDied(Unit* Killer)
{
DoScriptText(SAY_RIVE_DEATH, m_creature);
}
-
+
void UpdateAI(const uint32 diff)
{
if (!UpdateVictim())
return;
-
+
DoMeleeAttackIfReady();
}
};
-
+
CreatureAI* GetAI_boss_rivendare_naxx(Creature *_Creature)
{
return new boss_rivendare_naxxAI (_Creature);
}
-
+
//thane korthazz
#define SAY_KORT_AGGRO -1533051
#define SAY_KORT_TAUNT1 -1533052
@@ -195,21 +195,21 @@
#define SAY_KORT_SPECIAL -1533055
#define SAY_KORT_SLAY -1533056
#define SAY_KORT_DEATH -1533057
-
+
#define SPELL_MARK_OF_KORTHAZZ 28832
#define SPELL_METEOR 26558 // m_creature->getVictim() auto-area spell but with a core problem
-
+
#define C_SPIRIT_OF_KORTHAZZ 16778
-
+
struct TRINITY_DLL_DECL boss_thane_korthazzAI : public ScriptedAI
{
boss_thane_korthazzAI(Creature *c) : ScriptedAI(c) {Reset();}
-
+
uint32 Mark_Timer;
uint32 Meteor_Timer;
bool ShieldWall1;
bool ShieldWall2;
-
+
void Reset()
{
Mark_Timer = 20000; // First Horsemen Mark is applied at 20 sec.
@@ -217,34 +217,34 @@
ShieldWall1 = true;
ShieldWall2 = true;
}
-
+
void Aggro(Unit *who)
{
DoScriptText(SAY_KORT_AGGRO, m_creature);
}
-
+
void KilledUnit(Unit* Victim)
{
DoScriptText(SAY_KORT_SLAY, m_creature);
}
-
+
void JustDied(Unit* Killer)
{
DoScriptText(SAY_KORT_DEATH, m_creature);
}
-
+
void UpdateAI(const uint32 diff)
{
if (!UpdateVictim())
return;
-
+
// Mark of Korthazz
if (Mark_Timer < diff)
{
DoCast(m_creature->getVictim(),SPELL_MARK_OF_KORTHAZZ);
Mark_Timer = 12000;
}else Mark_Timer -= diff;
-
+
// Shield Wall - All 4 horsemen will shield wall at 50% hp and 20% hp for 20 seconds
if (ShieldWall1 && (m_creature->GetHealth()*100 / m_creature->GetMaxHealth()) < 50)
{
@@ -262,23 +262,23 @@
ShieldWall2 = false;
}
}
-
+
// Meteor
if (Meteor_Timer < diff)
{
DoCast(m_creature->getVictim(),SPELL_METEOR);
Meteor_Timer = 20000; // wrong
}else Meteor_Timer -= diff;
-
+
DoMeleeAttackIfReady();
}
};
-
+
CreatureAI* GetAI_boss_thane_korthazz(Creature *_Creature)
{
return new boss_thane_korthazzAI (_Creature);
}
-
+
//sir zeliek
#define SAY_ZELI_AGGRO -1533058
#define SAY_ZELI_TAUNT1 -1533059
@@ -287,24 +287,24 @@
#define SAY_ZELI_SPECIAL -1533062
#define SAY_ZELI_SLAY -1533063
#define SAY_ZELI_DEATH -1533064
-
+
#define SPELL_MARK_OF_ZELIEK 28835
#define SPELL_HOLY_WRATH 28883
#define H_SPELL_HOLY_WRATH 57466
#define SPELL_HOLY_BOLT 57376
#define H_SPELL_HOLY_BOLT 57465
-
+
#define C_SPIRIT_OF_ZELIREK 16777
-
+
struct TRINITY_DLL_DECL boss_sir_zeliekAI : public ScriptedAI
{
boss_sir_zeliekAI(Creature *c) : ScriptedAI(c) {Reset();}
-
+
uint32 Mark_Timer;
uint32 HolyWrath_Timer;
bool ShieldWall1;
bool ShieldWall2;
-
+
void Reset()
{
Mark_Timer = 20000; // First Horsemen Mark is applied at 20 sec.
@@ -312,35 +312,35 @@
ShieldWall1 = true;
ShieldWall2 = true;
}
-
+
void Aggro(Unit *who)
{
DoScriptText(SAY_ZELI_AGGRO, m_creature);
}
-
+
void KilledUnit(Unit* Victim)
{
DoScriptText(SAY_ZELI_SLAY, m_creature);
}
-
+
void JustDied(Unit* Killer)
{
DoScriptText(SAY_ZELI_DEATH, m_creature);
}
-
+
void UpdateAI(const uint32 diff)
{
//Return since we have no target
if (!UpdateVictim())
return;
-
+
// Mark of Zeliek
if (Mark_Timer < diff)
{
DoCast(m_creature->getVictim(),SPELL_MARK_OF_ZELIEK);
Mark_Timer = 12000;
}else Mark_Timer -= diff;
-
+
// Shield Wall - All 4 horsemen will shield wall at 50% hp and 20% hp for 20 seconds
if (ShieldWall1 && (m_creature->GetHealth()*100 / m_creature->GetMaxHealth()) < 50)
{
@@ -358,42 +358,42 @@
ShieldWall2 = false;
}
}
-
+
// Holy Wrath
if (HolyWrath_Timer < diff)
{
DoCast(m_creature->getVictim(),SPELL_HOLY_WRATH);
HolyWrath_Timer = 12000;
}else HolyWrath_Timer -= diff;
-
+
DoMeleeAttackIfReady();
}
};
-
+
CreatureAI* GetAI_boss_sir_zeliek(Creature *_Creature)
{
return new boss_sir_zeliekAI (_Creature);
}
-
+
void AddSC_boss_four_horsemen()
{
Script *newscript;
-
+
newscript = new Script;
newscript->Name = "boss_lady_blaumeux";
newscript->GetAI = &GetAI_boss_lady_blaumeux;
newscript->RegisterSelf();
-
+
newscript = new Script;
newscript->Name = "boss_rivendare_naxx";
newscript->GetAI = &GetAI_boss_rivendare_naxx;
newscript->RegisterSelf();
-
+
newscript = new Script;
newscript->Name = "boss_thane_korthazz";
newscript->GetAI = &GetAI_boss_thane_korthazz;
newscript->RegisterSelf();
-
+
newscript = new Script;
newscript->Name = "boss_sir_zeliek";
newscript->GetAI = &GetAI_boss_sir_zeliek;
diff --git a/src/bindings/scripts/scripts/zone/naxxramas/boss_kelthuzad.cpp b/src/bindings/scripts/scripts/zone/naxxramas/boss_kelthuzad.cpp
index 0ccc63fd356..bf939da9572 100644
--- a/src/bindings/scripts/scripts/zone/naxxramas/boss_kelthuzad.cpp
+++ b/src/bindings/scripts/scripts/zone/naxxramas/boss_kelthuzad.cpp
@@ -29,34 +29,34 @@ EndScriptData */
#define SAY_SAPP_DIALOG3 -1533086
#define SAY_SAPP_DIALOG4_LICH -1533087
#define SAY_SAPP_DIALOG5 -1533088
-
+
//when cat dies
#define SAY_CAT_DIED -1533089
-
+
//when each of the 4 wing bosses dies
#define SAY_TAUNT1 -1533090
#define SAY_TAUNT2 -1533091
#define SAY_TAUNT3 -1533092
#define SAY_TAUNT4 -1533093
-
+
#define SAY_SUMMON_MINIONS -1533105 //start of phase 1
#define SAY_AGGRO1 -1533094 //start of phase 2
#define SAY_AGGRO2 -1533095
#define SAY_AGGRO3 -1533096
-
+
#define SAY_SLAY1 -1533097
#define SAY_SLAY2 -1533098
#define SAY_DEATH -1533099
-
+
#define SAY_CHAIN1 -1533100
#define SAY_CHAIN2 -1533101
#define SAY_FROST_BLAST -1533102
-
+
#define SAY_REQUEST_AID -1533103 //start of phase 3
#define SAY_ANSWER_REQUEST -1533104 //lich king answer
-
+
#define SAY_SPECIAL1_MANA_DET -1533106
#define SAY_SPECIAL3_MANA_DET -1533107
#define SAY_SPECIAL2_DISPELL -1533108
diff --git a/src/bindings/scripts/scripts/zone/naxxramas/boss_noth.cpp b/src/bindings/scripts/scripts/zone/naxxramas/boss_noth.cpp
index 77b85659e4e..57dbe53cc0a 100644
--- a/src/bindings/scripts/scripts/zone/naxxramas/boss_noth.cpp
+++ b/src/bindings/scripts/scripts/zone/naxxramas/boss_noth.cpp
@@ -36,7 +36,7 @@ EndScriptData */
#define H_SPELL_CRIPPLE 54814
#define SPELL_CURSE_PLAGUEBRINGER 28213
#define H_SPELL_CURSE_PLAGUEBRINGER 54835
-#define SOUND_DEATH 8848
+#define SOUND_DEATH 8848
#define C_PLAGUED_WARRIOR 16984
diff --git a/src/bindings/scripts/scripts/zone/naxxramas/boss_thaddius.cpp b/src/bindings/scripts/scripts/zone/naxxramas/boss_thaddius.cpp
index dcf044697c3..de1c201cc74 100644
--- a/src/bindings/scripts/scripts/zone/naxxramas/boss_thaddius.cpp
+++ b/src/bindings/scripts/scripts/zone/naxxramas/boss_thaddius.cpp
@@ -27,19 +27,19 @@ EndScriptData */
#define SAY_STAL_AGGRO -1533023
#define SAY_STAL_SLAY -1533024
#define SAY_STAL_DEATH -1533025
-
+
#define SPELL_POWERSURGE 28134
-
+
//Feugen
#define SAY_FEUG_AGGRO -1533026
#define SAY_FEUG_SLAY -1533027
#define SAY_FEUG_DEATH -1533028
-
+
#define SPELL_MANABURN 28135
//both
#define SPELL_WARSTOMP 28125
-
+
//Thaddus
#define SAY_GREET -1533029
#define SAY_AGGRO1 -1533030
diff --git a/src/bindings/scripts/scripts/zone/netherstorm/netherstorm.cpp b/src/bindings/scripts/scripts/zone/netherstorm/netherstorm.cpp
index fe4c3ba6501..ba98121757c 100644
--- a/src/bindings/scripts/scripts/zone/netherstorm/netherstorm.cpp
+++ b/src/bindings/scripts/scripts/zone/netherstorm/netherstorm.cpp
@@ -336,7 +336,7 @@ bool GOHello_go_manaforge_control_console(Player *player, GameObject* _GO)
/*######
## npc_commander_dawnforge
######*/
-
+
// The Speech of Dawnforge, Ardonis & Pathaleon
#define SAY_COMMANDER_DAWNFORGE_1 -1000128
#define SAY_ARCANIST_ARDONIS_1 -1000129
@@ -352,7 +352,7 @@ bool GOHello_go_manaforge_control_console(Player *player, GameObject* _GO)
#define QUEST_INFO_GATHERING 10198
#define SPELL_SUNFURY_DISGUISE 34603
-
+
// Entries of Arcanist Ardonis, Commander Dawnforge, Pathaleon the Curators Image
int CreatureEntry[3][1] =
{
@@ -375,10 +375,10 @@ struct TRINITY_DLL_DECL npc_commander_dawnforgeAI : public ScriptedAI
uint32 PhaseSubphase;
uint32 Phase_Timer;
bool isEvent;
-
+
float angle_dawnforge;
float angle_ardonis;
-
+
void Reset()
{
playerGUID = 0;
@@ -390,7 +390,7 @@ struct TRINITY_DLL_DECL npc_commander_dawnforgeAI : public ScriptedAI
Phase_Timer = 4000;
isEvent = false;
}
-
+
void Aggro(Unit *who) { }
//Select any creature in a grid
@@ -402,33 +402,33 @@ struct TRINITY_DLL_DECL npc_commander_dawnforgeAI : public ScriptedAI
Cell cell(pair);
cell.data.Part.reserved = ALL_DISTRICT;
cell.SetNoCreate();
-
+
Trinity::NearestCreatureEntryWithLiveStateInObjectRangeCheck creature_check(*m_creature, entry, true, range);
Trinity::CreatureLastSearcher searcher(pCreature, creature_check);
-
+
TypeContainerVisitor, GridTypeMapContainer> creature_searcher(searcher);
-
+
CellLock cell_lock(cell, pair);
cell_lock->Visit(cell_lock, creature_searcher,*(m_creature->GetMap()));
return pCreature;
}
-
+
void JustSummoned(Creature *summoned)
{
pathaleonGUID = summoned->GetGUID();
}
-
+
// Emote Ardonis and Pathaleon
void Turn_to_Pathaleons_Image()
{
Unit *ardonis = Unit::GetUnit(*m_creature,ardonisGUID);
Unit *pathaleon = Unit::GetUnit(*m_creature,pathaleonGUID);
Player *player = (Player*)Unit::GetUnit(*m_creature,playerGUID);
-
+
if (!ardonis || !pathaleon || !player)
return;
-
+
//Calculate the angle to Pathaleon
angle_dawnforge = m_creature->GetAngle(pathaleon->GetPositionX(), pathaleon->GetPositionY());
angle_ardonis = ardonis->GetAngle(pathaleon->GetPositionX(), pathaleon->GetPositionY());
@@ -444,7 +444,7 @@ struct TRINITY_DLL_DECL npc_commander_dawnforgeAI : public ScriptedAI
m_creature->SetStandState(PLAYER_STATE_KNEEL);
ardonis->SetStandState(PLAYER_STATE_KNEEL);
}
-
+
//Set them back to each other
void Turn_to_eachother()
{
@@ -454,10 +454,10 @@ struct TRINITY_DLL_DECL npc_commander_dawnforgeAI : public ScriptedAI
if (!player)
return;
-
+
angle_dawnforge = m_creature->GetAngle(ardonis->GetPositionX(), ardonis->GetPositionY());
angle_ardonis = ardonis->GetAngle(m_creature->GetPositionX(), m_creature->GetPositionY());
-
+
//Turn Dawnforge and update
m_creature->SetOrientation(angle_dawnforge);
m_creature->SendUpdateToPlayer(player);
@@ -470,7 +470,7 @@ struct TRINITY_DLL_DECL npc_commander_dawnforgeAI : public ScriptedAI
ardonis->SetStandState(PLAYER_STATE_NONE);
}
}
-
+
bool CanStartEvent(Player *player)
{
if (!isEvent)
@@ -481,13 +481,13 @@ struct TRINITY_DLL_DECL npc_commander_dawnforgeAI : public ScriptedAI
ardonisGUID = ardonis->GetGUID();
playerGUID = player->GetGUID();
-
+
isEvent = true;
Turn_to_eachother();
return true;
}
-
+
debug_log("TSCR: npc_commander_dawnforge event already in progress, need to wait.");
return false;
}
@@ -504,23 +504,23 @@ struct TRINITY_DLL_DECL npc_commander_dawnforgeAI : public ScriptedAI
Phase_Timer -= diff;
return;
}
-
+
Unit *ardonis = Unit::GetUnit(*m_creature,ardonisGUID);
Unit *pathaleon = Unit::GetUnit(*m_creature,pathaleonGUID);
Player *player = (Player*)Unit::GetUnit(*m_creature,playerGUID);
-
+
if (!ardonis || !player)
{
Reset();
return;
}
-
+
if (Phase > 4 && !pathaleon)
{
Reset();
return;
}
-
+
//Phase 1 Dawnforge say
switch (Phase)
{
@@ -623,12 +623,12 @@ struct TRINITY_DLL_DECL npc_commander_dawnforgeAI : public ScriptedAI
}
}
};
-
+
CreatureAI* GetAI_npc_commander_dawnforge(Creature* _Creature)
{
return new npc_commander_dawnforgeAI(_Creature);
}
-
+
Creature* SearchDawnforge(Player *source, uint32 entry, float range)
{
Creature* pCreature = NULL;
@@ -637,31 +637,31 @@ Creature* SearchDawnforge(Player *source, uint32 entry, float range)
Cell cell(pair);
cell.data.Part.reserved = ALL_DISTRICT;
cell.SetNoCreate();
-
+
Trinity::NearestCreatureEntryWithLiveStateInObjectRangeCheck creature_check(*source, entry, true, range);
Trinity::CreatureLastSearcher searcher(pCreature, creature_check);
TypeContainerVisitor, GridTypeMapContainer> creature_searcher(searcher);
-
+
CellLock cell_lock(cell, pair);
cell_lock->Visit(cell_lock, creature_searcher,*(source->GetMap()));
-
+
return pCreature;
}
-
+
bool AreaTrigger_at_commander_dawnforge(Player *player, AreaTriggerEntry *at)
{
//if player lost aura or not have at all, we should not try start event.
if (!player->HasAura(SPELL_SUNFURY_DISGUISE,0))
return false;
-
+
if (player->isAlive() && player->GetQuestStatus(QUEST_INFO_GATHERING) == QUEST_STATUS_INCOMPLETE)
{
Creature* Dawnforge = SearchDawnforge(player, CreatureEntry[1][0], 30.0f);
if (!Dawnforge)
return false;
-
+
if (((npc_commander_dawnforgeAI*)Dawnforge->AI())->CanStartEvent(player))
return true;
}
@@ -719,7 +719,7 @@ bool GossipHello_npc_professor_dabiri(Player *player, Creature *_Creature)
if(player->GetQuestStatus(QUEST_ON_NETHERY_WINGS) == QUEST_STATUS_INCOMPLETE && !player->HasItemCount(29778, 1))
player->ADD_GOSSIP_ITEM(0, GOSSIP_ITEM, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
-
+
player->SEND_GOSSIP_MENU(_Creature->GetNpcTextId(), _Creature->GetGUID());
return true;
@@ -852,7 +852,7 @@ struct TRINITY_DLL_DECL mob_phase_hunterAI : public ScriptedAI
{
Unit* target = Unit::GetUnit((*m_creature), PlayerGUID);
- if(target && !Weak && m_creature->GetHealth() < (m_creature->GetMaxHealth() / 100 * WeakPercent)
+ if(target && !Weak && m_creature->GetHealth() < (m_creature->GetMaxHealth() / 100 * WeakPercent)
&& ((Player*)target)->GetQuestStatus(10190) == QUEST_STATUS_INCOMPLETE)
{
DoScriptText(EMOTE_WEAK, m_creature);
@@ -919,15 +919,15 @@ struct TRINITY_DLL_DECL npc_bessyAI : public npc_escortAI
((Player*)player)->FailQuest(Q_ALMABTRIEB);
}
}
-
+
void WaypointReached(uint32 i)
{
Unit* player = Unit::GetUnit((*m_creature), PlayerGUID);
-
+
if (!player)
return;
- switch(i)
+ switch(i)
{
case 3: //first spawn
m_creature->SummonCreature(SPAWN_FIRST, 2449.67, 2183.11, 96.85, 6.20, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
@@ -1031,7 +1031,7 @@ void AddSC_netherstorm()
newscript->Name = "npc_commander_dawnforge";
newscript->GetAI = &GetAI_npc_commander_dawnforge;
newscript->RegisterSelf();
-
+
newscript = new Script;
newscript->Name = "at_commander_dawnforge";
newscript->pAreaTrigger = &AreaTrigger_at_commander_dawnforge;
diff --git a/src/bindings/scripts/scripts/zone/onyxias_lair/boss_onyxia.cpp b/src/bindings/scripts/scripts/zone/onyxias_lair/boss_onyxia.cpp
index 7ae10e4abbc..8a0342cb116 100644
--- a/src/bindings/scripts/scripts/zone/onyxias_lair/boss_onyxia.cpp
+++ b/src/bindings/scripts/scripts/zone/onyxias_lair/boss_onyxia.cpp
@@ -25,7 +25,7 @@ EndScriptData */
#define SAY_AGGRO -1249000
#define SAY_KILL -1249001
-#define SAY_PHASE_2_TRANS -1249002
+#define SAY_PHASE_2_TRANS -1249002
#define SAY_PHASE_3_TRANS -1249003
#define EMOTE_BREATH -1249004
@@ -263,7 +263,7 @@ struct TRINITY_DLL_DECL boss_onyxiaAI : public ScriptedAI
if(random<4){
m_creature->GetMotionMaster()->MovePoint(0, MovementLocations[random][0], MovementLocations[random][1], MovementLocations[random][2]);}
}
-
+
void SummonWhelps(uint32 Phase)
{
if(Phase == 2)
diff --git a/src/bindings/scripts/scripts/zone/razorfen_kraul/razorfen_kraul.cpp b/src/bindings/scripts/scripts/zone/razorfen_kraul/razorfen_kraul.cpp
index 45e95d1c407..5c9274ca5b9 100644
--- a/src/bindings/scripts/scripts/zone/razorfen_kraul/razorfen_kraul.cpp
+++ b/src/bindings/scripts/scripts/zone/razorfen_kraul/razorfen_kraul.cpp
@@ -59,7 +59,7 @@ npc_willixAI(Creature *c) : npc_escortAI(c) {Reset();}
case 3:
m_creature->HandleEmoteCommand(EMOTE_STATE_POINT);
DoScriptText(SAY_POINT, m_creature, player);
- break;
+ break;
case 4:
m_creature->SummonCreature(ENTRY_BOAR, 2137.66, 1843.98, 48.08, 1.54, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
break;
@@ -149,7 +149,7 @@ CreatureAI* GetAI_npc_willix(Creature *_Creature)
thisAI->AddWaypoint(5, 2140.22, 1845.02, 48.32);
thisAI->AddWaypoint(6, 2131.5, 1804.29, 46.85);
thisAI->AddWaypoint(7, 2096.18, 1789.03, 51.13);
- thisAI->AddWaypoint(8, 2074.46, 1780.09, 55.64, 3000);
+ thisAI->AddWaypoint(8, 2074.46, 1780.09, 55.64, 3000);
thisAI->AddWaypoint(9, 2055.12, 1768.67, 58.46, 5000);
thisAI->AddWaypoint(10, 2037.83, 1748.62, 60.27);
thisAI->AddWaypoint(11, 2037.51, 1728.94, 60.85);
@@ -161,7 +161,7 @@ CreatureAI* GetAI_npc_willix(Creature *_Creature)
thisAI->AddWaypoint(17, 2123.96, 1732.56, 52.27);
thisAI->AddWaypoint(18, 2153.82, 1728.73, 51.92);
thisAI->AddWaypoint(19, 2163.49, 1706.33, 54.42);
- thisAI->AddWaypoint(20, 2158.75, 1695.98, 55.70);
+ thisAI->AddWaypoint(20, 2158.75, 1695.98, 55.70);
thisAI->AddWaypoint(21, 2142.6, 1680.72, 58.24);
thisAI->AddWaypoint(22, 2118.31, 1671.54, 59.21);
thisAI->AddWaypoint(23, 2086.02, 1672.04, 61.24);
@@ -188,7 +188,7 @@ CreatureAI* GetAI_npc_willix(Creature *_Creature)
thisAI->AddWaypoint(44, 1954.87, 1592.02, 82.18);
thisAI->AddWaypoint(45, 1948.35, 1571.35, 80.96, 30000);
thisAI->AddWaypoint(46, 1947.02, 1566.42, 81.80, 30000);
-
+
return (CreatureAI*)thisAI;
}
diff --git a/src/bindings/scripts/scripts/zone/ruins_of_ahnqiraj/boss_ossirian.cpp b/src/bindings/scripts/scripts/zone/ruins_of_ahnqiraj/boss_ossirian.cpp
index 4460aee87e8..4d579ede2ca 100644
--- a/src/bindings/scripts/scripts/zone/ruins_of_ahnqiraj/boss_ossirian.cpp
+++ b/src/bindings/scripts/scripts/zone/ruins_of_ahnqiraj/boss_ossirian.cpp
@@ -25,13 +25,13 @@ EndScriptData */
#define SAY_SURPREME2 -1509019
#define SAY_SURPREME3 -1509020
-
+
#define SAY_RAND_INTRO1 -1509021
#define SAY_RAND_INTRO2 -1509022
#define SAY_RAND_INTRO3 -1509023
#define SAY_RAND_INTRO4 -1509024 //possibly old?
#define SAY_AGGRO -1509025
-
+
#define SAY_SLAY -1509026
#define SAY_DEATH -1509027
\ No newline at end of file
diff --git a/src/bindings/scripts/scripts/zone/ruins_of_ahnqiraj/boss_rajaxx.cpp b/src/bindings/scripts/scripts/zone/ruins_of_ahnqiraj/boss_rajaxx.cpp
index 55ff9978ae9..803b51582c0 100644
--- a/src/bindings/scripts/scripts/zone/ruins_of_ahnqiraj/boss_rajaxx.cpp
+++ b/src/bindings/scripts/scripts/zone/ruins_of_ahnqiraj/boss_rajaxx.cpp
@@ -25,20 +25,20 @@ EndScriptData */
#define SAY_ANDOROV_INTRO -1509003
#define SAY_ANDOROV_ATTACK -1509004
-
+
#define SAY_WAVE3 -1509005
#define SAY_WAVE4 -1509006
#define SAY_WAVE5 -1509007
#define SAY_WAVE6 -1509008
#define SAY_WAVE7 -1509009
#define SAY_INTRO -1509010
-
+
#define SAY_UNK1 -1509011
#define SAY_UNK2 -1509012
#define SAY_UNK3 -1509013
#define SAY_UNK4 -1509014
-
+
#define SAY_DEAGGRO -1509015
#define SAY_KILLS_ANDOROV -1509016
-
+
#define SAY_COMPLETE_QUEST -1509017 //Yell when realm complete quest 8743 for world event
\ No newline at end of file
diff --git a/src/bindings/scripts/scripts/zone/scarlet_monastery/boss_headless_horseman.cpp b/src/bindings/scripts/scripts/zone/scarlet_monastery/boss_headless_horseman.cpp
index 3c3c60b0341..fd8b070f50a 100644
--- a/src/bindings/scripts/scripts/zone/scarlet_monastery/boss_headless_horseman.cpp
+++ b/src/bindings/scripts/scripts/zone/scarlet_monastery/boss_headless_horseman.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_Headless_Horseman
SD%Complete:
-SDComment:
+SDComment:
SDCategory: Scarlet Monastery
EndScriptData */
@@ -50,8 +50,8 @@ uint32 RandomLaught[] = {11965, 11975, 11976};
//#define SPELL_CONFL_SPEED 22587 //8% increase speed, value 22587 from SPELL_CONFLAGRATION mains that spell?
#define SPELL_SUMMON_PUMPKIN 42394
-#define SPELL_WHIRLWIND 43116
-#define SPELL_IMMUNE 42556
+#define SPELL_WHIRLWIND 43116
+#define SPELL_IMMUNE 42556
#define SPELL_BODY_REGEN 42403
#define SPELL_CONFUSE 43105
@@ -60,7 +60,7 @@ uint32 RandomLaught[] = {11965, 11975, 11976};
#define SPELL_HEAD_IS_DEAD 42428 //at killing head, Phase 3
#define SPELL_PUMPKIN_AURA 42280
-#define SPELL_PUMPKIN_AURA_GREEN 42294
+#define SPELL_PUMPKIN_AURA_GREEN 42294
#define SPELL_SQUASH_SOUL 42514
#define SPELL_SPROUTING 42281
#define SPELL_SPROUT_BODY 42285
@@ -69,7 +69,7 @@ uint32 RandomLaught[] = {11965, 11975, 11976};
#define SPELL_RHYME_BIG 42909
//#define SPELL_RHYME_SMALL 42910
#define SPELL_HEAD_SPEAKS 43129
-#define SPELL_HEAD_LANDS 42400
+#define SPELL_HEAD_LANDS 42400
#define SPELL_BODY_FLAME 42074
#define SPELL_HEAD_FLAME 42971
//#define SPELL_ENRAGE_VISUAL 42438 // he uses this spell?
@@ -133,7 +133,7 @@ struct TRINITY_DLL_DECL mob_wisp_invisAI : public ScriptedAI
mob_wisp_invisAI(Creature *c) : ScriptedAI(c)
{
Creaturetype = delay = spell = spell2 = 0;
- //that's hack but there are no info about range of this spells in dbc
+ //that's hack but there are no info about range of this spells in dbc
SpellEntry *wisp = (SpellEntry*)GetSpellStore()->LookupEntry(SPELL_WISP_BLUE);
if (wisp)
wisp->rangeIndex = 6; //100 yards
@@ -256,7 +256,7 @@ struct TRINITY_DLL_DECL mob_headAI : public ScriptedAI
}
}
- void SpellHit(Unit *caster, const SpellEntry* spell)
+ void SpellHit(Unit *caster, const SpellEntry* spell)
{
if (!withbody)
return;
@@ -310,14 +310,14 @@ struct TRINITY_DLL_DECL mob_headAI : public ScriptedAI
body->DealDamage(body, body->GetMaxHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
m_creature->setDeathState(JUST_DIED);
} else wait -= diff;
- }
+ }
}
}
};
struct TRINITY_DLL_DECL boss_headless_horsemanAI : public ScriptedAI
{
- boss_headless_horsemanAI(Creature *c) : ScriptedAI(c)
+ boss_headless_horsemanAI(Creature *c) : ScriptedAI(c)
{
SpellEntry *confl = (SpellEntry*)GetSpellStore()->LookupEntry(SPELL_CONFLAGRATION);
if(confl)
@@ -415,7 +415,7 @@ struct TRINITY_DLL_DECL boss_headless_horsemanAI : public ScriptedAI
if (i != id)
return;
wp_reached = true;
-
+
switch (id)
{
case 0:
@@ -429,7 +429,7 @@ struct TRINITY_DLL_DECL boss_headless_horsemanAI : public ScriptedAI
if(pInstance)
pInstance->SetData(GAMEOBJECT_PUMPKIN_SHRINE, 0); //hide gameobject
break;
- case 19:
+ case 19:
m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_FLYING2);break;
case 20: {
Phase = 1;
@@ -486,10 +486,10 @@ struct TRINITY_DLL_DECL boss_headless_horsemanAI : public ScriptedAI
Map::PlayerList const &PlayerList = map->GetPlayers();
Map::PlayerList::const_iterator i;
if(PlayerList.isEmpty()) return NULL;
-
+
std::list temp;
std::list::iterator j;
-
+
for(Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
if((m_creature->IsWithinLOSInMap(i->getSource()) || !checkLoS) && m_creature->getVictim() != i->getSource() &&
m_creature->IsWithinDistInMap(i->getSource(), range) && i->getSource()->isAlive())
@@ -523,7 +523,7 @@ struct TRINITY_DLL_DECL boss_headless_horsemanAI : public ScriptedAI
pInstance->SetData(DATA_HORSEMAN_EVENT, DONE);
}
- void SpellHit(Unit *caster, const SpellEntry* spell)
+ void SpellHit(Unit *caster, const SpellEntry* spell)
{
if (withhead)
return;
@@ -561,7 +561,7 @@ struct TRINITY_DLL_DECL boss_headless_horsemanAI : public ScriptedAI
m_creature->RemoveAllAuras();
m_creature->SetName("Headless Horseman, Unhorsed");
- if (!headGUID)
+ if (!headGUID)
headGUID = DoSpawnCreature(HEAD,rand()%6,rand()%6,0,0,TEMPSUMMON_DEAD_DESPAWN,0)->GetGUID();
Unit* Head = Unit::GetUnit((*m_creature), headGUID);
if (Head && Head->isAlive())
@@ -611,7 +611,7 @@ struct TRINITY_DLL_DECL boss_headless_horsemanAI : public ScriptedAI
m_creature->GetMotionMaster()->Clear(false);
m_creature->GetMotionMaster()->MovePoint(id,FlightPoint[id].x,FlightPoint[id].y,FlightPoint[id].z);
}
- }
+ }
}
break;
case 1:
diff --git a/src/bindings/scripts/scripts/zone/scarlet_monastery/boss_herod.cpp b/src/bindings/scripts/scripts/zone/scarlet_monastery/boss_herod.cpp
index c45f1a143cf..2bfc66f38df 100644
--- a/src/bindings/scripts/scripts/zone/scarlet_monastery/boss_herod.cpp
+++ b/src/bindings/scripts/scripts/zone/scarlet_monastery/boss_herod.cpp
@@ -58,7 +58,7 @@ struct TRINITY_DLL_DECL boss_herodAI : public ScriptedAI
void Aggro(Unit *who)
{
DoScriptText(SAY_AGGRO, m_creature);
- DoCast(m_creature,SPELL_RUSHINGCHARGE);
+ DoCast(m_creature,SPELL_RUSHINGCHARGE);
}
void KilledUnit(Unit *victim)
@@ -167,7 +167,7 @@ CreatureAI* GetAI_mob_scarlet_trainee(Creature* _Creature)
for(uint32 i = 0; i < 12; ++i)
thisAI->AddWaypoint(i, Location[i][0], Location[i][1], Location[i][2], Wait[i][0]);
-
+
return ((CreatureAI*)thisAI);
}
diff --git a/src/bindings/scripts/scripts/zone/scarlet_monastery/instance_scarlet_monastery.cpp b/src/bindings/scripts/scripts/zone/scarlet_monastery/instance_scarlet_monastery.cpp
index 86051831fb5..fdf12f2fd2f 100644
--- a/src/bindings/scripts/scripts/zone/scarlet_monastery/instance_scarlet_monastery.cpp
+++ b/src/bindings/scripts/scripts/zone/scarlet_monastery/instance_scarlet_monastery.cpp
@@ -13,7 +13,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
+
/* ScriptData
SDName: Instance_Scarlet_Monastery
SD%Complete: 50
@@ -57,7 +57,7 @@ struct TRINITY_DLL_DECL instance_scarlet_monastery : public ScriptedInstance
MograineGUID = 0;
WhitemaneGUID = 0;
DoorHighInquisitorGUID = 0;
-
+
for(uint8 i = 0; i < ENCOUNTERS; i++)
Encounter[i] = NOT_STARTED;
}
@@ -96,7 +96,7 @@ struct TRINITY_DLL_DECL instance_scarlet_monastery : public ScriptedInstance
}break;
case DATA_HORSEMAN_EVENT:
if (data == DONE)
- {
+ {
for(std::set::iterator itr = HorsemanAdds.begin(); itr != HorsemanAdds.end(); ++itr)
{
Creature* add = instance->GetCreatureInMap(*itr);
@@ -123,14 +123,14 @@ struct TRINITY_DLL_DECL instance_scarlet_monastery : public ScriptedInstance
case DATA_WHITEMANE: return WhitemaneGUID;
case DATA_DOOR_WHITEMANE: return DoorHighInquisitorGUID;
}
- return 0;
+ return 0;
}
uint32 GetData(uint32 type)
{
if (type == TYPE_MOGRAINE_AND_WHITE_EVENT)
return Encounter[0];
-
+
return 0;
}
};
diff --git a/src/bindings/scripts/scripts/zone/scholomance/boss_jandice_barov.cpp b/src/bindings/scripts/scripts/zone/scholomance/boss_jandice_barov.cpp
index 1fe45ed3494..3a7bb39e675 100644
--- a/src/bindings/scripts/scripts/zone/scholomance/boss_jandice_barov.cpp
+++ b/src/bindings/scripts/scripts/zone/scholomance/boss_jandice_barov.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_jandicebarov
SD%Complete: 100
-SDComment:
+SDComment:
SDCategory: Scholomance
EndScriptData */
@@ -80,7 +80,7 @@ struct TRINITY_DLL_DECL boss_jandicebarovAI : public ScriptedAI
{
if (Invisible && Invisible_Timer < diff)
{
- //Become visible again
+ //Become visible again
m_creature->setFaction(14);
m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
m_creature->SetUInt32Value(UNIT_FIELD_DISPLAYID,11073); //Jandice Model
@@ -137,7 +137,7 @@ struct TRINITY_DLL_DECL boss_jandicebarovAI : public ScriptedAI
// {
// //Cast
// DoCast(m_creature->getVictim(),SPELL_ILLUSION);
- //
+ //
// //3 Illusion will be summoned
// if (Illusioncounter < 3)
// {
@@ -149,7 +149,7 @@ struct TRINITY_DLL_DECL boss_jandicebarovAI : public ScriptedAI
// Illusion_Timer = 15000;
// Illusioncounter=0;
// }
- //
+ //
// }else Illusion_Timer -= diff;
DoMeleeAttackIfReady();
@@ -166,7 +166,7 @@ struct TRINITY_DLL_DECL mob_illusionofjandicebarovAI : public ScriptedAI
void Reset()
{
- Cleave_Timer = 2000 + rand()%6000;
+ Cleave_Timer = 2000 + rand()%6000;
m_creature->ApplySpellImmune(0, IMMUNITY_DAMAGE, SPELL_SCHOOL_MASK_MAGIC, true);
}
@@ -192,7 +192,7 @@ struct TRINITY_DLL_DECL mob_illusionofjandicebarovAI : public ScriptedAI
DoMeleeAttackIfReady();
}
-};
+};
CreatureAI* GetAI_boss_jandicebarov(Creature *_Creature)
diff --git a/src/bindings/scripts/scripts/zone/shadowfang_keep/instance_shadowfang_keep.cpp b/src/bindings/scripts/scripts/zone/shadowfang_keep/instance_shadowfang_keep.cpp
index 5ae6ca9a583..ca63a3338f8 100644
--- a/src/bindings/scripts/scripts/zone/shadowfang_keep/instance_shadowfang_keep.cpp
+++ b/src/bindings/scripts/scripts/zone/shadowfang_keep/instance_shadowfang_keep.cpp
@@ -76,7 +76,7 @@ struct TRINITY_DLL_DECL instance_shadowfang_keep : public ScriptedInstance
void HandleGameObject(uint64 guid, uint32 state)
{
Player *player = GetPlayerInMap();
-
+
if (!player || !guid)
{
debug_log("SD2: Instance Shadowfang Keep: HandleGameObject fail");
@@ -92,8 +92,8 @@ struct TRINITY_DLL_DECL instance_shadowfang_keep : public ScriptedInstance
switch(type)
{
case TYPE_FREE_NPC:
- if(data == DONE)
- HandleGameObject(DoorCourtyardGUID,0);
+ if(data == DONE)
+ HandleGameObject(DoorCourtyardGUID,0);
Encounter[0] = data;
break;
case TYPE_RETHILGORE:
@@ -101,12 +101,12 @@ struct TRINITY_DLL_DECL instance_shadowfang_keep : public ScriptedInstance
break;
case TYPE_FENRUS:
if(data == DONE)
- HandleGameObject(DoorSorcererGUID,0);
+ HandleGameObject(DoorSorcererGUID,0);
Encounter[2] = data;
break;
case TYPE_NANDOS:
- if(data == DONE)
- HandleGameObject(DoorArugalGUID,0);
+ if(data == DONE)
+ HandleGameObject(DoorArugalGUID,0);
Encounter[3] = data;
break;
}
@@ -117,9 +117,9 @@ struct TRINITY_DLL_DECL instance_shadowfang_keep : public ScriptedInstance
std::ostringstream saveStream;
saveStream << Encounter[0] << " " << Encounter[1] << " " << Encounter[2] << " " << Encounter[3];
-
+
str_data = saveStream.str();
-
+
SaveToDB();
OUT_SAVE_INST_DATA_COMPLETE;
}
@@ -145,7 +145,7 @@ struct TRINITY_DLL_DECL instance_shadowfang_keep : public ScriptedInstance
{
return str_data.c_str();
}
-
+
void Load(const char* in)
{
if (!in)
@@ -153,16 +153,16 @@ struct TRINITY_DLL_DECL instance_shadowfang_keep : public ScriptedInstance
OUT_LOAD_INST_DATA_FAIL;
return;
}
-
+
OUT_LOAD_INST_DATA(in);
-
+
std::istringstream loadStream(in);
loadStream >> Encounter[0] >> Encounter[1] >> Encounter[2] >> Encounter[3];
-
+
for(uint8 i = 0; i < ENCOUNTERS; ++i)
if (Encounter[i] == IN_PROGRESS)
Encounter[i] = NOT_STARTED;
-
+
OUT_LOAD_INST_DATA_COMPLETE;
}
};
diff --git a/src/bindings/scripts/scripts/zone/shadowfang_keep/shadowfang_keep.cpp b/src/bindings/scripts/scripts/zone/shadowfang_keep/shadowfang_keep.cpp
index 471efff8c95..4fa7baa2561 100644
--- a/src/bindings/scripts/scripts/zone/shadowfang_keep/shadowfang_keep.cpp
+++ b/src/bindings/scripts/scripts/zone/shadowfang_keep/shadowfang_keep.cpp
@@ -84,7 +84,7 @@ CreatureAI* GetAI_npc_shadowfang_prisoner(Creature *_Creature)
bool GossipHello_npc_shadowfang_prisoner(Player *player, Creature *_Creature)
{
ScriptedInstance* pInstance = ((ScriptedInstance*)_Creature->GetInstanceData());
-
+
if (!pInstance)
return false;
diff --git a/src/bindings/scripts/scripts/zone/shadowmoon_valley/boss_doomwalker.cpp b/src/bindings/scripts/scripts/zone/shadowmoon_valley/boss_doomwalker.cpp
index 00722dd82ec..f8e0a5ec6ee 100644
--- a/src/bindings/scripts/scripts/zone/shadowmoon_valley/boss_doomwalker.cpp
+++ b/src/bindings/scripts/scripts/zone/shadowmoon_valley/boss_doomwalker.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_Doomwalker
SD%Complete: 100
-SDComment:
+SDComment:
SDCategory: Shadowmoon Valley
EndScriptData */
diff --git a/src/bindings/scripts/scripts/zone/shadowmoon_valley/shadowmoon_valley.cpp b/src/bindings/scripts/scripts/zone/shadowmoon_valley/shadowmoon_valley.cpp
index bf7e610c237..8db7477ea1e 100644
--- a/src/bindings/scripts/scripts/zone/shadowmoon_valley/shadowmoon_valley.cpp
+++ b/src/bindings/scripts/scripts/zone/shadowmoon_valley/shadowmoon_valley.cpp
@@ -33,7 +33,7 @@ npc_oronok_tornheart
npc_overlord_morghor
npc_earthmender_wilda
mob_torloth_the_magnificent
-mob_illidari_spawn
+mob_illidari_spawn
npc_lord_illidan_stormrage
go_crystal_prison
npc_enraged_spirit
@@ -698,14 +698,14 @@ struct TRINITY_DLL_DECL npc_overlord_morghorAI : public ScriptedAI
void StartEvent()
{
m_creature->SetUInt32Value(UNIT_NPC_FLAGS, 0);
- m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1,0);
+ m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1,0);
Unit* Illidan = m_creature->SummonCreature(C_ILLIDAN, -5107.83, 602.584, 85.2393, 4.92598, TEMPSUMMON_CORPSE_DESPAWN, 0);
IllidanGUID = Illidan->GetGUID();
Illidan->SetVisibility(VISIBILITY_OFF);
if(PlayerGUID)
{
Unit* player = Unit::GetUnit((*m_creature), PlayerGUID);
- DoScriptText(OVERLORD_SAY_1, m_creature, player);
+ DoScriptText(OVERLORD_SAY_1, m_creature, player);
}
ConversationTimer = 4200;
Step = 0;
@@ -714,15 +714,15 @@ struct TRINITY_DLL_DECL npc_overlord_morghorAI : public ScriptedAI
uint32 NextStep(uint32 Step)
{
- Unit* plr = Unit::GetUnit((*m_creature), PlayerGUID);
+ Unit* plr = Unit::GetUnit((*m_creature), PlayerGUID);
Unit* Illi = Unit::GetUnit((*m_creature), IllidanGUID);
switch(Step)
{
case 0: return 0; break;
- case 1: m_creature->GetMotionMaster()->MovePoint(0, -5104.41, 595.297, 85.6838); return 9000; break;
- case 2: DoScriptText(OVERLORD_YELL_1, m_creature, plr); return 4500; break;
+ case 1: m_creature->GetMotionMaster()->MovePoint(0, -5104.41, 595.297, 85.6838); return 9000; break;
+ case 2: DoScriptText(OVERLORD_YELL_1, m_creature, plr); return 4500; break;
case 3: m_creature->SetInFront(plr); return 3200; break;
case 4: DoScriptText(OVERLORD_SAY_2, m_creature, plr); return 2000; break;
case 5: Illi->SetVisibility(VISIBILITY_ON);
@@ -731,17 +731,17 @@ struct TRINITY_DLL_DECL npc_overlord_morghorAI : public ScriptedAI
Illi->CastSpell(Illi, SPELL_ONE, true);
Illi->SetUInt64Value(UNIT_FIELD_TARGET, m_creature->GetGUID());
m_creature->SetUInt64Value(UNIT_FIELD_TARGET, IllidanGUID);
- return 2000; break;
- case 7: DoScriptText(OVERLORD_YELL_2, m_creature); return 4500; break;
- case 8: m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, 8); return 2500; break;
- case 9: DoScriptText(OVERLORD_SAY_3, m_creature); return 6500; break;
- case 10: DoScriptText(LORD_ILLIDAN_SAY_1, Illi); return 5000; break;
+ return 2000; break;
+ case 7: DoScriptText(OVERLORD_YELL_2, m_creature); return 4500; break;
+ case 8: m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, 8); return 2500; break;
+ case 9: DoScriptText(OVERLORD_SAY_3, m_creature); return 6500; break;
+ case 10: DoScriptText(LORD_ILLIDAN_SAY_1, Illi); return 5000; break;
case 11: DoScriptText(OVERLORD_SAY_4, m_creature, plr); return 6000; break;
- case 12: DoScriptText(LORD_ILLIDAN_SAY_2, Illi); return 5500; break;
- case 13: DoScriptText(LORD_ILLIDAN_SAY_3, Illi); return 4000; break;
- case 14: Illi->SetUInt64Value(UNIT_FIELD_TARGET, PlayerGUID); return 1500; break;
- case 15: DoScriptText(LORD_ILLIDAN_SAY_4, Illi); return 1500; break;
- case 16:
+ case 12: DoScriptText(LORD_ILLIDAN_SAY_2, Illi); return 5500; break;
+ case 13: DoScriptText(LORD_ILLIDAN_SAY_3, Illi); return 4000; break;
+ case 14: Illi->SetUInt64Value(UNIT_FIELD_TARGET, PlayerGUID); return 1500; break;
+ case 15: DoScriptText(LORD_ILLIDAN_SAY_4, Illi); return 1500; break;
+ case 16:
if (plr)
{
Illi->CastSpell(plr, SPELL_TWO, true);
@@ -750,38 +750,38 @@ struct TRINITY_DLL_DECL npc_overlord_morghorAI : public ScriptedAI
return 5000;
}else{
((Player*)plr)->FailQuest(QUEST_LORD_ILLIDAN_STORMRAGE); Step = 30; return 100;
- }break;
- case 17: DoScriptText(LORD_ILLIDAN_SAY_5, Illi); return 5000; break;
- case 18: DoScriptText(LORD_ILLIDAN_SAY_6, Illi); return 5000; break;
- case 19: DoScriptText(LORD_ILLIDAN_SAY_7, Illi); return 5000; break;
- case 20:
+ }break;
+ case 17: DoScriptText(LORD_ILLIDAN_SAY_5, Illi); return 5000; break;
+ case 18: DoScriptText(LORD_ILLIDAN_SAY_6, Illi); return 5000; break;
+ case 19: DoScriptText(LORD_ILLIDAN_SAY_7, Illi); return 5000; break;
+ case 20:
Illi->HandleEmoteCommand(EMOTE_ONESHOT_LIFTOFF);
Illi->AddUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT + MOVEMENTFLAG_LEVITATING);
- return 500; break;
- case 21: DoScriptText(OVERLORD_SAY_5, m_creature); return 500; break;
- case 22:
+ return 500; break;
+ case 21: DoScriptText(OVERLORD_SAY_5, m_creature); return 500; break;
+ case 22:
Illi->SetVisibility(VISIBILITY_OFF);
- Illi->setDeathState(JUST_DIED);
- return 1000; break;
- case 23: m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1,0); return 2000; break;
+ Illi->setDeathState(JUST_DIED);
+ return 1000; break;
+ case 23: m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1,0); return 2000; break;
case 24: m_creature->SetUInt64Value(UNIT_FIELD_TARGET, PlayerGUID); return 5000; break;
- case 25: DoScriptText(OVERLORD_SAY_6, m_creature); return 2000; break;
- case 26:
+ case 25: DoScriptText(OVERLORD_SAY_6, m_creature); return 2000; break;
+ case 26:
if(plr)
- ((Player*)plr)->GroupEventHappens(QUEST_LORD_ILLIDAN_STORMRAGE, m_creature);
- return 6000; break;
+ ((Player*)plr)->GroupEventHappens(QUEST_LORD_ILLIDAN_STORMRAGE, m_creature);
+ return 6000; break;
case 27:
{
Unit* Yarzill = FindCreature(C_YARZILL, 50, m_creature);
if (Yarzill)
Yarzill->SetUInt64Value(UNIT_FIELD_TARGET, PlayerGUID);
- return 500; }break;
+ return 500; }break;
case 28:
plr->RemoveAurasDueToSpell(SPELL_TWO);
plr->RemoveAurasDueToSpell(41519);
plr->CastSpell(plr, SPELL_THREE, true);
plr->CastSpell(plr, SPELL_FOUR, true);
- return 1000; break;
+ return 1000; break;
case 29:
{
Unit* Yarzill = FindCreature(C_YARZILL, 50, m_creature);
@@ -798,9 +798,9 @@ struct TRINITY_DLL_DECL npc_overlord_morghorAI : public ScriptedAI
{
Unit* Yarzill = FindCreature(C_YARZILL, 50, m_creature);
if (Yarzill)
- Yarzill->CastSpell(plr, 41540, true);
+ Yarzill->CastSpell(plr, 41540, true);
return 1000;}break;
- case 32: m_creature->GetMotionMaster()->MovePoint(0, -5085.77, 577.231, 86.6719); return 5000; break;
+ case 32: m_creature->GetMotionMaster()->MovePoint(0, -5085.77, 577.231, 86.6719); return 5000; break;
case 33: Reset(); return 100; break;
default : return 9999999;
@@ -829,7 +829,7 @@ bool QuestAccept_npc_overlord_morghor(Player *player, Creature *_Creature, const
if(_Quest->GetQuestId() == QUEST_LORD_ILLIDAN_STORMRAGE)
{
((npc_overlord_morghorAI*)_Creature->AI())->PlayerGUID = player->GetGUID();
- ((npc_overlord_morghorAI*)_Creature->AI())->StartEvent();
+ ((npc_overlord_morghorAI*)_Creature->AI())->StartEvent();
return true;
}
return false;
@@ -891,7 +891,7 @@ struct TRINITY_DLL_DECL npc_earthmender_wildaAI : public npc_escortAI
break;
case 14: SummonAssassin(); break;
case 15: DoScriptText(SAY_PROGRESS3, m_creature, player); break;
- case 19:
+ case 19:
switch(rand()%3)
{
case 0: DoScriptText(SAY_PROGRESS2, m_creature, player); break;
@@ -937,7 +937,7 @@ struct TRINITY_DLL_DECL npc_earthmender_wildaAI : public npc_escortAI
}
break;
case 44: SummonAssassin(); break;
- case 50:
+ case 50:
DoScriptText(SAY_END, m_creature, player);
((Player*)player)->GroupEventHappens(QUEST_ESCAPE_FROM_COILSKAR_CISTERN, m_creature);
Completed = true;
@@ -972,7 +972,7 @@ struct TRINITY_DLL_DECL npc_earthmender_wildaAI : public npc_escortAI
}
}
- void UpdateAI(const uint32 diff)
+ void UpdateAI(const uint32 diff)
{
npc_escortAI::UpdateAI(diff);
}
@@ -1079,7 +1079,7 @@ static TorlothCinematic TorlothAnim[]=
{-1000368, 1, 7000},
{-1000369, 0, 3000},
{NULL, 0, 2000}, // Torloth stand
- {-1000370, 0, 1000},
+ {-1000370, 0, 1000},
{NULL, 0, 3000},
{NULL, 0, NULL}
};
@@ -1091,7 +1091,7 @@ struct Location
//Cordinates for Spawns
static Location SpawnLocation[]=
-{
+{
//Cords used for:
{-4615.8556, 1342.2532, 139.9, 1.612},//Illidari Soldier
{-4598.9365, 1377.3182, 139.9, 3.917},//Illidari Soldier
@@ -1155,7 +1155,7 @@ struct TRINITY_DLL_DECL mob_illidari_spawnAI : public ScriptedAI
uint64 LordIllidanGUID;
uint32 SpellTimer1, SpellTimer2, SpellTimer3;
bool Timers;
-
+
void Reset()
{
LordIllidanGUID = 0;
@@ -1164,16 +1164,16 @@ struct TRINITY_DLL_DECL mob_illidari_spawnAI : public ScriptedAI
void Aggro(Unit* who) {}
void JustDied(Unit* slayer);
-
+
void UpdateAI(const uint32 diff)
- {
+ {
if(!UpdateVictim())
return;
if(!Timers)
{
if(m_creature->GetEntry() == 22075)//Illidari Soldier
- {
+ {
SpellTimer1 = SpawnCast[0].Timer1 + (rand()%4 * 1000);
}
if(m_creature->GetEntry() == 22074)//Illidari Mind Breaker
@@ -1202,7 +1202,7 @@ struct TRINITY_DLL_DECL mob_illidari_spawnAI : public ScriptedAI
if(m_creature->GetEntry() == 22074)
{
if(SpellTimer1 < diff)
- {
+ {
if(Unit *target = SelectUnit(SELECT_TARGET_RANDOM,0))
{
if(target->GetTypeId() == TYPEID_PLAYER)
@@ -1210,7 +1210,7 @@ struct TRINITY_DLL_DECL mob_illidari_spawnAI : public ScriptedAI
DoCast(target, SpawnCast[1].SpellId); //Focused Bursts
SpellTimer1 = SpawnCast[1].Timer2 + (rand()%5 * 1000);
}else SpellTimer1 = 2000;
- }
+ }
}else SpellTimer1 -= diff;
if(SpellTimer2 < diff)
@@ -1261,7 +1261,7 @@ struct TRINITY_DLL_DECL mob_torloth_the_magnificentAI : public ScriptedAI
uint64 AggroTargetGUID;
bool Timers;
-
+
void Reset()
{
AnimationTimer = 4000;
@@ -1269,18 +1269,18 @@ struct TRINITY_DLL_DECL mob_torloth_the_magnificentAI : public ScriptedAI
LordIllidanGUID = 0;
AggroTargetGUID = 0;
Timers = false;
-
+
m_creature->addUnitState(UNIT_STAT_ROOT);
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
m_creature->SetUInt64Value(UNIT_FIELD_TARGET, 0);
}
void Aggro(Unit* who){}
-
+
void HandleAnimation()
{
Creature* pCreature = m_creature;
-
+
if(TorlothAnim[AnimationCount].Creature == 1)
{
pCreature = ((Creature*)Unit::GetUnit(*m_creature, LordIllidanGUID));
@@ -1298,7 +1298,7 @@ struct TRINITY_DLL_DECL mob_torloth_the_magnificentAI : public ScriptedAI
{
case 0:
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1,8);
- break;
+ break;
case 3:
m_creature->RemoveFlag(UNIT_FIELD_BYTES_1,8);
break;
@@ -1346,7 +1346,7 @@ struct TRINITY_DLL_DECL mob_torloth_the_magnificentAI : public ScriptedAI
SpellTimer3 = SpawnCast[8].Timer1;
Timers = true;
}
-
+
if(Timers)
{
if(SpellTimer1 < diff)
@@ -1401,7 +1401,7 @@ struct TRINITY_DLL_DECL mob_torloth_the_magnificentAI : public ScriptedAI
struct TRINITY_DLL_DECL npc_lord_illidan_stormrageAI : public ScriptedAI
{
npc_lord_illidan_stormrageAI(Creature* c) : ScriptedAI(c) {Reset();}
-
+
uint64 PlayerGUID;
uint32 WaveTimer;
@@ -1409,11 +1409,11 @@ struct TRINITY_DLL_DECL npc_lord_illidan_stormrageAI : public ScriptedAI
int8 LiveCount;
uint8 WaveCount;
-
+
bool EventStarted;
bool Announced;
bool Failed;
-
+
void Reset()
{
PlayerGUID = 0;
@@ -1422,7 +1422,7 @@ struct TRINITY_DLL_DECL npc_lord_illidan_stormrageAI : public ScriptedAI
AnnounceTimer = 7000;
LiveCount = 0;
WaveCount = 0;
-
+
EventStarted = false;
Announced = false;
Failed = false;
@@ -1451,7 +1451,7 @@ struct TRINITY_DLL_DECL npc_lord_illidan_stormrageAI : public ScriptedAI
float O = SpawnLocation[locIndex + i].o;
Spawn = m_creature->SummonCreature(WavesInfo[WaveCount].CreatureId, X, Y, Z, O, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 60000);
++LiveCount;
-
+
if(Spawn)
{
Spawn->LoadCreaturesAddon();
@@ -1476,7 +1476,7 @@ struct TRINITY_DLL_DECL npc_lord_illidan_stormrageAI : public ScriptedAI
}
if(WaveCount < 3)//1-3 Wave
- {
+ {
if(PlayerGUID)
{
if(Player* pTarget = ((Player*)Unit::GetUnit((*m_creature), PlayerGUID)))
@@ -1512,7 +1512,7 @@ struct TRINITY_DLL_DECL npc_lord_illidan_stormrageAI : public ScriptedAI
if(Group *EventGroup = pPlayer->GetGroup())
{
Player* GroupMember;
-
+
uint8 GroupMemberCount = 0;
uint8 DeadMemberCount = 0;
uint8 FailedMemberCount = 0;
@@ -1573,9 +1573,9 @@ struct TRINITY_DLL_DECL npc_lord_illidan_stormrageAI : public ScriptedAI
{
if(!PlayerGUID || !EventStarted)
return;
-
+
if(!LiveCount && WaveCount < 4)
- {
+ {
if(!Announced && AnnounceTimer < diff)
{
DoScriptText(WavesInfo[WaveCount].WaveTextId, m_creature);
@@ -1611,7 +1611,7 @@ bool GOQuestAccept_GO_crystal_prison(Player* plr, GameObject* go, Quest const* q
if(quest->GetQuestId() == QUEST_BATTLE_OF_THE_CRIMSON_WATCH )
{
Unit* Illidan = FindCreature(22083, 50, plr);
-
+
if(Illidan && !(((npc_lord_illidan_stormrageAI*)((Creature*)Illidan)->AI())->EventStarted))
{
((npc_lord_illidan_stormrageAI*)((Creature*)Illidan)->AI())->PlayerGUID = plr->GetGUID();
@@ -1728,10 +1728,10 @@ struct TRINITY_DLL_DECL npc_enraged_spiritAI : public ScriptedAI
Summoned = DoSpawnCreature(entry, 0, 0, 1, 0, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 5000);
// FIND TOTEM, PROCESS QUEST
- if (Summoned)
+ if (Summoned)
{
totemOspirits = FindCreature(ENTRY_TOTEM_OF_SPIRITS, RADIUS_TOTEM_OF_SPIRITS, m_creature);
- if (totemOspirits)
+ if (totemOspirits)
{
Summoned->setFaction(ENRAGED_SOUL_FRIENDLY);
Summoned->GetMotionMaster()->MovePoint(0,totemOspirits->GetPositionX(), totemOspirits->GetPositionY(), Summoned->GetPositionZ());
@@ -1823,7 +1823,7 @@ void AddSC_shadowmoon_valley()
newscript = new Script;
newscript->Name = "npc_lord_illidan_stormrage";
- newscript->GetAI = &GetAI_npc_lord_illidan_stormrage;
+ newscript->GetAI = &GetAI_npc_lord_illidan_stormrage;
newscript->RegisterSelf();
newscript = new Script;
@@ -1832,7 +1832,7 @@ void AddSC_shadowmoon_valley()
newscript->RegisterSelf();
newscript = new Script;
- newscript->Name = "mob_illidari_spawn";
+ newscript->Name = "mob_illidari_spawn";
newscript->GetAI = &GetAI_mob_illidari_spawn;
newscript->RegisterSelf();
diff --git a/src/bindings/scripts/scripts/zone/shattrath/shattrath_city.cpp b/src/bindings/scripts/scripts/zone/shattrath/shattrath_city.cpp
index eeccfa9ce81..4c560066b85 100644
--- a/src/bindings/scripts/scripts/zone/shattrath/shattrath_city.cpp
+++ b/src/bindings/scripts/scripts/zone/shattrath/shattrath_city.cpp
@@ -281,7 +281,7 @@ public:
void WaypointReached(uint32 i)
{
Unit *pTemp = Unit::GetUnit(*m_creature,PlayerGUID);
-
+
if( !pTemp )
return;
@@ -408,7 +408,7 @@ CreatureAI* GetAI_npc_kservantAI(Creature *_Creature)
kservantAI->AddWaypoint(54, -1850.060669, 5472.610840, 0.857320, 9000);
kservantAI->AddWaypoint(55, -1850.060669, 5472.610840, 0.857320, 9000);
kservantAI->AddWaypoint(56, -1850.060669, 5472.610840, 0.857320, 4000);
-
+
return (CreatureAI*)kservantAI;
}
@@ -630,12 +630,12 @@ bool GossipHello_npc_khadgar(Player *player, Creature *creature)
{
if (creature->isQuestGiver())
player->PrepareQuestMenu(creature->GetGUID());
-
+
if(!player->hasQuest(10211))
player->ADD_GOSSIP_ITEM(0, KHADGAR_GOSSIP_1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
player->SEND_GOSSIP_MENU(9243, creature->GetGUID());
-
+
return true;
}
diff --git a/src/bindings/scripts/scripts/zone/silithus/silithus.cpp b/src/bindings/scripts/scripts/zone/silithus/silithus.cpp
index 6b6f2a45870..443a9a709c7 100644
--- a/src/bindings/scripts/scripts/zone/silithus/silithus.cpp
+++ b/src/bindings/scripts/scripts/zone/silithus/silithus.cpp
@@ -31,7 +31,7 @@ EndContentData */
/*###
## npc_highlord_demitrian
###*/
-
+
#define GOSSIP_DEMITRIAN1 "What do you know of it?"
#define GOSSIP_DEMITRIAN2 "I am listening , Demitrian."
#define GOSSIP_DEMITRIAN3 "Continue, please."
@@ -39,20 +39,20 @@ EndContentData */
#define GOSSIP_DEMITRIAN5 ""
#define GOSSIP_DEMITRIAN6 "Caught unaware? How?"
#define GOSSIP_DEMITRIAN7 "So what did Ragnaros do next?"
-
+
bool GossipHello_npc_highlord_demitrian(Player *player, Creature *_Creature)
{
if (_Creature->isQuestGiver())
player->PrepareQuestMenu(_Creature->GetGUID());
-
+
if (player->GetQuestStatus(7785) == QUEST_STATUS_NONE &&
(player->HasItemCount(18563,1,false) || player->HasItemCount(18564,1,false)))
player->ADD_GOSSIP_ITEM(0, GOSSIP_DEMITRIAN1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF);
-
+
player->SEND_GOSSIP_MENU(6812, _Creature->GetGUID());
- return true;
+ return true;
}
-
+
bool GossipSelect_npc_highlord_demitrian(Player *player, Creature *_Creature, uint32 sender, uint32 action)
{
switch (action)
diff --git a/src/bindings/scripts/scripts/zone/silverpine_forest/silverpine_forest.cpp b/src/bindings/scripts/scripts/zone/silverpine_forest/silverpine_forest.cpp
index 3981c63d092..05890cd67aa 100644
--- a/src/bindings/scripts/scripts/zone/silverpine_forest/silverpine_forest.cpp
+++ b/src/bindings/scripts/scripts/zone/silverpine_forest/silverpine_forest.cpp
@@ -124,15 +124,15 @@ struct TRINITY_DLL_DECL npc_deathstalker_erlandAI : public npc_escortAI
switch(i)
{
case 1: DoScriptText(SAY_START, m_creature, player);break;
- case 13:
+ case 13:
DoScriptText(SAY_LAST, m_creature, player);
if(player)
((Player*)player)->GroupEventHappens(QUEST_ESCORTING, m_creature);break;
case 14: DoScriptText(SAY_THANKS, m_creature, player);break;
- case 15: {
+ case 15: {
Unit* Rane = FindCreature(NPC_RANE, 20, m_creature);
if(Rane)
- DoScriptText(SAY_RANE, Rane);
+ DoScriptText(SAY_RANE, Rane);
break;}
case 16: DoScriptText(SAY_ANSWER, m_creature);break;
case 17: DoScriptText(SAY_MOVE_QUINN, m_creature); break;
@@ -143,7 +143,7 @@ struct TRINITY_DLL_DECL npc_deathstalker_erlandAI : public npc_escortAI
DoScriptText(SAY_QUINN, Quinn);
break;}
case 26: DoScriptText(SAY_ON_BYE, m_creature, NULL);break;
-
+
}
}
@@ -171,7 +171,7 @@ bool QuestAccept_npc_deathstalker_erland(Player* player, Creature* creature, Que
DoScriptText(SAY_QUESTACCEPT, creature, player);
((npc_escortAI*)(creature->AI()))->Start(true, true, false, player->GetGUID());
}
-
+
return true;
}
@@ -193,10 +193,10 @@ CreatureAI* GetAI_npc_deathstalker_erlandAI(Creature *_Creature)
deathstalker_erlandAI->AddWaypoint(11, 1294.84, 1137.25, 51.75);
deathstalker_erlandAI->AddWaypoint(12, 1292.89, 1158.99, 52.65);
deathstalker_erlandAI->AddWaypoint(13, 1290.75, 1168.67, 52.56, 1000); //complete quest and say last
- deathstalker_erlandAI->AddWaypoint(14, 1287.12, 1203.49, 52.66, 5000);
- deathstalker_erlandAI->AddWaypoint(15, 1287.12, 1203.49, 52.66, 4000);
- deathstalker_erlandAI->AddWaypoint(16, 1287.12, 1203.49, 52.66, 5000);
- deathstalker_erlandAI->AddWaypoint(17, 1287.12, 1203.49, 52.66, 4000);
+ deathstalker_erlandAI->AddWaypoint(14, 1287.12, 1203.49, 52.66, 5000);
+ deathstalker_erlandAI->AddWaypoint(15, 1287.12, 1203.49, 52.66, 4000);
+ deathstalker_erlandAI->AddWaypoint(16, 1287.12, 1203.49, 52.66, 5000);
+ deathstalker_erlandAI->AddWaypoint(17, 1287.12, 1203.49, 52.66, 4000);
deathstalker_erlandAI->AddWaypoint(18, 1290.72, 1207.44, 52.69);
deathstalker_erlandAI->AddWaypoint(19, 1297.50, 1207.18, 53.74);
deathstalker_erlandAI->AddWaypoint(20, 1301.32, 1220.90, 53.74);
diff --git a/src/bindings/scripts/scripts/zone/stratholme/boss_baron_rivendare.cpp b/src/bindings/scripts/scripts/zone/stratholme/boss_baron_rivendare.cpp
index ca2cece45f1..48eb910dd4b 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/boss_baron_rivendare.cpp
+++ b/src/bindings/scripts/scripts/zone/stratholme/boss_baron_rivendare.cpp
@@ -67,7 +67,7 @@ EndScriptData */
#define SPELL_UNHOLY_AURA 17467
#define SPELL_RAISEDEAD 17473 //triggers death pact (17471)
-
+
#define SPELL_RAISE_DEAD1 17475
#define SPELL_RAISE_DEAD2 17476
#define SPELL_RAISE_DEAD3 17477
@@ -82,7 +82,7 @@ struct TRINITY_DLL_DECL boss_baron_rivendareAI : public ScriptedAI
pInstance = (ScriptedInstance*)m_creature->GetInstanceData();
Reset();
}
-
+
ScriptedInstance* pInstance;
uint32 ShadowBolt_Timer;
@@ -127,9 +127,9 @@ struct TRINITY_DLL_DECL boss_baron_rivendareAI : public ScriptedAI
//ShadowBolt
if (ShadowBolt_Timer < diff)
{
- if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM, 0))
+ if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM, 0))
DoCast(m_creature->getVictim(),SPELL_SHADOWBOLT);
-
+
ShadowBolt_Timer = 10000;
}else ShadowBolt_Timer -= diff;
diff --git a/src/bindings/scripts/scripts/zone/stratholme/boss_baroness_anastari.cpp b/src/bindings/scripts/scripts/zone/stratholme/boss_baroness_anastari.cpp
index e875db75fda..438d7f6501b 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/boss_baroness_anastari.cpp
+++ b/src/bindings/scripts/scripts/zone/stratholme/boss_baroness_anastari.cpp
@@ -36,7 +36,7 @@ struct TRINITY_DLL_DECL boss_baroness_anastariAI : public ScriptedAI
pInstance = (ScriptedInstance*)m_creature->GetInstanceData();
Reset();
}
-
+
ScriptedInstance* pInstance;
uint32 BansheeWail_Timer;
@@ -71,7 +71,7 @@ struct TRINITY_DLL_DECL boss_baroness_anastariAI : public ScriptedAI
if (BansheeWail_Timer < diff)
{
if (rand()%100 < 95)
- DoCast(m_creature->getVictim(),SPELL_BANSHEEWAIL);
+ DoCast(m_creature->getVictim(),SPELL_BANSHEEWAIL);
//4 seconds until we should cast this again
BansheeWail_Timer = 4000;
}else BansheeWail_Timer -= diff;
@@ -111,7 +111,7 @@ struct TRINITY_DLL_DECL boss_baroness_anastariAI : public ScriptedAI
DoMeleeAttackIfReady();
}
-};
+};
CreatureAI* GetAI_boss_baroness_anastari(Creature *_Creature)
{
return new boss_baroness_anastariAI (_Creature);
diff --git a/src/bindings/scripts/scripts/zone/stratholme/boss_cannon_master_willey.cpp b/src/bindings/scripts/scripts/zone/stratholme/boss_cannon_master_willey.cpp
index c2de7bcd965..cdf22d1e166 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/boss_cannon_master_willey.cpp
+++ b/src/bindings/scripts/scripts/zone/stratholme/boss_cannon_master_willey.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: boss_cannon_master_willey
SD%Complete: 100
-SDComment:
+SDComment:
SDCategory: Stratholme
EndScriptData */
@@ -197,14 +197,14 @@ struct TRINITY_DLL_DECL boss_cannon_master_willeyAI : public ScriptedAI
m_creature->SummonCreature(11054,ADD_1X,ADD_1Y,ADD_1Z,ADD_1O,TEMPSUMMON_TIMED_DESPAWN,240000);
m_creature->SummonCreature(11054,ADD_3X,ADD_3Y,ADD_3Z,ADD_3O,TEMPSUMMON_TIMED_DESPAWN,240000);
break;
- }
+ }
//30 seconds until we should cast this again
SummonRifleman_Timer = 30000;
}else SummonRifleman_Timer -= diff;
DoMeleeAttackIfReady();
}
-};
+};
CreatureAI* GetAI_boss_cannon_master_willey(Creature *_Creature)
{
return new boss_cannon_master_willeyAI (_Creature);
diff --git a/src/bindings/scripts/scripts/zone/stratholme/boss_dathrohan_balnazzar.cpp b/src/bindings/scripts/scripts/zone/stratholme/boss_dathrohan_balnazzar.cpp
index aebd8564816..8fa6d385986 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/boss_dathrohan_balnazzar.cpp
+++ b/src/bindings/scripts/scripts/zone/stratholme/boss_dathrohan_balnazzar.cpp
@@ -26,7 +26,7 @@ EndScriptData */
//Dathrohan spells
#define SPELL_CRUSADERSHAMMER 17286 //AOE stun
#define SPELL_CRUSADERSTRIKE 17281
-#define SPELL_MINDBLAST 17287
+#define SPELL_MINDBLAST 17287
#define SPELL_HOLYSTRIKE 17284 //weapon dmg +3
#define SPELL_DAZED 1604
@@ -114,7 +114,7 @@ struct TRINITY_DLL_DECL boss_dathrohan_balnazzarAI : public ScriptedAI
m_creature->SetUInt32Value(UNIT_FIELD_DISPLAYID,10545);
m_creature->SetFloatValue(OBJECT_FIELD_SCALE_X, 1.00f);
-
+
}
void JustDied(Unit* Victim)
@@ -295,12 +295,12 @@ struct TRINITY_DLL_DECL boss_dathrohan_balnazzarAI : public ScriptedAI
// MindControl_Timer = 15000;
// }else MindControl_Timer -= diff;
- //END ELSE TRANSFORMED
+ //END ELSE TRANSFORMED
}
DoMeleeAttackIfReady();
}
-};
+};
CreatureAI* GetAI_boss_dathrohan_balnazzar(Creature *_Creature)
{
return new boss_dathrohan_balnazzarAI (_Creature);
diff --git a/src/bindings/scripts/scripts/zone/stratholme/boss_magistrate_barthilas.cpp b/src/bindings/scripts/scripts/zone/stratholme/boss_magistrate_barthilas.cpp
index a7e96f2fee5..89f1cafcaaa 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/boss_magistrate_barthilas.cpp
+++ b/src/bindings/scripts/scripts/zone/stratholme/boss_magistrate_barthilas.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_Magistrate_Barthilas
SD%Complete: 70
-SDComment:
+SDComment:
SDCategory: Stratholme
EndScriptData */
@@ -28,7 +28,7 @@ EndScriptData */
#define SPELL_CROWDPUMMEL 10887
#define SPELL_MIGHTYBLOW 14099
#define SPELL_FURIOUS_ANGER 16791
-
+
#define MODEL_NORMAL 10433
#define MODEL_HUMAN 3637
@@ -61,11 +61,11 @@ struct TRINITY_DLL_DECL boss_magistrate_barthilasAI : public ScriptedAI
else
m_creature->SetUInt32Value(UNIT_FIELD_DISPLAYID, MODEL_HUMAN);
}
-
+
void MoveInLineOfSight(Unit *who)
{
//nothing to see here yet
-
+
ScriptedAI::MoveInLineOfSight(who);
}
@@ -89,7 +89,7 @@ struct TRINITY_DLL_DECL boss_magistrate_barthilasAI : public ScriptedAI
FuriousAnger_Timer = 4000;
if (AngerCount > 25)
return;
-
+
++AngerCount;
m_creature->CastSpell(m_creature,SPELL_FURIOUS_ANGER,false);
}else FuriousAnger_Timer -= diff;
@@ -110,14 +110,14 @@ struct TRINITY_DLL_DECL boss_magistrate_barthilasAI : public ScriptedAI
//MightyBlow
if (MightyBlow_Timer < diff)
- {
+ {
DoCast(m_creature->getVictim(),SPELL_MIGHTYBLOW);
MightyBlow_Timer = 20000;
}else MightyBlow_Timer -= diff;
DoMeleeAttackIfReady();
}
-};
+};
CreatureAI* GetAI_boss_magistrate_barthilas(Creature *_Creature)
{
return new boss_magistrate_barthilasAI (_Creature);
diff --git a/src/bindings/scripts/scripts/zone/stratholme/boss_maleki_the_pallid.cpp b/src/bindings/scripts/scripts/zone/stratholme/boss_maleki_the_pallid.cpp
index 3383c0c5720..f980df57c5e 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/boss_maleki_the_pallid.cpp
+++ b/src/bindings/scripts/scripts/zone/stratholme/boss_maleki_the_pallid.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: boss_maleki_the_pallid
SD%Complete: 100
-SDComment:
+SDComment:
SDCategory: Stratholme
EndScriptData */
@@ -92,7 +92,7 @@ struct TRINITY_DLL_DECL boss_maleki_the_pallidAI : public ScriptedAI
DoMeleeAttackIfReady();
}
-};
+};
CreatureAI* GetAI_boss_maleki_the_pallid(Creature *_Creature)
{
return new boss_maleki_the_pallidAI (_Creature);
diff --git a/src/bindings/scripts/scripts/zone/stratholme/boss_nerubenkan.cpp b/src/bindings/scripts/scripts/zone/stratholme/boss_nerubenkan.cpp
index c3de6d074be..57fa122e6c0 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/boss_nerubenkan.cpp
+++ b/src/bindings/scripts/scripts/zone/stratholme/boss_nerubenkan.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_Nerubenkan
SD%Complete: 70
-SDComment:
+SDComment:
SDCategory: Stratholme
EndScriptData */
@@ -36,7 +36,7 @@ struct TRINITY_DLL_DECL boss_nerubenkanAI : public ScriptedAI
pInstance = (ScriptedInstance*)m_creature->GetInstanceData();
Reset();
}
-
+
ScriptedInstance* pInstance;
uint32 EncasingWebs_Timer;
@@ -95,16 +95,16 @@ struct TRINITY_DLL_DECL boss_nerubenkanAI : public ScriptedAI
//EncasingWebs
if (EncasingWebs_Timer < diff)
{
-
+
DoCast(m_creature->getVictim(),SPELL_ENCASINGWEBS);
-
+
EncasingWebs_Timer = 30000;
}else EncasingWebs_Timer -= diff;
//PierceArmor
if (PierceArmor_Timer < diff)
{
- if (rand()%100 < 75)
+ if (rand()%100 < 75)
DoCast(m_creature->getVictim(),SPELL_PIERCEARMOR);
PierceArmor_Timer = 35000;
@@ -112,21 +112,21 @@ struct TRINITY_DLL_DECL boss_nerubenkanAI : public ScriptedAI
//CryptScarabs_Timer
if (CryptScarabs_Timer < diff)
- {
- DoCast(m_creature->getVictim(),SPELL_CRYPT_SCARABS);
+ {
+ DoCast(m_creature->getVictim(),SPELL_CRYPT_SCARABS);
CryptScarabs_Timer = 20000;
}else CryptScarabs_Timer -= diff;
//RaiseUndeadScarab
if (RaiseUndeadScarab_Timer < diff)
- {
- RaiseUndeadScarab(m_creature->getVictim());
+ {
+ RaiseUndeadScarab(m_creature->getVictim());
RaiseUndeadScarab_Timer = 16000;
}else RaiseUndeadScarab_Timer -= diff;
DoMeleeAttackIfReady();
}
-};
+};
CreatureAI* GetAI_boss_nerubenkan(Creature *_Creature)
{
return new boss_nerubenkanAI (_Creature);
diff --git a/src/bindings/scripts/scripts/zone/stratholme/boss_order_of_silver_hand.cpp b/src/bindings/scripts/scripts/zone/stratholme/boss_order_of_silver_hand.cpp
index 99f8bef9daa..608f999b177 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/boss_order_of_silver_hand.cpp
+++ b/src/bindings/scripts/scripts/zone/stratholme/boss_order_of_silver_hand.cpp
@@ -87,7 +87,7 @@ struct TRINITY_DLL_DECL boss_silver_hand_bossesAI : public ScriptedAI
}
void JustDied(Unit* Killer)
- {
+ {
if(pInstance)
{
switch(m_creature->GetEntry())
@@ -147,7 +147,7 @@ CreatureAI* GetAI_boss_silver_hand_bossesAI(Creature *_Creature)
}
/*#####
-#
+#
#####*/
void AddSC_boss_order_of_silver_hand()
diff --git a/src/bindings/scripts/scripts/zone/stratholme/boss_postmaster_malown.cpp b/src/bindings/scripts/scripts/zone/stratholme/boss_postmaster_malown.cpp
index e506ff151cc..a5e7fa24957 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/boss_postmaster_malown.cpp
+++ b/src/bindings/scripts/scripts/zone/stratholme/boss_postmaster_malown.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: boss_postmaster_malown
SD%Complete: 50
-SDComment:
+SDComment:
SDCategory: Stratholme
EndScriptData */
@@ -127,7 +127,7 @@ struct TRINITY_DLL_DECL boss_postmaster_malownAI : public ScriptedAI
DoMeleeAttackIfReady();
}
-};
+};
CreatureAI* GetAI_boss_postmaster_malown(Creature *_Creature)
{
return new boss_postmaster_malownAI (_Creature);
diff --git a/src/bindings/scripts/scripts/zone/stratholme/boss_ramstein_the_gorger.cpp b/src/bindings/scripts/scripts/zone/stratholme/boss_ramstein_the_gorger.cpp
index 7d98fcda5f4..2f2186f5749 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/boss_ramstein_the_gorger.cpp
+++ b/src/bindings/scripts/scripts/zone/stratholme/boss_ramstein_the_gorger.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_Ramstein_The_Gorger
SD%Complete: 70
-SDComment:
+SDComment:
SDCategory: Stratholme
EndScriptData */
@@ -36,7 +36,7 @@ struct TRINITY_DLL_DECL boss_ramstein_the_gorgerAI : public ScriptedAI
pInstance = (ScriptedInstance*)m_creature->GetInstanceData();
Reset();
}
-
+
ScriptedInstance* pInstance;
uint32 Trample_Timer;
@@ -83,7 +83,7 @@ struct TRINITY_DLL_DECL boss_ramstein_the_gorgerAI : public ScriptedAI
DoMeleeAttackIfReady();
}
-};
+};
CreatureAI* GetAI_boss_ramstein_the_gorger(Creature *_Creature)
{
return new boss_ramstein_the_gorgerAI (_Creature);
diff --git a/src/bindings/scripts/scripts/zone/stratholme/boss_timmy_the_cruel.cpp b/src/bindings/scripts/scripts/zone/stratholme/boss_timmy_the_cruel.cpp
index 28a7028a348..ac3c4c5f666 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/boss_timmy_the_cruel.cpp
+++ b/src/bindings/scripts/scripts/zone/stratholme/boss_timmy_the_cruel.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: boss_timmy_the_cruel
SD%Complete: 100
-SDComment:
+SDComment:
SDCategory: Stratholme
EndScriptData */
@@ -66,7 +66,7 @@ struct TRINITY_DLL_DECL boss_timmy_the_cruelAI : public ScriptedAI
DoMeleeAttackIfReady();
}
-};
+};
CreatureAI* GetAI_boss_timmy_the_cruel(Creature *_Creature)
{
return new boss_timmy_the_cruelAI (_Creature);
diff --git a/src/bindings/scripts/scripts/zone/stratholme/def_stratholme.h b/src/bindings/scripts/scripts/zone/stratholme/def_stratholme.h
index 810ffdf39b7..e5ab77383d7 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/def_stratholme.h
+++ b/src/bindings/scripts/scripts/zone/stratholme/def_stratholme.h
@@ -14,7 +14,7 @@
#define DATA_BARON 10
#define DATA_YSIDA_TRIGGER 11
-
+
#define TYPE_SH_QUEST 20
#define TYPE_SH_CATHELA 21
#define TYPE_SH_GREGOR 22
diff --git a/src/bindings/scripts/scripts/zone/stratholme/instance_stratholme.cpp b/src/bindings/scripts/scripts/zone/stratholme/instance_stratholme.cpp
index e0efc474f3d..fbabfa7b3f8 100644
--- a/src/bindings/scripts/scripts/zone/stratholme/instance_stratholme.cpp
+++ b/src/bindings/scripts/scripts/zone/stratholme/instance_stratholme.cpp
@@ -38,13 +38,13 @@ EndScriptData */
#define C_CRYSTAL 10415 //three ziggurat crystals
#define C_BARON 10440
#define C_YSIDA_TRIGGER 16100
-
+
#define C_RAMSTEIN 10439
#define C_ABOM_BILE 10416
#define C_ABOM_VENOM 10417
#define C_BLACK_GUARD 10394
#define C_YSIDA 16031
-
+
#define ENCOUNTERS 6
struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
@@ -57,7 +57,7 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
uint32 BaronRun_Timer;
uint32 SlaugtherSquare_Timer;
-
+
uint64 serviceEntranceGUID;
uint64 gauntletGate1GUID;
uint64 ziggurat1GUID;
@@ -68,12 +68,12 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
uint64 portGauntletGUID;
uint64 portSlaugtherGUID;
uint64 portElderGUID;
-
+
uint64 baronGUID;
uint64 ysidaTriggerGUID;
std::set crystalsGUID;
std::set abomnationGUID;
-
+
void Initialize()
{
for(uint8 i = 0; i < ENCOUNTERS; i++)
@@ -81,10 +81,10 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
for(uint8 i = 0; i < 5; i++)
IsSilverHandDead[5] = false;
-
+
BaronRun_Timer = 0;
SlaugtherSquare_Timer = 0;
-
+
serviceEntranceGUID = 0;
gauntletGate1GUID = 0;
ziggurat1GUID = 0;
@@ -95,13 +95,13 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
portGauntletGUID = 0;
portSlaugtherGUID = 0;
portElderGUID = 0;
-
+
baronGUID = 0;
ysidaTriggerGUID = 0;
crystalsGUID.clear();
abomnationGUID.clear();
}
-
+
Player* GetPlayerInMap()
{
Map::PlayerList const& players = instance->GetPlayers();
@@ -114,11 +114,11 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
return plr;
}
}
-
+
debug_log("SD2: Instance Stratholme: GetPlayerInMap, but PlayerList is empty!");
return NULL;
}
-
+
bool StartSlaugtherSquare()
{
//change to DONE when crystals implemented
@@ -128,11 +128,11 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
UpdateGoState(portSlaugtherGUID,0,false);
return true;
}
-
+
debug_log("SD2: Instance Stratholme: Cannot open slaugther square yet.");
return false;
}
-
+
//if withRestoreTime true, then newState will be ignored and GO should be restored to original state after 10 seconds
void UpdateGoState(uint64 goGuid, uint32 newState, bool withRestoreTime)
{
@@ -140,7 +140,7 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
if (!player || !goGuid)
return;
-
+
if (GameObject *go = GameObject::GetGameObject(*player, goGuid))
{
if (withRestoreTime)
@@ -161,7 +161,7 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
case C_ABOM_VENOM: abomnationGUID.insert(creature->GetGUID()); break;
}
}
-
+
void OnObjectCreate(GameObject *go)
{
switch(go->GetEntry())
@@ -293,7 +293,7 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
}
}
Encounter[5] = data;
- break;
+ break;
case TYPE_SH_AELMAR:
IsSilverHandDead[0] = (data) ? true : false;
break;
@@ -335,7 +335,7 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
}
return 0;
}
-
+
uint64 GetData64(uint32 data)
{
switch(data)
@@ -347,7 +347,7 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
}
return 0;
}
-
+
void Update(uint32 diff)
{
if (BaronRun_Timer)
@@ -369,7 +369,7 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance
{
for(uint8 i = 0; i < 4; i++)
p->SummonCreature(C_BLACK_GUARD,4032.84,-3390.24,119.73,4.71,TEMPSUMMON_TIMED_OR_DEAD_DESPAWN,1800000);
-
+
UpdateGoState(ziggurat4GUID,0,false);
UpdateGoState(ziggurat5GUID,0,false);
debug_log("SD2: Instance Stratholme: Black guard sentries spawned. Opening gates to baron.");
diff --git a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_brutallus.cpp b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_brutallus.cpp
index 16597e23f2d..9ab4009a8e7 100644
--- a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_brutallus.cpp
+++ b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_brutallus.cpp
@@ -34,7 +34,7 @@ EndScriptData */
#define YELL_MADR_ICE_BLOCK -1580033
#define YELL_MADR_TRAP -1580034
#define YELL_MADR_DEATH -1580035
-
+
#define YELL_AGGRO -1580022
#define YELL_KILL1 -1580023
#define YELL_KILL2 -1580024
@@ -44,7 +44,7 @@ EndScriptData */
#define YELL_LOVE3 -1580028
#define YELL_BERSERK -1580029
#define YELL_DEATH -1580030
-
+
#define SPELL_METEOR_SLASH 45150
#define SPELL_BURN 45141
#define SPELL_STOMP 45185
@@ -131,7 +131,7 @@ struct TRINITY_DLL_DECL boss_brutallusAI : public ScriptedAI
case 1: DoScriptText(YELL_LOVE2, m_creature); break;
case 2: DoScriptText(YELL_LOVE3, m_creature); break;
}
-
+
Unit *Target = m_creature->getVictim();
DoCast(Target,SPELL_STOMP);
if(Target->HasAura(45151,0)) Target->RemoveAura(45151,0);
diff --git a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_eredar_twins.cpp b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_eredar_twins.cpp
index 73752fe04f3..a00f1ab1c2e 100644
--- a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_eredar_twins.cpp
+++ b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_eredar_twins.cpp
@@ -76,7 +76,7 @@ EndScriptData */
#define SPELL_BLAZE 45235//on main target every 3 secs
#define SPELL_FLAME_SEAR 46771
#define SPELL_BLAZE_SUMMON 45236 //187366 GO
-#define SPELL_BLAZE_BURN 45246
+#define SPELL_BLAZE_BURN 45246
#define YELL_CANFLAGRATION "Fire to the aid of shadow!" //only if Sacrolash is not dead
#define SOUND_CANFLAGRATION 12489
@@ -113,8 +113,8 @@ struct TRINITY_DLL_DECL boss_sacrolashAI : public ScriptedAI
uint32 enrage_timer;
-
- void Reset()
+
+ void Reset()
{
InCombat = false;
if(pInstance)
@@ -139,7 +139,7 @@ struct TRINITY_DLL_DECL boss_sacrolashAI : public ScriptedAI
shadowblades_timer = 10000;
shadownova_timer = 30000;
confoundingblow_timer = 25000;
- shadowimage_timer = 20000;
+ shadowimage_timer = 20000;
conflagration_timer = 30000;
sisterdeath = false;
@@ -147,7 +147,7 @@ struct TRINITY_DLL_DECL boss_sacrolashAI : public ScriptedAI
}
}
- void Aggro(Unit *who)
+ void Aggro(Unit *who)
{
DoZoneInCombat();
if(pInstance)
@@ -168,7 +168,7 @@ struct TRINITY_DLL_DECL boss_sacrolashAI : public ScriptedAI
DoPlaySoundToSet(m_creature,SOUND_SAC_KILL_1);
DoYell(YELL_SAC_KILL_1 ,LANG_UNIVERSAL,NULL);
break;
- case 1:
+ case 1:
DoPlaySoundToSet(m_creature,SOUND_SAC_KILL_2);
DoYell(YELL_SAC_KILL_2 ,LANG_UNIVERSAL,NULL);
break;
@@ -185,7 +185,7 @@ struct TRINITY_DLL_DECL boss_sacrolashAI : public ScriptedAI
}
else
{
- m_creature->RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
+ m_creature->RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
}
}
@@ -194,12 +194,12 @@ struct TRINITY_DLL_DECL boss_sacrolashAI : public ScriptedAI
switch(spell->Id)
{
case SPELL_SHADOW_BLADES:
- case SPELL_SHADOW_NOVA:
- case SPELL_CONFOUNDING_BLOW:
+ case SPELL_SHADOW_NOVA:
+ case SPELL_CONFOUNDING_BLOW:
case SPELL_SHADOW_FURY:
HandleTouchedSpells(target, SPELL_DARK_TOUCHED);
break;
- case SPELL_CONFLAGRATION:
+ case SPELL_CONFLAGRATION:
HandleTouchedSpells(target, SPELL_FLAME_TOUCHED);
break;
}
@@ -238,20 +238,20 @@ struct TRINITY_DLL_DECL boss_sacrolashAI : public ScriptedAI
}
}
- void UpdateAI(const uint32 diff)
+ void UpdateAI(const uint32 diff)
{
if(!sisterdeath)
{
if (pInstance)
{
- Unit* Temp = NULL;
+ Unit* Temp = NULL;
Temp = Unit::GetUnit((*m_creature),pInstance->GetData64(DATA_ALYTHESS));
if (Temp && Temp->isDead())
{
DoYell(YELL_SISTER_ALYTHESS_DEAD ,LANG_UNIVERSAL,NULL);
DoPlaySoundToSet(m_creature,SOUND_SISTER_ALYTHESS_DEAD);
sisterdeath = true;
-
+
m_creature->InterruptSpell(CURRENT_GENERIC_SPELL);
DoCast(m_creature,SPELL_EMPOWER);
}
@@ -298,7 +298,7 @@ struct TRINITY_DLL_DECL boss_sacrolashAI : public ScriptedAI
}
if(confoundingblow_timer < diff)
- {
+ {
if (!m_creature->IsNonMeleeSpellCasted(false))
{
Unit* target = NULL;
@@ -319,7 +319,7 @@ struct TRINITY_DLL_DECL boss_sacrolashAI : public ScriptedAI
temp->AI()->AttackStart(target);
}
shadowimage_timer = 20000;
- }else shadowimage_timer -=diff;
+ }else shadowimage_timer -=diff;
if(shadowblades_timer < diff)
{
@@ -340,7 +340,7 @@ struct TRINITY_DLL_DECL boss_sacrolashAI : public ScriptedAI
}else enrage_timer -= diff;
if( m_creature->isAttackReady() && !m_creature->IsNonMeleeSpellCasted(false))
- {
+ {
//If we are within range melee the target
if( m_creature->IsWithinMeleeRange(m_creature->getVictim()))
{
@@ -381,7 +381,7 @@ struct TRINITY_DLL_DECL boss_alythessAI : public Scripted_NoMovementAI
uint32 enrage_timer;
- void Reset()
+ void Reset()
{
InCombat = false;
if(pInstance)
@@ -413,7 +413,7 @@ struct TRINITY_DLL_DECL boss_alythessAI : public Scripted_NoMovementAI
IntroYell_Timer = 10000;
}
}
- void Aggro(Unit *who)
+ void Aggro(Unit *who)
{
DoZoneInCombat();
if(pInstance)
@@ -467,7 +467,7 @@ struct TRINITY_DLL_DECL boss_alythessAI : public Scripted_NoMovementAI
DoPlaySoundToSet(m_creature,SOUND_ALY_KILL_1);
DoYell(YELL_ALY_KILL_1 ,LANG_UNIVERSAL,NULL);
break;
- case 1:
+ case 1:
DoPlaySoundToSet(m_creature,SOUND_ALY_KILL_2);
DoYell(YELL_ALY_KILL_2 ,LANG_UNIVERSAL,NULL);
break;
@@ -493,13 +493,13 @@ struct TRINITY_DLL_DECL boss_alythessAI : public Scripted_NoMovementAI
switch(spell->Id)
{
- case SPELL_BLAZE:
+ case SPELL_BLAZE:
target->CastSpell(target,SPELL_BLAZE_SUMMON,true);
case SPELL_CONFLAGRATION:
- case SPELL_FLAME_SEAR:
+ case SPELL_FLAME_SEAR:
HandleTouchedSpells(target, SPELL_FLAME_TOUCHED);
break;
- case SPELL_SHADOW_NOVA:
+ case SPELL_SHADOW_NOVA:
HandleTouchedSpells(target, SPELL_DARK_TOUCHED);
break;
}
@@ -546,37 +546,37 @@ struct TRINITY_DLL_DECL boss_alythessAI : public Scripted_NoMovementAI
case 0: DoPlaySoundToSet(m_creature,SOUND_INTRO); return 0;
case 1:
if(Sacrolash)
- Sacrolash->Yell(YELL_INTRO_SAC_1, LANG_UNIVERSAL,NULL);
+ Sacrolash->Yell(YELL_INTRO_SAC_1, LANG_UNIVERSAL,NULL);
return 1000;
- case 2:
- m_creature->Yell(YELL_INTRO_ALY_2, LANG_UNIVERSAL,NULL);
+ case 2:
+ m_creature->Yell(YELL_INTRO_ALY_2, LANG_UNIVERSAL,NULL);
return 1000;
- case 3:
+ case 3:
if(Sacrolash)
- Sacrolash->Yell(YELL_INTRO_SAC_3, LANG_UNIVERSAL,NULL);
+ Sacrolash->Yell(YELL_INTRO_SAC_3, LANG_UNIVERSAL,NULL);
return 2000;
- case 4:
- m_creature->Yell(YELL_INTRO_ALY_4, LANG_UNIVERSAL,NULL);
+ case 4:
+ m_creature->Yell(YELL_INTRO_ALY_4, LANG_UNIVERSAL,NULL);
return 1000;
case 5:
if(Sacrolash)
- Sacrolash->Yell(YELL_INTRO_SAC_5, LANG_UNIVERSAL,NULL);
+ Sacrolash->Yell(YELL_INTRO_SAC_5, LANG_UNIVERSAL,NULL);
return 2000;
- case 6:
- m_creature->Yell(YELL_INTRO_ALY_6, LANG_UNIVERSAL,NULL);
+ case 6:
+ m_creature->Yell(YELL_INTRO_ALY_6, LANG_UNIVERSAL,NULL);
return 1000;
- case 7:
+ case 7:
if(Sacrolash)
- Sacrolash->Yell(YELL_INTRO_SAC_7, LANG_UNIVERSAL,NULL);
+ Sacrolash->Yell(YELL_INTRO_SAC_7, LANG_UNIVERSAL,NULL);
return 3000;
- case 8:
- m_creature->Yell(YELL_INTRO_ALY_8, LANG_UNIVERSAL,NULL);
+ case 8:
+ m_creature->Yell(YELL_INTRO_ALY_8, LANG_UNIVERSAL,NULL);
return 900000;
}
return 10000;
}
- void UpdateAI(const uint32 diff)
+ void UpdateAI(const uint32 diff)
{
if(IntroStepCounter < 9)
{
@@ -590,14 +590,14 @@ struct TRINITY_DLL_DECL boss_alythessAI : public Scripted_NoMovementAI
{
if (pInstance)
{
- Unit* Temp = NULL;
+ Unit* Temp = NULL;
Temp = Unit::GetUnit((*m_creature),pInstance->GetData64(DATA_SACROLASH));
if (Temp && Temp->isDead())
{
DoYell(YELL_SISTER_SACROLASH_DEAD ,LANG_UNIVERSAL,NULL);
DoPlaySoundToSet(m_creature,SOUND_SISTER_SACROLASH_DEAD);
sisterdeath = true;
-
+
m_creature->InterruptSpell(CURRENT_GENERIC_SPELL);
DoCast(m_creature,SPELL_EMPOWER);
}
@@ -613,14 +613,14 @@ struct TRINITY_DLL_DECL boss_alythessAI : public Scripted_NoMovementAI
{
if (!m_creature->IsNonMeleeSpellCasted(false))
{
- Unit* target = NULL;
+ Unit* target = NULL;
target = SelectUnit(SELECT_TARGET_RANDOM, 0);
DoCast(target,SPELL_SHADOW_NOVA);
shadownova_timer= 30000+(rand()%5000);
}
}else shadownova_timer -=diff;
}
- else
+ else
{
if (conflagration_timer < diff)
{
@@ -631,7 +631,7 @@ struct TRINITY_DLL_DECL boss_alythessAI : public Scripted_NoMovementAI
target = SelectUnit(SELECT_TARGET_RANDOM, 0);
DoCast(target,SPELL_CONFLAGRATION);
conflagration_timer = 30000+(rand()%5000);
-
+
if(!sisterdeath)
{
m_creature->MonsterTextEmote("directs Conflagration at $N",target->GetGUID(),true);
@@ -660,7 +660,7 @@ struct TRINITY_DLL_DECL boss_alythessAI : public Scripted_NoMovementAI
DoCast(m_creature,SPELL_PYROGENICS,true);
pyrogenics_timer = 15000;
}
- }else pyrogenics_timer -= diff;
+ }else pyrogenics_timer -= diff;
if (blaze_timer < diff)
{
@@ -695,7 +695,7 @@ struct TRINITY_DLL_DECL mob_shadow_imageAI : public ScriptedAI
uint32 kill_timer;
uint32 darkstrike_timer;
- void Reset()
+ void Reset()
{
shadowfury_timer = 5000 + (rand()%15000);
darkstrike_timer = 3000;
@@ -710,7 +710,7 @@ struct TRINITY_DLL_DECL mob_shadow_imageAI : public ScriptedAI
switch(spell->Id)
{
- case SPELL_SHADOW_FURY:
+ case SPELL_SHADOW_FURY:
case SPELL_DARK_STRIKE:
if(!target->HasAura(SPELL_DARK_FLAME,0))
{
@@ -727,7 +727,7 @@ struct TRINITY_DLL_DECL mob_shadow_imageAI : public ScriptedAI
}
}
- void UpdateAI(const uint32 diff)
+ void UpdateAI(const uint32 diff)
{
if(!m_creature->HasAura(SPELL_IMAGE_VISUAL,0))
DoCast(m_creature,SPELL_IMAGE_VISUAL);
@@ -745,12 +745,12 @@ struct TRINITY_DLL_DECL mob_shadow_imageAI : public ScriptedAI
{
DoCast(m_creature,SPELL_SHADOW_FURY);
shadowfury_timer = 10000;
- }else shadowfury_timer -=diff;
-
+ }else shadowfury_timer -=diff;
+
if(darkstrike_timer < diff)
{
if(!m_creature->IsNonMeleeSpellCasted(false))
- {
+ {
//If we are within range melee the target
if( m_creature->IsWithinMeleeRange(m_creature->getVictim()))
{
diff --git a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_felmyst.cpp b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_felmyst.cpp
index 7321881d543..4dea21dd771 100644
--- a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_felmyst.cpp
+++ b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_felmyst.cpp
@@ -36,7 +36,7 @@ EndScriptData */
#define SPELL_ENCAPSULATE_AOE 45662
// FLIGHT PHASE SPELL
#define SPELL_VAPOR_SELECT 45391 // fel to player, force cast 45392, 50000y selete target
-#define SPELL_VAPOR_SUMMON 45392 // player summon vapor, radius around caster, 5y,
+#define SPELL_VAPOR_SUMMON 45392 // player summon vapor, radius around caster, 5y,
#define SPELL_VAPOR_FORCE 45388 // vapor to fel, force cast 45389
#define SPELL_VAPOR_CHANNEL 45389 // fel to vapor, green beam channel
#define SPELL_VAPOR_TRIGGER 45411 // linked to 45389, vapor to self, trigger 45410 and 46931
@@ -127,7 +127,7 @@ struct TRINITY_DLL_DECL boss_felmystAI : public ScriptedAI
{
boss_felmystAI(Creature *c) : ScriptedAI(c)
{
- Reset();
+ Reset();
// wait for core patch be accepted
SpellEntry *TempSpell = (SpellEntry*)GetSpellStore()->LookupEntry(SPELL_ENCAPSULATE_EFFECT);
@@ -250,7 +250,7 @@ struct TRINITY_DLL_DECL boss_felmystAI : public ScriptedAI
{
if(Phase != PHASE_GROUND && damage >= m_creature->GetHealth())
damage = 0;
- }
+ }
void EnterPhase(PhaseFelmyst NextPhase)
{
diff --git a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kalecgos.cpp b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kalecgos.cpp
index 86cdf2ef39b..f2238af0866 100644
--- a/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kalecgos.cpp
+++ b/src/bindings/scripts/scripts/zone/sunwell_plateau/boss_kalecgos.cpp
@@ -89,7 +89,7 @@ uint32 WildMagic[]= { 44978, 45001, 45002, 45004, 45006, 45010 };
struct TRINITY_DLL_DECL boss_kalecgosAI : public ScriptedAI
{
- boss_kalecgosAI(Creature *c) : ScriptedAI(c)
+ boss_kalecgosAI(Creature *c) : ScriptedAI(c)
{
pInstance = ((ScriptedInstance*)c->GetInstanceData());
SathGUID = 0;
@@ -237,7 +237,7 @@ struct TRINITY_DLL_DECL boss_kalecgosAI : public ScriptedAI
struct TRINITY_DLL_DECL boss_sathrovarrAI : public ScriptedAI
{
- boss_sathrovarrAI(Creature *c) : ScriptedAI(c)
+ boss_sathrovarrAI(Creature *c) : ScriptedAI(c)
{
pInstance = ((ScriptedInstance*)c->GetInstanceData());
KalecGUID = 0;
@@ -348,7 +348,7 @@ struct TRINITY_DLL_DECL boss_sathrovarrAI : public ScriptedAI
void UpdateAI(const uint32 diff)
{
if (!UpdateVictim())
- return;
+ return;
if(CheckTimer < diff)
{
@@ -401,7 +401,7 @@ struct TRINITY_DLL_DECL boss_sathrovarrAI : public ScriptedAI
CorruptionStrikeTimer = 13000;
}else CorruptionStrikeTimer -= diff;
- DoMeleeAttackIfReady();
+ DoMeleeAttackIfReady();
}
};
@@ -425,7 +425,7 @@ struct TRINITY_DLL_DECL boss_kalecAI : public ScriptedAI
}
void Reset()
- {
+ {
if(pInstance)
SathGUID = pInstance->GetData64(DATA_SATHROVARR);
@@ -554,7 +554,7 @@ void boss_kalecgosAI::UpdateAI(const uint32 diff)
isBanished = true;
}
}
- else
+ else
{
DoTextEmote("is unable to find Sath", NULL);
EnterEvadeMode();
diff --git a/src/bindings/scripts/scripts/zone/tanaris/tanaris.cpp b/src/bindings/scripts/scripts/zone/tanaris/tanaris.cpp
index f1eb63b54f5..db1cb4c43a4 100644
--- a/src/bindings/scripts/scripts/zone/tanaris/tanaris.cpp
+++ b/src/bindings/scripts/scripts/zone/tanaris/tanaris.cpp
@@ -384,11 +384,11 @@ bool GossipSelect_npc_stone_watcher_of_norgannon(Player *player, Creature *_Crea
struct TRINITY_DLL_DECL npc_OOX17AI : public npc_escortAI
{
npc_OOX17AI(Creature *c) : npc_escortAI(c) {Reset();}
-
+
void WaypointReached(uint32 i)
{
Unit* player = Unit::GetUnit((*m_creature), PlayerGUID);
-
+
if (!player)
return;
@@ -424,11 +424,11 @@ struct TRINITY_DLL_DECL npc_OOX17AI : public npc_escortAI
void Aggro(Unit* who)
{
- switch (rand()%2)
+ switch (rand()%2)
{
case 0: DoScriptText(SAY_CHICKEN_AGGRO_1, m_creature); break;
case 1: DoScriptText(SAY_CHICKEN_AGGRO_2, m_creature); break;
- }
+ }
}
void JustSummoned(Creature* summoned)
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/arcatraz/arcatraz.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/arcatraz/arcatraz.cpp
index 28895db340d..85fa16e21be 100644
--- a/src/bindings/scripts/scripts/zone/tempest_keep/arcatraz/arcatraz.cpp
+++ b/src/bindings/scripts/scripts/zone/tempest_keep/arcatraz/arcatraz.cpp
@@ -311,7 +311,7 @@ struct TRINITY_DLL_DECL npc_warden_mellicharAI : public ScriptedAI
{
DoScriptText(YELL_INTRO1, m_creature);
DoCast(m_creature,SPELL_BUBBLE_VISUAL);
-
+
if( pInstance )
{
pInstance->SetData(TYPE_HARBINGERSKYRISS,IN_PROGRESS);
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/arcatraz/instance_arcatraz.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/arcatraz/instance_arcatraz.cpp
index da35a86c172..ae355968650 100644
--- a/src/bindings/scripts/scripts/zone/tempest_keep/arcatraz/instance_arcatraz.cpp
+++ b/src/bindings/scripts/scripts/zone/tempest_keep/arcatraz/instance_arcatraz.cpp
@@ -85,7 +85,7 @@ struct TRINITY_DLL_DECL instance_arcatraz : public ScriptedInstance
bool IsEncounterInProgress() const
{
for(uint8 i = 0; i < ENCOUNTERS; i++)
- if(Encounter[i])
+ if(Encounter[i])
return true;
return false;
@@ -181,12 +181,12 @@ struct TRINITY_DLL_DECL instance_arcatraz : public ScriptedInstance
Pod_Omega->UseDoorOrButton();
Encounter[8] = data;
break;
-
+
case TYPE_SHIELD_OPEN:
if( data == IN_PROGRESS )
if( Wardens_Shield )
Wardens_Shield->UseDoorOrButton();
- break;
+ break;
}
}
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/botanica/boss_warp_splinter.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/botanica/boss_warp_splinter.cpp
index e00e1c70242..735c54ba61e 100644
--- a/src/bindings/scripts/scripts/zone/tempest_keep/botanica/boss_warp_splinter.cpp
+++ b/src/bindings/scripts/scripts/zone/tempest_keep/botanica/boss_warp_splinter.cpp
@@ -82,7 +82,7 @@ struct TRINITY_DLL_DECL mob_treantAI : public ScriptedAI
#define TREANT_SPAWN_DIST 50 //50 yards from Warp Splinter's spawn point
-float treant_pos[6][3] =
+float treant_pos[6][3] =
{
{24.301233, 427.221100, -27.060635},
{16.795492, 359.678802, -27.355425},
@@ -147,7 +147,7 @@ struct TRINITY_DLL_DECL boss_warp_splinterAI : public ScriptedAI
void SummonTreants()
{
for(int i = 0; i < 6; ++i)
- {
+ {
float angle = (M_PI / 3) * i;
float X = Treant_Spawn_Pos_X + TREANT_SPAWN_DIST * cos(angle);
@@ -166,7 +166,7 @@ struct TRINITY_DLL_DECL boss_warp_splinterAI : public ScriptedAI
}
}
switch(rand()%2)
- {
+ {
case 0: DoScriptText(SAY_SUMMON_1, m_creature); break;
case 1: DoScriptText(SAY_SUMMON_2, m_creature); break;
}
@@ -203,21 +203,21 @@ struct TRINITY_DLL_DECL boss_warp_splinterAI : public ScriptedAI
if(War_Stomp_Timer < diff)
{
DoCast(m_creature->getVictim(),WAR_STOMP);
- War_Stomp_Timer = 25000 + rand()%15000;
+ War_Stomp_Timer = 25000 + rand()%15000;
}else War_Stomp_Timer -= diff;
//Check for Arcane Volley
if(Arcane_Volley_Timer < diff)
{
DoCast(m_creature->getVictim(),ARCANE_VOLLEY);
- Arcane_Volley_Timer = 20000 + rand()%15000;
+ Arcane_Volley_Timer = 20000 + rand()%15000;
}else Arcane_Volley_Timer -= diff;
//Check for Summon Treants
if(Summon_Treants_Timer < diff)
{
SummonTreants();
- Summon_Treants_Timer = 45000;
+ Summon_Treants_Timer = 45000;
}else Summon_Treants_Timer -= diff;
// I check if there is a Treant in Warp Splinter's LOS, so he can eat them
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_alar.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_alar.cpp
index 85381e58fb3..ec7036e4666 100644
--- a/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_alar.cpp
+++ b/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_alar.cpp
@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
+*/
/* ScriptData
SDName: boss_alar
@@ -40,7 +40,7 @@ EndScriptData */
#define CREATURE_FLAME_PATCH_ALAR 20602 // Flame Patch - every 30 sec in phase 2
#define SPELL_FLAME_PATCH 35380 //
-static float waypoint[6][3] =
+static float waypoint[6][3] =
{
{340.15, 58.65, 17.71},
{388.09, 31.54, 20.18},
@@ -166,9 +166,9 @@ struct TRINITY_DLL_DECL boss_alarAI : public ScriptedAI
m_creature->RemoveAllAuras();
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
m_creature->AttackStop();
- m_creature->SetUInt64Value(UNIT_FIELD_TARGET, 0);
+ m_creature->SetUInt64Value(UNIT_FIELD_TARGET, 0);
m_creature->SetSpeed(MOVE_RUN, 5.0f);
- m_creature->GetMotionMaster()->Clear();
+ m_creature->GetMotionMaster()->Clear();
m_creature->GetMotionMaster()->MovePoint(0, waypoint[5][0], waypoint[5][1], waypoint[5][2]);
}
}
@@ -225,7 +225,7 @@ struct TRINITY_DLL_DECL boss_alarAI : public ScriptedAI
m_creature->CastSpell(m_creature, SPELL_FLAME_QUILLS, true);
Platforms_Move_Timer = 1;
WaitTimer = 10000;
- WaitEvent = WE_DUMMY;
+ WaitEvent = WE_DUMMY;
return;
case WE_DIE:
m_creature->SetUInt32Value(UNIT_FIELD_BYTES_1, PLAYER_STATE_DEAD);
@@ -244,7 +244,7 @@ struct TRINITY_DLL_DECL boss_alarAI : public ScriptedAI
Charge_Timer = 7000;
DiveBomb_Timer = 40000+rand()%5000;
FlamePatch_Timer = 30000;
- Phase1 = false;
+ Phase1 = false;
break;
case WE_METEOR:
m_creature->ApplySpellImmune(0, IMMUNITY_SCHOOL, SPELL_SCHOOL_MASK_FIRE, false);
@@ -314,7 +314,7 @@ struct TRINITY_DLL_DECL boss_alarAI : public ScriptedAI
else
cur_wp++;
WaitEvent = WE_PLATFORM;
- }
+ }
else // flame quill
{
cur_wp = 4;
@@ -392,9 +392,9 @@ struct TRINITY_DLL_DECL boss_alarAI : public ScriptedAI
Unit *target = NULL;
if(Phase1 && (target = m_creature->SelectNearestTarget(5)))
m_creature->AI()->AttackStart(target);
- else
+ else
{
- m_creature->CastSpell(m_creature, SPELL_FLAME_BUFFET, true);
+ m_creature->CastSpell(m_creature, SPELL_FLAME_BUFFET, true);
m_creature->setAttackTimer(BASE_ATTACK, 1500);
}
}
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_astromancer.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_astromancer.cpp
index 30f9faf34a4..45797e010e6 100644
--- a/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_astromancer.cpp
+++ b/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_astromancer.cpp
@@ -171,7 +171,7 @@ struct TRINITY_DLL_DECL boss_high_astromancer_solarianAI : public ScriptedAI
float Portal_X(float radius)
{
- if ((rand()%2)==1)
+ if ((rand()%2)==1)
radius = -radius;
return (radius * (float)(rand()%100)/100.0f + CENTER_X);
@@ -202,7 +202,7 @@ struct TRINITY_DLL_DECL boss_high_astromancer_solarianAI : public ScriptedAI
{
AppearDelay = false;
if (Phase == 2)
- {
+ {
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
m_creature->SetVisibility(VISIBILITY_OFF);
}
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_kaelthas.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_kaelthas.cpp
index 70ef1262507..0e84f71d8de 100644
--- a/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_kaelthas.cpp
+++ b/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/boss_kaelthas.cpp
@@ -45,7 +45,7 @@ EndScriptData */
#define SAY_SUMMON_PHOENIX1 -1550032
#define SAY_SUMMON_PHOENIX2 -1550033
#define SAY_DEATH -1550034
-
+
//Thaladred the Darkener speech
#define SAY_THALADRED_AGGRO -1550035
#define SAY_THALADRED_DEATH -1550036
@@ -76,7 +76,7 @@ EndScriptData */
#define SPELL_WEAPON_SPAWN 41236
//Phase 4 spells
-#define SPELL_FIREBALL 36805
+#define SPELL_FIREBALL 36805
#define SPELL_PYROBLAST 36819
#define SPELL_FLAME_STRIKE 36735
#define SPELL_FLAME_STRIKE_VIS 36730
@@ -174,7 +174,7 @@ struct TRINITY_DLL_DECL advisorbase_ai : public ScriptedAI
{
if (!who || FakeDeath || m_creature->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE))
return;
-
+
ScriptedAI::AttackStart(who);
}
@@ -832,7 +832,7 @@ struct TRINITY_DLL_DECL boss_kaelthasAI : public ScriptedAI
if (m_creature->getThreatManager().getThreatList().size() >= 2)
for (uint32 i = 0; i < 3; i++)
{
-
+
Unit* target =SelectUnit(SELECT_TARGET_RANDOM, 1, 70, true);
if(!target) target = m_creature->getVictim();
debug_log("TSCR: Kael'Thas mind control not supported.");
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/instance_the_eye.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/instance_the_eye.cpp
index 492c0820efb..b92d18ac54e 100644
--- a/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/instance_the_eye.cpp
+++ b/src/bindings/scripts/scripts/zone/tempest_keep/the_eye/instance_the_eye.cpp
@@ -110,7 +110,7 @@ struct TRINITY_DLL_DECL instance_the_eye : public ScriptedInstance
{
case DATA_ALAREVENT: AlarEventPhase = data; Encounters[0] = data; break;
case DATA_HIGHASTROMANCERSOLARIANEVENT: Encounters[1] = data; break;
- case DATA_VOIDREAVEREVENT: Encounters[2] = data; break;
+ case DATA_VOIDREAVEREVENT: Encounters[2] = data; break;
case DATA_KAELTHASEVENT: KaelthasEventPhase = data; Encounters[3] = data; break;
}
if(data == DONE)
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_gatewatcher_gyrokill.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_gatewatcher_gyrokill.cpp
index 2e27edbf2d8..77cf5e77364 100644
--- a/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_gatewatcher_gyrokill.cpp
+++ b/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_gatewatcher_gyrokill.cpp
@@ -29,7 +29,7 @@ EndScriptData */
#define SAY_SLAY1 -1554003
#define SAY_SLAY2 -1554004
#define SAY_DEATH -1554005
-
+
#define SPELL_STREAM_OF_MACHINE_FLUID 35311
#define SPELL_SAW_BLADE 35318
#define H_SPELL_SAW_BLADE 39192
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_gatewatcher_ironhand.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_gatewatcher_ironhand.cpp
index 95701f64ca0..de9526d495a 100644
--- a/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_gatewatcher_ironhand.cpp
+++ b/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_gatewatcher_ironhand.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_Gatewatcher_Ironhand
SD%Complete: 75
-SDComment:
+SDComment:
SDCategory: Tempest Keep, The Mechanar
EndScriptData */
@@ -41,35 +41,35 @@ EndScriptData */
// Gatewatcher Iron-Hand AI
struct TRINITY_DLL_DECL boss_gatewatcher_iron_handAI : public ScriptedAI
-{
+{
boss_gatewatcher_iron_handAI(Creature *c) : ScriptedAI(c)
{
pInstance = ((ScriptedInstance*)c->GetInstanceData());
HeroicMode = m_creature->GetMap()->IsHeroic();
Reset();
}
-
+
ScriptedInstance *pInstance;
bool HeroicMode;
- uint32 Shadow_Power_Timer;
+ uint32 Shadow_Power_Timer;
uint32 Jackhammer_Timer;
- uint32 Stream_of_Machine_Fluid_Timer;
+ uint32 Stream_of_Machine_Fluid_Timer;
- void Reset()
- {
- Shadow_Power_Timer = 25000;
+ void Reset()
+ {
+ Shadow_Power_Timer = 25000;
Jackhammer_Timer = 45000;
Stream_of_Machine_Fluid_Timer = 55000;
- }
- void Aggro(Unit *who)
- {
+ }
+ void Aggro(Unit *who)
+ {
DoScriptText(SAY_AGGRO_1, m_creature);
- }
+ }
- void KilledUnit(Unit* victim)
+ void KilledUnit(Unit* victim)
{
if (rand()%2)
return;
@@ -79,34 +79,34 @@ boss_gatewatcher_iron_handAI(Creature *c) : ScriptedAI(c)
case 0: DoScriptText(SAY_SLAY_1, m_creature); break;
case 1: DoScriptText(SAY_SLAY_2, m_creature); break;
}
- }
+ }
- void JustDied(Unit* Killer)
- {
+ void JustDied(Unit* Killer)
+ {
DoScriptText(SAY_DEATH_1, m_creature);
if (!pInstance)
return;
-
- //TODO: Add door check/open code
+
+ //TODO: Add door check/open code
}
- void UpdateAI(const uint32 diff)
- {
- //Return since we have no target
- if (!UpdateVictim() )
- return;
+ void UpdateAI(const uint32 diff)
+ {
+ //Return since we have no target
+ if (!UpdateVictim() )
+ return;
- //Shadow Power
- if(Shadow_Power_Timer < diff)
- {
+ //Shadow Power
+ if(Shadow_Power_Timer < diff)
+ {
DoCast(m_creature,HeroicMode ? H_SPELL_SHADOW_POWER : SPELL_SHADOW_POWER);
- Shadow_Power_Timer = 20000 + rand()%8000;
- }else Shadow_Power_Timer -= diff;
+ Shadow_Power_Timer = 20000 + rand()%8000;
+ }else Shadow_Power_Timer -= diff;
- //Jack Hammer
- if(Jackhammer_Timer < diff)
- {
+ //Jack Hammer
+ if(Jackhammer_Timer < diff)
+ {
//TODO: expect cast this about 5 times in a row (?), announce it by emote only once
DoScriptText(EMOTE_HAMMER, m_creature);
DoCast(m_creature->getVictim(),HeroicMode ? H_SPELL_JACKHAMMER : SPELL_JACKHAMMER);
@@ -119,30 +119,30 @@ boss_gatewatcher_iron_handAI(Creature *c) : ScriptedAI(c)
{
case 0: DoScriptText(SAY_HAMMER_1, m_creature); break;
case 1: DoScriptText(SAY_HAMMER_2, m_creature); break;
- }
- Jackhammer_Timer = 30000;
- }else Jackhammer_Timer -= diff;
-
- //Stream of Machine Fluid
- if(Stream_of_Machine_Fluid_Timer < diff)
- {
- DoCast(m_creature->getVictim(),SPELL_STREAM_OF_MACHINE_FLUID);
- Stream_of_Machine_Fluid_Timer = 35000 + rand()%15000;
+ }
+ Jackhammer_Timer = 30000;
+ }else Jackhammer_Timer -= diff;
+
+ //Stream of Machine Fluid
+ if(Stream_of_Machine_Fluid_Timer < diff)
+ {
+ DoCast(m_creature->getVictim(),SPELL_STREAM_OF_MACHINE_FLUID);
+ Stream_of_Machine_Fluid_Timer = 35000 + rand()%15000;
}else Stream_of_Machine_Fluid_Timer -= diff;
DoMeleeAttackIfReady();
- }
-};
+ }
+};
CreatureAI* GetAI_boss_gatewatcher_iron_hand(Creature *_Creature)
-{
+{
return new boss_gatewatcher_iron_handAI (_Creature);
-}
+}
void AddSC_boss_gatewatcher_iron_hand()
-{
- Script *newscript;
- newscript = new Script;
- newscript->Name="boss_gatewatcher_iron_hand";
- newscript->GetAI = &GetAI_boss_gatewatcher_iron_hand;
+{
+ Script *newscript;
+ newscript = new Script;
+ newscript->Name="boss_gatewatcher_iron_hand";
+ newscript->GetAI = &GetAI_boss_gatewatcher_iron_hand;
newscript->RegisterSelf();
}
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_nethermancer_sepethrea.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_nethermancer_sepethrea.cpp
index 8d815b0f968..31293ca9f56 100644
--- a/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_nethermancer_sepethrea.cpp
+++ b/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_nethermancer_sepethrea.cpp
@@ -59,39 +59,39 @@ boss_nethermancer_sepethreaAI(Creature *c) : ScriptedAI(c)
uint32 knockback_Timer;
uint32 solarburn_Timer;
- void Reset()
+ void Reset()
{
- frost_attack_Timer = 7000 + rand()%3000;
+ frost_attack_Timer = 7000 + rand()%3000;
arcane_blast_Timer = 12000 + rand()%6000;
dragons_breath_Timer = 18000 + rand()%4000;
knockback_Timer = 22000 + rand()%6000;
solarburn_Timer = 30000;
- }
+ }
- void Aggro(Unit *who)
- {
+ void Aggro(Unit *who)
+ {
DoScriptText(SAY_AGGRO, m_creature);
-
+
//Summon two guards, three in heroic
uint8 am = (HeroicMode ? 1 : 2);
- for(int i = 0; i < am; i++)
+ for(int i = 0; i < am; i++)
{
- DoCast(who,SPELL_SUMMON_RAGIN_FLAMES);
- }
+ DoCast(who,SPELL_SUMMON_RAGIN_FLAMES);
+ }
DoScriptText(SAY_SUMMON, m_creature);
- }
+ }
- void KilledUnit(Unit* victim)
+ void KilledUnit(Unit* victim)
{
switch(rand()%2)
{
case 0: DoScriptText(SAY_SLAY1, m_creature); break;
case 1: DoScriptText(SAY_SLAY2, m_creature); break;
- }
+ }
}
- void JustDied(Unit* Killer)
- {
+ void JustDied(Unit* Killer)
+ {
DoScriptText(SAY_DEATH, m_creature);
if(pInstance)
pInstance->SetData(DATA_SEPETHREA_DEATH, 0);
@@ -99,28 +99,28 @@ boss_nethermancer_sepethreaAI(Creature *c) : ScriptedAI(c)
void UpdateAI(const uint32 diff)
{
-
+
//Return since we have no target
- if (!UpdateVictim() )
- return;
+ if (!UpdateVictim() )
+ return;
- //Frost Attack
- if(frost_attack_Timer < diff)
- {
+ //Frost Attack
+ if(frost_attack_Timer < diff)
+ {
DoCast(m_creature->getVictim(),SPELL_FROST_ATTACK);
- frost_attack_Timer = 7000 + rand()%30000;
+ frost_attack_Timer = 7000 + rand()%30000;
}else frost_attack_Timer -= diff;
- //Arcane Blast
- if(arcane_blast_Timer < diff)
- {
+ //Arcane Blast
+ if(arcane_blast_Timer < diff)
+ {
DoCast(m_creature->getVictim(), SPELL_ARCANE_BLAST);
- arcane_blast_Timer = 15000;
+ arcane_blast_Timer = 15000;
}else arcane_blast_Timer -= diff;
- //Dragons Breath
- if(dragons_breath_Timer < diff)
- {
+ //Dragons Breath
+ if(dragons_breath_Timer < diff)
+ {
DoCast(m_creature->getVictim(),SPELL_DRAGONS_BREATH);
{
if (rand()%2)
@@ -132,30 +132,30 @@ boss_nethermancer_sepethreaAI(Creature *c) : ScriptedAI(c)
case 1: DoScriptText(SAY_DRAGONS_BREATH_2, m_creature); break;
}
}
- dragons_breath_Timer = 12000 + rand()%10000;
- }else dragons_breath_Timer -= diff;
-
- //Knockback
- if(knockback_Timer < diff)
- {
- DoCast(m_creature->getVictim(),SPELL_KNOCKBACK);
- knockback_Timer = 15000 + rand()%10000;
+ dragons_breath_Timer = 12000 + rand()%10000;
+ }else dragons_breath_Timer -= diff;
+
+ //Knockback
+ if(knockback_Timer < diff)
+ {
+ DoCast(m_creature->getVictim(),SPELL_KNOCKBACK);
+ knockback_Timer = 15000 + rand()%10000;
}else knockback_Timer -= diff;
- //Solarburn
- if(solarburn_Timer < diff)
- {
- DoCast(m_creature->getVictim(),SPELL_SOLARBURN);
- solarburn_Timer = 30000;
+ //Solarburn
+ if(solarburn_Timer < diff)
+ {
+ DoCast(m_creature->getVictim(),SPELL_SOLARBURN);
+ solarburn_Timer = 30000;
}else solarburn_Timer -= diff;
DoMeleeAttackIfReady();
- }
+ }
};
CreatureAI* GetAI_boss_nethermancer_sepethrea(Creature *_Creature)
-{
+{
return new boss_nethermancer_sepethreaAI (_Creature);
}
@@ -183,7 +183,7 @@ struct TRINITY_DLL_DECL mob_ragin_flamesAI : public ScriptedAI
bool onlyonce;
void Reset()
- {
+ {
inferno_Timer = 10000;
flame_timer = 500;
Check_Timer = 2000;
@@ -246,15 +246,15 @@ CreatureAI* GetAI_mob_ragin_flames(Creature *_Creature)
return new mob_ragin_flamesAI (_Creature);
}
void AddSC_boss_nethermancer_sepethrea()
-{
- Script *newscript;
- newscript = new Script;
- newscript->Name="boss_nethermancer_sepethrea";
- newscript->GetAI = &GetAI_boss_nethermancer_sepethrea;
+{
+ Script *newscript;
+ newscript = new Script;
+ newscript->Name="boss_nethermancer_sepethrea";
+ newscript->GetAI = &GetAI_boss_nethermancer_sepethrea;
newscript->RegisterSelf();
- newscript = new Script;
- newscript->Name="mob_ragin_flames";
- newscript->GetAI = &GetAI_mob_ragin_flames;
+ newscript = new Script;
+ newscript->Name="mob_ragin_flames";
+ newscript->GetAI = &GetAI_mob_ragin_flames;
newscript->RegisterSelf();
}
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_pathaleon_the_calculator.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_pathaleon_the_calculator.cpp
index 5bd5af6ee8f..18fe0a6476b 100644
--- a/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_pathaleon_the_calculator.cpp
+++ b/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/boss_pathaleon_the_calculator.cpp
@@ -38,7 +38,7 @@ EndScriptData */
#define SPELL_DOMINATION 35280
#define H_SPELL_ARCANE_EXPLOSION 15453
#define SPELL_FRENZY 36992
-
+
#define SPELL_SUMMON_NETHER_WRAITH_1 35285 //Spells work, but not implemented
#define SPELL_SUMMON_NETHER_WRAITH_2 35286
#define SPELL_SUMMON_NETHER_WRAITH_3 35287
@@ -49,89 +49,89 @@ EndScriptData */
#define SPELL_ARCANE_MISSILES 35034
struct TRINITY_DLL_DECL boss_pathaleon_the_calculatorAI : public ScriptedAI
-{
+{
boss_pathaleon_the_calculatorAI(Creature *c) : ScriptedAI(c)
- {
+ {
HeroicMode = m_creature->GetMap()->IsHeroic();
Reset();
}
- uint32 Summon_Timer;
+ uint32 Summon_Timer;
uint32 ManaTap_Timer;
- uint32 ArcaneTorrent_Timer;
- uint32 Domination_Timer;
- uint32 ArcaneExplosion_Timer;
+ uint32 ArcaneTorrent_Timer;
+ uint32 Domination_Timer;
+ uint32 ArcaneExplosion_Timer;
bool HeroicMode;
bool Enraged;
uint32 Counter;
- void Reset()
- {
- Summon_Timer = 30000;
+ void Reset()
+ {
+ Summon_Timer = 30000;
ManaTap_Timer = 12000 + rand()%8000;
ArcaneTorrent_Timer = 16000 + rand()%9000;
Domination_Timer = 25000 + rand()%15000;
ArcaneExplosion_Timer = 8000 + rand()%5000;
-
+
Enraged = false;
Counter = 0;
- }
- void Aggro(Unit *who)
- {
+ }
+ void Aggro(Unit *who)
+ {
DoScriptText(SAY_AGGRO, m_creature);
- }
+ }
- void KilledUnit(Unit* victim)
+ void KilledUnit(Unit* victim)
{
switch(rand()%2)
{
case 0: DoScriptText(SAY_SLAY_1, m_creature); break;
case 1: DoScriptText(SAY_SLAY_2, m_creature); break;
- }
- }
+ }
+ }
- void JustDied(Unit* Killer)
- {
+ void JustDied(Unit* Killer)
+ {
DoScriptText(SAY_DEATH, m_creature);
}
- void UpdateAI(const uint32 diff)
- {
- //Return since we have no target
- if (!UpdateVictim() )
- return;
-
- if(Summon_Timer < diff)
- {
+ void UpdateAI(const uint32 diff)
+ {
+ //Return since we have no target
+ if (!UpdateVictim() )
+ return;
+
+ if(Summon_Timer < diff)
+ {
for(int i = 0; i < 3;i++)
- {
+ {
Unit* target = NULL;
target = SelectUnit(SELECT_TARGET_RANDOM,0);
- Creature* Wraith = m_creature->SummonCreature(21062,m_creature->GetPositionX(), m_creature->GetPositionY(), m_creature->GetPositionZ(),0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
+ Creature* Wraith = m_creature->SummonCreature(21062,m_creature->GetPositionX(), m_creature->GetPositionY(), m_creature->GetPositionZ(),0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
if (target && Wraith)
Wraith->AI()->AttackStart(target);
}
- DoScriptText(SAY_SUMMON, m_creature);
- Summon_Timer = 30000 + rand()%15000;
- }else Summon_Timer -= diff;
-
- if(ManaTap_Timer < diff)
- {
- DoCast(m_creature->getVictim(),SPELL_MANA_TAP);
- ManaTap_Timer = 14000 + rand()%8000;
- }else ManaTap_Timer -= diff;
-
- if(ArcaneTorrent_Timer < diff)
- {
- DoCast(m_creature->getVictim(),SPELL_ARCANE_TORRENT);
- ArcaneTorrent_Timer = 12000 + rand()%6000;
- }else ArcaneTorrent_Timer -= diff;
-
- if(Domination_Timer < diff)
- {
+ DoScriptText(SAY_SUMMON, m_creature);
+ Summon_Timer = 30000 + rand()%15000;
+ }else Summon_Timer -= diff;
+
+ if(ManaTap_Timer < diff)
+ {
+ DoCast(m_creature->getVictim(),SPELL_MANA_TAP);
+ ManaTap_Timer = 14000 + rand()%8000;
+ }else ManaTap_Timer -= diff;
+
+ if(ArcaneTorrent_Timer < diff)
+ {
+ DoCast(m_creature->getVictim(),SPELL_ARCANE_TORRENT);
+ ArcaneTorrent_Timer = 12000 + rand()%6000;
+ }else ArcaneTorrent_Timer -= diff;
+
+ if(Domination_Timer < diff)
+ {
if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM,1))
{
switch(rand()%2)
@@ -139,22 +139,22 @@ struct TRINITY_DLL_DECL boss_pathaleon_the_calculatorAI : public ScriptedAI
case 0: DoScriptText(SAY_DOMINATION_1, m_creature); break;
case 1: DoScriptText(SAY_DOMINATION_2, m_creature); break;
}
-
- DoCast(target,SPELL_DOMINATION);
+
+ DoCast(target,SPELL_DOMINATION);
}
- Domination_Timer = 25000 + rand()%5000;
- }else Domination_Timer -= diff;
-
+ Domination_Timer = 25000 + rand()%5000;
+ }else Domination_Timer -= diff;
+
//Only casting if Heroic Mode is used
if (HeroicMode)
{
- if(ArcaneExplosion_Timer < diff)
- {
- DoCast(m_creature->getVictim(),H_SPELL_ARCANE_EXPLOSION);
- ArcaneExplosion_Timer = 10000 + rand()%4000;
+ if(ArcaneExplosion_Timer < diff)
+ {
+ DoCast(m_creature->getVictim(),H_SPELL_ARCANE_EXPLOSION);
+ ArcaneExplosion_Timer = 10000 + rand()%4000;
}else ArcaneExplosion_Timer -= diff;
}
-
+
if (!Enraged && m_creature->GetHealth()*100 / m_creature->GetMaxHealth() < 21)
{
DoCast(m_creature, SPELL_FRENZY);
@@ -164,12 +164,12 @@ struct TRINITY_DLL_DECL boss_pathaleon_the_calculatorAI : public ScriptedAI
}
DoMeleeAttackIfReady();
- }
-};
+ }
+};
CreatureAI* GetAI_boss_pathaleon_the_calculator(Creature *_Creature)
-{
+{
return new boss_pathaleon_the_calculatorAI (_Creature);
-}
+}
struct TRINITY_DLL_DECL mob_nether_wraithAI : public ScriptedAI
{
@@ -183,7 +183,7 @@ struct TRINITY_DLL_DECL mob_nether_wraithAI : public ScriptedAI
bool Detonation;
void Reset()
- {
+ {
ArcaneMissiles_Timer = 1000 + rand()%3000;
Detonation_Timer = 20000;
Die_Timer = 2200;
@@ -203,7 +203,7 @@ struct TRINITY_DLL_DECL mob_nether_wraithAI : public ScriptedAI
if(ArcaneMissiles_Timer < diff)
{
if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM,1))
- DoCast(target,SPELL_ARCANE_MISSILES);
+ DoCast(target,SPELL_ARCANE_MISSILES);
else
DoCast(m_creature->getVictim(),SPELL_ARCANE_MISSILES);
@@ -212,11 +212,11 @@ struct TRINITY_DLL_DECL mob_nether_wraithAI : public ScriptedAI
if (!Detonation)
{
- if(Detonation_Timer < diff)
- {
- DoCast(m_creature,SPELL_DETONATION);
- Detonation = true;
- }else Detonation_Timer -= diff;
+ if(Detonation_Timer < diff)
+ {
+ DoCast(m_creature,SPELL_DETONATION);
+ Detonation = true;
+ }else Detonation_Timer -= diff;
}
@@ -240,15 +240,15 @@ CreatureAI* GetAI_mob_nether_wraith(Creature *_Creature)
}
void AddSC_boss_pathaleon_the_calculator()
-{
- Script *newscript;
- newscript = new Script;
- newscript->Name="boss_pathaleon_the_calculator";
- newscript->GetAI = &GetAI_boss_pathaleon_the_calculator;
+{
+ Script *newscript;
+ newscript = new Script;
+ newscript->Name="boss_pathaleon_the_calculator";
+ newscript->GetAI = &GetAI_boss_pathaleon_the_calculator;
newscript->RegisterSelf();
- newscript = new Script;
- newscript->Name="mob_nether_wraith";
- newscript->GetAI = &GetAI_mob_nether_wraith;
+ newscript = new Script;
+ newscript->Name="mob_nether_wraith";
+ newscript->GetAI = &GetAI_mob_nether_wraith;
newscript->RegisterSelf();
}
diff --git a/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/instance_mechanar.cpp b/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/instance_mechanar.cpp
index 3f720cdfbc8..40e12b66138 100644
--- a/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/instance_mechanar.cpp
+++ b/src/bindings/scripts/scripts/zone/tempest_keep/the_mechanar/instance_mechanar.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Instance_Mechanar
SD%Complete: 100
-SDComment:
+SDComment:
SDCategory: Mechanar
EndScriptData */
@@ -28,19 +28,19 @@ struct TRINITY_DLL_DECL instance_mechanar : public ScriptedInstance
{
instance_mechanar(Map *map) : ScriptedInstance(map) {Initialize();};
-
+
bool IsBossDied[1];
void OnCreatureCreate (Creature *creature, uint32 creature_entry)
{
- }
+ }
void Initialize()
{
IsBossDied[0] = false;
}
- bool IsEncounterInProgress() const
+ bool IsEncounterInProgress() const
{
//not active
return false;
diff --git a/src/bindings/scripts/scripts/zone/temple_of_ahnqiraj/boss_cthun.cpp b/src/bindings/scripts/scripts/zone/temple_of_ahnqiraj/boss_cthun.cpp
index 7932e027355..ede0c649b36 100644
--- a/src/bindings/scripts/scripts/zone/temple_of_ahnqiraj/boss_cthun.cpp
+++ b/src/bindings/scripts/scripts/zone/temple_of_ahnqiraj/boss_cthun.cpp
@@ -575,7 +575,7 @@ struct TRINITY_DLL_DECL cthunAI : public Scripted_NoMovementAI
{
if (Player* i_pl = i->getSource())
{
- //Play random sound to the zone
+ //Play random sound to the zone
i_pl->SendPlaySound(RANDOM_SOUND_WHISPER, true);
}
}
diff --git a/src/bindings/scripts/scripts/zone/temple_of_ahnqiraj/boss_sartura.cpp b/src/bindings/scripts/scripts/zone/temple_of_ahnqiraj/boss_sartura.cpp
index 81fe9152bcd..8fe53cc70a1 100644
--- a/src/bindings/scripts/scripts/zone/temple_of_ahnqiraj/boss_sartura.cpp
+++ b/src/bindings/scripts/scripts/zone/temple_of_ahnqiraj/boss_sartura.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_Sartura
SD%Complete: 95
-SDComment:
+SDComment:
SDCategory: Temple of Ahn'Qiraj
EndScriptData */
@@ -63,7 +63,7 @@ struct TRINITY_DLL_DECL boss_sarturaAI : public ScriptedAI
WhirlWind = false;
AggroReset = false;
- Enraged = false;
+ Enraged = false;
EnragedHard = false;
}
@@ -144,7 +144,7 @@ struct TRINITY_DLL_DECL boss_sarturaAI : public ScriptedAI
DoCast(m_creature, SPELL_ENRAGE);
Enraged = true;
}
- }
+ }
//After 10 minutes hard enrage
if (!EnragedHard)
@@ -159,7 +159,7 @@ struct TRINITY_DLL_DECL boss_sarturaAI : public ScriptedAI
DoMeleeAttackIfReady();
}
}
-};
+};
struct TRINITY_DLL_DECL mob_sartura_royal_guardAI : public ScriptedAI
@@ -172,7 +172,7 @@ struct TRINITY_DLL_DECL mob_sartura_royal_guardAI : public ScriptedAI
uint32 AggroReset_Timer;
uint32 AggroResetEnd_Timer;
uint32 KnockBack_Timer;
-
+
bool WhirlWind;
bool AggroReset;
@@ -184,7 +184,7 @@ struct TRINITY_DLL_DECL mob_sartura_royal_guardAI : public ScriptedAI
AggroReset_Timer = 45000 + rand()%10000;
AggroResetEnd_Timer = 5000;
KnockBack_Timer = 10000;
-
+
WhirlWind = false;
AggroReset = false;
diff --git a/src/bindings/scripts/scripts/zone/terokkar_forest/terokkar_forest.cpp b/src/bindings/scripts/scripts/zone/terokkar_forest/terokkar_forest.cpp
index 811a3decce6..d03579bdaff 100644
--- a/src/bindings/scripts/scripts/zone/terokkar_forest/terokkar_forest.cpp
+++ b/src/bindings/scripts/scripts/zone/terokkar_forest/terokkar_forest.cpp
@@ -385,7 +385,7 @@ struct TRINITY_DLL_DECL npc_isla_starmaneAI : public npc_escortAI
switch(i)
{
- case 0:
+ case 0:
{
GameObject* Cage = FindGameObject(GO_CAGE, 10, m_creature);
if(Cage)
@@ -401,10 +401,10 @@ struct TRINITY_DLL_DECL npc_isla_starmaneAI : public npc_escortAI
((Player*)player)->GroupEventHappens(QUEST_EFTW_A, m_creature);
else if(((Player*)player)->GetTeam() == HORDE)
((Player*)player)->GroupEventHappens(QUEST_EFTW_H, m_creature);
- } Completed = true;
+ } Completed = true;
m_creature->SetInFront(player); break;
case 30: m_creature->HandleEmoteCommand(EMOTE_ONESHOT_WAVE); break;
- case 31: DoCast(m_creature, SPELL_CAT);
+ case 31: DoCast(m_creature, SPELL_CAT);
m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE); break;
}
}
@@ -481,7 +481,7 @@ CreatureAI* GetAI_npc_isla_starmaneAI(Creature *_Creature)
thisAI->AddWaypoint(26, -2313.99, 3398.61, -10.40);
thisAI->AddWaypoint(27, -2320.85, 3414.49, -11.49);
thisAI->AddWaypoint(28, -2338.26, 3426.06, -11.46);
- thisAI->AddWaypoint(29, -2342.67, 3439.44, -11.32, 12000);//progress4
+ thisAI->AddWaypoint(29, -2342.67, 3439.44, -11.32, 12000);//progress4
thisAI->AddWaypoint(30, -2342.67, 3439.44, -11.32, 7000);//emote bye
thisAI->AddWaypoint(31, -2342.67, 3439.44, -11.32, 5000);//cat form
thisAI->AddWaypoint(32, -2344.60, 3461.27, -10.44);
diff --git a/src/bindings/scripts/scripts/zone/thousand_needles/thousand_needles.cpp b/src/bindings/scripts/scripts/zone/thousand_needles/thousand_needles.cpp
index 91b1e0ae3e5..e95f7e7ca5d 100644
--- a/src/bindings/scripts/scripts/zone/thousand_needles/thousand_needles.cpp
+++ b/src/bindings/scripts/scripts/zone/thousand_needles/thousand_needles.cpp
@@ -52,7 +52,7 @@ npc_swiftmountainAI(Creature *c) : npc_escortAI(c) {Reset();}
{
case 46:
DoScriptText(SAY_AGGRO, m_creature, player);
- break;
+ break;
case 47:
m_creature->SummonCreature(ENTRY_WYVERN, -5016.45, -935.01, -5.46, 5.36,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
m_creature->SummonCreature(ENTRY_WYVERN, -5001.98, -934.96, -5.55, 3.18,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
@@ -63,13 +63,13 @@ npc_swiftmountainAI(Creature *c) : npc_escortAI(c) {Reset();}
if (player && player->GetTypeId() == TYPEID_PLAYER)
((Player*)player)->GroupEventHappens(QUEST_HOMEWARD_BOUND,m_creature);
break;
-
+
}
}
void Reset()
{
-
+
}
void Aggro(Unit* who)
@@ -184,7 +184,7 @@ CreatureAI* GetAI_npc_swiftmountain(Creature *_Creature)
thisAI->AddWaypoint(69, -4932.68, -1084.42, -51.00);
thisAI->AddWaypoint(70, -4938.3, -1100.41, -50.71, 5000);
thisAI->AddWaypoint(71, -4937.34, -1102.87, -49.82);
-
+
return (CreatureAI*)thisAI;
}
diff --git a/src/bindings/scripts/scripts/zone/tirisfal_glades/tirisfal_glades.cpp b/src/bindings/scripts/scripts/zone/tirisfal_glades/tirisfal_glades.cpp
index 8b7b0596005..9b75549bc4c 100644
--- a/src/bindings/scripts/scripts/zone/tirisfal_glades/tirisfal_glades.cpp
+++ b/src/bindings/scripts/scripts/zone/tirisfal_glades/tirisfal_glades.cpp
@@ -93,20 +93,20 @@ bool QuestAccept_npc_calvin_montague(Player* player, Creature* creature, Quest c
GameObject* SearchMausoleumGo(Unit *source, uint32 entry, float range)
{
GameObject* pGo = NULL;
-
+
CellPair pair(Trinity::ComputeCellPair(source->GetPositionX(), source->GetPositionY()));
Cell cell(pair);
cell.data.Part.reserved = ALL_DISTRICT;
cell.SetNoCreate();
-
+
Trinity::NearestGameObjectEntryInObjectRangeCheck go_check(*source, entry, range);
Trinity::GameObjectLastSearcher searcher(pGo, go_check);
-
+
TypeContainerVisitor, GridTypeMapContainer> go_searcher(searcher);
-
+
CellLock cell_lock(cell, pair);
cell_lock->Visit(cell_lock, go_searcher,*(source->GetMap()));
-
+
return pGo;
}
@@ -114,14 +114,14 @@ bool GOHello_go_mausoleum_door(Player *player, GameObject* _GO)
{
if (player->GetQuestStatus(QUEST_ULAG) != QUEST_STATUS_INCOMPLETE)
return false;
-
+
if (GameObject *trigger = SearchMausoleumGo(player, GO_TRIGGER, 30))
{
trigger->SetGoState(1);
player->SummonCreature(C_ULAG, 2390.26, 336.47, 40.01, 2.26, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 300000);
return false;
}
-
+
return false;
}
@@ -129,14 +129,14 @@ bool GOHello_go_mausoleum_trigger(Player *player, GameObject* _GO)
{
if (player->GetQuestStatus(QUEST_ULAG) != QUEST_STATUS_INCOMPLETE)
return false;
-
+
if (GameObject *door = SearchMausoleumGo(player, GO_DOOR, 30))
{
_GO->SetGoState(0);
door->RemoveFlag(GAMEOBJECT_FLAGS,GO_FLAG_INTERACT_COND);
return true;
}
-
+
return false;
}
diff --git a/src/bindings/scripts/scripts/zone/uldaman/boss_archaedas.cpp b/src/bindings/scripts/scripts/zone/uldaman/boss_archaedas.cpp
index 88fc5491802..8859b947eaf 100644
--- a/src/bindings/scripts/scripts/zone/uldaman/boss_archaedas.cpp
+++ b/src/bindings/scripts/scripts/zone/uldaman/boss_archaedas.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: boss_archaedas
SD%Complete: 100
-SDComment: Archaedas is activated when 3 prople click on his altar.
+SDComment: Archaedas is activated when 3 prople click on his altar.
Every 10 seconds he will awaken one of his minions along the wall.
At 66%, he will awaken the 6 Guardians.
At 33%, he will awaken the Vault Walkers
@@ -258,7 +258,7 @@ struct TRINITY_DLL_DECL mob_archaedas_minionsAI : public ScriptedAI
void UpdateAI(const uint32 diff)
{
- // we're still in the awaken animation
+ // we're still in the awaken animation
if (wakingUp && Awaken_Timer >= 0) {
Awaken_Timer -= diff;
return; // dont do anything until we are done
diff --git a/src/bindings/scripts/scripts/zone/uldaman/instance_uldaman.cpp b/src/bindings/scripts/scripts/zone/uldaman/instance_uldaman.cpp
index c564088be76..930e0d2f562 100644
--- a/src/bindings/scripts/scripts/zone/uldaman/instance_uldaman.cpp
+++ b/src/bindings/scripts/scripts/zone/uldaman/instance_uldaman.cpp
@@ -69,12 +69,12 @@ struct TRINITY_DLL_DECL instance_uldaman : public ScriptedInstance
archaedasTempleDoor = go->GetGUID();
break;
- case ANCIENT_VAULT_DOOR:
+ case ANCIENT_VAULT_DOOR:
go->SetUInt32Value(GAMEOBJECT_STATE,1);
go->SetUInt32Value(GAMEOBJECT_FLAGS, 33);
ancientVaultDoor = go->GetGUID();
break;
- }
+ }
}
void SetFrozenState(Creature *creature)
@@ -236,7 +236,7 @@ struct TRINITY_DLL_DECL instance_uldaman : public ScriptedInstance
ActivateArchaedas (data);
}
}
-
+
void OnCreatureCreate (Creature *creature, uint32 creature_entry)
{
diff --git a/src/bindings/scripts/scripts/zone/ungoro_crater/ungoro_crater.cpp b/src/bindings/scripts/scripts/zone/ungoro_crater/ungoro_crater.cpp
index b3ac3d795c8..50f7bbcf9e4 100644
--- a/src/bindings/scripts/scripts/zone/ungoro_crater/ungoro_crater.cpp
+++ b/src/bindings/scripts/scripts/zone/ungoro_crater/ungoro_crater.cpp
@@ -58,34 +58,34 @@ struct TRINITY_DLL_DECL npc_ameAI : public npc_escortAI
switch (i)
{
-
+
case 19:
m_creature->SummonCreature(ENTRY_STOMPER, -6391.69, -1730.49, -272.83, 4.96, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
- DoScriptText(SAY_AGGRO1, m_creature, player);
+ DoScriptText(SAY_AGGRO1, m_creature, player);
break;
case 28:
- DoScriptText(SAY_SEARCH, m_creature, player);
+ DoScriptText(SAY_SEARCH, m_creature, player);
break;
case 38:
m_creature->SummonCreature(ENTRY_TARLORD, -6370.75, -1382.84, -270.51, 6.06, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
- DoScriptText(SAY_AGGRO2, m_creature, player);
+ DoScriptText(SAY_AGGRO2, m_creature, player);
break;
case 49:
m_creature->SummonCreature(ENTRY_TARLORD1, -6324.44, -1181.05, -270.17, 4.34, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000);
- DoScriptText(SAY_AGGRO3, m_creature, player);
+ DoScriptText(SAY_AGGRO3, m_creature, player);
break;
case 55:
DoScriptText(SAY_FINISH, m_creature, player);
if (player && player->GetTypeId() == TYPEID_PLAYER)
((Player*)player)->GroupEventHappens(QUEST_CHASING_AME,m_creature);
break;
-
+
}
}
void Reset()
{
- DEMORALIZINGSHOUT_Timer = 5000;
+ DEMORALIZINGSHOUT_Timer = 5000;
}
void Aggro(Unit* who)
@@ -110,13 +110,13 @@ struct TRINITY_DLL_DECL npc_ameAI : public npc_escortAI
npc_escortAI::UpdateAI(diff);
if (!UpdateVictim())
return;
-
+
if (DEMORALIZINGSHOUT_Timer < diff)
{
DoCast(m_creature->getVictim(),SPELL_DEMORALIZINGSHOUT);
DEMORALIZINGSHOUT_Timer = 70000;
}else DEMORALIZINGSHOUT_Timer -= diff;
-
+
}
};
@@ -126,7 +126,7 @@ bool QuestAccept_npc_ame(Player* player, Creature* creature, Quest const* quest)
{
((npc_escortAI*)(creature->AI()))->Start(false, true, false, player->GetGUID());
DoScriptText(SAY_READY, creature, player);
- creature->SetUInt32Value(UNIT_FIELD_BYTES_1,0);
+ creature->SetUInt32Value(UNIT_FIELD_BYTES_1,0);
// Change faction so mobs attack
creature->setFaction(113);
}
@@ -193,7 +193,7 @@ CreatureAI* GetAI_npc_ame(Creature *_Creature)
thisAI->AddWaypoint(54, -6308.49, -1179.12, -269.57);
thisAI->AddWaypoint(55, -6302.43, -1181.32, -269.328, 5000);
thisAI->AddWaypoint(56, -6298.87, -1185.79, -269.278);
-
+
return (CreatureAI*)thisAI;
}
diff --git a/src/bindings/scripts/scripts/zone/westfall/westfall.cpp b/src/bindings/scripts/scripts/zone/westfall/westfall.cpp
index 40faa01a9f0..9abd202dedf 100644
--- a/src/bindings/scripts/scripts/zone/westfall/westfall.cpp
+++ b/src/bindings/scripts/scripts/zone/westfall/westfall.cpp
@@ -170,7 +170,7 @@ CreatureAI* GetAI_npc_defias_traitor(Creature *_Creature)
void AddSC_westfall()
{
Script *newscript;
-
+
newscript = new Script;
newscript->Name="npc_defias_traitor";
newscript->GetAI = &GetAI_npc_defias_traitor;
diff --git a/src/bindings/scripts/scripts/zone/zulaman/boss_akilzon.cpp b/src/bindings/scripts/scripts/zone/zulaman/boss_akilzon.cpp
index c314e889253..453f111d6bd 100644
--- a/src/bindings/scripts/scripts/zone/zulaman/boss_akilzon.cpp
+++ b/src/bindings/scripts/scripts/zone/zulaman/boss_akilzon.cpp
@@ -18,7 +18,7 @@
SDName: boss_Akilzon
SD%Complete: 75%
SDComment: Missing timer for Call Lightning and Sound ID's
-SQLUpdate:
+SQLUpdate:
#Temporary fix for Soaring Eagles
EndScriptData */
@@ -109,8 +109,8 @@ struct TRINITY_DLL_DECL boss_akilzonAI : public ScriptedAI
StormSequenceTimer = 0;
isRaining = false;
-
- SetWeather(WEATHER_STATE_FINE, 0.0f);
+
+ SetWeather(WEATHER_STATE_FINE, 0.0f);
}
void Aggro(Unit *who)
@@ -148,7 +148,7 @@ struct TRINITY_DLL_DECL boss_akilzonAI : public ScriptedAI
void DespawnSummons()
{
- for (uint8 i = 0; i < 8; i++)
+ for (uint8 i = 0; i < 8; i++)
{
Unit* bird = Unit::GetUnit(*m_creature,BirdGUIDs[i]);
if(bird && bird->isAlive())
@@ -204,12 +204,12 @@ struct TRINITY_DLL_DECL boss_akilzonAI : public ScriptedAI
{
Cloud->CastCustomSpell(*i, 43137, &bp0, NULL, NULL, true, 0, 0, m_creature->GetGUID());
}
- }
+ }
// visual
float x,y,z;
- z = m_creature->GetPositionZ();
+ z = m_creature->GetPositionZ();
for(uint8 i = 0; i < 5+rand()%5; ++i)
- {
+ {
x = 343+rand()%60;
y = 1380+rand()%60;
if(Unit *trigger = m_creature->SummonTrigger(x, y, z, 0, 2000))
@@ -221,7 +221,7 @@ struct TRINITY_DLL_DECL boss_akilzonAI : public ScriptedAI
if (Cloud)
Cloud->CastCustomSpell(trigger, /*43661*/43137, &bp0, NULL, NULL,true, 0, 0, Cloud->GetGUID());
}
- }
+ }
}
StormCount++;
if(StormCount > 10)
@@ -231,7 +231,7 @@ struct TRINITY_DLL_DECL boss_akilzonAI : public ScriptedAI
m_creature->InterruptNonMeleeSpells(false);
CloudGUID = 0;
if (Cloud)
- Cloud->DealDamage(Cloud, Cloud->GetHealth(),NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
+ Cloud->DealDamage(Cloud, Cloud->GetHealth(),NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
SetWeather(WEATHER_STATE_FINE, 0.0f);
isRaining = false;
}
@@ -305,7 +305,7 @@ struct TRINITY_DLL_DECL boss_akilzonAI : public ScriptedAI
return;
}
target->CastSpell(target, 44007, true);//cloud visual
- m_creature->CastSpell(target, SPELL_ELECTRICAL_STORM, false);//storm cyclon + visual
+ m_creature->CastSpell(target, SPELL_ELECTRICAL_STORM, false);//storm cyclon + visual
float x,y,z;
target->GetPosition(x,y,z);
if (target)
@@ -330,7 +330,7 @@ struct TRINITY_DLL_DECL boss_akilzonAI : public ScriptedAI
StormSequenceTimer = 0;
} else ElectricalStorm_Timer -= diff;
- if (SummonEagles_Timer < diff)
+ if (SummonEagles_Timer < diff)
{
DoYell(SAY_ONSUMMON, LANG_UNIVERSAL, NULL);
DoPlaySoundToSet(m_creature, SOUND_ONSUMMON);
@@ -338,11 +338,11 @@ struct TRINITY_DLL_DECL boss_akilzonAI : public ScriptedAI
float x, y, z;
m_creature->GetPosition(x, y, z);
- for (uint8 i = 0; i < 8; i++)
+ for (uint8 i = 0; i < 8; i++)
{
Unit* bird = Unit::GetUnit(*m_creature,BirdGUIDs[i]);
if(!bird)//they despawned on die
- {
+ {
if(Unit* target = SelectUnit(SELECT_TARGET_RANDOM, 0))
{
x = target->GetPositionX() + 10 - rand()%20;
@@ -357,7 +357,7 @@ struct TRINITY_DLL_DECL boss_akilzonAI : public ScriptedAI
pCreature->AI()->AttackStart(m_creature->getVictim());
BirdGUIDs[i] = pCreature->GetGUID();
}
- }
+ }
}
SummonEagles_Timer = 999999;
} else SummonEagles_Timer -= diff;
diff --git a/src/bindings/scripts/scripts/zone/zulaman/boss_halazzi.cpp b/src/bindings/scripts/scripts/zone/zulaman/boss_halazzi.cpp
index b14b0442373..818e87b3ce0 100644
--- a/src/bindings/scripts/scripts/zone/zulaman/boss_halazzi.cpp
+++ b/src/bindings/scripts/scripts/zone/zulaman/boss_halazzi.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: boss_Halazzi
SD%Complete: 80
-SDComment:
+SDComment:
SDCategory: Zul'Aman
EndScriptData */
@@ -74,7 +74,7 @@ enum PhaseHalazzi
struct TRINITY_DLL_DECL boss_halazziAI : public ScriptedAI
{
boss_halazziAI(Creature *c) : ScriptedAI(c)
- {
+ {
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
// need to find out what controls totem's spell cooldown
@@ -293,7 +293,7 @@ struct TRINITY_DLL_DECL boss_halazziAI : public ScriptedAI
else
EnterPhase(PHASE_ENRAGE);
}
- }
+ }
CheckTimer = 1000;
}else CheckTimer -= diff;
}
diff --git a/src/bindings/scripts/scripts/zone/zulaman/boss_hexlord.cpp b/src/bindings/scripts/scripts/zone/zulaman/boss_hexlord.cpp
index f72ee9963c9..fe31c5fbfc1 100644
--- a/src/bindings/scripts/scripts/zone/zulaman/boss_hexlord.cpp
+++ b/src/bindings/scripts/scripts/zone/zulaman/boss_hexlord.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_Hex_Lord_Malacrass
SD%Complete:
-SDComment:
+SDComment:
SDCategory: Zul'Aman
EndScriptData */
@@ -465,7 +465,7 @@ struct TRINITY_DLL_DECL boss_thurgAI : public boss_hexlord_addAI
if(bloodlust_timer < diff)
{
std::list templist = DoFindFriendlyMissingBuff(50, SPELL_BLOODLUST);
- if(!templist.empty())
+ if(!templist.empty())
{
if(Unit* target = *(templist.begin()))
m_creature->CastSpell(target, SPELL_BLOODLUST, false);
@@ -649,7 +649,7 @@ struct TRINITY_DLL_DECL boss_lord_raadanAI : public boss_hexlord_addAI
return;
if (thunderclap_timer < diff)
- {
+ {
m_creature->CastSpell(m_creature->getVictim(),SPELL_THUNDERCLAP, false);
thunderclap_timer = 12000;
}else thunderclap_timer -= diff;
@@ -685,7 +685,7 @@ struct TRINITY_DLL_DECL boss_darkheartAI : public boss_hexlord_addAI
return;
if (psychicwail_timer < diff)
- {
+ {
m_creature->CastSpell(m_creature->getVictim(),SPELL_PSYCHIC_WAIL, false);
psychicwail_timer = 12000;
}else psychicwail_timer -= diff;
@@ -736,7 +736,7 @@ struct TRINITY_DLL_DECL boss_slitherAI : public boss_hexlord_addAI
return;
if (venomspit_timer < diff)
- {
+ {
if(Unit* victim = SelectUnit(SELECT_TARGET_RANDOM, 0))
m_creature->CastSpell(victim,SPELL_VENOM_SPIT, false);
venomspit_timer = 2500;
@@ -768,7 +768,7 @@ struct TRINITY_DLL_DECL boss_fenstalkerAI : public boss_hexlord_addAI
return;
if (volatileinf_timer < diff)
- {
+ {
// core bug
m_creature->getVictim()->CastSpell(m_creature->getVictim(),SPELL_VOLATILE_INFECTION, false);
volatileinf_timer = 12000;
@@ -804,7 +804,7 @@ struct TRINITY_DLL_DECL boss_koraggAI : public boss_hexlord_addAI
return;
if (mightyblow_timer < diff)
- {
+ {
m_creature->CastSpell(m_creature->getVictim(),SPELL_MIGHTY_BLOW, false);
mightyblow_timer = 12000;
}
diff --git a/src/bindings/scripts/scripts/zone/zulaman/boss_janalai.cpp b/src/bindings/scripts/scripts/zone/zulaman/boss_janalai.cpp
index 261343fb527..e4efe3d83ba 100644
--- a/src/bindings/scripts/scripts/zone/zulaman/boss_janalai.cpp
+++ b/src/bindings/scripts/scripts/zone/zulaman/boss_janalai.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_Janalai
SD%Complete: 100
-SDComment:
+SDComment:
SDCategory: Zul'Aman
EndScriptData */
@@ -46,10 +46,10 @@ EndScriptData */
#define SPELL_HATCH_ALL 43144
#define SPELL_BERSERK 45078
// -- Fire Bob Spells
-#define SPELL_FIRE_BOMB_CHANNEL 42621 // last forever
+#define SPELL_FIRE_BOMB_CHANNEL 42621 // last forever
#define SPELL_FIRE_BOMB_THROW 42628 // throw visual
#define SPELL_FIRE_BOMB_DUMMY 42629 // bomb visual
-#define SPELL_FIRE_BOMB_DAMAGE 42630
+#define SPELL_FIRE_BOMB_DAMAGE 42630
// --Summons
#define MOB_AMANI_HATCHER 23818
@@ -66,12 +66,12 @@ EndScriptData */
const int area_dx = 44;
const int area_dy = 51;
-float JanalainPos[1][3] =
+float JanalainPos[1][3] =
{
{-33.93, 1149.27, 19}
};
-float FireWallCoords[4][4] =
+float FireWallCoords[4][4] =
{
{-10.13, 1149.27, 19, 3.1415},
{-33.93, 1123.90, 19, 0.5*3.1415},
@@ -100,7 +100,7 @@ float hatcherway[2][5][3] =
struct TRINITY_DLL_DECL boss_janalaiAI : public ScriptedAI
{
boss_janalaiAI(Creature *c) : ScriptedAI(c)
- {
+ {
pInstance =((ScriptedInstance*)c->GetInstanceData());
Reset();
@@ -128,7 +128,7 @@ struct TRINITY_DLL_DECL boss_janalaiAI : public ScriptedAI
bool isFlameBreathing;
- uint64 FireBombGUIDs[40];
+ uint64 FireBombGUIDs[40];
void Reset()
{
@@ -166,7 +166,7 @@ struct TRINITY_DLL_DECL boss_janalaiAI : public ScriptedAI
void KilledUnit(Unit* victim)
{
switch(rand()%2)
- {
+ {
case 0: DoScriptText(SAY_SLAY_1, m_creature); break;
case 1: DoScriptText(SAY_SLAY_2, m_creature); break;
}
@@ -337,7 +337,7 @@ struct TRINITY_DLL_DECL boss_janalaiAI : public ScriptedAI
}
if(!UpdateVictim())
- return;
+ return;
//enrage if under 25% hp before 5 min.
if(!enraged && m_creature->GetHealth() * 4 < m_creature->GetMaxHealth())
@@ -355,7 +355,7 @@ struct TRINITY_DLL_DECL boss_janalaiAI : public ScriptedAI
{
DoScriptText(SAY_BERSERK, m_creature);
m_creature->CastSpell(m_creature, SPELL_BERSERK, true);
- EnrageTimer = 300000;
+ EnrageTimer = 300000;
}
}else EnrageTimer -= diff;
@@ -393,7 +393,7 @@ struct TRINITY_DLL_DECL boss_janalaiAI : public ScriptedAI
if(!noeggs)
{
- if(100 * m_creature->GetHealth() < 35 * m_creature->GetMaxHealth())
+ if(100 * m_creature->GetHealth() < 35 * m_creature->GetMaxHealth())
{
DoScriptText(SAY_ALL_EGGS, m_creature);
@@ -409,8 +409,8 @@ struct TRINITY_DLL_DECL boss_janalaiAI : public ScriptedAI
else if(HatcherTimer < diff)
{
if(HatchAllEggs(0))
- {
- DoScriptText(SAY_SUMMON_HATCHER, m_creature);
+ {
+ DoScriptText(SAY_SUMMON_HATCHER, m_creature);
m_creature->SummonCreature(MOB_AMANI_HATCHER,hatcherway[0][0][0],hatcherway[0][0][1],hatcherway[0][0][2],0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,10000);
m_creature->SummonCreature(MOB_AMANI_HATCHER,hatcherway[1][0][0],hatcherway[1][0][1],hatcherway[1][0][2],0,TEMPSUMMON_CORPSE_TIMED_DESPAWN,10000);
HatcherTimer = 90000;
@@ -429,10 +429,10 @@ struct TRINITY_DLL_DECL boss_janalaiAI : public ScriptedAI
ResetTimer = 5000;
}else ResetTimer -= diff;
- DoMeleeAttackIfReady();
+ DoMeleeAttackIfReady();
if(FireBreathTimer < diff)
- {
+ {
if(Unit* target = SelectUnit(SELECT_TARGET_RANDOM,0))
{
m_creature->AttackStop();
@@ -441,9 +441,9 @@ struct TRINITY_DLL_DECL boss_janalaiAI : public ScriptedAI
m_creature->StopMoving();
isFlameBreathing = true;
}
- FireBreathTimer = 8000;
+ FireBreathTimer = 8000;
}else FireBreathTimer -= diff;
- }
+ }
};
CreatureAI* GetAI_boss_janalaiAI(Creature *_Creature)
@@ -480,7 +480,7 @@ CreatureAI* GetAI_mob_jandalai_firebombAI(Creature *_Creature)
struct TRINITY_DLL_DECL mob_amanishi_hatcherAI : public ScriptedAI
{
mob_amanishi_hatcherAI(Creature *c) : ScriptedAI(c)
- {
+ {
pInstance =((ScriptedInstance*)c->GetInstanceData());
Reset();
}
@@ -554,12 +554,12 @@ struct TRINITY_DLL_DECL mob_amanishi_hatcherAI : public ScriptedAI
HatchNum = 1;
WaitTimer = 5000;
}
- else
+ else
WaitTimer = 1;
}
void UpdateAI(const uint32 diff)
- {
+ {
if(!pInstance || !(pInstance->GetData(DATA_JANALAIEVENT) == IN_PROGRESS))
{
m_creature->SetVisibility(VISIBILITY_OFF);
@@ -578,7 +578,7 @@ struct TRINITY_DLL_DECL mob_amanishi_hatcherAI : public ScriptedAI
}
}
else
- {
+ {
if(WaitTimer < diff)
{
if(HatchEggs(HatchNum))
@@ -612,7 +612,7 @@ CreatureAI* GetAI_mob_amanishi_hatcherAI(Creature *_Creature)
struct TRINITY_DLL_DECL mob_hatchlingAI : public ScriptedAI
{
mob_hatchlingAI(Creature *c) : ScriptedAI(c)
- {
+ {
pInstance =((ScriptedInstance*)c->GetInstanceData());
Reset();
}
@@ -675,7 +675,7 @@ struct TRINITY_DLL_DECL mob_eggAI : public ScriptedAI
{
DoSpawnCreature(MOB_HATCHLING, 0, 0, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 60000);
m_creature->SetDisplayId(11686);
- }
+ }
}
};
@@ -690,17 +690,17 @@ void AddSC_boss_janalai()
newscript = new Script;
newscript->Name="boss_janalai";
newscript->GetAI = &GetAI_boss_janalaiAI;
- newscript->RegisterSelf();
+ newscript->RegisterSelf();
newscript = new Script;
newscript->Name="mob_janalai_firebomb";
newscript->GetAI = &GetAI_mob_jandalai_firebombAI;
- newscript->RegisterSelf();
+ newscript->RegisterSelf();
newscript = new Script;
newscript->Name="mob_janalai_hatcher";
newscript->GetAI = &GetAI_mob_amanishi_hatcherAI;
- newscript->RegisterSelf();
+ newscript->RegisterSelf();
newscript = new Script;
newscript->Name="mob_janalai_hatchling";
@@ -710,5 +710,5 @@ void AddSC_boss_janalai()
newscript = new Script;
newscript->Name="mob_janalai_egg";
newscript->GetAI = &GetAI_mob_eggAI;
- newscript->RegisterSelf();
+ newscript->RegisterSelf();
}
diff --git a/src/bindings/scripts/scripts/zone/zulaman/boss_nalorakk.cpp b/src/bindings/scripts/scripts/zone/zulaman/boss_nalorakk.cpp
index 57bcefea1ab..c1ef845d1f8 100644
--- a/src/bindings/scripts/scripts/zone/zulaman/boss_nalorakk.cpp
+++ b/src/bindings/scripts/scripts/zone/zulaman/boss_nalorakk.cpp
@@ -26,15 +26,15 @@ EndScriptData */
#include "GridNotifiers.h"
//Trash Waves
-float NalorakkWay[8][3] =
+float NalorakkWay[8][3] =
{
{ 18.569, 1414.512, 11.42},// waypoint 1
{-17.264, 1419.551, 12.62},
{-52.642, 1419.357, 27.31},// waypoint 2
{-69.908, 1419.721, 27.31},
- {-79.929, 1395.958, 27.31},
+ {-79.929, 1395.958, 27.31},
{-80.072, 1374.555, 40.87},// waypoint 3
- {-80.072, 1314.398, 40.87},
+ {-80.072, 1314.398, 40.87},
{-80.072, 1295.775, 48.60} // waypoint 4
};
@@ -249,7 +249,7 @@ struct TRINITY_DLL_DECL boss_nalorakkAI : public ScriptedAI
m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
-
+
MoveEvent = false;
}
break;
@@ -269,16 +269,16 @@ struct TRINITY_DLL_DECL boss_nalorakkAI : public ScriptedAI
DoZoneInCombat();
}
- void JustDied(Unit* Killer)
+ void JustDied(Unit* Killer)
{
if(pInstance)
pInstance->SetData(DATA_NALORAKKEVENT, DONE);
DoYell(YELL_DEATH,LANG_UNIVERSAL,NULL);
- DoPlaySoundToSet(m_creature, SOUND_YELL_DEATH);
+ DoPlaySoundToSet(m_creature, SOUND_YELL_DEATH);
}
- void KilledUnit(Unit* victim)
+ void KilledUnit(Unit* victim)
{
switch(rand()%2)
{
@@ -289,7 +289,7 @@ struct TRINITY_DLL_DECL boss_nalorakkAI : public ScriptedAI
case 1:
DoYell(YELL_KILL_TWO, LANG_UNIVERSAL, NULL);
DoPlaySoundToSet(m_creature, SOUND_YELL_KILL_TWO);
- break;
+ break;
}
}
@@ -329,7 +329,7 @@ struct TRINITY_DLL_DECL boss_nalorakkAI : public ScriptedAI
inMove = false;
return;
}
-
+
}
}
@@ -433,7 +433,7 @@ struct TRINITY_DLL_DECL boss_nalorakkAI : public ScriptedAI
}else DeafeningRoar_Timer -= diff;
}
- DoMeleeAttackIfReady();
+ DoMeleeAttackIfReady();
}
};
diff --git a/src/bindings/scripts/scripts/zone/zulaman/boss_zuljin.cpp b/src/bindings/scripts/scripts/zone/zulaman/boss_zuljin.cpp
index bb3c00a4f71..685cfa57a0b 100644
--- a/src/bindings/scripts/scripts/zone/zulaman/boss_zuljin.cpp
+++ b/src/bindings/scripts/scripts/zone/zulaman/boss_zuljin.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: Boss_ZulJin
SD%Complete: 85%
-SDComment:
+SDComment:
EndScriptData */
#include "precompiled.h"
@@ -203,7 +203,7 @@ struct TRINITY_DLL_DECL boss_zuljinAI : public ScriptedAI
Pillar_Of_Fire_Timer = 7000;
ClawTargetGUID = 0;
- TankGUID = 0;
+ TankGUID = 0;
Summons.DespawnAll();
@@ -218,14 +218,14 @@ struct TRINITY_DLL_DECL boss_zuljinAI : public ScriptedAI
pInstance->SetData(DATA_ZULJINEVENT, IN_PROGRESS);
DoZoneInCombat();
-
+
DoYell(YELL_INTRO,LANG_UNIVERSAL,NULL);
DoPlaySoundToSet(m_creature, SOUND_INTRO);
SpawnAdds();
EnterPhase(0);
}
- void KilledUnit(Unit* victim)
+ void KilledUnit(Unit* victim)
{
if(Intro_Timer)
return;
@@ -239,11 +239,11 @@ struct TRINITY_DLL_DECL boss_zuljinAI : public ScriptedAI
case 1:
DoYell(YELL_KILL_TWO, LANG_UNIVERSAL, NULL);
DoPlaySoundToSet(m_creature, SOUND_KILL_TWO);
- break;
+ break;
}
}
- void JustDied(Unit* Killer)
+ void JustDied(Unit* Killer)
{
if(pInstance)
pInstance->SetData(DATA_ZULJINEVENT, DONE);
@@ -385,7 +385,7 @@ struct TRINITY_DLL_DECL boss_zuljinAI : public ScriptedAI
}
Phase = NextPhase;
}
-
+
void UpdateAI(const uint32 diff)
{
if(!TankGUID)
@@ -584,7 +584,7 @@ struct TRINITY_DLL_DECL feather_vortexAI : public ScriptedAI
void SpellHit(Unit *caster, const SpellEntry *spell)
{
if(spell->Id == SPELL_ZAP_INFORM)
- m_creature->CastSpell(caster, SPELL_ZAP_DAMAGE, true);
+ m_creature->CastSpell(caster, SPELL_ZAP_DAMAGE, true);
}
void UpdateAI(const uint32 diff)
diff --git a/src/bindings/scripts/scripts/zone/zulaman/instance_zulaman.cpp b/src/bindings/scripts/scripts/zone/zulaman/instance_zulaman.cpp
index 95e62063e26..8ab8b973581 100644
--- a/src/bindings/scripts/scripts/zone/zulaman/instance_zulaman.cpp
+++ b/src/bindings/scripts/scripts/zone/zulaman/instance_zulaman.cpp
@@ -17,7 +17,7 @@
/* ScriptData
SDName: instance_zulaman
SD%Complete: 80
-SDComment:
+SDComment:
SDCategory: Zul'Aman
EndScriptData */
@@ -46,7 +46,7 @@ static SHostageInfo HostageInfo[] =
{23999, 187021, 400, 1414, 74.36, 3.3}, // eagle
{24001, 186672, -35, 1134, 18.71, 1.9}, // dragonhawk
{24024, 186667, 413, 1117, 6.32, 3.1} // lynx
-
+
};
struct TRINITY_DLL_DECL instance_zulaman : public ScriptedInstance
@@ -96,7 +96,7 @@ struct TRINITY_DLL_DECL instance_zulaman : public ScriptedInstance
RandVendor[i] = NOT_STARTED;
}
- bool IsEncounterInProgress() const
+ bool IsEncounterInProgress() const
{
for(uint8 i = 0; i < ENCOUNTERS; i++)
if(Encounters[i] == IN_PROGRESS) return true;
@@ -105,7 +105,7 @@ struct TRINITY_DLL_DECL instance_zulaman : public ScriptedInstance
}
void OnCreatureCreate(Creature *creature, uint32 creature_entry)
- {
+ {
switch(creature_entry)
{
case 23578://janalai
@@ -292,7 +292,7 @@ struct TRINITY_DLL_DECL instance_zulaman : public ScriptedInstance
case DATA_ZULJINEVENT: return Encounters[5];
case DATA_CHESTLOOTED: return ChestLooted;
case TYPE_RAND_VENDOR_1: return RandVendor[0];
- case TYPE_RAND_VENDOR_2: return RandVendor[1];
+ case TYPE_RAND_VENDOR_2: return RandVendor[1];
default: return 0;
}
}
diff --git a/src/bindings/scripts/scripts/zone/zulaman/zulaman.cpp b/src/bindings/scripts/scripts/zone/zulaman/zulaman.cpp
index fa8971ffd93..2f6624f9839 100644
--- a/src/bindings/scripts/scripts/zone/zulaman/zulaman.cpp
+++ b/src/bindings/scripts/scripts/zone/zulaman/zulaman.cpp
@@ -39,7 +39,7 @@ EndContentData */
struct TRINITY_DLL_DECL npc_forest_frogAI : public ScriptedAI
{
npc_forest_frogAI(Creature* c) : ScriptedAI(c)
- {
+ {
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
}
diff --git a/src/bindings/scripts/scripts/zone/zulgurub/boss_arlokk.cpp b/src/bindings/scripts/scripts/zone/zulgurub/boss_arlokk.cpp
index 1dcfee08ef6..16344adc5ba 100644
--- a/src/bindings/scripts/scripts/zone/zulgurub/boss_arlokk.cpp
+++ b/src/bindings/scripts/scripts/zone/zulgurub/boss_arlokk.cpp
@@ -123,7 +123,7 @@ struct TRINITY_DLL_DECL boss_arlokkAI : public ScriptedAI
Panther = m_creature->SummonCreature(15101,-11532.79980,-1649.6734,41.4800,0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
if(markedTarget && Panther )
- {
+ {
DoScriptText(SAY_FEAST_PANTHER, m_creature, markedTarget);
Panther ->AI()->AttackStart(markedTarget);
}else Panther ->AI()->AttackStart(target);
diff --git a/src/bindings/scripts/scripts/zone/zulgurub/boss_hakkar.cpp b/src/bindings/scripts/scripts/zone/zulgurub/boss_hakkar.cpp
index a8d34b65c78..d8eada5662c 100644
--- a/src/bindings/scripts/scripts/zone/zulgurub/boss_hakkar.cpp
+++ b/src/bindings/scripts/scripts/zone/zulgurub/boss_hakkar.cpp
@@ -121,7 +121,7 @@ struct TRINITY_DLL_DECL boss_hakkarAI : public ScriptedAI
//CauseInsanity_Timer
/*if (CauseInsanity_Timer < diff)
- {
+ {
if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM,0))
DoCast(target,SPELL_CAUSEINSANITY);
diff --git a/src/bindings/scripts/scripts/zone/zulgurub/boss_jeklik.cpp b/src/bindings/scripts/scripts/zone/zulgurub/boss_jeklik.cpp
index e8bf5d27611..0d22a980f37 100644
--- a/src/bindings/scripts/scripts/zone/zulgurub/boss_jeklik.cpp
+++ b/src/bindings/scripts/scripts/zone/zulgurub/boss_jeklik.cpp
@@ -48,7 +48,7 @@ struct TRINITY_DLL_DECL boss_jeklikAI : public ScriptedAI
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
}
-
+
ScriptedInstance *pInstance;
uint32 Charge_Timer;
@@ -94,7 +94,7 @@ struct TRINITY_DLL_DECL boss_jeklikAI : public ScriptedAI
void UpdateAI(const uint32 diff)
{
- if (!UpdateVictim())
+ if (!UpdateVictim())
return;
if( m_creature->getVictim() && m_creature->isAlive())
diff --git a/src/bindings/scripts/scripts/zone/zulgurub/boss_jindo.cpp b/src/bindings/scripts/scripts/zone/zulgurub/boss_jindo.cpp
index 607c9e71224..3be31b32e11 100644
--- a/src/bindings/scripts/scripts/zone/zulgurub/boss_jindo.cpp
+++ b/src/bindings/scripts/scripts/zone/zulgurub/boss_jindo.cpp
@@ -46,7 +46,7 @@ struct TRINITY_DLL_DECL boss_jindoAI : public ScriptedAI
pInstance = (c->GetInstanceData()) ? ((ScriptedInstance*)c->GetInstanceData()) : NULL;
Reset();
}
-
+
ScriptedInstance *pInstance;
uint32 BrainWashTotem_Timer;
diff --git a/src/bindings/scripts/scripts/zone/zulgurub/boss_mandokir.cpp b/src/bindings/scripts/scripts/zone/zulgurub/boss_mandokir.cpp
index 477729f63d8..bccd9c44bf5 100644
--- a/src/bindings/scripts/scripts/zone/zulgurub/boss_mandokir.cpp
+++ b/src/bindings/scripts/scripts/zone/zulgurub/boss_mandokir.cpp
@@ -124,7 +124,7 @@ struct TRINITY_DLL_DECL boss_mandokirAI : public ScriptedAI
}
}
- void Aggro(Unit *who)
+ void Aggro(Unit *who)
{
DoScriptText(SAY_AGGRO, m_creature);
}
diff --git a/src/bindings/scripts/scripts/zone/zulgurub/boss_marli.cpp b/src/bindings/scripts/scripts/zone/zulgurub/boss_marli.cpp
index 4f3d8de2262..481784cc04c 100644
--- a/src/bindings/scripts/scripts/zone/zulgurub/boss_marli.cpp
+++ b/src/bindings/scripts/scripts/zone/zulgurub/boss_marli.cpp
@@ -45,7 +45,7 @@ struct TRINITY_DLL_DECL boss_marliAI : public ScriptedAI
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
}
-
+
ScriptedInstance *pInstance;
uint32 SpawnStartSpiders_Timer;
@@ -111,7 +111,7 @@ struct TRINITY_DLL_DECL boss_marliAI : public ScriptedAI
if (!Spawned && SpawnStartSpiders_Timer < diff)
{
DoScriptText(SAY_SPIDER_SPAWN, m_creature);
-
+
Unit* target = SelectUnit(SELECT_TARGET_RANDOM,0);
Spider = m_creature->SummonCreature(15041,target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(),0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
diff --git a/src/bindings/scripts/scripts/zone/zulgurub/boss_thekal.cpp b/src/bindings/scripts/scripts/zone/zulgurub/boss_thekal.cpp
index 1e68713fea9..db9ad23858d 100644
--- a/src/bindings/scripts/scripts/zone/zulgurub/boss_thekal.cpp
+++ b/src/bindings/scripts/scripts/zone/zulgurub/boss_thekal.cpp
@@ -228,7 +228,7 @@ struct TRINITY_DLL_DECL boss_thekalAI : public ScriptedAI
}
DoMeleeAttackIfReady();
-
+
}
};
diff --git a/src/bindings/scripts/scripts/zone/zulgurub/boss_venoxis.cpp b/src/bindings/scripts/scripts/zone/zulgurub/boss_venoxis.cpp
index 64ecb56bfd9..721476c5780 100644
--- a/src/bindings/scripts/scripts/zone/zulgurub/boss_venoxis.cpp
+++ b/src/bindings/scripts/scripts/zone/zulgurub/boss_venoxis.cpp
@@ -44,7 +44,7 @@ struct TRINITY_DLL_DECL boss_venoxisAI : public ScriptedAI
pInstance = ((ScriptedInstance*)c->GetInstanceData());
Reset();
}
-
+
ScriptedInstance *pInstance;
uint32 HolyFire_Timer;
@@ -181,7 +181,7 @@ struct TRINITY_DLL_DECL boss_venoxisAI : public ScriptedAI
}
}
DoMeleeAttackIfReady();
-
+
}
};
CreatureAI* GetAI_boss_venoxis(Creature *_Creature)
diff --git a/src/bindings/scripts/system.cpp b/src/bindings/scripts/system.cpp
index a4f9619c676..e1e103f58e1 100644
--- a/src/bindings/scripts/system.cpp
+++ b/src/bindings/scripts/system.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* Thanks to the original authors: MaNGOS
diff --git a/src/framework/Dynamic/FactoryHolder.h b/src/framework/Dynamic/FactoryHolder.h
index ca22384804d..a9c7a718541 100644
--- a/src/framework/Dynamic/FactoryHolder.h
+++ b/src/framework/Dynamic/FactoryHolder.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Dynamic/ObjectRegistry.h b/src/framework/Dynamic/ObjectRegistry.h
index 26cb8a8f144..25dfa9f5092 100644
--- a/src/framework/Dynamic/ObjectRegistry.h
+++ b/src/framework/Dynamic/ObjectRegistry.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/GameSystem/Grid.h b/src/framework/GameSystem/Grid.h
index 29c3844d0b6..a239795f3c3 100644
--- a/src/framework/GameSystem/Grid.h
+++ b/src/framework/GameSystem/Grid.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/GameSystem/GridLoader.h b/src/framework/GameSystem/GridLoader.h
index 900110a4d73..882974b81b0 100644
--- a/src/framework/GameSystem/GridLoader.h
+++ b/src/framework/GameSystem/GridLoader.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/GameSystem/GridRefManager.h b/src/framework/GameSystem/GridRefManager.h
index d1dc0fb4ab9..d233b844572 100644
--- a/src/framework/GameSystem/GridRefManager.h
+++ b/src/framework/GameSystem/GridRefManager.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/GameSystem/GridReference.h b/src/framework/GameSystem/GridReference.h
index 5e7d1108429..65592e780b1 100644
--- a/src/framework/GameSystem/GridReference.h
+++ b/src/framework/GameSystem/GridReference.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/GameSystem/NGrid.h b/src/framework/GameSystem/NGrid.h
index 77d82d1e60b..ecb20ff5069 100644
--- a/src/framework/GameSystem/NGrid.h
+++ b/src/framework/GameSystem/NGrid.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -67,7 +67,7 @@ class TRINITY_DLL_DECL NGrid
public:
typedef Grid GridType;
- NGrid(uint32 id, int32 x, int32 y, time_t expiry, bool unload = true) :
+ NGrid(uint32 id, int32 x, int32 y, time_t expiry, bool unload = true) :
i_gridId(id), i_cellstate(GRID_STATE_INVALID), i_x(x), i_y(y), i_GridObjectDataLoaded(false)
{
i_GridInfo = GridInfo(expiry, unload);
diff --git a/src/framework/GameSystem/TypeContainer.h b/src/framework/GameSystem/TypeContainer.h
index f0ae95e5096..b7949b8b461 100644
--- a/src/framework/GameSystem/TypeContainer.h
+++ b/src/framework/GameSystem/TypeContainer.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/GameSystem/TypeContainerFunctions.h b/src/framework/GameSystem/TypeContainerFunctions.h
index 388ba23a64d..4dc1bcf79ba 100644
--- a/src/framework/GameSystem/TypeContainerFunctions.h
+++ b/src/framework/GameSystem/TypeContainerFunctions.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/GameSystem/TypeContainerFunctionsPtr.h b/src/framework/GameSystem/TypeContainerFunctionsPtr.h
index e2499c8e1af..33df2b1461c 100644
--- a/src/framework/GameSystem/TypeContainerFunctionsPtr.h
+++ b/src/framework/GameSystem/TypeContainerFunctionsPtr.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/GameSystem/TypeContainerVisitor.h b/src/framework/GameSystem/TypeContainerVisitor.h
index e3808911915..c6999a88384 100644
--- a/src/framework/GameSystem/TypeContainerVisitor.h
+++ b/src/framework/GameSystem/TypeContainerVisitor.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Network/SocketDefines.h b/src/framework/Network/SocketDefines.h
index c98f235234d..b5c0434c1d3 100644
--- a/src/framework/Network/SocketDefines.h
+++ b/src/framework/Network/SocketDefines.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Platform/CompilerDefs.h b/src/framework/Platform/CompilerDefs.h
index 4af4179e196..cd7b6ff55bb 100644
--- a/src/framework/Platform/CompilerDefs.h
+++ b/src/framework/Platform/CompilerDefs.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Platform/Define.h b/src/framework/Platform/Define.h
index 395245d3955..5228359589b 100644
--- a/src/framework/Platform/Define.h
+++ b/src/framework/Platform/Define.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 Mangos
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Policies/CreationPolicy.h b/src/framework/Policies/CreationPolicy.h
index 0b1f3d660dd..72a7e265d62 100644
--- a/src/framework/Policies/CreationPolicy.h
+++ b/src/framework/Policies/CreationPolicy.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Policies/ObjectLifeTime.cpp b/src/framework/Policies/ObjectLifeTime.cpp
index 1cb97c6a28f..15bcaa54686 100644
--- a/src/framework/Policies/ObjectLifeTime.cpp
+++ b/src/framework/Policies/ObjectLifeTime.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Policies/ObjectLifeTime.h b/src/framework/Policies/ObjectLifeTime.h
index fac827b3803..acd8516fc56 100644
--- a/src/framework/Policies/ObjectLifeTime.h
+++ b/src/framework/Policies/ObjectLifeTime.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Policies/Singleton.h b/src/framework/Policies/Singleton.h
index d8370ceac9c..0f382197f1f 100644
--- a/src/framework/Policies/Singleton.h
+++ b/src/framework/Policies/Singleton.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Policies/SingletonImp.h b/src/framework/Policies/SingletonImp.h
index 6efcc25cadb..16bfa2c4b05 100644
--- a/src/framework/Policies/SingletonImp.h
+++ b/src/framework/Policies/SingletonImp.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Policies/ThreadingModel.h b/src/framework/Policies/ThreadingModel.h
index 80ea0736df0..08d72854781 100644
--- a/src/framework/Policies/ThreadingModel.h
+++ b/src/framework/Policies/ThreadingModel.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Utilities/ByteConverter.h b/src/framework/Utilities/ByteConverter.h
index 5549a9d8100..59081ef8ccd 100644
--- a/src/framework/Utilities/ByteConverter.h
+++ b/src/framework/Utilities/ByteConverter.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Utilities/Callback.h b/src/framework/Utilities/Callback.h
index 84da3e2fc74..29de60d998d 100644
--- a/src/framework/Utilities/Callback.h
+++ b/src/framework/Utilities/Callback.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Utilities/CountedReference/Reference.h b/src/framework/Utilities/CountedReference/Reference.h
index 0e6d06ce15b..693df05dddc 100644
--- a/src/framework/Utilities/CountedReference/Reference.h
+++ b/src/framework/Utilities/CountedReference/Reference.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Utilities/CountedReference/ReferenceHolder.h b/src/framework/Utilities/CountedReference/ReferenceHolder.h
index 7d523d0294c..0c2294fc8c5 100644
--- a/src/framework/Utilities/CountedReference/ReferenceHolder.h
+++ b/src/framework/Utilities/CountedReference/ReferenceHolder.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Utilities/CountedReference/ReferenceImpl.h b/src/framework/Utilities/CountedReference/ReferenceImpl.h
index 1016897e785..ef217a72dd9 100644
--- a/src/framework/Utilities/CountedReference/ReferenceImpl.h
+++ b/src/framework/Utilities/CountedReference/ReferenceImpl.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Utilities/EventProcessor.cpp b/src/framework/Utilities/EventProcessor.cpp
index 0a869481916..cd80a9effcc 100644
--- a/src/framework/Utilities/EventProcessor.cpp
+++ b/src/framework/Utilities/EventProcessor.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -70,13 +70,13 @@ void EventProcessor::KillAllEvents(bool force)
{
EventList::iterator i_old = i;
++i;
-
+
i_old->second->to_Abort = true;
i_old->second->Abort(m_time);
if(force || i_old->second->IsDeletable())
{
delete i_old->second;
-
+
if(!force) // need per-element cleanup
m_events.erase (i_old);
}
diff --git a/src/framework/Utilities/EventProcessor.h b/src/framework/Utilities/EventProcessor.h
index 09cc243a2b2..508da2cc0fd 100644
--- a/src/framework/Utilities/EventProcessor.h
+++ b/src/framework/Utilities/EventProcessor.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -39,7 +39,7 @@ class BasicEvent
// return false if event does not want to be deleted
// e_time is execution time, p_time is update interval
virtual bool Execute(uint64 /*e_time*/, uint32 /*p_time*/) { return true; }
-
+
virtual bool IsDeletable() const { return true; } // this event can be safely deleted
virtual void Abort(uint64 /*e_time*/) {} // this method executes when the event is aborted
diff --git a/src/framework/Utilities/LinkedList.h b/src/framework/Utilities/LinkedList.h
index 3f9c99b31ff..347fe7fa849 100644
--- a/src/framework/Utilities/LinkedList.h
+++ b/src/framework/Utilities/LinkedList.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Utilities/LinkedReference/RefManager.h b/src/framework/Utilities/LinkedReference/RefManager.h
index 599c4efab39..bfb163cc9c9 100644
--- a/src/framework/Utilities/LinkedReference/RefManager.h
+++ b/src/framework/Utilities/LinkedReference/RefManager.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Utilities/LinkedReference/Reference.h b/src/framework/Utilities/LinkedReference/Reference.h
index bce0e0f387c..28c77d918aa 100644
--- a/src/framework/Utilities/LinkedReference/Reference.h
+++ b/src/framework/Utilities/LinkedReference/Reference.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Utilities/TypeList.h b/src/framework/Utilities/TypeList.h
index 149b00f154c..daa6886467a 100644
--- a/src/framework/Utilities/TypeList.h
+++ b/src/framework/Utilities/TypeList.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/framework/Utilities/UnorderedMap.h b/src/framework/Utilities/UnorderedMap.h
index 1b9685e9523..31cd453ecba 100644
--- a/src/framework/Utilities/UnorderedMap.h
+++ b/src/framework/Utilities/UnorderedMap.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/game/AccountMgr.cpp b/src/game/AccountMgr.cpp
index adf47f8acab..d12f07e7bfd 100644
--- a/src/game/AccountMgr.cpp
+++ b/src/game/AccountMgr.cpp
@@ -99,7 +99,7 @@ AccountOpResult AccountMgr::DeleteAccount(uint32 accid)
LoginDatabase.BeginTransaction();
- bool res =
+ bool res =
LoginDatabase.PExecute("DELETE FROM account WHERE id='%d'", accid) &&
LoginDatabase.PExecute("DELETE FROM realmcharacters WHERE acctid='%d'", accid);
diff --git a/src/game/CMakeLists.txt b/src/game/CMakeLists.txt
index 8cee1325205..bcd85792b04 100644
--- a/src/game/CMakeLists.txt
+++ b/src/game/CMakeLists.txt
@@ -65,7 +65,7 @@ SET(game_STAT_SRCS
Creature.h
CreatureGroups.cpp
CreatureGroups.h
- debugcmds.cpp
+ Debugcmds.cpp
DestinationHolder.cpp
DestinationHolder.h
DestinationHolderImp.h
@@ -221,7 +221,7 @@ SET(game_STAT_SRCS
TicketHandler.cpp
TicketMgr.cpp
TicketMgr.h
- tools.cpp
+ Tools.cpp
Tools.h
TotemAI.cpp
TotemAI.h
diff --git a/src/game/CellImpl.h b/src/game/CellImpl.h
index 08182068af9..ee026ec8353 100644
--- a/src/game/CellImpl.h
+++ b/src/game/CellImpl.h
@@ -154,7 +154,7 @@ Cell::Visit(const CellLock &l, TypeContainerVisitor &vi
{
m.Visit(l, visitor);
return;
- }
+ }
CellPair begin_cell = standing_cell;
CellPair end_cell = standing_cell;
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp
index d6cdde47a8c..05204262c77 100644
--- a/src/game/Chat.cpp
+++ b/src/game/Chat.cpp
@@ -144,7 +144,7 @@ ChatCommand * ChatHandler::getCommandTable()
{ "modify", SEC_GAMEMASTER, false, &ChatHandler::HandleWpModifyCommand, "", NULL },
{ "event", SEC_GAMEMASTER, false, &ChatHandler::HandleWpEventCommand, "", NULL },
{ "unload", SEC_GAMEMASTER, false, &ChatHandler::HandleWpUnLoadPathCommand, "", NULL },
-
+
{ NULL, 0, false, NULL, "", NULL }
};
@@ -534,11 +534,11 @@ ChatCommand * ChatHandler::getCommandTable()
{ "event", SEC_GAMEMASTER, false, NULL, "", eventCommandTable },
{ "gobject", SEC_GAMEMASTER, false, NULL, "", gobjectCommandTable },
{ "honor", SEC_GAMEMASTER, false, NULL, "", honorCommandTable },
-
+
//wp commands
{ "path", SEC_GAMEMASTER, false, NULL, "", wpCommandTable },
{ "loadpath", SEC_ADMINISTRATOR, false, &ChatHandler::HandleReloadAllPaths, "", NULL },
-
+
{ "quest", SEC_ADMINISTRATOR, false, NULL, "", questCommandTable },
{ "reload", SEC_ADMINISTRATOR, true, NULL, "", reloadCommandTable },
{ "list", SEC_ADMINISTRATOR, true, NULL, "", listCommandTable },
@@ -553,7 +553,7 @@ ChatCommand * ChatHandler::getCommandTable()
{ "aura", SEC_ADMINISTRATOR, false, &ChatHandler::HandleAuraCommand, "", NULL },
{ "unaura", SEC_ADMINISTRATOR, false, &ChatHandler::HandleUnAuraCommand, "", NULL },
- { "nameannounce", SEC_MODERATOR, false, &ChatHandler::HandleNameAnnounceCommand, "", NULL },
+ { "nameannounce", SEC_MODERATOR, false, &ChatHandler::HandleNameAnnounceCommand, "", NULL },
{ "gmnameannounce", SEC_MODERATOR, false, &ChatHandler::HandleGMNameAnnounceCommand, "", NULL },
{ "announce", SEC_MODERATOR, true, &ChatHandler::HandleAnnounceCommand, "", NULL },
{ "gmannounce", SEC_MODERATOR, true, &ChatHandler::HandleGMAnnounceCommand, "", NULL },
@@ -622,10 +622,10 @@ ChatCommand * ChatHandler::getCommandTable()
{ "sendmessage", SEC_ADMINISTRATOR, true, &ChatHandler::HandleSendMessageCommand, "", NULL },
{ "playall", SEC_ADMINISTRATOR, false, &ChatHandler::HandlePlayAllCommand, "", NULL },
{ "repairitems", SEC_GAMEMASTER, false, &ChatHandler::HandleRepairitemsCommand, "", NULL },
- { "freeze", SEC_ADMINISTRATOR, false, &ChatHandler::HandleFreezeCommand, "", NULL },
- { "unfreeze", SEC_ADMINISTRATOR, false, &ChatHandler::HandleUnFreezeCommand, "", NULL },
- { "listfreeze", SEC_ADMINISTRATOR, false, &ChatHandler::HandleListFreezeCommand, "", NULL },
- { "flusharenapoints", SEC_ADMINISTRATOR, false, &ChatHandler::HandleFlushArenaPointsCommand, "", NULL },
+ { "freeze", SEC_ADMINISTRATOR, false, &ChatHandler::HandleFreezeCommand, "", NULL },
+ { "unfreeze", SEC_ADMINISTRATOR, false, &ChatHandler::HandleUnFreezeCommand, "", NULL },
+ { "listfreeze", SEC_ADMINISTRATOR, false, &ChatHandler::HandleListFreezeCommand, "", NULL },
+ { "flusharenapoints", SEC_ADMINISTRATOR, false, &ChatHandler::HandleFlushArenaPointsCommand, "", NULL },
{ "possess", SEC_ADMINISTRATOR, false, &ChatHandler::HandlePossessCommand, "", NULL },
{ "unpossess", SEC_ADMINISTRATOR, false, &ChatHandler::HandleUnPossessCommand, "", NULL },
{ "bindsight", SEC_ADMINISTRATOR, false, &ChatHandler::HandleBindSightCommand, "", NULL },
diff --git a/src/game/Chat.h b/src/game/Chat.h
index 90936c9ac91..0317886c691 100644
--- a/src/game/Chat.h
+++ b/src/game/Chat.h
@@ -73,7 +73,7 @@ class ChatHandler
int ParseCommands(const char* text);
virtual char const* GetName() const;
-
+
protected:
explicit ChatHandler() : m_session(NULL) {} // for CLI subclass
@@ -410,7 +410,7 @@ class ChatHandler
bool HandleResetAllCommand(const char * args);
-
+
// GM ticket command handlers
bool HandleGMTicketListCommand(const char* args);
bool HandleGMTicketListOnlineCommand(const char* args);
@@ -433,7 +433,7 @@ class ChatHandler
bool HandlePasswordCommand(const char* args);
bool HandleLockAccountCommand(const char* args);
bool HandleRespawnCommand(const char* args);
-
+
//New Wp Commands
bool HandleWpAddCommand(const char* args);
bool HandleWpLoadPathCommand(const char* args);
@@ -511,7 +511,7 @@ class ChatHandler
void SetSentErrorMessage(bool val){ sentErrorMessage = val;};
private:
WorldSession * m_session; // != NULL for chat command call and NULL for CLI command
-
+
// common global flag
static bool load_command_table;
bool sentErrorMessage;
diff --git a/src/game/ChatHandler.cpp b/src/game/ChatHandler.cpp
index 9c603bf3e2d..7b5b552e74e 100644
--- a/src/game/ChatHandler.cpp
+++ b/src/game/ChatHandler.cpp
@@ -318,7 +318,7 @@ void WorldSession::HandleMessagechatOpcode( WorldPacket & recv_data )
Group *group = GetPlayer()->GetGroup();
if(!group || !group->isRaidGroup() || group->isBGGroup())
return;
-
+
WorldPacket data;
ChatHandler::FillMessageData(&data, this, CHAT_MSG_RAID, lang, "", 0, msg.c_str(),NULL);
group->BroadcastPacket(&data);
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 9949effb975..e8d48b55f38 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -198,10 +198,10 @@ void Creature::RemoveFromWorld()
void Creature::SearchFormation()
{
uint32 lowguid = GetDBTableGUIDLow();
-
+
if(CreatureGroupMap.find(lowguid) != CreatureGroupMap.end())
{
- m_formationID = CreatureGroupMap[lowguid]->leaderGUID;
+ m_formationID = CreatureGroupMap[lowguid]->leaderGUID;
formation_mgr.UpdateCreatureGroup(m_formationID, this);
}
}
@@ -417,7 +417,7 @@ void Creature::Update(uint32 diff)
CreatureInfo const *cinfo = GetCreatureInfo();
SelectLevel(cinfo);
-
+
if (m_isDeadByDefault)
{
setDeathState(JUST_DIED);
@@ -1424,7 +1424,7 @@ bool Creature::LoadFromDB(uint32 guid, Map *map)
}
//We should set first home position, because then AI calls home movement
SetHomePosition(data->posX,data->posY,data->posZ,data->orientation);
-
+
m_respawnradius = data->spawndist;
m_respawnDelay = data->spawntimesecs;
diff --git a/src/game/Creature.h b/src/game/Creature.h
index cde68f0670b..aafb4f3249a 100644
--- a/src/game/Creature.h
+++ b/src/game/Creature.h
@@ -621,10 +621,10 @@ class TRINITY_DLL_SPEC Creature : public Unit
void GetHomePosition(float &x, float &y, float &z, float &ori) { x = mHome_X; y = mHome_Y; z = mHome_Z; ori = mHome_O; }
uint32 GetGlobalCooldown() const { return m_GlobalCooldown; }
-
+
uint32 GetWaypointPath(){return m_path_id;}
void LoadPath(uint32 pathid) { m_path_id = pathid; }
-
+
uint32 GetCurrentWaypointID(){return m_waypointID;}
void UpdateWaypointID(uint32 wpID){m_waypointID = wpID;}
@@ -687,7 +687,7 @@ class TRINITY_DLL_SPEC Creature : public Unit
//WaypointMovementGenerator vars
uint32 m_waypointID;
uint32 m_path_id;
-
+
//Formation var
uint32 m_formationID;
diff --git a/src/game/CreatureAI.h b/src/game/CreatureAI.h
index 5a8126f24d4..c39fb6ce9dd 100644
--- a/src/game/CreatureAI.h
+++ b/src/game/CreatureAI.h
@@ -129,7 +129,7 @@ class TRINITY_DLL_SPEC CreatureAI : public UnitAI
virtual void SpellHit(Unit*, const SpellEntry*) {}
// Called when spell hits a target
- virtual void SpellHitTarget(Unit* target, const SpellEntry*) {}
+ virtual void SpellHitTarget(Unit* target, const SpellEntry*) {}
// Called when vitim entered water and creature can not enter water
virtual bool canReachByRangeAttack(Unit*) { return false; }
diff --git a/src/game/CreatureAISelector.cpp b/src/game/CreatureAISelector.cpp
index 9e53fe0f641..bebc810e6c0 100644
--- a/src/game/CreatureAISelector.cpp
+++ b/src/game/CreatureAISelector.cpp
@@ -58,7 +58,7 @@ namespace FactorySelector
if(!ai_factory)
{
if( creature->isGuard() )
- ai_factory = ai_registry.GetRegistryItem("GuardAI");
+ ai_factory = ai_registry.GetRegistryItem("GuardAI");
else if(creature->isPet() || (creature->isCharmed() && !creature->isPossessed()))
ai_factory = ai_registry.GetRegistryItem("PetAI");
else if(creature->isTotem())
diff --git a/src/game/CreatureGroups.cpp b/src/game/CreatureGroups.cpp
index e008a3f9316..49d77881e74 100644
--- a/src/game/CreatureGroups.cpp
+++ b/src/game/CreatureGroups.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -34,7 +34,7 @@ UNORDERED_MAP CreatureGroupMap;
void CreatureGroupManager::UpdateCreatureGroup(uint32 group_id, Creature *member)
{
if(CreatureGroupHolder.find(group_id) != CreatureGroupHolder.end())
- {
+ {
sLog.outDebug("Group found: %u, inserting creature GUID: %u", group_id, member->GetGUIDLow());
CreatureGroupHolder[group_id]->AddMember(member);
}
@@ -67,10 +67,10 @@ void CreatureGroupManager::LoadCreatureFormations()
{
//Clear existing map
CreatureGroupMap.clear();
-
+
//Check Integrity of the table
QueryResult *result = WorldDatabase.PQuery("SELECT MAX(`leaderGUID`) FROM `creature_formations`");
-
+
if(!result)
{
sLog.outErrorDb(" an error occured while loading the table `creature_formations` ( maybe it doesn't exist ?)\n");
@@ -80,7 +80,7 @@ void CreatureGroupManager::LoadCreatureFormations()
//Get group data
result = WorldDatabase.PQuery("SELECT `leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI` FROM `creature_formations` ORDER BY `leaderGUID`");
-
+
if(!result)
{
sLog.outErrorDb("The table `creature_formations` is empty or corrupted");
@@ -90,13 +90,13 @@ void CreatureGroupManager::LoadCreatureFormations()
uint32 total_records = result->GetRowCount(), lastLeaderGUID = 0;
barGoLink bar( total_records);
Field *fields;
-
+
FormationMember *group_member;
//Loading data...
do
{
fields = result->Fetch();
-
+
bar.step();
//Load group member data
group_member = new FormationMember;
@@ -109,14 +109,14 @@ void CreatureGroupManager::LoadCreatureFormations()
group_member->follow_dist = fields[2].GetUInt32();
group_member->follow_angle = fields[3].GetUInt32();
}
-
+
CreatureGroupMap[group_member->memberGUID] = group_member;
-
+
if(lastLeaderGUID != group_member->leaderGUID)
lastLeaderGUID = group_member->leaderGUID;
- }
+ }
while(result->NextRow()) ;
-
+
sLog.outString();
sLog.outString( ">> Loaded %u creatures in formations", total_records );
sLog.outString();
@@ -127,14 +127,14 @@ void CreatureGroupManager::LoadCreatureFormations()
void CreatureGroup::AddMember(Creature *member)
{
sLog.outDebug("Adding unit GUID: %u.", member->GetGUIDLow());
-
+
uint64 guid = member->GetGUID();
//We first search creature member if exist
if(CreatureGroupMembers.find(guid) != CreatureGroupMembers.end())
return;
//Check is that shit is a leader
if(member->IsFormationLeader())
- {
+ {
sLog.outDebug("Unit GUID: %u is formation leader. Adding group.", member->GetGUIDLow());
m_leader = member;
}
@@ -146,7 +146,7 @@ void CreatureGroup::AddMember(Creature *member)
void CreatureGroup::RemoveMember(uint64 guid)
{
if(CreatureGroupMembers.find(guid) != CreatureGroupMembers.end())
- CreatureGroupMembers.erase(guid);
+ CreatureGroupMembers.erase(guid);
}
void CreatureGroup::MemberHasAttacked(Creature *member)
@@ -165,9 +165,9 @@ void CreatureGroup::MemberHasAttacked(Creature *member)
case 1:
if(!member->IsFormationLeader())
return;
- }
+ }
//Attack if everything is OK
- itr->second->AI()->AttackStart(member->getVictim());
+ itr->second->AI()->AttackStart(member->getVictim());
}
}
}
@@ -177,31 +177,31 @@ void CreatureGroup::LeaderMovedInEvade()
for(UNORDERED_MAP::iterator itr = CreatureGroupMembers.begin(); itr != CreatureGroupMembers.end(); itr++)
{
if(itr->second && itr->second->isAlive() && !itr->second->isInCombat() && !itr->second->getVictim())
- SetMemberDestination(itr->second);
+ SetMemberDestination(itr->second);
}
}
-
+
void CreatureGroup::SetMemberDestination(Creature *member)
{
if(!member || !m_leader || member->IsFormationLeader())
return;
-
+
float x,y,z;
uint32 lowguid = member->GetGUIDLow();
-
+
UNORDERED_MAP::iterator itr2 = CreatureGroupMap.find(lowguid);
-
+
if(m_leader->GetMotionMaster()->GetDestination(x,y,z) && itr2 != CreatureGroupMap.end())
- {
+ {
float dist, angle, pathangle;
-
- angle = CreatureGroupMap[lowguid]->follow_angle;
- dist = CreatureGroupMap[lowguid]->follow_dist;
+
+ angle = CreatureGroupMap[lowguid]->follow_angle;
+ dist = CreatureGroupMap[lowguid]->follow_dist;
pathangle = atan2(m_leader->GetPositionY()-y, m_leader->GetPositionX()-x);
-
+
x = x+cos(angle+pathangle)*dist;
y = y+sin(angle+pathangle)*dist;
-
+
member->GetMotionMaster()->Clear();
if(member->GetDistance(m_leader) < dist+MAX_DESYNC)
diff --git a/src/game/CreatureGroups.h b/src/game/CreatureGroups.h
index dd7da865955..c2155049745 100644
--- a/src/game/CreatureGroups.h
+++ b/src/game/CreatureGroups.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -27,9 +27,9 @@
struct FormationMember
{
- float follow_dist;
- float follow_angle;
- uint32 memberGUID;
+ float follow_dist;
+ float follow_angle;
+ uint32 memberGUID;
uint32 leaderGUID;
uint8 groupAI;
};
@@ -46,7 +46,7 @@ class CreatureGroup
{
UNORDERED_MAPCreatureGroupMembers;
Creature *m_leader; //Important do not forget sometimes to work with pointers instead synonims :D:D
-
+
public:
CreatureGroup() : m_leader(NULL) {}
~CreatureGroup(){sLog.outDebug("Destroying group");}
diff --git a/src/game/DestinationHolderImp.h b/src/game/DestinationHolderImp.h
index 984b643538a..443f6a90211 100644
--- a/src/game/DestinationHolderImp.h
+++ b/src/game/DestinationHolderImp.h
@@ -160,13 +160,13 @@ DestinationHolder::UpdateTraveller(TRAVELLER &traveller, uint32 diff,
}
// Change movement computation to micro movement based on last tick coords, this makes system work
// even on multiple floors zones without hugh vmaps usage ;)
-
+
// Take care of underrun of uint32
if (i_totalTravelTime >= i_timeElapsed)
i_totalTravelTime -= i_timeElapsed; // Consider only the remaining part
else
i_totalTravelTime = 0;
-
+
i_timeElapsed = 0;
i_fromX = x; // and change origine
i_fromY = y; // then I take into account only micro movement
diff --git a/src/game/DynamicObject.cpp b/src/game/DynamicObject.cpp
index d7badd57892..4f63a149244 100644
--- a/src/game/DynamicObject.cpp
+++ b/src/game/DynamicObject.cpp
@@ -156,7 +156,7 @@ void DynamicObject::Delay(int32 delaytime)
bool DynamicObject::isVisibleForInState(Player const* u, bool inVisibleList) const
{
- return IsInWorld() && u->IsInWorld()
+ return IsInWorld() && u->IsInWorld()
&& (IsWithinDistInMap(u,World::GetMaxVisibleDistanceForObject()+(inVisibleList ? World::GetVisibleObjectGreyDistance() : 0.0f), false)
|| GetCasterGUID() == u->GetGUID());
}
diff --git a/src/game/FleeingMovementGenerator.cpp b/src/game/FleeingMovementGenerator.cpp
index 6566ad4320e..478e472662c 100644
--- a/src/game/FleeingMovementGenerator.cpp
+++ b/src/game/FleeingMovementGenerator.cpp
@@ -53,14 +53,14 @@ template<>
bool FleeingMovementGenerator::GetDestination(float &x, float &y, float &z) const
{
if(i_destinationHolder.HasArrived())
- return false;
-
- i_destinationHolder.GetDestination(x, y, z);
+ return false;
+
+ i_destinationHolder.GetDestination(x, y, z);
return true;
}
template<>
-bool FleeingMovementGenerator::GetDestination(float &x, float &y, float &z) const
+bool FleeingMovementGenerator::GetDestination(float &x, float &y, float &z) const
{
return false;
}
diff --git a/src/game/GameEvent.cpp b/src/game/GameEvent.cpp
index 9ceed9024c4..ee6f348296a 100644
--- a/src/game/GameEvent.cpp
+++ b/src/game/GameEvent.cpp
@@ -236,7 +236,7 @@ void GameEvent::LoadFromDB()
delete result;
// load game event saves
- // 0 1 2
+ // 0 1 2
result = CharacterDatabase.Query("SELECT event_id, state, UNIX_TIMESTAMP(next_start) FROM game_event_save");
count = 0;
@@ -621,7 +621,7 @@ void GameEvent::LoadFromDB()
}
// load conditions of the events
- // 0 1 2 3 4
+ // 0 1 2 3 4
result = WorldDatabase.Query("SELECT event_id, condition_id, req_num, max_world_state_field, done_world_state_field FROM game_event_condition");
count = 0;
@@ -666,7 +666,7 @@ void GameEvent::LoadFromDB()
}
// load condition saves
- // 0 1 2
+ // 0 1 2
result = CharacterDatabase.Query("SELECT event_id, condition_id, done FROM game_event_condition_save");
count = 0;
@@ -1385,7 +1385,7 @@ void GameEvent::UpdateEventQuests(uint16 event_id, bool Activate)
if (Activate) // Add the pair(id,quest) to the multimap
CreatureQuestMap.insert(QuestRelations::value_type(itr->first, itr->second));
else
- {
+ {
if(!hasCreatureQuestActiveEventExcept(itr->second,event_id))
{
// Remove the pair(id,quest) from the multimap
@@ -1410,7 +1410,7 @@ void GameEvent::UpdateEventQuests(uint16 event_id, bool Activate)
if (Activate) // Add the pair(id,quest) to the multimap
GameObjectQuestMap.insert(QuestRelations::value_type(itr->first, itr->second));
else
- {
+ {
if(!hasGameObjectQuestActiveEventExcept(itr->second,event_id))
{
// Remove the pair(id,quest) from the multimap
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index 28c39ee5bbe..ade00dd4d8f 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -504,7 +504,7 @@ void GameObject::SaveToDB(uint32 mapid, uint8 spawnMask)
if (!goI)
return;
-
+
if (!m_DBTableGuid)
m_DBTableGuid = GetGUIDLow();
// update in loaded data (changing data only in this place)
@@ -1209,7 +1209,7 @@ void GameObject::Use(Unit* user)
Player* player = (Player*)user;
- if( player->isAllowUseBattleGroundObject() )
+ if( player->isAllowUseBattleGroundObject() )
{
// in battleground check
BattleGround *bg = player->GetBattleGround();
diff --git a/src/game/GridNotifiers.cpp b/src/game/GridNotifiers.cpp
index 7f40df0d46f..a189aa72304 100644
--- a/src/game/GridNotifiers.cpp
+++ b/src/game/GridNotifiers.cpp
@@ -149,7 +149,7 @@ VisibleNotifier::Notify()
i_player.SendAuraDurationsForTarget((Unit*)(*vItr));
}
-void
+void
Deliverer::Visit(PlayerMapType &m)
{
for (PlayerMapType::iterator iter = m.begin(); iter != m.end(); ++iter)
@@ -169,7 +169,7 @@ Deliverer::Visit(PlayerMapType &m)
}
}
-void
+void
Deliverer::Visit(CreatureMapType &m)
{
for (CreatureMapType::iterator iter = m.begin(); iter != m.end(); ++iter)
diff --git a/src/game/GridNotifiers.h b/src/game/GridNotifiers.h
index eb15d8ea7b2..bea125cf5ee 100644
--- a/src/game/GridNotifiers.h
+++ b/src/game/GridNotifiers.h
@@ -105,7 +105,7 @@ namespace Trinity
void SendPacket(Player* plr);
template void Visit(GridRefManager &) {}
};
-
+
struct TRINITY_DLL_DECL MessageDeliverer : public Deliverer
{
MessageDeliverer(Player &pl, WorldPacket *msg, bool to_possessor, bool to_self) : Deliverer(pl, msg, to_possessor, to_self) {}
@@ -595,7 +595,7 @@ namespace Trinity
Unit const* i_funit;
float i_range;
};
-
+
class CreatureWithDbGUIDCheck
{
public:
@@ -714,7 +714,7 @@ namespace Trinity
class NearestHostileUnitInAttackDistanceCheck
{
public:
- explicit NearestHostileUnitInAttackDistanceCheck(Creature const* creature, float dist = 0) : m_creature(creature)
+ explicit NearestHostileUnitInAttackDistanceCheck(Creature const* creature, float dist = 0) : m_creature(creature)
{
m_range = (dist == 0 ? 9999 : dist);
m_force = (dist == 0 ? false : true);
@@ -890,7 +890,7 @@ namespace Trinity
FriendlyMissingBuffInRange(Unit const* obj, float range, uint32 spellid) : i_obj(obj), i_range(range), i_spell(spellid) {}
bool operator()(Unit* u)
{
- if(u->isAlive() && u->isInCombat() && /*!i_obj->IsHostileTo(u)*/ i_obj->IsFriendlyTo(u) && i_obj->IsWithinDistInMap(u, i_range) &&
+ if(u->isAlive() && u->isInCombat() && /*!i_obj->IsHostileTo(u)*/ i_obj->IsFriendlyTo(u) && i_obj->IsWithinDistInMap(u, i_range) &&
!(u->HasAura(i_spell, 0) || u->HasAura(i_spell, 1) || u->HasAura(i_spell, 2)))
{
return true;
diff --git a/src/game/Group.cpp b/src/game/Group.cpp
index 85c707d41f0..52b8e6244d9 100644
--- a/src/game/Group.cpp
+++ b/src/game/Group.cpp
@@ -84,10 +84,10 @@ bool Group::Create(const uint64 &guid, const char * name)
m_leaderName = name;
m_groupType = isBGGroup() ? GROUPTYPE_RAID : GROUPTYPE_NORMAL;
-
+
if (m_groupType == GROUPTYPE_RAID)
_initRaidSubGroupsCounter();
-
+
m_lootMethod = GROUP_LOOT;
m_lootThreshold = ITEM_QUALITY_UNCOMMON;
m_looterGuid = guid;
@@ -143,10 +143,10 @@ bool Group::LoadGroupFromDB(const uint64 &leaderGuid, QueryResult *result, bool
}
m_groupType = (*result)[13].GetBool() ? GROUPTYPE_RAID : GROUPTYPE_NORMAL;
-
+
if (m_groupType == GROUPTYPE_RAID)
_initRaidSubGroupsCounter();
-
+
m_difficulty = (*result)[14].GetUInt8();
m_mainTank = (*result)[0].GetUInt64();
m_mainAssistant = (*result)[1].GetUInt64();
@@ -189,18 +189,18 @@ bool Group::LoadMemberFromDB(uint32 guidLow, uint8 subgroup, bool assistant)
member.group = subgroup;
member.assistant = assistant;
m_memberSlots.push_back(member);
-
+
SubGroupCounterIncrease(subgroup);
-
+
return true;
}
void Group::ConvertToRaid()
{
m_groupType = GROUPTYPE_RAID;
-
+
_initRaidSubGroupsCounter();
-
+
if(!isBGGroup()) CharacterDatabase.PExecute("UPDATE groups SET isRaid = 1 WHERE leaderGuid='%u'", GUID_LOPART(m_leaderGuid));
SendUpdate();
}
@@ -1006,7 +1006,7 @@ bool Group::_addMember(const uint64 &guid, const char* name, bool isAssistant, u
member.group = group;
member.assistant = isAssistant;
m_memberSlots.push_back(member);
-
+
SubGroupCounterIncrease(group);
if(player)
@@ -1149,11 +1149,11 @@ bool Group::_setMembersGroup(const uint64 &guid, const uint8 &group)
return false;
slot->group = group;
-
+
SubGroupCounterIncrease(group);
-
+
if(!isBGGroup()) CharacterDatabase.PExecute("UPDATE group_member SET subgroup='%u' WHERE memberGuid='%u'", group, GUID_LOPART(guid));
-
+
return true;
}
@@ -1211,9 +1211,9 @@ void Group::ChangeMembersGroup(const uint64 &guid, const uint8 &group)
{
uint8 prevSubGroup;
prevSubGroup = GetMemberGroup(guid);
-
+
SubGroupCounterDecrease(prevSubGroup);
-
+
if(_setMembersGroup(guid, group))
SendUpdate();
}
@@ -1230,9 +1230,9 @@ void Group::ChangeMembersGroup(Player *player, const uint8 &group)
{
uint8 prevSubGroup;
prevSubGroup = player->GetSubGroup();
-
+
SubGroupCounterDecrease(prevSubGroup);
-
+
player->GetGroupRef().setSubGroup(group);
SendUpdate();
}
diff --git a/src/game/Group.h b/src/game/Group.h
index 7cb37b17ff0..dabb1715968 100644
--- a/src/game/Group.h
+++ b/src/game/Group.h
@@ -224,7 +224,7 @@ class TRINITY_DLL_SPEC Group
return (mslot1->group==slot2->group);
}
-
+
bool HasFreeSlotSubGroup(uint8 subgroup) const
{
return (m_subGroupsCounts && m_subGroupsCounts[subgroup] < MAXGROUPSIZE);
@@ -347,15 +347,15 @@ class TRINITY_DLL_SPEC Group
bool _setMainAssistant(const uint64 &guid);
void _homebindIfInstance(Player *player);
-
+
void _initRaidSubGroupsCounter()
{
// Sub group counters initialization
if (!m_subGroupsCounts)
m_subGroupsCounts = new uint8[MAXRAIDSIZE / MAXGROUPSIZE];
-
+
memset((void*)m_subGroupsCounts, 0, (MAXRAIDSIZE / MAXGROUPSIZE)*sizeof(uint8));
-
+
for (member_citerator itr = m_memberSlots.begin(); itr != m_memberSlots.end(); ++itr)
++m_subGroupsCounts[itr->group];
}
@@ -379,13 +379,13 @@ class TRINITY_DLL_SPEC Group
}
return m_memberSlots.end();
}
-
+
void SubGroupCounterIncrease(uint8 subgroup)
{
if (m_subGroupsCounts)
++m_subGroupsCounts[subgroup];
}
-
+
void SubGroupCounterDecrease(uint8 subgroup)
{
if (m_subGroupsCounts)
diff --git a/src/game/GroupHandler.cpp b/src/game/GroupHandler.cpp
index 679c16ced58..f875e833c77 100644
--- a/src/game/GroupHandler.cpp
+++ b/src/game/GroupHandler.cpp
@@ -549,7 +549,7 @@ void WorldSession::HandleGroupChangeSubGroupOpcode( WorldPacket & recv_data )
/** error handling **/
if(!group->IsLeader(GetPlayer()->GetGUID()) && !group->IsAssistant(GetPlayer()->GetGUID()))
return;
-
+
if (!group->HasFreeSlotSubGroup(groupNr))
return;
/********************/
diff --git a/src/game/GuildHandler.cpp b/src/game/GuildHandler.cpp
index 15433602010..4711f2d0902 100644
--- a/src/game/GuildHandler.cpp
+++ b/src/game/GuildHandler.cpp
@@ -166,13 +166,13 @@ void WorldSession::HandleGuildRemoveOpcode(WorldPacket& recvPacket)
SendGuildCommandResult(GUILD_CREATE_S, "", GUILD_PLAYER_NOT_IN_GUILD);
return;
}
-
+
if(!guild->HasRankRight(GetPlayer()->GetRank(), GR_RIGHT_REMOVE))
{
SendGuildCommandResult(GUILD_INVITE_S, "", GUILD_PERMISSIONS);
return;
}
-
+
uint64 plGuid;
MemberSlot* slot = guild->GetMemberSlot(plName, plGuid);
if(!slot)
@@ -282,7 +282,7 @@ void WorldSession::HandleGuildPromoteOpcode(WorldPacket& recvPacket)
if(!normalizePlayerName(plName))
return;
-
+
Guild* guild = objmgr.GetGuildById(GetPlayer()->GetGuildId());
if(!guild)
{
@@ -294,7 +294,7 @@ void WorldSession::HandleGuildPromoteOpcode(WorldPacket& recvPacket)
SendGuildCommandResult(GUILD_INVITE_S, "", GUILD_PERMISSIONS);
return;
}
-
+
uint64 plGuid;
MemberSlot* slot = guild->GetMemberSlot(plName, plGuid);
@@ -309,7 +309,7 @@ void WorldSession::HandleGuildPromoteOpcode(WorldPacket& recvPacket)
SendGuildCommandResult(GUILD_INVITE_S, "", GUILD_NAME_INVALID);
return;
}
-
+
if(slot->RankId < 2 || (slot->RankId-1) < GetPlayer()->GetRank())
return;
@@ -348,13 +348,13 @@ void WorldSession::HandleGuildDemoteOpcode(WorldPacket& recvPacket)
SendGuildCommandResult(GUILD_CREATE_S, "", GUILD_PLAYER_NOT_IN_GUILD);
return;
}
-
+
if(!guild->HasRankRight(GetPlayer()->GetRank(), GR_RIGHT_DEMOTE))
{
SendGuildCommandResult(GUILD_INVITE_S, "", GUILD_PERMISSIONS);
return;
}
-
+
uint64 plGuid;
MemberSlot* slot = guild->GetMemberSlot(plName, plGuid);
@@ -466,15 +466,15 @@ void WorldSession::HandleGuildLeaderOpcode(WorldPacket& recvPacket)
if(!normalizePlayerName(name))
return;
-
+
guild = objmgr.GetGuildById(oldLeader->GetGuildId());
-
+
if (!guild)
{
SendGuildCommandResult(GUILD_CREATE_S, "", GUILD_PLAYER_NOT_IN_GUILD);
return;
}
-
+
if( oldLeader->GetGUID() != guild->GetLeader())
{
SendGuildCommandResult(GUILD_INVITE_S, "", GUILD_PERMISSIONS);
@@ -557,13 +557,13 @@ void WorldSession::HandleGuildSetPublicNoteOpcode(WorldPacket& recvPacket)
SendGuildCommandResult(GUILD_CREATE_S, "", GUILD_PLAYER_NOT_IN_GUILD);
return;
}
-
+
if (!guild->HasRankRight(GetPlayer()->GetRank(), GR_RIGHT_EPNOTE))
{
SendGuildCommandResult(GUILD_INVITE_S, "", GUILD_PERMISSIONS);
return;
}
-
+
uint64 plGuid;
MemberSlot* slot = guild->GetMemberSlot(name, plGuid);
@@ -603,10 +603,10 @@ void WorldSession::HandleGuildSetOfficerNoteOpcode(WorldPacket& recvPacket)
SendGuildCommandResult(GUILD_INVITE_S, "", GUILD_PERMISSIONS);
return;
}
-
+
uint64 plGuid;
MemberSlot* slot = guild->GetMemberSlot(plName, plGuid);
-
+
if (!slot)
{
SendGuildCommandResult(GUILD_INVITE_S, plName, GUILD_PLAYER_NOT_IN_GUILD_S);
diff --git a/src/game/Language.h b/src/game/Language.h
index d95489b056f..a76393e95b5 100644
--- a/src/game/Language.h
+++ b/src/game/Language.h
@@ -270,7 +270,7 @@ enum TrinityStrings
LANG_COMMAND_WHISPEROFF = 286,
LANG_COMMAND_CREATGUIDNOTFOUND = 287,
// TICKET STRINGS NEED REWRITE // 288-296 FREE
-
+
// END
LANG_COMMAND_SPAWNDIST = 297,
LANG_COMMAND_SPAWNTIME = 298,
@@ -757,15 +757,15 @@ enum TrinityStrings
LANG_MUST_MALE_OR_FEMALE = 1119,
LANG_YOU_CHANGE_GENDER = 1120,
LANG_YOUR_GENDER_CHANGED = 1121,
-
+
// Ticket Strings 2000-2029
- LANG_COMMAND_TICKETNEW = 2000,
- LANG_COMMAND_TICKETUPDATED = 2001,
+ LANG_COMMAND_TICKETNEW = 2000,
+ LANG_COMMAND_TICKETUPDATED = 2001,
LANG_COMMAND_TICKETPLAYERABANDON = 2002,
LANG_COMMAND_TICKETCLOSED = 2003,
LANG_COMMAND_TICKETDELETED = 2004,
LANG_COMMAND_TICKETNOTEXIST = 2005,
- LANG_COMMAND_TICKETCLOSEFIRST = 2006,
+ LANG_COMMAND_TICKETCLOSEFIRST = 2006,
LANG_COMMAND_TICKETALREADYASSIGNED = 2007,
LANG_COMMAND_TICKETRELOAD = 2008,
LANG_COMMAND_TICKETSHOWLIST = 2009,
@@ -798,7 +798,7 @@ enum TrinityStrings
LANG_INSTANCE_NOT_AS_GHOST = 5008,
LANG_COMMAND_PLAYED_TO_ALL = 5009,
// Room for more Trinity strings 5010-9999
- // Used for GM Announcements
+ // Used for GM Announcements
LANG_GM_BROADCAST = 6613,
LANG_GM_NOTIFY = 6614,
LANG_GM_ANNOUNCE_COLOR = 6615,
diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp
index 8dacbc4954b..0219876aa7f 100644
--- a/src/game/Level1.cpp
+++ b/src/game/Level1.cpp
@@ -136,7 +136,7 @@ bool ChatHandler::HandleGMNameAnnounceCommand(const char* args)
WorldPacket data;
if(!*args)
return false;
-
+
sWorld.SendGMText(LANG_GM_ANNOUNCE_COLOR, m_session->GetPlayer()->GetName(), args);
return true;
}
@@ -306,7 +306,7 @@ bool ChatHandler::HandleGMTicketListOnlineCommand(const char* args)
{
if((*itr)->closed != 0 || !objmgr.GetPlayer((*itr)->playerGuid))
continue;
-
+
std::string gmname;
std::stringstream ss;
ss << PGetParseString(LANG_COMMAND_TICKETLISTGUID, (*itr)->guid);
@@ -328,7 +328,7 @@ bool ChatHandler::HandleGMTicketListClosedCommand(const char* args)
{
if((*itr)->closed == 0)
continue;
-
+
std::string gmname;
std::stringstream ss;
ss << PGetParseString(LANG_COMMAND_TICKETLISTGUID, (*itr)->guid);
@@ -347,7 +347,7 @@ bool ChatHandler::HandleGMTicketGetByIdCommand(const char* args)
{
if(!*args)
return false;
-
+
uint64 tguid = atoi(args);
GM_Ticket *ticket = ticketmgr.GetGMTicket(tguid);
if(!ticket)
@@ -355,7 +355,7 @@ bool ChatHandler::HandleGMTicketGetByIdCommand(const char* args)
SendSysMessage(LANG_COMMAND_TICKETNOTEXIST);
return true;
}
-
+
std::string gmname;
std::stringstream ss;
ss << PGetParseString(LANG_COMMAND_TICKETLISTGUID, ticket->guid);
@@ -378,14 +378,14 @@ bool ChatHandler::HandleGMTicketGetByNameCommand(const char* args)
{
if(!*args)
return false;
-
+
GM_Ticket *ticket = ticketmgr.GetGMTicketByName(args);
if(!ticket)
{
SendSysMessage(LANG_COMMAND_TICKETNOTEXIST);
return true;
}
-
+
std::string gmname;
std::stringstream ss;
ss << PGetParseString(LANG_COMMAND_TICKETLISTGUID, ticket->guid);
@@ -408,7 +408,7 @@ bool ChatHandler::HandleGMTicketCloseByIdCommand(const char* args)
{
if(!*args)
return false;
-
+
uint64 tguid = atoi(args);
GM_Ticket *ticket = ticketmgr.GetGMTicket(tguid);
if(!ticket || ticket->closed != 0)
@@ -484,7 +484,7 @@ bool ChatHandler::HandleGMTicketAssignToCommand(const char* args)
PSendSysMessage(LANG_COMMAND_TICKETALREADYASSIGNED, ticket->guid, gmname.c_str());
return true;
}
-
+
ticket->assignedToGM = tarGUID;
ticketmgr.UpdateGMTicket(ticket);
std::stringstream ss;
@@ -517,13 +517,13 @@ bool ChatHandler::HandleGMTicketUnAssignCommand(const char* args)
std::string gmname;
objmgr.GetPlayerNameByGUID(ticket->assignedToGM, gmname);
- Player *plr = objmgr.GetPlayer(ticket->assignedToGM);
+ Player *plr = objmgr.GetPlayer(ticket->assignedToGM);
if(plr && plr->IsInWorld() && plr->GetSession()->GetSecurity() > cplr->GetSession()->GetSecurity())
{
SendSysMessage(LANG_COMMAND_TICKETUNASSIGNSECURITY);
return true;
}
-
+
std::stringstream ss;
ss << PGetParseString(LANG_COMMAND_TICKETLISTGUID, ticket->guid);
ss << PGetParseString(LANG_COMMAND_TICKETLISTNAME, ticket->name.c_str());
@@ -577,7 +577,7 @@ bool ChatHandler::HandleGMTicketCommentCommand(const char* args)
return true;
}
-bool ChatHandler::HandleGMTicketDeleteByIdCommand(const char* args)
+bool ChatHandler::HandleGMTicketDeleteByIdCommand(const char* args)
{
if(!*args)
return false;
@@ -594,7 +594,7 @@ bool ChatHandler::HandleGMTicketDeleteByIdCommand(const char* args)
SendSysMessage(LANG_COMMAND_TICKETCLOSEFIRST);
return true;
}
-
+
std::stringstream ss;
ss << PGetParseString(LANG_COMMAND_TICKETLISTGUID, ticket->guid);
ss << PGetParseString(LANG_COMMAND_TICKETLISTNAME, ticket->name.c_str());
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index d926c153e65..d155b0d274f 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -1685,7 +1685,7 @@ bool ChatHandler::HandleKickPlayerCommand(const char *args)
if(kickReason)
reason = kickReason;
if(m_session)
- kicker = m_session->GetPlayer()->GetName();
+ kicker = m_session->GetPlayer()->GetName();
if(!kickName)
{
@@ -1696,14 +1696,14 @@ bool ChatHandler::HandleKickPlayerCommand(const char *args)
SetSentErrorMessage(true);
return false;
}
-
+
if(player==m_session->GetPlayer())
{
SendSysMessage(LANG_COMMAND_KICKSELF);
SetSentErrorMessage(true);
return false;
}
-
+
if(sWorld.getConfig(CONFIG_SHOW_KICK_IN_WORLD) == 1)
{
@@ -1741,19 +1741,19 @@ bool ChatHandler::HandleKickPlayerCommand(const char *args)
SetSentErrorMessage(true);
return false;
}
-
+
if(m_session && player->GetSession()->GetSecurity() > m_session->GetSecurity())
{
SendSysMessage(LANG_YOURS_SECURITY_IS_LOW); //maybe replacement string for this later on
SetSentErrorMessage(true);
return false;
}
-
+
if(sWorld.KickPlayer(name.c_str()))
{
if(sWorld.getConfig(CONFIG_SHOW_KICK_IN_WORLD) == 1)
{
-
+
sWorld.SendWorldText(LANG_COMMAND_KICKMESSAGE, name.c_str(), kicker.c_str(), reason.c_str());
}
else
@@ -1850,7 +1850,7 @@ bool ChatHandler::HandlePInfoCommand(const char* args)
Field *fields = result->Fetch();
total_player_time = fields[0].GetUInt32();
delete result;
-
+
Tokens data;
if (!Player::LoadValuesArrayFromDB(data,targetGUID))
{
@@ -1858,7 +1858,7 @@ bool ChatHandler::HandlePInfoCommand(const char* args)
SetSentErrorMessage(true);
return false;
}
-
+
money = Player::GetUInt32ValueFromArray(data, PLAYER_FIELD_COINAGE);
level = Player::GetUInt32ValueFromArray(data, UNIT_FIELD_LEVEL);
accId = objmgr.GetPlayerAccountIdByGUID(targetGUID);
@@ -1875,7 +1875,7 @@ bool ChatHandler::HandlePInfoCommand(const char* args)
Field* fields = result->Fetch();
username = fields[0].GetCppString();
security = fields[1].GetUInt32();
-
+
if(!m_session || m_session->GetSecurity() >= security)
{
last_ip = fields[2].GetCppString();
@@ -2022,21 +2022,21 @@ bool ChatHandler::HandleWpAddCommand(const char* args)
// optional
char* path_number = NULL;
uint32 pathid = 0;
-
+
if(*args)
path_number = strtok((char*)args, " ");
-
+
uint32 point = 0;
Creature* target = getSelectedCreature();
-
+
if (!path_number)
{
if(target)
pathid = target->GetWaypointPath();
- else
+ else
{
QueryResult *result = WorldDatabase.PQuery( "SELECT MAX(id) FROM waypoint_data");
- uint32 maxpathid = result->Fetch()->GetInt32();
+ uint32 maxpathid = result->Fetch()->GetInt32();
pathid = maxpathid+1;
sLog.outDebug("DEBUG: HandleWpAddCommand - New path started.");
PSendSysMessage("%s%s|r", "|cff00ff00", "New path started.");
@@ -2044,27 +2044,27 @@ bool ChatHandler::HandleWpAddCommand(const char* args)
}
else
pathid = atoi(path_number);
-
+
// path_id -> ID of the Path
// point -> number of the waypoint (if not 0)
-
+
if(!pathid)
{
sLog.outDebug("DEBUG: HandleWpAddCommand - Current creature haven't loaded path.");
PSendSysMessage("%s%s|r", "|cffff33ff", "Current creature haven't loaded path.");
return true;
}
-
+
sLog.outDebug("DEBUG: HandleWpAddCommand - point == 0");
QueryResult *result = WorldDatabase.PQuery( "SELECT MAX(point) FROM waypoint_data WHERE id = '%u'",pathid);
-
+
if( result )
{
point = (*result)[0].GetUInt32();
delete result;
}
-
+
Player* player = m_session->GetPlayer();
Map *map = player->GetMap();
@@ -2072,7 +2072,7 @@ bool ChatHandler::HandleWpAddCommand(const char* args)
pathid, point+1, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ());
PSendSysMessage("%s%s%u%s%u%s|r", "|cff00ff00", "PathID: |r|cff00ffff", pathid, "|r|cff00ff00: Waypoint |r|cff00ffff", point,"|r|cff00ff00 created. ");
-
+
return true;
} // HandleWpAddCommand
@@ -2080,29 +2080,29 @@ bool ChatHandler::HandleWpLoadPathCommand(const char *args)
{
if(!*args)
return false;
-
+
// optional
char* path_number = NULL;
if(*args)
path_number = strtok((char*)args, " ");
-
+
uint32 pathid = 0;
uint32 guidlow = 0;
Creature* target = getSelectedCreature();
-
+
// Did player provide a path_id?
if (!path_number)
sLog.outDebug("DEBUG: HandleWpLoadPathCommand - No path number provided");
-
+
if(!target)
{
SendSysMessage(LANG_SELECT_CREATURE);
SetSentErrorMessage(true);
return false;
}
-
+
if(target->GetEntry() == 1)
{
PSendSysMessage("%s%s|r", "|cffff33ff", "You want to load path to a waypoint? Aren't you?");
@@ -2111,16 +2111,16 @@ bool ChatHandler::HandleWpLoadPathCommand(const char *args)
}
pathid = atoi(path_number);
-
+
if(!pathid)
{
PSendSysMessage("%s%s|r", "|cffff33ff", "No vallid path number provided.");
return true;
}
-
+
guidlow = target->GetGUIDLow();
QueryResult *result = WorldDatabase.PQuery( "SELECT guid FROM creature_addon WHERE guid = '%u'",guidlow);
-
+
if( result )
{
WorldDatabase.PExecute("UPDATE creature_addon SET path_id = '%u' WHERE guid = '%u'", pathid, guidlow);
@@ -2128,15 +2128,15 @@ bool ChatHandler::HandleWpLoadPathCommand(const char *args)
}
else
WorldDatabase.PExecute("INSERT INTO creature_addon(guid,path_id) VALUES ('%u','%u')", guidlow, pathid);
-
+
WorldDatabase.PExecute("UPDATE creature SET MovementType = '%u' WHERE guid = '%u'", WAYPOINT_MOTION_TYPE, guidlow);
-
+
target->LoadPath(pathid);
target->SetDefaultMovementType(WAYPOINT_MOTION_TYPE);
target->GetMotionMaster()->Initialize();
target->Say("Path loaded.",0,0);
-
- return true;
+
+ return true;
}
@@ -2146,7 +2146,7 @@ if(!*args)
return false;
uint32 id = atoi(args);
-
+
if(!id)
return false;
@@ -2193,25 +2193,25 @@ if(!*args)
return false;
char* show_str = strtok((char*)args, " ");
-
+
std::string show = show_str;
-
+
// Check
if( (show != "add") && (show != "mod") && (show != "del") && (show != "listid")) return false;
-
-
+
+
if(show == "add")
{
uint32 id = 0;
- char* arg_id = strtok(NULL, " ");
-
+ char* arg_id = strtok(NULL, " ");
+
if(arg_id)
uint32 id = atoi(arg_id);
-
+
if(id)
{
QueryResult *result = WorldDatabase.PQuery( "SELECT `id` FROM waypoint_scripts WHERE guid = %u", id);
-
+
if( !result )
{
WorldDatabase.PExecute("INSERT INTO waypoint_scripts(guid)VALUES(%u)", id);
@@ -2229,38 +2229,38 @@ if(!*args)
id = result->Fetch()->GetUInt32();
WorldDatabase.PExecute("INSERT INTO waypoint_scripts(guid)VALUES(%u)", id+1);
PSendSysMessage("%s%s%u|r", "|cff00ff00","Wp Event: New waypoint event added: |r|cff00ffff", id+1);
- }
-
+ }
+
return true;
}
-
-
+
+
if(show == "listid")
{
uint32 id;
char* arg_id = strtok(NULL, " ");
-
+
if(!arg_id)
{
PSendSysMessage("%s%s|r", "|cff33ffff","Wp Event: You must provide waypoint script id.");
return true;
}
-
+
id = atoi(arg_id);
-
+
uint32 a2, a3, a4, a5, a6;
float a8, a9, a10, a11;
char const* a7;
-
+
QueryResult *result = WorldDatabase.PQuery( "SELECT `guid`, `delay`, `command`, `datalong`, `datalong2`, `dataint`, `x`, `y`, `z`, `o` FROM waypoint_scripts WHERE id = %u", id);
-
+
if( !result )
{
PSendSysMessage("%s%s%u|r", "|cff33ffff", "Wp Event: No waypoint scripts found on id: ", id);
return true;
}
-
- Field *fields;
+
+ Field *fields;
do
{
@@ -2275,21 +2275,21 @@ if(!*args)
a9 = fields[7].GetFloat();
a10 = fields[8].GetFloat();
a11 = fields[9].GetFloat();
-
+
PSendSysMessage("|cffff33ffid:|r|cff00ffff %u|r|cff00ff00, guid: |r|cff00ffff%u|r|cff00ff00, delay: |r|cff00ffff%u|r|cff00ff00, command: |r|cff00ffff%u|r|cff00ff00, datalong: |r|cff00ffff%u|r|cff00ff00, datalong2: |r|cff00ffff%u|r|cff00ff00, datatext: |r|cff00ffff%s|r|cff00ff00, posx: |r|cff00ffff%f|r|cff00ff00, posy: |r|cff00ffff%f|r|cff00ff00, posz: |r|cff00ffff%f|r|cff00ff00, orientation: |r|cff00ffff%f|r", id, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
}while(result->NextRow());
-
+
delete result;
}
-
+
if(show == "del")
{
-
- char* arg_id = strtok(NULL, " ");
+
+ char* arg_id = strtok(NULL, " ");
uint32 id = atoi(arg_id);
-
+
QueryResult *result = WorldDatabase.PQuery( "SELECT `guid` FROM waypoint_scripts WHERE guid = %u", id);
-
+
if( result )
{
@@ -2299,21 +2299,21 @@ if(!*args)
}
else
PSendSysMessage("|cffff33ffWp Event: ERROR: you have selected a non existing script: %u|r", id);
-
+
return true;
}
-
-
+
+
if(show == "mod")
{
char* arg_1 = strtok(NULL," ");
-
+
if(!arg_1)
{
SendSysMessage("|cffff33ffERROR: Waypoint script guid not present.|r");
return true;
}
-
+
uint32 id = atoi(arg_1);
if(!id)
@@ -2323,15 +2323,15 @@ if(!*args)
}
char* arg_2 = strtok(NULL," ");
-
+
if(!arg_2)
{ SendSysMessage("|cffff33ffERROR: No argument present.|r");
return true;}
-
-
+
+
std::string arg_string = arg_2;
-
-
+
+
if( (arg_string != "setid") && (arg_string != "delay") && (arg_string != "command")
&& (arg_string != "datalong") && (arg_string != "datalong2") && (arg_string != "dataint") && (arg_string != "posx")
&& (arg_string != "posy") && (arg_string != "posz") && (arg_string != "orientation")
@@ -2342,7 +2342,7 @@ if( (arg_string != "setid") && (arg_string != "delay") && (arg_string != "comman
char* arg_3;
std::string arg_str_2 = arg_2;
arg_3 = strtok(NULL," ");
-
+
if(!arg_3)
{SendSysMessage("|cffff33ffERROR: No additional argument present.|r");
return true;}
@@ -2350,13 +2350,13 @@ if(!arg_3)
float coord;
if(arg_str_2 == "setid")
- {
+ {
uint32 newid = atoi(arg_3);
PSendSysMessage("%s%s|r|cff00ffff%u|r|cff00ff00%s|r|cff00ffff%u|r","|cff00ff00","Wp Event: Wypoint scipt guid: ", newid," id changed: ", id);
WorldDatabase.PExecuteLog("UPDATE waypoint_scripts SET id='%u' WHERE guid='%u'",
newid, id); return true;
}
- else
+ else
{
QueryResult *result = WorldDatabase.PQuery("SELECT id FROM waypoint_scripts WHERE guid='%u'",id);
@@ -2370,31 +2370,31 @@ float coord;
delete result;
if(arg_str_2 == "posx")
-{
+{
coord = atof(arg_3);
WorldDatabase.PExecuteLog("UPDATE waypoint_scripts SET x='%f' WHERE guid='%u'",
- coord, id);
+ coord, id);
PSendSysMessage("|cff00ff00Waypoint script:|r|cff00ffff %u|r|cff00ff00 position_x updated.|r", id);
return true;
}else if(arg_str_2 == "posy")
{
coord = atof(arg_3);
WorldDatabase.PExecuteLog("UPDATE waypoint_scripts SET y='%f' WHERE guid='%u'",
- coord, id);
+ coord, id);
PSendSysMessage("|cff00ff00Waypoint script: %u position_y updated.|r", id);
return true;
} else if(arg_str_2 == "posz")
{
coord = atof(arg_3);
WorldDatabase.PExecuteLog("UPDATE waypoint_scripts SET z='%f' WHERE guid='%u'",
- coord, id);
+ coord, id);
PSendSysMessage("|cff00ff00Waypoint script: |r|cff00ffff%u|r|cff00ff00 position_z updated.|r", id);
return true;
} else if(arg_str_2 == "orientation")
{
coord = atof(arg_3);
WorldDatabase.PExecuteLog("UPDATE waypoint_scripts SET o='%f' WHERE guid='%u'",
- coord, id);
+ coord, id);
PSendSysMessage("|cff00ff00Waypoint script: |r|cff00ffff%u|r|cff00ff00 orientation updated.|r", id);
return true;
} else if(arg_str_2 == "dataint")
@@ -2456,7 +2456,7 @@ bool ChatHandler::HandleWpModifyCommand(const char* args)
SendSysMessage("|cffff33ffERROR: You must select a waypoint.|r");
return false;
}
-
+
sLog.outDebug("DEBUG: HandleWpModifyCommand - User did select an NPC");
// The visual waypoint
Creature* wpCreature = NULL;
@@ -2477,7 +2477,7 @@ bool ChatHandler::HandleWpModifyCommand(const char* args)
{
QueryResult *result =
WorldDatabase.PQuery( "SELECT id, point FROM waypoint_data WHERE wpguid = %u", wpGuid);
-
+
if(!result)
{
sLog.outDebug("DEBUG: HandleWpModifyCommand - No waypoint found - used 'wpguid'");
@@ -2515,7 +2515,7 @@ bool ChatHandler::HandleWpModifyCommand(const char* args)
// Text is enclosed in "<>", all other arguments not
arg_str = strtok((char*)NULL, " ");
}
-
+
sLog.outDebug("DEBUG: HandleWpModifyCommand - Parameters parsed - now execute the command");
// Check for argument
@@ -2531,7 +2531,7 @@ bool ChatHandler::HandleWpModifyCommand(const char* args)
// wpCreature
Creature* wpCreature = NULL;
-
+
if( wpGuid != 0 )
{
wpCreature = ObjectAccessor::GetCreature(*m_session->GetPlayer(),MAKE_NEW_GUID(wpGuid, VISUAL_WAYPOINT, HIGHGUID_UNIT));
@@ -2616,7 +2616,7 @@ bool ChatHandler::HandleWpModifyCommand(const char* args)
WorldDatabase.PExecuteLog("UPDATE waypoint_data SET %s='%s' WHERE id='%u' AND point='%u'",
show_str, text2.c_str(), pathid, point);
}
-
+
PSendSysMessage(LANG_WAYPOINT_CHANGED_NO, show_str);
return true;
@@ -2639,7 +2639,7 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
// second arg: GUID (optional, if a creature is selected)
char* guid_str = strtok((char*)NULL, " ");
sLog.outDebug("DEBUG: HandleWpShowCommand: show_str: %s guid_str: %s", show_str, guid_str);
-
+
uint32 pathid = 0;
Creature* target = getSelectedCreature();
@@ -2684,14 +2684,14 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
uint32 Maxpoint;
sLog.outDebug("DEBUG: HandleWpShowCommand: PathID: %u", pathid);
-
+
//PSendSysMessage("wpshow - show: %s", show);
// Show info for the selected waypoint
if(show == "info")
{
-
+
// Check if the user did specify a visual waypoint
if( target->GetEntry() != VISUAL_WAYPOINT )
@@ -2703,16 +2703,16 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
QueryResult *result = WorldDatabase.PQuery( "SELECT id, point, delay, move_flag, action, action_chance FROM waypoint_data WHERE wpguid = %u", target->GetGUIDLow());
-
+
if(!result)
{
SendSysMessage(LANG_WAYPOINT_NOTFOUNDDBPROBLEM);
- return true;
+ return true;
}
-
+
SendSysMessage("|cff00ffffDEBUG: wp show info:|r");
-
+
do
{
Field *fields = result->Fetch();
@@ -2738,19 +2738,19 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
if(show == "on")
{
QueryResult *result = WorldDatabase.PQuery( "SELECT point, position_x,position_y,position_z FROM waypoint_data WHERE id = '%u'", pathid);
-
+
if(!result)
{
SendSysMessage("|cffff33ffPath no found.|r");
SetSentErrorMessage(true);
return false;
}
-
+
PSendSysMessage("|cff00ff00DEBUG: wp on, PathID: |cff00ffff%u|r", pathid);
-
+
// Delete all visuals for this NPC
QueryResult *result2 = WorldDatabase.PQuery( "SELECT wpguid FROM waypoint_data WHERE id = '%u' and wpguid <> 0", pathid);
-
+
if(result2)
{
bool hasError = false;
@@ -2774,9 +2774,9 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
}
}while( result2->NextRow() );
-
+
delete result2;
-
+
if( hasError )
{
PSendSysMessage(LANG_WAYPOINT_TOOFAR1);
@@ -2807,9 +2807,9 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
delete result;
return false;
}
-
+
wpCreature->Relocate(x, y, z, o);
-
+
if(!wpCreature->IsPositionValid())
{
sLog.outError("ERROR: Creature (guidlow %d, entry %d) not created. Suggested coordinates isn't valid (X: %f Y: %f)",wpCreature->GetGUIDLow(),wpCreature->GetEntry(),wpCreature->GetPositionX(),wpCreature->GetPositionY());
@@ -2825,7 +2825,7 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
wpCreature->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()));
wpCreature->LoadFromDB(wpCreature->GetDBTableGUIDLow(),map);
map->Add(wpCreature);
-
+
if(target)
{
wpCreature->SetDisplayId(target->GetDisplayId());
@@ -2880,17 +2880,17 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
delete result;
return false;
}
-
+
pCreature->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()));
pCreature->LoadFromDB(pCreature->GetDBTableGUIDLow(), map);
map->Add(pCreature);
-
+
if(target)
{
pCreature->SetDisplayId(target->GetDisplayId());
pCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
}
-
+
// Cleanup memory
delete result;
return true;
@@ -2945,17 +2945,17 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
delete result;
return false;
}
-
+
pCreature->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()));
pCreature->LoadFromDB(pCreature->GetDBTableGUIDLow(), map);
map->Add(pCreature);
-
+
if(target)
{
pCreature->SetDisplayId(target->GetDisplayId());
pCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
}
-
+
// Cleanup memory
delete result;
return true;
@@ -3241,7 +3241,7 @@ bool ChatHandler::HandleLookupEventCommand(const char* args)
if (Utf8FitTo(descr, wnamepart))
{
char const* active = activeEvents.find(id) != activeEvents.end() ? GetTrinityString(LANG_ACTIVE) : "";
-
+
if(m_session)
PSendSysMessage(LANG_EVENT_ENTRY_LIST_CHAT,id,id,eventData.description.c_str(),active );
else
@@ -3575,7 +3575,7 @@ bool ChatHandler::HandleLearnAllRecipesCommand(const char* args)
bool ChatHandler::HandleLookupPlayerIpCommand(const char* args)
{
-
+
if (!*args)
return false;
@@ -3611,7 +3611,7 @@ bool ChatHandler::HandleLookupPlayerAccountCommand(const char* args)
bool ChatHandler::HandleLookupPlayerEmailCommand(const char* args)
{
-
+
if (!*args)
return false;
@@ -3641,7 +3641,7 @@ bool ChatHandler::LookupPlayerSearchCommand(QueryResult* result, int32 limit)
Field* fields = result->Fetch();
uint32 acc_id = fields[0].GetUInt32();
std::string acc_name = fields[1].GetCppString();
-
+
QueryResult* chars = CharacterDatabase.PQuery("SELECT guid,name FROM characters WHERE account = '%u'", acc_id);
if(chars)
{
@@ -3757,7 +3757,7 @@ bool ChatHandler::HandleCreatePetCommand(const char* args)
{
Player *player = m_session->GetPlayer();
Creature *creatureTarget = getSelectedCreature();
-
+
if(!creatureTarget || creatureTarget->isPet() || creatureTarget->GetTypeId() == TYPEID_PLAYER)
{
PSendSysMessage(LANG_SELECT_CREATURE);
@@ -4041,11 +4041,11 @@ bool ChatHandler::HandleNpcAddFormationCommand(const char* args)
group_member->follow_dist = sqrtf(pow(chr->GetPositionX() - pCreature->GetPositionX(),int(2))+pow(chr->GetPositionY()-pCreature->GetPositionY(),int(2)));
group_member->memberGUID = lowguid;
group_member->leaderGUID = leaderGUID;
- group_member->groupAI = 0;
+ group_member->groupAI = 0;
CreatureGroupMap[lowguid] = group_member;
pCreature->SearchFormation();
-
+
WorldDatabase.PExecuteLog("INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`) VALUES ('%u','%u','%f', '%f', '%u')",
leaderGUID, lowguid, group_member->follow_dist, group_member->follow_angle, group_member->groupAI);
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index 7e7228f5885..6e9704c322d 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -929,7 +929,7 @@ bool ChatHandler::HandleReloadWpScriptsCommand(const char* arg)
sLog.outString( "Re-Loading Scripts from `waypoint_scripts`...");
objmgr.LoadWaypointScripts();
-
+
if(*arg!='a')
SendGlobalGMSysMessage("DB table `waypoint_scripts` reloaded.");
@@ -1136,7 +1136,7 @@ bool ChatHandler::HandleAccountSetGmLevelCommand(const char* args)
}else{
PSendSysMessage(LANG_YOURS_SECURITY_CHANGED, m_session->GetPlayer()->GetName(), gm);
}
-
+
LoginDatabase.PExecute("UPDATE account SET gmlevel = '%d' WHERE id = '%u'", gm, targetAccountId);
return true;
}else
@@ -1144,7 +1144,7 @@ bool ChatHandler::HandleAccountSetGmLevelCommand(const char* args)
// Check for second parameter
if(!arg2)
return false;
-
+
// Check for account
targetAccountName = arg1;
if(!AccountMgr::normilizeString(targetAccountName))
@@ -1153,7 +1153,7 @@ bool ChatHandler::HandleAccountSetGmLevelCommand(const char* args)
SetSentErrorMessage(true);
return false;
}
-
+
// Check for invalid specified GM level.
gm = atoi(arg2);
if ( (gm < SEC_PLAYER || gm > SEC_ADMINISTRATOR) )
@@ -1162,7 +1162,7 @@ bool ChatHandler::HandleAccountSetGmLevelCommand(const char* args)
SetSentErrorMessage(true);
return false;
}
-
+
targetAccountId = accmgr.GetId(arg1);
/// m_session==NULL only for console
uint32 plSecurity = m_session ? m_session->GetSecurity() : SEC_CONSOLE;
@@ -7075,7 +7075,7 @@ bool ChatHandler::HandleFreezeCommand(const char *args)
{
player = getSelectedPlayer();
if (player) //prevent crash with creature as target
- {
+ {
name = player->GetName();
normalizePlayerName(name);
}
@@ -7136,7 +7136,7 @@ bool ChatHandler::HandleFreezeCommand(const char *args)
if (eff>=TOTAL_SPELL_EFFECTS)
continue;
if( eff == SPELL_EFFECT_APPLY_AREA_AURA_PARTY || eff == SPELL_EFFECT_APPLY_AURA ||
- eff == SPELL_EFFECT_PERSISTENT_AREA_AURA || eff == SPELL_EFFECT_APPLY_AREA_AURA_FRIEND ||
+ eff == SPELL_EFFECT_PERSISTENT_AREA_AURA || eff == SPELL_EFFECT_APPLY_AREA_AURA_FRIEND ||
eff == SPELL_EFFECT_APPLY_AREA_AURA_ENEMY)
{
Aura *Aur = CreateAura(spellInfo, i, NULL, player);
@@ -7160,7 +7160,7 @@ bool ChatHandler::HandleUnFreezeCommand(const char *args)
{
player = getSelectedPlayer();
if (player) //prevent crash with creature as target
- {
+ {
name = player->GetName();
}
}
@@ -7192,7 +7192,7 @@ bool ChatHandler::HandleUnFreezeCommand(const char *args)
if (!player)
{
if (TargetName)
- {
+ {
//check for offline players
QueryResult *result = CharacterDatabase.PQuery("SELECT characters.guid FROM `characters` WHERE characters.name = '%s'",name.c_str());
if(!result)
@@ -7311,7 +7311,7 @@ bool ChatHandler::HandleBindSightCommand(const char* args)
Unit* pUnit = getSelectedUnit();
if (!pUnit)
return false;
-
+
if (m_session->GetPlayer()->isPossessing())
return false;
@@ -7324,7 +7324,7 @@ bool ChatHandler::HandleUnbindSightCommand(const char* args)
{
if (m_session->GetPlayer()->isPossessing())
return false;
-
+
m_session->GetPlayer()->RemoveFarsightTarget();
return true;
}
diff --git a/src/game/Makefile.am b/src/game/Makefile.am
index 21ee6172fb3..ec9cbab40cb 100644
--- a/src/game/Makefile.am
+++ b/src/game/Makefile.am
@@ -50,6 +50,8 @@ $(srcdir)/ArenaTeam.cpp \
$(srcdir)/ArenaTeam.h \
$(srcdir)/ArenaTeamHandler.cpp \
$(srcdir)/AuctionHouse.cpp \
+$(srcdir)/AuctionHouseBot.cpp \
+$(srcdir)/AuctionHouseBot.h \
$(srcdir)/AuctionHouseObject.h \
$(srcdir)/Bag.cpp \
$(srcdir)/Bag.h \
@@ -100,7 +102,7 @@ $(srcdir)/CreatureGroups.cpp \
$(srcdir)/CreatureGroups.h \
$(srcdir)/Creature.cpp \
$(srcdir)/Creature.h \
-$(srcdir)/debugcmds.cpp \
+$(srcdir)/Debugcmds.cpp \
$(srcdir)/DestinationHolder.cpp \
$(srcdir)/DestinationHolder.h \
$(srcdir)/DestinationHolderImp.h \
@@ -256,7 +258,7 @@ $(srcdir)/TemporarySummon.h \
$(srcdir)/TicketHandler.cpp \
$(srcdir)/TicketMgr.cpp \
$(srcdir)/TicketMgr.h \
-$(srcdir)/tools.cpp \
+$(srcdir)/Tools.cpp \
$(srcdir)/Tools.h \
$(srcdir)/TotemAI.cpp \
$(srcdir)/TotemAI.h \
diff --git a/src/game/Map.h b/src/game/Map.h
index bcdf3ec8f6a..0c26fb36a00 100644
--- a/src/game/Map.h
+++ b/src/game/Map.h
@@ -134,13 +134,13 @@ class TRINITY_DLL_SPEC Map : public GridRefManager, public Trinity::O
// currently unused for normal maps
bool CanUnload(uint32 diff)
- {
- if(!m_unloadTimer)
+ {
+ if(!m_unloadTimer)
return false;
- if(m_unloadTimer <= diff)
- return true;
- m_unloadTimer -= diff;
- return false;
+ if(m_unloadTimer <= diff)
+ return true;
+ m_unloadTimer -= diff;
+ return false;
}
virtual bool Add(Player *);
diff --git a/src/game/MotionMaster.cpp b/src/game/MotionMaster.cpp
index afc1940f89b..39fd7469a15 100644
--- a/src/game/MotionMaster.cpp
+++ b/src/game/MotionMaster.cpp
@@ -366,7 +366,7 @@ void MotionMaster::Mutate(MovementGenerator *m, MovementSlot slot)
}
else if(i_top < slot)
{
- i_top = slot;
+ i_top = slot;
}
m->Initialize(*i_owner);
Impl[slot] = m;
@@ -400,13 +400,13 @@ void MotionMaster::MovePath(uint32 path_id, bool repeatable)
if( !isStatic( curr ) )
delete curr;
}*/
-
+
//i_owner->GetTypeId()==TYPEID_PLAYER ?
//Mutate(new WaypointMovementGenerator(path_id, repeatable)):
Mutate(new WaypointMovementGenerator(path_id, repeatable), MOTION_SLOT_IDLE);
-
- DEBUG_LOG("%s (GUID: %u) start moving over path(Id:%u, repeatable: %s)",
- i_owner->GetTypeId()==TYPEID_PLAYER ? "Player" : "Creature",
+
+ DEBUG_LOG("%s (GUID: %u) start moving over path(Id:%u, repeatable: %s)",
+ i_owner->GetTypeId()==TYPEID_PLAYER ? "Player" : "Creature",
i_owner->GetGUIDLow(), path_id, repeatable ? "YES" : "NO" );
}
diff --git a/src/game/MovementHandler.cpp b/src/game/MovementHandler.cpp
index 0a310cddd96..8c808e3a53a 100644
--- a/src/game/MovementHandler.cpp
+++ b/src/game/MovementHandler.cpp
@@ -365,7 +365,7 @@ void WorldSession::HandlePossessedMovement(WorldPacket& recv_data, MovementInfo&
if (pos_unit->GetTypeId() == TYPEID_PLAYER)
{
Player* plr = (Player*)pos_unit;
-
+
if (recv_data.GetOpcode() == MSG_MOVE_FALL_LAND)
plr->HandleFallDamage(movementInfo);
@@ -374,7 +374,7 @@ void WorldSession::HandlePossessedMovement(WorldPacket& recv_data, MovementInfo&
// Now client not include swimming flag in case jumping under water
plr->SetInWater( !plr->IsInWater() || plr->GetBaseMap()->IsUnderWater(movementInfo.x, movementInfo.y, movementInfo.z) );
}
-
+
plr->SetPosition(movementInfo.x, movementInfo.y, movementInfo.z, movementInfo.o, false);
plr->m_movementInfo = movementInfo;
@@ -386,7 +386,7 @@ void WorldSession::HandlePossessedMovement(WorldPacket& recv_data, MovementInfo&
GetPlayer()->RemovePossess(false);
plr->HandleFallUnderMap();
}
- }
+ }
else // Possessed unit is a creature
{
Map* map = MapManager::Instance().GetMap(pos_unit->GetMapId(), pos_unit);
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 7599245eaac..181e7f2541d 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1356,7 +1356,7 @@ namespace Trinity
{
public:
MessageChatLocaleCacheDo(WorldObject const& obj, ChatMsg msgtype, int32 textId, uint32 language, uint64 targetGUID, float dist)
- : i_object(obj), i_msgtype(msgtype), i_textId(textId), i_language(language),
+ : i_object(obj), i_msgtype(msgtype), i_textId(textId), i_language(language),
i_targetGUID(targetGUID), i_dist(dist)
{
}
@@ -1669,7 +1669,7 @@ void WorldObject::GetNearPoint2D(float &x, float &y, float distance2d, float abs
void WorldObject::GetNearPoint(WorldObject const* searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle ) const
{
GetNearPoint2D(x,y,distance2d+searcher_size,absAngle);
-
+
z = GetPositionZ();
UpdateGroundPositionZ(x,y,z);
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index 6ceb9a08334..e62e7af0617 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -222,7 +222,7 @@ void ObjectMgr::LoadPlayerInfoInCache()
pPPlayerInfo->unArenaInfoSlot0 = Player::GetUInt32ValueFromArray(tdata,PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + 0 * 6 + 5);
pPPlayerInfo->unArenaInfoSlot1 = Player::GetUInt32ValueFromArray(tdata,PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + 1 * 6 + 5);
pPPlayerInfo->unArenaInfoSlot2 = Player::GetUInt32ValueFromArray(tdata,PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + 2 * 6 + 5);
-
+
pPPlayerInfo->unClass = (uint32)fields[3].GetUInt32();
m_mPlayerInfoMap[fields[0].GetUInt32()] = pPPlayerInfo;
}
@@ -1020,7 +1020,7 @@ uint32 ObjectMgr::ChooseDisplayId(uint32 team, const CreatureInfo *cinfo, const
if (!data || data->displayid == 0) // use defaults from the template
{
display_id = cinfo->GetRandomValidModelId();
- } else display_id = data->displayid; // overwritten from creature data
+ } else display_id = data->displayid; // overwritten from creature data
return display_id;
}
@@ -7555,7 +7555,7 @@ ObjectMgr::ScriptNameMap & GetScriptNames()
void ObjectMgr::LoadTransportEvents()
{
-
+
QueryResult *result = WorldDatabase.Query("SELECT entry, waypoint_id, event_id FROM transport_events");
if( !result )
@@ -7571,19 +7571,19 @@ void ObjectMgr::LoadTransportEvents()
do
{
bar1.step();
-
+
Field *fields = result->Fetch();
-
+
//Load event values
uint32 entry = fields[0].GetUInt32();
uint32 waypoint_id = fields[1].GetUInt32();
uint32 event_id = fields[2].GetUInt32();
-
+
uint32 event_count = (entry*100)+waypoint_id;
TransportEventMap[event_count] = event_id;
}
while(result->NextRow());
-
+
sLog.outString( "\n>> Loaded %u transport events \n", result->GetRowCount() );
delete result;
diff --git a/src/game/ObjectMgr.h b/src/game/ObjectMgr.h
index b942ae21c37..cf1659cac42 100644
--- a/src/game/ObjectMgr.h
+++ b/src/game/ObjectMgr.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -324,7 +324,7 @@ class ObjectMgr
typedef std::vector ScriptNameMap;
UNORDERED_MAP TransportEventMap;
-
+
Player* GetPlayer(const char* name) const { return ObjectAccessor::Instance().FindPlayerByName(name);}
Player* GetPlayer(uint64 guid) const { return ObjectAccessor::FindPlayer(guid); }
@@ -537,7 +537,7 @@ class ObjectMgr
void LoadEventScripts();
void LoadSpellScripts();
void LoadWaypointScripts();
-
+
void LoadTransportEvents();
bool LoadTrinityStrings(DatabaseType& db, char const* table, int32 min_value, int32 max_value);
@@ -594,7 +594,7 @@ class ObjectMgr
void LoadNpcTextId();
void LoadVendors();
void LoadTrainerSpell();
-
+
std::string GeneratePetName(uint32 entry);
uint32 GetBaseXP(uint32 level);
@@ -614,7 +614,7 @@ class ObjectMgr
uint32 GeneratePetNumber();
uint32 GenerateArenaTeamId();
uint32 GenerateGuildId();
-
+
void LoadPlayerInfoInCache();
PCachePlayerInfo GetPlayerInfoFromCache(uint32 unPlayerGuid) const;
CachePlayerInfoMap m_mPlayerInfoMap;
diff --git a/src/game/OutdoorPvP.cpp b/src/game/OutdoorPvP.cpp
index 06d56897f1e..a6f050c5a62 100644
--- a/src/game/OutdoorPvP.cpp
+++ b/src/game/OutdoorPvP.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
@@ -26,9 +26,9 @@
#include "Group.h"
#include "WorldPacket.h"
-OutdoorPvPObjective::OutdoorPvPObjective(OutdoorPvP * pvp)
+OutdoorPvPObjective::OutdoorPvPObjective(OutdoorPvP * pvp)
: m_PvP(pvp), m_ShiftPhase(0), m_ShiftMaxPhase(0), m_OldPhase(0),
-m_State(0), m_OldState(0), m_CapturePoint(0), m_NeutralValue(0),
+m_State(0), m_OldState(0), m_CapturePoint(0), m_NeutralValue(0),
m_ShiftMaxCaptureSpeed(0), m_CapturePointCreature(0)
{
}
@@ -767,7 +767,7 @@ int32 OutdoorPvPObjective::HandleOpenGo(Player *plr, uint64 guid)
std::map::iterator itr = m_ObjectTypes.find(guid);
if(itr != m_ObjectTypes.end())
{
- return itr->second;
+ return itr->second;
}
return -1;
}
diff --git a/src/game/OutdoorPvP.h b/src/game/OutdoorPvP.h
index 04a26dbcd04..5643c5f3148 100644
--- a/src/game/OutdoorPvP.h
+++ b/src/game/OutdoorPvP.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
diff --git a/src/game/OutdoorPvPEP.cpp b/src/game/OutdoorPvPEP.cpp
index efc132aee0b..93064c85d88 100644
--- a/src/game/OutdoorPvPEP.cpp
+++ b/src/game/OutdoorPvPEP.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
diff --git a/src/game/OutdoorPvPEP.h b/src/game/OutdoorPvPEP.h
index 7574b93e3c5..d454848e249 100644
--- a/src/game/OutdoorPvPEP.h
+++ b/src/game/OutdoorPvPEP.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
diff --git a/src/game/OutdoorPvPHP.cpp b/src/game/OutdoorPvPHP.cpp
index 846e23c8107..ced9bcf09e6 100644
--- a/src/game/OutdoorPvPHP.cpp
+++ b/src/game/OutdoorPvPHP.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
diff --git a/src/game/OutdoorPvPHP.h b/src/game/OutdoorPvPHP.h
index 7b7e8f7ee59..dd274097dfa 100644
--- a/src/game/OutdoorPvPHP.h
+++ b/src/game/OutdoorPvPHP.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
diff --git a/src/game/OutdoorPvPMgr.cpp b/src/game/OutdoorPvPMgr.cpp
index 64a9649dae8..7f1ffa3faa6 100644
--- a/src/game/OutdoorPvPMgr.cpp
+++ b/src/game/OutdoorPvPMgr.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
diff --git a/src/game/OutdoorPvPMgr.h b/src/game/OutdoorPvPMgr.h
index 8c058d8fc19..033f67d97d3 100644
--- a/src/game/OutdoorPvPMgr.h
+++ b/src/game/OutdoorPvPMgr.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
diff --git a/src/game/OutdoorPvPNA.cpp b/src/game/OutdoorPvPNA.cpp
index c4cbdd63e3c..827f988a959 100644
--- a/src/game/OutdoorPvPNA.cpp
+++ b/src/game/OutdoorPvPNA.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
@@ -160,9 +160,9 @@ void OutdoorPvPObjectiveNA::SpawnGOsForTeam(uint32 team)
i == NA_ROOST_W ||
i == NA_ROOST_N ||
i == NA_ROOST_E ||
- i == NA_BOMB_WAGON_S ||
- i == NA_BOMB_WAGON_W ||
- i == NA_BOMB_WAGON_N ||
+ i == NA_BOMB_WAGON_S ||
+ i == NA_BOMB_WAGON_W ||
+ i == NA_BOMB_WAGON_N ||
i == NA_BOMB_WAGON_E )
continue; // roosts and bomb wagons are spawned when someone uses the matching destroyed roost
AddObject(i,gos[i].entry,gos[i].map,gos[i].x,gos[i].y,gos[i].z,gos[i].o,gos[i].rot0,gos[i].rot1,gos[i].rot2,gos[i].rot3);
@@ -244,7 +244,7 @@ void OutdoorPvPObjectiveNA::HandlePlayerLeave(Player *plr)
OutdoorPvPObjective::HandlePlayerLeave(plr);
}
-OutdoorPvPObjectiveNA::OutdoorPvPObjectiveNA(OutdoorPvP *pvp) :
+OutdoorPvPObjectiveNA::OutdoorPvPObjectiveNA(OutdoorPvP *pvp) :
OutdoorPvPObjective(pvp), m_capturable(true), m_GuardsAlive(0), m_ControllingFaction(0),
m_HalaaState(HALAA_N), m_WyvernStateSouth(0), m_WyvernStateNorth(0), m_WyvernStateWest(0),
m_WyvernStateEast(0), m_RespawnTimer(NA_RESPAWN_TIME), m_GuardCheckTimer(NA_GUARD_CHECK_TIME)
@@ -336,7 +336,7 @@ void OutdoorPvPObjectiveNA::FillInitialWorldStates(WorldPacket &data)
data << NA_MAP_HALAA_NEU_A << uint32(bool(m_HalaaState & HALAA_N_A));
data << NA_MAP_HALAA_NEU_H << uint32(bool(m_HalaaState & HALAA_N_H));
data << NA_MAP_HALAA_HORDE << uint32(bool(m_HalaaState & HALAA_H));
- data << NA_MAP_HALAA_ALLIANCE << uint32(bool(m_HalaaState & HALAA_A));
+ data << NA_MAP_HALAA_ALLIANCE << uint32(bool(m_HalaaState & HALAA_A));
}
void OutdoorPvPNA::SendRemoveWorldStates(Player *plr)
@@ -368,7 +368,7 @@ void OutdoorPvPNA::SendRemoveWorldStates(Player *plr)
plr->SendUpdateWorldState(NA_MAP_HALAA_NEU_A,0);
plr->SendUpdateWorldState(NA_MAP_HALAA_NEU_H,0);
plr->SendUpdateWorldState(NA_MAP_HALAA_HORDE,0);
- plr->SendUpdateWorldState(NA_MAP_HALAA_ALLIANCE,0);
+ plr->SendUpdateWorldState(NA_MAP_HALAA_ALLIANCE,0);
}
bool OutdoorPvPNA::Update(uint32 diff)
@@ -425,7 +425,7 @@ bool OutdoorPvPObjectiveNA::HandleCustomSpell(Player * plr, uint32 spellId, Game
uint32 noSpaceForCount = 0;
// check space and find places
- ItemPosCountVec dest;
+ ItemPosCountVec dest;
int32 count = 10;
uint32 itemid = 24538;
diff --git a/src/game/OutdoorPvPNA.h b/src/game/OutdoorPvPNA.h
index 1355cbfaa72..a833a6d95b2 100644
--- a/src/game/OutdoorPvPNA.h
+++ b/src/game/OutdoorPvPNA.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
@@ -77,7 +77,7 @@ enum OutdoorPvPNAWorldStates{
NA_MAP_HALAA_NEU_A = 2676,
NA_MAP_HALAA_NEU_H = 2677,
NA_MAP_HALAA_HORDE = 2672,
- NA_MAP_HALAA_ALLIANCE = 2673
+ NA_MAP_HALAA_ALLIANCE = 2673
};
const uint32 FLIGHT_NODES_NUM = 4;
@@ -94,8 +94,8 @@ enum ControlGOTypes{
NA_BOMB_WAGON_N = 6,
NA_BOMB_WAGON_E = 7,
- NA_DESTROYED_ROOST_S = 8,
- NA_DESTROYED_ROOST_W = 9,
+ NA_DESTROYED_ROOST_S = 8,
+ NA_DESTROYED_ROOST_W = 9,
NA_DESTROYED_ROOST_N = 10,
NA_DESTROYED_ROOST_E = 11,
diff --git a/src/game/OutdoorPvPObjectiveAI.cpp b/src/game/OutdoorPvPObjectiveAI.cpp
index aa7778ef105..b907fa7cdba 100644
--- a/src/game/OutdoorPvPObjectiveAI.cpp
+++ b/src/game/OutdoorPvPObjectiveAI.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
diff --git a/src/game/OutdoorPvPObjectiveAI.h b/src/game/OutdoorPvPObjectiveAI.h
index c8e4844cd5a..4b65c72e6f9 100644
--- a/src/game/OutdoorPvPObjectiveAI.h
+++ b/src/game/OutdoorPvPObjectiveAI.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
diff --git a/src/game/OutdoorPvPSI.cpp b/src/game/OutdoorPvPSI.cpp
index bae0d82318d..b2bbc8a109b 100644
--- a/src/game/OutdoorPvPSI.cpp
+++ b/src/game/OutdoorPvPSI.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
@@ -204,7 +204,7 @@ bool OutdoorPvPSI::HandleDropFlag(Player *plr, uint32 spellId)
return true;
if(!go->Create(objmgr.GenerateLowGuid(HIGHGUID_GAMEOBJECT),SI_SILITHYST_MOUND, map,plr->GetPositionX(),plr->GetPositionY(),plr->GetPositionZ(),plr->GetOrientation(),0,0,0,0,100,1))
{
- delete go;
+ delete go;
}
else
{
@@ -230,7 +230,7 @@ bool OutdoorPvPSI::HandleDropFlag(Player *plr, uint32 spellId)
return true;
if(!go->Create(objmgr.GenerateLowGuid(HIGHGUID_GAMEOBJECT),SI_SILITHYST_MOUND, map ,plr->GetPositionX(),plr->GetPositionY(),plr->GetPositionZ(),plr->GetOrientation(),0,0,0,0,100,1))
{
- delete go;
+ delete go;
}
else
{
diff --git a/src/game/OutdoorPvPSI.h b/src/game/OutdoorPvPSI.h
index 472cba9ea17..0eb07af508f 100644
--- a/src/game/OutdoorPvPSI.h
+++ b/src/game/OutdoorPvPSI.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
diff --git a/src/game/OutdoorPvPTF.cpp b/src/game/OutdoorPvPTF.cpp
index 756290c257b..bd8355de667 100644
--- a/src/game/OutdoorPvPTF.cpp
+++ b/src/game/OutdoorPvPTF.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
@@ -269,7 +269,7 @@ bool OutdoorPvPTF::SetupOutdoorPvP()
m_IsLocked = false;
m_LockTimer = TF_LOCK_TIME;
- m_LockTimerUpdate = 0;
+ m_LockTimerUpdate = 0;
hours_left = 6;
second_digit = 0;
first_digit = 0;
diff --git a/src/game/OutdoorPvPZM.cpp b/src/game/OutdoorPvPZM.cpp
index 076b0325835..be2a8c7f093 100644
--- a/src/game/OutdoorPvPZM.cpp
+++ b/src/game/OutdoorPvPZM.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
diff --git a/src/game/OutdoorPvPZM.h b/src/game/OutdoorPvPZM.h
index 22e857770f3..8ccbe77f363 100644
--- a/src/game/OutdoorPvPZM.h
+++ b/src/game/OutdoorPvPZM.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp
index cafebf45f3f..72951420573 100644
--- a/src/game/Pet.cpp
+++ b/src/game/Pet.cpp
@@ -288,7 +288,7 @@ bool Pet::LoadPetFromDB( Unit* owner, uint32 petentry, uint32 petnumber, bool cu
m_charmInfo->GetActionBarEntry(index)->SpellOrAction = atol((*iter).c_str());
// patch for old data where some spells have ACT_DECIDE but should have ACT_CAST
- // so overwrite old state
+ // so overwrite old state
SpellEntry const *spellInfo = sSpellStore.LookupEntry(m_charmInfo->GetActionBarEntry(index)->SpellOrAction);
if (spellInfo && spellInfo->AttributesEx & SPELL_ATTR_EX_UNAUTOCASTABLE_BY_PET) m_charmInfo->GetActionBarEntry(index)->Type = ACT_CAST;
}
@@ -1717,7 +1717,7 @@ void Pet::ToggleAutocast(uint32 spellid, bool apply)
//if(const SpellEntry *tempSpell = GetSpellStore()->LookupEntry(spellid))
// if(tempSpell->EffectImplicitTargetA[0] != TARGET_ALL_AROUND_CASTER
// && tempSpell->EffectImplicitTargetA[0] != TARGET_CHAIN_DAMAGE)
- // return;
+ // return;
PetSpellMap::const_iterator itr = m_spells.find((uint16)spellid);
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index e7ae690c5be..3eea183617f 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -268,7 +268,7 @@ Player::Player (WorldSession *session): Unit()
m_divider = 0;
m_ExtraFlags = 0;
-
+
// players always accept
if(GetSession()->GetSecurity() == SEC_PLAYER)
SetAcceptWhispers(true);
@@ -1580,13 +1580,13 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
{
GetSession()->SendNotification(LANG_NO_ENTER_CHAMPIONS_HALL);
return false;
- }
+ }
if(mapid == 450 && GetTeam() == ALLIANCE)
{
GetSession()->SendNotification(LANG_NO_ENTER_HALL_OF_LEGENDS);
return false;
- }
+ }
// client without expansion support
if(GetSession()->Expansion() < mEntry->Expansion())
@@ -6198,7 +6198,7 @@ bool Player::RewardHonor(Unit *uVictim, uint32 groupsize, float honor, bool pvpt
{
// Check if allowed to receive it in current map
uint8 MapType = sWorld.getConfig(CONFIG_PVP_TOKEN_MAP_TYPE);
- if( (MapType == 1 && !InBattleGround() && !HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_FFA_PVP))
+ if( (MapType == 1 && !InBattleGround() && !HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_FFA_PVP))
|| (MapType == 2 && !HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_FFA_PVP))
|| (MapType == 3 && !InBattleGround()) )
return true;
@@ -7988,7 +7988,7 @@ void Player::SendInitWorldStates(bool forceZone, uint32 forceZoneId)
data << uint32(2474) << uint32(50); //: ally / horde slider percentage, 100 for ally, 0 for horde // show only in direct vicinity!
data << uint32(2473) << uint32(0); //: ally / horde slider display // show only in direct vicinity!
data << uint32(0x9a8) << uint32(0x0); // 20 // show the neutral stadium icon // 2472
- data << uint32(0x9a7) << uint32(0x0); // 21 // show the ally stadium icon // 2471
+ data << uint32(0x9a7) << uint32(0x0); // 21 // show the ally stadium icon // 2471
data << uint32(0x9a6) << uint32(0x1); // 22 // show the horde stadium icon // 2470
}
}
@@ -8081,7 +8081,7 @@ void Player::SendInitWorldStates(bool forceZone, uint32 forceZoneId)
data << uint32(0x9e1) << uint32(0x0); // 10 //2529
data << uint32(0x9e0) << uint32(0x0); // 11
data << uint32(0x9df) << uint32(0x0); // 12
- data << uint32(0xa5d) << uint32(0x1); // 13 //2653
+ data << uint32(0xa5d) << uint32(0x1); // 13 //2653
data << uint32(0xa5c) << uint32(0x0); // 14 //2652 east beacon neutral
data << uint32(0xa5b) << uint32(0x1); // 15 horde
data << uint32(0xa5a) << uint32(0x0); // 16 ally
@@ -8097,7 +8097,7 @@ void Player::SendInitWorldStates(bool forceZone, uint32 forceZoneId)
data << uint32(0xa00) << uint32(0x0); // 26 // 2560
data << uint32(0x9ff) << uint32(0x1); // 27
data << uint32(0x9fe) << uint32(0x0); // 28
- data << uint32(0x9fd) << uint32(0x0); // 29
+ data << uint32(0x9fd) << uint32(0x0); // 29
data << uint32(0x9fc) << uint32(0x1); // 30
data << uint32(0x9fb) << uint32(0x0); // 31
data << uint32(0xa62) << uint32(0x0); // 32 // 2658
@@ -15478,7 +15478,7 @@ void Player::SaveToDB()
// save pet (hunter pet level and experience and all type pets health/mana).
if(Pet* pet = GetPet())
pet->SavePetToDB(PET_SAVE_AS_CURRENT);
-
+
//to prevent access to DB we should cache some data, which is used very often
CachePlayerInfoMap::iterator _iter = objmgr.m_mPlayerInfoMap.find(GetGUIDLow());
if(_iter != objmgr.m_mPlayerInfoMap.end())//skip new players
@@ -19072,13 +19072,13 @@ void Player::RemovePossess(bool attack)
target->GetMotionMaster()->Clear();
target->GetMotionMaster()->MoveTargetedHome();
}
- }
+ }
else
{
target->GetMotionMaster()->Clear();
target->GetMotionMaster()->MoveTargetedHome();
}
-
+
// Add high amount of threat on the player
if(attack)
target->AddThreat(this, 1000000.0f);
@@ -19219,4 +19219,3 @@ void Player::UpdateCharmedAI()
Attack(target, true);
}
}
-
diff --git a/src/game/Player.h b/src/game/Player.h
index a5fd39a8908..a149e559a3a 100644
--- a/src/game/Player.h
+++ b/src/game/Player.h
@@ -2036,7 +2036,7 @@ class TRINITY_DLL_SPEC Player : public Unit
uint32 GetOldPetSpell() const { return m_oldpetspell; }
void SetOldPetSpell(uint32 petspell) { m_oldpetspell = petspell; }
-
+
/*********************************************************/
/*** INSTANCE SYSTEM ***/
/*********************************************************/
diff --git a/src/game/PointMovementGenerator.cpp b/src/game/PointMovementGenerator.cpp
index bb37d7b9479..a4795974e96 100644
--- a/src/game/PointMovementGenerator.cpp
+++ b/src/game/PointMovementGenerator.cpp
@@ -32,7 +32,7 @@ void PointMovementGenerator::Initialize(T &unit)
unit.StopMoving();
Traveller traveller(unit);
i_destinationHolder.SetDestination(traveller,i_x,i_y,i_z);
-
+
if (unit.GetTypeId() == TYPEID_UNIT && ((Creature*)&unit)->canFly())
unit.AddUnitMovementFlag(MOVEMENTFLAG_FLYING2);
}
diff --git a/src/game/RandomMovementGenerator.cpp b/src/game/RandomMovementGenerator.cpp
index db4f6bf5b42..615a8721fa8 100644
--- a/src/game/RandomMovementGenerator.cpp
+++ b/src/game/RandomMovementGenerator.cpp
@@ -30,13 +30,13 @@
#define RUNNING_CHANCE_RANDOMMV 20 //will be "1 / RUNNING_CHANCE_RANDOMMV"
template<>
-bool
+bool
RandomMovementGenerator::GetDestination(float &x, float &y, float &z) const
{
if(i_destinationHolder.HasArrived())
- return false;
-
- i_destinationHolder.GetDestination(x, y, z);
+ return false;
+
+ i_destinationHolder.GetDestination(x, y, z);
return true;
}
@@ -65,7 +65,7 @@ RandomMovementGenerator::_setRandomLocation(Creature &creature)
nx = X + distanceX;
ny = Y + distanceY;
- // prevent invalid coordinates generation
+ // prevent invalid coordinates generation
Trinity::NormalizeMapCoord(nx);
Trinity::NormalizeMapCoord(ny);
@@ -122,9 +122,9 @@ RandomMovementGenerator::Initialize(Creature &creature)
{
if(!creature.isAlive())
return;
-
+
wander_distance = creature.GetRespawnRadius();
-
+
if (creature.canFly())
creature.AddUnitMovementFlag(MOVEMENTFLAG_FLYING2);
else
diff --git a/src/game/RandomMovementGenerator.h b/src/game/RandomMovementGenerator.h
index a88b227d17f..dcc03dfa721 100644
--- a/src/game/RandomMovementGenerator.h
+++ b/src/game/RandomMovementGenerator.h
@@ -32,7 +32,7 @@ class TRINITY_DLL_SPEC RandomMovementGenerator
public:
// Wander dist is related on db spawn dist. So what if we wanna set eandom movement on summoned creature?!
RandomMovementGenerator(float spawn_dist = 0.0f) : i_nextMoveTime(0), wander_distance(spawn_dist) {}
-
+
void _setRandomLocation(T &);
void Initialize(T &);
void Finalize(T &);
diff --git a/src/game/SharedDefines.h b/src/game/SharedDefines.h
index 03149d078ab..fb080edcab7 100644
--- a/src/game/SharedDefines.h
+++ b/src/game/SharedDefines.h
@@ -811,7 +811,7 @@ enum Targets
TARGET_TABLE_X_Y_Z_COORDINATES = 17, // uses in teleport spells and some other
//TARGET_DEST_TABLE
TARGET_EFFECT_SELECT = 18, // highly depends on the spell effect
- TARGET_DEST_CASTER_GROUND = 18,
+ TARGET_DEST_CASTER_GROUND = 18,
TARGET_ALL_PARTY_AROUND_CASTER = 20,
TARGET_UNIT_PARTY_CASTER = 20,
TARGET_SINGLE_FRIEND = 21,
@@ -874,7 +874,7 @@ enum Targets
TARGET_UNIT_AREA_SCRIPT = 60,
TARGET_AREAEFFECT_PARTY_AND_CLASS = 61,
TARGET_UNIT_CLASS_TARGET = 61,
- TARGET_TEST = 62, // for a test spell
+ TARGET_TEST = 62, // for a test spell
TARGET_DUELVSPLAYER_COORDINATES = 63,
TARGET_DEST_TARGET_ENEMY_UNKNOWN = 63,
TARGET_DEST_TARGET_FRONT = 64,
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 407e78dea7c..b641ee3fa78 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1123,7 +1123,7 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask)
return;
// Recheck immune (only for delayed spells)
- if( m_spellInfo->speed &&
+ if( m_spellInfo->speed &&
!(m_spellInfo->Attributes & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY)
&& (unit->IsImmunedToDamage(GetSpellSchoolMask(m_spellInfo),true) ||
unit->IsImmunedToSpell(m_spellInfo,true) ))
@@ -1231,7 +1231,7 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask)
{
if(m_customAttr & SPELL_ATTR_CU_EFFECT_HEAL)
m_originalCaster->ProcDamageAndSpell(unit, PROC_FLAG_HEAL, PROC_FLAG_NONE, 0, GetSpellSchoolMask(m_spellInfo), m_spellInfo);
- if(m_originalCaster != unit && (m_customAttr & SPELL_ATTR_CU_EFFECT_DAMAGE))
+ if(m_originalCaster != unit && (m_customAttr & SPELL_ATTR_CU_EFFECT_DAMAGE))
m_originalCaster->ProcDamageAndSpell(unit, PROC_FLAG_HIT_SPELL, PROC_FLAG_STRUCK_SPELL, 0, GetSpellSchoolMask(m_spellInfo), m_spellInfo);
}*/
}
@@ -1389,7 +1389,7 @@ void Spell::SearchChainTarget(std::list &TagUnitMap, float max_range, uin
if(cur->GetDistance(*next) > CHAIN_SPELL_JUMP_RADIUS)
break;
while(!cur->IsWithinLOSInMap(*next)
- || m_spellInfo->DmgClass==SPELL_DAMAGE_CLASS_MELEE
+ || m_spellInfo->DmgClass==SPELL_DAMAGE_CLASS_MELEE
&& !m_caster->isInFront(*next, max_range))
{
++next;
@@ -1399,7 +1399,7 @@ void Spell::SearchChainTarget(std::list &TagUnitMap, float max_range, uin
}
cur = *next;
- tempUnitMap.erase(next);
+ tempUnitMap.erase(next);
}
}
@@ -1437,7 +1437,7 @@ void Spell::SearchAreaTarget(std::list &TagUnitMap, float radius, const u
}
Trinity::SpellNotifierCreatureAndPlayer notifier(*this, TagUnitMap, radius, type, TargetType, entry, x, y, z);
- if((m_spellInfo->AttributesEx3 & SPELL_ATTR_EX3_PLAYERS_ONLY)
+ if((m_spellInfo->AttributesEx3 & SPELL_ATTR_EX3_PLAYERS_ONLY)
|| TargetType == SPELL_TARGETS_ENTRY && !entry)
m_caster->GetMap()->VisitWorld(x, y, radius, notifier);
else
@@ -1992,7 +1992,7 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list &TagUnitMap)
if(m_targets.getUnitTarget())
{
TagUnitMap.remove(m_targets.getUnitTarget());
- if(m_spellInfo->Id != 5246) //Intimidating Shout
+ if(m_spellInfo->Id != 5246) //Intimidating Shout
--unMaxTargets;
}
@@ -2017,7 +2017,7 @@ void Spell::prepare(SpellCastTargets * targets, Aura* triggeredByAura)
m_castItemGUID = m_CastItem->GetGUID();
else
m_castItemGUID = 0;
-
+
m_targets = *targets;
m_spellState = SPELL_STATE_PREPARING;
@@ -2092,7 +2092,7 @@ void Spell::prepare(SpellCastTargets * targets, Aura* triggeredByAura)
if(isSpellBreakStealth(m_spellInfo) )
m_caster->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_CAST);
- if(!m_casttime && !m_spellInfo->StartRecoveryTime
+ if(!m_casttime && !m_spellInfo->StartRecoveryTime
&& !m_castItemGUID //item: first cast may destroy item and second cast causes crash
&& GetCurrentContainer() == CURRENT_GENERIC_SPELL)
cast(true);
@@ -2147,14 +2147,14 @@ void Spell::cancel(bool report)
// Unsummon summon as possessed creatures on spell cancel
for (int i = 0; i < 3; i++)
{
- if (m_spellInfo->Effect[i] == SPELL_EFFECT_SUMMON &&
- (m_spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED ||
- m_spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED2 ||
+ if (m_spellInfo->Effect[i] == SPELL_EFFECT_SUMMON &&
+ (m_spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED ||
+ m_spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED2 ||
m_spellInfo->EffectMiscValueB[i] == SUMMON_TYPE_POSESSED3))
{
// Possession is removed in the UnSummon function
if (m_caster->GetCharm())
- ((TemporarySummon*)m_caster->GetCharm())->UnSummon();
+ ((TemporarySummon*)m_caster->GetCharm())->UnSummon();
}
}
@@ -3462,7 +3462,7 @@ uint8 Spell::CanCast(bool strict)
}
//Must be behind the target.
- if( m_spellInfo->AttributesEx2 == 0x100000 && (m_spellInfo->AttributesEx & 0x200) == 0x200 && target->HasInArc(M_PI, m_caster)
+ if( m_spellInfo->AttributesEx2 == 0x100000 && (m_spellInfo->AttributesEx & 0x200) == 0x200 && target->HasInArc(M_PI, m_caster)
&& (m_spellInfo->SpellFamilyName != SPELLFAMILY_DRUID || m_spellInfo->SpellFamilyFlags != 0x0000000000020000LL))
{
SendInterrupted(2);
@@ -5423,7 +5423,7 @@ int32 Spell::CalculateDamageDone(Unit *unit, const uint32 effectMask, float *mul
m_damage *= m_damageMultipliers[i];
m_damageMultipliers[i] *= multiplier[i];
}
-
+
damageDone += m_damage;
}
}
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index cd9e41f2c5e..23d334008ed 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -344,7 +344,7 @@ m_periodicTimer(0), m_PeriodicEventId(0), m_AuraDRGroup(DIMINISHING_NONE)
damage = caster->CalculateSpellDamage(m_spellProto, m_effIndex, m_currentBasePoints, target);
else
damage = m_currentBasePoints + 1;
- }
+ }
m_isPassive = IsPassiveSpell(GetId());
m_positive = IsPositiveEffect(GetId(), m_effIndex);
@@ -616,7 +616,7 @@ void AreaAura::Update(uint32 diff)
switch(m_areaAuraType)
{
case AREA_AURA_PARTY:
- caster->GetPartyMember(targets, m_radius);
+ caster->GetPartyMember(targets, m_radius);
break;
case AREA_AURA_FRIEND:
{
@@ -878,7 +878,7 @@ void Aura::_AddAura()
SetAuraFlag(slot, true);
SetAuraLevel(slot,caster ? caster->getLevel() : sWorld.getConfig(CONFIG_MAX_PLAYER_LEVEL));
UpdateAuraCharges();
-
+
// update for out of range group members
m_target->UpdateAuraForGroup(slot);
}
@@ -887,7 +887,7 @@ void Aura::_AddAura()
{
SetAuraSlot( slot );
}
-
+
UpdateSlotCounterAndDuration();
// Update Seals information
@@ -1270,7 +1270,7 @@ void Aura::TriggerSpell()
// // Five Fat Finger Exploding Heart Technique
// case 27673: break;
// Nitrous Boost
- case 27746:
+ case 27746:
{
if (caster->GetPower(POWER_MANA) >= 10)
{
@@ -1578,7 +1578,7 @@ void Aura::TriggerSpell()
(*i)->ApplyModifier(true);
break;
}
- }
+ }
}break;
// // Dementia
// case 41404: break;
@@ -2180,7 +2180,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
if (totem && totem->isTotem())
totem->AddPlayerToVision((Player*)caster);
}
- }
+ }
else
((Player*)caster)->RemoveFarsightTarget();
return;
@@ -2909,7 +2909,7 @@ void Aura::HandleModCharm(bool apply, bool Real)
{
if(int32(m_target->getLevel()) > m_modifier.m_amount)
return;
-
+
m_target->SetCharmedOrPossessedBy(caster, false);
}
else
@@ -3606,7 +3606,7 @@ void Aura::HandleAuraModSchoolImmunity(bool apply, bool Real)
{
if(apply && m_modifier.m_miscvalue == SPELL_SCHOOL_MASK_NORMAL)
m_target->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_UNATTACKABLE);
-
+
m_target->ApplySpellImmune(GetId(),IMMUNITY_SCHOOL,m_modifier.m_miscvalue,apply);
if(Real && apply && GetSpellProto()->AttributesEx & SPELL_ATTR_EX_DISPEL_AURAS_ON_IMMUNITY)
@@ -5288,7 +5288,7 @@ void Aura::PeriodicTick()
break;
}
case 41337:// aura of anger
- {
+ {
Unit::AuraList const& mMod = m_target->GetAurasByType(SPELL_AURA_MOD_DAMAGE_PERCENT_DONE);
for(Unit::AuraList::const_iterator i = mMod.begin(); i != mMod.end(); ++i)
{
@@ -5299,7 +5299,7 @@ void Aura::PeriodicTick()
(*i)->ApplyModifier(true);
break;
}
- }
+ }
m_modifier.m_amount += 100;
}break;
default:
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 438b9cd2290..c03ab7573e6 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -630,7 +630,7 @@ void Spell::EffectDummy(uint32 i)
if (!creatureTarget || !pGameObj) return;
if (!pGameObj->Create(objmgr.GenerateLowGuid(HIGHGUID_GAMEOBJECT), 181574, creatureTarget->GetMap(),
- creatureTarget->GetPositionX(), creatureTarget->GetPositionY(), creatureTarget->GetPositionZ(),
+ creatureTarget->GetPositionX(), creatureTarget->GetPositionY(), creatureTarget->GetPositionZ(),
creatureTarget->GetOrientation(), 0, 0, 0, 0, 100, 1))
{
delete pGameObj;
@@ -955,7 +955,7 @@ void Spell::EffectDummy(uint32 i)
{
Aura * dummy = m_caster->GetDummyAura(28734);
if (dummy)
- {
+ {
int32 bp = damage * dummy->GetStackAmount();
m_caster->CastCustomSpell(m_caster, 28733, &bp, NULL, NULL, true);
m_caster->RemoveAurasDueToSpell(28734);
@@ -3517,7 +3517,7 @@ void Spell::EffectAddFarsight(uint32 i)
map->Add(dynObj);
map->SwitchGridContainers(dynObj, true); // Needed for forwarding player packets
dynObj->setActive(true); // Keep the grid updated even if there are no players in it
-
+
// Need to update visibility of object for client to accept farsight guid
((Player*)m_caster)->UpdateVisibilityOf(dynObj);
((Player*)m_caster)->SetFarsightTarget(dynObj);
@@ -3600,7 +3600,7 @@ void Spell::EffectSummonGuardian(uint32 i)
}
// trigger
- if(!m_originalCaster || m_originalCaster->GetTypeId() != TYPEID_PLAYER
+ if(!m_originalCaster || m_originalCaster->GetTypeId() != TYPEID_PLAYER
&& !((Creature*)m_originalCaster)->isTotem()/*m_spellInfo->Id == 40276*/)
{
EffectSummonWild(i);
@@ -4437,7 +4437,7 @@ void Spell::SpellDamageWeaponDmg(uint32 i)
if(spell_bonus)
spell_bonus = int32(spell_bonus * weapon_total_pct);
}
-
+
int32 weaponDamage = m_caster->CalculateDamage(m_attackType, normalized);
// Sequence is important
@@ -4835,7 +4835,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
{
if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
- unitTarget->HandleEmoteCommand(EMOTE_STATE_DANCE);
+ unitTarget->HandleEmoteCommand(EMOTE_STATE_DANCE);
break;
}
// Netherbloom
@@ -4962,7 +4962,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
int bag=19;
int slot=0;
Item* item = NULL;
-
+
while (bag < 256)
{
item = ((Player*)m_caster)->GetItemByPos(bag,slot);
diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp
index 9b77e19b30b..edf41e16492 100644
--- a/src/game/SpellHandler.cpp
+++ b/src/game/SpellHandler.cpp
@@ -383,7 +383,7 @@ void WorldSession::HandleCancelAuraOpcode( WorldPacket& recvPacket)
}
}
-
+
// channeled spell case (it currently casted then)
if(IsChanneledSpell(spellInfo))
{
diff --git a/src/game/TargetedMovementGenerator.cpp b/src/game/TargetedMovementGenerator.cpp
index 9793a81cf14..88558861257 100644
--- a/src/game/TargetedMovementGenerator.cpp
+++ b/src/game/TargetedMovementGenerator.cpp
@@ -59,7 +59,7 @@ TargetedMovementGenerator::_setTargetLocation(T &owner)
float x, y, z;
if(!i_offset)
{
- // to nearest random contact position
+ // to nearest random contact position
i_target->GetRandomContactPoint( &owner, x, y, z, 0, MELEE_RANGE - 0.5f );
}
else
@@ -101,7 +101,7 @@ TargetedMovementGenerator::Initialize(T &owner)
if (owner.GetTypeId() == TYPEID_UNIT && ((Creature*)&owner)->canFly())
owner.AddUnitMovementFlag(MOVEMENTFLAG_FLYING2);
-
+
_setTargetLocation(owner);
}
diff --git a/src/game/ThreatManager.cpp b/src/game/ThreatManager.cpp
index 0e902c05864..3b4491b943e 100644
--- a/src/game/ThreatManager.cpp
+++ b/src/game/ThreatManager.cpp
@@ -267,17 +267,17 @@ HostilReference* ThreatContainer::selectNextVictim(Creature* pAttacker, HostilRe
{
HostilReference* currentRef = NULL;
bool found = false;
-
+
std::list::iterator lastRef = iThreatList.end();
lastRef--;
-
+
for(std::list::iterator iter = iThreatList.begin(); iter != iThreatList.end() && !found; ++iter)
{
currentRef = (*iter);
Unit* target = currentRef->getTarget();
assert(target); // if the ref has status online the target must be there !
-
+
// some units are preferred in comparison to others
if(iter != lastRef && (target->IsImmunedToDamage(pAttacker->GetMeleeDamageSchoolMask(), false) ||
target->hasUnitState(UNIT_STAT_CONFUSED)
diff --git a/src/game/TicketHandler.cpp b/src/game/TicketHandler.cpp
index 71375beb5da..23a6331b20d 100644
--- a/src/game/TicketHandler.cpp
+++ b/src/game/TicketHandler.cpp
@@ -1,7 +1,7 @@
/*
- * Copyright (C) 2005-2008 MaNGOS
+ * Copyright (C) 2005-2008 MaNGOS
*
- * Copyright (C) 2008 Trinity
+ * Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -54,7 +54,7 @@ void WorldSession::HandleGMTicketCreateOpcode( WorldPacket & recv_data )
// get additional data, rarely used
recv_data >> ticketText2;
-
+
// assign values
ticket->name = GetPlayer()->GetName();
ticket->guid = ticketmgr.GenerateTicketID();
@@ -67,7 +67,7 @@ void WorldSession::HandleGMTicketCreateOpcode( WorldPacket & recv_data )
// remove ticket by player, shouldn't happen
ticketmgr.RemoveGMTicketByPlayer(GetPlayer()->GetGUID(), GetPlayer()->GetGUID());
-
+
// add ticket
ticketmgr.AddGMTicket(ticket, false);
@@ -76,15 +76,15 @@ void WorldSession::HandleGMTicketCreateOpcode( WorldPacket & recv_data )
// Send ticket creation
SendPacket(&data);
-
+
sWorld.SendGMText(LANG_COMMAND_TICKETNEW, ticket->name.c_str(), ticket->guid);
-
+
}
void WorldSession::HandleGMTicketUpdateOpcode( WorldPacket & recv_data)
{
// always do a packet check
- CHECK_PACKET_SIZE(recv_data,1);
+ CHECK_PACKET_SIZE(recv_data,1);
std::string message = "";
time_t t = time(NULL);
@@ -98,7 +98,7 @@ void WorldSession::HandleGMTicketUpdateOpcode( WorldPacket & recv_data)
GM_Ticket *ticket = ticketmgr.GetGMTicketByPlayer(GetPlayer()->GetGUID());
// Check if player has a GM Ticket yet
- if(!ticket)
+ if(!ticket)
{
// Response - error couldnt find existing Ticket
data << uint32(1);
@@ -133,7 +133,7 @@ void WorldSession::HandleGMTicketDeleteOpcode( WorldPacket & /*recv_data*/)
if(ticket)
{
// Remove Tickets from Player
-
+
// Response - no errors
WorldPacket data(SMSG_GMTICKET_DELETETICKET, 4);
data << uint32(9);
@@ -150,12 +150,12 @@ void WorldSession::HandleGMTicketGetTicketOpcode( WorldPacket & /*recv_data*/)
// NO recv_data NO packet size check
WorldPacket data(SMSG_GMTICKET_GETTICKET, 400);
-
+
// get Current Ticket
GM_Ticket *ticket = ticketmgr.GetGMTicketByPlayer(GetPlayer()->GetGUID());
// check for existing ticket
- if(!ticket)
+ if(!ticket)
{
data << uint32(10);
// send packet
@@ -183,8 +183,8 @@ void WorldSession::HandleGMTicketSystemStatusOpcode( WorldPacket & /*recv_data*/
// in case of disactivity, this should be set to (0)
data << uint32(1);
-
-
+
+
// Send Packet
SendPacket(&data);
}
diff --git a/src/game/TicketMgr.cpp b/src/game/TicketMgr.cpp
index 111e1ed27ad..571a872ac2b 100644
--- a/src/game/TicketMgr.cpp
+++ b/src/game/TicketMgr.cpp
@@ -1,7 +1,7 @@
/*
- * Copyright (C) 2005-2008 MaNGOS
+ * Copyright (C) 2005-2008 MaNGOS
*
- * Copyright (C) 2008 Trinity
+ * Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -63,7 +63,7 @@ GM_Ticket* TicketMgr::GetGMTicketByName(const char* name)
Player *plr = objmgr.GetPlayer(pname.c_str());
if(!plr)
return NULL;
-
+
uint64 playerGuid = plr->GetGUID();
for(GmTicketList::iterator i = GM_TicketList.begin(); i != GM_TicketList.end();)
@@ -184,7 +184,7 @@ void TicketMgr::SaveGMTicket(GM_Ticket* ticket)
CharacterDatabase.BeginTransaction();
CharacterDatabase.Execute(ss.str().c_str());
CharacterDatabase.CommitTransaction();
-
+
}
void TicketMgr::UpdateGMTicket(GM_Ticket *ticket)
diff --git a/src/game/TicketMgr.h b/src/game/TicketMgr.h
index cf050303e39..ea5f997f3cc 100644
--- a/src/game/TicketMgr.h
+++ b/src/game/TicketMgr.h
@@ -1,7 +1,7 @@
/*
- * Copyright (C) 2005-2008 MaNGOS
+ * Copyright (C) 2005-2008 MaNGOS
*
- * Copyright (C) 2008 Trinity
+ * Copyright (C) 2008 Trinity
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -59,13 +59,13 @@ class TicketMgr
void RemoveGMTicket(uint64 ticketGuid, uint64 GMguid);
void UpdateGMTicket(GM_Ticket *ticket);
void SaveGMTicket(GM_Ticket* ticket);
-
+
uint64 GenerateTicketID();
void InitTicketID();
GM_Ticket* GetGMTicket(uint64 ticketGuid);
GM_Ticket* GetGMTicketByPlayer(uint64 playerGuid);
GM_Ticket* GetGMTicketByName(const char *name);
-
+
protected:
uint64 m_ticketid;
diff --git a/src/game/Totem.h b/src/game/Totem.h
index 717499ff850..43ae4f4912c 100644
--- a/src/game/Totem.h
+++ b/src/game/Totem.h
@@ -56,7 +56,7 @@ class Totem : public Creature
void UpdateMaxPower(Powers /*power*/) {}
void UpdateAttackPowerAndDamage(bool /*ranged*/ ) {}
void UpdateDamagePhysical(WeaponAttackType /*attType*/) {}
-
+
bool IsImmunedToSpell(SpellEntry const* spellInfo, bool useCharges = false);
protected:
diff --git a/src/game/Transports.cpp b/src/game/Transports.cpp
index cccf50ad0fb..42130a6d0de 100644
--- a/src/game/Transports.cpp
+++ b/src/game/Transports.cpp
@@ -556,7 +556,7 @@ void Transport::Update(uint32 /*p_time*/)
if ((sLog.getLogFilter() & LOG_FILTER_TRANSPORT_MOVES)==0)
sLog.outDetail("%s moved to %f %f %f %d", this->m_name.c_str(), m_curr->second.x, m_curr->second.y, m_curr->second.z, m_curr->second.mapid);
-
+
//Transport Event System
CheckForEvent(this->GetEntry(), m_curr->second.id);
sLog.outDetail("%s is at wp id: %u", this->m_name.c_str(), m_curr->second.id);
diff --git a/src/game/Traveller.h b/src/game/Traveller.h
index 0ac136ff677..8d7dda0e055 100644
--- a/src/game/Traveller.h
+++ b/src/game/Traveller.h
@@ -83,7 +83,7 @@ inline void Traveller::MoveTo(float x, float y, float z, uint32 t)
if(i_traveller.IsFormationLeader() && !i_traveller.isInCombat() &&
CreatureGroupHolder.find(i_traveller.GetFormationID()) != CreatureGroupHolder.end())
CreatureGroupHolder[i_traveller.GetFormationID()]->LeaderMovedInEvade();
-
+
i_traveller.AI_SendMoveToPacket(x, y, z, t, i_traveller.GetUnitMovementFlags(), 0);
}
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index d46b4180b64..89eeeb782ad 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -534,7 +534,7 @@ void Unit::RemoveAurasWithInterruptFlags(uint32 flag, uint32 except)
// interrupt channeled spell
if(Spell* spell = m_currentSpells[CURRENT_CHANNELED_SPELL])
- if(spell->getState() == SPELL_STATE_CASTING
+ if(spell->getState() == SPELL_STATE_CASTING
&& (spell->m_spellInfo->ChannelInterruptFlags & flag)
&& spell->m_spellInfo->Id != except)
InterruptNonMeleeSpells(false);
@@ -602,7 +602,7 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
if( pVictim->GetTypeId()== TYPEID_UNIT && ((Creature *)pVictim)->AI() )
{
((Creature *)pVictim)->AI()->DamageTaken(this, damage);
-
+
// Set tagging
if(!pVictim->HasFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_OTHER_TAGGER) && !((Creature*)pVictim)->isPet())
{
@@ -620,14 +620,14 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
{
if(((Creature*)this)->isPet())
{
- ((Creature *)pVictim)->SetLootRecipient(this->GetOwner());
+ ((Creature *)pVictim)->SetLootRecipient(this->GetOwner());
((Creature *)pVictim)->SetFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_OTHER_TAGGER);
}
break;
}
}
}
- }
+ }
if (damagetype != NODAMAGE)
{
@@ -4508,7 +4508,7 @@ void Unit::RemoveSingleAuraFromStackByDispel(uint32 spellId)
iter->second->ApplyModifier(false,true);
iter->second->SetStackAmount(iter->second->GetStackAmount()-1);
iter->second->ApplyModifier(true,true);
-
+
iter->second->UpdateSlotCounterAndDuration();
return; // not remove aura if stack amount > 1
}
@@ -4668,7 +4668,7 @@ void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode)
statue = ((Totem*)caster);
// stop caster chanelling state
- else if(caster->m_currentSpells[CURRENT_CHANNELED_SPELL]
+ else if(caster->m_currentSpells[CURRENT_CHANNELED_SPELL]
//prevent recurential call
&& caster->m_currentSpells[CURRENT_CHANNELED_SPELL]->getState() != SPELL_STATE_FINISHED)
{
@@ -4676,7 +4676,7 @@ void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode)
{
// remove auras only for non-aoe spells or when chanelled aura is removed
// because aoe spells don't require aura on target to continue
- if (AurSpellInfo->EffectApplyAuraName[Aur->GetEffIndex()]!=SPELL_AURA_PERIODIC_DUMMY
+ if (AurSpellInfo->EffectApplyAuraName[Aur->GetEffIndex()]!=SPELL_AURA_PERIODIC_DUMMY
&& AurSpellInfo->EffectApplyAuraName[Aur->GetEffIndex()]!= SPELL_AURA_DUMMY)
//don't stop channeling of scripted spells (this is actually a hack)
{
@@ -4691,9 +4691,9 @@ void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode)
sLog.outDebug("Aura %u (%u) now is remove mode %d", Aur->GetId(), Aur->GetModifier()->m_auraname, mode);
assert(!Aur->IsInUse());
Aur->ApplyModifier(false,true);
-
+
Aur->SetStackAmount(0);
-
+
Aur->_RemoveAura();
if(mode != AURA_REMOVE_BY_STACK)
@@ -8437,8 +8437,8 @@ void Unit::SetCharm(Unit* pet)
SetUInt64Value(UNIT_FIELD_CHARM, pet ? pet->GetGUID() : 0);
}
-void Unit::AddPlayerToVision(Player* plr)
-{
+void Unit::AddPlayerToVision(Player* plr)
+{
if (m_sharedVision.empty() && GetTypeId() == TYPEID_UNIT)
{
setActive(true);
@@ -8448,9 +8448,9 @@ void Unit::AddPlayerToVision(Player* plr)
plr->SetFarsightTarget(this);
}
-void Unit::RemovePlayerFromVision(Player* plr)
-{
- m_sharedVision.remove(plr);
+void Unit::RemovePlayerFromVision(Player* plr)
+{
+ m_sharedVision.remove(plr);
if (m_sharedVision.empty() && GetTypeId() == TYPEID_UNIT)
{
setActive(false);
@@ -8910,7 +8910,7 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
CoefficientPtc /= 100.0f;
//float DoneActualBenefit = DoneAdvertisedBenefit * (CastingTime / 3500.0f) * DotFactor * SpellModSpellDamage * LvlPenalty;
-
+
float DoneActualBenefit = DoneAdvertisedBenefit * CoefficientPtc * LvlPenalty;
float TakenActualBenefit = TakenAdvertisedBenefit * DotFactor * LvlPenalty;
if(spellProto->SpellFamilyName && spellProto->SchoolMask != SPELL_SCHOOL_MASK_NORMAL)
@@ -9224,7 +9224,7 @@ uint32 Unit::SpellHealingBonus(SpellEntry const *spellProto, uint32 healamount,
CastingTime = damagetype == DOT ? 3500 : 1010;
}
// Improved Leader of the Pack
- else if (spellProto->AttributesEx2 == 536870912 && spellProto->SpellIconID == 312
+ else if (spellProto->AttributesEx2 == 536870912 && spellProto->SpellIconID == 312
&& spellProto->AttributesEx3 == 33554432)
{
CastingTime = 0;
@@ -9864,7 +9864,7 @@ bool Unit::isAttackableByAOE() const
if(!isAlive())
return false;
- if(HasFlag(UNIT_FIELD_FLAGS,
+ if(HasFlag(UNIT_FIELD_FLAGS,
UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NOT_ATTACKABLE_2))
return false;
@@ -10479,7 +10479,7 @@ Unit* Creature::SelectVictim()
AI()->EnterEvadeMode();
break;
}
- return NULL;
+ return NULL;
}
// enter in evade mode in other case
@@ -13028,7 +13028,7 @@ void Unit::SetCharmedOrPossessedBy(Unit* charmer, bool possess)
}
}
- if(possess)
+ if(possess)
((Player*)charmer)->PossessSpellInitialize();
else if(charmer->GetTypeId() == TYPEID_PLAYER)
((Player*)charmer)->CharmSpellInitialize();
@@ -13084,7 +13084,7 @@ void Unit::RemoveCharmedOrPossessedBy(Unit *charmer)
return;
assert(!possess || charmer->GetTypeId() == TYPEID_PLAYER);
-
+
charmer->SetCharm(0);
if(possess)
{
@@ -13187,7 +13187,7 @@ void Unit::GetRaidMember(std::list &nearMembers, float radius)
Player* Target = itr->getSource();
// IsHostileTo check duel and controlled by enemy
- if( Target && Target != this && Target->isAlive()
+ if( Target && Target != this && Target->isAlive()
&& IsWithinDistInMap(Target, radius) && !IsHostileTo(Target) )
nearMembers.push_back(Target);
}
diff --git a/src/game/Unit.h b/src/game/Unit.h
index af670b80208..4edbd4eb2ac 100644
--- a/src/game/Unit.h
+++ b/src/game/Unit.h
@@ -1018,7 +1018,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
void DeMorph();
- void SendAttackStart(Unit* pVictim);
+ void SendAttackStart(Unit* pVictim);
void SendAttackStateUpdate(CalcDamageInfo *damageInfo);
void SendAttackStateUpdate(uint32 HitInfo, Unit *target, uint8 SwingType, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount);
void SendSpellNonMeleeDamageLog(SpellNonMeleeDamage *log);
diff --git a/src/game/WaypointManager.cpp b/src/game/WaypointManager.cpp
index fc0ca9e8007..b5a83422ef5 100644
--- a/src/game/WaypointManager.cpp
+++ b/src/game/WaypointManager.cpp
@@ -57,17 +57,17 @@ void WaypointStore::Load()
barGoLink bar( total_records);
Field *fields;
uint32 last_id = 0;
-
+
do
{
fields = result->Fetch();
uint32 id = fields[0].GetUInt32();
bar.step();
WaypointData *wp = new WaypointData;
-
+
if(last_id != id)
path_data = new WaypointPath;
-
+
float x,y,z;
x = fields[2].GetFloat();
y = fields[3].GetFloat();
@@ -84,12 +84,12 @@ void WaypointStore::Load()
wp->delay = fields[6].GetUInt32();
wp->event_id = fields[7].GetUInt32();
wp->event_chance = fields[8].GetUInt8();
-
+
path_data->push_back(wp);
-
- if(id != last_id)
+
+ if(id != last_id)
waypoint_map[id] = path_data;
-
+
last_id = id;
} while(result->NextRow()) ;
@@ -100,28 +100,28 @@ void WaypointStore::Load()
void WaypointStore::UpdatePath(uint32 id)
{
-
+
if(waypoint_map.find(id)!= waypoint_map.end())
waypoint_map[id]->clear();
-
+
QueryResult *result;
result = WorldDatabase.PQuery("SELECT `id`,`point`,`position_x`,`position_y`,`position_z`,`move_flag`,`delay`,`action`,`action_chance` FROM `waypoint_data` WHERE id = %u ORDER BY `point`", id);
-
+
if(!result)
return;
-
+
WaypointPath* path_data;
-
+
path_data = new WaypointPath;
-
+
Field *fields;
-
+
do
{
fields = result->Fetch();
uint32 id = fields[0].GetUInt32();
-
+
WaypointData *wp = new WaypointData;
float x,y,z;
@@ -140,11 +140,11 @@ void WaypointStore::UpdatePath(uint32 id)
wp->delay = fields[6].GetUInt32();
wp->event_id = fields[7].GetUInt32();
wp->event_chance = fields[8].GetUInt8();
-
+
path_data->push_back(wp);
}while (result->NextRow());
-
+
waypoint_map[id] = path_data;
delete result;
diff --git a/src/game/WaypointManager.h b/src/game/WaypointManager.h
index ec6d46c3b31..023fa590961 100644
--- a/src/game/WaypointManager.h
+++ b/src/game/WaypointManager.h
@@ -40,19 +40,19 @@ class WaypointStore
{
private :
uint32 records;
-
+
public:
void UpdatePath(uint32 id);
void Load();
void Free();
-
+
WaypointPath* GetPath(uint32 id)
{
if(waypoint_map.find(id) != waypoint_map.end())
return waypoint_map[id];
else return 0;
}
-
+
inline uint32 GetRecordsCount() { return records; }
};
diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp
index b44c44aaff7..a817c75bff1 100644
--- a/src/game/WaypointMovementGenerator.cpp
+++ b/src/game/WaypointMovementGenerator.cpp
@@ -53,14 +53,14 @@ template<>
bool WaypointMovementGenerator::GetDestination(float &x, float &y, float &z) const
{
if(i_destinationHolder.HasArrived())
- return false;
-
- i_destinationHolder.GetDestination(x, y, z);
+ return false;
+
+ i_destinationHolder.GetDestination(x, y, z);
return true;
}
template<>
-bool WaypointMovementGenerator::GetDestination(float &x, float &y, float &z) const
+bool WaypointMovementGenerator::GetDestination(float &x, float &y, float &z) const
{
return false;
}
@@ -80,13 +80,13 @@ void WaypointMovementGenerator::InitTraveller(Creature &unit, const Wa
{
node.run ? unit.RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE):
unit.AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
-
+
unit.SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
unit.SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
-
+
if(unit.canFly())
unit.AddUnitMovementFlag(MOVEMENTFLAG_FLYING2);
-
+
unit.addUnitState(UNIT_STAT_ROAMING);
}
@@ -133,7 +133,7 @@ WaypointMovementGenerator::Update(Creature &unit, const uint32 &diff)
if(!path_id)
return false;
-
+
// Waypoint movement can be switched on/off
// This is quite handy for escort quests and other stuff
if(unit.hasUnitState(UNIT_STAT_ROOT | UNIT_STAT_STUNNED | UNIT_STAT_DISTRACTED))
@@ -161,7 +161,7 @@ WaypointMovementGenerator::Update(Creature &unit, const uint32 &diff)
StopedByPlayer = false;
return true;
}
-
+
if(i_currentNode == waypoints->size() - 1) //If that's our last waypoint
{
if(repeating) //If the movement is repeating
@@ -173,7 +173,7 @@ WaypointMovementGenerator::Update(Creature &unit, const uint32 &diff)
return false; //Clear the waypoint movement
}
}
- else
+ else
i_currentNode++;
node = waypoints->at(i_currentNode);
@@ -183,20 +183,20 @@ WaypointMovementGenerator::Update(Creature &unit, const uint32 &diff)
}
else
{
- //Determine waittime
+ //Determine waittime
if(node->delay)
i_nextMoveTime.Reset(node->delay);
-
+
if(node->event_id && rand()%100 < node->event_chance)
sWorld.ScriptsStart(sWaypointScripts, node->event_id, &unit, NULL);
-
+
MovementInform(unit);
unit.UpdateWaypointID(i_currentNode);
unit.clearUnitState(UNIT_STAT_MOVING);
unit.Relocate(node->x, node->y, node->z);
}
}
- else
+ else
{
if(unit.IsStopped() && !i_destinationHolder.HasArrived())
{
diff --git a/src/game/WaypointMovementGenerator.h b/src/game/WaypointMovementGenerator.h
index e9c806a4f7d..7f8ce929ade 100644
--- a/src/game/WaypointMovementGenerator.h
+++ b/src/game/WaypointMovementGenerator.h
@@ -53,7 +53,7 @@ class TRINITY_DLL_SPEC PathMovementBase
void LoadPath(T &);
void ReloadPath(T &);
uint32 GetCurrentNode() const { return i_currentNode; }
-
+
protected:
uint32 i_currentNode;
DestinationHolder< Traveller > i_destinationHolder;
@@ -66,9 +66,9 @@ class TRINITY_DLL_SPEC WaypointMovementGenerator
: public MovementGeneratorMedium< T, WaypointMovementGenerator >, public PathMovementBase
{
public:
- WaypointMovementGenerator(uint32 _path_id = 0, bool _repeating = true) :
+ WaypointMovementGenerator(uint32 _path_id = 0, bool _repeating = true) :
i_nextMoveTime(0), path_id(_path_id), repeating(_repeating), StopedByPlayer(false), node(NULL) {}
-
+
void Initialize(T &);
void Finalize(T &);
void MovementInform(T &);
diff --git a/src/game/World.cpp b/src/game/World.cpp
index e84894bdb27..95acb99fef7 100644
--- a/src/game/World.cpp
+++ b/src/game/World.cpp
@@ -402,7 +402,7 @@ void World::LoadConfigSettings(bool reload)
sLog.outError("World settings reload fail: can't read settings from %s.",sConfig.GetFilename().c_str());
return;
}
- //TODO Check if config is outdated
+ //TODO Check if config is outdated
}
///- Read the player limit and the Message of the day from the config file
@@ -1361,7 +1361,7 @@ void World::SetInitialWorldSettings()
//Not sure if this can be moved up in the sequence (with static data loading) as it uses MapManager
sLog.outString( "Loading Transports..." );
MapManager::Instance().LoadTransports();
-
+
sLog.outString( "Loading Transports Events..." );
objmgr.LoadTransportEvents();
@@ -1752,7 +1752,7 @@ void World::ScriptsProcess()
for (MapManager::TransportSet::iterator iter = MapManager::Instance().m_Transports.begin(); iter != MapManager::Instance().m_Transports.end(); ++iter)
{
if((*iter)->GetGUID() == step.sourceGUID)
- {
+ {
source = reinterpret_cast(*iter);
break;
}
@@ -2299,7 +2299,7 @@ void World::ScriptsProcess()
break;
}
-
+
case SCRIPT_COMMAND_LOAD_PATH:
{
if(!source)
@@ -2312,18 +2312,18 @@ void World::ScriptsProcess()
{
sLog.outError("SCRIPT_COMMAND_START_MOVE source mover isn't unit (TypeId: %u), skipping.",source->GetTypeId());
break;
- }
-
+ }
+
if(!WaypointMgr.GetPath(step.script->datalong))
{
sLog.outError("SCRIPT_COMMAND_START_MOVE source mover has an invallid path, skipping.", step.script->datalong2);
break;
}
-
+
dynamic_cast(source)->GetMotionMaster()->MovePath(step.script->datalong, step.script->datalong2);
break;
}
-
+
case SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT:
{
if(!step.script->datalong || !step.script->datalong2)
@@ -2333,17 +2333,17 @@ void World::ScriptsProcess()
}
//our target
Creature* target = NULL;
-
+
if(source) //using grid searcher
{
CellPair p(Trinity::ComputeCellPair(((Unit*)source)->GetPositionX(), ((Unit*)source)->GetPositionY()));
Cell cell(p);
cell.data.Part.reserved = ALL_DISTRICT;
-
+
//sLog.outDebug("Attempting to find Creature: Db GUID: %i", step.script->datalong);
Trinity::CreatureWithDbGUIDCheck target_check(((Unit*)source), step.script->datalong);
Trinity::CreatureSearcher checker(target,target_check);
-
+
TypeContainerVisitor, GridTypeMapContainer > unit_checker(checker);
CellLock cell_lock(cell, p);
cell_lock->Visit(cell_lock, unit_checker, *(((Unit*)source)->GetMap()));
@@ -2383,19 +2383,19 @@ void World::ScriptsProcess()
sLog.outError("SCRIPT_COMMAND_CALLSCRIPT ERROR: no scriptmap present... ignoring");
break;
}
- //if no scriptmap present...
+ //if no scriptmap present...
if(!datamap)
break;
-
+
uint32 script_id = step.script->datalong2;
//delete iter and return it to begin pos(next one)
m_scriptSchedule.erase(iter);
iter = m_scriptSchedule.begin();
-
+
ScriptsStart(*datamap, script_id, target, NULL);
return;
}
-
+
case SCRIPT_COMMAND_PLAYSOUND:
{
if(!source)
diff --git a/src/game/WorldSession.h b/src/game/WorldSession.h
index af4c059f5ee..bd692d5d9a7 100644
--- a/src/game/WorldSession.h
+++ b/src/game/WorldSession.h
@@ -275,7 +275,7 @@ class TRINITY_DLL_SPEC WorldSession
void HandleGMTicketDeleteOpcode(WorldPacket& recvPacket);
void HandleGMTicketGetTicketOpcode(WorldPacket& recvPacket);
void HandleGMTicketSystemStatusOpcode(WorldPacket& recvPacket);
-
+
//void HandleGMSurveySubmit(WorldPacket& recvPacket);
void HandleTogglePvP(WorldPacket& recvPacket);
diff --git a/src/game/WorldSocket.cpp b/src/game/WorldSocket.cpp
index 2551f1d07da..c54a7aaf45a 100644
--- a/src/game/WorldSocket.cpp
+++ b/src/game/WorldSocket.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/game/WorldSocket.h b/src/game/WorldSocket.h
index 973cbb07cb0..fc564b6553a 100644
--- a/src/game/WorldSocket.h
+++ b/src/game/WorldSocket.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/game/WorldSocketMgr.h b/src/game/WorldSocketMgr.h
index b5e03e3c507..fc009d69f80 100644
--- a/src/game/WorldSocketMgr.h
+++ b/src/game/WorldSocketMgr.h
@@ -36,7 +36,7 @@ class ReactorRunnable;
class ACE_Event_Handler;
/// Manages all sockets connected to peers and network threads
-class WorldSocketMgr
+class WorldSocketMgr
{
public:
friend class WorldSocket;
@@ -44,32 +44,32 @@ public:
/// Start network, listen at address:port .
int StartNetwork (ACE_UINT16 port, const char* address);
-
+
/// Stops all network threads, It will wait for all running threads .
void StopNetwork ();
-
+
/// Wait untill all network threads have "joined" .
void Wait ();
-
+
/// Make this class singleton .
static WorldSocketMgr* Instance ();
-
+
private:
int OnSocketOpen(WorldSocket* sock);
-
+
int StartReactiveIO(ACE_UINT16 port, const char* address);
-
-private:
+
+private:
WorldSocketMgr ();
virtual ~WorldSocketMgr ();
-
+
ReactorRunnable* m_NetThreads;
size_t m_NetThreadsCount;
-
+
int m_SockOutKBuff;
int m_SockOutUBuff;
bool m_UseNoDelay;
-
+
ACE_Event_Handler* m_Acceptor;
};
diff --git a/src/shared/Auth/AuthCrypt.cpp b/src/shared/Auth/AuthCrypt.cpp
index 7941b33ed8c..d45c56817ba 100644
--- a/src/shared/Auth/AuthCrypt.cpp
+++ b/src/shared/Auth/AuthCrypt.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Auth/AuthCrypt.h b/src/shared/Auth/AuthCrypt.h
index f3a0cac40fa..b007e8c3d0e 100644
--- a/src/shared/Auth/AuthCrypt.h
+++ b/src/shared/Auth/AuthCrypt.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Auth/BigNumber.cpp b/src/shared/Auth/BigNumber.cpp
index b39fe3ad189..2baba88e9e0 100644
--- a/src/shared/Auth/BigNumber.cpp
+++ b/src/shared/Auth/BigNumber.cpp
@@ -175,7 +175,7 @@ uint8 *BigNumber::AsByteArray(int minSize)
// If we need more bytes than length of BigNumber set the rest to 0
if (length > GetNumBytes())
memset((void*)_array, 0, length);
-
+
BN_bn2bin(_bn, (unsigned char *)_array);
std::reverse(_array, _array + length);
diff --git a/src/shared/Auth/Hmac.cpp b/src/shared/Auth/Hmac.cpp
index 2294ade76a2..91c065d3640 100644
--- a/src/shared/Auth/Hmac.cpp
+++ b/src/shared/Auth/Hmac.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Auth/Hmac.h b/src/shared/Auth/Hmac.h
index 08d29cef962..1c19ec2238d 100644
--- a/src/shared/Auth/Hmac.h
+++ b/src/shared/Auth/Hmac.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Auth/Sha1.cpp b/src/shared/Auth/Sha1.cpp
index a50883ab785..73fcf90bfa8 100644
--- a/src/shared/Auth/Sha1.cpp
+++ b/src/shared/Auth/Sha1.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Auth/Sha1.h b/src/shared/Auth/Sha1.h
index 64e8eb64f95..d748dc6d747 100644
--- a/src/shared/Auth/Sha1.h
+++ b/src/shared/Auth/Sha1.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/ByteBuffer.h b/src/shared/ByteBuffer.h
index 9bdd6067fbc..3d0d19d9120 100644
--- a/src/shared/ByteBuffer.h
+++ b/src/shared/ByteBuffer.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/CMakeLists.txt b/src/shared/CMakeLists.txt
index 006fa284c5d..36d65544d3c 100644
--- a/src/shared/CMakeLists.txt
+++ b/src/shared/CMakeLists.txt
@@ -1,4 +1,3 @@
-
add_subdirectory(vmap)
add_subdirectory(Auth)
add_subdirectory(Config)
diff --git a/src/shared/Common.cpp b/src/shared/Common.cpp
index 5e24b0e6594..db039b93a82 100644
--- a/src/shared/Common.cpp
+++ b/src/shared/Common.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Common.h b/src/shared/Common.h
index 684776a694f..8bf60d9375e 100644
--- a/src/shared/Common.h
+++ b/src/shared/Common.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -25,9 +25,9 @@
// TODO this thingy looks like hack ,but its not, need to
// make separate header however, because It makes mess here.
#ifdef HAVE_CONFIG_H
-// Remove Some things that we will define
-// This is in case including another config.h
-// before trinity config.h
+// Remove Some things that we will define
+// This is in case including another config.h
+// before trinity config.h
#ifdef PACKAGE
#undef PACKAGE
#endif //PACKAGE
diff --git a/src/shared/Config/Config.cpp b/src/shared/Config/Config.cpp
index 1693e0d0cd4..1dacb55b670 100644
--- a/src/shared/Config/Config.cpp
+++ b/src/shared/Config/Config.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Config/Config.h b/src/shared/Config/Config.h
index 04026d084fb..7347d3ee7a1 100644
--- a/src/shared/Config/Config.h
+++ b/src/shared/Config/Config.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Config/ConfigEnv.h b/src/shared/Config/ConfigEnv.h
index 1b823ccf8c8..09877cbd296 100644
--- a/src/shared/Config/ConfigEnv.h
+++ b/src/shared/Config/ConfigEnv.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/DBCStructure.h b/src/shared/Database/DBCStructure.h
index 99d789f133f..f2dc8222a72 100644
--- a/src/shared/Database/DBCStructure.h
+++ b/src/shared/Database/DBCStructure.h
@@ -454,7 +454,7 @@ struct MapEntry
bool IsMountAllowed() const
{
- return !IsDungeon() ||
+ return !IsDungeon() ||
MapID==568 || MapID==309 || MapID==209 || MapID==534 ||
MapID==560 || MapID==509 || MapID==269;
}
diff --git a/src/shared/Database/Database.cpp b/src/shared/Database/Database.cpp
index 0b0c90dd335..4623deacbed 100644
--- a/src/shared/Database/Database.cpp
+++ b/src/shared/Database/Database.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/Database.h b/src/shared/Database/Database.h
index 30d7193801e..7e64fbebb55 100644
--- a/src/shared/Database/Database.h
+++ b/src/shared/Database/Database.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/DatabaseEnv.h b/src/shared/Database/DatabaseEnv.h
index d984a838c90..fe565cde7a6 100644
--- a/src/shared/Database/DatabaseEnv.h
+++ b/src/shared/Database/DatabaseEnv.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/DatabaseImpl.h b/src/shared/Database/DatabaseImpl.h
index 85ce1aa3ec1..244f52d0106 100644
--- a/src/shared/Database/DatabaseImpl.h
+++ b/src/shared/Database/DatabaseImpl.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/DatabaseMysql.cpp b/src/shared/Database/DatabaseMysql.cpp
index d11d29111be..0fae83caadf 100644
--- a/src/shared/Database/DatabaseMysql.cpp
+++ b/src/shared/Database/DatabaseMysql.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/DatabaseMysql.h b/src/shared/Database/DatabaseMysql.h
index 23d1e4c8ff3..ee800fdf22e 100644
--- a/src/shared/Database/DatabaseMysql.h
+++ b/src/shared/Database/DatabaseMysql.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/DatabasePostgre.cpp b/src/shared/Database/DatabasePostgre.cpp
index bf8f4611555..6a172bb12a0 100644
--- a/src/shared/Database/DatabasePostgre.cpp
+++ b/src/shared/Database/DatabasePostgre.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/DatabasePostgre.h b/src/shared/Database/DatabasePostgre.h
index f4f6c3882d4..7e541f84c73 100644
--- a/src/shared/Database/DatabasePostgre.h
+++ b/src/shared/Database/DatabasePostgre.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/DatabaseSqlite.cpp b/src/shared/Database/DatabaseSqlite.cpp
index 002eeec8463..9de786bf739 100644
--- a/src/shared/Database/DatabaseSqlite.cpp
+++ b/src/shared/Database/DatabaseSqlite.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/DatabaseSqlite.h b/src/shared/Database/DatabaseSqlite.h
index d3df683ed37..325c3168acb 100644
--- a/src/shared/Database/DatabaseSqlite.h
+++ b/src/shared/Database/DatabaseSqlite.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/Field.cpp b/src/shared/Database/Field.cpp
index 3ec30cdfb64..20a88395b7e 100644
--- a/src/shared/Database/Field.cpp
+++ b/src/shared/Database/Field.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/Field.h b/src/shared/Database/Field.h
index a81c61e8516..430e262c39e 100644
--- a/src/shared/Database/Field.h
+++ b/src/shared/Database/Field.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/MySQLDelayThread.h b/src/shared/Database/MySQLDelayThread.h
index 3058a5da59f..b01d88b6f72 100644
--- a/src/shared/Database/MySQLDelayThread.h
+++ b/src/shared/Database/MySQLDelayThread.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/PGSQLDelayThread.h b/src/shared/Database/PGSQLDelayThread.h
index a6c97ce85b4..0525fb9f6d6 100644
--- a/src/shared/Database/PGSQLDelayThread.h
+++ b/src/shared/Database/PGSQLDelayThread.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/QueryResult.h b/src/shared/Database/QueryResult.h
index 5c26b04a2c0..ab87fda59be 100644
--- a/src/shared/Database/QueryResult.h
+++ b/src/shared/Database/QueryResult.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/QueryResultMysql.cpp b/src/shared/Database/QueryResultMysql.cpp
index c42bbe5a754..63808060b9f 100644
--- a/src/shared/Database/QueryResultMysql.cpp
+++ b/src/shared/Database/QueryResultMysql.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/QueryResultMysql.h b/src/shared/Database/QueryResultMysql.h
index 8107f4fe0cb..79f5439ed06 100644
--- a/src/shared/Database/QueryResultMysql.h
+++ b/src/shared/Database/QueryResultMysql.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/QueryResultPostgre.cpp b/src/shared/Database/QueryResultPostgre.cpp
index f1536e4192e..8ebe03ede64 100644
--- a/src/shared/Database/QueryResultPostgre.cpp
+++ b/src/shared/Database/QueryResultPostgre.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/QueryResultPostgre.h b/src/shared/Database/QueryResultPostgre.h
index a63ca334390..ac7f31223ba 100644
--- a/src/shared/Database/QueryResultPostgre.h
+++ b/src/shared/Database/QueryResultPostgre.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/QueryResultSqlite.cpp b/src/shared/Database/QueryResultSqlite.cpp
index 78057e7887f..2bf64ed49ab 100644
--- a/src/shared/Database/QueryResultSqlite.cpp
+++ b/src/shared/Database/QueryResultSqlite.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/QueryResultSqlite.h b/src/shared/Database/QueryResultSqlite.h
index 5fc3b87c62a..1416ac426cc 100644
--- a/src/shared/Database/QueryResultSqlite.h
+++ b/src/shared/Database/QueryResultSqlite.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/SQLStorage.cpp b/src/shared/Database/SQLStorage.cpp
index 4845841b6d6..cd1c7908e46 100644
--- a/src/shared/Database/SQLStorage.cpp
+++ b/src/shared/Database/SQLStorage.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/SQLStorage.h b/src/shared/Database/SQLStorage.h
index 2d154f4e1ca..5a429d185cb 100644
--- a/src/shared/Database/SQLStorage.h
+++ b/src/shared/Database/SQLStorage.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/SqlDelayThread.cpp b/src/shared/Database/SqlDelayThread.cpp
index 08bb5520d11..a265b48e622 100644
--- a/src/shared/Database/SqlDelayThread.cpp
+++ b/src/shared/Database/SqlDelayThread.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/SqlDelayThread.h b/src/shared/Database/SqlDelayThread.h
index 707a3cab941..093c1c843d0 100644
--- a/src/shared/Database/SqlDelayThread.h
+++ b/src/shared/Database/SqlDelayThread.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/SqlOperations.cpp b/src/shared/Database/SqlOperations.cpp
index 42094229b17..1a81c4c96a1 100644
--- a/src/shared/Database/SqlOperations.cpp
+++ b/src/shared/Database/SqlOperations.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/SqlOperations.h b/src/shared/Database/SqlOperations.h
index b06397e84d5..0ebff9868d9 100644
--- a/src/shared/Database/SqlOperations.h
+++ b/src/shared/Database/SqlOperations.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/dbcfile.cpp b/src/shared/Database/dbcfile.cpp
index c6c12a99b8b..9f570e72496 100644
--- a/src/shared/Database/dbcfile.cpp
+++ b/src/shared/Database/dbcfile.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Database/dbcfile.h b/src/shared/Database/dbcfile.h
index 8d0b2e45451..e0cef4dee5f 100644
--- a/src/shared/Database/dbcfile.h
+++ b/src/shared/Database/dbcfile.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Errors.h b/src/shared/Errors.h
index 0ebf05db491..0e8feb8424a 100644
--- a/src/shared/Errors.h
+++ b/src/shared/Errors.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp
index 518c91940dc..9e910a4fcbf 100644
--- a/src/shared/Log.cpp
+++ b/src/shared/Log.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Log.h b/src/shared/Log.h
index d68529a77a8..c4190264f3a 100644
--- a/src/shared/Log.h
+++ b/src/shared/Log.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/PacketLog.cpp b/src/shared/PacketLog.cpp
index 52fa4f7b0fb..0ae6f198640 100644
--- a/src/shared/PacketLog.cpp
+++ b/src/shared/PacketLog.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/PacketLog.h b/src/shared/PacketLog.h
index 5f856ba7776..3280d801261 100644
--- a/src/shared/PacketLog.h
+++ b/src/shared/PacketLog.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/ProgressBar.cpp b/src/shared/ProgressBar.cpp
index f4163a6133e..3cb09290485 100644
--- a/src/shared/ProgressBar.cpp
+++ b/src/shared/ProgressBar.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/ProgressBar.h b/src/shared/ProgressBar.h
index 98720c90385..77f1e4c43ec 100644
--- a/src/shared/ProgressBar.h
+++ b/src/shared/ProgressBar.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/ServiceWin32.cpp b/src/shared/ServiceWin32.cpp
index 34d5608da44..2a152513977 100644
--- a/src/shared/ServiceWin32.cpp
+++ b/src/shared/ServiceWin32.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/ServiceWin32.h b/src/shared/ServiceWin32.h
index 640077592a8..fdc9d7d4e9e 100644
--- a/src/shared/ServiceWin32.h
+++ b/src/shared/ServiceWin32.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/Timer.h b/src/shared/Timer.h
index 7bc0031a5de..848a8cfac4f 100644
--- a/src/shared/Timer.h
+++ b/src/shared/Timer.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -50,7 +50,7 @@ inline uint32 getMSTime()
inline uint32 getMSTimeDiff(uint32 oldMSTime, uint32 newMSTime)
{
// getMSTime() have limited data range and this is case when it overflow in this tick
- if (oldMSTime > newMSTime)
+ if (oldMSTime > newMSTime)
return (0xFFFFFFFF - oldMSTime) + newMSTime;
else
return newMSTime - oldMSTime;
diff --git a/src/shared/Util.cpp b/src/shared/Util.cpp
index a35af77e7f6..72b35319298 100644
--- a/src/shared/Util.cpp
+++ b/src/shared/Util.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -28,7 +28,7 @@
typedef ZThread::ThreadLocal MTRandTSS;
/* NOTE: Not sure if static initialization is ok for TSS objects ,
- * as I see zthread uses custom implementation of the TSS
+ * as I see zthread uses custom implementation of the TSS
* ,and in the consturctor there is no code ,so I suppose its ok
* If its not ok ,change it to use singleton.
*/
diff --git a/src/shared/Util.h b/src/shared/Util.h
index b99cdb13bde..4b91a8ede4c 100644
--- a/src/shared/Util.h
+++ b/src/shared/Util.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -161,7 +161,7 @@ inline bool isEastAsianCharacter(wchar_t wchar)
return true;
if(wchar >= 0x31F0 && wchar <= 0x31FF) // Katakana Phonetic Ext.
return true;
- if(wchar >= 0x3400 && wchar <= 0x4DB5) // CJK Ideographs Ext. A
+ if(wchar >= 0x3400 && wchar <= 0x4DB5) // CJK Ideographs Ext. A
return true;
if(wchar >= 0x4E00 && wchar <= 0x9FC3) // Unified CJK Ideographs
return true;
diff --git a/src/shared/WorldPacket.h b/src/shared/WorldPacket.h
index 501c4b74269..ee17047a9ef 100644
--- a/src/shared/WorldPacket.h
+++ b/src/shared/WorldPacket.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/AABSPTree.h b/src/shared/vmap/AABSPTree.h
index 9b44470e7d9..5107676d48e 100644
--- a/src/shared/vmap/AABSPTree.h
+++ b/src/shared/vmap/AABSPTree.h
@@ -1,14 +1,14 @@
/**
@file AABSPTree.h
-
+
@maintainer Morgan McGuire, matrix@graphics3d.com
-
+
@created 2004-01-11
@edited 2007-02-16
Copyright 2000-2007, Morgan McGuire.
All rights reserved.
-
+
*/
#ifndef G3D_AABSPTREE_H
@@ -89,7 +89,7 @@ namespace G3D {
/**
Wraps a pointer value so that it can be treated as the instance itself;
- convenient for inserting pointers into a Table but using the
+ convenient for inserting pointers into a Table but using the
object equality instead of pointer equality.
*/
template
@@ -136,9 +136,9 @@ namespace G3D {
AABSPTree is as powerful as but more general than a Quad Tree, Oct
Tree, or KD Tree, but less general than an unconstrained BSP tree
(which is much slower to create).
-
+
Internally, objects
- are arranged into an axis-aligned BSP-tree according to their
+ are arranged into an axis-aligned BSP-tree according to their
axis-aligned bounds. This increases the cost of insertion to
O(log n) but allows fast overlap queries.
@@ -158,13 +158,13 @@ namespace G3D {
Moving %Set Members
It is important that objects do not move without updating the
AABSPTree. If the axis-aligned bounds of an object are about
- to change, AABSPTree::remove it before they change and
+ to change, AABSPTree::remove it before they change and
AABSPTree::insert it again afterward. For objects
- where the hashCode and == operator are invariant with respect
+ where the hashCode and == operator are invariant with respect
to the 3D position,
you can use the AABSPTree::update method as a shortcut to
insert/remove an object in one step after it has moved.
-
+
Note: Do not mutate any value once it has been inserted into AABSPTree. Values
are copied interally. All AABSPTree iterators convert to pointers to constant
@@ -185,9 +185,9 @@ namespace G3D {
*/
namespace _AABSPTree {
- /** Wrapper for a value that includes a cache of its bounds.
+ /** Wrapper for a value that includes a cache of its bounds.
Except for the test value used in a set-query operation, there
- is only ever one instance of the handle associated with any
+ is only ever one instance of the handle associated with any
value and the memberTable and Nodes maintain pointers to that
heap-allocated value.
*/
@@ -261,10 +261,10 @@ public:
/** Returns the bounds of the sub array. Used by makeNode. */
static AABox computeBounds(
- const Array<_AABSPTree::Handle*>& point,
+ const Array<_AABSPTree::Handle*>& point,
int beginIndex,
int endIndex) {
-
+
Vector3 lo = Vector3::inf();
Vector3 hi = -lo;
@@ -357,8 +357,8 @@ public:
/** Location along the specified axis */
float splitLocation;
-
- /** child[0] contains all values strictly
+
+ /** child[0] contains all values strictly
smaller than splitLocation along splitAxis.
child[1] contains all values strictly
@@ -371,15 +371,15 @@ public:
/** Array of values at this node (i.e., values
straddling the split plane + all values if
- this is a leaf node).
+ this is a leaf node).
This is an array of pointers because that minimizes
- data movement during tree building, which accounts
+ data movement during tree building, which accounts
for about 15% of the time cost of tree building.
*/
Array<_AABSPTree::Handle * > valueArray;
- /** For each object in the value array, a copy of its bounds.
+ /** For each object in the value array, a copy of its bounds.
Packing these into an array at the node level
instead putting them in the valueArray improves
cache coherence, which is about a 3x performance
@@ -403,7 +403,7 @@ public:
Node(const Node& other) : valueArray(other.valueArray), boundsArray(other.boundsArray) {
splitAxis = other.splitAxis;
splitLocation = other.splitLocation;
- splitBounds = other.splitBounds;
+ splitBounds = other.splitBounds;
for (int i = 0; i < 2; ++i) {
child[i] = NULL;
}
@@ -490,7 +490,7 @@ public:
#if 0
/**
Stores the locations of the splitting planes (the structure but not the content)
- so that the tree can be quickly rebuilt from a previous configuration without
+ so that the tree can be quickly rebuilt from a previous configuration without
calling balance.
*/
static void serializeStructure(const Node* n, BinaryOutput& bo) {
@@ -546,7 +546,7 @@ public:
}
- /** Appends all members that intersect the box.
+ /** Appends all members that intersect the box.
If useSphere is true, members that pass the box test
face a second test against the sphere. */
void getIntersectingMembers(
@@ -604,11 +604,11 @@ public:
// See if the ray will ever hit this node or its children
Vector3 location;
bool alreadyInsideBounds = false;
- bool rayWillHitBounds =
+ bool rayWillHitBounds =
VMAP::MyCollisionDetection::collisionLocationForMovingPointFixedAABox(
ray.origin, ray.direction, splitBounds, location, alreadyInsideBounds);
-
- bool canHitThisNode = (alreadyInsideBounds ||
+
+ bool canHitThisNode = (alreadyInsideBounds ||
(rayWillHitBounds && ((location - ray.origin).squaredLength() < square(distance))));
return canHitThisNode;
@@ -616,20 +616,20 @@ public:
template
void intersectRay(
- const Ray& ray,
- RayCallback& intersectCallback,
+ const Ray& ray,
+ RayCallback& intersectCallback,
float& distance,
bool pStopAtFirstHit,
bool intersectCallbackIsFast) const {
float enterDistance = distance;
-
+
if (! intersects(ray, distance)) {
// The ray doesn't hit this node, so it can't hit the children of the node.
return;
}
// Test for intersection against every object at this node.
- for (int v = 0; v < valueArray.size(); ++v) {
+ for (int v = 0; v < valueArray.size(); ++v) {
bool canHitThisObject = true;
if (! intersectCallbackIsFast) {
@@ -637,11 +637,11 @@ public:
Vector3 location;
const AABox& bounds = boundsArray[v];
bool alreadyInsideBounds = false;
- bool rayWillHitBounds =
+ bool rayWillHitBounds =
VMAP::MyCollisionDetection::collisionLocationForMovingPointFixedAABox(
ray.origin, ray.direction, bounds, location, alreadyInsideBounds);
- canHitThisObject = (alreadyInsideBounds ||
+ canHitThisObject = (alreadyInsideBounds ||
(rayWillHitBounds && ((location - ray.origin).squaredLength() < square(distance))));
}
@@ -656,7 +656,7 @@ public:
}
// There are three cases to consider next:
- //
+ //
// 1. the ray can start on one side of the splitting plane and never enter the other,
// 2. the ray can start on one side and enter the other, and
// 3. the ray can travel exactly down the splitting plane
@@ -666,7 +666,7 @@ public:
int secondChild = NONE;
if (ray.origin[splitAxis] < splitLocation) {
-
+
// The ray starts on the small side
firstChild = 0;
@@ -702,7 +702,7 @@ public:
}
if (ray.direction[splitAxis] != 0) {
- // See if there was an intersection before hitting the splitting plane.
+ // See if there was an intersection before hitting the splitting plane.
// If so, there is no need to look on the far side and recursion terminates.
float distanceToSplittingPlane = (splitLocation - ray.origin[splitAxis]) / ray.direction[splitAxis];
if (distanceToSplittingPlane > distance) {
@@ -724,43 +724,43 @@ public:
/**
Recursively subdivides the subarray.
-
+
Clears the source array as soon as it is no longer needed.
Call assignSplitBounds() on the root node after making a tree.
*/
Node* makeNode(
- Array<_AABSPTree::Handle * >& source,
- int valuesPerNode,
+ Array<_AABSPTree::Handle * >& source,
+ int valuesPerNode,
int numMeanSplits,
Array<_AABSPTree::Handle * >& temp) {
Node* node = NULL;
-
+
if (source.size() <= valuesPerNode) {
// Make a new leaf node
node = new Node(source);
-
+
// Set the pointers in the memberTable
for (int i = 0; i < source.size(); ++i) {
memberTable.set(Member(source[i]), node);
}
source.clear();
-
+
} else {
// Make a new internal node
node = new Node();
-
+
const AABox bounds = computeBounds(source, 0, source.size() - 1);
const Vector3 extent = bounds.high() - bounds.low();
-
+
Vector3::Axis splitAxis = extent.primaryAxis();
-
+
float splitLocation;
// Arrays for holding the children
Array<_AABSPTree::Handle * > lt, gt;
-
+
if (numMeanSplits <= 0) {
source.medianPartition(lt, node->valueArray, gt, temp, CenterComparator(splitAxis));
@@ -788,13 +788,13 @@ public:
// is swapped in in its place.
gt.fastRemove(i); --i;
}
- }
+ }
if ((node->valueArray.size() > (source.size() / 2)) &&
(source.size() > 6)) {
- // This was a bad partition; we ended up putting the splitting plane right in the middle of most of the
- // objects. We could try to split on a different axis, or use a different partition (e.g., the extents mean,
- // or geometric mean). This implementation falls back on the extents mean, since that case is already handled
+ // This was a bad partition; we ended up putting the splitting plane right in the middle of most of the
+ // objects. We could try to split on a different axis, or use a different partition (e.g., the extents mean,
+ // or geometric mean). This implementation falls back on the extents mean, since that case is already handled
// below.
numMeanSplits = 1;
}
@@ -805,9 +805,9 @@ public:
if (numMeanSplits > 0) {
// Split along the mean
- splitLocation = (bounds.high()[splitAxis] +
+ splitLocation = (bounds.high()[splitAxis] +
bounds.low()[splitAxis]) / 2.0;
-
+
source.partition(NULL, lt, node->valueArray, gt, Comparator(splitAxis, splitLocation));
// The Comparator ensures that elements are strictly on the correct side of the split
@@ -817,7 +817,7 @@ public:
# if defined(G3D_DEBUG) && defined(VERIFY_TREE)
debugAssert(lt.size() + node->valueArray.size() + gt.size() == source.size());
// Verify that all objects ended up on the correct side of the split.
- // (i.e., make sure that the Array partition was correct)
+ // (i.e., make sure that the Array partition was correct)
for (int i = 0; i < lt.size(); ++i) {
const AABox& bounds = lt[i]->bounds;
debugAssert(bounds.high()[splitAxis] < splitLocation);
@@ -849,16 +849,16 @@ public:
memberTable.set(Member(v), node);
}
- if (lt.size() > 0) {
+ if (lt.size() > 0) {
node->child[0] = makeNode(lt, valuesPerNode, numMeanSplits - 1, temp);
}
-
+
if (gt.size() > 0) {
node->child[1] = makeNode(gt, valuesPerNode, numMeanSplits - 1, temp);
}
-
+
}
-
+
return node;
}
@@ -927,7 +927,7 @@ public:
*/
void clear() {
typedef typename Table<_internal::Indirector<_AABSPTree::Handle >, Node* >::Iterator It;
-
+
// Delete all handles stored in the member table
It cur = memberTable.begin();
It end = memberTable.end();
@@ -970,7 +970,7 @@ public:
// Insert into the node
node->valueArray.append(h);
node->boundsArray.append(h->bounds);
-
+
// Insert into the node table
Member m(h);
memberTable.set(m, node);
@@ -1022,8 +1022,8 @@ public:
/**
Removes an object from the set in O(1) time.
It is an error to remove members that are not already
- present. May unbalance the tree.
-
+ present. May unbalance the tree.
+
Removing an element never causes a node (split plane) to be removed...
nodes are only changed when the tree is rebalanced. This behavior
is desirable because it allows the split planes to be serialized,
@@ -1075,7 +1075,7 @@ public:
on T are independent of the bounds. In
that case, you may call update(v) to insert an
element for the first time and call update(v)
- again every time it moves to keep the tree
+ again every time it moves to keep the tree
up to date.
*/
void update(const T& value) {
@@ -1091,15 +1091,15 @@ public:
have moved substantially from their original positions
(which unbalances the tree and causes the spatial
queries to be slow).
-
+
@param valuesPerNode Maximum number of elements to put at
a node.
- @param numMeanSplits numMeanSplits = 0 gives a
+ @param numMeanSplits numMeanSplits = 0 gives a
fully axis aligned BSP-tree, where the balance operation attempts to balance
the tree so that every splitting plane has an equal number of left
- and right children (i.e. it is a median split along that axis).
- This tends to maximize average performance.
+ and right children (i.e. it is a median split along that axis).
+ This tends to maximize average performance.
You can override this behavior by
setting a number of mean (average) splits. numMeanSplits = MAX_INT
@@ -1126,7 +1126,7 @@ public:
}
Array<_AABSPTree::Handle * > temp;
- // Make a new root. Work with a copy of the value array because
+ // Make a new root. Work with a copy of the value array because
// makeNode clears the source array as it progresses
Array<_AABSPTree::Handle * > copy(oldRoot->valueArray);
root = makeNode(copy, valuesPerNode, numMeanSplits, temp);
@@ -1195,7 +1195,7 @@ protected:
public:
/**
- Returns all members inside the set of planes.
+ Returns all members inside the set of planes.
@param members The results are appended to this array.
*/
void getIntersectingMembers(const Array& plane, Array& members) const {
@@ -1221,7 +1221,7 @@ public:
*/
void getIntersectingMembers(const GCamera::Frustum& frustum, Array& members) const {
Array plane;
-
+
for (int i = 0; i < frustum.faceArray.size(); ++i) {
plane.append(frustum.faceArray[i].plane);
}
@@ -1260,14 +1260,14 @@ public:
// caller uses post increment (which they shouldn't!).
Array stack;
- /** The next index of current->valueArray to return.
+ /** The next index of current->valueArray to return.
Undefined when isEnd is true.*/
int nextValueArrayIndex;
BoxIntersectionIterator() : isEnd(true) {}
-
- BoxIntersectionIterator(const AABox& b, const Node* root) :
- isEnd(root == NULL), box(b),
+
+ BoxIntersectionIterator(const AABox& b, const Node* root) :
+ isEnd(root == NULL), box(b),
node(const_cast(root)), nextValueArrayIndex(-1) {
// We intentionally start at the "-1" index of the current
@@ -1290,10 +1290,10 @@ public:
} else if (other.isEnd) {
return false;
} else {
- // Two non-end iterators; see if they match. This is kind of
+ // Two non-end iterators; see if they match. This is kind of
// silly; users shouldn't call == on iterators in general unless
// one of them is the end iterator.
- if ((box != other.box) || (node != other.node) ||
+ if ((box != other.box) || (node != other.node) ||
(nextValueArrayIndex != other.nextValueArrayIndex) ||
(stack.length() != other.stack.length())) {
return false;
@@ -1322,7 +1322,7 @@ public:
// Search for the next node if we've exhausted this one
while ((! isEnd) && (nextValueArrayIndex >= node->valueArray.length())) {
- // If we entered this loop, then the iterator has exhausted the elements at
+ // If we entered this loop, then the iterator has exhausted the elements at
// node (possibly because it just switched to a child node with no members).
// This loop continues until it finds a node with members or reaches
// the end of the whole intersection search.
@@ -1333,7 +1333,7 @@ public:
(box.high()[node->splitAxis] > node->splitLocation)) {
stack.push(node->child[1]);
}
-
+
// If the left child overlaps the box, push it onto the stack for
// processing.
if ((node->child[0] != NULL) &&
@@ -1342,7 +1342,7 @@ public:
}
if (stack.length() > 0) {
- // Go on to the next node (which may be either one of the ones we
+ // Go on to the next node (which may be either one of the ones we
// just pushed, or one from farther back the tree).
node = stack.pop();
nextValueArrayIndex = 0;
@@ -1358,7 +1358,7 @@ public:
foundIntersection = true;
} else {
++nextValueArrayIndex;
- // If we exhaust this node, we'll loop around the master loop
+ // If we exhaust this node, we'll loop around the master loop
// to find a new node.
}
}
@@ -1431,7 +1431,7 @@ public:
Invoke a callback for every member along a ray until the closest intersection is found.
@param callback either a function or an instance of a class with an overloaded operator() of the form:
-
+
void callback(const Ray& ray, const T& object, float& distance)
. If the ray hits the object
before travelling distance distance
, updates distance
with the new distance to
the intersection, otherwise leaves it unmodified. A common example is:
@@ -1482,12 +1482,12 @@ public:
*/
template
void intersectRay(
- const Ray& ray,
- RayCallback& intersectCallback,
+ const Ray& ray,
+ RayCallback& intersectCallback,
float& distance,
bool pStopAtFirstHit,
bool intersectCallbackIsFast = false) const {
-
+
root->intersectRay(ray, intersectCallback, distance, pStopAtFirstHit, intersectCallbackIsFast);
}
@@ -1509,7 +1509,7 @@ public:
#if 0
/**
Stores the locations of the splitting planes (the structure but not the content)
- so that the tree can be quickly rebuilt from a previous configuration without
+ so that the tree can be quickly rebuilt from a previous configuration without
calling balance.
*/
void serializeStructure(BinaryOutput& bo) const {
@@ -1593,9 +1593,9 @@ public:
/**
- C++ STL style iterator method. Returns the first member.
+ C++ STL style iterator method. Returns the first member.
Use preincrement (++entry) to get to the next element (iteration
- order is arbitrary).
+ order is arbitrary).
Do not modify the set while iterating.
*/
Iterator begin() const {
diff --git a/src/shared/vmap/BaseModel.cpp b/src/shared/vmap/BaseModel.cpp
index 4a0d66ad6bb..1b7ad34d413 100644
--- a/src/shared/vmap/BaseModel.cpp
+++ b/src/shared/vmap/BaseModel.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -84,11 +84,11 @@ namespace VMAP
// See if the ray will ever hit this node or its children
Vector3 location;
bool alreadyInsideBounds = false;
- bool rayWillHitBounds =
+ bool rayWillHitBounds =
MyCollisionDetection::collisionLocationForMovingPointFixedAABox(
pRay.origin, pRay.direction, pBox, location, alreadyInsideBounds);
- bool canHitThisNode = (alreadyInsideBounds ||
+ bool canHitThisNode = (alreadyInsideBounds ||
(rayWillHitBounds && ((location - pRay.origin).squaredLength() < (pMaxDist * pMaxDist))));
return canHitThisNode;
diff --git a/src/shared/vmap/BaseModel.h b/src/shared/vmap/BaseModel.h
index 6a5ffdf0d0e..1601f367de7 100644
--- a/src/shared/vmap/BaseModel.h
+++ b/src/shared/vmap/BaseModel.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/CoordModelMapping.cpp b/src/shared/vmap/CoordModelMapping.cpp
index 10371365e0d..7c7c801d690 100644
--- a/src/shared/vmap/CoordModelMapping.cpp
+++ b/src/shared/vmap/CoordModelMapping.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/CoordModelMapping.h b/src/shared/vmap/CoordModelMapping.h
index 59766e5e7d5..34f1917f5b3 100644
--- a/src/shared/vmap/CoordModelMapping.h
+++ b/src/shared/vmap/CoordModelMapping.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/DebugCmdLogger.cpp b/src/shared/vmap/DebugCmdLogger.cpp
index 407290bc5b6..5e26b7ade8f 100644
--- a/src/shared/vmap/DebugCmdLogger.cpp
+++ b/src/shared/vmap/DebugCmdLogger.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -25,7 +25,7 @@ using namespace G3D;
namespace VMAP
{
- bool CommandFileRW::appendCmd(const Command&
+ bool CommandFileRW::appendCmd(const Command&
#ifdef _DEBUG
pCommand
#endif
@@ -55,7 +55,7 @@ namespace VMAP
//=========================================================
- bool CommandFileRW::appendCmds(const Array&
+ bool CommandFileRW::appendCmds(const Array&
#ifdef _DEBUG
pCmdArray
#endif
diff --git a/src/shared/vmap/DebugCmdLogger.h b/src/shared/vmap/DebugCmdLogger.h
index cd50b2e49b2..aa0df4d1e5c 100644
--- a/src/shared/vmap/DebugCmdLogger.h
+++ b/src/shared/vmap/DebugCmdLogger.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/IVMapManager.h b/src/shared/vmap/IVMapManager.h
index 8604e7f4a0b..60159ed8bea 100644
--- a/src/shared/vmap/IVMapManager.h
+++ b/src/shared/vmap/IVMapManager.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/ManagedModelContainer.cpp b/src/shared/vmap/ManagedModelContainer.cpp
index 3478bab72b7..08c58a60c8f 100644
--- a/src/shared/vmap/ManagedModelContainer.cpp
+++ b/src/shared/vmap/ManagedModelContainer.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/ManagedModelContainer.h b/src/shared/vmap/ManagedModelContainer.h
index 694e4a8c602..b193ef9d57f 100644
--- a/src/shared/vmap/ManagedModelContainer.h
+++ b/src/shared/vmap/ManagedModelContainer.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/ModelContainer.cpp b/src/shared/vmap/ModelContainer.cpp
index 993523cac6b..889ba4fc9bf 100644
--- a/src/shared/vmap/ModelContainer.cpp
+++ b/src/shared/vmap/ModelContainer.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/ModelContainer.h b/src/shared/vmap/ModelContainer.h
index b0c74bb284c..98b4c9ddcf3 100644
--- a/src/shared/vmap/ModelContainer.h
+++ b/src/shared/vmap/ModelContainer.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/NodeValueAccess.h b/src/shared/vmap/NodeValueAccess.h
index 2d00012be24..b8ec54e90be 100644
--- a/src/shared/vmap/NodeValueAccess.h
+++ b/src/shared/vmap/NodeValueAccess.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/ShortBox.h b/src/shared/vmap/ShortBox.h
index 1160dd60d4e..9c5472f4c3a 100644
--- a/src/shared/vmap/ShortBox.h
+++ b/src/shared/vmap/ShortBox.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/ShortVector.h b/src/shared/vmap/ShortVector.h
index 57ebdbc9bb6..8c4aec8a0b4 100644
--- a/src/shared/vmap/ShortVector.h
+++ b/src/shared/vmap/ShortVector.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/SubModel.cpp b/src/shared/vmap/SubModel.cpp
index 51eaf62c87c..3d1c0e29ff6 100644
--- a/src/shared/vmap/SubModel.cpp
+++ b/src/shared/vmap/SubModel.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/SubModel.h b/src/shared/vmap/SubModel.h
index b120a211c5a..bc8239b1568 100644
--- a/src/shared/vmap/SubModel.h
+++ b/src/shared/vmap/SubModel.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/TileAssembler.cpp b/src/shared/vmap/TileAssembler.cpp
index 198806601fa..fd83a318f65 100644
--- a/src/shared/vmap/TileAssembler.cpp
+++ b/src/shared/vmap/TileAssembler.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/TileAssembler.h b/src/shared/vmap/TileAssembler.h
index 7c2e9929b68..3f0f9468172 100644
--- a/src/shared/vmap/TileAssembler.h
+++ b/src/shared/vmap/TileAssembler.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/TreeNode.cpp b/src/shared/vmap/TreeNode.cpp
index 7b81c89c96d..af7fe224fe5 100644
--- a/src/shared/vmap/TreeNode.cpp
+++ b/src/shared/vmap/TreeNode.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/TreeNode.h b/src/shared/vmap/TreeNode.h
index a957cfac33b..8f3fbd7a71a 100644
--- a/src/shared/vmap/TreeNode.h
+++ b/src/shared/vmap/TreeNode.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -109,11 +109,11 @@ namespace VMAP
// See if the ray will ever hit this node or its children
G3D::Vector3 location;
bool alreadyInsideBounds = false;
- bool rayWillHitBounds =
+ bool rayWillHitBounds =
MyCollisionDetection::collisionLocationForMovingPointFixedAABox(
ray.origin, ray.direction, iBounds, location, alreadyInsideBounds);
- bool canHitThisNode = (alreadyInsideBounds ||
+ bool canHitThisNode = (alreadyInsideBounds ||
(rayWillHitBounds && ((location - ray.origin).squaredLength() < (distance*distance))));
return canHitThisNode;
@@ -121,8 +121,8 @@ namespace VMAP
template
void intersectRay(
- const G3D::Ray& ray,
- RayCallback& intersectCallback,
+ const G3D::Ray& ray,
+ RayCallback& intersectCallback,
float& distance,
const NodeValueAccess& pNodeValueAccess,
bool pStopAtFirstHit,
@@ -134,7 +134,7 @@ namespace VMAP
}
// Test for intersection against every object at this node.
- for (unsigned int v = iStartPosition; v < (iNumberOfValues+iStartPosition); ++v) {
+ for (unsigned int v = iStartPosition; v < (iNumberOfValues+iStartPosition); ++v) {
const TValue& nodeValue = pNodeValueAccess.getValue(v);
bool canHitThisObject = true;
if (! intersectCallbackIsFast) {
@@ -142,11 +142,11 @@ namespace VMAP
G3D::Vector3 location;
const G3D::AABox& bounds = nodeValue.getAABoxBounds();
bool alreadyInsideBounds = false;
- bool rayWillHitBounds =
+ bool rayWillHitBounds =
MyCollisionDetection::collisionLocationForMovingPointFixedAABox(
ray.origin, ray.direction, bounds, location, alreadyInsideBounds);
- canHitThisObject = (alreadyInsideBounds ||
+ canHitThisObject = (alreadyInsideBounds ||
(rayWillHitBounds && ((location - ray.origin).squaredLength() < (distance*distance))));
}
@@ -160,7 +160,7 @@ namespace VMAP
}
// There are three cases to consider next:
- //
+ //
// 1. the ray can start on one side of the splitting plane and never enter the other,
// 2. the ray can start on one side and enter the other, and
// 3. the ray can travel exactly down the splitting plane
@@ -205,7 +205,7 @@ namespace VMAP
return;
}
if (ray.direction[iSplitAxis] != 0) {
- // See if there was an intersection before hitting the splitting plane.
+ // See if there was an intersection before hitting the splitting plane.
// If so, there is no need to look on the far side and recursion terminates.
float distanceToSplittingPlane = (iSplitLocation - ray.origin[iSplitAxis]) / ray.direction[iSplitAxis];
if (distanceToSplittingPlane > distance) {
diff --git a/src/shared/vmap/VMapDefinitions.h b/src/shared/vmap/VMapDefinitions.h
index 5b038361f69..c3498ea9260 100644
--- a/src/shared/vmap/VMapDefinitions.h
+++ b/src/shared/vmap/VMapDefinitions.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/VMapFactory.cpp b/src/shared/vmap/VMapFactory.cpp
index a12c9e3e3a9..4c349cdaa62 100644
--- a/src/shared/vmap/VMapFactory.cpp
+++ b/src/shared/vmap/VMapFactory.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/VMapFactory.h b/src/shared/vmap/VMapFactory.h
index cd6471156bd..a8784a37219 100644
--- a/src/shared/vmap/VMapFactory.h
+++ b/src/shared/vmap/VMapFactory.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/VMapManager.cpp b/src/shared/vmap/VMapManager.cpp
index 337e553f38d..cf2bc080865 100644
--- a/src/shared/vmap/VMapManager.cpp
+++ b/src/shared/vmap/VMapManager.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/VMapManager.h b/src/shared/vmap/VMapManager.h
index efb9538408d..5b4064915e4 100644
--- a/src/shared/vmap/VMapManager.h
+++ b/src/shared/vmap/VMapManager.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/shared/vmap/VMapTools.h b/src/shared/vmap/VMapTools.h
index dd8ec861191..49a28d5272d 100644
--- a/src/shared/vmap/VMapTools.h
+++ b/src/shared/vmap/VMapTools.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
@@ -34,7 +34,7 @@ The collision detection is modified to return true, if we are inside an object.
namespace VMAP
{
- template
+ template
class IntersectionCallBack {
public:
TValue* closestEntity;
diff --git a/src/trinitycore/CliRunnable.h b/src/trinitycore/CliRunnable.h
index c3c1792b6e8..f50cae814bc 100644
--- a/src/trinitycore/CliRunnable.h
+++ b/src/trinitycore/CliRunnable.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/trinitycore/Master.h b/src/trinitycore/Master.h
index 2485dd456b1..36d4b29495e 100644
--- a/src/trinitycore/Master.h
+++ b/src/trinitycore/Master.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/trinitycore/WorldRunnable.cpp b/src/trinitycore/WorldRunnable.cpp
index 3edb96c2e8b..e4f1a79a6e8 100644
--- a/src/trinitycore/WorldRunnable.cpp
+++ b/src/trinitycore/WorldRunnable.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/trinitycore/WorldRunnable.h b/src/trinitycore/WorldRunnable.h
index 8891186dec4..73a7f17e52f 100644
--- a/src/trinitycore/WorldRunnable.h
+++ b/src/trinitycore/WorldRunnable.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/trinitycore/resource.h b/src/trinitycore/resource.h
index 7e7d8e4b76f..7dc5cb9ef7b 100644
--- a/src/trinitycore/resource.h
+++ b/src/trinitycore/resource.h
@@ -4,7 +4,7 @@
//
// Next default values for new objects
-//
+//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
diff --git a/src/trinityrealm/AuthCodes.h b/src/trinityrealm/AuthCodes.h
index 768f51efb59..14a65b89504 100644
--- a/src/trinityrealm/AuthCodes.h
+++ b/src/trinityrealm/AuthCodes.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/trinityrealm/RealmList.cpp b/src/trinityrealm/RealmList.cpp
index 32c0cbc12c1..558d6c12610 100644
--- a/src/trinityrealm/RealmList.cpp
+++ b/src/trinityrealm/RealmList.cpp
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/trinityrealm/RealmList.h b/src/trinityrealm/RealmList.h
index 9cb5380bd25..842482bb75a 100644
--- a/src/trinityrealm/RealmList.h
+++ b/src/trinityrealm/RealmList.h
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2005-2008 MaNGOS
*
* Copyright (C) 2008 Trinity
diff --git a/src/trinityrealm/resource.h b/src/trinityrealm/resource.h
index 7e7d8e4b76f..7dc5cb9ef7b 100644
--- a/src/trinityrealm/resource.h
+++ b/src/trinityrealm/resource.h
@@ -4,7 +4,7 @@
//
// Next default values for new objects
-//
+//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
diff --git a/win/VC71/game.vcproj b/win/VC71/game.vcproj
index 624c8faf90c..4aa5fa649cc 100644
--- a/win/VC71/game.vcproj
+++ b/win/VC71/game.vcproj
@@ -467,7 +467,7 @@
Name="Chat Commands"
>