fix(Script) Quest "Deactivating the Spire" (#9874)
* fix(Script) Quest "Deactivating the Spire" * Update go_scripts.cpp * Update go_scripts.cpp Co-authored-by: acidmanifesto <joshua.lee.betts@gmail.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1640365530283717518');
|
||||||
|
|
||||||
|
UPDATE `gameobject_template` SET `ScriptName` = "go_duskwither_spire_power_source" WHERE `entry` IN (180916, 180919, 180920);
|
||||||
@@ -1928,6 +1928,30 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*########
|
||||||
|
#### go_duskwither_spire_power_source
|
||||||
|
#####*/
|
||||||
|
|
||||||
|
enum DuskwitherSpirePowersource
|
||||||
|
{
|
||||||
|
NPC_POWER_SOURCE_INVISIBLE_BUNNY = 17984
|
||||||
|
};
|
||||||
|
|
||||||
|
class go_duskwither_spire_power_source : public GameObjectScript
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
go_duskwither_spire_power_source() : GameObjectScript("go_duskwither_spire_power_source") {}
|
||||||
|
|
||||||
|
bool OnGossipHello(Player* /*player*/, GameObject* go) override
|
||||||
|
{
|
||||||
|
if (Creature* bunny = go->FindNearestCreature(NPC_POWER_SOURCE_INVISIBLE_BUNNY, 1.0f))
|
||||||
|
{
|
||||||
|
bunny->DespawnOrUnsummon(0ms, 10s);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
void AddSC_go_scripts()
|
void AddSC_go_scripts()
|
||||||
{
|
{
|
||||||
// Ours
|
// Ours
|
||||||
@@ -1943,6 +1967,7 @@ void AddSC_go_scripts()
|
|||||||
new go_flames();
|
new go_flames();
|
||||||
new go_heat();
|
new go_heat();
|
||||||
new go_bear_trap();
|
new go_bear_trap();
|
||||||
|
new go_duskwither_spire_power_source();
|
||||||
|
|
||||||
// Theirs
|
// Theirs
|
||||||
new go_brewfest_music();
|
new go_brewfest_music();
|
||||||
|
|||||||
Reference in New Issue
Block a user