mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Creature/Script: remove obsolete script npc_skywing (#22147)
- replaced with SAI script for the same quest and creature (Skywing)
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
/* ScriptData
|
||||
SDName: Terokkar_Forest
|
||||
SD%Complete: 85
|
||||
SDComment: Quest support: 9889, 10009, 10873, 10896, 10898, 11096, 10052, 10051. Skettis->Ogri'la Flight
|
||||
SDComment: Quest support: 9889, 10009, 10873, 10896, 11096, 10051, 10052. Skettis->Ogri'la Flight
|
||||
SDCategory: Terokkar Forest
|
||||
EndScriptData */
|
||||
|
||||
@@ -202,67 +202,6 @@ public:
|
||||
};
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_skywing
|
||||
######*/
|
||||
|
||||
enum Skywing
|
||||
{
|
||||
QUEST_SKYWING = 10898
|
||||
};
|
||||
|
||||
class npc_skywing : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_skywing() : CreatureScript("npc_skywing") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_skywingAI(creature);
|
||||
}
|
||||
|
||||
struct npc_skywingAI : public npc_escortAI
|
||||
{
|
||||
public:
|
||||
npc_skywingAI(Creature* creature) : npc_escortAI(creature) { }
|
||||
|
||||
void WaypointReached(uint32 waypointId) override
|
||||
{
|
||||
Player* player = GetPlayerForEscort();
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
switch (waypointId)
|
||||
{
|
||||
case 8:
|
||||
player->AreaExploredOrEventHappens(QUEST_SKYWING);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void JustEngagedWith(Unit* /*who*/) override { }
|
||||
|
||||
void MoveInLineOfSight(Unit* who) override
|
||||
|
||||
{
|
||||
if (HasEscortState(STATE_ESCORT_ESCORTING))
|
||||
return;
|
||||
|
||||
Player* player = who->ToPlayer();
|
||||
if (player && player->GetQuestStatus(QUEST_SKYWING) == QUEST_STATUS_INCOMPLETE)
|
||||
if (me->IsWithinDistInMap(who, 10.0f))
|
||||
Start(false, false, who->GetGUID());
|
||||
}
|
||||
|
||||
void Reset() override { }
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
npc_escortAI::UpdateAI(diff);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_rotting_forest_rager
|
||||
######*/
|
||||
@@ -659,6 +598,5 @@ void AddSC_terokkar_forest()
|
||||
new npc_floon();
|
||||
new npc_isla_starmane();
|
||||
new go_skull_pile();
|
||||
new npc_skywing();
|
||||
new npc_slim();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user