aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Kalimdor
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2013-07-04 23:08:02 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2013-07-04 23:08:02 +0200
commit644e75487d6eb160c940ef43d9e2047b4d419730 (patch)
tree115b060bc8e6523efa28afeaac27f3fca50b4627 /src/server/scripts/Kalimdor
parentece52c11d251593d0ee0b8c2e23e6747fb0bfbd1 (diff)
parentb4d4e04f53b447a7b6cfba1c7161d9c987260265 (diff)
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/game/Movement/MovementGenerators/IdleMovementGenerator.cpp src/server/scripts/EasternKingdoms/BlackrockSpire/boss_rend_blackhand.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_janalai.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_jindo.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_marli.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_thekal.cpp src/server/scripts/EasternKingdoms/zone_arathi_highlands.cpp src/server/scripts/Kalimdor/zone_azshara.cpp src/server/scripts/Kalimdor/zone_dustwallow_marsh.cpp src/server/scripts/Kalimdor/zone_silithus.cpp src/server/scripts/Kalimdor/zone_tanaris.cpp src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_devourer_of_souls.cpp src/server/scripts/Northrend/IcecrownCitadel/boss_blood_queen_lana_thel.cpp src/server/scripts/Spells/spell_item.cpp
Diffstat (limited to 'src/server/scripts/Kalimdor')
-rw-r--r--src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_anetheron.cpp12
-rw-r--r--src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_archimonde.cpp36
-rw-r--r--src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_azgalor.cpp12
-rw-r--r--src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/hyjal_trash.cpp108
-rw-r--r--src/server/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/old_hillsbrad.cpp88
-rw-r--r--src/server/scripts/Kalimdor/RazorfenKraul/instance_razorfen_kraul.cpp1
-rw-r--r--src/server/scripts/Kalimdor/RazorfenKraul/razorfen_kraul.cpp156
-rw-r--r--src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp60
-rw-r--r--src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_sartura.cpp12
-rw-r--r--src/server/scripts/Kalimdor/TempleOfAhnQiraj/mob_anubisath_sentinel.cpp10
-rw-r--r--src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.h18
-rw-r--r--src/server/scripts/Kalimdor/zone_azuremyst_isle.cpp6
-rw-r--r--src/server/scripts/Kalimdor/zone_bloodmyst_isle.cpp16
-rw-r--r--src/server/scripts/Kalimdor/zone_dustwallow_marsh.cpp12
-rw-r--r--src/server/scripts/Kalimdor/zone_silithus.cpp18
-rw-r--r--src/server/scripts/Kalimdor/zone_tanaris.cpp12
16 files changed, 355 insertions, 222 deletions
diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_anetheron.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_anetheron.cpp
index f3bfe0b8fbe..7f6f779c60e 100644
--- a/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_anetheron.cpp
+++ b/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_anetheron.cpp
@@ -172,19 +172,19 @@ public:
};
-class mob_towering_infernal : public CreatureScript
+class npc_towering_infernal : public CreatureScript
{
public:
- mob_towering_infernal() : CreatureScript("mob_towering_infernal") { }
+ npc_towering_infernal() : CreatureScript("npc_towering_infernal") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_towering_infernalAI (creature);
+ return new npc_towering_infernalAI (creature);
}
- struct mob_towering_infernalAI : public ScriptedAI
+ struct npc_towering_infernalAI : public ScriptedAI
{
- mob_towering_infernalAI(Creature* creature) : ScriptedAI(creature)
+ npc_towering_infernalAI(Creature* creature) : ScriptedAI(creature)
{
instance = creature->GetInstanceScript();
if (instance)
@@ -257,5 +257,5 @@ public:
void AddSC_boss_anetheron()
{
new boss_anetheron();
- new mob_towering_infernal();
+ new npc_towering_infernal();
}
diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_archimonde.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_archimonde.cpp
index 9b1f2475c1b..757206f7fe3 100644
--- a/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_archimonde.cpp
+++ b/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_archimonde.cpp
@@ -76,19 +76,19 @@ enum Summons
Position const NordrassilLoc = {5503.713f, -3523.436f, 1608.781f, 0.0f};
-class mob_ancient_wisp : public CreatureScript
+class npc_ancient_wisp : public CreatureScript
{
public:
- mob_ancient_wisp() : CreatureScript("mob_ancient_wisp") { }
+ npc_ancient_wisp() : CreatureScript("npc_ancient_wisp") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_ancient_wispAI(creature);
+ return new npc_ancient_wispAI(creature);
}
- struct mob_ancient_wispAI : public ScriptedAI
+ struct npc_ancient_wispAI : public ScriptedAI
{
- mob_ancient_wispAI(Creature* creature) : ScriptedAI(creature)
+ npc_ancient_wispAI(Creature* creature) : ScriptedAI(creature)
{
instance = creature->GetInstanceScript();
ArchimondeGUID = 0;
@@ -134,19 +134,19 @@ public:
/* This script is merely a placeholder for the Doomfire that triggers Doomfire spell. It will
MoveChase the Doomfire Spirit always, until despawn (AttackStart is called upon it's spawn) */
-class mob_doomfire : public CreatureScript
+class npc_doomfire : public CreatureScript
{
public:
- mob_doomfire() : CreatureScript("mob_doomfire") { }
+ npc_doomfire() : CreatureScript("npc_doomfire") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_doomfireAI(creature);
+ return new npc_doomfireAI(creature);
}
- struct mob_doomfireAI : public ScriptedAI
+ struct npc_doomfireAI : public ScriptedAI
{
- mob_doomfireAI(Creature* creature) : ScriptedAI(creature) {}
+ npc_doomfireAI(Creature* creature) : ScriptedAI(creature) {}
void Reset() { }
@@ -162,19 +162,19 @@ public:
/* This is the script for the Doomfire Spirit Mob. This mob simply follow players or
travels in random directions if target cannot be found. */
-class mob_doomfire_targetting : public CreatureScript
+class npc_doomfire_targetting : public CreatureScript
{
public:
- mob_doomfire_targetting() : CreatureScript("mob_doomfire_targetting") { }
+ npc_doomfire_targetting() : CreatureScript("npc_doomfire_targetting") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_doomfire_targettingAI(creature);
+ return new npc_doomfire_targettingAI(creature);
}
- struct mob_doomfire_targettingAI : public ScriptedAI
+ struct npc_doomfire_targettingAI : public ScriptedAI
{
- mob_doomfire_targettingAI(Creature* creature) : ScriptedAI(creature) {}
+ npc_doomfire_targettingAI(Creature* creature) : ScriptedAI(creature) {}
uint64 TargetGUID;
uint32 ChangeTargetTimer;
@@ -643,7 +643,7 @@ public:
void AddSC_boss_archimonde()
{
new boss_archimonde();
- new mob_doomfire();
- new mob_doomfire_targetting();
- new mob_ancient_wisp();
+ new npc_doomfire();
+ new npc_doomfire_targetting();
+ new npc_ancient_wisp();
}
diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_azgalor.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_azgalor.cpp
index b45ace791fc..da7ade178d6 100644
--- a/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_azgalor.cpp
+++ b/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_azgalor.cpp
@@ -179,19 +179,19 @@ public:
};
-class mob_lesser_doomguard : public CreatureScript
+class npc_lesser_doomguard : public CreatureScript
{
public:
- mob_lesser_doomguard() : CreatureScript("mob_lesser_doomguard") { }
+ npc_lesser_doomguard() : CreatureScript("npc_lesser_doomguard") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_lesser_doomguardAI (creature);
+ return new npc_lesser_doomguardAI (creature);
}
- struct mob_lesser_doomguardAI : public hyjal_trashAI
+ struct npc_lesser_doomguardAI : public hyjal_trashAI
{
- mob_lesser_doomguardAI(Creature* creature) : hyjal_trashAI(creature)
+ npc_lesser_doomguardAI(Creature* creature) : hyjal_trashAI(creature)
{
instance = creature->GetInstanceScript();
if (instance)
@@ -276,5 +276,5 @@ public:
void AddSC_boss_azgalor()
{
new boss_azgalor();
- new mob_lesser_doomguard();
+ new npc_lesser_doomguard();
}
diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/hyjal_trash.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/hyjal_trash.cpp
index df928f30f21..f6a12103824 100644
--- a/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/hyjal_trash.cpp
+++ b/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/hyjal_trash.cpp
@@ -408,14 +408,14 @@ void hyjal_trashAI::JustDied(Unit* /*killer*/)
me->RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);//no loot
}
-class mob_giant_infernal : public CreatureScript
+class npc_giant_infernal : public CreatureScript
{
public:
- mob_giant_infernal() : CreatureScript("mob_giant_infernal") { }
+ npc_giant_infernal() : CreatureScript("npc_giant_infernal") { }
- struct mob_giant_infernalAI : public hyjal_trashAI
+ struct npc_giant_infernalAI : public hyjal_trashAI
{
- mob_giant_infernalAI(Creature* creature) : hyjal_trashAI(creature)
+ npc_giant_infernalAI(Creature* creature) : hyjal_trashAI(creature)
{
instance = creature->GetInstanceScript();
meteor = false;//call once!
@@ -537,23 +537,23 @@ public:
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_giant_infernalAI(creature);
+ return new npc_giant_infernalAI(creature);
}
};
-class mob_abomination : public CreatureScript
+class npc_abomination : public CreatureScript
{
public:
- mob_abomination() : CreatureScript("mob_abomination") { }
+ npc_abomination() : CreatureScript("npc_abomination") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_abominationAI(creature);
+ return new npc_abominationAI(creature);
}
- struct mob_abominationAI : public hyjal_trashAI
+ struct npc_abominationAI : public hyjal_trashAI
{
- mob_abominationAI(Creature* creature) : hyjal_trashAI(creature)
+ npc_abominationAI(Creature* creature) : hyjal_trashAI(creature)
{
instance = creature->GetInstanceScript();
go = false;
@@ -639,19 +639,19 @@ public:
};
-class mob_ghoul : public CreatureScript
+class npc_ghoul : public CreatureScript
{
public:
- mob_ghoul() : CreatureScript("mob_ghoul") { }
+ npc_ghoul() : CreatureScript("npc_ghoul") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_ghoulAI(creature);
+ return new npc_ghoulAI(creature);
}
- struct mob_ghoulAI : public hyjal_trashAI
+ struct npc_ghoulAI : public hyjal_trashAI
{
- mob_ghoulAI(Creature* creature) : hyjal_trashAI(creature)
+ npc_ghoulAI(Creature* creature) : hyjal_trashAI(creature)
{
instance = creature->GetInstanceScript();
go = false;
@@ -741,19 +741,19 @@ public:
};
-class mob_necromancer : public CreatureScript
+class npc_necromancer : public CreatureScript
{
public:
- mob_necromancer() : CreatureScript("mob_necromancer") { }
+ npc_necromancer() : CreatureScript("npc_necromancer") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_necromancerAI(creature);
+ return new npc_necromancerAI(creature);
}
- struct mob_necromancerAI : public hyjal_trashAI
+ struct npc_necromancerAI : public hyjal_trashAI
{
- mob_necromancerAI(Creature* creature) : hyjal_trashAI(creature), summons(me)
+ npc_necromancerAI(Creature* creature) : hyjal_trashAI(creature), summons(me)
{
instance = creature->GetInstanceScript();
go = false;
@@ -868,19 +868,19 @@ public:
};
-class mob_banshee : public CreatureScript
+class npc_banshee : public CreatureScript
{
public:
- mob_banshee() : CreatureScript("mob_banshee") { }
+ npc_banshee() : CreatureScript("npc_banshee") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_bansheeAI(creature);
+ return new npc_bansheeAI(creature);
}
- struct mob_bansheeAI : public hyjal_trashAI
+ struct npc_bansheeAI : public hyjal_trashAI
{
- mob_bansheeAI(Creature* creature) : hyjal_trashAI(creature)
+ npc_bansheeAI(Creature* creature) : hyjal_trashAI(creature)
{
instance = creature->GetInstanceScript();
go = false;
@@ -971,19 +971,19 @@ public:
};
-class mob_crypt_fiend : public CreatureScript
+class npc_crypt_fiend : public CreatureScript
{
public:
- mob_crypt_fiend() : CreatureScript("mob_crypt_fiend") { }
+ npc_crypt_fiend() : CreatureScript("npc_crypt_fiend") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_crypt_fiendAI(creature);
+ return new npc_crypt_fiendAI(creature);
}
- struct mob_crypt_fiendAI : public hyjal_trashAI
+ struct npc_crypt_fiendAI : public hyjal_trashAI
{
- mob_crypt_fiendAI(Creature* creature) : hyjal_trashAI(creature)
+ npc_crypt_fiendAI(Creature* creature) : hyjal_trashAI(creature)
{
instance = creature->GetInstanceScript();
go = false;
@@ -1061,19 +1061,19 @@ public:
};
-class mob_fel_stalker : public CreatureScript
+class npc_fel_stalker : public CreatureScript
{
public:
- mob_fel_stalker() : CreatureScript("mob_fel_stalker") { }
+ npc_fel_stalker() : CreatureScript("npc_fel_stalker") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_fel_stalkerAI(creature);
+ return new npc_fel_stalkerAI(creature);
}
- struct mob_fel_stalkerAI : public hyjal_trashAI
+ struct npc_fel_stalkerAI : public hyjal_trashAI
{
- mob_fel_stalkerAI(Creature* creature) : hyjal_trashAI(creature)
+ npc_fel_stalkerAI(Creature* creature) : hyjal_trashAI(creature)
{
instance = creature->GetInstanceScript();
go = false;
@@ -1151,19 +1151,19 @@ public:
};
-class mob_frost_wyrm : public CreatureScript
+class npc_frost_wyrm : public CreatureScript
{
public:
- mob_frost_wyrm() : CreatureScript("mob_frost_wyrm") { }
+ npc_frost_wyrm() : CreatureScript("npc_frost_wyrm") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_frost_wyrmAI(creature);
+ return new npc_frost_wyrmAI(creature);
}
- struct mob_frost_wyrmAI : public hyjal_trashAI
+ struct npc_frost_wyrmAI : public hyjal_trashAI
{
- mob_frost_wyrmAI(Creature* creature) : hyjal_trashAI(creature)
+ npc_frost_wyrmAI(Creature* creature) : hyjal_trashAI(creature)
{
instance = creature->GetInstanceScript();
go = false;
@@ -1263,19 +1263,19 @@ public:
};
-class mob_gargoyle : public CreatureScript
+class npc_gargoyle : public CreatureScript
{
public:
- mob_gargoyle() : CreatureScript("mob_gargoyle") { }
+ npc_gargoyle() : CreatureScript("npc_gargoyle") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_gargoyleAI(creature);
+ return new npc_gargoyleAI(creature);
}
- struct mob_gargoyleAI : public hyjal_trashAI
+ struct npc_gargoyleAI : public hyjal_trashAI
{
- mob_gargoyleAI(Creature* creature) : hyjal_trashAI(creature)
+ npc_gargoyleAI(Creature* creature) : hyjal_trashAI(creature)
{
instance = creature->GetInstanceScript();
go = false;
@@ -1467,14 +1467,14 @@ public:
void AddSC_hyjal_trash()
{
- new mob_giant_infernal();
- new mob_abomination();
- new mob_ghoul();
- new mob_necromancer();
- new mob_banshee();
- new mob_crypt_fiend();
- new mob_fel_stalker();
- new mob_frost_wyrm();
- new mob_gargoyle();
+ new npc_giant_infernal();
+ new npc_abomination();
+ new npc_ghoul();
+ new npc_necromancer();
+ new npc_banshee();
+ new npc_crypt_fiend();
+ new npc_fel_stalker();
+ new npc_frost_wyrm();
+ new npc_gargoyle();
new alliance_rifleman();
}
diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/old_hillsbrad.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/old_hillsbrad.cpp
index 3dfb3ed2a37..ba0cf93e5dd 100644
--- a/src/server/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/old_hillsbrad.cpp
+++ b/src/server/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/old_hillsbrad.cpp
@@ -140,23 +140,23 @@ enum ThrallOldHillsbrad
ENTRY_ARMORER = 18764,
ENTRY_SCARLOC = 17862,
- MOB_ENTRY_RIFLE = 17820,
- MOB_ENTRY_WARDEN = 17833,
- MOB_ENTRY_VETERAN = 17860,
- MOB_ENTRY_WATCHMAN = 17814,
- MOB_ENTRY_SENTRY = 17815,
+ NPC_RIFLE = 17820,
+ NPC_WARDEN = 17833,
+ NPC_VETERAN = 17860,
+ NPC_WATCHMAN = 17814,
+ NPC_SENTRY = 17815,
- MOB_ENTRY_BARN_GUARDSMAN = 18092,
- MOB_ENTRY_BARN_PROTECTOR = 18093,
- MOB_ENTRY_BARN_LOOKOUT = 18094,
+ NPC_BARN_GUARDSMAN = 18092,
+ NPC_BARN_PROTECTOR = 18093,
+ NPC_BARN_LOOKOUT = 18094,
- MOB_ENTRY_CHURCH_GUARDSMAN = 23175,
- MOB_ENTRY_CHURCH_PROTECTOR = 23179,
- MOB_ENTRY_CHURCH_LOOKOUT = 23177,
+ NPC_CHURCH_GUARDSMAN = 23175,
+ NPC_CHURCH_PROTECTOR = 23179,
+ NPC_CHURCH_LOOKOUT = 23177,
- MOB_ENTRY_INN_GUARDSMAN = 23176,
- MOB_ENTRY_INN_PROTECTOR = 23180,
- MOB_ENTRY_INN_LOOKOUT = 23178,
+ NPC_INN_GUARDSMAN = 23176,
+ NPC_INN_PROTECTOR = 23180,
+ NPC_INN_LOOKOUT = 23178,
SKARLOC_MOUNT = 18798,
SKARLOC_MOUNT_MODEL = 18223,
@@ -316,22 +316,22 @@ public:
SetRun();
break;
case 15:
- me->SummonCreature(MOB_ENTRY_RIFLE, 2200.28f, 137.37f, 87.93f, 5.07f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_WARDEN, 2197.44f, 131.83f, 87.93f, 0.78f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_VETERAN, 2203.62f, 135.40f, 87.93f, 3.70f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_VETERAN, 2200.75f, 130.13f, 87.93f, 1.48f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_RIFLE, 2200.28f, 137.37f, 87.93f, 5.07f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_WARDEN, 2197.44f, 131.83f, 87.93f, 0.78f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_VETERAN, 2203.62f, 135.40f, 87.93f, 3.70f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_VETERAN, 2200.75f, 130.13f, 87.93f, 1.48f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
break;
case 21:
- me->SummonCreature(MOB_ENTRY_RIFLE, 2135.80f, 154.01f, 67.45f, 4.98f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_WARDEN, 2144.36f, 151.87f, 67.74f, 4.46f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_VETERAN, 2142.12f, 154.41f, 67.12f, 4.56f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_VETERAN, 2138.08f, 155.38f, 67.24f, 4.60f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_RIFLE, 2135.80f, 154.01f, 67.45f, 4.98f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_WARDEN, 2144.36f, 151.87f, 67.74f, 4.46f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_VETERAN, 2142.12f, 154.41f, 67.12f, 4.56f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_VETERAN, 2138.08f, 155.38f, 67.24f, 4.60f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
break;
case 25:
- me->SummonCreature(MOB_ENTRY_RIFLE, 2102.98f, 192.17f, 65.24f, 6.02f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_WARDEN, 2108.48f, 198.75f, 65.18f, 5.15f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_VETERAN, 2106.11f, 197.29f, 65.18f, 5.63f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_VETERAN, 2104.18f, 194.82f, 65.18f, 5.75f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_RIFLE, 2102.98f, 192.17f, 65.24f, 6.02f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_WARDEN, 2108.48f, 198.75f, 65.18f, 5.15f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_VETERAN, 2106.11f, 197.29f, 65.18f, 5.63f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_VETERAN, 2104.18f, 194.82f, 65.18f, 5.75f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
break;
case 29:
Talk(SAY_TH_SKARLOC_MEET);
@@ -350,9 +350,9 @@ public:
break;
case 37:
//possibly regular patrollers? If so, remove this and let database handle them
- me->SummonCreature(MOB_ENTRY_WATCHMAN, 2124.26f, 522.16f, 56.87f, 3.99f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_WATCHMAN, 2121.69f, 525.37f, 57.11f, 4.01f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_SENTRY, 2124.65f, 524.55f, 56.63f, 3.98f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_WATCHMAN, 2124.26f, 522.16f, 56.87f, 3.99f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_WATCHMAN, 2121.69f, 525.37f, 57.11f, 4.01f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_SENTRY, 2124.65f, 524.55f, 56.63f, 3.98f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
break;
case 59:
me->SummonCreature(SKARLOC_MOUNT, 2488.64f, 625.77f, 58.26f, 4.71f, TEMPSUMMON_TIMED_DESPAWN, 10000);
@@ -372,10 +372,10 @@ public:
SetRun(false);
break;
case 68:
- me->SummonCreature(MOB_ENTRY_BARN_PROTECTOR, 2500.22f, 692.60f, 55.50f, 2.84f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_BARN_LOOKOUT, 2500.13f, 696.55f, 55.51f, 3.38f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_BARN_GUARDSMAN, 2500.55f, 693.64f, 55.50f, 3.14f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_BARN_GUARDSMAN, 2500.94f, 695.81f, 55.50f, 3.14f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_BARN_PROTECTOR, 2500.22f, 692.60f, 55.50f, 2.84f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_BARN_LOOKOUT, 2500.13f, 696.55f, 55.51f, 3.38f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_BARN_GUARDSMAN, 2500.55f, 693.64f, 55.50f, 3.14f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_BARN_GUARDSMAN, 2500.94f, 695.81f, 55.50f, 3.14f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
break;
case 71:
SetRun();
@@ -384,10 +384,10 @@ public:
SetRun(false);
break;
case 83:
- me->SummonCreature(MOB_ENTRY_CHURCH_PROTECTOR, 2627.33f, 646.82f, 56.03f, 4.28f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 5000);
- me->SummonCreature(MOB_ENTRY_CHURCH_LOOKOUT, 2624.14f, 648.03f, 56.03f, 4.50f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 5000);
- me->SummonCreature(MOB_ENTRY_CHURCH_GUARDSMAN, 2625.32f, 649.60f, 56.03f, 4.38f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 5000);
- me->SummonCreature(MOB_ENTRY_CHURCH_GUARDSMAN, 2627.22f, 649.00f, 56.03f, 4.34f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 5000);
+ me->SummonCreature(NPC_CHURCH_PROTECTOR, 2627.33f, 646.82f, 56.03f, 4.28f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 5000);
+ me->SummonCreature(NPC_CHURCH_LOOKOUT, 2624.14f, 648.03f, 56.03f, 4.50f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 5000);
+ me->SummonCreature(NPC_CHURCH_GUARDSMAN, 2625.32f, 649.60f, 56.03f, 4.38f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 5000);
+ me->SummonCreature(NPC_CHURCH_GUARDSMAN, 2627.22f, 649.00f, 56.03f, 4.34f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 5000);
break;
case 84:
Talk(SAY_TH_CHURCH_END);
@@ -398,10 +398,10 @@ public:
SetRun(false);
break;
case 93:
- me->SummonCreature(MOB_ENTRY_INN_PROTECTOR, 2652.71f, 660.31f, 61.93f, 1.67f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_INN_LOOKOUT, 2648.96f, 662.59f, 61.93f, 0.79f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_INN_GUARDSMAN, 2657.36f, 662.34f, 61.93f, 2.68f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
- me->SummonCreature(MOB_ENTRY_INN_GUARDSMAN, 2656.39f, 659.77f, 61.93f, 2.61f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_INN_PROTECTOR, 2652.71f, 660.31f, 61.93f, 1.67f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_INN_LOOKOUT, 2648.96f, 662.59f, 61.93f, 0.79f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_INN_GUARDSMAN, 2657.36f, 662.34f, 61.93f, 2.68f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
+ me->SummonCreature(NPC_INN_GUARDSMAN, 2656.39f, 659.77f, 61.93f, 2.61f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
break;
case 94:
if (uint64 TarethaGUID = instance->GetData64(DATA_TARETHA))
@@ -508,9 +508,9 @@ public:
switch (summoned->GetEntry())
{
/// @todo make Scarloc start into event instead, and not start attack directly
- case MOB_ENTRY_BARN_GUARDSMAN:
- case MOB_ENTRY_BARN_PROTECTOR:
- case MOB_ENTRY_BARN_LOOKOUT:
+ case NPC_BARN_GUARDSMAN:
+ case NPC_BARN_PROTECTOR:
+ case NPC_BARN_LOOKOUT:
case SKARLOC_MOUNT:
case EROZION_ENTRY:
break;
diff --git a/src/server/scripts/Kalimdor/RazorfenKraul/instance_razorfen_kraul.cpp b/src/server/scripts/Kalimdor/RazorfenKraul/instance_razorfen_kraul.cpp
index ff775c1a031..242a1c4258b 100644
--- a/src/server/scripts/Kalimdor/RazorfenKraul/instance_razorfen_kraul.cpp
+++ b/src/server/scripts/Kalimdor/RazorfenKraul/instance_razorfen_kraul.cpp
@@ -74,6 +74,7 @@ public:
switch (go->GetEntry())
{
case 21099: DoorWardGUID = go->GetGUID(); break;
+ case 20920: go->SetUInt32Value(GAMEOBJECT_FACTION, 0); break; // big fat fugly hack
}
}
diff --git a/src/server/scripts/Kalimdor/RazorfenKraul/razorfen_kraul.cpp b/src/server/scripts/Kalimdor/RazorfenKraul/razorfen_kraul.cpp
index 55e81f1408f..ea669f96efc 100644
--- a/src/server/scripts/Kalimdor/RazorfenKraul/razorfen_kraul.cpp
+++ b/src/server/scripts/Kalimdor/RazorfenKraul/razorfen_kraul.cpp
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/>
- * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
+ * Copyright (C) 2006-2013 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@ -16,22 +16,13 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-/* ScriptData
-SDName: Razorfen Kraul
-SD%Complete: 100
-SDComment: Quest support: 1144
-SDCategory: Razorfen Kraul
-EndScriptData */
-
-/* ContentData
-npc_willix
-EndContentData */
-
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedEscortAI.h"
#include "razorfen_kraul.h"
#include "Player.h"
+#include "PetAI.h"
+#include "SpellScript.h"
enum Willix
{
@@ -148,7 +139,148 @@ public:
};
+enum SnufflenoseGopher
+{
+ NPC_SNUFFLENOSE_GOPHER = 4781,
+ GO_BLUELEAF_TUBBER = 20920,
+ ACTION_FIND_NEW_TUBBER = 0,
+ POINT_TUBBER = 0
+};
+
+struct DistanceOrder : public std::binary_function<GameObject, GameObject, bool>
+{
+ DistanceOrder(Creature* me) : me(me) {}
+
+ bool operator() (GameObject* first, GameObject* second)
+ {
+ return me->GetDistanceOrder(first, second);
+ }
+
+ Creature* me;
+};
+
+struct npc_snufflenose_gopher : public CreatureScript
+{
+public:
+ npc_snufflenose_gopher() : CreatureScript("npc_snufflenose_gopher") { }
+
+ CreatureAI* GetAI(Creature* creature) const
+ {
+ return new npc_snufflenose_gopherAI(creature);
+ }
+
+ struct npc_snufflenose_gopherAI : public PetAI
+ {
+ npc_snufflenose_gopherAI(Creature* creature) : PetAI(creature) { }
+
+ void Reset()
+ {
+ IsMovementActive = false;
+ }
+
+ void MovementInform(uint32 type, uint32 id)
+ {
+ if (type == POINT_MOTION_TYPE && id == POINT_TUBBER)
+ {
+ if (GameObject* go = me->GetMap()->GetGameObject(TargetTubberGUID))
+ {
+ go->SetRespawnTime(5 * MINUTE);
+ go->Refresh();
+ go->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_INTERACT_COND);
+ }
+
+ IsMovementActive = false;
+ }
+ else
+ PetAI::MovementInform(type, id);
+ }
+
+ void DoFindNewTubber()
+ {
+ std::list<GameObject*> tubbersInRange;
+ GetGameObjectListWithEntryInGrid(tubbersInRange, me, GO_BLUELEAF_TUBBER, 40.0f);
+
+ if (tubbersInRange.empty())
+ return;
+
+ tubbersInRange.sort(DistanceOrder(me));
+ GameObject* nearestTubber = NULL;
+
+ for (std::list<GameObject*>::const_iterator itr = tubbersInRange.begin(); itr != tubbersInRange.end(); ++itr)
+ {
+ if (!(*itr)->isSpawned() && (*itr)->HasFlag(GAMEOBJECT_FLAGS, GO_FLAG_INTERACT_COND))
+ {
+ nearestTubber = *itr;
+ break;
+ }
+ }
+
+ if (!nearestTubber)
+ return;
+
+ TargetTubberGUID = nearestTubber->GetGUID();
+
+ // XFurry was wrong...
+ me->GetMotionMaster()->MovePoint(POINT_TUBBER, nearestTubber->GetPositionX(),
+ nearestTubber->GetPositionY(),
+ nearestTubber->GetPositionZ());
+ IsMovementActive = true;
+ }
+
+ void UpdateAI(uint32 diff)
+ {
+ if (!IsMovementActive)
+ PetAI::UpdateAI(diff);
+ }
+
+ void DoAction(int32 action)
+ {
+ if (action == ACTION_FIND_NEW_TUBBER)
+ DoFindNewTubber();
+ }
+
+
+ bool IsMovementActive;
+ uint64 TargetTubberGUID;
+ };
+};
+
+class spell_snufflenose_command : public SpellScriptLoader
+{
+ public:
+ spell_snufflenose_command() : SpellScriptLoader("spell_snufflenose_command") { }
+
+ class spell_snufflenose_commandSpellScript : public SpellScript
+ {
+ PrepareSpellScript(spell_snufflenose_commandSpellScript);
+
+ bool Load()
+ {
+ return GetCaster()->GetTypeId() == TYPEID_PLAYER;
+ }
+
+ void HandleAfterCast()
+ {
+ if (Unit* target = GetCaster()->ToPlayer()->GetSelectedUnit())
+ if (target->GetEntry() == NPC_SNUFFLENOSE_GOPHER)
+ target->ToCreature()->AI()->DoAction(ACTION_FIND_NEW_TUBBER);
+ }
+
+ void Register()
+ {
+ AfterCast += SpellCastFn(spell_snufflenose_commandSpellScript::HandleAfterCast);
+ }
+ };
+
+ SpellScript* GetSpellScript() const
+ {
+ return new spell_snufflenose_commandSpellScript();
+ }
+};
+
void AddSC_razorfen_kraul()
{
+ new npc_snufflenose_gopher();
new npc_willix();
+ new spell_snufflenose_command();
}
diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp
index 44b9999d9bc..7456d00ae90 100644
--- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp
+++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp
@@ -210,7 +210,7 @@ public:
instance->SetData(DATA_CTHUN_PHASE, PHASE_NOT_STARTED);
//to avoid having a following void zone
- Creature* pPortal= me->FindNearestCreature(MOB_CTHUN_PORTAL, 10);
+ Creature* pPortal= me->FindNearestCreature(NPC_CTHUN_PORTAL, 10);
if (pPortal)
pPortal->SetReactState(REACT_PASSIVE);
}
@@ -224,7 +224,7 @@ public:
void SpawnEyeTentacle(float x, float y)
{
- if (Creature* Spawned = DoSpawnCreature(MOB_EYE_TENTACLE, x, y, 0, 0, TEMPSUMMON_CORPSE_DESPAWN, 500))
+ if (Creature* Spawned = DoSpawnCreature(NPC_EYE_TENTACLE, x, y, 0, 0, TEMPSUMMON_CORPSE_DESPAWN, 500))
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
if (Spawned->AI())
Spawned->AI()->AttackStart(target);
@@ -289,7 +289,7 @@ public:
Creature* Spawned = NULL;
//Spawn claw tentacle on the random target
- Spawned = me->SummonCreature(MOB_CLAW_TENTACLE, *target, TEMPSUMMON_CORPSE_DESPAWN, 500);
+ Spawned = me->SummonCreature(NPC_CLAW_TENTACLE, *target, TEMPSUMMON_CORPSE_DESPAWN, 500);
if (Spawned && Spawned->AI())
Spawned->AI()->AttackStart(target);
@@ -393,7 +393,7 @@ public:
//Dead phase
case PHASE_CTHUN_DONE:
- Creature* pPortal= me->FindNearestCreature(MOB_CTHUN_PORTAL, 10);
+ Creature* pPortal= me->FindNearestCreature(NPC_CTHUN_PORTAL, 10);
if (pPortal)
pPortal->DespawnOrUnsummon();
@@ -540,7 +540,7 @@ public:
void SpawnEyeTentacle(float x, float y)
{
Creature* Spawned;
- Spawned = DoSpawnCreature(MOB_EYE_TENTACLE, x, y, 0, 0, TEMPSUMMON_CORPSE_DESPAWN, 500);
+ Spawned = DoSpawnCreature(NPC_EYE_TENTACLE, x, y, 0, 0, TEMPSUMMON_CORPSE_DESPAWN, 500);
if (Spawned && Spawned->AI())
if (Unit* target = SelectRandomNotStomach())
Spawned->AI()->AttackStart(target);
@@ -674,7 +674,7 @@ public:
//Spawn flesh tentacle
for (uint8 i = 0; i < 2; i++)
{
- Creature* spawned = me->SummonCreature(MOB_FLESH_TENTACLE, FleshTentaclePos[i], TEMPSUMMON_CORPSE_DESPAWN);
+ Creature* spawned = me->SummonCreature(NPC_FLESH_TENTACLE, FleshTentaclePos[i], TEMPSUMMON_CORPSE_DESPAWN);
if (!spawned)
++FleshTentaclesKilled;
}
@@ -804,7 +804,7 @@ public:
if (Unit* target = SelectRandomNotStomach())
{
//Spawn claw tentacle on the random target
- if (Creature* spawned = me->SummonCreature(MOB_GIANT_CLAW_TENTACLE, *target, TEMPSUMMON_CORPSE_DESPAWN, 500))
+ if (Creature* spawned = me->SummonCreature(NPC_GIANT_CLAW_TENTACLE, *target, TEMPSUMMON_CORPSE_DESPAWN, 500))
if (spawned->AI())
spawned->AI()->AttackStart(target);
}
@@ -819,7 +819,7 @@ public:
if (Unit* target = SelectRandomNotStomach())
{
//Spawn claw tentacle on the random target
- if (Creature* spawned = me->SummonCreature(MOB_GIANT_EYE_TENTACLE, *target, TEMPSUMMON_CORPSE_DESPAWN, 500))
+ if (Creature* spawned = me->SummonCreature(NPC_GIANT_EYE_TENTACLE, *target, TEMPSUMMON_CORPSE_DESPAWN, 500))
if (spawned->AI())
spawned->AI()->AttackStart(target);
}
@@ -847,7 +847,7 @@ public:
//Spawn flesh tentacle
for (uint8 i = 0; i < 2; i++)
{
- Creature* spawned = me->SummonCreature(MOB_FLESH_TENTACLE, FleshTentaclePos[i], TEMPSUMMON_CORPSE_DESPAWN);
+ Creature* spawned = me->SummonCreature(NPC_FLESH_TENTACLE, FleshTentaclePos[i], TEMPSUMMON_CORPSE_DESPAWN);
if (!spawned)
++FleshTentaclesKilled;
}
@@ -908,10 +908,10 @@ public:
};
-class mob_eye_tentacle : public CreatureScript
+class npc_eye_tentacle : public CreatureScript
{
public:
- mob_eye_tentacle() : CreatureScript("mob_eye_tentacle") { }
+ npc_eye_tentacle() : CreatureScript("npc_eye_tentacle") { }
CreatureAI* GetAI(Creature* creature) const
{
@@ -922,7 +922,7 @@ public:
{
eye_tentacleAI(Creature* creature) : ScriptedAI(creature)
{
- if (Creature* pPortal = me->SummonCreature(MOB_SMALL_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
+ if (Creature* pPortal = me->SummonCreature(NPC_SMALL_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
{
pPortal->SetReactState(REACT_PASSIVE);
Portal = pPortal->GetGUID();
@@ -983,10 +983,10 @@ public:
};
-class mob_claw_tentacle : public CreatureScript
+class npc_claw_tentacle : public CreatureScript
{
public:
- mob_claw_tentacle() : CreatureScript("mob_claw_tentacle") { }
+ npc_claw_tentacle() : CreatureScript("npc_claw_tentacle") { }
CreatureAI* GetAI(Creature* creature) const
{
@@ -999,7 +999,7 @@ public:
{
SetCombatMovement(false);
- if (Creature* pPortal = me->SummonCreature(MOB_SMALL_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
+ if (Creature* pPortal = me->SummonCreature(NPC_SMALL_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
{
pPortal->SetReactState(REACT_PASSIVE);
Portal = pPortal->GetGUID();
@@ -1057,7 +1057,7 @@ public:
if (!target->HasAura(SPELL_DIGESTIVE_ACID))
{
me->SetPosition(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), 0);
- if (Creature* pPortal = me->SummonCreature(MOB_SMALL_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
+ if (Creature* pPortal = me->SummonCreature(NPC_SMALL_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
{
pPortal->SetReactState(REACT_PASSIVE);
Portal = pPortal->GetGUID();
@@ -1093,10 +1093,10 @@ public:
};
-class mob_giant_claw_tentacle : public CreatureScript
+class npc_giant_claw_tentacle : public CreatureScript
{
public:
- mob_giant_claw_tentacle() : CreatureScript("mob_giant_claw_tentacle") { }
+ npc_giant_claw_tentacle() : CreatureScript("npc_giant_claw_tentacle") { }
CreatureAI* GetAI(Creature* creature) const
{
@@ -1109,7 +1109,7 @@ public:
{
SetCombatMovement(false);
- if (Creature* pPortal = me->SummonCreature(MOB_GIANT_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
+ if (Creature* pPortal = me->SummonCreature(NPC_GIANT_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
{
pPortal->SetReactState(REACT_PASSIVE);
Portal = pPortal->GetGUID();
@@ -1169,7 +1169,7 @@ public:
if (!target->HasAura(SPELL_DIGESTIVE_ACID))
{
me->SetPosition(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), 0);
- if (Creature* pPortal = me->SummonCreature(MOB_GIANT_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
+ if (Creature* pPortal = me->SummonCreature(NPC_GIANT_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
{
pPortal->SetReactState(REACT_PASSIVE);
Portal = pPortal->GetGUID();
@@ -1212,10 +1212,10 @@ public:
};
-class mob_giant_eye_tentacle : public CreatureScript
+class npc_giant_eye_tentacle : public CreatureScript
{
public:
- mob_giant_eye_tentacle() : CreatureScript("mob_giant_eye_tentacle") { }
+ npc_giant_eye_tentacle() : CreatureScript("npc_giant_eye_tentacle") { }
CreatureAI* GetAI(Creature* creature) const
{
@@ -1228,7 +1228,7 @@ public:
{
SetCombatMovement(false);
- if (Creature* pPortal = me->SummonCreature(MOB_GIANT_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
+ if (Creature* pPortal = me->SummonCreature(NPC_GIANT_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
{
pPortal->SetReactState(REACT_PASSIVE);
Portal = pPortal->GetGUID();
@@ -1276,10 +1276,10 @@ public:
};
-class mob_giant_flesh_tentacle : public CreatureScript
+class npc_giant_flesh_tentacle : public CreatureScript
{
public:
- mob_giant_flesh_tentacle() : CreatureScript("mob_giant_flesh_tentacle") { }
+ npc_giant_flesh_tentacle() : CreatureScript("npc_giant_flesh_tentacle") { }
CreatureAI* GetAI(Creature* creature) const
{
@@ -1310,9 +1310,9 @@ void AddSC_boss_cthun()
{
new boss_eye_of_cthun();
new boss_cthun();
- new mob_eye_tentacle();
- new mob_claw_tentacle();
- new mob_giant_claw_tentacle();
- new mob_giant_eye_tentacle();
- new mob_giant_flesh_tentacle();
+ new npc_eye_tentacle();
+ new npc_claw_tentacle();
+ new npc_giant_claw_tentacle();
+ new npc_giant_eye_tentacle();
+ new npc_giant_flesh_tentacle();
}
diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_sartura.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_sartura.cpp
index d4bb5416a4e..cadfbe1cd39 100644
--- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_sartura.cpp
+++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_sartura.cpp
@@ -184,19 +184,19 @@ public:
};
-class mob_sartura_royal_guard : public CreatureScript
+class npc_sartura_royal_guard : public CreatureScript
{
public:
- mob_sartura_royal_guard() : CreatureScript("mob_sartura_royal_guard") { }
+ npc_sartura_royal_guard() : CreatureScript("npc_sartura_royal_guard") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_sartura_royal_guardAI (creature);
+ return new npc_sartura_royal_guardAI (creature);
}
- struct mob_sartura_royal_guardAI : public ScriptedAI
+ struct npc_sartura_royal_guardAI : public ScriptedAI
{
- mob_sartura_royal_guardAI(Creature* creature) : ScriptedAI(creature) {}
+ npc_sartura_royal_guardAI(Creature* creature) : ScriptedAI(creature) {}
uint32 WhirlWind_Timer;
uint32 WhirlWindRandom_Timer;
@@ -302,5 +302,5 @@ public:
void AddSC_boss_sartura()
{
new boss_sartura();
- new mob_sartura_royal_guard();
+ new npc_sartura_royal_guard();
}
diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/mob_anubisath_sentinel.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/mob_anubisath_sentinel.cpp
index f92adef1634..f2e901458cd 100644
--- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/mob_anubisath_sentinel.cpp
+++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/mob_anubisath_sentinel.cpp
@@ -17,7 +17,7 @@
*/
/* ScriptData
-SDName: mob_anubisath_sentinel
+SDName: npc_anubisath_sentinel
SD%Complete: 95
SDComment: Shadow storm is not properly implemented in core it should only target ppl outside of melee range.
SDCategory: Temple of Ahn'Qiraj
@@ -56,10 +56,10 @@ EndScriptData */
#define SPELL_STORM_BUFF 2148
#define SPELL_STORM 26546
-class mob_anubisath_sentinel : public CreatureScript
+class npc_anubisath_sentinel : public CreatureScript
{
public:
- mob_anubisath_sentinel() : CreatureScript("mob_anubisath_sentinel") { }
+ npc_anubisath_sentinel() : CreatureScript("npc_anubisath_sentinel") { }
CreatureAI* GetAI(Creature* creature) const
{
@@ -259,7 +259,7 @@ public:
};
};
-void AddSC_mob_anubisath_sentinel()
+void AddSC_npc_anubisath_sentinel()
{
- new mob_anubisath_sentinel();
+ new npc_anubisath_sentinel();
}
diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.h b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.h
index eecdce51831..1a7ba226135 100644
--- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.h
+++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/temple_of_ahnqiraj.h
@@ -40,15 +40,15 @@ enum DataTypes
enum Creatures
{
BOSS_EYE_OF_CTHUN = 15589,
- MOB_CTHUN_PORTAL = 15896,
- MOB_CLAW_TENTACLE = 15725,
- MOB_EYE_TENTACLE = 15726,
- MOB_SMALL_PORTAL = 15904,
- MOB_BODY_OF_CTHUN = 15809,
- MOB_GIANT_CLAW_TENTACLE = 15728,
- MOB_GIANT_EYE_TENTACLE = 15334,
- MOB_FLESH_TENTACLE = 15802,
- MOB_GIANT_PORTAL = 15910,
+ NPC_CTHUN_PORTAL = 15896,
+ NPC_CLAW_TENTACLE = 15725,
+ NPC_EYE_TENTACLE = 15726,
+ NPC_SMALL_PORTAL = 15904,
+ NPC_BODY_OF_CTHUN = 15809,
+ NPC_GIANT_CLAW_TENTACLE = 15728,
+ NPC_GIANT_EYE_TENTACLE = 15334,
+ NPC_FLESH_TENTACLE = 15802,
+ NPC_GIANT_PORTAL = 15910,
NPC_VISCIDUS = 15299,
NPC_GLOB_OF_VISCIDUS = 15667,
diff --git a/src/server/scripts/Kalimdor/zone_azuremyst_isle.cpp b/src/server/scripts/Kalimdor/zone_azuremyst_isle.cpp
index 341d14863c4..d3ca2940205 100644
--- a/src/server/scripts/Kalimdor/zone_azuremyst_isle.cpp
+++ b/src/server/scripts/Kalimdor/zone_azuremyst_isle.cpp
@@ -421,7 +421,7 @@ enum Geezle
EMOTE_SPARK = 7,
- MOB_SPARK = 17243,
+ NPC_SPARK = 17243,
GO_NAGA_FLAG = 181694
};
@@ -461,7 +461,7 @@ public:
{
Step = 0;
EventStarted = true;
- if (Creature* Spark = me->SummonCreature(MOB_SPARK, SparkPos, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 1000))
+ if (Creature* Spark = me->SummonCreature(NPC_SPARK, SparkPos, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 1000))
{
SparkGUID = Spark->GetGUID();
Spark->setActive(true);
@@ -533,7 +533,7 @@ public:
for (std::list<Player*>::const_iterator itr = players.begin(); itr != players.end(); ++itr)
if ((*itr)->GetQuestStatus(QUEST_TREES_COMPANY) == QUEST_STATUS_INCOMPLETE && (*itr)->HasAura(SPELL_TREE_DISGUISE))
- (*itr)->KilledMonsterCredit(MOB_SPARK, 0);
+ (*itr)->KilledMonsterCredit(NPC_SPARK, 0);
}
void DespawnNagaFlag(bool despawn)
diff --git a/src/server/scripts/Kalimdor/zone_bloodmyst_isle.cpp b/src/server/scripts/Kalimdor/zone_bloodmyst_isle.cpp
index 102a9494a65..713c66b66b8 100644
--- a/src/server/scripts/Kalimdor/zone_bloodmyst_isle.cpp
+++ b/src/server/scripts/Kalimdor/zone_bloodmyst_isle.cpp
@@ -24,7 +24,7 @@ SDCategory: Bloodmyst Isle
EndScriptData */
/* ContentData
-mob_webbed_creature
+npc_webbed_creature
npc_captured_sunhawk_agent
EndContentData */
@@ -34,25 +34,25 @@ EndContentData */
#include "Player.h"
/*######
-## mob_webbed_creature
+## npc_webbed_creature
######*/
//possible creatures to be spawned
uint32 const possibleSpawns[32] = {17322, 17661, 17496, 17522, 17340, 17352, 17333, 17524, 17654, 17348, 17339, 17345, 17359, 17353, 17336, 17550, 17330, 17701, 17321, 17680, 17325, 17320, 17683, 17342, 17715, 17334, 17341, 17338, 17337, 17346, 17344, 17327};
-class mob_webbed_creature : public CreatureScript
+class npc_webbed_creature : public CreatureScript
{
public:
- mob_webbed_creature() : CreatureScript("mob_webbed_creature") { }
+ npc_webbed_creature() : CreatureScript("npc_webbed_creature") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_webbed_creatureAI (creature);
+ return new npc_webbed_creatureAI (creature);
}
- struct mob_webbed_creatureAI : public ScriptedAI
+ struct npc_webbed_creatureAI : public ScriptedAI
{
- mob_webbed_creatureAI(Creature* creature) : ScriptedAI(creature) {}
+ npc_webbed_creatureAI(Creature* creature) : ScriptedAI(creature) {}
void Reset() {}
@@ -205,7 +205,7 @@ public:
void AddSC_bloodmyst_isle()
{
- new mob_webbed_creature();
+ new npc_webbed_creature();
new npc_captured_sunhawk_agent();
new npc_princess_stillpine();
new go_princess_stillpines_cage();
diff --git a/src/server/scripts/Kalimdor/zone_dustwallow_marsh.cpp b/src/server/scripts/Kalimdor/zone_dustwallow_marsh.cpp
index ee4b4247b55..a85089cf588 100644
--- a/src/server/scripts/Kalimdor/zone_dustwallow_marsh.cpp
+++ b/src/server/scripts/Kalimdor/zone_dustwallow_marsh.cpp
@@ -37,7 +37,7 @@ EndContentData */
#include "WorldSession.h"
/*######
-## mobs_risen_husk_spirit
+## npc_risen_husk_spirit
######*/
enum HauntingWitchHill
@@ -62,14 +62,14 @@ enum HauntingWitchHill
EVENT_INTANGIBLE_PRESENCE = 2,
};
-class mobs_risen_husk_spirit : public CreatureScript
+class npc_risen_husk_spirit : public CreatureScript
{
public:
- mobs_risen_husk_spirit() : CreatureScript("mobs_risen_husk_spirit") { }
+ npc_risen_husk_spirit() : CreatureScript("npc_risen_husk_spirit") { }
- struct mobs_risen_husk_spiritAI : public ScriptedAI
+ struct npc_risen_husk_spiritAI : public ScriptedAI
{
- mobs_risen_husk_spiritAI(Creature* creature) : ScriptedAI(creature) { }
+ npc_risen_husk_spiritAI(Creature* creature) : ScriptedAI(creature) { }
void Reset()
{
@@ -125,7 +125,7 @@ class mobs_risen_husk_spirit : public CreatureScript
CreatureAI* GetAI(Creature* creature) const
{
- return new mobs_risen_husk_spiritAI (creature);
+ return new npc_risen_husk_spiritAI (creature);
}
};
diff --git a/src/server/scripts/Kalimdor/zone_silithus.cpp b/src/server/scripts/Kalimdor/zone_silithus.cpp
index c5464d9fbd8..24e802f78ec 100644
--- a/src/server/scripts/Kalimdor/zone_silithus.cpp
+++ b/src/server/scripts/Kalimdor/zone_silithus.cpp
@@ -287,7 +287,7 @@ enum EternalBoard
/* ContentData
A Pawn on the Eternal Board - creatures, gameobjects and defines
-mob_qiraj_war_spawn : Adds that are summoned in the Qiraj gates battle.
+npc_qiraj_war_spawn : Adds that are summoned in the Qiraj gates battle.
npc_anachronos_the_ancient : Creature that controls the event.
npc_anachronos_quest_trigger: controls the spawning of the BG War mobs.
go_crystalline_tear : GameObject that begins the event and hands out quest
@@ -809,22 +809,22 @@ public:
};
/*######
-# mob_qiraj_war_spawn
+# npc_qiraj_war_spawn
######*/
-class mob_qiraj_war_spawn : public CreatureScript
+class npc_qiraj_war_spawn : public CreatureScript
{
public:
- mob_qiraj_war_spawn() : CreatureScript("mob_qiraj_war_spawn") { }
+ npc_qiraj_war_spawn() : CreatureScript("npc_qiraj_war_spawn") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_qiraj_war_spawnAI(creature);
+ return new npc_qiraj_war_spawnAI(creature);
}
- struct mob_qiraj_war_spawnAI : public ScriptedAI
+ struct npc_qiraj_war_spawnAI : public ScriptedAI
{
- mob_qiraj_war_spawnAI(Creature* creature) : ScriptedAI(creature) {}
+ npc_qiraj_war_spawnAI(Creature* creature) : ScriptedAI(creature) {}
uint64 MobGUID;
uint64 PlayerGUID;
@@ -987,7 +987,7 @@ public:
if (WaveCount < 5) //1-4 Wave
{
- if (mob_qiraj_war_spawn::mob_qiraj_war_spawnAI* spawnAI = CAST_AI(mob_qiraj_war_spawn::mob_qiraj_war_spawnAI, spawn->AI()))
+ if (npc_qiraj_war_spawn::npc_qiraj_war_spawnAI* spawnAI = CAST_AI(npc_qiraj_war_spawn::npc_qiraj_war_spawnAI, spawn->AI()))
{
spawnAI->MobGUID = me->GetGUID();
spawnAI->PlayerGUID = PlayerGUID;
@@ -1070,7 +1070,7 @@ public:
};
-void mob_qiraj_war_spawn::mob_qiraj_war_spawnAI::JustDied(Unit* /*slayer*/)
+void npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::JustDied(Unit* /*slayer*/)
{
me->RemoveCorpse();
diff --git a/src/server/scripts/Kalimdor/zone_tanaris.cpp b/src/server/scripts/Kalimdor/zone_tanaris.cpp
index 86b8955b4c6..82e89a18c0e 100644
--- a/src/server/scripts/Kalimdor/zone_tanaris.cpp
+++ b/src/server/scripts/Kalimdor/zone_tanaris.cpp
@@ -38,7 +38,7 @@ EndContentData */
#include "WorldSession.h"
/*######
-## mob_aquementas
+## npc_aquementas
######*/
enum Aquementas
@@ -49,19 +49,19 @@ enum Aquementas
SPELL_FROST_SHOCK = 15089
};
-class mob_aquementas : public CreatureScript
+class npc_aquementas : public CreatureScript
{
public:
- mob_aquementas() : CreatureScript("mob_aquementas") { }
+ npc_aquementas() : CreatureScript("npc_aquementas") { }
CreatureAI* GetAI(Creature* creature) const
{
- return new mob_aquementasAI (creature);
+ return new npc_aquementasAI (creature);
}
- struct mob_aquementasAI : public ScriptedAI
+ struct npc_aquementasAI : public ScriptedAI
{
- mob_aquementasAI(Creature* creature) : ScriptedAI(creature) {}
+ npc_aquementasAI(Creature* creature) : ScriptedAI(creature) {}
uint32 SendItemTimer;
uint32 SwitchFactionTimer;