Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4

This commit is contained in:
Shauren committed 2013-10-26 17:06:50 +02:00
commit 75a790ca47
326 files changed
+3311 -1522

No files matched your search

+26
View File
@@ -31,6 +31,7 @@ EndScriptData */
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "GossipDef.h"
#include "Transport.h"
#include "Language.h"
#include <fstream>
@@ -91,6 +92,7 @@ public:
{ "areatriggers", rbac::RBAC_PERM_COMMAND_DEBUG_AREATRIGGERS, false, &HandleDebugAreaTriggersCommand, "", NULL },
{ "los", rbac::RBAC_PERM_COMMAND_DEBUG_LOS, false, &HandleDebugLoSCommand, "", NULL },
{ "moveflags", rbac::RBAC_PERM_COMMAND_DEBUG_MOVEFLAGS, false, &HandleDebugMoveflagsCommand, "", NULL },
{ "transport", rbac::RBAC_PERM_COMMAND_DEBUG_TRANSPORT, false, &HandleDebugTransportCommand, "", NULL },
{ "phase", rbac::RBAC_PERM_COMMAND_DEBUG_PHASE, false, &HandleDebugPhaseCommand, "", NULL },
{ NULL, 0, false, NULL, "", NULL }
};
@@ -1358,6 +1360,30 @@ public:
return true;
}
static bool HandleDebugTransportCommand(ChatHandler* handler, char const* args)
{
Transport* transport = handler->GetSession()->GetPlayer()->GetTransport();
if (!transport)
return false;
bool start = false;
if (!stricmp(args, "stop"))
transport->EnableMovement(false);
else if (!stricmp(args, "start"))
{
transport->EnableMovement(true);
start = true;
}
else
{
handler->PSendSysMessage("Transport %s is %s", transport->GetName().c_str(), transport->GetGoState() == GO_STATE_READY ? "stopped" : "moving");
return true;
}
handler->PSendSysMessage("Transport %s %s", transport->GetName().c_str(), start ? "started" : "stopped");
return true;
}
static bool HandleDebugPhaseCommand(ChatHandler* handler, char const* /*args*/)
{
Unit* unit = handler->getSelectedUnit();
+48 -3
View File
@@ -260,24 +260,35 @@ public:
static bool HandleGroupListCommand(ChatHandler* handler, char const* args)
{
// Get ALL the variables!
Player* playerTarget;
uint32 phase = 0;
uint64 guidTarget;
std::string nameTarget;
std::string zoneName;
const char* onlineState = "";
// Parse the guid to uint32...
uint32 parseGUID = MAKE_NEW_GUID(atol((char*)args), 0, HIGHGUID_PLAYER);
// ... and try to extract a player out of it.
if (sObjectMgr->GetPlayerNameByGUID(parseGUID, nameTarget))
{
playerTarget = sObjectMgr->GetPlayerByLowGUID(parseGUID);
guidTarget = parseGUID;
}
// If not, we return false and end right away.
else if (!handler->extractPlayerTarget((char*)args, &playerTarget, &guidTarget, &nameTarget))
return false;
// Next, we need a group. So we define a group variable.
Group* groupTarget = NULL;
// We try to extract a group from an online player.
if (playerTarget)
groupTarget = playerTarget->GetGroup();
// If not, we extract it from the SQL.
if (!groupTarget)
{
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_GROUP_MEMBER);
@@ -287,6 +298,7 @@ public:
groupTarget = sGroupMgr->GetGroupByDbStoreId((*resultGroup)[0].GetUInt32());
}
// If both fails, players simply has no party. Return false.
if (!groupTarget)
{
handler->PSendSysMessage(LANG_GROUP_NOT_IN_GROUP, nameTarget.c_str());
@@ -294,12 +306,20 @@ public:
return false;
}
handler->PSendSysMessage(LANG_GROUP_TYPE, (groupTarget->isRaidGroup() ? "raid" : "party"));
// We get the group members after successfully detecting a group.
Group::MemberSlotList const& members = groupTarget->GetMemberSlots();
// To avoid a cluster fuck, namely trying multiple queries to simply get a group member count...
handler->PSendSysMessage(LANG_GROUP_TYPE, (groupTarget->isRaidGroup() ? "raid" : "party"), members.size());
// ... we simply move the group type and member count print after retrieving the slots and simply output it's size.
// While rather dirty codestyle-wise, it saves space (if only a little). For each member, we look several informations up.
for (Group::MemberSlotList::const_iterator itr = members.begin(); itr != members.end(); ++itr)
{
// Define temporary variable slot to iterator.
Group::MemberSlot const& slot = *itr;
// Check for given flag and assign it to that iterator
std::string flags;
if (slot.flags & MEMBER_FLAG_ASSISTANT)
flags = "Assistant";
@@ -321,13 +341,38 @@ public:
if (flags.empty())
flags = "None";
// Check if iterator is online. If is...
Player* p = ObjectAccessor::FindPlayer((*itr).guid);
const char* onlineState = (p && p->IsInWorld()) ? "online" : "offline";
if (p && p->IsInWorld())
{
// ... than, it prints information like "is online", where he is, etc...
onlineState = "online";
phase = (!p->IsGameMaster() ? p->GetPhaseMask() : -1);
uint32 locale = handler->GetSessionDbcLocale();
AreaTableEntry const* area = GetAreaEntryByAreaID(p->GetAreaId());
if (area)
{
AreaTableEntry const* zone = GetAreaEntryByAreaID(area->zone);
if (zone)
zoneName = zone->area_name[locale];
}
}
else
{
// ... else, everything is set to offline or neutral values.
zoneName = "<ERROR>";
onlineState = "Offline";
phase = 0;
}
// Now we can print those informations for every single member of each group!
handler->PSendSysMessage(LANG_GROUP_PLAYER_NAME_GUID, slot.name.c_str(), onlineState,
GUID_LOPART(slot.guid), flags.c_str(), lfg::GetRolesString(slot.roles).c_str());
zoneName.c_str(), phase, GUID_LOPART(slot.guid), flags.c_str(),
lfg::GetRolesString(slot.roles).c_str());
}
// And finish after every iterator is done.
return true;
}
};
+14 -26
View File
@@ -246,24 +246,22 @@ public:
float o = chr->GetOrientation();
Map* map = chr->GetMap();
if (chr->GetTransport())
if (Transport* trans = chr->GetTransport())
{
uint32 tguid = chr->GetTransport()->AddNPCPassenger(0, id, chr->GetTransOffsetX(), chr->GetTransOffsetY(), chr->GetTransOffsetZ(), chr->GetTransOffsetO());
if (tguid > 0)
{
PreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_INS_CREATURE_TRANSPORT);
uint32 guid = sObjectMgr->GenerateLowGuid(HIGHGUID_UNIT);
CreatureData& data = sObjectMgr->NewOrExistCreatureData(guid);
data.id = id;
data.phaseMask = chr->GetPhaseMgr().GetPhaseMaskForSpawn();
data.posX = chr->GetTransOffsetX();
data.posY = chr->GetTransOffsetY();
data.posZ = chr->GetTransOffsetZ();
data.orientation = chr->GetTransOffsetO();
stmt->setInt32(0, int32(tguid));
stmt->setInt32(1, int32(id));
stmt->setInt32(2, int32(chr->GetTransport()->GetEntry()));
stmt->setFloat(3, chr->GetTransOffsetX());
stmt->setFloat(4, chr->GetTransOffsetY());
stmt->setFloat(5, chr->GetTransOffsetZ());
stmt->setFloat(6, chr->GetTransOffsetO());
Creature* creature = trans->CreateNPCPassenger(guid, &data);
WorldDatabase.Execute(stmt);
}
creature->SaveToDB(trans->GetGOInfo()->moTransport.mapID, 1 << map->GetSpawnMode(), chr->GetPhaseMgr().GetPhaseMaskForSpawn());
sObjectMgr->AddCreatureToGrid(guid, &data);
return true;
}
@@ -904,17 +902,6 @@ public:
return false;
}
if (target->GetTransport() && target->GetGUIDTransport())
{
PreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_UPD_CREATURE_TRANSPORT_EMOTE);
stmt->setInt32(0, int32(emote));
stmt->setInt32(1, target->GetTransport()->GetEntry());
stmt->setInt32(2, target->GetGUIDTransport());
WorldDatabase.Execute(stmt);
}
target->SetUInt32Value(UNIT_NPC_EMOTESTATE, emote);
return true;
@@ -1342,7 +1329,8 @@ public:
{
if (!*args)
return false;
char* charID = strtok((char*)args, " ");
char* charID = handler->extractKeyFromLink((char*)args, "Hcreature_entry");
if (!charID)
return false;
+1 -1
View File
@@ -65,7 +65,7 @@ public:
std::string name = args;
if (sObjectMgr->GetGameTele(name))
if (sObjectMgr->GetGameTeleExactName(name))
{
handler->SendSysMessage(LANG_COMMAND_TP_ALREADYEXIST);
handler->SetSentErrorMessage(true);
@@ -50,7 +50,7 @@ public:
struct npc_water_elementalAI : public ScriptedAI
{
npc_water_elementalAI(Creature* creature) : ScriptedAI(creature) {}
npc_water_elementalAI(Creature* creature) : ScriptedAI(creature) { }
uint32 waterBoltTimer;
uint64 balindaGUID;
@@ -99,7 +99,7 @@ public:
struct boss_balindaAI : public ScriptedAI
{
boss_balindaAI(Creature* creature) : ScriptedAI(creature), summons(me) {}
boss_balindaAI(Creature* creature) : ScriptedAI(creature), summons(me) { }
uint32 arcaneExplosionTimer;
uint32 coneOfColdTimer;
@@ -45,7 +45,7 @@ public:
struct boss_drektharAI : public ScriptedAI
{
boss_drektharAI(Creature* creature) : ScriptedAI(creature) {}
boss_drektharAI(Creature* creature) : ScriptedAI(creature) { }
uint32 WhirlwindTimer;
uint32 Whirlwind2Timer;
@@ -40,7 +40,7 @@ public:
struct boss_galvangarAI : public ScriptedAI
{
boss_galvangarAI(Creature* creature) : ScriptedAI(creature) {}
boss_galvangarAI(Creature* creature) : ScriptedAI(creature) { }
uint32 CleaveTimer;
uint32 FrighteningShoutTimer;
@@ -42,7 +42,7 @@ public:
struct boss_vanndarAI : public ScriptedAI
{
boss_vanndarAI(Creature* creature) : ScriptedAI(creature) {}
boss_vanndarAI(Creature* creature) : ScriptedAI(creature) { }
uint32 AvatarTimer;
uint32 ThunderclapTimer;
@@ -359,7 +359,7 @@ public:
struct npc_phalanxAI : public ScriptedAI
{
npc_phalanxAI(Creature* creature) : ScriptedAI(creature) {}
npc_phalanxAI(Creature* creature) : ScriptedAI(creature) { }
uint32 ThunderClap_Timer;
uint32 FireballVolley_Timer;
@@ -613,7 +613,7 @@ public:
struct npc_dughal_stormwingAI : public npc_escortAI
{
npc_dughal_stormwingAI(Creature* creature) : npc_escortAI(creature) {}
npc_dughal_stormwingAI(Creature* creature) : npc_escortAI(creature) { }
void WaypointReached(uint32 waypointId) OVERRIDE
{
@@ -1125,7 +1125,7 @@ public:
struct npc_tobias_seecherAI : public npc_escortAI
{
npc_tobias_seecherAI(Creature* creature) : npc_escortAI(creature) {}
npc_tobias_seecherAI(Creature* creature) : npc_escortAI(creature) { }
void EnterCombat(Unit* who) OVERRIDE {}
void Reset() OVERRIDE {}
@@ -36,7 +36,7 @@ public:
struct boss_ambassador_flamelashAI : public ScriptedAI
{
boss_ambassador_flamelashAI(Creature* creature) : ScriptedAI(creature) {}
boss_ambassador_flamelashAI(Creature* creature) : ScriptedAI(creature) { }
uint32 FireBlast_Timer;
uint32 Spirit_Timer;
@@ -40,7 +40,7 @@ public:
struct boss_anubshiahAI : public ScriptedAI
{
boss_anubshiahAI(Creature* creature) : ScriptedAI(creature) {}
boss_anubshiahAI(Creature* creature) : ScriptedAI(creature) { }
uint32 ShadowBolt_Timer;
uint32 CurseOfTongues_Timer;
@@ -38,7 +38,7 @@ public:
struct boss_general_angerforgeAI : public ScriptedAI
{
boss_general_angerforgeAI(Creature* creature) : ScriptedAI(creature) {}
boss_general_angerforgeAI(Creature* creature) : ScriptedAI(creature) { }
uint32 MightyBlow_Timer;
uint32 HamString_Timer;
@@ -37,7 +37,7 @@ public:
struct boss_gorosh_the_dervishAI : public ScriptedAI
{
boss_gorosh_the_dervishAI(Creature* creature) : ScriptedAI(creature) {}
boss_gorosh_the_dervishAI(Creature* creature) : ScriptedAI(creature) { }
uint32 WhirlWind_Timer;
uint32 MortalStrike_Timer;
@@ -38,7 +38,7 @@ public:
struct boss_grizzleAI : public ScriptedAI
{
boss_grizzleAI(Creature* creature) : ScriptedAI(creature) {}
boss_grizzleAI(Creature* creature) : ScriptedAI(creature) { }
uint32 GroundTremor_Timer;
uint32 Frenzy_Timer;
@@ -39,7 +39,7 @@ public:
struct boss_high_interrogator_gerstahnAI : public ScriptedAI
{
boss_high_interrogator_gerstahnAI(Creature* creature) : ScriptedAI(creature) {}
boss_high_interrogator_gerstahnAI(Creature* creature) : ScriptedAI(creature) { }
uint32 ShadowWordPain_Timer;
uint32 ManaBurn_Timer;
@@ -42,7 +42,7 @@ public:
struct boss_magmusAI : public ScriptedAI
{
boss_magmusAI(Creature* creature) : ScriptedAI(creature) {}
boss_magmusAI(Creature* creature) : ScriptedAI(creature) { }
uint32 FieryBurst_Timer;
uint32 WarStomp_Timer;
@@ -41,7 +41,7 @@ public:
struct boss_moira_bronzebeardAI : public ScriptedAI
{
boss_moira_bronzebeardAI(Creature* creature) : ScriptedAI(creature) {}
boss_moira_bronzebeardAI(Creature* creature) : ScriptedAI(creature) { }
uint32 Heal_Timer;
uint32 MindBlast_Timer;
@@ -76,7 +76,7 @@ public:
struct instance_blackrock_depths_InstanceMapScript : public InstanceScript
{
instance_blackrock_depths_InstanceMapScript(Map* map) : InstanceScript(map) {}
instance_blackrock_depths_InstanceMapScript(Map* map) : InstanceScript(map) { }
uint32 encounter[MAX_ENCOUNTER];
std::string str_data;
@@ -43,7 +43,7 @@ public:
struct boss_drakkisathAI : public BossAI
{
boss_drakkisathAI(Creature* creature) : BossAI(creature, DATA_GENERAL_DRAKKISATH) {}
boss_drakkisathAI(Creature* creature) : BossAI(creature, DATA_GENERAL_DRAKKISATH) { }
void Reset() OVERRIDE
{
@@ -46,7 +46,7 @@ public:
struct boss_gizrul_the_slavenerAI : public BossAI
{
boss_gizrul_the_slavenerAI(Creature* creature) : BossAI(creature, DATA_GIZRUL_THE_SLAVENER) {}
boss_gizrul_the_slavenerAI(Creature* creature) : BossAI(creature, DATA_GIZRUL_THE_SLAVENER) { }
void Reset() OVERRIDE
{
@@ -45,7 +45,7 @@ public:
struct boss_halyconAI : public BossAI
{
boss_halyconAI(Creature* creature) : BossAI(creature, DATA_HALYCON) {}
boss_halyconAI(Creature* creature) : BossAI(creature, DATA_HALYCON) { }
void Reset() OVERRIDE
{
@@ -44,7 +44,7 @@ public:
struct boss_highlordomokkAI : public BossAI
{
boss_highlordomokkAI(Creature* creature) : BossAI(creature, DATA_HIGHLORD_OMOKK) {}
boss_highlordomokkAI(Creature* creature) : BossAI(creature, DATA_HIGHLORD_OMOKK) { }
void Reset() OVERRIDE
{
@@ -46,7 +46,7 @@ public:
struct boss_lord_valthalakAI : public BossAI
{
boss_lord_valthalakAI(Creature* creature) : BossAI(creature, DATA_LORD_VALTHALAK) {}
boss_lord_valthalakAI(Creature* creature) : BossAI(creature, DATA_LORD_VALTHALAK) { }
void Reset() OVERRIDE
{
@@ -45,7 +45,7 @@ public:
struct boss_mothersmolderwebAI : public BossAI
{
boss_mothersmolderwebAI(Creature* creature) : BossAI(creature, DATA_MOTHER_SMOLDERWEB) {}
boss_mothersmolderwebAI(Creature* creature) : BossAI(creature, DATA_MOTHER_SMOLDERWEB) { }
void Reset() OVERRIDE
{
@@ -57,7 +57,7 @@ public:
struct boss_overlordwyrmthalakAI : public BossAI
{
boss_overlordwyrmthalakAI(Creature* creature) : BossAI(creature, DATA_OVERLORD_WYRMTHALAK) {}
boss_overlordwyrmthalakAI(Creature* creature) : BossAI(creature, DATA_OVERLORD_WYRMTHALAK) { }
bool Summoned;
@@ -75,7 +75,7 @@ public:
struct boss_pyroguard_emberseerAI : public BossAI
{
boss_pyroguard_emberseerAI(Creature* creature) : BossAI(creature, DATA_PYROGAURD_EMBERSEER) {}
boss_pyroguard_emberseerAI(Creature* creature) : BossAI(creature, DATA_PYROGAURD_EMBERSEER) { }
void Reset() OVERRIDE
{
@@ -340,7 +340,7 @@ public:
struct npc_blackhand_incarceratorAI : public ScriptedAI
{
npc_blackhand_incarceratorAI(Creature* creature) : ScriptedAI(creature) {}
npc_blackhand_incarceratorAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
{
@@ -40,7 +40,7 @@ public:
struct boss_quatermasterzigrisAI : public BossAI
{
boss_quatermasterzigrisAI(Creature* creature) : BossAI(creature, DATA_QUARTERMASTER_ZIGRIS) {}
boss_quatermasterzigrisAI(Creature* creature) : BossAI(creature, DATA_QUARTERMASTER_ZIGRIS) { }
void Reset() OVERRIDE
{
@@ -46,7 +46,7 @@ public:
struct boss_shadowvoshAI : public BossAI
{
boss_shadowvoshAI(Creature* creature) : BossAI(creature, DATA_SHADOW_HUNTER_VOSHGAJIN) {}
boss_shadowvoshAI(Creature* creature) : BossAI(creature, DATA_SHADOW_HUNTER_VOSHGAJIN) { }
void Reset() OVERRIDE
{
@@ -46,7 +46,7 @@ public:
struct boss_thebeastAI : public BossAI
{
boss_thebeastAI(Creature* creature) : BossAI(creature, DATA_THE_BEAST) {}
boss_thebeastAI(Creature* creature) : BossAI(creature, DATA_THE_BEAST) { }
void Reset() OVERRIDE
{
@@ -46,7 +46,7 @@ public:
struct boss_urok_doomhowlAI : public BossAI
{
boss_urok_doomhowlAI(Creature* creature) : BossAI(creature, DATA_UROK_DOOMHOWL) {}
boss_urok_doomhowlAI(Creature* creature) : BossAI(creature, DATA_UROK_DOOMHOWL) { }
void Reset() OVERRIDE
{
@@ -52,7 +52,7 @@ public:
struct boss_warmastervooneAI : public BossAI
{
boss_warmastervooneAI(Creature* creature) : BossAI(creature, DATA_WARMASTER_VOONE) {}
boss_warmastervooneAI(Creature* creature) : BossAI(creature, DATA_WARMASTER_VOONE) { }
void Reset() OVERRIDE
{
@@ -108,7 +108,7 @@ class npc_firesworn : public CreatureScript
struct npc_fireswornAI : public ScriptedAI
{
npc_fireswornAI(Creature* creature) : ScriptedAI(creature) {}
npc_fireswornAI(Creature* creature) : ScriptedAI(creature) { }
uint32 immolateTimer;
@@ -57,7 +57,7 @@ class instance_deadmines : public InstanceMapScript
struct instance_deadmines_InstanceMapScript : public InstanceScript
{
instance_deadmines_InstanceMapScript(Map* map) : InstanceScript(map) {}
instance_deadmines_InstanceMapScript(Map* map) : InstanceScript(map) { }
uint64 FactoryDoorGUID;
uint64 IronCladDoorGUID;
@@ -60,7 +60,7 @@ public:
struct boss_curatorAI : public ScriptedAI
{
boss_curatorAI(Creature* creature) : ScriptedAI(creature) {}
boss_curatorAI(Creature* creature) : ScriptedAI(creature) { }
uint32 AddTimer;
uint32 HatefulBoltTimer;
@@ -52,7 +52,7 @@ public:
struct boss_maiden_of_virtueAI : public ScriptedAI
{
boss_maiden_of_virtueAI(Creature* creature) : ScriptedAI(creature) {}
boss_maiden_of_virtueAI(Creature* creature) : ScriptedAI(creature) { }
uint32 Repentance_Timer;
uint32 Holyfire_Timer;
@@ -126,7 +126,7 @@ public:
struct boss_midnightAI : public ScriptedAI
{
boss_midnightAI(Creature* creature) : ScriptedAI(creature) {}
boss_midnightAI(Creature* creature) : ScriptedAI(creature) { }
uint64 Attumen;
uint8 Phase;
@@ -399,7 +399,7 @@ public:
struct boss_baroness_dorothea_millstipeAI : public boss_moroes_guestAI
{
//Shadow Priest
boss_baroness_dorothea_millstipeAI(Creature* creature) : boss_moroes_guestAI(creature) {}
boss_baroness_dorothea_millstipeAI(Creature* creature) : boss_moroes_guestAI(creature) { }
uint32 ManaBurn_Timer;
uint32 MindFlay_Timer;
@@ -519,7 +519,7 @@ public:
struct boss_lady_catriona_von_indiAI : public boss_moroes_guestAI
{
//Holy Priest
boss_lady_catriona_von_indiAI(Creature* creature) : boss_moroes_guestAI(creature) {}
boss_lady_catriona_von_indiAI(Creature* creature) : boss_moroes_guestAI(creature) { }
uint32 DispelMagic_Timer;
uint32 GreaterHeal_Timer;
@@ -663,7 +663,7 @@ public:
struct boss_lord_robin_darisAI : public boss_moroes_guestAI
{
//Arms Warr
boss_lord_robin_darisAI(Creature* creature) : boss_moroes_guestAI(creature) {}
boss_lord_robin_darisAI(Creature* creature) : boss_moroes_guestAI(creature) { }
uint32 Hamstring_Timer;
uint32 MortalStrike_Timer;
@@ -719,7 +719,7 @@ public:
struct boss_lord_crispin_ferenceAI : public boss_moroes_guestAI
{
//Arms Warr
boss_lord_crispin_ferenceAI(Creature* creature) : boss_moroes_guestAI(creature) {}
boss_lord_crispin_ferenceAI(Creature* creature) : boss_moroes_guestAI(creature) { }
uint32 Disarm_Timer;
uint32 HeroicStrike_Timer;
@@ -110,7 +110,7 @@ public:
struct netherspite_infernalAI : public ScriptedAI
{
netherspite_infernalAI(Creature* creature) : ScriptedAI(creature),
HellfireTimer(0), CleanupTimer(0), malchezaar(0), point(NULL) {}
HellfireTimer(0), CleanupTimer(0), malchezaar(0), point(NULL) { }
uint32 HellfireTimer;
uint32 CleanupTimer;
@@ -520,7 +520,7 @@ public:
struct water_elementalAI : public ScriptedAI
{
water_elementalAI(Creature* creature) : ScriptedAI(creature) {}
water_elementalAI(Creature* creature) : ScriptedAI(creature) { }
uint32 CastTimer;
@@ -147,7 +147,7 @@ public:
struct npc_demon_chainAI : public ScriptedAI
{
npc_demon_chainAI(Creature* creature) : ScriptedAI(creature) {}
npc_demon_chainAI(Creature* creature) : ScriptedAI(creature) { }
uint64 SacrificeGUID;
@@ -219,7 +219,7 @@ public:
struct npc_fiendish_impAI : public ScriptedAI
{
npc_fiendish_impAI(Creature* creature) : ScriptedAI(creature) {}
npc_fiendish_impAI(Creature* creature) : ScriptedAI(creature) { }
uint32 FireboltTimer;
@@ -238,7 +238,7 @@ public:
struct npc_titoAI : public ScriptedAI
{
npc_titoAI(Creature* creature) : ScriptedAI(creature) {}
npc_titoAI(Creature* creature) : ScriptedAI(creature) { }
uint64 DorotheeGUID;
uint32 YipTimer;
@@ -724,7 +724,7 @@ public:
struct npc_cycloneAI : public ScriptedAI
{
npc_cycloneAI(Creature* creature) : ScriptedAI(creature) {}
npc_cycloneAI(Creature* creature) : ScriptedAI(creature) { }
uint32 MoveTimer;
@@ -56,7 +56,7 @@ public:
struct instance_karazhan_InstanceMapScript : public InstanceScript
{
instance_karazhan_InstanceMapScript(Map* map) : InstanceScript(map) {}
instance_karazhan_InstanceMapScript(Map* map) : InstanceScript(map) { }
uint32 m_auiEncounter[MAX_ENCOUNTER];
std::string strSaveData;
@@ -600,7 +600,7 @@ public:
struct npc_felkael_phoenix_eggAI : public ScriptedAI
{
npc_felkael_phoenix_eggAI(Creature* creature) : ScriptedAI(creature) {}
npc_felkael_phoenix_eggAI(Creature* creature) : ScriptedAI(creature) { }
uint32 HatchTimer;
@@ -510,7 +510,7 @@ public:
struct boss_kagani_nightstrikeAI : public boss_priestess_lackey_commonAI
{
//Rogue
boss_kagani_nightstrikeAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) {}
boss_kagani_nightstrikeAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) { }
uint32 Gouge_Timer;
uint32 Kick_Timer;
@@ -614,7 +614,7 @@ public:
struct boss_ellris_duskhallowAI : public boss_priestess_lackey_commonAI
{
//Warlock
boss_ellris_duskhallowAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) {}
boss_ellris_duskhallowAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) { }
uint32 Immolate_Timer;
uint32 Shadow_Bolt_Timer;
@@ -705,7 +705,7 @@ public:
struct boss_eramas_brightblazeAI : public boss_priestess_lackey_commonAI
{
//Monk
boss_eramas_brightblazeAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) {}
boss_eramas_brightblazeAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) { }
uint32 Knockdown_Timer;
uint32 Snap_Kick_Timer;
@@ -766,7 +766,7 @@ public:
struct boss_yazzaiAI : public boss_priestess_lackey_commonAI
{
//Mage
boss_yazzaiAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) {}
boss_yazzaiAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) { }
bool HasIceBlocked;
@@ -896,7 +896,7 @@ public:
struct boss_warlord_salarisAI : public boss_priestess_lackey_commonAI
{
//Warrior
boss_warlord_salarisAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) {}
boss_warlord_salarisAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) { }
uint32 Intercept_Stun_Timer;
uint32 Disarm_Timer;
@@ -1127,7 +1127,7 @@ public:
struct boss_apokoAI : public boss_priestess_lackey_commonAI
{
//Shaman
boss_apokoAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) {}
boss_apokoAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) { }
uint32 Totem_Timer;
uint8 Totem_Amount;
@@ -1225,7 +1225,7 @@ public:
struct boss_zelfanAI : public boss_priestess_lackey_commonAI
{
//Engineer
boss_zelfanAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) {}
boss_zelfanAI(Creature* creature) : boss_priestess_lackey_commonAI(creature) { }
uint32 Goblin_Dragon_Gun_Timer;
uint32 Rocket_Launch_Timer;
@@ -332,7 +332,7 @@ public:
struct npc_fel_crystalAI : public ScriptedAI
{
npc_fel_crystalAI(Creature* creature) : ScriptedAI(creature) {}
npc_fel_crystalAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE {}
void EnterCombat(Unit* /*who*/) OVERRIDE {}
@@ -62,7 +62,7 @@ public:
struct instance_magisters_terrace_InstanceMapScript : public InstanceScript
{
instance_magisters_terrace_InstanceMapScript(Map* map) : InstanceScript(map) {}
instance_magisters_terrace_InstanceMapScript(Map* map) : InstanceScript(map) { }
uint32 Encounter[MAX_ENCOUNTER];
uint32 DelrissaDeathCount;
@@ -115,7 +115,7 @@ public:
struct npc_kalecgosAI : public ScriptedAI
{
npc_kalecgosAI(Creature* creature) : ScriptedAI(creature) {}
npc_kalecgosAI(Creature* creature) : ScriptedAI(creature) { }
uint32 m_uiTransformTimer;
@@ -288,7 +288,7 @@ public:
struct npc_unworthy_initiate_anchorAI : public PassiveAI
{
npc_unworthy_initiate_anchorAI(Creature* creature) : PassiveAI(creature), prisonerGUID(0) {}
npc_unworthy_initiate_anchorAI(Creature* creature) : PassiveAI(creature), prisonerGUID(0) { }
uint64 prisonerGUID;
@@ -615,7 +615,7 @@ public:
struct npc_salanar_the_horsemanAI : public ScriptedAI
{
npc_salanar_the_horsemanAI(Creature* creature) : ScriptedAI(creature) {}
npc_salanar_the_horsemanAI(Creature* creature) : ScriptedAI(creature) { }
void SpellHit(Unit* caster, const SpellInfo* spell) OVERRIDE
{
@@ -687,7 +687,7 @@ public:
struct npc_ros_dark_riderAI : public ScriptedAI
{
npc_ros_dark_riderAI(Creature* creature) : ScriptedAI(creature) {}
npc_ros_dark_riderAI(Creature* creature) : ScriptedAI(creature) { }
void EnterCombat(Unit* /*who*/) OVERRIDE
{
@@ -742,7 +742,7 @@ public:
struct npc_dkc1_gothikAI : public ScriptedAI
{
npc_dkc1_gothikAI(Creature* creature) : ScriptedAI(creature) {}
npc_dkc1_gothikAI(Creature* creature) : ScriptedAI(creature) { }
void MoveInLineOfSight(Unit* who) OVERRIDE
@@ -51,7 +51,7 @@ public:
struct npc_crusade_persuadedAI : public ScriptedAI
{
npc_crusade_persuadedAI(Creature* creature) : ScriptedAI(creature) {}
npc_crusade_persuadedAI(Creature* creature) : ScriptedAI(creature) { }
uint32 speechTimer;
uint32 speechCounter;
@@ -375,7 +375,7 @@ public:
struct npc_scarlet_courierAI : public ScriptedAI
{
npc_scarlet_courierAI(Creature* creature) : ScriptedAI(creature) {}
npc_scarlet_courierAI(Creature* creature) : ScriptedAI(creature) { }
uint32 uiStage;
uint32 uiStage_timer;
@@ -467,7 +467,7 @@ public:
struct npc_high_inquisitor_valrothAI : public ScriptedAI
{
npc_high_inquisitor_valrothAI(Creature* creature) : ScriptedAI(creature) {}
npc_high_inquisitor_valrothAI(Creature* creature) : ScriptedAI(creature) { }
uint32 uiRenew_timer;
uint32 uiInquisitor_Penance_timer;
@@ -603,7 +603,7 @@ public:
struct npc_a_special_surpriseAI : public ScriptedAI
{
npc_a_special_surpriseAI(Creature* creature) : ScriptedAI(creature) {}
npc_a_special_surpriseAI(Creature* creature) : ScriptedAI(creature) { }
uint32 ExecuteSpeech_Timer;
uint32 ExecuteSpeech_Counter;
@@ -1679,7 +1679,7 @@ public:
{
npc_the_lich_king_tirion_dawnAI(Creature* creature) : ScriptedAI(creature) { Reset(); }
void Reset() OVERRIDE {}
void AttackStart(Unit* /*who*/) {} // very sample, just don't make them aggreesive OVERRIDE
void AttackStart(Unit* /*who*/) { } // very sample, just don't make them aggreesive OVERRIDE
void UpdateAI(uint32 /*diff*/) OVERRIDE {}
void JustDied(Unit* /*killer*/) OVERRIDE {}
};
@@ -46,7 +46,7 @@ public:
struct npc_valkyr_battle_maidenAI : public PassiveAI
{
npc_valkyr_battle_maidenAI(Creature* creature) : PassiveAI(creature) {}
npc_valkyr_battle_maidenAI(Creature* creature) : PassiveAI(creature) { }
uint32 FlyBackTimer;
float x, y, z;
@@ -53,7 +53,7 @@ public:
struct boss_arcanist_doanAI : public ScriptedAI
{
boss_arcanist_doanAI(Creature* creature) : ScriptedAI(creature) {}
boss_arcanist_doanAI(Creature* creature) : ScriptedAI(creature) { }
uint32 Polymorph_Timer;
uint32 AoESilence_Timer;
@@ -45,7 +45,7 @@ public:
struct boss_azshir_the_sleeplessAI : public ScriptedAI
{
boss_azshir_the_sleeplessAI(Creature* creature) : ScriptedAI(creature) {}
boss_azshir_the_sleeplessAI(Creature* creature) : ScriptedAI(creature) { }
uint32 SoulSiphon_Timer;
uint32 CallOftheGrave_Timer;
@@ -53,7 +53,7 @@ public:
struct boss_bloodmage_thalnosAI : public ScriptedAI
{
boss_bloodmage_thalnosAI(Creature* creature) : ScriptedAI(creature) {}
boss_bloodmage_thalnosAI(Creature* creature) : ScriptedAI(creature) { }
bool HpYell;
uint32 FlameShock_Timer;
@@ -233,7 +233,7 @@ public:
struct npc_headAI : public ScriptedAI
{
npc_headAI(Creature* creature) : ScriptedAI(creature) {}
npc_headAI(Creature* creature) : ScriptedAI(creature) { }
uint64 bodyGUID;
@@ -580,7 +580,11 @@ public:
Map::PlayerList const& players = me->GetMap()->GetPlayers();
if (!players.isEmpty())
sLFGMgr->FinishDungeon(players.begin()->GetSource()->GetGroup()->GetGUID(), 285);
{
if (Group* group = players.begin()->GetSource()->GetGroup())
if (group->isLFGGroup())
sLFGMgr->FinishDungeon(group->GetGUID(), 285);
}
}
void SpellHit(Unit* caster, const SpellInfo* spell) OVERRIDE
@@ -792,7 +796,7 @@ public:
struct npc_pulsing_pumpkinAI : public ScriptedAI
{
npc_pulsing_pumpkinAI(Creature* creature) : ScriptedAI(creature) {}
npc_pulsing_pumpkinAI(Creature* creature) : ScriptedAI(creature) { }
bool sprouted;
uint64 debuffGUID;
@@ -62,7 +62,7 @@ public:
struct boss_herodAI : public ScriptedAI
{
boss_herodAI(Creature* creature) : ScriptedAI(creature) {}
boss_herodAI(Creature* creature) : ScriptedAI(creature) { }
bool Enrage;
@@ -48,7 +48,7 @@ public:
struct boss_high_inquisitor_fairbanksAI : public ScriptedAI
{
boss_high_inquisitor_fairbanksAI(Creature* creature) : ScriptedAI(creature) {}
boss_high_inquisitor_fairbanksAI(Creature* creature) : ScriptedAI(creature) { }
uint32 CurseOfBlood_Timer;
uint32 DispelMagic_Timer;
@@ -49,7 +49,7 @@ public:
struct boss_houndmaster_lokseyAI : public ScriptedAI
{
boss_houndmaster_lokseyAI(Creature* creature) : ScriptedAI(creature) {}
boss_houndmaster_lokseyAI(Creature* creature) : ScriptedAI(creature) { }
uint32 BloodLust_Timer;
@@ -46,7 +46,7 @@ public:
struct boss_scornAI : public ScriptedAI
{
boss_scornAI(Creature* creature) : ScriptedAI(creature) {}
boss_scornAI(Creature* creature) : ScriptedAI(creature) { }
uint32 LichSlap_Timer;
uint32 FrostboltVolley_Timer;
@@ -49,7 +49,7 @@ public:
struct instance_scarlet_monastery_InstanceMapScript : public InstanceScript
{
instance_scarlet_monastery_InstanceMapScript(Map* map) : InstanceScript(map) {}
instance_scarlet_monastery_InstanceMapScript(Map* map) : InstanceScript(map) { }
uint64 PumpkinShrineGUID;
uint64 HorsemanGUID;
@@ -54,7 +54,7 @@ class boss_darkmaster_gandling : public CreatureScript
struct boss_darkmaster_gandlingAI : public BossAI
{
boss_darkmaster_gandlingAI(Creature* creature) : BossAI(creature, DATA_DARKMASTERGANDLING) {}
boss_darkmaster_gandlingAI(Creature* creature) : BossAI(creature, DATA_DARKMASTERGANDLING) { }
void Reset() OVERRIDE
{
@@ -38,7 +38,7 @@ public:
struct boss_death_knight_darkreaverAI : public ScriptedAI
{
boss_death_knight_darkreaverAI(Creature* creature) : ScriptedAI(creature) {}
boss_death_knight_darkreaverAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
{
@@ -51,7 +51,7 @@ class boss_doctor_theolen_krastinov : public CreatureScript
struct boss_theolenkrastinovAI : public BossAI
{
boss_theolenkrastinovAI(Creature* creature) : BossAI(creature, DATA_DOCTORTHEOLENKRASTINOV) {}
boss_theolenkrastinovAI(Creature* creature) : BossAI(creature, DATA_DOCTORTHEOLENKRASTINOV) { }
void EnterCombat(Unit* /*who*/) OVERRIDE
{
@@ -48,7 +48,7 @@ class boss_illucia_barov : public CreatureScript
struct boss_illuciabarovAI : public BossAI
{
boss_illuciabarovAI(Creature* creature) : BossAI(creature, DATA_LADYILLUCIABAROV) {}
boss_illuciabarovAI(Creature* creature) : BossAI(creature, DATA_LADYILLUCIABAROV) { }
void EnterCombat(Unit* /*who*/) OVERRIDE
{
@@ -50,7 +50,7 @@ class boss_instructor_malicia : public CreatureScript
struct boss_instructormaliciaAI : public BossAI
{
boss_instructormaliciaAI(Creature* creature) : BossAI(creature, DATA_INSTRUCTORMALICIA) {}
boss_instructormaliciaAI(Creature* creature) : BossAI(creature, DATA_INSTRUCTORMALICIA) { }
uint32 FlashCounter;
uint32 TouchCounter;
@@ -47,7 +47,7 @@ public:
struct boss_jandicebarovAI : public ScriptedAI
{
boss_jandicebarovAI(Creature* creature) : ScriptedAI(creature) {}
boss_jandicebarovAI(Creature* creature) : ScriptedAI(creature) { }
uint32 CurseOfBlood_Timer;
uint32 Illusion_Timer;
@@ -169,7 +169,7 @@ public:
struct npc_illusionofjandicebarovAI : public ScriptedAI
{
npc_illusionofjandicebarovAI(Creature* creature) : ScriptedAI(creature) {}
npc_illusionofjandicebarovAI(Creature* creature) : ScriptedAI(creature) { }
uint32 Cleave_Timer;
@@ -44,7 +44,7 @@ public:
struct boss_kormokAI : public ScriptedAI
{
boss_kormokAI(Creature* creature) : ScriptedAI(creature) {}
boss_kormokAI(Creature* creature) : ScriptedAI(creature) { }
uint32 ShadowVolley_Timer;
uint32 BoneShield_Timer;
@@ -44,7 +44,7 @@ class boss_lord_alexei_barov : public CreatureScript
struct boss_lordalexeibarovAI : public BossAI
{
boss_lordalexeibarovAI(Creature* creature) : BossAI(creature, DATA_LORDALEXEIBAROV) {}
boss_lordalexeibarovAI(Creature* creature) : BossAI(creature, DATA_LORDALEXEIBAROV) { }
void Reset() OVERRIDE
{
@@ -48,7 +48,7 @@ class boss_lorekeeper_polkelt : public CreatureScript
struct boss_lorekeeperpolkeltAI : public BossAI
{
boss_lorekeeperpolkeltAI(Creature* creature) : BossAI(creature, DATA_LOREKEEPERPOLKELT) {}
boss_lorekeeperpolkeltAI(Creature* creature) : BossAI(creature, DATA_LOREKEEPERPOLKELT) { }
void EnterCombat(Unit* /*who*/) OVERRIDE
{
@@ -48,7 +48,7 @@ public:
struct boss_rasfrostAI : public ScriptedAI
{
boss_rasfrostAI(Creature* creature) : ScriptedAI(creature) {}
boss_rasfrostAI(Creature* creature) : ScriptedAI(creature) { }
uint32 IceArmor_Timer;
uint32 Frostbolt_Timer;
@@ -48,7 +48,7 @@ class boss_the_ravenian : public CreatureScript
struct boss_theravenianAI : public BossAI
{
boss_theravenianAI(Creature* creature) : BossAI(creature, DATA_THERAVENIAN) {}
boss_theravenianAI(Creature* creature) : BossAI(creature, DATA_THERAVENIAN) { }
void EnterCombat(Unit* /*who*/) OVERRIDE
{
@@ -51,7 +51,7 @@ public:
struct boss_vectusAI : public ScriptedAI
{
boss_vectusAI(Creature* creature) : ScriptedAI(creature) {}
boss_vectusAI(Creature* creature) : ScriptedAI(creature) { }
uint32 m_uiFireShield_Timer;
uint32 m_uiBlastWave_Timer;
@@ -78,7 +78,7 @@ public:
struct instance_shadowfang_keep_InstanceMapScript : public InstanceScript
{
instance_shadowfang_keep_InstanceMapScript(Map* map) : InstanceScript(map) {}
instance_shadowfang_keep_InstanceMapScript(Map* map) : InstanceScript(map) { }
uint32 m_auiEncounter[MAX_ENCOUNTER];
std::string str_data;
@@ -92,7 +92,7 @@ public:
struct boss_cannon_master_willeyAI : public ScriptedAI
{
boss_cannon_master_willeyAI(Creature* creature) : ScriptedAI(creature) {}
boss_cannon_master_willeyAI(Creature* creature) : ScriptedAI(creature) { }
uint32 KnockAway_Timer;
uint32 Pummel_Timer;
@@ -81,7 +81,7 @@ public:
struct boss_dathrohan_balnazzarAI : public ScriptedAI
{
boss_dathrohan_balnazzarAI(Creature* creature) : ScriptedAI(creature) {}
boss_dathrohan_balnazzarAI(Creature* creature) : ScriptedAI(creature) { }
uint32 m_uiCrusadersHammer_Timer;
uint32 m_uiCrusaderStrike_Timer;
@@ -53,7 +53,7 @@ public:
struct boss_magistrate_barthilasAI : public ScriptedAI
{
boss_magistrate_barthilasAI(Creature* creature) : ScriptedAI(creature) {}
boss_magistrate_barthilasAI(Creature* creature) : ScriptedAI(creature) { }
uint32 DrainingBlow_Timer;
uint32 CrowdPummel_Timer;
@@ -59,7 +59,7 @@ class boss_postmaster_malown : public CreatureScript
struct boss_postmaster_malownAI : public BossAI
{
boss_postmaster_malownAI(Creature* creature) : BossAI(creature, TYPE_MALOWN) {}
boss_postmaster_malownAI(Creature* creature) : BossAI(creature, TYPE_MALOWN) { }
void Reset() OVERRIDE {}
@@ -48,7 +48,7 @@ public:
struct boss_timmy_the_cruelAI : public ScriptedAI
{
boss_timmy_the_cruelAI(Creature* creature) : ScriptedAI(creature) {}
boss_timmy_the_cruelAI(Creature* creature) : ScriptedAI(creature) { }
uint32 RavenousClaw_Timer;
bool HasYelled;
@@ -100,7 +100,7 @@ public:
struct npc_freed_soulAI : public ScriptedAI
{
npc_freed_soulAI(Creature* creature) : ScriptedAI(creature) {}
npc_freed_soulAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
{
@@ -142,7 +142,7 @@ public:
struct npc_restless_soulAI : public ScriptedAI
{
npc_restless_soulAI(Creature* creature) : ScriptedAI(creature) {}
npc_restless_soulAI(Creature* creature) : ScriptedAI(creature) { }
uint64 Tagger;
uint32 Die_Timer;
@@ -224,7 +224,7 @@ public:
struct npc_spectral_ghostly_citizenAI : public ScriptedAI
{
npc_spectral_ghostly_citizenAI(Creature* creature) : ScriptedAI(creature) {}
npc_spectral_ghostly_citizenAI(Creature* creature) : ScriptedAI(creature) { }
uint32 Die_Timer;
bool Tagged;
@@ -675,7 +675,7 @@ public:
struct npc_shadow_imageAI : public ScriptedAI
{
npc_shadow_imageAI(Creature* creature) : ScriptedAI(creature) {}
npc_shadow_imageAI(Creature* creature) : ScriptedAI(creature) { }
uint32 ShadowfuryTimer;
uint32 KillTimer;
@@ -1055,7 +1055,7 @@ public:
struct npc_volatile_felfire_fiendAI : public ScriptedAI
{
npc_volatile_felfire_fiendAI(Creature* creature) : ScriptedAI(creature) {}
npc_volatile_felfire_fiendAI(Creature* creature) : ScriptedAI(creature) { }
uint32 uiExplodeTimer;
@@ -1256,7 +1256,7 @@ public:
struct npc_sinster_reflectionAI : public ScriptedAI
{
npc_sinster_reflectionAI(Creature* creature) : ScriptedAI(creature) {}
npc_sinster_reflectionAI(Creature* creature) : ScriptedAI(creature) { }
uint8 victimClass;
uint32 uiTimer[3];
@@ -464,7 +464,7 @@ public:
struct npc_dark_fiendAI : public ScriptedAI
{
npc_dark_fiendAI(Creature* creature) : ScriptedAI(creature) {}
npc_dark_fiendAI(Creature* creature) : ScriptedAI(creature) { }
uint32 WaitTimer;
bool InAction;
@@ -51,7 +51,7 @@ public:
struct instance_sunwell_plateau_InstanceMapScript : public InstanceScript
{
instance_sunwell_plateau_InstanceMapScript(Map* map) : InstanceScript(map) {}
instance_sunwell_plateau_InstanceMapScript(Map* map) : InstanceScript(map) { }
uint32 m_auiEncounter[MAX_ENCOUNTER];
@@ -37,7 +37,7 @@ public:
struct instance_the_stockade_InstanceMapScript : public InstanceScript
{
instance_the_stockade_InstanceMapScript(Map* map) : InstanceScript(map) {}
instance_the_stockade_InstanceMapScript(Map* map) : InstanceScript(map) { }
};
};
@@ -45,7 +45,7 @@ class boss_ironaya : public CreatureScript
struct boss_ironayaAI : public ScriptedAI
{
boss_ironayaAI(Creature* creature) : ScriptedAI(creature) {}
boss_ironayaAI(Creature* creature) : ScriptedAI(creature) { }
uint32 uiArcingTimer;
bool bHasCastedWstomp;
@@ -41,11 +41,11 @@ enum Events
class instance_uldaman : public InstanceMapScript
{
public:
instance_uldaman() : InstanceMapScript("instance_uldaman", 70) {}
instance_uldaman() : InstanceMapScript("instance_uldaman", 70) { }
struct instance_uldaman_InstanceMapScript : public InstanceScript
{
instance_uldaman_InstanceMapScript(Map* map) : InstanceScript(map) {}
instance_uldaman_InstanceMapScript(Map* map) : InstanceScript(map) { }
void Initialize() OVERRIDE
{
@@ -54,7 +54,7 @@ class npc_jadespine_basilisk : public CreatureScript
struct npc_jadespine_basiliskAI : public ScriptedAI
{
npc_jadespine_basiliskAI(Creature* creature) : ScriptedAI(creature) {}
npc_jadespine_basiliskAI(Creature* creature) : ScriptedAI(creature) { }
uint32 uiCslumberTimer;
@@ -73,7 +73,7 @@ class npc_professor_phizzlethorpe : public CreatureScript
struct npc_professor_phizzlethorpeAI : public npc_escortAI
{
npc_professor_phizzlethorpeAI(Creature* creature) : npc_escortAI(creature) {}
npc_professor_phizzlethorpeAI(Creature* creature) : npc_escortAI(creature) { }
void WaypointReached(uint32 waypointId) OVERRIDE
{
@@ -87,7 +87,7 @@ public:
struct boss_twilight_corrupterAI : public ScriptedAI
{
boss_twilight_corrupterAI(Creature* creature) : ScriptedAI(creature) {}
boss_twilight_corrupterAI(Creature* creature) : ScriptedAI(creature) { }
uint32 SoulCorruption_Timer;
uint32 CreatureOfNightmare_Timer;
@@ -121,7 +121,7 @@ public:
struct npc_darrowshire_spiritAI : public ScriptedAI
{
npc_darrowshire_spiritAI(Creature* creature) : ScriptedAI(creature) {}
npc_darrowshire_spiritAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
{
@@ -66,7 +66,7 @@ public:
struct npc_apprentice_mirvedaAI : public ScriptedAI
{
npc_apprentice_mirvedaAI(Creature* creature) : ScriptedAI(creature), Summons(me) {}
npc_apprentice_mirvedaAI(Creature* creature) : ScriptedAI(creature), Summons(me) { }
uint32 KillCount;
uint64 PlayerGUID;
@@ -104,7 +104,7 @@ public:
struct npc_ranger_lilathaAI : public npc_escortAI
{
npc_ranger_lilathaAI(Creature* creature) : npc_escortAI(creature) {}
npc_ranger_lilathaAI(Creature* creature) : npc_escortAI(creature) { }
void WaypointReached(uint32 waypointId) OVERRIDE
{
@@ -56,7 +56,7 @@ public:
struct npc_converted_sentryAI : public ScriptedAI
{
npc_converted_sentryAI(Creature* creature) : ScriptedAI(creature) {}
npc_converted_sentryAI(Creature* creature) : ScriptedAI(creature) { }
bool Credit;
uint32 Timer;
@@ -110,7 +110,7 @@ public:
struct npc_greengill_slaveAI : public ScriptedAI
{
npc_greengill_slaveAI(Creature* creature) : ScriptedAI(creature) {}
npc_greengill_slaveAI(Creature* creature) : ScriptedAI(creature) { }
void EnterCombat(Unit* /*who*/) OVERRIDE { }
@@ -56,7 +56,7 @@ public:
struct npc_blood_knight_stillbladeAI : public ScriptedAI
{
npc_blood_knight_stillbladeAI(Creature* creature) : ScriptedAI(creature) {}
npc_blood_knight_stillbladeAI(Creature* creature) : ScriptedAI(creature) { }
uint32 lifeTimer;
bool spellHit;
@@ -64,7 +64,7 @@ public:
struct npc_deathstalker_erlandAI : public npc_escortAI
{
npc_deathstalker_erlandAI(Creature* creature) : npc_escortAI(creature) {}
npc_deathstalker_erlandAI(Creature* creature) : npc_escortAI(creature) { }
void WaypointReached(uint32 waypointId)
{
@@ -99,7 +99,7 @@ public:
struct npc_lady_sylvanas_windrunnerAI : public ScriptedAI
{
npc_lady_sylvanas_windrunnerAI(Creature* creature) : ScriptedAI(creature) {}
npc_lady_sylvanas_windrunnerAI(Creature* creature) : ScriptedAI(creature) { }
uint32 LamentEventTimer;
bool LamentEvent;
@@ -231,7 +231,7 @@ public:
struct npc_highborne_lamenterAI : public ScriptedAI
{
npc_highborne_lamenterAI(Creature* creature) : ScriptedAI(creature) {}
npc_highborne_lamenterAI(Creature* creature) : ScriptedAI(creature) { }
uint32 EventMoveTimer;
uint32 EventCastTimer;
@@ -172,7 +172,7 @@ public:
struct npc_the_scourge_cauldronAI : public ScriptedAI
{
npc_the_scourge_cauldronAI(Creature* creature) : ScriptedAI(creature) {}
npc_the_scourge_cauldronAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE {}
@@ -84,7 +84,7 @@ public:
struct npc_daphne_stilwellAI : public npc_escortAI
{
npc_daphne_stilwellAI(Creature* creature) : npc_escortAI(creature) {}
npc_daphne_stilwellAI(Creature* creature) : npc_escortAI(creature) { }
uint32 uiWPHolder;
uint32 uiShootTimer;
+15 -15
View File
@@ -146,11 +146,11 @@ uint64 getOrphanGUID(Player* player, uint32 orphan)
class npc_winterfin_playmate : public CreatureScript
{
public:
npc_winterfin_playmate() : CreatureScript("npc_winterfin_playmate") {}
npc_winterfin_playmate() : CreatureScript("npc_winterfin_playmate") { }
struct npc_winterfin_playmateAI : public ScriptedAI
{
npc_winterfin_playmateAI(Creature* creature) : ScriptedAI(creature) {}
npc_winterfin_playmateAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
{
@@ -245,11 +245,11 @@ class npc_winterfin_playmate : public CreatureScript
class npc_snowfall_glade_playmate : public CreatureScript
{
public:
npc_snowfall_glade_playmate() : CreatureScript("npc_snowfall_glade_playmate") {}
npc_snowfall_glade_playmate() : CreatureScript("npc_snowfall_glade_playmate") { }
struct npc_snowfall_glade_playmateAI : public ScriptedAI
{
npc_snowfall_glade_playmateAI(Creature* creature) : ScriptedAI(creature) {}
npc_snowfall_glade_playmateAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
{
@@ -343,7 +343,7 @@ class npc_snowfall_glade_playmate : public CreatureScript
class npc_the_biggest_tree : public CreatureScript
{
public:
npc_the_biggest_tree() : CreatureScript("npc_the_biggest_tree") {}
npc_the_biggest_tree() : CreatureScript("npc_the_biggest_tree") { }
struct npc_the_biggest_treeAI : public ScriptedAI
{
@@ -433,11 +433,11 @@ class npc_the_biggest_tree : public CreatureScript
class npc_high_oracle_soo_roo : public CreatureScript
{
public:
npc_high_oracle_soo_roo() : CreatureScript("npc_high_oracle_soo_roo") {}
npc_high_oracle_soo_roo() : CreatureScript("npc_high_oracle_soo_roo") { }
struct npc_high_oracle_soo_rooAI : public ScriptedAI
{
npc_high_oracle_soo_rooAI(Creature* creature) : ScriptedAI(creature) {}
npc_high_oracle_soo_rooAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
{
@@ -522,11 +522,11 @@ class npc_high_oracle_soo_roo : public CreatureScript
class npc_elder_kekek : public CreatureScript
{
public:
npc_elder_kekek() : CreatureScript("npc_elder_kekek") {}
npc_elder_kekek() : CreatureScript("npc_elder_kekek") { }
struct npc_elder_kekekAI : public ScriptedAI
{
npc_elder_kekekAI(Creature* creature) : ScriptedAI(creature) {}
npc_elder_kekekAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
{
@@ -611,11 +611,11 @@ class npc_elder_kekek : public CreatureScript
class npc_the_etymidian : public CreatureScript
{
public:
npc_the_etymidian() : CreatureScript("npc_the_etymidian") {}
npc_the_etymidian() : CreatureScript("npc_the_etymidian") { }
struct npc_the_etymidianAI : public ScriptedAI
{
npc_the_etymidianAI(Creature* creature) : ScriptedAI(creature) {}
npc_the_etymidianAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
{
@@ -707,11 +707,11 @@ class npc_the_etymidian : public CreatureScript
class npc_alexstraza_the_lifebinder : public CreatureScript
{
public:
npc_alexstraza_the_lifebinder() : CreatureScript("npc_alexstraza_the_lifebinder") {}
npc_alexstraza_the_lifebinder() : CreatureScript("npc_alexstraza_the_lifebinder") { }
struct npc_alexstraza_the_lifebinderAI : public ScriptedAI
{
npc_alexstraza_the_lifebinderAI(Creature* creature) : ScriptedAI(creature) {}
npc_alexstraza_the_lifebinderAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
{
@@ -924,7 +924,7 @@ class at_bring_your_orphan_to : public AreaTriggerScript
class npc_cw_area_trigger : public CreatureScript
{
public:
npc_cw_area_trigger() : CreatureScript("npc_cw_area_trigger") {}
npc_cw_area_trigger() : CreatureScript("npc_cw_area_trigger") { }
struct npc_cw_area_triggerAI : public ScriptedAI
{
@@ -1021,7 +1021,7 @@ class npc_cw_area_trigger : public CreatureScript
class npc_grizzlemaw_cw_trigger : public CreatureScript
{
public:
npc_grizzlemaw_cw_trigger() : CreatureScript("npc_grizzlemaw_cw_trigger") {}
npc_grizzlemaw_cw_trigger() : CreatureScript("npc_grizzlemaw_cw_trigger") { }
struct npc_grizzlemaw_cw_triggerAI : public ScriptedAI
{
@@ -94,7 +94,7 @@ class example_creature : public CreatureScript
{
// *** HANDLED FUNCTION ***
//This is the constructor, called only once when the Creature is first created
example_creatureAI(Creature* creature) : ScriptedAI(creature) {}
example_creatureAI(Creature* creature) : ScriptedAI(creature) { }
// *** CUSTOM VARIABLES ****
//These variables are for use only by this individual script.
Loaded 100 of 326 files, more files were not shown because too many files have changed in this diff. Show more