mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Scripts: Remove the npc_netherweb_victim script which is handled through sai now
* Ref 546c8a5b8e
This commit is contained in:
@@ -27,7 +27,6 @@ EndScriptData */
|
||||
npc_unkor_the_ruthless
|
||||
npc_infested_root_walker
|
||||
npc_rotting_forest_rager
|
||||
npc_netherweb_victim
|
||||
npc_floon
|
||||
npc_isla_starmane
|
||||
npc_slim
|
||||
@@ -286,65 +285,6 @@ public:
|
||||
};
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_netherweb_victim
|
||||
######*/
|
||||
|
||||
enum NetherwebVictim
|
||||
{
|
||||
QUEST_TARGET = 22459
|
||||
//SPELL_FREE_WEBBED = 38950
|
||||
};
|
||||
|
||||
const uint32 netherwebVictims[6] =
|
||||
{
|
||||
18470, 16805, 21242, 18452, 22482, 21285
|
||||
};
|
||||
|
||||
class npc_netherweb_victim : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_netherweb_victim() : CreatureScript("npc_netherweb_victim") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_netherweb_victimAI(creature);
|
||||
}
|
||||
|
||||
struct npc_netherweb_victimAI : public ScriptedAI
|
||||
{
|
||||
npc_netherweb_victimAI(Creature* creature) : ScriptedAI(creature) { }
|
||||
|
||||
void Reset() override { }
|
||||
void EnterCombat(Unit* /*who*/) override { }
|
||||
void MoveInLineOfSight(Unit* /*who*/) override { }
|
||||
|
||||
|
||||
void JustDied(Unit* killer) override
|
||||
{
|
||||
Player* player = killer->ToPlayer();
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
if (player->GetQuestStatus(10873) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
if (rand32() % 100 < 25)
|
||||
{
|
||||
me->SummonCreature(QUEST_TARGET, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 60000);
|
||||
player->KilledMonsterCredit(QUEST_TARGET);
|
||||
}
|
||||
else
|
||||
me->SummonCreature(netherwebVictims[rand32() % 6], 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 60000);
|
||||
|
||||
if (rand32() % 100 < 75)
|
||||
me->SummonCreature(netherwebVictims[rand32() % 6], 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 60000);
|
||||
|
||||
me->SummonCreature(netherwebVictims[rand32() % 6], 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 60000);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_floon
|
||||
######*/
|
||||
@@ -719,7 +659,6 @@ void AddSC_terokkar_forest()
|
||||
new npc_unkor_the_ruthless();
|
||||
new npc_infested_root_walker();
|
||||
new npc_rotting_forest_rager();
|
||||
new npc_netherweb_victim();
|
||||
new npc_floon();
|
||||
new npc_isla_starmane();
|
||||
new go_skull_pile();
|
||||
|
||||
Reference in New Issue
Block a user