mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(DB/Script): Violet Hold Door not opening (#13958)
This commit is contained in:
@@ -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;
|
||||
@@ -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<HighGuid::GameObject>(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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user