diff --git a/data/sql/updates/pending_db_world/rev_1669573700722721000.sql b/data/sql/updates/pending_db_world/rev_1669573700722721000.sql new file mode 100644 index 000000000..6249769f9 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1669573700722721000.sql @@ -0,0 +1,6 @@ +-- Changed Violet Hold door to Smart_Script +DELETE FROM `smart_scripts` WHERE `entryorguid` = 193020; +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +('193020','1','0','0','70','0','100','0','2','0','0','0','0','9','0','0','0','0','0','0','14','61606','193019','0','0','0','0','0','0',' - On Gameobject State Changed - Activate Gameobject'); + +UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI', `ScriptName` = '' WHERE `entry` = 193020; diff --git a/src/server/scripts/Northrend/VioletHold/violet_hold.cpp b/src/server/scripts/Northrend/VioletHold/violet_hold.cpp index 2db5c1b4d..21e61c017 100644 --- a/src/server/scripts/Northrend/VioletHold/violet_hold.cpp +++ b/src/server/scripts/Northrend/VioletHold/violet_hold.cpp @@ -1173,21 +1173,6 @@ public: } }; -class go_violet_hold_gate_lever : public GameObjectScript -{ -public: - go_violet_hold_gate_lever() : GameObjectScript("go_violet_hold_gate_lever") { } - - bool OnGossipHello(Player* player, GameObject* go) override - { - if (GameObject* gate = go->GetMap()->GetGameObject(ObjectGuid::Create(193019, 61606))) - if (gate->getLootState() == GO_READY) - gate->UseDoorOrButton(0, false, player); - - return false; - } -}; - void AddSC_violet_hold() { new go_vh_activation_crystal(); @@ -1205,5 +1190,4 @@ void AddSC_violet_hold() new npc_azure_stalker(); new spell_destroy_door_seal(); - new go_violet_hold_gate_lever(); }