*Remove useless cast.
--HG-- branch : trunk
This commit is contained in:
@@ -98,7 +98,7 @@ struct TRINITY_DLL_DECL boss_taerarAI : public ScriptedAI
|
|||||||
Rand = 0;
|
Rand = 0;
|
||||||
Summoned = DoSpawnCreature(15302, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
|
Summoned = DoSpawnCreature(15302, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(victim);
|
(Summoned->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ struct TRINITY_DLL_DECL boss_ysondreAI : public ScriptedAI
|
|||||||
Rand = 0;
|
Rand = 0;
|
||||||
Summoned = DoSpawnCreature(15260, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
|
Summoned = DoSpawnCreature(15260, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(victim);
|
(Summoned->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ CreatureAI* GetAI_example_escort(Creature *_Creature)
|
|||||||
testAI->AddWaypoint(3, 1231, -4419, 23, 5000);
|
testAI->AddWaypoint(3, 1231, -4419, 23, 5000);
|
||||||
testAI->AddWaypoint(4, 1208, -4392, 23, 5000);
|
testAI->AddWaypoint(4, 1208, -4392, 23, 5000);
|
||||||
|
|
||||||
return (CreatureAI*)testAI;
|
return testAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GossipHello_example_escort(Player *player, Creature *_Creature)
|
bool GossipHello_example_escort(Player *player, Creature *_Creature)
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ bool ItemUse_item_nether_wraith_beacon(Player *player, Item* _Item, SpellCastTar
|
|||||||
Nether = player->SummonCreature(22408,player->GetPositionX() ,player->GetPositionY()+20, player->GetPositionZ(), 0,TEMPSUMMON_TIMED_DESPAWN,180000);
|
Nether = player->SummonCreature(22408,player->GetPositionX() ,player->GetPositionY()+20, player->GetPositionZ(), 0,TEMPSUMMON_TIMED_DESPAWN,180000);
|
||||||
Nether = player->SummonCreature(22408,player->GetPositionX() ,player->GetPositionY()-20, player->GetPositionZ(), 0,TEMPSUMMON_TIMED_DESPAWN,180000);
|
Nether = player->SummonCreature(22408,player->GetPositionX() ,player->GetPositionY()-20, player->GetPositionZ(), 0,TEMPSUMMON_TIMED_DESPAWN,180000);
|
||||||
if (Nether)
|
if (Nether)
|
||||||
((CreatureAI*)Nether->AI())->AttackStart(player);
|
(Nether->AI())->AttackStart(player);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -800,7 +800,7 @@ CreatureAI* GetAI_npc_garments_of_quests(Creature* pCreature)
|
|||||||
|
|
||||||
tempAI->FillPointMovementListForCreature();
|
tempAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)tempAI;
|
return tempAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*######
|
/*######
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ CreatureAI* GetAI_npc_professor_phizzlethorpeAI(Creature *_Creature)
|
|||||||
|
|
||||||
professor_phizzlethorpeAI->FillPointMovementListForCreature();
|
professor_phizzlethorpeAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)professor_phizzlethorpeAI;
|
return professor_phizzlethorpeAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddSC_arathi_highlands()
|
void AddSC_arathi_highlands()
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ CreatureAI* GetAI_npc_torek(Creature* pCreature)
|
|||||||
|
|
||||||
thisAI->FillPointMovementListForCreature();
|
thisAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)thisAI;
|
return thisAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*####
|
/*####
|
||||||
@@ -255,7 +255,7 @@ CreatureAI* GetAI_npc_ruul_snowhoofAI(Creature *_Creature)
|
|||||||
|
|
||||||
ruul_snowhoofAI->FillPointMovementListForCreature();
|
ruul_snowhoofAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)ruul_snowhoofAI;
|
return ruul_snowhoofAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddSC_ashenvale()
|
void AddSC_ashenvale()
|
||||||
|
|||||||
@@ -412,7 +412,7 @@ CreatureAI* GetAI_npc_magwinAI(Creature* pCreature)
|
|||||||
|
|
||||||
magwinAI->FillPointMovementListForCreature();
|
magwinAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)magwinAI;
|
return magwinAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*######
|
/*######
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ struct TRINITY_DLL_DECL npc_twiggy_flatheadAI : public ScriptedAI
|
|||||||
pCreature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
pCreature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||||
pCreature->HandleEmoteCommand(EMOTE_ONESHOT_ROAR);
|
pCreature->HandleEmoteCommand(EMOTE_ONESHOT_ROAR);
|
||||||
pCreature->setFaction(14);
|
pCreature->setFaction(14);
|
||||||
((CreatureAI*)pCreature->AI())->AttackStart(pWarrior);
|
(pCreature->AI())->AttackStart(pWarrior);
|
||||||
++Wave;
|
++Wave;
|
||||||
Wave_Timer = 20000;
|
Wave_Timer = 20000;
|
||||||
}
|
}
|
||||||
@@ -541,7 +541,7 @@ CreatureAI* GetAI_npc_wizzlecrank_shredderAI(Creature *_Creature)
|
|||||||
thisAI->AddWaypoint(30, 1091.28, -2985.82, 91.74, 7000);
|
thisAI->AddWaypoint(30, 1091.28, -2985.82, 91.74, 7000);
|
||||||
thisAI->AddWaypoint(31, 1091.28, -2985.82, 91.74, 3000);
|
thisAI->AddWaypoint(31, 1091.28, -2985.82, 91.74, 3000);
|
||||||
|
|
||||||
return (CreatureAI*)thisAI;
|
return thisAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddSC_the_barrens()
|
void AddSC_the_barrens()
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ CreatureAI* GetAI_npc_grimstone(Creature *_Creature)
|
|||||||
|
|
||||||
Grimstone_AI->FillPointMovementListForCreature();
|
Grimstone_AI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)Grimstone_AI;
|
return Grimstone_AI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*######
|
/*######
|
||||||
@@ -577,7 +577,7 @@ CreatureAI* GetAI_npc_dughal_stormwing(Creature *_Creature)
|
|||||||
dughal_stormwingAI->AddWaypoint(1, 287.64,-87.01, -76.79,0);
|
dughal_stormwingAI->AddWaypoint(1, 287.64,-87.01, -76.79,0);
|
||||||
dughal_stormwingAI->AddWaypoint(2, 354.63,-64.95, -67.53,0);
|
dughal_stormwingAI->AddWaypoint(2, 354.63,-64.95, -67.53,0);
|
||||||
|
|
||||||
return (CreatureAI*)dughal_stormwingAI;
|
return dughal_stormwingAI;
|
||||||
}
|
}
|
||||||
bool GossipHello_npc_dughal_stormwing(Player *player, Creature *_Creature)
|
bool GossipHello_npc_dughal_stormwing(Player *player, Creature *_Creature)
|
||||||
{
|
{
|
||||||
@@ -742,7 +742,7 @@ CreatureAI* GetAI_npc_marshal_windsor(Creature *_Creature)
|
|||||||
marshal_windsorAI->AddWaypoint(18, 403.61,-51.71, -63.92,1000);
|
marshal_windsorAI->AddWaypoint(18, 403.61,-51.71, -63.92,1000);
|
||||||
marshal_windsorAI->AddWaypoint(19, 403.61,-51.71, -63.92,0);
|
marshal_windsorAI->AddWaypoint(19, 403.61,-51.71, -63.92,0);
|
||||||
|
|
||||||
return (CreatureAI*)marshal_windsorAI;
|
return marshal_windsorAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QuestAccept_npc_marshal_windsor(Player *player, Creature *creature, Quest const *quest )
|
bool QuestAccept_npc_marshal_windsor(Player *player, Creature *creature, Quest const *quest )
|
||||||
@@ -969,7 +969,7 @@ CreatureAI* GetAI_npc_marshal_reginald_windsor(Creature *_Creature)
|
|||||||
marshal_reginald_windsorAI->AddWaypoint(33, 452.45,29.85, -70.37,10000);
|
marshal_reginald_windsorAI->AddWaypoint(33, 452.45,29.85, -70.37,10000);
|
||||||
marshal_reginald_windsorAI->AddWaypoint(34, 451.27,31.85, -70.07,0);
|
marshal_reginald_windsorAI->AddWaypoint(34, 451.27,31.85, -70.07,0);
|
||||||
|
|
||||||
return (CreatureAI*)marshal_reginald_windsorAI;
|
return marshal_reginald_windsorAI;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/*######
|
/*######
|
||||||
@@ -1041,7 +1041,7 @@ CreatureAI* GetAI_npc_tobias_seecher(Creature *_Creature)
|
|||||||
tobias_seecherAI->AddWaypoint(3, 519.44, -217.02, -59.34);
|
tobias_seecherAI->AddWaypoint(3, 519.44, -217.02, -59.34);
|
||||||
tobias_seecherAI->AddWaypoint(4, 506.55, -153.49, -62.34);
|
tobias_seecherAI->AddWaypoint(4, 506.55, -153.49, -62.34);
|
||||||
|
|
||||||
return (CreatureAI*)tobias_seecherAI;
|
return tobias_seecherAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GossipHello_npc_tobias_seecher(Player *player, Creature *_Creature)
|
bool GossipHello_npc_tobias_seecher(Player *player, Creature *_Creature)
|
||||||
@@ -1172,7 +1172,7 @@ CreatureAI* GetAI_npc_rocknot(Creature *_Creature)
|
|||||||
|
|
||||||
Rocknot_AI->FillPointMovementListForCreature();
|
Rocknot_AI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)Rocknot_AI;
|
return Rocknot_AI;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChooseReward_npc_rocknot(Player *player, Creature *_Creature, const Quest *_Quest, uint32 item)
|
bool ChooseReward_npc_rocknot(Player *player, Creature *_Creature, const Quest *_Quest, uint32 item)
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ struct TRINITY_DLL_DECL boss_ambassador_flamelashAI : public ScriptedAI
|
|||||||
}
|
}
|
||||||
Summoned = DoSpawnCreature(9178, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 60000);
|
Summoned = DoSpawnCreature(9178, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 60000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(victim);
|
(Summoned->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ struct TRINITY_DLL_DECL boss_general_angerforgeAI : public ScriptedAI
|
|||||||
Rand1 = 0;
|
Rand1 = 0;
|
||||||
SummonedAdds = DoSpawnCreature(8901, Rand1X, Rand1Y, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 120000);
|
SummonedAdds = DoSpawnCreature(8901, Rand1X, Rand1Y, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 120000);
|
||||||
if(SummonedAdds)
|
if(SummonedAdds)
|
||||||
((CreatureAI*)SummonedAdds->AI())->AttackStart(victim);
|
(SummonedAdds->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SummonMedics(Unit* victim)
|
void SummonMedics(Unit* victim)
|
||||||
@@ -97,7 +97,7 @@ struct TRINITY_DLL_DECL boss_general_angerforgeAI : public ScriptedAI
|
|||||||
Rand2 = 0;
|
Rand2 = 0;
|
||||||
SummonedMedics = DoSpawnCreature(8894, Rand2X, Rand2Y, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 120000);
|
SummonedMedics = DoSpawnCreature(8894, Rand2X, Rand2Y, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 120000);
|
||||||
if(SummonedMedics)
|
if(SummonedMedics)
|
||||||
((CreatureAI*)SummonedMedics->AI())->AttackStart(victim);
|
(SummonedMedics->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
|
|||||||
@@ -515,7 +515,7 @@ struct TRINITY_DLL_DECL boss_doomrelAI : public ScriptedAI
|
|||||||
Rand = 0;
|
Rand = 0;
|
||||||
Summoned = DoSpawnCreature(16119, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 120000);
|
Summoned = DoSpawnCreature(16119, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 120000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(victim);
|
(Summoned->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
|
|||||||
@@ -104,10 +104,10 @@ struct TRINITY_DLL_DECL boss_overlordwyrmthalakAI : public ScriptedAI
|
|||||||
|
|
||||||
SummonedCreature = m_creature->SummonCreature(9216,ADD_1X,ADD_1Y,ADD_1Z,ADD_1O,TEMPSUMMON_TIMED_DESPAWN,300000);
|
SummonedCreature = m_creature->SummonCreature(9216,ADD_1X,ADD_1Y,ADD_1Z,ADD_1O,TEMPSUMMON_TIMED_DESPAWN,300000);
|
||||||
if(SummonedCreature)
|
if(SummonedCreature)
|
||||||
((CreatureAI*)SummonedCreature->AI())->AttackStart(target);
|
(SummonedCreature->AI())->AttackStart(target);
|
||||||
SummonedCreature = m_creature->SummonCreature(9268,ADD_2X,ADD_2Y,ADD_2Z,ADD_2O,TEMPSUMMON_TIMED_DESPAWN,300000);
|
SummonedCreature = m_creature->SummonCreature(9268,ADD_2X,ADD_2Y,ADD_2Z,ADD_2O,TEMPSUMMON_TIMED_DESPAWN,300000);
|
||||||
if(SummonedCreature)
|
if(SummonedCreature)
|
||||||
((CreatureAI*)SummonedCreature->AI())->AttackStart(target);
|
(SummonedCreature->AI())->AttackStart(target);
|
||||||
Summoned = true;
|
Summoned = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ struct TRINITY_DLL_DECL boss_kruulAI : public ScriptedAI
|
|||||||
Rand = 0;
|
Rand = 0;
|
||||||
Summoned = DoSpawnCreature(19207, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
|
Summoned = DoSpawnCreature(19207, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(victim);
|
(Summoned->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
|
|||||||
@@ -486,7 +486,7 @@ CreatureAI* GetAI_npc_thrall_old_hillsbrad(Creature *_Creature)
|
|||||||
|
|
||||||
thrall_walkAI->FillPointMovementListForCreature();
|
thrall_walkAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)thrall_walkAI;
|
return thrall_walkAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GossipHello_npc_thrall_old_hillsbrad(Player *player, Creature *_Creature)
|
bool GossipHello_npc_thrall_old_hillsbrad(Player *player, Creature *_Creature)
|
||||||
@@ -612,7 +612,7 @@ CreatureAI* GetAI_npc_taretha(Creature *_Creature)
|
|||||||
|
|
||||||
taretha_walkAI->FillPointMovementListForCreature();
|
taretha_walkAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)taretha_walkAI;
|
return taretha_walkAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GossipHello_npc_taretha(Player *player, Creature *_Creature)
|
bool GossipHello_npc_taretha(Player *player, Creature *_Creature)
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ CreatureAI* GetAI_npc_prospector_anvilward(Creature* pCreature)
|
|||||||
|
|
||||||
thisAI->FillPointMovementListForCreature();
|
thisAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)thisAI;
|
return thisAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GossipHello_npc_prospector_anvilward(Player *player, Creature *_Creature)
|
bool GossipHello_npc_prospector_anvilward(Player *player, Creature *_Creature)
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ CreatureAI* GetAI_npc_oox22fe(Creature* pCreature)
|
|||||||
|
|
||||||
oox22AI->FillPointMovementListForCreature();
|
oox22AI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)oox22AI;
|
return oox22AI;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QuestAccept_npc_oox22fe(Player* pPlayer, Creature* pCreature, const Quest* pQuest)
|
bool QuestAccept_npc_oox22fe(Player* pPlayer, Creature* pCreature, const Quest* pQuest)
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ bool GOHello_gilded_brazier(Player *player, GameObject* _GO)
|
|||||||
{
|
{
|
||||||
Creature *Stillblade = player->SummonCreature(17716, 8106.11, -7542.06, 151.775, 3.02598, TEMPSUMMON_DEAD_DESPAWN, 60000);
|
Creature *Stillblade = player->SummonCreature(17716, 8106.11, -7542.06, 151.775, 3.02598, TEMPSUMMON_DEAD_DESPAWN, 60000);
|
||||||
if (Stillblade)
|
if (Stillblade)
|
||||||
((CreatureAI*)Stillblade->AI())->AttackStart(player);
|
(Stillblade->AI())->AttackStart(player);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
@@ -258,7 +258,7 @@ CreatureAI* GetAI_npc_ranger_lilathaAI(Creature *_Creature)
|
|||||||
|
|
||||||
ranger_lilathaAI->FillPointMovementListForCreature();
|
ranger_lilathaAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)ranger_lilathaAI;
|
return ranger_lilathaAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddSC_ghostlands()
|
void AddSC_ghostlands()
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ CreatureAI* GetAI_npc_wounded_blood_elf(Creature* pCreature)
|
|||||||
|
|
||||||
welfAI->FillPointMovementListForCreature();
|
welfAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)welfAI;
|
return welfAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QuestAccept_npc_wounded_blood_elf(Player* player, Creature* creature, Quest const* quest)
|
bool QuestAccept_npc_wounded_blood_elf(Player* player, Creature* creature, Quest const* quest)
|
||||||
|
|||||||
@@ -372,7 +372,7 @@ CreatureAI* GetAI_npc_barnesAI(Creature* _Creature)
|
|||||||
for(uint8 i = 0; i < 6; ++i)
|
for(uint8 i = 0; i < 6; ++i)
|
||||||
Barnes_AI->AddWaypoint(i, StageLocations[i][0], StageLocations[i][1], 90.465);
|
Barnes_AI->AddWaypoint(i, StageLocations[i][0], StageLocations[i][1], 90.465);
|
||||||
|
|
||||||
return ((CreatureAI*)Barnes_AI);
|
return (Barnes_AI);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GossipHello_npc_barnes(Player* player, Creature* _Creature)
|
bool GossipHello_npc_barnes(Player* player, Creature* _Creature)
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ struct TRINITY_DLL_DECL boss_noxxionAI : public ScriptedAI
|
|||||||
Rand = 0;
|
Rand = 0;
|
||||||
Summoned = DoSpawnCreature(13456, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 90000);
|
Summoned = DoSpawnCreature(13456, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 90000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(victim);
|
(Summoned->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ struct TRINITY_DLL_DECL boss_ragnarosAI : public Scripted_NoMovementAI
|
|||||||
{
|
{
|
||||||
Summoned = m_creature->SummonCreature(12143,target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(),0,TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN,900000);
|
Summoned = m_creature->SummonCreature(12143,target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(),0,TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN,900000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -249,7 +249,7 @@ struct TRINITY_DLL_DECL boss_ragnarosAI : public Scripted_NoMovementAI
|
|||||||
{
|
{
|
||||||
Summoned = m_creature->SummonCreature(12143,target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(),0,TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN,900000);
|
Summoned = m_creature->SummonCreature(12143,target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(),0,TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN,900000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -941,7 +941,7 @@ CreatureAI* GetAI_npc_bessy(Creature *_Creature)
|
|||||||
bessyAI->AddWaypoint(12, 2297.68, 2266.79, 95.07,4000);
|
bessyAI->AddWaypoint(12, 2297.68, 2266.79, 95.07,4000);
|
||||||
bessyAI->AddWaypoint(13, 2297.67, 2266.76, 95.07,4000);
|
bessyAI->AddWaypoint(13, 2297.67, 2266.76, 95.07,4000);
|
||||||
|
|
||||||
return (CreatureAI*)bessyAI;
|
return bessyAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*######
|
/*######
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ CreatureAI* GetAI_npc_willix(Creature *_Creature)
|
|||||||
thisAI->AddWaypoint(45, 1948.35, 1571.35, 80.96, 30000);
|
thisAI->AddWaypoint(45, 1948.35, 1571.35, 80.96, 30000);
|
||||||
thisAI->AddWaypoint(46, 1947.02, 1566.42, 81.80, 30000);
|
thisAI->AddWaypoint(46, 1947.02, 1566.42, 81.80, 30000);
|
||||||
|
|
||||||
return (CreatureAI*)thisAI;
|
return thisAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddSC_razorfen_kraul()
|
void AddSC_razorfen_kraul()
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ CreatureAI* GetAI_mob_scarlet_trainee(Creature* pCreature)
|
|||||||
|
|
||||||
thisAI->FillPointMovementListForCreature();
|
thisAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)thisAI;
|
return thisAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddSC_boss_herod()
|
void AddSC_boss_herod()
|
||||||
|
|||||||
@@ -127,79 +127,79 @@ struct TRINITY_DLL_DECL boss_darkmaster_gandlingAI : public ScriptedAI
|
|||||||
DoTeleportPlayer(target, 250.0696,0.3921,84.8408,3.149);
|
DoTeleportPlayer(target, 250.0696,0.3921,84.8408,3.149);
|
||||||
Summoned = m_creature->SummonCreature(16119,254.2325,0.3417,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,254.2325,0.3417,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,257.7133,4.0226,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,257.7133,4.0226,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,258.6702,-2.60656,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,258.6702,-2.60656,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
DoTeleportPlayer(target, 181.4220,-91.9481,84.8410,1.608);
|
DoTeleportPlayer(target, 181.4220,-91.9481,84.8410,1.608);
|
||||||
Summoned = m_creature->SummonCreature(16119,184.0519,-73.5649,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,184.0519,-73.5649,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,179.5951,-73.7045,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,179.5951,-73.7045,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,180.6452,-78.2143,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,180.6452,-78.2143,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,283.2274,-78.1518,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,283.2274,-78.1518,84.8407,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
DoTeleportPlayer(target, 95.1547,-1.8173,85.2289,0.043);
|
DoTeleportPlayer(target, 95.1547,-1.8173,85.2289,0.043);
|
||||||
Summoned = m_creature->SummonCreature(16119,100.9404,-1.8016,85.2289,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,100.9404,-1.8016,85.2289,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,101.3729,0.4882,85.2289,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,101.3729,0.4882,85.2289,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,101.4596,-4.4740,85.2289,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,101.4596,-4.4740,85.2289,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
DoTeleportPlayer(target, 250.0696,0.3921,72.6722,3.149);
|
DoTeleportPlayer(target, 250.0696,0.3921,72.6722,3.149);
|
||||||
Summoned = m_creature->SummonCreature(16119,240.34481,0.7368,72.6722,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,240.34481,0.7368,72.6722,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,240.3633,-2.9520,72.6722,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,240.3633,-2.9520,72.6722,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,240.6702,3.34949,72.6722,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,240.6702,3.34949,72.6722,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
DoTeleportPlayer(target, 181.4220,-91.9481,70.7734,1.608);
|
DoTeleportPlayer(target, 181.4220,-91.9481,70.7734,1.608);
|
||||||
Summoned = m_creature->SummonCreature(16119,184.0519,-73.5649,70.7734,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,184.0519,-73.5649,70.7734,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,179.5951,-73.7045,70.7734,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,179.5951,-73.7045,70.7734,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,180.6452,-78.2143,70.7734,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,180.6452,-78.2143,70.7734,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,283.2274,-78.1518,70.7734,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,283.2274,-78.1518,70.7734,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
DoTeleportPlayer(target, 106.1541,-1.8994,75.3663,0.043);
|
DoTeleportPlayer(target, 106.1541,-1.8994,75.3663,0.043);
|
||||||
Summoned = m_creature->SummonCreature(16119,115.3945,-1.5555,75.3663,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,115.3945,-1.5555,75.3663,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,257.7133,1.8066,75.3663,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,257.7133,1.8066,75.3663,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
Summoned = m_creature->SummonCreature(16119,258.6702,-5.1001,75.3663,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
Summoned = m_creature->SummonCreature(16119,258.6702,-5.1001,75.3663,0,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,10000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ struct TRINITY_DLL_DECL boss_jandicebarovAI : public ScriptedAI
|
|||||||
Rand = 0;
|
Rand = 0;
|
||||||
Summoned = DoSpawnCreature(11439, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 60000);
|
Summoned = DoSpawnCreature(11439, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 60000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(victim);
|
(Summoned->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ struct TRINITY_DLL_DECL boss_kormokAI : public ScriptedAI
|
|||||||
Rand1 = 0;
|
Rand1 = 0;
|
||||||
SummonedMinions = DoSpawnCreature(16119, Rand1X, Rand1Y, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 120000);
|
SummonedMinions = DoSpawnCreature(16119, Rand1X, Rand1Y, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 120000);
|
||||||
if(SummonedMinions)
|
if(SummonedMinions)
|
||||||
((CreatureAI*)SummonedMinions->AI())->AttackStart(victim);
|
(SummonedMinions->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SummonMages(Unit* victim)
|
void SummonMages(Unit* victim)
|
||||||
@@ -96,7 +96,7 @@ struct TRINITY_DLL_DECL boss_kormokAI : public ScriptedAI
|
|||||||
Rand2 = 0;
|
Rand2 = 0;
|
||||||
SummonedMages = DoSpawnCreature(16120, Rand2X, Rand2Y, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 120000);
|
SummonedMages = DoSpawnCreature(16120, Rand2X, Rand2Y, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 120000);
|
||||||
if(SummonedMages)
|
if(SummonedMages)
|
||||||
((CreatureAI*)SummonedMages->AI())->AttackStart(victim);
|
(SummonedMages->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ CreatureAI* GetAI_npc_shadowfang_prisoner(Creature* pCreature)
|
|||||||
|
|
||||||
prisonerAI->FillPointMovementListForCreature();
|
prisonerAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)prisonerAI;
|
return prisonerAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GossipHello_npc_shadowfang_prisoner(Player* pPlayer, Creature* pCreature)
|
bool GossipHello_npc_shadowfang_prisoner(Player* pPlayer, Creature* pCreature)
|
||||||
|
|||||||
@@ -1039,7 +1039,7 @@ CreatureAI* GetAI_npc_earthmender_wildaAI(Creature *_Creature)
|
|||||||
earthmender_wildaAI->AddWaypoint(49, -2841.754883, 1289.832520, 6.990304);
|
earthmender_wildaAI->AddWaypoint(49, -2841.754883, 1289.832520, 6.990304);
|
||||||
earthmender_wildaAI->AddWaypoint(50, -2871.398438, 1302.348145, 6.807335, 8000); // SAY_END
|
earthmender_wildaAI->AddWaypoint(50, -2871.398438, 1302.348145, 6.807335, 8000); // SAY_END
|
||||||
|
|
||||||
return (CreatureAI*)earthmender_wildaAI;
|
return earthmender_wildaAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QuestAccept_npc_earthmender_wilda(Player* player, Creature* creature, Quest const* quest)
|
bool QuestAccept_npc_earthmender_wilda(Player* player, Creature* creature, Quest const* quest)
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ CreatureAI* GetAI_npc_kservantAI(Creature *_Creature)
|
|||||||
|
|
||||||
kservantAI->FillPointMovementListForCreature();
|
kservantAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)kservantAI;
|
return kservantAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*######
|
/*######
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ CreatureAI* GetAI_npc_deathstalker_erlandAI(Creature *_Creature)
|
|||||||
deathstalker_erlandAI->AddWaypoint(25, 1310.51, 1207.36, 58.51, 5000);
|
deathstalker_erlandAI->AddWaypoint(25, 1310.51, 1207.36, 58.51, 5000);
|
||||||
deathstalker_erlandAI->AddWaypoint(26, 1310.51, 1207.36, 58.51, 2000);
|
deathstalker_erlandAI->AddWaypoint(26, 1310.51, 1207.36, 58.51, 2000);
|
||||||
|
|
||||||
return (CreatureAI*)deathstalker_erlandAI;
|
return deathstalker_erlandAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*######
|
/*######
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ CreatureAI* GetAI_npc_kaya_flathoofAI(Creature *_Creature)
|
|||||||
thisAI->AddWaypoint(22, -43.77, -497.99, -46.13, 3000);// summon
|
thisAI->AddWaypoint(22, -43.77, -497.99, -46.13, 3000);// summon
|
||||||
thisAI->AddWaypoint(23, -41.77, -518.15, -46.13, 5000);//end
|
thisAI->AddWaypoint(23, -41.77, -518.15, -46.13, 5000);//end
|
||||||
|
|
||||||
return (CreatureAI*)thisAI;
|
return thisAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*######
|
/*######
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ struct TRINITY_DLL_DECL boss_nerubenkanAI : public ScriptedAI
|
|||||||
Rand = 0;
|
Rand = 0;
|
||||||
Summoned = DoSpawnCreature(10876, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 180000);
|
Summoned = DoSpawnCreature(10876, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 180000);
|
||||||
if(Summoned)
|
if(Summoned)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(victim);
|
(Summoned->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ CreatureAI* GetAI_npc_custodian_of_time(Creature* pCreature)
|
|||||||
|
|
||||||
custodian_of_timeAI->FillPointMovementListForCreature();
|
custodian_of_timeAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)custodian_of_timeAI;
|
return custodian_of_timeAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*######
|
/*######
|
||||||
@@ -533,7 +533,7 @@ CreatureAI* GetAI_npc_OOX17(Creature *_Creature)
|
|||||||
OOX17AI->AddWaypoint(85, -6944.81, -4816.58, 1.60);
|
OOX17AI->AddWaypoint(85, -6944.81, -4816.58, 1.60);
|
||||||
OOX17AI->AddWaypoint(86, -6942.06, -4839.40, 0.66,5000);
|
OOX17AI->AddWaypoint(86, -6942.06, -4839.40, 0.66,5000);
|
||||||
|
|
||||||
return (CreatureAI*)OOX17AI;
|
return OOX17AI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*######
|
/*######
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ struct TRINITY_DLL_DECL boss_yaujAI : public ScriptedAI
|
|||||||
Unit* target = SelectUnit(SELECT_TARGET_RANDOM,0);
|
Unit* target = SelectUnit(SELECT_TARGET_RANDOM,0);
|
||||||
Creature* Summoned = m_creature->SummonCreature(15621,m_creature->GetPositionX(), m_creature->GetPositionY(), m_creature->GetPositionZ(),0,TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN,90000);
|
Creature* Summoned = m_creature->SummonCreature(15621,m_creature->GetPositionX(), m_creature->GetPositionY(), m_creature->GetPositionZ(),0,TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN,90000);
|
||||||
if(Summoned && target)
|
if(Summoned && target)
|
||||||
((CreatureAI*)Summoned->AI())->AttackStart(target);
|
(Summoned->AI())->AttackStart(target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ struct TRINITY_DLL_DECL boss_fankrissAI : public ScriptedAI
|
|||||||
Rand = 0;
|
Rand = 0;
|
||||||
Spawn = DoSpawnCreature(15630, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000);
|
Spawn = DoSpawnCreature(15630, RandX, RandY, 0, 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000);
|
||||||
if(Spawn)
|
if(Spawn)
|
||||||
((CreatureAI*)Spawn->AI())->AttackStart(victim);
|
(Spawn->AI())->AttackStart(victim);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnterCombat(Unit *who)
|
void EnterCombat(Unit *who)
|
||||||
@@ -139,46 +139,46 @@ struct TRINITY_DLL_DECL boss_fankrissAI : public ScriptedAI
|
|||||||
DoTeleportPlayer(target, -8106.0142,1289.2900,-74.419533,5.112);
|
DoTeleportPlayer(target, -8106.0142,1289.2900,-74.419533,5.112);
|
||||||
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-3, target->GetPositionY()-3, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-3, target->GetPositionY()-3, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||||
if(Hatchling)
|
if(Hatchling)
|
||||||
((CreatureAI*)Hatchling->AI())->AttackStart(target);
|
(Hatchling->AI())->AttackStart(target);
|
||||||
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-3, target->GetPositionY()+3, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-3, target->GetPositionY()+3, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||||
if(Hatchling)
|
if(Hatchling)
|
||||||
((CreatureAI*)Hatchling->AI())->AttackStart(target);
|
(Hatchling->AI())->AttackStart(target);
|
||||||
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-5, target->GetPositionY()-5, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-5, target->GetPositionY()-5, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||||
if(Hatchling)
|
if(Hatchling)
|
||||||
((CreatureAI*)Hatchling->AI())->AttackStart(target);
|
(Hatchling->AI())->AttackStart(target);
|
||||||
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-5, target->GetPositionY()+5, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-5, target->GetPositionY()+5, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||||
if(Hatchling)
|
if(Hatchling)
|
||||||
((CreatureAI*)Hatchling->AI())->AttackStart(target);
|
(Hatchling->AI())->AttackStart(target);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
DoTeleportPlayer(target, -7990.135354,1155.1907,-78.849319,2.608);
|
DoTeleportPlayer(target, -7990.135354,1155.1907,-78.849319,2.608);
|
||||||
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-3, target->GetPositionY()-3, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-3, target->GetPositionY()-3, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||||
if(Hatchling)
|
if(Hatchling)
|
||||||
((CreatureAI*)Hatchling->AI())->AttackStart(target);
|
(Hatchling->AI())->AttackStart(target);
|
||||||
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-3, target->GetPositionY()+3, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-3, target->GetPositionY()+3, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||||
if(Hatchling)
|
if(Hatchling)
|
||||||
((CreatureAI*)Hatchling->AI())->AttackStart(target);
|
(Hatchling->AI())->AttackStart(target);
|
||||||
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-5, target->GetPositionY()-5, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-5, target->GetPositionY()-5, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||||
if(Hatchling)
|
if(Hatchling)
|
||||||
((CreatureAI*)Hatchling->AI())->AttackStart(target);
|
(Hatchling->AI())->AttackStart(target);
|
||||||
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-5, target->GetPositionY()+5, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-5, target->GetPositionY()+5, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||||
if(Hatchling)
|
if(Hatchling)
|
||||||
((CreatureAI*)Hatchling->AI())->AttackStart(target);
|
(Hatchling->AI())->AttackStart(target);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
DoTeleportPlayer(target,-8159.7753,1127.9064,-76.868660,0.675);
|
DoTeleportPlayer(target,-8159.7753,1127.9064,-76.868660,0.675);
|
||||||
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-3, target->GetPositionY()-3, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-3, target->GetPositionY()-3, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||||
if(Hatchling)
|
if(Hatchling)
|
||||||
((CreatureAI*)Hatchling->AI())->AttackStart(target);
|
(Hatchling->AI())->AttackStart(target);
|
||||||
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-3, target->GetPositionY()+3, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-3, target->GetPositionY()+3, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||||
if(Hatchling)
|
if(Hatchling)
|
||||||
((CreatureAI*)Hatchling->AI())->AttackStart(target);
|
(Hatchling->AI())->AttackStart(target);
|
||||||
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-5, target->GetPositionY()-5, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-5, target->GetPositionY()-5, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||||
if(Hatchling)
|
if(Hatchling)
|
||||||
((CreatureAI*)Hatchling->AI())->AttackStart(target);
|
(Hatchling->AI())->AttackStart(target);
|
||||||
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-5, target->GetPositionY()+5, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
Hatchling = m_creature->SummonCreature(15962, target->GetPositionX()-5, target->GetPositionY()+5, target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||||
if(Hatchling)
|
if(Hatchling)
|
||||||
((CreatureAI*)Hatchling->AI())->AttackStart(target);
|
(Hatchling->AI())->AttackStart(target);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -434,7 +434,7 @@ struct TRINITY_DLL_DECL boss_veknilashAI : public boss_twinemperorsAI
|
|||||||
void CastSpellOnBug(Creature *target)
|
void CastSpellOnBug(Creature *target)
|
||||||
{
|
{
|
||||||
target->setFaction(14);
|
target->setFaction(14);
|
||||||
((CreatureAI*)target->AI())->AttackStart(m_creature->getThreatManager().getHostilTarget());
|
(target->AI())->AttackStart(m_creature->getThreatManager().getHostilTarget());
|
||||||
SpellEntry *spell = (SpellEntry *)GetSpellStore()->LookupEntry(SPELL_MUTATE_BUG);
|
SpellEntry *spell = (SpellEntry *)GetSpellStore()->LookupEntry(SPELL_MUTATE_BUG);
|
||||||
uint8 eff_mask=0;
|
uint8 eff_mask=0;
|
||||||
for (int i=0; i<3; i++)
|
for (int i=0; i<3; i++)
|
||||||
|
|||||||
@@ -459,7 +459,7 @@ CreatureAI* GetAI_npc_isla_starmaneAI(Creature *_Creature)
|
|||||||
thisAI->AddWaypoint(33, -2396.81, 3517.17, -3.55);
|
thisAI->AddWaypoint(33, -2396.81, 3517.17, -3.55);
|
||||||
thisAI->AddWaypoint(34, -2439.23, 3523.00, -1.05);
|
thisAI->AddWaypoint(34, -2439.23, 3523.00, -1.05);
|
||||||
|
|
||||||
return (CreatureAI*)thisAI;
|
return thisAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*######
|
/*######
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ CreatureAI* GetAI_npc_swiftmountain(Creature *_Creature)
|
|||||||
thisAI->AddWaypoint(70, -4938.3, -1100.41, -50.71, 5000);
|
thisAI->AddWaypoint(70, -4938.3, -1100.41, -50.71, 5000);
|
||||||
thisAI->AddWaypoint(71, -4937.34, -1102.87, -49.82);
|
thisAI->AddWaypoint(71, -4937.34, -1102.87, -49.82);
|
||||||
|
|
||||||
return (CreatureAI*)thisAI;
|
return thisAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*#####
|
/*#####
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ CreatureAI* GetAI_npc_ame(Creature *_Creature)
|
|||||||
thisAI->AddWaypoint(55, -6302.43, -1181.32, -269.328, 5000);
|
thisAI->AddWaypoint(55, -6302.43, -1181.32, -269.328, 5000);
|
||||||
thisAI->AddWaypoint(56, -6298.87, -1185.79, -269.278);
|
thisAI->AddWaypoint(56, -6298.87, -1185.79, -269.278);
|
||||||
|
|
||||||
return (CreatureAI*)thisAI;
|
return thisAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddSC_ungoro_crater()
|
void AddSC_ungoro_crater()
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ CreatureAI* GetAI_npc_daphne_stilwell(Creature* pCreature)
|
|||||||
|
|
||||||
thisAI->FillPointMovementListForCreature();
|
thisAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)thisAI;
|
return thisAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*######
|
/*######
|
||||||
@@ -264,7 +264,7 @@ CreatureAI* GetAI_npc_defias_traitor(Creature* pCreature)
|
|||||||
|
|
||||||
thisAI->FillPointMovementListForCreature();
|
thisAI->FillPointMovementListForCreature();
|
||||||
|
|
||||||
return (CreatureAI*)thisAI;
|
return thisAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddSC_westfall()
|
void AddSC_westfall()
|
||||||
|
|||||||
@@ -371,7 +371,7 @@ CreatureAI* GetAI_npc_kayra_longmaneAI(Creature* _Creature)
|
|||||||
thisAI->AddWaypoint(25, -488.45, 5447.83, 22.38);
|
thisAI->AddWaypoint(25, -488.45, 5447.83, 22.38);
|
||||||
thisAI->AddWaypoint(26, -449.65, 5463.78, 21.77, 11000);//SAY_PROGRESS_6
|
thisAI->AddWaypoint(26, -449.65, 5463.78, 21.77, 11000);//SAY_PROGRESS_6
|
||||||
|
|
||||||
return (CreatureAI*)thisAI;
|
return thisAI;
|
||||||
}
|
}
|
||||||
/*######
|
/*######
|
||||||
## AddSC
|
## AddSC
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ struct TRINITY_DLL_DECL boss_hazzarahAI : public ScriptedAI
|
|||||||
|
|
||||||
Illusion = m_creature->SummonCreature(15163,target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(),0,TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN,30000);
|
Illusion = m_creature->SummonCreature(15163,target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(),0,TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN,30000);
|
||||||
if(Illusion)
|
if(Illusion)
|
||||||
((CreatureAI*)Illusion->AI())->AttackStart(target);
|
(Illusion->AI())->AttackStart(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
Illusions_Timer = 15000 + rand()%10000;
|
Illusions_Timer = 15000 + rand()%10000;
|
||||||
|
|||||||
Reference in New Issue
Block a user