TrinityCore
Loading...
Searching...
No Matches
zone_frostfire_ridge.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#include "GameObject.h"
19#include "GameObjectAI.h"
20#include "PhasingHandler.h"
21#include "Player.h"
22#include "QuestDef.h"
23#include "ScriptMgr.h"
24
25// 233664 - Master Surveyor
35
36Position const GarrisonLevelOneCreationPlayerPosition = { 5568.66f, 4635.45f, 146.61f, 5.079972743988037109f };
37
38// 233664 - Master Surveyor
40{
42
43 bool OnGossipHello(Player* player) override
44 {
46 {
48 player->CastSpell(player, SPELL_QUEST_34378_KILLCREDIT, true);
52
53 return true;
54 }
55
56 return false;
57 }
58};
59
@ QUEST_STATUS_INCOMPLETE
Definition QuestDef.h:150
#define RegisterGameObjectAI(ai_name)
Definition ScriptMgr.h:1410
GameObject *const me
void UseDoorOrButton(uint32 time_to_restore=0, bool alternative=false, Unit *user=nullptr)
static bool OnConditionChange(WorldObject *object, bool updateVisibility=true)
QuestStatus GetQuestStatus(uint32 quest_id) const
Definition Player.cpp:15962
void NearTeleportTo(TeleportLocation const &target, bool casting=false)
Definition Unit.cpp:12958
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition Object.cpp:2217
bool OnGossipHello(Player *player) override
go_master_surveyor(GameObject *go)
@ SPELL_QUEST_34378_KILLCREDIT
@ SPELL_CREATE_GARRISON_FROSTFIRE_RIDGE_HORDE
@ QUEST_ESTABLISH_YOUR_GARRISON_HORDE
void AddSC_frostfire_ridge()
Position const GarrisonLevelOneCreationPlayerPosition