TrinityCore
zone_draenor_shadowmoon_valley.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 "PhasingHandler.h"
19#include "Player.h"
20#include "QuestDef.h"
21#include "ScriptMgr.h"
22#include "ScriptedCreature.h"
23#include "ScriptedGossip.h"
24#include "SpellScript.h"
25
26// 79243 - Baros Alexston
28{
29 // Quest
31
32 // Gossip
34
35 // Text
37
38 // Spells
42};
43
44Position const GarrisonLevelOneCreationPlayerPosition = { 1904.58f, 312.906f, 88.9542f, 4.303615f };
45
47{
48 npc_baros_alexston(Creature* creature) : ScriptedAI(creature) { }
49
50 bool OnGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override
51 {
52 if (gossipListId == GOSSIP_OPTION_ESTABLISH_GARRISON)
53 {
54 CloseGossipMenuFor(player);
55 player->CastSpell(player, SPELL_QUEST_34586_KILLCREDIT, true);
59
61 }
62
63 return true;
64 }
65
66 void OnQuestAccept(Player* player , Quest const* quest) override
67 {
70 }
71};
72
74{
76};
uint32_t uint32
Definition: Define.h:142
#define RegisterCreatureAI(ai_name)
Definition: ScriptMgr.h:1380
void CloseGossipMenuFor(Player *player)
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:56
static bool OnConditionChange(WorldObject *object, bool updateVisibility=true)
uint32 GetQuestId() const
Definition: QuestDef.h:587
void NearTeleportTo(Position const &pos, bool casting=false)
Definition: Unit.cpp:12327
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition: Object.cpp:2896
void OnQuestAccept(Player *player, Quest const *quest) override
npc_baros_alexston(Creature *creature)
bool OnGossipSelect(Player *player, uint32, uint32 gossipListId) override
@ SPELL_CREATE_GARRISON_SHADOWMOON_VALLEY_ALLIANCE
@ GOSSIP_OPTION_ESTABLISH_GARRISON
@ SPELL_DESPAWN_ALL_SUMMONS_GARRISON_INTRO_ONLY
Position const GarrisonLevelOneCreationPlayerPosition
void AddSC_draenor_shadowmoon_valley()