TrinityCore
Loading...
Searching...
No Matches
zone_hinterlands.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18/* ScriptData
19SDName: Hinterlands
20SD%Complete: 100
21SDComment: Quest support:
22SDCategory: The Hinterlands
23EndScriptData */
24
25/* ContentData
26EndContentData */
27
28#include "MotionMaster.h"
29#include "ScriptMgr.h"
30#include "ScriptedCreature.h"
31#include "WaypointDefines.h"
32
33/*######
34## npc_sharpbeak used by Entrys 43161 & 51125
35######*/
36
44
46{
48 {
49 { 1, -68.80193f, -4034.235f, 123.6844f },
50 { 2, -62.2031f, -4031.36f, 132.727f },
51 { 3, -48.5851f, -4008.04f, 156.977f },
52 { 4, -26.2691f, -3987.88f, 176.755f },
53 { 5, 11.5087f, -3960.86f, 203.561f },
54 { 6, 45.0087f, -3922.58f, 236.672f },
55 { 7, 75.4427f, -3856.91f, 255.672f },
56 { 8, 74.8351f, -3768.84f, 279.839f },
57 { 9, -53.0104f, -3582.62f, 287.755f },
58 { 10, -169.123f, -3582.08f, 282.866f },
59 { 11, -241.8403f, -3625.01f, 247.4203f }
60 },
63};
64
66{
68 {
69 { 1, -241.606f, -3627.713f, 236.61870f },
70 { 2, -235.6163f, -3624.076f, 239.6081f },
71 { 3, -226.8698f, -3623.929f, 244.8882f },
72 { 4, -193.6406f, -3618.776f, 244.8882f },
73 { 5, -149.7292f, -3613.349f, 244.8882f },
74 { 6, -103.8976f, -3623.828f, 238.0368f },
75 { 7, -41.33681f, -3710.568f, 232.4109f },
76 { 8, 6.201389f, -3739.243f, 214.2869f },
77 { 9, 37.44097f, -3773.431f, 189.4650f },
78 { 10, 44.21875f, -3884.991f, 177.7446f },
79 { 11, 39.81424f, -3934.679f, 168.1627f },
80 { 12, 32.17535f, -3983.781f, 166.1228f },
81 { 13, 21.34896f, -4005.293f, 162.9598f },
82 { 14, -5.734375f, -4028.695f, 149.0161f },
83 { 15, -23.23611f, -4040.689f, 140.1189f },
84 { 16, -35.45139f, -4047.543f, 133.2071f },
85 { 17, -59.21181f, -4051.257f, 128.0297f },
86 { 18, -76.90625f, -4040.207f, 126.0433f },
87 { 19, -77.51563f, -4022.026f, 123.2135f }
88 },
91};
92
94{
95public:
96 npc_sharpbeak() : CreatureScript("npc_sharpbeak") { }
97
99 {
101
102 void PassengerBoarded(Unit* /*who*/, int8 /*seatId*/, bool apply) override
103 {
104 if (!apply)
105 return;
106
107 switch (me->GetEntry())
108 {
111 break;
114 break;
115 }
116 }
117
118 void WaypointPathEnded(uint32 /*pointId*/, uint32 pathId) override
119 {
120 if (pathId == PATH_HARDCODED_ID)
121 {
123 }
124 }
125 };
126
127 CreatureAI* GetAI(Creature* creature) const override
128 {
129 return new npc_sharpbeak_AI(creature);
130 }
131};
132
134{
135 new npc_sharpbeak();
136}
int8_t int8
Definition Define.h:152
uint32_t uint32
Definition Define.h:154
Creature *const me
Definition CreatureAI.h:63
void MovePath(uint32 pathId, bool repeatable, Optional< Milliseconds > duration={}, Optional< float > speed={}, MovementWalkRunSpeedSelectionMode speedSelectionMode=MovementWalkRunSpeedSelectionMode::Default, Optional< std::pair< Milliseconds, Milliseconds > > waitTimeRangeAtPathEnd={}, Optional< float > wanderDistanceAtPathEnds={}, Optional< bool > followPathBackwardsFromEndToStart={}, Optional< bool > exactSplinePath={}, bool generatePath=true, Optional< MovementFadeObject > fadeObject={}, Scripting::v2::ActionResultSetter< MovementStopReason > &&scriptResult={})
uint32 GetEntry() const
Definition Object.h:89
SpellCastResult DoCast(uint32 spellId)
Definition UnitAI.cpp:89
Definition Unit.h:635
MotionMaster * GetMotionMaster()
Definition Unit.h:1723
CreatureAI * GetAI(Creature *creature) const override
ScriptedAI(Creature *creature, uint32 scriptId=0) noexcept
void PassengerBoarded(Unit *, int8, bool apply) override
== Fields =======================================
void WaypointPathEnded(uint32, uint32 pathId) override
WaypointPath const jinthaalorPath
void AddSC_hinterlands()
WaypointPath const campPath
@ NPC_SHARPBEAK_CAMP
@ PATH_HARDCODED_ID
@ SPELL_EJECT_ALL_PASSENGERS
@ NPC_SHARPBEAK_JINTHAALOR