Core/Scripts: Fix quest Heroes of Old.

Closes #3703
This commit is contained in:
Discover-
2011-12-25 00:43:26 +01:00
parent c3e527da6d
commit f2ad757acd
2 changed files with 21 additions and 2 deletions

View File

@@ -1,5 +1,9 @@
UPDATE `gameobject_template` SET `ScriptName`='go_captain_tyralius_prison' WHERE `entry`=184588;
UPDATE `quest_template` SET `ReqSpellCast1`=0 WHERE `entry`=10422;
UPDATE `quest_template` SET `RequiredSpellCast1`=0 WHERE `id`=10422;
DELETE FROM `creature_text` WHERE `entry`=20787;
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
(20787,0,0,"You've saved me, fleshling! Ameer will hear of this noble act.",12,0,100,0,0,0,"Captain Tyralius");
(20787,0,0,"You've saved me, fleshling! Ameer will hear of this noble act.",12,0,100,0,0,0,"Captain Tyralius");
-- Heroes of Old
UPDATE `quest_template` SET `StartScript`=0,`CompleteScript`=0 WHERE `entry`=2702;
DELETE FROM `quest_start_scripts` WHERE `id`=2702;

View File

@@ -72,6 +72,13 @@ public:
/*######
## npc_fallen_hero_of_horde
######*/
enum HeroesOfOld
{
QUEST_HEROES_OF_OLD = 2702,
NPC_THUND_SPLITHOOF = 7750,
};
#define GOSSIP_H_F1 "Why are you here?"
#define GOSSIP_H_F2 "Continue story..."
@@ -159,6 +166,14 @@ public:
return true;
}
bool OnQuestAccept(Player* /*player*/, Creature* creature, Quest const* quest)
{
if (quest->GetQuestId() == QUEST_HEROES_OF_OLD)
creature->SummonCreature(NPC_THUND_SPLITHOOF, -10630.3f, -2987.05f, 28.96f, 4.54f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 9000000);
return true;
}
};
void AddSC_blasted_lands()