Skip to content

Commit 044c70d

Browse files
committed
[Spell] Add script for z level fix for [DND] TAR Pedestal npcs
npcs should be at: z = -8.66147 in shattrath
1 parent 86b7573 commit 044c70d

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

sql/scriptdev2/spell.sql

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,30 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
11971197

11981198
-- World Events
11991199
INSERT INTO spell_scripts(Id, ScriptName) VALUES
1200+
-- PTR
1201+
(47327,'spell_summon_pedestal_npc'),
1202+
(47347,'spell_summon_pedestal_npc'),
1203+
(47348,'spell_summon_pedestal_npc'),
1204+
(47349,'spell_summon_pedestal_npc'),
1205+
(47350,'spell_summon_pedestal_npc'),
1206+
(47351,'spell_summon_pedestal_npc'),
1207+
(47352,'spell_summon_pedestal_npc'),
1208+
(47353,'spell_summon_pedestal_npc'),
1209+
(47354,'spell_summon_pedestal_npc'),
1210+
(47355,'spell_summon_pedestal_npc'),
1211+
(47356,'spell_summon_pedestal_npc'),
1212+
(47357,'spell_summon_pedestal_npc'),
1213+
(47358,'spell_summon_pedestal_npc'),
1214+
(47359,'spell_summon_pedestal_npc'),
1215+
(47360,'spell_summon_pedestal_npc'),
1216+
(47361,'spell_summon_pedestal_npc'),
1217+
(47362,'spell_summon_pedestal_npc'),
1218+
(47363,'spell_summon_pedestal_npc'),
1219+
(47364,'spell_summon_pedestal_npc'),
1220+
(47365,'spell_summon_pedestal_npc'),
1221+
(47366,'spell_summon_pedestal_npc'),
1222+
(47367,'spell_summon_pedestal_npc'),
1223+
(47368,'spell_summon_pedestal_npc'),
12001224
-- Lunar Festival
12011225
(26286, 'spell_lunar_festival_firework'),
12021226
(26291, 'spell_lunar_festival_firework'),

src/game/AI/ScriptDevAI/scripts/world/spell_scripts.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,12 @@ struct InvisibleForAlive : public AuraScript
974974
}
975975
};
976976

977+
// 47327,47347,47348,47349,47350,47351,47352,47353,47354,47355,47356,47357,47358,47359,47360,47361,47362,47363,47364,47365,47366,47367,47368 - TAR Pedestal
978+
struct SummonPedestalNpc : public SpellScript
979+
{
980+
void OnDestTarget(Spell* spell) const override { spell->m_targets.m_destPos.z += 3.68333f; }
981+
};
982+
977983
void AddSC_spell_scripts()
978984
{
979985
RegisterSpellScript<CastFishingNet>("spell_cast_fishing_net");
@@ -1025,4 +1031,5 @@ void AddSC_spell_scripts()
10251031
RegisterSpellScript<RandomAggro>("spell_random_aggro");
10261032
RegisterSpellScript<RandomAggro1000000>("spell_random_aggro_1000000");
10271033
RegisterSpellScript<InvisibleForAlive>("spell_shroud_of_death");
1034+
RegisterSpellScript<SummonPedestalNpc>("spell_summon_pedestal_npc");
10281035
}

0 commit comments

Comments
 (0)