Core/Scripts: Script for Frostblade Shrine to start The Cleansing quest.

Quest is not yet scripted.
This commit is contained in:
Malcrom
2012-06-05 23:32:09 -02:30
parent 4ca77c5b0b
commit f08bc7d502
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
-- Frostblade Shrine Script for Quest The Cleansing
UPDATE `gameobject_template` SET `ScriptName`= 'go_frostblade_shrine' WHERE `entry`=186649;

View File

@@ -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;
}