From ed77a2427f58bd7d4a59178859aca260ed26d2b8 Mon Sep 17 00:00:00 2001 From: Grz3s Date: Tue, 12 Nov 2024 00:15:55 +0100 Subject: [PATCH] Icecrown: Bloodstained Stone Invisibility added --- sql/scriptdev2/scriptdev2.sql | 1 + .../ScriptDevAI/scripts/northrend/icecrown.cpp | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/sql/scriptdev2/scriptdev2.sql b/sql/scriptdev2/scriptdev2.sql index b128870572b..cff7d9197cb 100644 --- a/sql/scriptdev2/scriptdev2.sql +++ b/sql/scriptdev2/scriptdev2.sql @@ -1134,6 +1134,7 @@ UPDATE creature_template SET ScriptName='npc_infantry' WHERE entry IN (31701,318 UPDATE creature_template SET ScriptName='npc_father_kamaros' WHERE entry IN (31279,32800); UPDATE creature_template SET ScriptName='npc_saronite_mine_slave' WHERE entry=31397; UPDATE creature_template SET ScriptName='npc_grand_admiral_westwind' WHERE entry=29621; +UPDATE gameobject_template SET ScriptName='go_bloodstained_stone' WHERE entry IN (194023,194024,193980); /* IRONFORGE */ diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp index bbe61729321..e97c7c8bce8 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp @@ -934,6 +934,19 @@ bool EffectDummyCreature_npc_grand_admiral_westwind(Unit* pCaster, uint32 uiSpel return false; } +/*###### +## go_bloodstained_stone +######*/ + +struct go_bloodstained_stone : public GameObjectAI +{ + go_bloodstained_stone(GameObject* go) : GameObjectAI(go) + { + go->GetVisibilityData().SetInvisibilityMask(9, true); + go->GetVisibilityData().AddInvisibilityValue(9, 100); + } +}; + /*###### ## spell_create_lance - 63845 ######*/ @@ -1325,6 +1338,11 @@ void AddSC_icecrown() pNewScript->pEffectDummyNPC = &EffectDummyCreature_npc_grand_admiral_westwind; pNewScript->RegisterSelf(); + pNewScript = new Script; + pNewScript->Name = "go_bloodstained_stone"; + pNewScript->GetGameObjectAI = &GetNewAIInstance; + pNewScript->RegisterSelf(); + RegisterSpellScript("spell_create_lance"); RegisterSpellScript("spell_grab_captured_crusader"); RegisterSpellScript("spell_drop_off_captured_crusader");