Index: /trunk/src/bindings/scripts/VC71/71ScriptDev2.vcproj
===================================================================
--- /trunk/src/bindings/scripts/VC71/71ScriptDev2.vcproj (revision 165)
+++ /trunk/src/bindings/scripts/VC71/71ScriptDev2.vcproj (revision 187)
@@ -1661,4 +1661,8 @@
 							>
 						</File>
+						<File
+							RelativePath="..\scripts\zone\coilfang_resevoir\serpent_shrine\boss_lurker_below.cpp"
+							>
+						</File>						
 						<File
 							RelativePath="..\scripts\zone\coilfang_resevoir\serpent_shrine\boss_lady_vashj.cpp"
Index: /trunk/src/bindings/scripts/VC80/80ScriptDev2.vcproj
===================================================================
--- /trunk/src/bindings/scripts/VC80/80ScriptDev2.vcproj (revision 165)
+++ /trunk/src/bindings/scripts/VC80/80ScriptDev2.vcproj (revision 187)
@@ -1906,4 +1906,8 @@
 							>
 						</File>
+						<File
+							RelativePath="..\scripts\zone\coilfang_resevoir\serpent_shrine\boss_lurker_below.cpp"
+							>
+						</File>						
 						<File
 							RelativePath="..\scripts\zone\coilfang_resevoir\serpent_shrine\boss_lady_vashj.cpp"
Index: /trunk/src/bindings/scripts/VC90/90ScriptDev2.vcproj
===================================================================
--- /trunk/src/bindings/scripts/VC90/90ScriptDev2.vcproj (revision 165)
+++ /trunk/src/bindings/scripts/VC90/90ScriptDev2.vcproj (revision 187)
@@ -1893,4 +1893,8 @@
 						</File>
 						<File
+							RelativePath="..\scripts\zone\coilfang_resevoir\serpent_shrine\boss_lurker_below.cpp"
+							>
+						</File>
+						<File						
 							RelativePath="..\scripts\zone\coilfang_resevoir\serpent_shrine\boss_lady_vashj.cpp"
 							>
Index: /trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lurker_below.cpp
===================================================================
--- /trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lurker_below.cpp (revision 187)
+++ /trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lurker_below.cpp (revision 187)
@@ -0,0 +1,182 @@
+/* Copyright (C) 2006 - 2008 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
+ * 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
+ */
+
+/* ScriptData
+SDName: boss_the_lurker_below
+SD%Complete: 10
+SDComment:
+SDCategory: The Lurker Below
+EndScriptData */
+
+#include "precompiled.h"
+#include "def_serpent_shrine.h"
+#include "../../../creature/simple_ai.h"
+#include "Spell.h"
+
+#define SPELL_SPOUT			37433
+#define SPELL_SPOUT_2		42835
+#define SPELL_KNOCKBACK		19813
+#define SPELL_GEYSER		37478
+#define SPELL_WHIRL			37660
+#define SPELL_WATERBOLT		37138
+#define SPELL_SUBMERGE		37550
+#define SPELL_EMERGE		20568
+
+#define EMOTE_SPOUT	"takes a deep breath."
+
+#define MOB_COILFANG_GUARDIAN 21873
+#define MOB_COILFANG_AMBUSHER 21865
+
+//Ambusher spells
+#define SPELL_SPREAD_SHOT	37790
+#define SPELL_SHOOT			37770
+
+//Guardian spells
+#define SPELL_ARCINGSMASH	38761 // Wrong SpellId. Can't find the right one.
+#define SPELL_HAMSTRING		26211
+
+struct TRINITY_DLL_DECL boss_the_lurker_belowAI : public ScriptedAI
+{
+    boss_the_lurker_belowAI(Creature *c) : ScriptedAI(c) {Reset();}
+
+    void Reset()
+    {
+		
+	}
+
+    void MoveInLineOfSight(Unit *who)
+    {
+
+    }
+
+	void Aggro(Unit *who)
+    {
+		
+    }
+
+	void UpdateAI(const uint32 diff)
+    {
+		
+	}
+};
+
+CreatureAI* GetAI_mob_coilfang_guardian(Creature *_Creature)
+{
+    SimpleAI* ai = new SimpleAI (_Creature);
+
+    ai->Spell[0].Enabled = true;
+    ai->Spell[0].Spell_Id = SPELL_ARCINGSMASH;
+    ai->Spell[0].Cooldown = 15000;
+    ai->Spell[0].First_Cast = 5000;
+    ai->Spell[0].Cast_Target_Type = CAST_HOSTILE_TARGET;
+
+    ai->Spell[1].Enabled = true;
+    ai->Spell[1].Spell_Id = SPELL_HAMSTRING;
+    ai->Spell[1].Cooldown = 10000;
+    ai->Spell[1].First_Cast = 2000;
+    ai->Spell[1].Cast_Target_Type = CAST_HOSTILE_TARGET;
+
+	return ai;
+}
+
+struct TRINITY_DLL_DECL mob_coilfang_ambusherAI : public Scripted_NoMovementAI
+{
+    mob_coilfang_ambusherAI(Creature *c) : Scripted_NoMovementAI(c) 
+	{
+		Reset();
+		SpellEntry *TempSpell = (SpellEntry*)GetSpellStore()->LookupEntry(SPELL_SHOOT);
+        if(TempSpell)
+			TempSpell->Effect[0] = 2;//change spell effect from weapon % dmg to simple phisical dmg
+	}
+
+	uint32 MultiShotTimer;
+	uint32 ShootBowTimer;
+    
+    void Reset()
+    {
+		MultiShotTimer = 10000;
+		ShootBowTimer = 4000;
+
+	}
+
+	void Aggro(Unit *who)
+    {
+		
+    }
+
+    void MoveInLineOfSight(Unit *who)
+	{
+		if (!who || m_creature->getVictim()) return;
+
+		if (who->isTargetableForAttack() && who->isInAccessablePlaceFor(m_creature) && m_creature->IsHostileTo(who))
+        {
+			AttackStart(who);
+        }
+	}
+
+	void UpdateAI(const uint32 diff)
+    {
+		if(MultiShotTimer < diff)
+		{
+			if(m_creature->getVictim())			
+				DoCast(m_creature->getVictim(), SPELL_SPREAD_SHOT, true);
+
+			MultiShotTimer = 10000;
+			ShootBowTimer += 1500;//add global cooldown
+		}else MultiShotTimer -= diff;
+
+		if(ShootBowTimer < diff)
+		{
+			Unit* target = NULL;
+			target = SelectUnit(SELECT_TARGET_RANDOM, 0);	
+			int bp0 = 1100;
+			if(target)
+				m_creature->CastCustomSpell(target,SPELL_SHOOT,&bp0,NULL,NULL,true);
+			ShootBowTimer = 4000;
+			MultiShotTimer += 1500;//add global cooldown
+		}else ShootBowTimer -= diff;
+	}
+};
+
+CreatureAI* GetAI_mob_coilfang_ambusher(Creature *_Creature)
+{
+    return new mob_coilfang_ambusherAI (_Creature);
+}
+
+CreatureAI* GetAI_boss_the_lurker_below(Creature *_Creature)
+{
+    return new boss_the_lurker_belowAI (_Creature);
+}
+
+void AddSC_boss_the_lurker_below()
+{
+    Script *newscript;
+    newscript = new Script;
+    newscript->Name="boss_the_lurker_below";
+    newscript->GetAI = GetAI_boss_the_lurker_below;
+    m_scripts[nrscripts++] = newscript;
+
+	newscript = new Script;
+    newscript->Name="mob_coilfang_guardian";
+    newscript->GetAI = GetAI_mob_coilfang_guardian;
+    m_scripts[nrscripts++] = newscript;
+
+	newscript = new Script;
+    newscript->Name="mob_coilfang_ambusher";
+    newscript->GetAI = GetAI_mob_coilfang_ambusher;
+    m_scripts[nrscripts++] = newscript;
+}
+
Index: /trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp
===================================================================
--- /trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp (revision 182)
+++ /trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp (revision 187)
@@ -199,5 +199,5 @@
         ShieldGeneratorChannel[2] = 0;
         ShieldGeneratorChannel[3] = 0;
-
+		
 		m_creature->SetCorpseDelay(1000*60*60);
     }
@@ -598,21 +598,9 @@
     void Reset()
     {        
-		m_creature->SetSpeed(MOVE_WALK,0.6,true);//walk
-		m_creature->SetSpeed(MOVE_RUN,0.6,true);//run
+		m_creature->SetSpeed(MOVE_WALK,0.6);//walk
+		m_creature->SetSpeed(MOVE_RUN,0.6);//run
 		move = 0;
 		phase = 1;
 		Vashj = NULL;
-    }
-
-    void Aggro(Unit *who) { return; }
-
-    void MoveInLineOfSight(Unit *who){return;}
-	
-    void UpdateAI(const uint32 diff)
-    {
-		if(!pInstance)
-			return;
-
-		if (!Vashj){ Vashj = Unit::GetUnit((*m_creature), pInstance->GetData64(DATA_LADYVASHJ)); }
 
 		for (int i = 0;i<8;i++)//search for nearest waypoint (up on stairs)
@@ -634,13 +622,25 @@
 			}
 		}
+		if (pInstance)
+			Vashj = Unit::GetUnit((*m_creature), pInstance->GetData64(DATA_LADYVASHJ));
+    }
+
+    void Aggro(Unit *who) { return; }
+
+    void MoveInLineOfSight(Unit *who){return;}
+	
+    void UpdateAI(const uint32 diff)
+    {
+		if(!pInstance)
+			return;		
 
 		if (!Vashj) 
 		{
-			m_creature->Say("Error Vashj not found!", LANG_UNIVERSAL, NULL);
 			return;
 		}
-
+		
 		if(move < diff)
         {
+			m_creature->SetUnitMovementFlags(MOVEMENTFLAG_WALK_MODE);
 			if (phase == 1)
 			{
Index: /trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/def_serpent_shrine.h
===================================================================
--- /trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/def_serpent_shrine.h (revision 182)
+++ /trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/def_serpent_shrine.h (revision 187)
@@ -21,8 +21,9 @@
 #define DATA_SHIELDGENERATOR3 14
 #define DATA_SHIELDGENERATOR4 15
-#define DATA_THELURKERBELOWEVENT 16
-#define DATA_TIDALVESS 17
-#define DATA_FATHOMLORDKARATHRESSEVENT 18
-#define DATA_LEOTHERAS 19
-#define DATA_LEOTHERAS_EVENT_STARTER 20
+#define DATA_THELURKERBELOW 16
+#define DATA_THELURKERBELOWEVENT 17
+#define DATA_TIDALVESS 18
+#define DATA_FATHOMLORDKARATHRESSEVENT 19
+#define DATA_LEOTHERAS 20
+#define DATA_LEOTHERAS_EVENT_STARTER 21
 #endif
Index: /trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/instance_serpent_shrine.cpp
===================================================================
--- /trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/instance_serpent_shrine.cpp (revision 182)
+++ /trunk/src/bindings/scripts/scripts/zone/coilfang_resevoir/serpent_shrine/instance_serpent_shrine.cpp (revision 187)
@@ -40,4 +40,5 @@
     instance_serpentshrine_cavern(Map *Map) : ScriptedInstance(Map) {Initialize();};
 
+	uint64 LurkerBelow;
     uint64 Sharkkis;
     uint64 Tidalvess;
@@ -56,4 +57,5 @@
     void Initialize()
     {
+		LurkerBelow = 0;
         Sharkkis = 0;
         Tidalvess = 0;
@@ -90,4 +92,5 @@
             case 21214: Karathress = creature->GetGUID();			break;
             case 21966: Sharkkis = creature->GetGUID();				break;
+			case 21217: LurkerBelow = creature->GetGUID();			break;
             case 21965: Tidalvess = creature->GetGUID();			break;
             case 21964: Caribdis = creature->GetGUID();				break;
@@ -107,4 +110,5 @@
         switch(identifier)
         {
+			case DATA_THELURKERBELOW:			return LurkerBelow;
             case DATA_SHARKKIS:					return Sharkkis;
 			case DATA_TIDALVESS:				return Tidalvess;
Index: /trunk/src/bindings/scripts/Makefile.am
===================================================================
--- /trunk/src/bindings/scripts/Makefile.am (revision 165)
+++ /trunk/src/bindings/scripts/Makefile.am (revision 187)
@@ -160,4 +160,5 @@
 scripts/zone/coilfang_resevoir/serpent_shrine/boss_fathomlord_karathress.cpp \
 scripts/zone/coilfang_resevoir/serpent_shrine/boss_hydross_the_unstable.cpp \
+scripts/zone/coilfang_resevoir/serpent_shrine/boss_lurker_below.cpp \
 scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp \
 scripts/zone/coilfang_resevoir/serpent_shrine/boss_leotheras_the_blind.cpp \
Index: /trunk/src/bindings/scripts/ScriptMgr.cpp
===================================================================
--- /trunk/src/bindings/scripts/ScriptMgr.cpp (revision 165)
+++ /trunk/src/bindings/scripts/ScriptMgr.cpp (revision 187)
@@ -238,4 +238,5 @@
 extern void AddSC_boss_morogrim_tidewalker();
 extern void AddSC_instance_serpentshrine_cavern();
+extern void AddSC_boss_the_lurker_below();
 
 //--Slave Pens
@@ -1421,4 +1422,5 @@
     AddSC_boss_morogrim_tidewalker();
     AddSC_instance_serpentshrine_cavern();
+	AddSC_boss_the_lurker_below();
 
     //--Slave Pens
Index: /trunk/sql/updates/195_world_serpent_shrine.sql
===================================================================
--- /trunk/sql/updates/195_world_serpent_shrine.sql (revision 187)
+++ /trunk/sql/updates/195_world_serpent_shrine.sql (revision 187)
@@ -0,0 +1,13 @@
+UPDATE creature_template SET ScriptName = 'boss_leotheras_the_blind' WHERE entry = '21215';
+UPDATE creature_template SET ScriptName = 'boss_leotheras_the_blind_demonform' WHERE entry = '21875';
+UPDATE creature_template SET ScriptName = 'mob_greyheart_spellbinder' WHERE entry = '21806';
+UPDATE creature_template SET ScriptName = 'mob_inner_demon' WHERE entry = '21857';
+
+UPDATE creature_template SET ScriptName = 'mob_toxic_sporebat', speed = '1' WHERE entry = '22140';
+UPDATE creature_template SET modelid_A = '11686', modelid_H = '11686', flags_extra = '128' WHERE entry = '22207';
+
+-- lurker
+UPDATE creature_model_info SET bounding_radius = '13', combat_reach = '20' WHERE modelid = '20216';
+UPDATE creature_template SET InhabitType = '3', ScriptName = 'boss_the_lurker_below' WHERE entry = '21865';
+UPDATE creature_template SET ScriptName = 'mob_coilfang_ambusher' WHERE entry = '21865';
+UPDATE creature_template SET ScriptName = 'mob_coilfang_guardian' WHERE entry = '21873';
Index: /unk/sql/updates/190_world_scripts.sql
===================================================================
--- /trunk/sql/updates/190_world_scripts.sql (revision 182)
+++  (revision )
@@ -1,7 +1,0 @@
-UPDATE creature_template SET ScriptName = 'boss_leotheras_the_blind' WHERE entry = '21215';
-UPDATE creature_template SET ScriptName = 'boss_leotheras_the_blind_demonform' WHERE entry = '21875';
-UPDATE creature_template SET ScriptName = 'mob_greyheart_spellbinder' WHERE entry = '21806';
-UPDATE creature_template SET ScriptName = 'mob_inner_demon' WHERE entry = '21857';
-
-UPDATE creature_template SET ScriptName = 'mob_toxic_sporebat', speed = '1' WHERE entry = '22140';
-UPDATE creature_template SET modelid_A = '11686', modelid_H = '11686', flags_extra = '128' WHERE entry = '22207';
