19#define GOSSIP_HELLO_DEMO1 "Build catapult."
20#define GOSSIP_HELLO_DEMO2 "Build demolisher."
21#define GOSSIP_HELLO_DEMO3 "Build siege engine."
22#define GOSSIP_HELLO_DEMO4 "I cannot build more!"
109 if (creature->IsQuestGiver())
110 player->PrepareQuestMenu(creature->GetGUID());
126 player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
132 player->CLOSE_GOSSIP_MENU();
180 if (creature->IsQuestGiver())
181 player->PrepareQuestMenu(creature->GetGUID());
188 for (
uint8 i = 0; i < graveyard.size(); i++)
189 if (graveyard[i]->GetControlTeamId() == player->GetTeamId())
192 player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
198 player->CLOSE_GOSSIP_MENU();
204 for (
uint8 i = 0; i < gy.size(); i++)
207 player->TeleportTo(safeLoc->map_id, safeLoc->x, safeLoc->y, safeLoc->z, 0);
236 if (creature->IsQuestGiver())
237 player->PrepareQuestMenu(creature->GetGUID());
251 player->SendUpdateWorldState(4354, time(NULL) + timer);
265 player->CLOSE_GOSSIP_MENU();
330 if (creature->IsVendor())
333 player->PlayerTalkClass->GetGossipMenu().AddGossipMenuItemData(0, 0, 0);
339 if (creature->IsQuestGiver())
344 QuestMenu& qm = player->PlayerTalkClass->GetQuestMenu();
347 for (QuestRelations::const_iterator i = objectQIR.first; i != objectQIR.second; ++i)
349 uint32 questId = i->second;
350 QuestStatus status = player->GetQuestStatus(questId);
359 for (QuestRelations::const_iterator i = objectQR.first; i != objectQR.second; ++i)
361 uint32 questId = i->second;
366 if (!player->CanTakeQuest(quest,
false))
422 player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
503 if (!victim->IsMounted())
506 if (
Vehicle* vehicle = source->GetVehicle())
507 if (vehicle->GetVehicleInfo()->m_ID == 244)
std::vector< BfGraveyard * > GraveyardVect
@ BATTLEFIELD_BATTLEID_WG
@ NPC_WINTERGRASP_SIEGE_ENGINE_HORDE
@ NPC_WINTERGRASP_CATAPULT
@ NPC_WINTERGRASP_DEMOLISHER
@ NPC_WINTERGRASP_SIEGE_ENGINE_ALLIANCE
uint32 const WintergraspFaction[]
@ BATTLEFIELD_WG_DATA_VEHICLE_A
@ BATTLEFIELD_WG_DATA_MAX_VEHICLE_A
@ BATTLEFIELD_WG_DATA_VEHICLE_H
@ BATTLEFIELD_WG_DATA_MAX_VEHICLE_H
DBCStorage< WorldSafeLocsEntry > sWorldSafeLocsStore(WorldSafeLocsEntryfmt)
std::pair< QuestRelations::const_iterator, QuestRelations::const_iterator > QuestRelationBounds
@ QUEST_STATUS_INCOMPLETE
@ SPELL_EFFECT_SCRIPT_EFFECT
@ SPELL_FAILED_BAD_TARGETS
#define SpellCheckCastFn(F)
#define SpellEffectFn(F, I, N)
AchievementCriteriaScript(const char *name)
bool IsWarTime() const
Return true if battle is start, false if battle is not started.
void InvitePlayerToQueue(Player *player)
void InvitePlayerToWar(Player *player)
TeamId GetAttackerTeam() const
TeamId GetDefenderTeam() const
virtual uint32 GetData(uint32 dataId) const
GraveyardVect GetGraveyardVector()
CreatureScript(const char *name)
GameObjectAI(GameObject *g)
GameObjectScript(const char *name)
static uint32 GetDefaultGossipMenuForSource(WorldObject *source)
bool IsAutoComplete() const
Unit * GetExplTargetUnit()
HookList< CheckCastHandler > OnCheckCast
void SetExplTargetDest(WorldLocation &loc)
void PreventHitDefaultEffect(SpellEffIndex effIndex)
HookList< EffectHandler > OnEffectHitTarget
SpellScriptLoader(const char *name)
void DoCast(uint32 spellId)
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
bool OnCheck(Player *source, Unit *target) OVERRIDE
achievement_wg_didnt_stand_a_chance()
go_wg_vehicle_teleporter()
GameObjectAI * GetAI(GameObject *go) const OVERRIDE
bool OnGossipHello(Player *player, Creature *creature) OVERRIDE
bool OnGossipSelect(Player *player, Creature *creature, uint32, uint32 action) OVERRIDE
npc_wg_demolisher_engineer()
bool CanBuild(Creature *creature)
bool OnGossipHello(Player *player, Creature *creature) OVERRIDE
bool OnGossipSelect(Player *player, Creature *, uint32, uint32) OVERRIDE
bool OnGossipHello(Player *player, Creature *creature) OVERRIDE
bool OnGossipHello(Player *player, Creature *creature) OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
bool OnGossipSelect(Player *player, Creature *, uint32, uint32 action) OVERRIDE
PrepareSpellScript(spell_wintergrasp_defender_teleport_SpellScript)
SpellCastResult CheckCast()
PrepareSpellScript(spell_wintergrasp_defender_teleport_trigger_SpellScript)
void HandleDummy(SpellEffIndex)
SpellScript * GetSpellScript() const OVERRIDE
spell_wintergrasp_defender_teleport_trigger()
spell_wintergrasp_defender_teleport()
SpellScript * GetSpellScript() const OVERRIDE
bool Validate(SpellInfo const *) OVERRIDE
void HandleScript(SpellEffIndex effIndex)
PrepareSpellScript(spell_wintergrasp_force_building_SpellScript)
spell_wintergrasp_force_building()
SpellScript * GetSpellScript() const OVERRIDE
PrepareSpellScript(spell_wintergrasp_grab_passenger_SpellScript)
void HandleScript(SpellEffIndex)
spell_wintergrasp_grab_passenger()
SpellScript * GetSpellScript() const OVERRIDE
void GetPosition(float &x, float &y) const
ScriptedAI(Creature *creature)
void UpdateAI(uint32 diff) OVERRIDE
go_wg_vehicle_teleporterAI(GameObject *gameObject)
npc_wg_spirit_guideAI(Creature *creature)
void UpdateAI(uint32) OVERRIDE
== Triggered Actions Requested ==================
uint32 const vehiclesList[MAX_WINTERGRASP_VEHICLES]
#define GOSSIP_HELLO_DEMO4
#define GOSSIP_HELLO_DEMO2
@ SPELL_WINTERGRASP_TELEPORT_TRIGGER
@ WG_NPCQUEUE_TEXTOPTION_JOIN
@ WG_NPCQUEUE_TEXT_H_NOWAR
@ WG_NPCQUEUE_TEXT_A_QUEUE
@ WG_NPCQUEUE_TEXT_H_QUEUE
@ WG_NPCQUEUE_TEXT_A_NOWAR
@ SPELL_BUILD_DEMOLISHER_FORCE
@ SPELL_ACTIVATE_CONTROL_ARMS
@ SPELL_CHANNEL_SPIRIT_HEAL
@ SPELL_BUILD_SIEGE_VEHICLE_FORCE_ALLIANCE
@ SPELL_BUILD_SIEGE_VEHICLE_FORCE_HORDE
@ SPELL_BUILD_CATAPULT_FORCE
uint8 const MAX_WINTERGRASP_VEHICLES
@ QUEST_HEALING_WITH_ROSES_HORDE_DEF
@ QUEST_DEFEND_THE_SIEGE_HORDE_ATT
@ QUEST_SHOUTHERN_SABOTAGE_ALLIANCE_DEF
@ QUEST_SLAY_THEM_ALL_HORDE_DEF
@ QUEST_FUELING_THE_DEMOLISHERS_HORDE_DEF
@ QUEST_A_RARE_HERB_ALLIANCE_DEF
@ QUEST_FUELING_THE_DEMOLISHERS_HORDE_ATT
@ QUEST_SLAY_THEM_ALL_HORDE_ATT
@ QUEST_STOP_THE_SIEGE_HORDE_DEF
@ QUEST_WARDING_THE_WALLS_HORDE_DEF
@ QUEST_BONES_AND_ARROWS_ALLIANCE_DEF
@ QUEST_A_RARE_HERB_ALLIANCE_ATT
@ QUEST_HEALING_WITH_ROSES_HORDE_ATT
@ QUEST_BONES_AND_ARROWS_ALLIANCE_ATT
@ QUEST_NO_MERCY_FOR_THE_MERCILESS_ALLIANCE_ATT
@ QUEST_STOP_THE_SIEGE_ALLIANCE_DEF
@ QUEST_NO_MERCY_FOR_THE_MERCILESS_ALLIANCE_DEF
@ QUEST_WARDING_THE_WARRIORS_ALLIANCE_ATT
@ QUEST_TOPPLING_THE_TOWERS_HORDE_DEF
@ QUEST_BONES_AND_ARROWS_HORDE_DEF
@ QUEST_WARDING_THE_WARRIORS_ALLIANCE_DEF
@ QUEST_BONES_AND_ARROWS_HORDE_ATT
@ QUEST_DEFEND_THE_SIEGE_ALLIANCE_ATT
@ QUEST_JINXING_THE_WALLS_HORDE_ATT
@ NPC_WINTERGRASP_CONTROL_ARMS
@ NPC_WORLD_TRIGGER_LARGE_AOI_NOT_IMMUNE_PC_NPC
#define GOSSIP_HELLO_DEMO3
#define GOSSIP_HELLO_DEMO1