TrinityCore icon indicating copy to clipboard operation
TrinityCore copied to clipboard

Sunken Temple Instance (Put Working Forcefield & Working Secret of The Circle Quest & Spawn)

Open click opened this issue 15 years ago • 16 comments

CORE revision number : af0d7e415df2+ Database: TDB_335.11.37 Patches: None

Inside the instance of sunken temple there must be a forcefield that goes down when you killed the six troll bosses. And, There is a Idol and a mini Boss who spawns when you use the 6 pilars in the correct order.

Changes C++: Added the correct light effect when you touch all the statues in the correct order. "UseLastStatue()" and spawns the MiniBoss Atalarion & The Idol Added a control to remove the forcefield when the 6 troll bosses will dead.

Changes SQL: Inserts the Forcefield Change the IAs of the troll bosses from EventAI to SmartAI and add a SET state to send the dead to the C++ Script, Delete Atak'arion Mini Boss spawn (It will be spawned when use the statues in the correct order) Change The type & Faction of the Altar, now yo can complete the 3446 Quest.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

click avatar May 16 '11 22:05 click

Quote: ...now yo can complete the 3446 Quest... Wrong!! since this line exists:

INSERT INTO `gossip_menu_option` (`menu_id`,`id`,`option_icon`,`option_text`,`option_id`,`npc_option_npcflag`,`action_menu_id`,`action_poi_id`,`box_coded`,`box_money`,`box_text`) VALUES
(1288,0,0,'How could the altar and the statues be related?',1,1,0,0,0,0,'');

... the quest 3446 (Into the Depths) can't be completed in the sunken temple.

That gossip is valid but when you have already complete the quest 3446. only then you click the altar again, (script part) clicking the gossip (this time the gossip appear) and then the altar shows you the correct order you can click each statues above... (See http://www.wowpedia.org/Altar_of_Hakkar commentary: The Altar of Hakkar is located in Temple of Atal'Hakkar. Using this will focus a light reflecting off Atal'ai Statues, this will summon Atal'alarion.) (See too http://www.wowpedia.org/Quest:Into_the_Depths_(Sunken_Temple) note: Clicking on the statue [the altar] after completing this quest [the 3446] will show you the correct activation sequence for Secret of the Circle. (quest 3447)

After you click all the statues in the correct sequence you have access to the Idol of Hakkar, protected by the mini boss Atal'alarion, and you can now complete the quest 3447 (Secret of the circle)

More info: http://old.wowhead.com/quest=3446 (Into the Depths) http://old.wowhead.com/object=148836 (Altar of Hakkar)

http://old.wowhead.com/quest=3447 (Secret of the Circle) http://www.wowhead.com/?object=148830 (Atal'ai Statues) http://www.wowhead.com/?npc=8580 (Atal'alarion) http://old.wowhead.com/object=148838 (Idol of Hakkar)

http://www.wowpedia.org/Quest:Into_the_Depths_(Sunken_Temple) http://www.wowpedia.org/Altar_of_Hakkar

durotar avatar Aug 20 '11 01:08 durotar

Both "Into the Depths" and "Secret of the Circle" are still broken at the altar as of Version: 3.3.5a (12340) Core revision: Trinity Core 14b3ed91647b+ Database revision: TDB 335.11.42

Loginisalreadytaken avatar Sep 10 '11 22:09 Loginisalreadytaken

Not completely sure on the forcefiel (THINK its NOT there) but the quests at the altar are still broken and miniboss is there from the start (don't see an idol) sequence IS working on the statues (light won't go on unless it the right one inthe sequence)

Version: 3.3.5a (12340) Core revision: Trinity Core e5c0be0a29e1+ Database revision: TDB 335.11.43

TheMaaster avatar Nov 01 '11 08:11 TheMaaster

I couldn't get this quest to work. I got all the statues to light up except the south one. Went through all of them again and can't get them to change. I did die during the process and had to come back into the instance but it didn't reset and I was doing it solo if that matters.

2012-12-22 09:23:55 -0800 (3f4c6a9d45a5+) (Win64, Release) AHbot 3f4c6a9d45a5994bbf5d1dff42038cd3ab6f3535 TDB_full_335.49_2012_09_16 (+updates)

Zaranthos avatar Jan 24 '13 16:01 Zaranthos

Please reopen, quest still not working on b3bdcc61ee757fd01a3356cd8b1b2f11e2ca712a

nelegalno avatar Jul 19 '13 20:07 nelegalno

i have the working forcefield when you killed the six troll bosses. I'm working in the secret of the circle quest (almost complete). I Attach the code for the Troll Bosses and forcefield here.

/*Sunken Temple Walkthrought*/
/*www.wow-pro.com/book/export/html/592*/

/*Insert the ForceField spawn in the DB*/
SET @GUID = 300001; --Put from TDB team
delete from `gameobject` where guid = @GUID;
insert into `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) values
(@GUID,149431,109,1,1,-518.154,-85.2353,-74.488,3.14159,0,0,0,0,43200,100,1);

/*Activate SmartAI to the Troll Boss Gasher for the Dead Event*/
delete from `creature_template` where `entry` = 5713;
insert into `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction_A`, `faction_H`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `WDBVerified`) values
(5713,0,0,0,0,0,6698,0,0,0,'Gasher',NULL,NULL,0,49,49,0,37,37,0,1,1.14286,1,1,83,110,0,200,2.4,1183,1301,1,32832,2048,8,0,0,0,0,0,57,84,19,6,0,5713,5713,0,0,0,0,0,0,0,15580,0,0,0,0,0,0,0,0,0,377,497,'SmartAI',1,3,1,3,1,1,0,6181,20606,0,0,0,0,0,1,8388624,0,'',12340);

/*Send EventID 2 in the Instance upon the death of each Troll Boss*/
delete from `smart_scripts` where `entryorguid` = 5712 and `id`=2 and `source_type` = 0;
delete from `smart_scripts` where `entryorguid` = 5713 and `id`=0 and `source_type` = 0;
delete from `smart_scripts` where `entryorguid` = 5714 and `id`=2 and `source_type` = 0;
delete from `smart_scripts` where `entryorguid` = 5715 and `id`=14 and `source_type` = 0;
delete from `smart_scripts` where `entryorguid` = 5716 and `id`=2 and `source_type` = 0;
delete from `smart_scripts` where `entryorguid` = 5717 and `id`=4 and `source_type` = 0;
insert into `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) values
(5712,0,2,0,6,0,100,3,0,0,0,0,34,2,1,0,0,0,0,0,0,0,0,0,0,0,0,'Zolo - Set Death (ID2) in the Instance'),
(5713,0,0,0,6,0,100,3,0,0,0,0,34,2,1,0,0,0,0,0,0,0,0,0,0,0,0,'Gasher - Set Death (ID2) in the Instance'),
(5714,0,2,0,6,0,100,3,0,0,0,0,34,2,1,0,0,0,0,0,0,0,0,0,0,0,0,'Loro - Set Death (ID2) in the Instance'),
(5715,0,14,0,6,0,100,3,0,0,0,0,34,2,1,0,0,0,0,0,0,0,0,0,0,0,0,'Hukku - Set Death (ID2) in the Instance'),
(5716,0,2,0,6,0,100,3,0,0,0,0,34,2,1,0,0,0,0,0,0,0,0,0,0,0,0,'Zul\'Lor - Set Death (ID2) in the Instance'),
(5717,0,4,0,6,0,100,3,0,0,0,0,34,2,1,0,0,0,0,0,0,0,0,0,0,0,0,'Mijan - Set Death (ID2) in the Instance');
diff --git a/src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp b/src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp
index d395bfd..ad8e49c 100644
--- a/src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp
+++ b/src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp
@@ -37,8 +37,8 @@ enum Gameobject
     GO_ATALAI_STATUE6           = 148835,
     GO_ATALAI_IDOL              = 148836,
     GO_ATALAI_LIGHT1            = 148883,
-    GO_ATALAI_LIGHT2            = 148937
-
+    GO_ATALAI_LIGHT2            = 148937,
+    GO_FORCEFIELD              = 149431
 };

 enum CreatureIds
@@ -69,7 +69,8 @@ public:
         uint64 GOAtalaiStatue5;
         uint64 GOAtalaiStatue6;
         uint64 GOAtalaiIdol;
-
+       uint64 GOForcefield;
+       
         uint32 State;

         bool s1;
@@ -78,7 +79,8 @@ public:
         bool s4;
         bool s5;
         bool s6;
-
+       int  TBdeaths;
+       
         void Initialize() OVERRIDE
         {
             GOAtalaiStatue1 = 0;
@@ -88,15 +90,18 @@ public:
             GOAtalaiStatue5 = 0;
             GOAtalaiStatue6 = 0;
             GOAtalaiIdol = 0;
-
+           GOForcefield = 0;
+           
             State = 0;
-
+           TBdeaths = 0;
+           
             s1 = false;
             s2 = false;
             s3 = false;
             s4 = false;
             s5 = false;
             s6 = false;
+           
         }

         void OnGameObjectCreate(GameObject* go) OVERRIDE
@@ -110,6 +115,7 @@ public:
                 case GO_ATALAI_STATUE5: GOAtalaiStatue5 = go->GetGUID();   break;
                 case GO_ATALAI_STATUE6: GOAtalaiStatue6 = go->GetGUID();   break;
                 case GO_ATALAI_IDOL:    GOAtalaiIdol = go->GetGUID();      break;
+               case GO_FORCEFIELD:     GOForcefield = go->GetGUID();      break;
             }
         }

@@ -172,6 +178,14 @@ public:
                 }
                 break;
              }
+            if(TBdeaths==6) //All TrollBosses Dead
+               {
+               if(GameObject* pForcefield = instance->GetGameObject(GOForcefield))
+                   {
+                       pForcefield->SetUInt32Value(GAMEOBJECT_FLAGS, 33);
+                       pForcefield->SetGoState(GO_STATE_ACTIVE);
+                   }            
+               }
          };

         void UseStatue(GameObject* go)
@@ -195,10 +209,13 @@ public:

          void SetData(uint32 type, uint32 data) OVERRIDE
          {
-            if (type == EVENT_STATE)
-                State = data;
-         }
-
+           switch(type)
+           {   
+               case EVENT_STATE:               State = data; break;
+               case TROLLBOSS_DEATH:           if(data)TBdeaths++; break;
+           }
+        }
+        
          uint32 GetData(uint32 type) const OVERRIDE
          {
             if (type == EVENT_STATE)
diff --git a/src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h b/src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h
index 394b1e3..6765ab3 100644
--- a/src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h
+++ b/src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h
@@ -19,12 +19,7 @@
 #ifndef DEF_SUNKEN_TEMPLE_H
 #define DEF_SUNKEN_TEMPLE_H

-#define TROLLBOSS1_DEATH 1
-#define TROLLBOSS2_DEATH 2
-#define TROLLBOSS3_DEATH 3
-#define TROLLBOSS4_DEATH 4
-#define TROLLBOSS5_DEATH 5
-#define TROLLBOSS6_DEATH 6
+#define TROLLBOSS_DEATH 2
 #define JAMMALAN_DEATH 7
 #define MORPHAZ_DEATH 8
 #define HAZZAS_DEATH 9

neurorulez avatar Mar 15 '14 08:03 neurorulez

@neurorulez Nice work! Can anyone test this?

Kittnz avatar Mar 15 '14 09:03 Kittnz

Yes, you can test it.

Aokromes avatar Mar 15 '14 10:03 Aokromes

@neurorulez can you create a PR for this?

Aokromes avatar Jun 25 '14 05:06 Aokromes

The suggested fix from @neurorulez is quite a bit outdated, at least when it comes to the DB table creature_template entries (too many values and some values in the wrong place). I noticed this when checking if it would be easy to change the DELETE FROM/INSERT INTO to an UPDATE query. The only real change looks like adding the SmartAI value to that NPC (didn't have a 2 year old DB set up to compare with). I haven't checked the other tables, but the other SQL lines are possibly out of sync too.

ghost avatar Jan 21 '16 19:01 ghost

Maybe this?

diff --git a/src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp b/src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp
index ca944f7..ec7ef43 100644
--- a/src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp
+++ b/src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp
@@ -37,7 +37,8 @@ enum Gameobject
     GO_ATALAI_STATUE6           = 148835,
     GO_ATALAI_IDOL              = 148836,
     GO_ATALAI_LIGHT1            = 148883,
-    GO_ATALAI_LIGHT2            = 148937
+    GO_ATALAI_LIGHT2            = 148937,
+    GO_FORCEFIELD               = 149431

 };

@@ -62,6 +63,7 @@ public:
         {
             SetHeaders(DataHeader);
             State = 0;
+            TBDeaths = 0;

             s1 = false;
             s2 = false;
@@ -78,6 +80,7 @@ public:
         ObjectGuid GOAtalaiStatue5;
         ObjectGuid GOAtalaiStatue6;
         ObjectGuid GOAtalaiIdol;
+        ObjectGuid GOForceField;

         uint32 State;

@@ -88,6 +91,8 @@ public:
         bool s5;
         bool s6;

+        int TBdeaths;
+
         void OnGameObjectCreate(GameObject* go) override
         {
             switch (go->GetEntry())
@@ -99,6 +104,7 @@ public:
                 case GO_ATALAI_STATUE5: GOAtalaiStatue5 = go->GetGUID();   break;
                 case GO_ATALAI_STATUE6: GOAtalaiStatue6 = go->GetGUID();   break;
                 case GO_ATALAI_IDOL:    GOAtalaiIdol = go->GetGUID();      break;
+                case GO_FORCEFIELD:     GOForceField = go->GetGUID();      break;
             }
         }

@@ -161,6 +167,13 @@ public:
                 }
                 break;
              }
+             if(TBDeaths == 6)
+             {
+                 if(GameObject* go = instance->GetGameObject(GOForceField))
+                 {
+                     go->SetGoState(GO_STATE_ACTIVE);
+                 }
+             }
          };

         void UseStatue(GameObject* go)
@@ -184,8 +197,12 @@ public:

          void SetData(uint32 type, uint32 data) override
          {
-            if (type == EVENT_STATE)
-                State = data;
+            switch(type)
+            {
+                case EVENT_STATE:        State = data;    break;
+                case TROLLBOSS_DEATH: if(data)TBDeaths++; break;
+
+            }
          }

          uint32 GetData(uint32 type) const override
diff --git a/src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h b/src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h
index cf7924f..5a4e4eb 100644
--- a/src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h
+++ b/src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h
@@ -21,12 +21,7 @@

 #define DataHeader "ST"

-#define TROLLBOSS1_DEATH 1
-#define TROLLBOSS2_DEATH 2
-#define TROLLBOSS3_DEATH 3
-#define TROLLBOSS4_DEATH 4
-#define TROLLBOSS5_DEATH 5
-#define TROLLBOSS6_DEATH 6
+#define TROLLBOSS_DEATH 2
 #define JAMMALAN_DEATH 7
 #define MORPHAZ_DEATH 8
 #define HAZZAS_DEATH 9
SET @GUID := 300185;
DELETE FROM `gameobject` WHERE guid = @GUID;
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneid`, `areaid`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
(@GUID,149431,109,0,0,1,1,-518.154,-85.2353,-74.488,3.14159,0,0,0,0,43200,100,1);

-- Zolo SAI
SET @ZOLO := 5712;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ZOLO AND `id`=2 AND `source_type` = 0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ZOLO, 0, 2, 0, 6, 0, 100, 0, 0, 0, 0, 0, 34, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Zolo - On Just Died - Set Instance Data 2 to 1');

-- Gasher SAI
SET @GASHER := 5713;
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = @GASHER;
DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = @GASHER);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@GASHER, 0, 0, 0, 6, 0, 100, 0, 0, 0, 0, 0, 34, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Gasher - On Just Died - Set Instance Data 2 to 1');

-- LORO SAI
SET @LORO := 5714;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @LORO AND `id`=2 AND `source_type` = 0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@LORO, 0, 2, 0, 6, 0, 100, 0, 0, 0, 0, 0, 34, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Loro - On Just Died - Set Instance Data 2 to 1');

-- HUKKU SAI
SET @HUKKU := 5715;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @HUKKU AND `id`=14 AND `source_type` = 0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@HUKKU, 0, 14, 0, 6, 0, 100, 0, 0, 0, 0, 0, 34, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'HUKKU - On Just Died - Set Instance Data 2 to 1');

-- ZUL'LOR SAI
SET @ZUL := 5716;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ZUL AND `id`=2 AND `source_type` = 0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ZUL, 0, 2, 0, 6, 0, 100, 0, 0, 0, 0, 0, 34, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Zul\'Lor - On Just Died - Set Instance Data 2 to 1');

-- MIJAN SAI
SET @MIJAN := 5717;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @MIJAN AND `id`=4 AND `source_type` = 0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@MIJAN, 0, 4, 0, 6, 0, 100, 0, 0, 0, 0, 0, 34, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Mijan - On Just Died - Set Instance Data 2 to 1');

CrisPj avatar Jan 21 '16 19:01 CrisPj

what if the server restarts? all counters will be resetet to 0 :/

Lumber-Jack-2 avatar Jan 21 '16 19:01 Lumber-Jack-2

Notice that Atal'alarion <Guardian of the Idol> (http://www.wowhead.com/npc=8580/atalalarion#comments:id=78126) should be spawned by script and not be spawned in the database:

This boss spawns after you activate the 6 statues on the floor above him in the correct
order, along with a large snake statue used for a quest - www.wowhead.com/object=148838

He has been spawned by default for as long as I can remember in TDB (since I started using it in 2013).

Along with Atal'alarion, the Idol of Hakkar (http://www.wowhead.com/object=148838/idol-of-hakkar#comments) should also be spawned by script. It is not spawned in DB nor by existing script:

The idol will only appear after all six of the Atal'ai Statues have been activated
in the order indicated by the Altar of Hakkar (S, N, SW, SE, NW, NE).
After doing this, both the idol and Atal'alarion will spawn in the pit.

ghost avatar Jan 21 '16 23:01 ghost

the forcefield has nothing to do with the quest pointed here. it is another room

durotar avatar Jan 24 '16 01:01 durotar

OK, if that forcefield is still a documented issue, it will need a separate PR or SQL to repair it (assuming that PR #16367 will fix the quest "Secret of The Circle" and the spawns in the pit).

ghost avatar Jan 24 '16 11:01 ghost

@CreshandKesh : I simplified (and shortened) your SAI a bit, so it becomes easier to read:

-- Forcefield in front of the room "Lair of the Chosen"
SET @FORCEFIELD := 300185;
DELETE FROM `gameobject` WHERE `guid`= @FORCEFIELD;
INSERT INTO `gameobject` (`guid`,`id`,`map`,`zoneid`,`areaid`,`spawnMask`,`phaseMask`,`position_x`,`position_y`,`position_z`,`orientation`,`rotation0`,`rotation1`,`rotation2`,`rotation3`,`spawntimesecs`,`animprogress`,`state`) VALUES
(@FORCEFIELD,149431,109,0,0,1,1,-518.154,-85.2353,-74.488,3.14159,0,0,0,0,43200,100,1);

-- SAI for forcefield guards Zolo, Gasher, Loro, Hukku, Zul'lor and Mijan
SET @ZOLO   := 5712;
SET @GASHER := 5713;
SET @LORO   := 5714;
SET @HUKKU  := 5715;
SET @ZULLOR := 5716;
SET @MIJAN  := 5717;

UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry`= @GASHER;

DELETE FROM `smart_scripts` WHERE `entryorguid` = @GASHER AND `source_type` = 0 AND `id` =  0;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @MIJAN  AND `source_type` = 0 AND `id` =  4;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @HUKKU  AND `source_type` = 0 AND `id` = 14;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@ZOLO,@LORO,@ZULLOR) AND `source_type`= 0 AND `id`= 2;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ZOLO,  0, 2,0, 6, 0,100,0,0,0,0,0, 34, 2, 1, 0,0,0,0,0,0,0,0,0,0,0,0, 'Zolo - On Just Died - Set Instance Data 2 to 1'),
(@GASHER,0, 0,0, 6, 0,100,0,0,0,0,0, 34, 2, 1, 0,0,0,0,0,0,0,0,0,0,0,0, 'Gasher - On Just Died - Set Instance Data 2 to 1'),
(@LORO,  0, 2,0, 6, 0,100,0,0,0,0,0, 34, 2, 1, 0,0,0,0,0,0,0,0,0,0,0,0, 'Loro - On Just Died - Set Instance Data 2 to 1'),
(@HUKKU, 0,14,0, 6, 0,100,0,0,0,0,0, 34, 2, 1, 0,0,0,0,0,0,0,0,0,0,0,0, 'Hukku - On Just Died - Set Instance Data 2 to 1'),
(@ZULLOR 0, 2,0, 6, 0,100,0,0,0,0,0, 34, 2, 1, 0,0,0,0,0,0,0,0,0,0,0,0, 'Zul''Lor - On Just Died - Set Instance Data 2 to 1'),
(@MIJAN, 0, 4,0, 6, 0,100,0,0,0,0,0, 34, 2, 1, 0,0,0,0,0,0,0,0,0,0,0,0, 'Mijan - On Just Died - Set Instance Data 2 to 1');

I have not tested it yet, but would like to know how On Just Died - Set Instance Data 2 to 1 works. I would like to test your solution later, just need to finish a couple of my PRs first.

ghost avatar Jan 25 '16 03:01 ghost