DB/Quest: Freedom to Ruul

Closes #7262

(cherry picked from commit 4dc91429dd)
This commit is contained in:
Killyana
2018-01-28 14:03:43 +01:00
committed by Shauren
parent c5870aed83
commit 30feaa06e8
2 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
DELETE FROM `creature_text` WHERE `CreatureID`=12818;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(12818, 0, 0, "Thank you for freeing me. Speak with my sister in Splintertree. I... I must find a place to rest...", 12, 0, 100, 0, 10000, 0, 8265, 0, "Ruul Snowhoof");
DELETE FROM `script_waypoint` WHERE `entry`=12818 AND `pointid`>20;
INSERT INTO `script_waypoint` (`entry`, `pointid`, `location_x`, `location_y`, `location_z`, `waittime`, `point_comment`) VALUES
(12818, 21, 3484.2211, -489.7181, 182.391, 0, ""),
(12818, 22, 3454.7424, -476.7681, 170.161, 0, ""),
(12818, 23, 3381.2749, -428.4134, 149.411, 0, ""),
(12818, 24, 3323.4501, -446.5041, 150.590, 0, ""),
(12818, 25, 3302.2722, -485.8791, 153.285, 0, ""),
(12818, 26, 3287.0722, -519.1887, 154.622, 0, ""),
(12818, 27, 3249.5512, -531.9198, 151.633, 5000, "The end"),
(12818, 28, 3249.5512, -531.9198, 151.633, 0, "The end");

View File

@@ -44,9 +44,13 @@ enum RuulSnowhoof
NPC_THISTLEFUR_TOTEMIC = 3922,
NPC_THISTLEFUR_PATHFINDER = 3926,
QUEST_FREEDOM_TO_RUUL = 6482,
GO_CAGE = 178147
GO_CAGE = 178147,
RUUL_SHAPECHANGE = 20514,
SAY_FINISH = 0
};
Position const RuulSnowhoofSummonsCoord[6] =
{
{ 3449.218018f, -587.825073f, 174.978867f, 4.714445f },
@@ -111,7 +115,9 @@ public:
me->SummonCreature(NPC_THISTLEFUR_URSA, RuulSnowhoofSummonsCoord[4], TEMPSUMMON_DEAD_DESPAWN, 60000);
me->SummonCreature(NPC_THISTLEFUR_PATHFINDER, RuulSnowhoofSummonsCoord[5], TEMPSUMMON_DEAD_DESPAWN, 60000);
break;
case 21:
case 27:
me->RemoveAurasDueToSpell(RUUL_SHAPECHANGE);
Talk(SAY_FINISH, player);
player->GroupEventHappens(QUEST_FREEDOM_TO_RUUL, me);
break;
}