|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include "ScriptMgr.h"#include "ScriptedCreature.h"#include "SpellScript.h"#include "Player.h"#include "SpellInfo.h"#include "SpellMgr.h"#include "SpellAuras.h"#include "ObjectAccessor.h"#include <list>Go to the source code of this file.
Enumerations | |
| enum | CryForTheMoon { QUEST_CRY_FOR_THE_MOON = 26760 , NPC_MASTER_HARRIS = 288 , NPC_EVENT_OLIVER_HARRIS = 43858 , NPC_EVENT_JITTERS = 43859 , NPC_EVENT_SVEN_WORGEN = 43950 , GUID_RP_OLIVER = 571930 , GUID_RP_JITTERS = 571929 , GUID_RP_WORGEN = 571931 , SPELL_WORGEN_INSTOCKS = 69196 , DATA_START_SCENE = 7 , DATA_SCENE_ENDED = 8 } |
| enum | LurkingPotion { QUEST_A_CURSE_WE_CANNOT_LIFT = 26720 , NPC_LURKING_WORGEN = 43814 , NPC_LURKING_WORGEN_KILL_CREDIT = 43860 , SPELL_STUNNING_POUNCE = 81957 , SPELL_HARRIS_AMPULE = 82058 , SAY_HESITATE = 0 } |
Functions | |
| void | AddSC_duskwood () |
| static Creature * | FindSceneActor (Creature *ref, uint32 spawnGuid, uint32 entry) |
| static bool | IsWeakenedLurkingWorgen (Creature *creature) |
| static bool | PlayerHasActiveQuest (Player *player) |
| static void | ResetCryForTheMoonActor (Creature *actor, float x, float y, float z, float o, bool restoreStocks=false) |
| static Creature * | ResolveAmpuleTarget (Player *player, Unit *primaryTarget) |
| static bool | TryApplyHarrisAmpule (Player *player, Creature *creature) |
| enum CryForTheMoon |
Definition at line 307 of file zone_duskwood.cpp.
| enum LurkingPotion |
| Enumerator | |
|---|---|
| QUEST_A_CURSE_WE_CANNOT_LIFT | |
| NPC_LURKING_WORGEN | |
| NPC_LURKING_WORGEN_KILL_CREDIT | |
| SPELL_STUNNING_POUNCE | |
| SPELL_HARRIS_AMPULE | |
| SAY_HESITATE | |
Definition at line 34 of file zone_duskwood.cpp.
| void AddSC_duskwood | ( | ) |
Definition at line 609 of file zone_duskwood.cpp.
Referenced by AddEasternKingdomsScripts().
Definition at line 326 of file zone_duskwood.cpp.
References Creature::AI(), Map::GetCreature(), WorldObject::GetCreatureListWithEntryInGrid(), WorldObject::GetMap(), HIGHGUID_UNIT, Creature::LoadCreatureFromDB(), MAKE_NEW_GUID(), Map::RemoveCreatureRespawnTime(), UnitAI::Reset(), and Unit::SetVisible().
Referenced by npc_oliver_harris::npc_oliver_harrisAI::SceneEnded(), and npc_oliver_harris::npc_oliver_harrisAI::StartSceneImpl().
|
static |
Definition at line 56 of file zone_duskwood.cpp.
References Object::GetEntry(), Creature::GetReactState(), Unit::HealthAbovePct(), NPC_LURKING_WORGEN, and REACT_PASSIVE.
Referenced by spell_q26720_harris_ampule::spell_q26720_harris_ampule_SpellScript::CheckCast(), and TryApplyHarrisAmpule().
|
static |
Definition at line 47 of file zone_duskwood.cpp.
References Player::GetQuestStatus(), QUEST_A_CURSE_WE_CANNOT_LIFT, QUEST_STATUS_COMPLETE, and QUEST_STATUS_INCOMPLETE.
Referenced by spell_q26720_harris_ampule::spell_q26720_harris_ampule_SpellScript::CheckCast(), npc_lurking_potion::npc_lurking_potionAI::DamageTaken(), npc_lurking_potion::npc_lurking_potionAI::EngageQuestPlayer(), npc_lurking_potion::npc_lurking_potionAI::MoveInLineOfSight(), and TryApplyHarrisAmpule().
|
static |
Definition at line 365 of file zone_duskwood.cpp.
References Unit::AddAura(), Creature::AI(), MotionMaster::Clear(), Unit::CombatStop(), Creature::GetDBTableGUIDLow(), WorldObject::GetMap(), Unit::GetMotionMaster(), Unit::IsAlive(), MotionMaster::MoveIdle(), Unit::NearTeleportTo(), Unit::RemoveAurasDueToSpell(), Map::RemoveCreatureRespawnTime(), UnitAI::Reset(), Creature::Respawn(), Object::SetUInt32Value(), Unit::SetVisible(), SPELL_WORGEN_INSTOCKS, Unit::StopMoving(), and UNIT_FIELD_NPC_EMOTESTATE.
Referenced by npc_oliver_harris::npc_oliver_harrisAI::SceneEnded(), and npc_oliver_harris::npc_oliver_harrisAI::StartSceneImpl().
Definition at line 67 of file zone_duskwood.cpp.
References Player::GetSelectedUnit(), Unit::GetVictim(), and Object::ToCreature().
Referenced by spell_q26720_harris_ampule::spell_q26720_harris_ampule_SpellScript::GetAmpuleCreatureFromCaster().
Definition at line 87 of file zone_duskwood.cpp.
References Creature::DespawnOrUnsummon(), IsWeakenedLurkingWorgen(), Player::KilledMonsterCredit(), NPC_LURKING_WORGEN_KILL_CREDIT, and PlayerHasActiveQuest().
Referenced by spell_q26720_harris_ampule::spell_q26720_harris_ampule_SpellScript::HandleAmpule(), spell_q26720_harris_ampule::spell_q26720_harris_ampule_SpellScript::HandleAmpuleCast(), and npc_lurking_potion::npc_lurking_potionAI::SpellHit().