mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/Scripts: Script for Frostblade Shrine to start The Cleansing quest.
Quest is not yet scripted.
This commit is contained in:
2
sql/updates/world/2012_06_05_03_world_script.sql
Normal file
2
sql/updates/world/2012_06_05_03_world_script.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- Frostblade Shrine Script for Quest The Cleansing
|
||||
UPDATE `gameobject_template` SET `ScriptName`= 'go_frostblade_shrine' WHERE `entry`=186649;
|
||||
@@ -1245,6 +1245,33 @@ class go_veil_skith_cage : public GameObjectScript
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## go_frostblade_shrine
|
||||
######*/
|
||||
|
||||
enum TheCleansing
|
||||
{
|
||||
QUEST_THE_CLEANSING_HORDE = 11317,
|
||||
QUEST_THE_CLEANSING_ALLIANCE = 11322,
|
||||
SPELL_CLEANSING_SOUL = 43351,
|
||||
};
|
||||
|
||||
class go_frostblade_shrine : public GameObjectScript
|
||||
{
|
||||
public:
|
||||
go_frostblade_shrine() : GameObjectScript("go_frostblade_shrine") { }
|
||||
|
||||
bool OnGossipHello(Player* player, GameObject* go)
|
||||
{
|
||||
if (player->GetQuestStatus(QUEST_THE_CLEANSING_HORDE) == QUEST_STATUS_INCOMPLETE || player->GetQuestStatus(QUEST_THE_CLEANSING_ALLIANCE) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
go->UseDoorOrButton(10);
|
||||
player->CastSpell(player,SPELL_CLEANSING_SOUL);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_go_scripts()
|
||||
{
|
||||
new go_cat_figurine;
|
||||
@@ -1285,4 +1312,5 @@ void AddSC_go_scripts()
|
||||
new go_gjalerbron_cage;
|
||||
new go_large_gjalerbron_cage;
|
||||
new go_veil_skith_cage;
|
||||
new go_frostblade_shrine;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user