82 me->SetHealth(
me->CountPctFromMaxHealth(10));
103 if (
Spell->SpellFamilyFlags[2] & 0x080000000)
128 player->TalkedToCreature(
me->GetEntry(),
me->GetGUID());
131 me->GetMotionMaster()->Clear();
132 me->GetMotionMaster()->MovePoint(0, -4115.053711f, -13754.831055f, 73.508949f);
144 me->DespawnOrUnsummon();
186#define GOSSIP_FIGHT "Traitor! You will be brought to justice!"
195 player->PlayerTalkClass->ClearMenus();
198 player->CLOSE_GOSSIP_MENU();
210 player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
308 me->SetHealth(
me->CountPctFromMaxHealth(15));
309 switch (std::rand() % 1)
355 creature->setFaction(113);
357 pEscortAI->Start(
true,
false, player->GetGUID());
466 Spark->setActive(
true);
482 me->GetMotionMaster()->MovePoint(0, -5092.26f, -11252, 0.71f);
491 me->SetInFront(Spark);
512 me->GetMotionMaster()->MoveTargetedHome();
519 me->DisappearAndDie();
520 default:
return 99999999;
527 float radius = 50.0f;
528 std::list<Player*> players;
531 me->VisitNearbyWorldObject(radius, searcher);
533 for (std::list<Player*>::const_iterator itr = players.begin(); itr != players.end(); ++itr)
535 (*itr)->KilledMonsterCredit(
NPC_SPARK, 0);
540 std::list<GameObject*> FlagList;
541 me->GetGameObjectListWithEntryInGrid(FlagList,
GO_NAGA_FLAG, 100.0f);
543 if (!FlagList.empty())
545 for (std::list<GameObject*>::const_iterator itr = FlagList.begin(); itr != FlagList.end(); ++itr)
554 SF_LOG_ERROR(
"scripts",
"SD2 ERROR: FlagList is empty!");
595 go->UseDoorOrButton();
602 ravager->AI()->AttackStart(player);
713 me->GetNearPosition(pos, 3.0f, 0.0f);
723 _player->KilledMonsterCredit(
me->GetEntry(),
me->GetGUID());
737 me->DespawnOrUnsummon();
764 go->ResetDoorOrButton();
#define SF_LOG_ERROR(filterType__,...)
@ TEMPSUMMON_CORPSE_TIMED_DESPAWN
@ QUEST_STATUS_INCOMPLETE
@ UNIT_FLAG_NON_ATTACKABLE
@ UNIT_FLAG_PVP_ATTACKABLE
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
CreatureScript(const char *name)
GameObjectScript(const char *name)
void MovePoint(uint32 id, Position const &pos, bool generatePath=true)
static Player * GetPlayer(WorldObject const &, uint64 guid)
uint32 GetUInt32Value(uint16 index) const
void DoMeleeAttackIfReady()
void DoCast(uint32 spellId)
void DoCastVictim(uint32 spellId, bool triggered=false)
uint32 getFaction() const
MotionMaster * GetMotionMaster()
static Creature * GetCreature(WorldObject &object, uint64 guid)
void SetInFront(WorldObject const *target)
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
bool OnGossipHello(Player *player, GameObject *go) OVERRIDE
bool OnGossipHello(Player *player, GameObject *go) OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
bool OnGossipHello(Player *player, Creature *creature) OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
bool OnGossipSelect(Player *player, Creature *creature, uint32, uint32 action) OVERRIDE
npc_engineer_spark_overgrind()
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
bool OnQuestAccept(Player *player, Creature *creature, Quest const *quest) OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
ScriptedAI(Creature *creature)
npc_death_ravagerAI(Creature *creature)
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void SpellHit(Unit *Caster, const SpellInfo *Spell) OVERRIDE
npc_draenei_survivorAI(Creature *creature)
void MoveInLineOfSight(Unit *who) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void EnterCombat(Unit *) OVERRIDE
void EnterCombat(Unit *who) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
npc_engineer_spark_overgrindAI(Creature *creature)
Player * GetPlayerForEscort()
npc_escortAI(Creature *creature)
void DespawnNagaFlag(bool despawn)
uint32 NextStep(uint8 Step)
void EnterCombat(Unit *) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
npc_geezleAI(Creature *creature)
npc_injured_draeneiAI(Creature *creature)
void MoveInLineOfSight(Unit *) OVERRIDE
void EnterCombat(Unit *) OVERRIDE
void UpdateAI(uint32) OVERRIDE
== Triggered Actions Requested ==================
void WaypointReached(uint32 waypointId) OVERRIDE
void EnterCombat(Unit *who) OVERRIDE
npc_magwinAI(Creature *creature)
void StartMoving(Player *owner)
void MovementInform(uint32 type, uint32 id) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
npc_stillpine_capitiveAI(Creature *creature)
@ QUEST_A_CRY_FOR_SAY_HELP
void AddSC_azuremyst_isle()
@ QUEST_THE_PROPHECY_OF_AKIDA